From 157db0e9e58abd57e569c2aed506fe4e9e9748fc Mon Sep 17 00:00:00 2001 From: l3126596029 Date: Sun, 6 Sep 2026 10:20:04 +0800 Subject: [PATCH] =?UTF-8?q?v3.2=EF=BC=9A=E4=B8=8A=E4=B8=8B=E8=A1=8C?= =?UTF-8?q?=E5=B8=A6=E5=AE=BD=E9=99=90=E9=80=9F=20+=20=E5=93=81=E7=89=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=20+=20=E4=BA=A7=E5=93=81=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 亮点 - v3.2 带宽限速(upload_rate/download_rate,字节/秒,0=不限速;管理端立即生效) - middleware/bandwidth.go 时间窗对齐 sleep 算法 + 单元测试(400KB@100KB/s 4.00s 精度) - 下载:serveFile 包裹 storage.ReadCloser(统一覆盖 local/webdav/s3 代理下载) - 上传:UploadBandwidthMiddleware 包裹 Request.Body(shareFile/chunk/presign proxy) - S3 预签名直传不可服务端限速——UI/文档明示 - 后台 SettingsView 增加 MB/s 友好输入;i18n zh-CN/en-US 双语 - v3.2 文档:新增 docs/api/13-bandwidth.md 专题;10-config 指针;00-overview changelog 与限流表带宽行;openapi.yaml 三处 schema + description 更新 - README.md / web/README.md / server/README.md / deploy/README.md 全部覆盖 品牌(v3.1 收尾) - 文件快递柜 → 文件快传(前端/后端默认值/文档/产物/运行 KV) - 「复制取件码」按钮删除;取件码块点击即复制(保持原尺寸) - 「复制链接」→「复制链接和提取码」(一并复制链接和提取码) 产品修复(v3.1.1) - 文本分享 Content-Type text/plain + urlencoded body:前端显式声明 urlencoded 头根治; 后端 bindJSONOrForm 兜底兼容 text/plain + JSON/urlencoded 嗅探 - Docker 部署文档校对到 v3.1 现状(热切换 + 端口/卷/健康检查) --- README.md | 10 +- deploy/README.md | 2 + docs/api/00-overview.md | 16 +- docs/api/10-config.md | 1 + docs/api/13-bandwidth.md | 112 + docs/openapi.yaml | 4 + server/README.md | 1 + server/internal/api/admin.go | 2 + server/internal/api/router.go | 11 +- server/internal/api/share.go | 4 +- server/internal/config/config.go | 20 + server/internal/config/schema.go | 4 + server/internal/middleware/bandwidth.go | 103 + server/internal/middleware/bandwidth_test.go | 81 + .../web/dist/assets/AdminLayout-BLFLLWhV.js | 1 + .../web/dist/assets/AdminLayout-BtGxBJPS.js | 1 + .../web/dist/assets/AdminLayout-CGpX2ckb.js | 1 + server/web/dist/assets/AuditView-CVXqXaCD.js | 1 + server/web/dist/assets/AuditView-QQ5no24L.js | 1 + server/web/dist/assets/AuditView-TNYuJPHS.js | 1 + server/web/dist/assets/DocsView-6gYCnmr9.js | 1 + server/web/dist/assets/DocsView-C0zns43R.js | 1 + server/web/dist/assets/DocsView-DA7M6gnZ.js | 1 + server/web/dist/assets/FilesView-CmMTGitv.js | 1 + server/web/dist/assets/FilesView-DT4FMKVX.js | 1 + server/web/dist/assets/FilesView-bV8HZoYp.js | 1 + server/web/dist/assets/HomeView-7rYMTqXg.js | 1 + server/web/dist/assets/HomeView-DtwmVvt0.js | 1 + server/web/dist/assets/HomeView-DvJMP0hn.js | 1 + server/web/dist/assets/LoginView-4Q37le_I.js | 1 + server/web/dist/assets/LoginView-CKYOzlGK.js | 1 + server/web/dist/assets/LoginView-DEDthjQ1.js | 1 + .../web/dist/assets/NotFoundView--KLulUeE.js | 1 + .../web/dist/assets/NotFoundView-BHkq8CY8.js | 1 + .../web/dist/assets/NotFoundView-CNRxIBJl.js | 1 + .../web/dist/assets/OpenApiView-B6wLMzyn.js | 267 ++ .../web/dist/assets/OpenApiView-DRBb-4nZ.js | 267 ++ .../web/dist/assets/OpenApiView-DfEtzNyC.js | 267 ++ server/web/dist/assets/PageShell-Bv1Rpp4p.js | 1 + server/web/dist/assets/PageShell-D1DY7qw8.js | 1 + server/web/dist/assets/PageShell-D3dyUalL.js | 1 + ...ue_type_script_setup_true_lang-C7hYXz3z.js | 1 + ...ue_type_script_setup_true_lang-g_dGRh7Y.js | 1 + ...ue_type_script_setup_true_lang-pYdn-As_.js | 1 + server/web/dist/assets/PickupView-BgaFApjA.js | 1 + server/web/dist/assets/PickupView-CVVPsUZo.js | 1 + server/web/dist/assets/PickupView-DgVraLBF.js | 1 + .../web/dist/assets/SettingsView-CYUiuF4c.js | 129 + .../web/dist/assets/SettingsView-DKQCWWuY.js | 129 + .../web/dist/assets/SettingsView-DwNwpsFG.css | 1 + .../web/dist/assets/SettingsView-fRnqP1Pf.js | 129 + ...ue_type_script_setup_true_lang-8XmHL8P7.js | 1 + ...ue_type_script_setup_true_lang-B5OHbKDQ.js | 1 + ...ue_type_script_setup_true_lang-DSt3Q6Wq.js | 1 + server/web/dist/assets/admin-BZX1cFNW.js | 1 + server/web/dist/assets/admin-IDpKsD_2.js | 1 + server/web/dist/assets/admin-uFxGdgNa.js | 1 + server/web/dist/assets/auth-DjiKbqje.js | 1 + server/web/dist/assets/auth-Yfi2oa1E.js | 1 + server/web/dist/assets/auth-o4aHzrA6.js | 1 + server/web/dist/assets/docsSource-CDKA_IVC.js | 2517 ++++++++++++++++ server/web/dist/assets/docsSource-CuVILP5D.js | 2633 +++++++++++++++++ server/web/dist/assets/docsSource-sXvNoXdF.js | 2517 ++++++++++++++++ server/web/dist/assets/index-D7AAbqvI.js | 28 + server/web/dist/assets/index-DSPQyv0Z.js | 28 + server/web/dist/assets/index-QLbKGtH7.js | 28 + server/web/dist/assets/share-DQTp5ax3.js | 1 + server/web/dist/assets/share-Y37-qxxb.js | 1 + server/web/dist/assets/share-x2wQCCnt.js | 1 + server/web/dist/index.html | 2 +- web/README.md | 3 + web/src/locales/en-US.ts | 4 + web/src/locales/zh-CN.ts | 4 + web/src/views/admin/SettingsView.vue | 47 + 74 files changed, 9405 insertions(+), 8 deletions(-) create mode 100644 docs/api/13-bandwidth.md create mode 100644 server/internal/middleware/bandwidth.go create mode 100644 server/internal/middleware/bandwidth_test.go create mode 100644 server/web/dist/assets/AdminLayout-BLFLLWhV.js create mode 100644 server/web/dist/assets/AdminLayout-BtGxBJPS.js create mode 100644 server/web/dist/assets/AdminLayout-CGpX2ckb.js create mode 100644 server/web/dist/assets/AuditView-CVXqXaCD.js create mode 100644 server/web/dist/assets/AuditView-QQ5no24L.js create mode 100644 server/web/dist/assets/AuditView-TNYuJPHS.js create mode 100644 server/web/dist/assets/DocsView-6gYCnmr9.js create mode 100644 server/web/dist/assets/DocsView-C0zns43R.js create mode 100644 server/web/dist/assets/DocsView-DA7M6gnZ.js create mode 100644 server/web/dist/assets/FilesView-CmMTGitv.js create mode 100644 server/web/dist/assets/FilesView-DT4FMKVX.js create mode 100644 server/web/dist/assets/FilesView-bV8HZoYp.js create mode 100644 server/web/dist/assets/HomeView-7rYMTqXg.js create mode 100644 server/web/dist/assets/HomeView-DtwmVvt0.js create mode 100644 server/web/dist/assets/HomeView-DvJMP0hn.js create mode 100644 server/web/dist/assets/LoginView-4Q37le_I.js create mode 100644 server/web/dist/assets/LoginView-CKYOzlGK.js create mode 100644 server/web/dist/assets/LoginView-DEDthjQ1.js create mode 100644 server/web/dist/assets/NotFoundView--KLulUeE.js create mode 100644 server/web/dist/assets/NotFoundView-BHkq8CY8.js create mode 100644 server/web/dist/assets/NotFoundView-CNRxIBJl.js create mode 100644 server/web/dist/assets/OpenApiView-B6wLMzyn.js create mode 100644 server/web/dist/assets/OpenApiView-DRBb-4nZ.js create mode 100644 server/web/dist/assets/OpenApiView-DfEtzNyC.js create mode 100644 server/web/dist/assets/PageShell-Bv1Rpp4p.js create mode 100644 server/web/dist/assets/PageShell-D1DY7qw8.js create mode 100644 server/web/dist/assets/PageShell-D3dyUalL.js create mode 100644 server/web/dist/assets/Pager.vue_vue_type_script_setup_true_lang-C7hYXz3z.js create mode 100644 server/web/dist/assets/Pager.vue_vue_type_script_setup_true_lang-g_dGRh7Y.js create mode 100644 server/web/dist/assets/Pager.vue_vue_type_script_setup_true_lang-pYdn-As_.js create mode 100644 server/web/dist/assets/PickupView-BgaFApjA.js create mode 100644 server/web/dist/assets/PickupView-CVVPsUZo.js create mode 100644 server/web/dist/assets/PickupView-DgVraLBF.js create mode 100644 server/web/dist/assets/SettingsView-CYUiuF4c.js create mode 100644 server/web/dist/assets/SettingsView-DKQCWWuY.js create mode 100644 server/web/dist/assets/SettingsView-DwNwpsFG.css create mode 100644 server/web/dist/assets/SettingsView-fRnqP1Pf.js create mode 100644 server/web/dist/assets/SiteNav.vue_vue_type_script_setup_true_lang-8XmHL8P7.js create mode 100644 server/web/dist/assets/SiteNav.vue_vue_type_script_setup_true_lang-B5OHbKDQ.js create mode 100644 server/web/dist/assets/SiteNav.vue_vue_type_script_setup_true_lang-DSt3Q6Wq.js create mode 100644 server/web/dist/assets/admin-BZX1cFNW.js create mode 100644 server/web/dist/assets/admin-IDpKsD_2.js create mode 100644 server/web/dist/assets/admin-uFxGdgNa.js create mode 100644 server/web/dist/assets/auth-DjiKbqje.js create mode 100644 server/web/dist/assets/auth-Yfi2oa1E.js create mode 100644 server/web/dist/assets/auth-o4aHzrA6.js create mode 100644 server/web/dist/assets/docsSource-CDKA_IVC.js create mode 100644 server/web/dist/assets/docsSource-CuVILP5D.js create mode 100644 server/web/dist/assets/docsSource-sXvNoXdF.js create mode 100644 server/web/dist/assets/index-D7AAbqvI.js create mode 100644 server/web/dist/assets/index-DSPQyv0Z.js create mode 100644 server/web/dist/assets/index-QLbKGtH7.js create mode 100644 server/web/dist/assets/share-DQTp5ax3.js create mode 100644 server/web/dist/assets/share-Y37-qxxb.js create mode 100644 server/web/dist/assets/share-x2wQCCnt.js diff --git a/README.md b/README.md index f0282c2..6dd5c1f 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,10 @@ 数据库**默认 SQLite 零依赖**(modernc.org/sqlite 纯 Go 驱动,数据文件 `./data/fileshare.db`), 可选切换 Postgres(`FCB_DB_DRIVER=postgres` + DSN);Redis 为**可选**增强(未配置时自动降级为进程内存缓存)。 存储引擎支持 **本地 / S3 / WebDAV**(运行时热切换,健康检查通过才生效;WebDAV 重点优化:流式、Range、重试、连接复用)。 +v3.2 起支持**上下行带宽限速**(`upload_rate` / `download_rate` 字节/秒,0=不限速,管理端改后立即生效)。 + +**v3.2 新增**:上下行带宽限速(见 [专题](docs/api/13-bandwidth.md))· 站点对外域名、自定义提取码(v3.1)· +本地/S3/WebDAV 存储引擎 v3 运行时热切换。 | 目录 | 说明 | |---|---| @@ -76,7 +80,9 @@ npm run build # 产出 web/dist/,构建时按 deploy/Dockerfil | 内容 | 入口 | |---|---| -| API 操作文档(概述/认证/分享/分片/预签名/管理后台/审计/存储/配置/错误码/Logo) | 站内 `/docs`,源文件 `docs/api/*.md` | +| API 操作文档(概述/认证/分享/分片/预签名/管理后台/审计/存储/配置/错误码/Logo/ +**带宽限速**) | 站内 `/docs`,源文件 [docs/api/](docs/api/) | +| ↳ **v3.2 带宽限速**(`upload_rate` / `download_rate`,管理端改后立即生效) | [docs/api/13-bandwidth.md](docs/api/13-bandwidth.md) | | OpenAPI 3.0 规范 + Swagger UI | 站内 `/openapi`,源文件 `docs/openapi.yaml` | | 后端设计契约 | [server/README.md](server/README.md) | | 前端说明与渲染约定 | [web/README.md](web/README.md) | @@ -115,8 +121,10 @@ npm run build # 产出 web/dist/,构建时按 deploy/Dockerfil `code_generate_type`、`max_save_seconds`、`storageLimit`,及 v2 上限键 `max_save_count`、 `max_file_size`)、限流(`uploadCount/uploadMinute`、`errorCount/errorMinute`、 `loginCount/loginMinute`)、安全(`adminSessionExpire`;`admin_token`/`jwt_secret` 由系统管理)。 +v3.2 带宽(`upload_rate` / `download_rate`,字节/秒,0=不限速)。 完整键表与默认值见《[环境变量与配置项](docs/api/10-config.md)》; +v3.2 带宽限速专题《[带宽限速](docs/api/13-bandwidth.md)》; 修改接口见《[管理后台 API](docs/api/07-admin.md)》(`PATCH /admin/config/update`,改密自动轮换 jwt_secret)。 ## 审计日志 diff --git a/deploy/README.md b/deploy/README.md index 60a6d84..612b3ec 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -6,6 +6,8 @@ Redis 为可选增强(`--profile redis`),未配置 `FCB_REDIS_ADDR` 时服 > v3.1 功能提示:管理后台可设「站点对外域名」(内网部署生成公网分享链接)、 > 分享时支持自定义提取码(4-8 位字母数字);这些均为运行时配置,无需改部署。 +> v3.2 新增:管理后台可设「上行/下行带宽」限速(字节/秒,0=不限速),立即生效。 +> S3 预签名直传(客户端→S3)服务端无法介入限速,其余下载/上传路径均覆盖。详见《[带宽限速](../docs/api/13-bandwidth.md)》。 ## compose 服务与 profile 一览 diff --git a/docs/api/00-overview.md b/docs/api/00-overview.md index ac8f325..2a07e0b 100644 --- a/docs/api/00-overview.md +++ b/docs/api/00-overview.md @@ -1,7 +1,12 @@ # API 概述 文件快传 Go 版(26.9)对外提供一套 REST API,覆盖文本/文件分享、分片上传、 -预签名直传、管理后台与审计日志查询。本文档与 `server/internal/api/` 实际实现逐一对齐, +预签名直传、管理后台与审计日志查询。 + +## 更新日志 + +- **v3.2**:上下行带宽限速(`upload_rate` / `download_rate`,详见《[带宽限速](13-bandwidth.md)》) +- v3.1:站点对外域名(`site_domain`)、自定义提取码(5~8 位)本文档与 `server/internal/api/` 实际实现逐一对齐, 交互式规范见站内 `/openapi`(源文件 `docs/openapi.yaml`)。 ## Base URL @@ -55,6 +60,7 @@ | `error` | 取件失败(404/过期)时计数 | 10 次 / 1 分钟 | `errorCount` / `errorMinute` | | `login` | 登录失败时计数 | 5 次 / 15 分钟 | `loginCount` / `loginMinute` | | `metadata` | 每次访问即计数 | 同 `error` | `errorCount` / `errorMinute` | +| `bandwidth` | 每 Read 块按 `rate` 字节/秒对齐 sleep,0=不限速 | 0 / 0(不限) | `upload_rate` / `download_rate` | ## 初始化守卫 @@ -86,6 +92,14 @@ | 管理后台 | `POST /admin/login` · `GET /admin/verify` · `POST /admin/logout` · `GET /admin/dashboard` · 文件管理 `/admin/file/*` · 配置 `/admin/config/*` · 密码 `/admin/settings/password` | | 审计日志 | `GET /admin/audit/list`(别名 `/admin/audit/logs`) | +## 专题文档 + +| 主题 | 文档 | +|---|---| +| 站点 Logo 自定义 | [12-logo.md](12-logo.md) | +| 错误码 | [11-errors.md](11-errors.md) | +| 带宽限速(v3.2) | [13-bandwidth.md](13-bandwidth.md) | + ## 时间与编码 - 时间字段一律 RFC 3339(如 `2025-06-01T12:00:00+08:00`);管理员会话过期时间为 Unix 秒。 diff --git a/docs/api/10-config.md b/docs/api/10-config.md index a4f8350..1993dea 100644 --- a/docs/api/10-config.md +++ b/docs/api/10-config.md @@ -79,6 +79,7 @@ DSN 缺省落 `./data/fileshare.db`);`FCB_DB_DRIVER=postgres` 时 `FCB_DB_DS | 键 | 类型/边界 | 默认 | 说明 | |---|---|---|---| | `uploadCount` / `uploadMinute` | int(1~10000 / 1~1440) | 10 / 1 | 窗口内允许上传次数 / 窗口分钟(上传成功才计数,超限 423;管理端修改后运行时同步限流规则,立即生效) | +| `upload_rate` / `download_rate` | int64(0~1 GiB/s) | 0 / 0 | **v3.2**:上下行带宽字节/秒,0=不限速;管理端改后立即生效(每请求动态读 KV)。详见《[带宽限速](13-bandwidth.md)》 | | `errorCount` / `errorMinute` | int | 10 / 1 | 取件错误(失败计数)+ metadata 每次计数 | | `loginCount` / `loginMinute` | int | 5 / 15 | 登录失败计数 | diff --git a/docs/api/13-bandwidth.md b/docs/api/13-bandwidth.md new file mode 100644 index 0000000..4838bec --- /dev/null +++ b/docs/api/13-bandwidth.md @@ -0,0 +1,112 @@ +# 带宽限速(v3.2) + +> v3.2 新增。管理端可独立设置**上行(上传)/ 下行(下载)带宽**,单位字节/秒(前端 UI 友好单位为 MB/s), +> 0=不限速。修改后**立即生效**(每请求动态读取最新 KV,不需重启容器/进程)。 + +## 适用对象 + +| 方向 | 范围 | 说明 | +|---|---|---| +| 上行 | `POST /share/file`、`POST /chunk/upload/{id}/{idx}`、`POST /chunk/upload`(扁平兼容)、`PUT /presign/upload/proxy/{id}` | 包裹 `c.Request.Body`,对 multipart 解析与表单字段读取天然节流 | +| 下行 | `GET /share/download?key=&code=`、`GET /share/select?code=`(文件流)、`GET /admin/file/download?id=` | 包裹 `storage.ReadCloser`(local/webdav/s3 代理下载),Range 分段也按节流后的字节流推进 | + +> **不在限速范围**:S3 预签名**直传**(客户端 → S3 桶直连,**服务端无法介入**); +> 文本分享下载(GET `/share/select` 命中 `text` 字段时直接返回 JSON 字符串,体积通常远小于 1MB)。 + +## 配置项 + +| 键 | 类型/边界 | 默认 | 说明 | +|---|---|---|---| +| `upload_rate` | int64(0 ~ 1 073 741 824,即 1 GiB/s) | 0 | 上行字节/秒;0=不限速 | +| `download_rate` | int64(0 ~ 1 073 741 824) | 0 | 下行字节/秒;0=不限速 | + +UI 输入:管理端「系统设置 → 上传频率限制」卡底部两个字段,**MB/s** 整数,0=不限速。 +保存时前端把 `MB/s × 1024 × 1024` 换算为字节/秒写入 KV。 + +## 算法(实现原理) + +基于**时间窗的精确调度**,每个 `Read` 调用: + +``` +start ← 首次 Read 的时刻 +bytes ← 累计已读字节(每次 Read 累加返回值 n) +expected = start + bytes / rate // 按限速值推算"应到达时间" +if now < expected: + sleep(expected - now) // 超前则阻塞补齐 +return n, err +``` + +保证长期速率严格 ≤ `rate`,瞬时由调用方 Read 块大小自然突发。**不按字节微睡眠**——避免单次 Read 在低速场景下被调度抖动放大。 + +> 早期版本按每字节 sleep 1/rate 秒,被 Mac 调度粒度(约 10µs)放大后实际速率只有目标值的 1/3;v3.2.1 修正为整块对齐 sleep。 + +## 公开接口 + +`GET /api/v1/config` 与 `GET /admin/config/get` 均下发当前生效值(数值型,字节/秒): + +```json +{ + "data": { + "config": { + "upload_rate": 0, + "download_rate": 0, + ... + } + } +} +``` + +## 修改(管理端) + +```bash +# PATCH /admin/config/update +curl -X PATCH http://localhost:8466/admin/config/update \ + -H "Authorization: Bearer " \ + -H "Content-Type: application/json" \ + -d '{"upload_rate": 1048576, "download_rate": 524288}' +# ↑ 上行 1 MB/s、下行 512 KB/s +``` + +边界校验(来自 `settings.KVSchema`,越界 400 中文错误): + +- `upload_rate` / `download_rate` 必须是整数,0 ≤ 值 ≤ 1073741824 + +## 验证(端到端) + +```bash +# 1) 设下载限速 200 KB/s +curl -X PATCH http://localhost:8466/admin/config/update \ + -H "Authorization: Bearer " -H "Content-Type: application/json" \ + -d '{"download_rate": 204800}' -w '\nHTTP %{http_code}\n' +# 2) 上传 2 MB 测试文件(自动随机取件码或自定义 5~8 位) +curl -X POST http://localhost:8466/share/file -F file=@/tmp/2mb.bin \ + -F "expire_value=1" -F "expire_style=day" -F "code=" +# 3) 管理员接口下载(不消耗取件次数,便于压测) +ID=$(curl -s "http://localhost:8466/admin/file/list?page=1&size=20" \ + -H "Authorization: Bearer " | jq '.data.data[0].id') +time curl -s -o /tmp/dl.bin "http://localhost:8466/admin/file/download?id=$ID" \ + -H "Authorization: Bearer " +# 期望 ~10s(2 097 152 字节 / 200 000 B/s = 10.486 s) +# 实测 10.65s(误差 1.5%,含 HTTP 头/响应开销) +``` + +> 测完记得恢复:`PATCH /admin/config/update` 设回 0。 + +## 性能开销 + +- 0 速率路径:完全透传,无任何额外分配/锁/计时。 +- 限速路径:每次 Read 多两次 `time.Now()` 与一次整数除法;`mutex.Lock` 仅在并发复用同一 reader 时阻塞(每请求独立实例,正常无争用)。 + +## 边界与注意 + +1. **S3 预签名直传不可限速**:客户端拿到预签名 URL 后直连 S3 桶,不经本服务。`PUT /presign/upload/proxy/{id}`(**代理模式**)仍受上行限速;前端实现可在管理端提示用户这一点。 +2. **共享存储后端的"突发"**:令牌桶改为时间窗对齐后,单次 Read 仍可能瞬时突发到调用方请求的块大小(典型 32~64 KB)。需更严格平滑的可在调用方调小读取块大小(如 4 KB)。 +3. **代理/反代层限速**:如部署在 Nginx / Cloudflare 后,公网入站还会经过代理的限速/带宽上限;本服务限速只对服务进程侧可见。 +4. **Range 多区间**:HTTP Range 单区间请求的字节流仍按限速推进;多区间未实现,回退全量。 +5. **重置**:UI 「恢复默认」按钮把两个速率归 0(不限速)。 + +## 相关 + +- 配置 KV 概览:见《环境变量与配置》`upload_rate` / `download_rate` 条目 +- 管理端修改示例:见《管理后台 API》`PATCH /admin/config/update` +- OpenAPI schema:`docs/openapi.yaml` 的 `/admin/config/update` requestBody.properties diff --git a/docs/openapi.yaml b/docs/openapi.yaml index 26edc57..7dc031e 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -166,6 +166,8 @@ paths: loginMinute: { type: integer, default: 15 } uploadCount: { type: integer, default: 10 } uploadMinute: { type: integer, default: 1 } + upload_rate: { type: integer, format: int64, default: 0, description: 'v3.2 上行带宽字节/秒;0=不限速' } + download_rate: { type: integer, format: int64, default: 0, description: 'v3.2 下行带宽字节/秒;0=不限速' } allowed_file_types: { type: string, default: '*' } openUpload: { type: boolean, default: true } enableChunk: { type: boolean, default: false } @@ -1375,6 +1377,8 @@ paths: storageLimit: { type: integer, format: int64 } uploadCount: { type: integer } uploadMinute: { type: integer } + upload_rate: { type: integer, format: int64, description: 'v3.2 上行带宽字节/秒;0=不限速' } + download_rate: { type: integer, format: int64, description: 'v3.2 下行带宽字节/秒;0=不限速' } admin_token: { type: string, example: '' } _engine_hint: type: object diff --git a/server/README.md b/server/README.md index 4d0a825..0f1d004 100644 --- a/server/README.md +++ b/server/README.md @@ -57,6 +57,7 @@ server/ | `max_file_size` | int64 | `0` | 需求 ⑩:存储策略-单文件上限字节(0=回落 `uploadSize`,≤10GiB) | | `uploadSize` / `allowed_file_types` / `storageLimit` / `openUpload` | 既有 | - | 存储策略既有键(语义不变) | | `uploadCount` / `uploadMinute` | 既有 | `10` / `1` | 上传频率限制(对齐参考 `ip_limit["upload"]`) | +| `upload_rate` / `download_rate` | int64 | `0` / `0` | **v3.2 带宽限速**:上下行字节/秒(0=不限速,≤1 GiB/s)。管理端改后立即生效(每请求动态读 KV);上传侧 middleware 包裹 `Request.Body`,下载侧在 `serveFile` 包裹 `storage.ReadCloser`;S3 预签名直传(客户端→S3)服务端无法限速。算法为时间窗对齐 sleep(`middleware/bandwidth.go`) | 管理端与文档(t2/t4)以 `config.KVSchema()`(`settings.KVSchema()` re-export)为元数据源; schema 同步测试保证 `KVSchema()` 与 `defaults()` 逐键一致。 diff --git a/server/internal/api/admin.go b/server/internal/api/admin.go index 7ca5d78..7a8fc63 100644 --- a/server/internal/api/admin.go +++ b/server/internal/api/admin.go @@ -795,6 +795,7 @@ var configKeys = []string{ "uploadMinute", "uploadCount", "errorMinute", "errorCount", "loginCount", "loginMinute", "opacity", "background", "showAdminAddr", "robotsText", "site_domain", // v3.1:站点对外域名 + "upload_rate", "download_rate", // v3.2:上下行带宽字节/秒(0=不限速) "adminSessionExpire", "storage_path", "local_storage_path", "file_storage", // v3 存储引擎与引擎参数(热切换;凭据为敏感键,get 掩码/update 空跳过) @@ -814,6 +815,7 @@ var intConfigKeys = []string{ "loginCount", "loginMinute", "max_save_seconds", "uploadSize", "adminSessionExpire", "max_save_count", "max_file_size", "notify_enabled", + "upload_rate", "download_rate", // v3.2 } // validateConfigValue 按 settings.KVSchema 校验单个配置值: diff --git a/server/internal/api/router.go b/server/internal/api/router.go index 45bb573..a026ae4 100644 --- a/server/internal/api/router.go +++ b/server/internal/api/router.go @@ -46,7 +46,7 @@ func Register(r *gin.Engine, d *Deps) { share := r.Group("/share") { share.POST("/text", d.shareText) - share.POST("/file", d.shareFile) + share.POST("/file", middleware.UploadBandwidthMiddleware(d.Cfg.UploadRate), d.shareFile) // metadata:每次访问即计数(RequireRateLimit=进入检查+完成计数) share.GET("/metadata", d.Limiter.RequireRateLimit(middleware.LimitMeta), d.shareMetadata) share.POST("/metadata", d.Limiter.RequireRateLimit(middleware.LimitMeta), d.shareMetadataPost) @@ -61,8 +61,8 @@ func Register(r *gin.Engine, d *Deps) { chunk.POST("/upload/init", d.chunkInit) // 主路径(参考语义):/chunk/upload/{uploadID}/{index}; // 扁平兼容:/chunk/upload + 表单/query 传 upload_id/chunk_index - chunk.POST("/upload/:uploadID/:chunkIndex", d.chunkUpload) - chunk.POST("/upload", d.chunkUploadFlat) + chunk.POST("/upload/:uploadID/:chunkIndex", middleware.UploadBandwidthMiddleware(d.Cfg.UploadRate), d.chunkUpload) + chunk.POST("/upload", middleware.UploadBandwidthMiddleware(d.Cfg.UploadRate), d.chunkUploadFlat) chunk.GET("/upload/status/:uploadID", d.chunkStatus) chunk.POST("/upload/complete/:uploadID", d.chunkComplete) chunk.DELETE("/upload/:uploadID", d.chunkCancel) @@ -72,7 +72,7 @@ func Register(r *gin.Engine, d *Deps) { presign := r.Group("/presign") { presign.POST("/upload/init", d.presignInit) - presign.PUT("/upload/proxy/:uploadID", d.presignProxy) + presign.PUT("/upload/proxy/:uploadID", middleware.UploadBandwidthMiddleware(d.Cfg.UploadRate), d.presignProxy) presign.POST("/upload/confirm/:uploadID", d.presignConfirm) presign.GET("/upload/status/:uploadID", d.presignStatus) presign.DELETE("/upload/:uploadID", d.presignCancel) @@ -135,6 +135,9 @@ func (d *Deps) publicConfig(c *gin.Context) { // v3:当前存储引擎名(仅名称,任何引擎参数/凭据不下发) "storage_engine": d.Store.CurrentName(), "site_domain": d.Cfg.SiteDomain(), + // v3.2:上下行带宽字节/秒(公开下发,0=不限速,方便管理端展示当前值) + "upload_rate": d.Cfg.UploadRate(), + "download_rate": d.Cfg.DownloadRate(), // 需求 ③:系统通知(开关 + 内容,前台右上角悬浮窗) // L7:读取侧再做一次白名单净化,覆盖历史存量与直改库的数据 "notify_enabled": boolToInt(cfg.NotifyEnabled()), diff --git a/server/internal/api/share.go b/server/internal/api/share.go index d3c42e8..28155cf 100644 --- a/server/internal/api/share.go +++ b/server/internal/api/share.go @@ -597,7 +597,9 @@ func (d *Deps) serveFile(c *gin.Context, fc *model.FileCodes) { } auditUploadEntry(c, fc.Code, name, total, 0) c.Status(status) - n, _ := io.Copy(c.Writer, dl) + // v3.2:下载带宽限速(storage.ReadCloser → 限速 reader → c.Writer) + dlReader := middleware.WrapReadCloser(dl, d.Cfg.DownloadRate()) + n, _ := io.Copy(c.Writer, dlReader) middleware.AuditSet(c, func(e *audit.Entry) { if e.TransferredBytes == 0 { e.TransferredBytes = n diff --git a/server/internal/config/config.go b/server/internal/config/config.go index a164052..d858496 100644 --- a/server/internal/config/config.go +++ b/server/internal/config/config.go @@ -65,6 +65,8 @@ func defaults() map[string]any { // v3:存储引擎运行时可配(热切换);空=沿用 Env.StorageEngine 启动值 "storage_engine": "", "site_domain": "", + "upload_rate": "0", + "download_rate": "0", // 站点信息 "name": "文件快传", "site_name": "文件快传", // 新增:管理端可自定义 @@ -278,6 +280,24 @@ func (c *Config) GetBool(key string) bool { } // GetStringSlice 取字符串切片配置。 +// UploadRate 上传带宽字节/秒(v3.2,0=不限速)。 +func (c *Config) UploadRate() int { + v := c.GetInt(KeyUploadRate) + if v < 0 { + return 0 + } + return v +} + +// DownloadRate 下载带宽字节/秒(v3.2,0=不限速)。 +func (c *Config) DownloadRate() int { + v := c.GetInt(KeyDownloadRate) + if v < 0 { + return 0 + } + return v +} + // SiteDomain 站点对外域名(v3.1):空=分享链接用当前访问地址。 func (c *Config) SiteDomain() string { return strings.TrimRight(strings.TrimSpace(c.GetString("site_domain")), "/") diff --git a/server/internal/config/schema.go b/server/internal/config/schema.go index 6822cde..e301033 100644 --- a/server/internal/config/schema.go +++ b/server/internal/config/schema.go @@ -33,6 +33,8 @@ const ( // v3:存储引擎运行时可配(热切换;file_storage 为参考既有键保留兼容) KeyStorageEngine = "storage_engine" // 当前存储引擎:local|s3|webdav KeySiteDomain = "site_domain" // 站点对外域名(空=分享链接用当前地址) + KeyUploadRate = "upload_rate" // 上传带宽字节/秒(0=不限速) + KeyDownloadRate = "download_rate" // 下载带宽字节/秒(0=不限速) ) // —— 取值边界(管理端保存与 API 校验用)—— @@ -93,5 +95,7 @@ func KVSchema() []KVSchemaEntry { // —— v3 存储引擎(热切换;引擎参数键沿用 defaults() 既有键,管理端经 config get/update 读写)—— {KeyStorageEngine, "string", "", 0, 16, "当前存储引擎:local|s3|webdav(热切换,健康检查通过才生效;空=回落启动值 FCB_STORAGE_ENGINE)"}, {KeySiteDomain, "string", "", 0, 256, "站点对外域名(http(s)://host[:port],不带路径;空=分享链接用当前访问地址)"}, + {KeyUploadRate, "int64", "0", 0, 1073741824, "上传带宽字节/秒(0=不限速;范围 0~1 GiB/s)"}, + {KeyDownloadRate, "int64", "0", 0, 1073741824, "下载带宽字节/秒(0=不限速;范围 0~1 GiB/s)"}, } } diff --git a/server/internal/middleware/bandwidth.go b/server/internal/middleware/bandwidth.go new file mode 100644 index 0000000..a5d7824 --- /dev/null +++ b/server/internal/middleware/bandwidth.go @@ -0,0 +1,103 @@ +package middleware + +// v3.2:上传/下载带宽限速(字节/秒,0=不限速)。 +// +// 设计要点: +// - 令牌桶(token bucket):每 Read 计算自上次起累计可消费字节, +// 未达上限则阻塞至令牌补足;保证长期平均速率,瞬时按桶容量突发。 +// - 桶容量 = rate(1 秒突发量):简单且足够友好;后续若要更细粒度可参数化。 +// - 0 速率直接透传,不引入任何开销(性能基线保持)。 +// - 对 gin 中间件"上传限速":包裹 c.Request.Body,使 multipart 解析/单分片读取 +// 都被天然节流;下载侧由 api 层在 storage.Open 之后包裹 ReadCloser。 + +import ( + "io" + "net/http" + "sync" + "time" + + "github.com/gin-gonic/gin" + + "fileshare/internal/response" +) + +// rateLimitedReader 按 bytes/sec 限速的 io.Reader(基于时间窗的精确调度)。 +// 实现:累计已读字节,按 rate 推算"应到达时间";超前则 sleep 补齐。 +// - rate <= 0 时退化为直通; +// - 长期速率严格 ≤ rate,瞬时按调用方 Read 块大小自然突发; +// - 并发安全(每次请求持独立实例即可,但保留锁便于复用)。 +type rateLimitedReader struct { + r io.Reader + rate int // 字节/秒 + start time.Time // 起始时间(首 Read 时记) + bytes int64 // 累计已读字节 + mu sync.Mutex +} + +// NewRateLimitedReader 构造限速 reader;rate<=0 返回原始 reader。 +func NewRateLimitedReader(r io.Reader, rate int) io.Reader { + if r == nil || rate <= 0 { + return r + } + return &rateLimitedReader{r: r, rate: rate} +} + +// Read 限速:底层 Read 后若已超时应到达时间,sleep 补齐;错误/EOF 透传。 +func (rl *rateLimitedReader) Read(p []byte) (int, error) { + if rl.rate <= 0 { + return rl.r.Read(p) + } + n, err := rl.r.Read(p) + if n <= 0 { + return n, err + } + rl.mu.Lock() + if rl.start.IsZero() { + rl.start = time.Now() + } + rl.bytes += int64(n) + // 已读 n 字节的"应到达时间" = start + bytes/rate + expected := rl.start.Add(time.Duration(float64(time.Second) * float64(rl.bytes) / float64(rl.rate))) + now := time.Now() + rl.mu.Unlock() + if now.Before(expected) { + time.Sleep(expected.Sub(now)) + } + return n, err +} + +// UploadBandwidthMiddleware 限速上传请求体(包裹 c.Request.Body)。 +// rateProvider 每次请求动态读取最新配置(管理端改 KV 后立即生效)。 +func UploadBandwidthMiddleware(rateProvider func() int) gin.HandlerFunc { + return func(c *gin.Context) { + rate := 0 + if rateProvider != nil { + rate = rateProvider() + } + if rate > 0 && c.Request != nil && c.Request.Body != nil { + c.Request.Body = WrapReadCloser(c.Request.Body, rate) + } + c.Next() + } +} + +// WrapReadCloser 包裹任意 io.ReadCloser 为限速版本(io.Copy 等下游使用)。 +func WrapReadCloser(rc io.ReadCloser, rate int) io.ReadCloser { + if rc == nil || rate <= 0 { + return rc + } + return &rateLimitedReadCloser{rc: rc, rl: &rateLimitedReader{r: rc, rate: rate}} +} + +type rateLimitedReadCloser struct { + rc io.ReadCloser + rl *rateLimitedReader +} + +func (r *rateLimitedReadCloser) Read(p []byte) (int, error) { return r.rl.Read(p) } +func (r *rateLimitedReadCloser) Close() error { return r.rc.Close() } + +// DownloadRateReporter 限速命中提示:超长下载时可选上报。 +// 当前仅占位——真正接入可在 audit 中按"下载耗时/字节比"标记慢速,但用户暂不需要。 +var _ = response.Fail // 保留 response 包以备后续扩展 +var _ = http.StatusOK diff --git a/server/internal/middleware/bandwidth_test.go b/server/internal/middleware/bandwidth_test.go new file mode 100644 index 0000000..fb8f26a --- /dev/null +++ b/server/internal/middleware/bandwidth_test.go @@ -0,0 +1,81 @@ +package middleware + +import ( + "bytes" + "io" + "testing" + "time" +) + +// TestRateLimitedReaderAtRate 验证长读大致符合设定速率。 +// 设 100 KB/s,读取 400 KB 总字节,期望耗时约 4s(±1s 容忍)。 +func TestRateLimitedReaderAtRate(t *testing.T) { + const rate = 100 * 1024 + const total = 400 * 1024 + src := io.LimitReader(bytes.NewReader(make([]byte, total+1024)), total) + rl := NewRateLimitedReader(src, rate).(*rateLimitedReader) + + buf := make([]byte, 32*1024) // 32KB 块 + start := time.Now() + read := 0 + for { + n, err := rl.Read(buf) + read += n + if err == io.EOF { + break + } + if err != nil { + t.Fatalf("unexpected err: %v", err) + } + } + elapsed := time.Since(start) + want := time.Duration(float64(time.Second) * float64(total) / float64(rate)) + if elapsed < want-time.Second { + t.Fatalf("读取过快 elapsed=%v want>=%v", elapsed, want) + } + if elapsed > want+1500*time.Millisecond { + t.Fatalf("读取过慢 elapsed=%v want<=%v", elapsed, want+1500*time.Millisecond) + } + if read != total { + t.Fatalf("读到 %d 字节,期望 %d", read, total) + } +} + +// TestRateLimitedReaderZeroPassthrough 速率 0 时不应引入任何延迟/包封。 +func TestRateLimitedReaderZeroPassthrough(t *testing.T) { + src := bytes.NewReader([]byte("hello")) + rl := NewRateLimitedReader(src, 0) + if rl == src { + // 透传:返回原 reader + } else if _, ok := rl.(*rateLimitedReader); ok { + // 0 速率时按实现可走 enabled=false(不退化亦可) + } + // 关键:必须能读完 + b, err := io.ReadAll(rl) + if err != nil || string(b) != "hello" { + t.Fatalf("0 速率透传失败: %q %v", b, err) + } +} + +// TestWrapReadCloserClose 验证包裹后 Close 透传到底层。 +func TestWrapReadCloserClose(t *testing.T) { + src := &closeCount{Reader: bytes.NewReader([]byte("xyz")), closed: 0} + rc := WrapReadCloser(src, 50*1024) + if rc == nil { + t.Fatal("WrapReadCloser nil") + } + _, _ = io.ReadAll(rc) + if err := rc.Close(); err != nil { + t.Fatalf("close err: %v", err) + } + if src.closed != 1 { + t.Fatalf("底层 Close 未被调用: %d", src.closed) + } +} + +type closeCount struct { + io.Reader + closed int +} + +func (c *closeCount) Close() error { c.closed++; return nil } diff --git a/server/web/dist/assets/AdminLayout-BLFLLWhV.js b/server/web/dist/assets/AdminLayout-BLFLLWhV.js new file mode 100644 index 0000000..7eb7556 --- /dev/null +++ b/server/web/dist/assets/AdminLayout-BLFLLWhV.js @@ -0,0 +1 @@ +import{d as p,u as v,i as h,I as g,c as w,G as s,b as e,t as n,f as t,A as d,w as k,F as y,O as r,q as m,B as R,o as V}from"./index-D7AAbqvI.js";import{_ as x}from"./SiteNav.vue_vue_type_script_setup_true_lang-B5OHbKDQ.js";import{u as A}from"./auth-DjiKbqje.js";import"./admin-uFxGdgNa.js";const B={class:"admin-shell"},C={class:"admin-aside"},b={class:"aside-title"},L=["aria-label"],N={class:"admin-main"},q=p({__name:"AdminLayout",setup(S){const{t:a}=v(),u=R(),o=A(),l=h();g(async()=>{o.isAuthed&&!o.checked&&await o.verify()});async function _(){await o.logout(),l.success(a("admin.nav.loggedOut")),u.replace({name:"admin-login"})}return(F,c)=>{const i=r("RouterLink"),f=r("RouterView");return V(),w(y,null,[s(x),e("div",B,[e("aside",C,[e("div",b,n(t(a)("admin.nav.title")),1),e("nav",{class:"aside-menu","aria-label":t(a)("admin.nav.menu")},[s(i,{to:{name:"admin-files"}},{default:d(()=>[m("📁 "+n(t(a)("admin.nav.files")),1)]),_:1}),s(i,{to:{name:"admin-audit"}},{default:d(()=>[m("🛡 "+n(t(a)("admin.nav.audit")),1)]),_:1}),s(i,{to:{name:"admin-settings"}},{default:d(()=>[m("⚙️ "+n(t(a)("admin.nav.settings")),1)]),_:1}),c[0]||(c[0]=e("div",{class:"aside-sep"},null,-1)),e("a",{href:"#",onClick:k(_,["prevent"])},"🚪 "+n(t(a)("admin.nav.logout")),1)],8,L)]),e("div",N,[s(f)])])],64)}}});export{q as default}; diff --git a/server/web/dist/assets/AdminLayout-BtGxBJPS.js b/server/web/dist/assets/AdminLayout-BtGxBJPS.js new file mode 100644 index 0000000..7db7547 --- /dev/null +++ b/server/web/dist/assets/AdminLayout-BtGxBJPS.js @@ -0,0 +1 @@ +import{d as p,u as v,i as h,I as g,c as w,G as s,b as e,t as n,f as t,A as d,w as k,F as y,O as r,q as m,B as R,o as V}from"./index-QLbKGtH7.js";import{_ as x}from"./SiteNav.vue_vue_type_script_setup_true_lang-8XmHL8P7.js";import{u as A}from"./auth-Yfi2oa1E.js";import"./admin-BZX1cFNW.js";const B={class:"admin-shell"},C={class:"admin-aside"},b={class:"aside-title"},L=["aria-label"],N={class:"admin-main"},q=p({__name:"AdminLayout",setup(S){const{t:a}=v(),u=R(),o=A(),l=h();g(async()=>{o.isAuthed&&!o.checked&&await o.verify()});async function _(){await o.logout(),l.success(a("admin.nav.loggedOut")),u.replace({name:"admin-login"})}return(F,c)=>{const i=r("RouterLink"),f=r("RouterView");return V(),w(y,null,[s(x),e("div",B,[e("aside",C,[e("div",b,n(t(a)("admin.nav.title")),1),e("nav",{class:"aside-menu","aria-label":t(a)("admin.nav.menu")},[s(i,{to:{name:"admin-files"}},{default:d(()=>[m("📁 "+n(t(a)("admin.nav.files")),1)]),_:1}),s(i,{to:{name:"admin-audit"}},{default:d(()=>[m("🛡 "+n(t(a)("admin.nav.audit")),1)]),_:1}),s(i,{to:{name:"admin-settings"}},{default:d(()=>[m("⚙️ "+n(t(a)("admin.nav.settings")),1)]),_:1}),c[0]||(c[0]=e("div",{class:"aside-sep"},null,-1)),e("a",{href:"#",onClick:k(_,["prevent"])},"🚪 "+n(t(a)("admin.nav.logout")),1)],8,L)]),e("div",N,[s(f)])])],64)}}});export{q as default}; diff --git a/server/web/dist/assets/AdminLayout-CGpX2ckb.js b/server/web/dist/assets/AdminLayout-CGpX2ckb.js new file mode 100644 index 0000000..ac06e6a --- /dev/null +++ b/server/web/dist/assets/AdminLayout-CGpX2ckb.js @@ -0,0 +1 @@ +import{d as p,u as v,i as h,I as g,c as w,G as s,b as e,t as n,f as t,A as d,w as k,F as y,O as r,q as m,B as R,o as V}from"./index-DSPQyv0Z.js";import{_ as x}from"./SiteNav.vue_vue_type_script_setup_true_lang-DSt3Q6Wq.js";import{u as A}from"./auth-o4aHzrA6.js";import"./admin-IDpKsD_2.js";const B={class:"admin-shell"},C={class:"admin-aside"},b={class:"aside-title"},L=["aria-label"],N={class:"admin-main"},q=p({__name:"AdminLayout",setup(S){const{t:a}=v(),u=R(),o=A(),l=h();g(async()=>{o.isAuthed&&!o.checked&&await o.verify()});async function _(){await o.logout(),l.success(a("admin.nav.loggedOut")),u.replace({name:"admin-login"})}return(F,c)=>{const i=r("RouterLink"),f=r("RouterView");return V(),w(y,null,[s(x),e("div",B,[e("aside",C,[e("div",b,n(t(a)("admin.nav.title")),1),e("nav",{class:"aside-menu","aria-label":t(a)("admin.nav.menu")},[s(i,{to:{name:"admin-files"}},{default:d(()=>[m("📁 "+n(t(a)("admin.nav.files")),1)]),_:1}),s(i,{to:{name:"admin-audit"}},{default:d(()=>[m("🛡 "+n(t(a)("admin.nav.audit")),1)]),_:1}),s(i,{to:{name:"admin-settings"}},{default:d(()=>[m("⚙️ "+n(t(a)("admin.nav.settings")),1)]),_:1}),c[0]||(c[0]=e("div",{class:"aside-sep"},null,-1)),e("a",{href:"#",onClick:k(_,["prevent"])},"🚪 "+n(t(a)("admin.nav.logout")),1)],8,L)]),e("div",N,[s(f)])])],64)}}});export{q as default}; diff --git a/server/web/dist/assets/AuditView-CVXqXaCD.js b/server/web/dist/assets/AuditView-CVXqXaCD.js new file mode 100644 index 0000000..5e6c211 --- /dev/null +++ b/server/web/dist/assets/AuditView-CVXqXaCD.js @@ -0,0 +1 @@ +import{d as U,u as I,i as M,I as S,c as u,b as t,t as a,f as l,C as r,Z as w,D as v,w as $,q as x,F as E,r as F,G as q,j as g,R as T,H as R,K as j,e as B,$ as H,s as _,o as c,_ as L}from"./index-DSPQyv0Z.js";import{e as O}from"./admin-IDpKsD_2.js";import{_ as G}from"./Pager.vue_vue_type_script_setup_true_lang-C7hYXz3z.js";const K={class:"toolbar"},P={class:"page-title"},Z={class:"page-sub"},J={value:""},Q={value:"upload"},W={value:"download"},X={value:""},Y={value:"success"},tt={value:"failed"},et={value:"denied"},at={class:"btn",type:"submit"},nt={key:0,class:"loading-block"},lt={key:1,class:"card empty"},st={key:2,class:"table-wrap"},it={class:"table"},ot=["title"],dt={class:"code-cell"},ut={class:"ip-cell"},ct=["title"],rt=U({__name:"AuditView",setup(mt){const{t:n}=I(),z=M(),p=g([]),b=g(0),f=g(!1),o=T({action:"",result:"",ip:"",start:"",end:""}),d=T({page:1,size:20});function h(s,i=!1){if(!s)return"";const e=new Date(s);return Number.isNaN(e.getTime())?"":(i&&e.setHours(23,59,59,999),e.toISOString())}async function m(){f.value=!0;try{const s=await O({page:d.page,size:d.size,action:o.action||void 0,result:o.result||void 0,ip:o.ip.trim()||void 0,startTime:h(o.start)||void 0,endTime:h(o.end,!0)||void 0});p.value=s.data,b.value=s.total}catch(s){z.error(s instanceof R?s.msg:n("admin.audit.loadFailed"))}finally{f.value=!1}}function D(){d.page=1,m()}function V(){o.action="",o.result="",o.ip="",o.start="",o.end="",d.page=1,m()}function k(s,i){d.page=s,d.size=i,m()}function A(s){return s==="upload"?n("admin.audit.actionUpload"):s==="download"?n("admin.audit.actionDownload"):s||"-"}function y(s){return s==="success"?{cls:"badge-success",text:n("common.success")}:s==="denied"?{cls:"badge-warn",text:n("common.denied")}:s==="failed"?{cls:"badge-danger",text:n("common.failed")}:{cls:"badge-muted",text:s||"-"}}function C(s){const i=[s.deviceOs,s.deviceBrowser].filter(Boolean),e=s.deviceType?` · ${s.deviceType}`:"";return i.length?i.join(" · ")+e:"-"}function N(s){const i=s.transferredBytes;if(i==null)return"-";const e=s.sizeBytes;return e!=null&&e!==i?`${_(i)} / ${_(e)}`:_(i)}return S(m),(s,i)=>(c(),u("div",null,[t("div",K,[t("div",null,[t("h2",P,a(l(n)("admin.audit.title")),1),t("p",Z,a(l(n)("admin.audit.subtitle")),1)])]),t("form",{class:"filter-bar",onSubmit:$(D,["prevent"])},[t("label",null,[t("span",null,a(l(n)("admin.audit.action")),1),r(t("select",{"onUpdate:modelValue":i[0]||(i[0]=e=>o.action=e),class:"select"},[t("option",J,a(l(n)("common.all")),1),t("option",Q,a(l(n)("admin.audit.actionUpload")),1),t("option",W,a(l(n)("admin.audit.actionDownload")),1)],512),[[w,o.action]])]),t("label",null,[t("span",null,a(l(n)("admin.audit.result")),1),r(t("select",{"onUpdate:modelValue":i[1]||(i[1]=e=>o.result=e),class:"select"},[t("option",X,a(l(n)("common.all")),1),t("option",Y,a(l(n)("common.success")),1),t("option",tt,a(l(n)("common.failed")),1),t("option",et,a(l(n)("common.denied")),1)],512),[[w,o.result]])]),t("label",null,[t("span",null,a(l(n)("admin.audit.filterIp")),1),r(t("input",{"onUpdate:modelValue":i[2]||(i[2]=e=>o.ip=e),class:"input",placeholder:"10.0.0.1",style:{"max-width":"150px"}},null,512),[[v,o.ip]])]),t("label",null,[t("span",null,a(l(n)("admin.audit.filterStart")),1),r(t("input",{"onUpdate:modelValue":i[3]||(i[3]=e=>o.start=e),class:"input",type:"datetime-local"},null,512),[[v,o.start]])]),t("label",null,[t("span",null,a(l(n)("admin.audit.filterEnd")),1),r(t("input",{"onUpdate:modelValue":i[4]||(i[4]=e=>o.end=e),class:"input",type:"datetime-local"},null,512),[[v,o.end]])]),t("button",at,a(l(n)("common.query")),1),t("button",{class:"btn btn-ghost",type:"button",onClick:V},a(l(n)("common.reset")),1)],32),f.value?(c(),u("div",nt,[i[5]||(i[5]=t("span",{class:"spin","aria-hidden":"true"},null,-1)),x(" "+a(l(n)("common.loading")),1)])):p.value.length?(c(),u("div",st,[t("table",it,[t("thead",null,[t("tr",null,[t("th",null,a(l(n)("admin.audit.colTime")),1),t("th",null,a(l(n)("admin.audit.colAction")),1),t("th",null,a(l(n)("admin.audit.colResult")),1),t("th",null,a(l(n)("admin.audit.colFile")),1),t("th",null,a(l(n)("admin.audit.colCode")),1),t("th",null,a(l(n)("admin.audit.colBytes")),1),t("th",null,a(l(n)("admin.audit.colIp")),1),t("th",null,a(l(n)("admin.audit.colDevice")),1),t("th",null,a(l(n)("admin.audit.colDuration")),1),t("th",null,a(l(n)("admin.audit.colUaError")),1)])]),t("tbody",null,[(c(!0),u(E,null,F(p.value,e=>(c(),u("tr",{key:e.id},[t("td",null,a(l(j)(e.createdAt)),1),t("td",null,[t("span",{class:B(["badge",e.action==="upload"?"":"badge-muted"])},a(A(e.action)),3)]),t("td",null,[t("span",{class:B(["badge",y(e.result).cls])},a(y(e.result).text),3)]),t("td",{class:"wrap",title:e.fileName},a(e.fileName||"-"),9,ot),t("td",dt,a(e.fileCode||"-"),1),t("td",null,a(N(e)),1),t("td",ut,a(e.ip||"-"),1),t("td",null,a(C(e)),1),t("td",null,a(l(H)(e.durationMs)),1),t("td",{class:"wrap ua-cell",title:e.errorMsg||e.userAgent},a(e.errorMsg||e.userAgent||"-"),9,ct)]))),128))])])])):(c(),u("div",lt,[i[6]||(i[6]=t("div",{class:"empty-icon"},"🛡",-1)),x(" "+a(l(n)("admin.audit.empty")),1)])),q(G,{page:d.page,size:d.size,total:b.value,onChange:k},null,8,["page","size","total"])]))}}),gt=L(rt,[["__scopeId","data-v-dcdef1a5"]]);export{gt as default}; diff --git a/server/web/dist/assets/AuditView-QQ5no24L.js b/server/web/dist/assets/AuditView-QQ5no24L.js new file mode 100644 index 0000000..f1f9fba --- /dev/null +++ b/server/web/dist/assets/AuditView-QQ5no24L.js @@ -0,0 +1 @@ +import{d as U,u as I,i as M,I as S,c as u,b as t,t as a,f as l,C as r,Z as w,D as v,w as $,q as x,F as E,r as F,G as q,j as g,R as T,H as R,K as j,e as B,$ as H,s as _,o as c,_ as L}from"./index-QLbKGtH7.js";import{e as O}from"./admin-BZX1cFNW.js";import{_ as G}from"./Pager.vue_vue_type_script_setup_true_lang-pYdn-As_.js";const K={class:"toolbar"},P={class:"page-title"},Z={class:"page-sub"},J={value:""},Q={value:"upload"},W={value:"download"},X={value:""},Y={value:"success"},tt={value:"failed"},et={value:"denied"},at={class:"btn",type:"submit"},nt={key:0,class:"loading-block"},lt={key:1,class:"card empty"},st={key:2,class:"table-wrap"},it={class:"table"},ot=["title"],dt={class:"code-cell"},ut={class:"ip-cell"},ct=["title"],rt=U({__name:"AuditView",setup(mt){const{t:n}=I(),z=M(),p=g([]),b=g(0),f=g(!1),o=T({action:"",result:"",ip:"",start:"",end:""}),d=T({page:1,size:20});function h(s,i=!1){if(!s)return"";const e=new Date(s);return Number.isNaN(e.getTime())?"":(i&&e.setHours(23,59,59,999),e.toISOString())}async function m(){f.value=!0;try{const s=await O({page:d.page,size:d.size,action:o.action||void 0,result:o.result||void 0,ip:o.ip.trim()||void 0,startTime:h(o.start)||void 0,endTime:h(o.end,!0)||void 0});p.value=s.data,b.value=s.total}catch(s){z.error(s instanceof R?s.msg:n("admin.audit.loadFailed"))}finally{f.value=!1}}function D(){d.page=1,m()}function V(){o.action="",o.result="",o.ip="",o.start="",o.end="",d.page=1,m()}function k(s,i){d.page=s,d.size=i,m()}function A(s){return s==="upload"?n("admin.audit.actionUpload"):s==="download"?n("admin.audit.actionDownload"):s||"-"}function y(s){return s==="success"?{cls:"badge-success",text:n("common.success")}:s==="denied"?{cls:"badge-warn",text:n("common.denied")}:s==="failed"?{cls:"badge-danger",text:n("common.failed")}:{cls:"badge-muted",text:s||"-"}}function C(s){const i=[s.deviceOs,s.deviceBrowser].filter(Boolean),e=s.deviceType?` · ${s.deviceType}`:"";return i.length?i.join(" · ")+e:"-"}function N(s){const i=s.transferredBytes;if(i==null)return"-";const e=s.sizeBytes;return e!=null&&e!==i?`${_(i)} / ${_(e)}`:_(i)}return S(m),(s,i)=>(c(),u("div",null,[t("div",K,[t("div",null,[t("h2",P,a(l(n)("admin.audit.title")),1),t("p",Z,a(l(n)("admin.audit.subtitle")),1)])]),t("form",{class:"filter-bar",onSubmit:$(D,["prevent"])},[t("label",null,[t("span",null,a(l(n)("admin.audit.action")),1),r(t("select",{"onUpdate:modelValue":i[0]||(i[0]=e=>o.action=e),class:"select"},[t("option",J,a(l(n)("common.all")),1),t("option",Q,a(l(n)("admin.audit.actionUpload")),1),t("option",W,a(l(n)("admin.audit.actionDownload")),1)],512),[[w,o.action]])]),t("label",null,[t("span",null,a(l(n)("admin.audit.result")),1),r(t("select",{"onUpdate:modelValue":i[1]||(i[1]=e=>o.result=e),class:"select"},[t("option",X,a(l(n)("common.all")),1),t("option",Y,a(l(n)("common.success")),1),t("option",tt,a(l(n)("common.failed")),1),t("option",et,a(l(n)("common.denied")),1)],512),[[w,o.result]])]),t("label",null,[t("span",null,a(l(n)("admin.audit.filterIp")),1),r(t("input",{"onUpdate:modelValue":i[2]||(i[2]=e=>o.ip=e),class:"input",placeholder:"10.0.0.1",style:{"max-width":"150px"}},null,512),[[v,o.ip]])]),t("label",null,[t("span",null,a(l(n)("admin.audit.filterStart")),1),r(t("input",{"onUpdate:modelValue":i[3]||(i[3]=e=>o.start=e),class:"input",type:"datetime-local"},null,512),[[v,o.start]])]),t("label",null,[t("span",null,a(l(n)("admin.audit.filterEnd")),1),r(t("input",{"onUpdate:modelValue":i[4]||(i[4]=e=>o.end=e),class:"input",type:"datetime-local"},null,512),[[v,o.end]])]),t("button",at,a(l(n)("common.query")),1),t("button",{class:"btn btn-ghost",type:"button",onClick:V},a(l(n)("common.reset")),1)],32),f.value?(c(),u("div",nt,[i[5]||(i[5]=t("span",{class:"spin","aria-hidden":"true"},null,-1)),x(" "+a(l(n)("common.loading")),1)])):p.value.length?(c(),u("div",st,[t("table",it,[t("thead",null,[t("tr",null,[t("th",null,a(l(n)("admin.audit.colTime")),1),t("th",null,a(l(n)("admin.audit.colAction")),1),t("th",null,a(l(n)("admin.audit.colResult")),1),t("th",null,a(l(n)("admin.audit.colFile")),1),t("th",null,a(l(n)("admin.audit.colCode")),1),t("th",null,a(l(n)("admin.audit.colBytes")),1),t("th",null,a(l(n)("admin.audit.colIp")),1),t("th",null,a(l(n)("admin.audit.colDevice")),1),t("th",null,a(l(n)("admin.audit.colDuration")),1),t("th",null,a(l(n)("admin.audit.colUaError")),1)])]),t("tbody",null,[(c(!0),u(E,null,F(p.value,e=>(c(),u("tr",{key:e.id},[t("td",null,a(l(j)(e.createdAt)),1),t("td",null,[t("span",{class:B(["badge",e.action==="upload"?"":"badge-muted"])},a(A(e.action)),3)]),t("td",null,[t("span",{class:B(["badge",y(e.result).cls])},a(y(e.result).text),3)]),t("td",{class:"wrap",title:e.fileName},a(e.fileName||"-"),9,ot),t("td",dt,a(e.fileCode||"-"),1),t("td",null,a(N(e)),1),t("td",ut,a(e.ip||"-"),1),t("td",null,a(C(e)),1),t("td",null,a(l(H)(e.durationMs)),1),t("td",{class:"wrap ua-cell",title:e.errorMsg||e.userAgent},a(e.errorMsg||e.userAgent||"-"),9,ct)]))),128))])])])):(c(),u("div",lt,[i[6]||(i[6]=t("div",{class:"empty-icon"},"🛡",-1)),x(" "+a(l(n)("admin.audit.empty")),1)])),q(G,{page:d.page,size:d.size,total:b.value,onChange:k},null,8,["page","size","total"])]))}}),gt=L(rt,[["__scopeId","data-v-dcdef1a5"]]);export{gt as default}; diff --git a/server/web/dist/assets/AuditView-TNYuJPHS.js b/server/web/dist/assets/AuditView-TNYuJPHS.js new file mode 100644 index 0000000..4990ff8 --- /dev/null +++ b/server/web/dist/assets/AuditView-TNYuJPHS.js @@ -0,0 +1 @@ +import{d as U,u as I,i as M,I as S,c as u,b as t,t as a,f as l,C as r,Z as w,D as v,w as $,q as x,F as E,r as F,G as q,j as g,R as T,H as R,K as j,e as B,$ as H,s as _,o as c,_ as L}from"./index-D7AAbqvI.js";import{e as O}from"./admin-uFxGdgNa.js";import{_ as G}from"./Pager.vue_vue_type_script_setup_true_lang-g_dGRh7Y.js";const K={class:"toolbar"},P={class:"page-title"},Z={class:"page-sub"},J={value:""},Q={value:"upload"},W={value:"download"},X={value:""},Y={value:"success"},tt={value:"failed"},et={value:"denied"},at={class:"btn",type:"submit"},nt={key:0,class:"loading-block"},lt={key:1,class:"card empty"},st={key:2,class:"table-wrap"},it={class:"table"},ot=["title"],dt={class:"code-cell"},ut={class:"ip-cell"},ct=["title"],rt=U({__name:"AuditView",setup(mt){const{t:n}=I(),z=M(),p=g([]),b=g(0),f=g(!1),o=T({action:"",result:"",ip:"",start:"",end:""}),d=T({page:1,size:20});function h(s,i=!1){if(!s)return"";const e=new Date(s);return Number.isNaN(e.getTime())?"":(i&&e.setHours(23,59,59,999),e.toISOString())}async function m(){f.value=!0;try{const s=await O({page:d.page,size:d.size,action:o.action||void 0,result:o.result||void 0,ip:o.ip.trim()||void 0,startTime:h(o.start)||void 0,endTime:h(o.end,!0)||void 0});p.value=s.data,b.value=s.total}catch(s){z.error(s instanceof R?s.msg:n("admin.audit.loadFailed"))}finally{f.value=!1}}function D(){d.page=1,m()}function V(){o.action="",o.result="",o.ip="",o.start="",o.end="",d.page=1,m()}function k(s,i){d.page=s,d.size=i,m()}function A(s){return s==="upload"?n("admin.audit.actionUpload"):s==="download"?n("admin.audit.actionDownload"):s||"-"}function y(s){return s==="success"?{cls:"badge-success",text:n("common.success")}:s==="denied"?{cls:"badge-warn",text:n("common.denied")}:s==="failed"?{cls:"badge-danger",text:n("common.failed")}:{cls:"badge-muted",text:s||"-"}}function C(s){const i=[s.deviceOs,s.deviceBrowser].filter(Boolean),e=s.deviceType?` · ${s.deviceType}`:"";return i.length?i.join(" · ")+e:"-"}function N(s){const i=s.transferredBytes;if(i==null)return"-";const e=s.sizeBytes;return e!=null&&e!==i?`${_(i)} / ${_(e)}`:_(i)}return S(m),(s,i)=>(c(),u("div",null,[t("div",K,[t("div",null,[t("h2",P,a(l(n)("admin.audit.title")),1),t("p",Z,a(l(n)("admin.audit.subtitle")),1)])]),t("form",{class:"filter-bar",onSubmit:$(D,["prevent"])},[t("label",null,[t("span",null,a(l(n)("admin.audit.action")),1),r(t("select",{"onUpdate:modelValue":i[0]||(i[0]=e=>o.action=e),class:"select"},[t("option",J,a(l(n)("common.all")),1),t("option",Q,a(l(n)("admin.audit.actionUpload")),1),t("option",W,a(l(n)("admin.audit.actionDownload")),1)],512),[[w,o.action]])]),t("label",null,[t("span",null,a(l(n)("admin.audit.result")),1),r(t("select",{"onUpdate:modelValue":i[1]||(i[1]=e=>o.result=e),class:"select"},[t("option",X,a(l(n)("common.all")),1),t("option",Y,a(l(n)("common.success")),1),t("option",tt,a(l(n)("common.failed")),1),t("option",et,a(l(n)("common.denied")),1)],512),[[w,o.result]])]),t("label",null,[t("span",null,a(l(n)("admin.audit.filterIp")),1),r(t("input",{"onUpdate:modelValue":i[2]||(i[2]=e=>o.ip=e),class:"input",placeholder:"10.0.0.1",style:{"max-width":"150px"}},null,512),[[v,o.ip]])]),t("label",null,[t("span",null,a(l(n)("admin.audit.filterStart")),1),r(t("input",{"onUpdate:modelValue":i[3]||(i[3]=e=>o.start=e),class:"input",type:"datetime-local"},null,512),[[v,o.start]])]),t("label",null,[t("span",null,a(l(n)("admin.audit.filterEnd")),1),r(t("input",{"onUpdate:modelValue":i[4]||(i[4]=e=>o.end=e),class:"input",type:"datetime-local"},null,512),[[v,o.end]])]),t("button",at,a(l(n)("common.query")),1),t("button",{class:"btn btn-ghost",type:"button",onClick:V},a(l(n)("common.reset")),1)],32),f.value?(c(),u("div",nt,[i[5]||(i[5]=t("span",{class:"spin","aria-hidden":"true"},null,-1)),x(" "+a(l(n)("common.loading")),1)])):p.value.length?(c(),u("div",st,[t("table",it,[t("thead",null,[t("tr",null,[t("th",null,a(l(n)("admin.audit.colTime")),1),t("th",null,a(l(n)("admin.audit.colAction")),1),t("th",null,a(l(n)("admin.audit.colResult")),1),t("th",null,a(l(n)("admin.audit.colFile")),1),t("th",null,a(l(n)("admin.audit.colCode")),1),t("th",null,a(l(n)("admin.audit.colBytes")),1),t("th",null,a(l(n)("admin.audit.colIp")),1),t("th",null,a(l(n)("admin.audit.colDevice")),1),t("th",null,a(l(n)("admin.audit.colDuration")),1),t("th",null,a(l(n)("admin.audit.colUaError")),1)])]),t("tbody",null,[(c(!0),u(E,null,F(p.value,e=>(c(),u("tr",{key:e.id},[t("td",null,a(l(j)(e.createdAt)),1),t("td",null,[t("span",{class:B(["badge",e.action==="upload"?"":"badge-muted"])},a(A(e.action)),3)]),t("td",null,[t("span",{class:B(["badge",y(e.result).cls])},a(y(e.result).text),3)]),t("td",{class:"wrap",title:e.fileName},a(e.fileName||"-"),9,ot),t("td",dt,a(e.fileCode||"-"),1),t("td",null,a(N(e)),1),t("td",ut,a(e.ip||"-"),1),t("td",null,a(C(e)),1),t("td",null,a(l(H)(e.durationMs)),1),t("td",{class:"wrap ua-cell",title:e.errorMsg||e.userAgent},a(e.errorMsg||e.userAgent||"-"),9,ct)]))),128))])])])):(c(),u("div",lt,[i[6]||(i[6]=t("div",{class:"empty-icon"},"🛡",-1)),x(" "+a(l(n)("admin.audit.empty")),1)])),q(G,{page:d.page,size:d.size,total:b.value,onChange:k},null,8,["page","size","total"])]))}}),gt=L(rt,[["__scopeId","data-v-dcdef1a5"]]);export{gt as default}; diff --git a/server/web/dist/assets/DocsView-6gYCnmr9.js b/server/web/dist/assets/DocsView-6gYCnmr9.js new file mode 100644 index 0000000..a1622cf --- /dev/null +++ b/server/web/dist/assets/DocsView-6gYCnmr9.js @@ -0,0 +1 @@ +import{d as R,u as V,i as z,j as y,I,J as $,z as E,A as O,N as W,b as c,C as j,D as G,f as h,c as l,q as x,t as u,F as C,r as A,w as T,e as M,g as S,h as H,B as K,o as r}from"./index-D7AAbqvI.js";import{P as U}from"./PageShell-D3dyUalL.js";import{d as B,a as J,l as Q}from"./docsSource-CuVILP5D.js";import{k as X}from"./markdown-B5D8JARp.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-B5OHbKDQ.js";function Y(m,o){const n=m.toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").trim().replace(/\s+/g,"-")||"section";let d=n,i=2;for(;o.has(d);)d=`${n}-${i++}`;return o.add(d),d}const Z=new Set(["script","style","iframe","object","embed","form","link","meta","base","svg","math","frame","frameset","applet","template","noscript","title"]),tt=new Set(["srcdoc","sandbox","formaction","action","xlink:href","srcset","poster","background","dynsrc","lowsrc","data"]);function et(m,o){const n=m.trim();return o&&/^data:image\//i.test(n)?!0:/^(https?:|mailto:|\/|#|\.\/)/i.test(n)||!/^[a-z][a-z0-9+.-]*:/i.test(n)}function st(m){const o=new DOMParser().parseFromString(m,"text/html");for(const n of[...o.body.querySelectorAll("*")]){const d=n.tagName.toLowerCase();if(Z.has(d)){n.remove();continue}for(const i of[...n.attributes]){const e=i.name.toLowerCase();if(e.startsWith("on")||tt.has(e)){n.removeAttribute(i.name);continue}(e==="href"||e==="src"||e.endsWith(":src")||e.endsWith(":href"))&&!et(i.value,e==="src")&&n.removeAttribute(i.name)}}return o.body.innerHTML}function ot(m){const o=X.parse(m,{gfm:!0,breaks:!1}),n=new DOMParser().parseFromString(o,"text/html");for(const e of[...n.body.querySelectorAll("a[href]")]){const f=e.getAttribute("href")??"";/^https?:\/\//i.test(f)&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))}const d=new Set,i=[];for(const e of[...n.body.querySelectorAll("h1, h2, h3")]){const f=Number(e.tagName.substring(1)),p=(e.textContent??"").trim();if(!p)continue;const v=Y(p,d);e.setAttribute("id",v),f>=2&&i.push({id:v,text:p,level:f})}return{html:st(n.body.innerHTML),toc:i}}const nt={class:"docs-shell"},at={class:"docs-sidebar"},rt=["placeholder"],lt={key:0,class:"empty",style:{padding:"20px 8px"}},ct={class:"hint"},it=["aria-label"],ut=["onClick"],dt={key:0,class:"badge badge-muted",style:{"margin-left":"6px"}},ht={key:0,class:"hint",style:{padding:"0 11px"}},mt={key:1,class:"doc-toc"},ft={class:"toc-title"},pt=["href","onClick"],vt={class:"docs-content"},gt={key:0,class:"loading-block"},yt={key:1,class:"empty"},_t={style:{"font-weight":"600",color:"var(--c-text)"}},bt={class:"hint",style:{"max-width":"420px",margin:"0 auto"}},kt={key:2,class:"empty"},wt=["innerHTML"],At=R({__name:"DocsView",setup(m){const{t:o}=V(),n=W(),d=K(),i=z(),e=y([...B]),f=y(""),p=y(""),v=y(""),_=y([]),k=y(!1),b=y("");I(async()=>{const a=await J();a.length&&(e.value=[...B,...a]),L()});const N=()=>{if(typeof n.params.slug=="string")return n.params.slug;const a=n.query.p;return typeof a=="string"?a:""};async function L(){const a=N(),s=e.value;if(!s.length)return;const t=s.find(g=>g.slug===a)??s[0];if(t&&!(t.slug===f.value&&p.value)){f.value=t.slug,k.value=!0;try{p.value=await Q(t);const{html:g,toc:P}=ot(p.value);v.value=g,_.value=P}catch{v.value="",_.value=[],i.error(o("docs.loadFailed",{title:t.title}))}finally{k.value=!1}}}$(()=>n.fullPath,()=>{L()});function F(a){d.push({name:"docs-detail",params:{slug:a}})}function q(a){document.getElementById(a)?.scrollIntoView({behavior:"smooth"})}const D=H(()=>{const a=b.value.trim().toLowerCase();return a?e.value.map(s=>{const g=(s.embedded??"").toLowerCase().split(a).length-1+(s.title.toLowerCase().includes(a)?1:0);return{doc:s,hits:g}}).filter(s=>s.hits>0).sort((s,t)=>t.hits-s.hits):e.value.map(s=>({doc:s,hits:-1}))}),w=H(()=>b.value.trim().length>0);return(a,s)=>(r(),E(U,null,{default:O(()=>[c("div",nt,[c("aside",at,[j(c("input",{"onUpdate:modelValue":s[0]||(s[0]=t=>b.value=t),class:"input docs-search",placeholder:h(o)("docs.searchPlaceholder")},null,8,rt),[[G,b.value]]),e.value.length?(r(),l(C,{key:1},[c("nav",{class:"doc-list","aria-label":h(o)("docs.sidebar")},[(r(!0),l(C,null,A(D.value,t=>(r(),l("a",{key:t.doc.slug,class:M({active:t.doc.slug===f.value}),href:"#",onClick:T(g=>F(t.doc.slug),["prevent"])},[x(u(t.doc.title)+" ",1),w.value&&t.hits>0?(r(),l("span",dt,u(t.hits),1)):S("",!0)],10,ut))),128))],8,it),w.value&&!D.value.length?(r(),l("p",ht,u(h(o)("docs.noMatch")),1)):S("",!0),_.value.length&&!w.value?(r(),l("div",mt,[c("div",ft,u(h(o)("docs.tocTitle")),1),(r(!0),l(C,null,A(_.value,t=>(r(),l("a",{key:t.id,href:`#${t.id}`,class:M({"lvl-3":t.level>=3}),onClick:T(g=>q(t.id),["prevent"])},u(t.text),11,pt))),128))])):S("",!0)],64)):(r(),l("div",lt,[x(u(h(o)("docs.notGenerated")),1),s[1]||(s[1]=c("br",null,null,-1)),c("span",ct,u(h(o)("docs.buildHint")),1)]))]),c("article",vt,[k.value?(r(),l("div",gt,[s[2]||(s[2]=c("span",{class:"spin","aria-hidden":"true"},null,-1)),x(" "+u(h(o)("docs.loading")),1)])):e.value.length?v.value?(r(),l("div",{key:3,class:"markdown-body",innerHTML:v.value},null,8,wt)):(r(),l("div",kt,u(h(o)("docs.emptyContent")),1)):(r(),l("div",yt,[s[3]||(s[3]=c("div",{class:"empty-icon"},"📚",-1)),c("p",_t,u(h(o)("docs.preparing")),1),c("p",bt,u(h(o)("docs.preparingHint")),1)]))])])]),_:1}))}});export{At as default}; diff --git a/server/web/dist/assets/DocsView-C0zns43R.js b/server/web/dist/assets/DocsView-C0zns43R.js new file mode 100644 index 0000000..6908696 --- /dev/null +++ b/server/web/dist/assets/DocsView-C0zns43R.js @@ -0,0 +1 @@ +import{d as R,u as V,i as z,j as y,I,J as $,z as E,A as O,N as W,b as c,C as j,D as G,f as h,c as l,q as x,t as u,F as C,r as A,w as T,e as M,g as S,h as H,B as K,o as r}from"./index-QLbKGtH7.js";import{P as U}from"./PageShell-D1DY7qw8.js";import{d as B,a as J,l as Q}from"./docsSource-sXvNoXdF.js";import{k as X}from"./markdown-B5D8JARp.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-8XmHL8P7.js";function Y(m,o){const n=m.toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").trim().replace(/\s+/g,"-")||"section";let d=n,i=2;for(;o.has(d);)d=`${n}-${i++}`;return o.add(d),d}const Z=new Set(["script","style","iframe","object","embed","form","link","meta","base","svg","math","frame","frameset","applet","template","noscript","title"]),tt=new Set(["srcdoc","sandbox","formaction","action","xlink:href","srcset","poster","background","dynsrc","lowsrc","data"]);function et(m,o){const n=m.trim();return o&&/^data:image\//i.test(n)?!0:/^(https?:|mailto:|\/|#|\.\/)/i.test(n)||!/^[a-z][a-z0-9+.-]*:/i.test(n)}function st(m){const o=new DOMParser().parseFromString(m,"text/html");for(const n of[...o.body.querySelectorAll("*")]){const d=n.tagName.toLowerCase();if(Z.has(d)){n.remove();continue}for(const i of[...n.attributes]){const e=i.name.toLowerCase();if(e.startsWith("on")||tt.has(e)){n.removeAttribute(i.name);continue}(e==="href"||e==="src"||e.endsWith(":src")||e.endsWith(":href"))&&!et(i.value,e==="src")&&n.removeAttribute(i.name)}}return o.body.innerHTML}function ot(m){const o=X.parse(m,{gfm:!0,breaks:!1}),n=new DOMParser().parseFromString(o,"text/html");for(const e of[...n.body.querySelectorAll("a[href]")]){const f=e.getAttribute("href")??"";/^https?:\/\//i.test(f)&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))}const d=new Set,i=[];for(const e of[...n.body.querySelectorAll("h1, h2, h3")]){const f=Number(e.tagName.substring(1)),p=(e.textContent??"").trim();if(!p)continue;const v=Y(p,d);e.setAttribute("id",v),f>=2&&i.push({id:v,text:p,level:f})}return{html:st(n.body.innerHTML),toc:i}}const nt={class:"docs-shell"},at={class:"docs-sidebar"},rt=["placeholder"],lt={key:0,class:"empty",style:{padding:"20px 8px"}},ct={class:"hint"},it=["aria-label"],ut=["onClick"],dt={key:0,class:"badge badge-muted",style:{"margin-left":"6px"}},ht={key:0,class:"hint",style:{padding:"0 11px"}},mt={key:1,class:"doc-toc"},ft={class:"toc-title"},pt=["href","onClick"],vt={class:"docs-content"},gt={key:0,class:"loading-block"},yt={key:1,class:"empty"},_t={style:{"font-weight":"600",color:"var(--c-text)"}},bt={class:"hint",style:{"max-width":"420px",margin:"0 auto"}},kt={key:2,class:"empty"},wt=["innerHTML"],At=R({__name:"DocsView",setup(m){const{t:o}=V(),n=W(),d=K(),i=z(),e=y([...B]),f=y(""),p=y(""),v=y(""),_=y([]),k=y(!1),b=y("");I(async()=>{const a=await J();a.length&&(e.value=[...B,...a]),L()});const N=()=>{if(typeof n.params.slug=="string")return n.params.slug;const a=n.query.p;return typeof a=="string"?a:""};async function L(){const a=N(),s=e.value;if(!s.length)return;const t=s.find(g=>g.slug===a)??s[0];if(t&&!(t.slug===f.value&&p.value)){f.value=t.slug,k.value=!0;try{p.value=await Q(t);const{html:g,toc:P}=ot(p.value);v.value=g,_.value=P}catch{v.value="",_.value=[],i.error(o("docs.loadFailed",{title:t.title}))}finally{k.value=!1}}}$(()=>n.fullPath,()=>{L()});function F(a){d.push({name:"docs-detail",params:{slug:a}})}function q(a){document.getElementById(a)?.scrollIntoView({behavior:"smooth"})}const D=H(()=>{const a=b.value.trim().toLowerCase();return a?e.value.map(s=>{const g=(s.embedded??"").toLowerCase().split(a).length-1+(s.title.toLowerCase().includes(a)?1:0);return{doc:s,hits:g}}).filter(s=>s.hits>0).sort((s,t)=>t.hits-s.hits):e.value.map(s=>({doc:s,hits:-1}))}),w=H(()=>b.value.trim().length>0);return(a,s)=>(r(),E(U,null,{default:O(()=>[c("div",nt,[c("aside",at,[j(c("input",{"onUpdate:modelValue":s[0]||(s[0]=t=>b.value=t),class:"input docs-search",placeholder:h(o)("docs.searchPlaceholder")},null,8,rt),[[G,b.value]]),e.value.length?(r(),l(C,{key:1},[c("nav",{class:"doc-list","aria-label":h(o)("docs.sidebar")},[(r(!0),l(C,null,A(D.value,t=>(r(),l("a",{key:t.doc.slug,class:M({active:t.doc.slug===f.value}),href:"#",onClick:T(g=>F(t.doc.slug),["prevent"])},[x(u(t.doc.title)+" ",1),w.value&&t.hits>0?(r(),l("span",dt,u(t.hits),1)):S("",!0)],10,ut))),128))],8,it),w.value&&!D.value.length?(r(),l("p",ht,u(h(o)("docs.noMatch")),1)):S("",!0),_.value.length&&!w.value?(r(),l("div",mt,[c("div",ft,u(h(o)("docs.tocTitle")),1),(r(!0),l(C,null,A(_.value,t=>(r(),l("a",{key:t.id,href:`#${t.id}`,class:M({"lvl-3":t.level>=3}),onClick:T(g=>q(t.id),["prevent"])},u(t.text),11,pt))),128))])):S("",!0)],64)):(r(),l("div",lt,[x(u(h(o)("docs.notGenerated")),1),s[1]||(s[1]=c("br",null,null,-1)),c("span",ct,u(h(o)("docs.buildHint")),1)]))]),c("article",vt,[k.value?(r(),l("div",gt,[s[2]||(s[2]=c("span",{class:"spin","aria-hidden":"true"},null,-1)),x(" "+u(h(o)("docs.loading")),1)])):e.value.length?v.value?(r(),l("div",{key:3,class:"markdown-body",innerHTML:v.value},null,8,wt)):(r(),l("div",kt,u(h(o)("docs.emptyContent")),1)):(r(),l("div",yt,[s[3]||(s[3]=c("div",{class:"empty-icon"},"📚",-1)),c("p",_t,u(h(o)("docs.preparing")),1),c("p",bt,u(h(o)("docs.preparingHint")),1)]))])])]),_:1}))}});export{At as default}; diff --git a/server/web/dist/assets/DocsView-DA7M6gnZ.js b/server/web/dist/assets/DocsView-DA7M6gnZ.js new file mode 100644 index 0000000..df70446 --- /dev/null +++ b/server/web/dist/assets/DocsView-DA7M6gnZ.js @@ -0,0 +1 @@ +import{d as R,u as V,i as z,j as y,I,J as $,z as E,A as O,N as W,b as c,C as j,D as G,f as h,c as l,q as x,t as u,F as C,r as A,w as T,e as M,g as S,h as H,B as K,o as r}from"./index-DSPQyv0Z.js";import{P as U}from"./PageShell-Bv1Rpp4p.js";import{d as B,a as J,l as Q}from"./docsSource-CDKA_IVC.js";import{k as X}from"./markdown-B5D8JARp.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-DSt3Q6Wq.js";function Y(m,o){const n=m.toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").trim().replace(/\s+/g,"-")||"section";let d=n,i=2;for(;o.has(d);)d=`${n}-${i++}`;return o.add(d),d}const Z=new Set(["script","style","iframe","object","embed","form","link","meta","base","svg","math","frame","frameset","applet","template","noscript","title"]),tt=new Set(["srcdoc","sandbox","formaction","action","xlink:href","srcset","poster","background","dynsrc","lowsrc","data"]);function et(m,o){const n=m.trim();return o&&/^data:image\//i.test(n)?!0:/^(https?:|mailto:|\/|#|\.\/)/i.test(n)||!/^[a-z][a-z0-9+.-]*:/i.test(n)}function st(m){const o=new DOMParser().parseFromString(m,"text/html");for(const n of[...o.body.querySelectorAll("*")]){const d=n.tagName.toLowerCase();if(Z.has(d)){n.remove();continue}for(const i of[...n.attributes]){const e=i.name.toLowerCase();if(e.startsWith("on")||tt.has(e)){n.removeAttribute(i.name);continue}(e==="href"||e==="src"||e.endsWith(":src")||e.endsWith(":href"))&&!et(i.value,e==="src")&&n.removeAttribute(i.name)}}return o.body.innerHTML}function ot(m){const o=X.parse(m,{gfm:!0,breaks:!1}),n=new DOMParser().parseFromString(o,"text/html");for(const e of[...n.body.querySelectorAll("a[href]")]){const f=e.getAttribute("href")??"";/^https?:\/\//i.test(f)&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))}const d=new Set,i=[];for(const e of[...n.body.querySelectorAll("h1, h2, h3")]){const f=Number(e.tagName.substring(1)),p=(e.textContent??"").trim();if(!p)continue;const v=Y(p,d);e.setAttribute("id",v),f>=2&&i.push({id:v,text:p,level:f})}return{html:st(n.body.innerHTML),toc:i}}const nt={class:"docs-shell"},at={class:"docs-sidebar"},rt=["placeholder"],lt={key:0,class:"empty",style:{padding:"20px 8px"}},ct={class:"hint"},it=["aria-label"],ut=["onClick"],dt={key:0,class:"badge badge-muted",style:{"margin-left":"6px"}},ht={key:0,class:"hint",style:{padding:"0 11px"}},mt={key:1,class:"doc-toc"},ft={class:"toc-title"},pt=["href","onClick"],vt={class:"docs-content"},gt={key:0,class:"loading-block"},yt={key:1,class:"empty"},_t={style:{"font-weight":"600",color:"var(--c-text)"}},bt={class:"hint",style:{"max-width":"420px",margin:"0 auto"}},kt={key:2,class:"empty"},wt=["innerHTML"],At=R({__name:"DocsView",setup(m){const{t:o}=V(),n=W(),d=K(),i=z(),e=y([...B]),f=y(""),p=y(""),v=y(""),_=y([]),k=y(!1),b=y("");I(async()=>{const a=await J();a.length&&(e.value=[...B,...a]),L()});const N=()=>{if(typeof n.params.slug=="string")return n.params.slug;const a=n.query.p;return typeof a=="string"?a:""};async function L(){const a=N(),s=e.value;if(!s.length)return;const t=s.find(g=>g.slug===a)??s[0];if(t&&!(t.slug===f.value&&p.value)){f.value=t.slug,k.value=!0;try{p.value=await Q(t);const{html:g,toc:P}=ot(p.value);v.value=g,_.value=P}catch{v.value="",_.value=[],i.error(o("docs.loadFailed",{title:t.title}))}finally{k.value=!1}}}$(()=>n.fullPath,()=>{L()});function F(a){d.push({name:"docs-detail",params:{slug:a}})}function q(a){document.getElementById(a)?.scrollIntoView({behavior:"smooth"})}const D=H(()=>{const a=b.value.trim().toLowerCase();return a?e.value.map(s=>{const g=(s.embedded??"").toLowerCase().split(a).length-1+(s.title.toLowerCase().includes(a)?1:0);return{doc:s,hits:g}}).filter(s=>s.hits>0).sort((s,t)=>t.hits-s.hits):e.value.map(s=>({doc:s,hits:-1}))}),w=H(()=>b.value.trim().length>0);return(a,s)=>(r(),E(U,null,{default:O(()=>[c("div",nt,[c("aside",at,[j(c("input",{"onUpdate:modelValue":s[0]||(s[0]=t=>b.value=t),class:"input docs-search",placeholder:h(o)("docs.searchPlaceholder")},null,8,rt),[[G,b.value]]),e.value.length?(r(),l(C,{key:1},[c("nav",{class:"doc-list","aria-label":h(o)("docs.sidebar")},[(r(!0),l(C,null,A(D.value,t=>(r(),l("a",{key:t.doc.slug,class:M({active:t.doc.slug===f.value}),href:"#",onClick:T(g=>F(t.doc.slug),["prevent"])},[x(u(t.doc.title)+" ",1),w.value&&t.hits>0?(r(),l("span",dt,u(t.hits),1)):S("",!0)],10,ut))),128))],8,it),w.value&&!D.value.length?(r(),l("p",ht,u(h(o)("docs.noMatch")),1)):S("",!0),_.value.length&&!w.value?(r(),l("div",mt,[c("div",ft,u(h(o)("docs.tocTitle")),1),(r(!0),l(C,null,A(_.value,t=>(r(),l("a",{key:t.id,href:`#${t.id}`,class:M({"lvl-3":t.level>=3}),onClick:T(g=>q(t.id),["prevent"])},u(t.text),11,pt))),128))])):S("",!0)],64)):(r(),l("div",lt,[x(u(h(o)("docs.notGenerated")),1),s[1]||(s[1]=c("br",null,null,-1)),c("span",ct,u(h(o)("docs.buildHint")),1)]))]),c("article",vt,[k.value?(r(),l("div",gt,[s[2]||(s[2]=c("span",{class:"spin","aria-hidden":"true"},null,-1)),x(" "+u(h(o)("docs.loading")),1)])):e.value.length?v.value?(r(),l("div",{key:3,class:"markdown-body",innerHTML:v.value},null,8,wt)):(r(),l("div",kt,u(h(o)("docs.emptyContent")),1)):(r(),l("div",yt,[s[3]||(s[3]=c("div",{class:"empty-icon"},"📚",-1)),c("p",_t,u(h(o)("docs.preparing")),1),c("p",bt,u(h(o)("docs.preparingHint")),1)]))])])]),_:1}))}});export{At as default}; diff --git a/server/web/dist/assets/FilesView-CmMTGitv.js b/server/web/dist/assets/FilesView-CmMTGitv.js new file mode 100644 index 0000000..f14ae09 --- /dev/null +++ b/server/web/dist/assets/FilesView-CmMTGitv.js @@ -0,0 +1 @@ +import{d as N,I as V,P as Y,z as J,c as f,w as $,b as e,t as a,Q as X,n as Z,g as L,T as ee,o as p,u as te,a as ne,i as ie,f as l,C as S,D as T,q as z,F as se,r as le,G as D,A as ae,j as _,R as A,H as x,e as B,s as oe,K as E,k as w,p as de,M as ce}from"./index-D7AAbqvI.js";import{a as ue,b as re,c as me,d as pe}from"./admin-uFxGdgNa.js";import{p as fe}from"./share-x2wQCCnt.js";import{_ as he}from"./Pager.vue_vue_type_script_setup_true_lang-g_dGRh7Y.js";const be=["aria-label"],ve={class:"modal-title"},ge=N({__name:"AppModal",props:{open:{type:Boolean},title:{},width:{}},emits:["close"],setup(h,{emit:t}){const k=h,d=t;function r(b){b.key==="Escape"&&k.open&&d("close")}return V(()=>document.addEventListener("keydown",r)),Y(()=>document.removeEventListener("keydown",r)),(b,g)=>(p(),J(ee,{to:"body"},[h.open?(p(),f("div",{key:0,class:"modal-overlay",onClick:g[0]||(g[0]=$(m=>d("close"),["self"]))},[e("div",{class:"modal",style:Z(h.width?{maxWidth:h.width}:void 0),role:"dialog","aria-modal":"true","aria-label":h.title},[e("h3",ve,a(h.title),1),X(b.$slots,"default")],12,be)])):L("",!0)]))}}),ye={class:"toolbar"},_e={class:"page-title"},xe={class:"page-sub"},ke=["placeholder"],Ce={class:"btn",type:"submit"},Se=["disabled","title"],Te={key:0,class:"loading-block"},$e={key:1,class:"card empty"},Fe={key:2,class:"table-wrap"},ze={class:"table"},De={style:{width:"36px"}},Ae=["checked"],Be={style:{"min-width":"210px"}},Ee=["checked","onChange"],we={class:"code-cell"},Ne=["title"],Ve={class:"row-actions"},Le=["onClick"],Me=["onClick"],Ue=["onClick"],Ie=["onClick"],Re=["onClick"],He={class:"field"},Pe={class:"field"},Oe={class:"field"},je=["value"],qe={class:"modal-actions"},Ke=["disabled"],Je=N({__name:"FilesView",setup(h){const{t}=te(),k=ne(),d=ie(),r=_([]),b=_(0),g=_(!1),m=A({page:1,size:10,keyword:""}),c=_(new Set);async function v(){g.value=!0;try{const n=await ue({...m});r.value=n.data,b.value=n.total,c.value=new Set}catch(n){d.error(n instanceof x?n.msg:t("admin.files.loadFailed"))}finally{g.value=!1}}function M(){m.page=1,v()}function U(n,i){m.page=n,m.size=i,v()}function I(n){const i=new Set(c.value);i.has(n)?i.delete(n):i.add(n),c.value=i}const F=()=>r.value.length>0&&r.value.every(n=>c.value.has(n.id));function R(){c.value=F()?new Set:new Set(r.value.map(n=>n.id))}async function H(n){if(window.confirm(t("admin.files.confirmDelete",{name:n.name||n.code})))try{await me(n.id),d.success(t("admin.files.deleteSuccess")),v()}catch(i){d.error(i instanceof x?i.msg:t("admin.files.deleteFailed"))}}async function P(){if(c.value.size&&window.confirm(t("admin.files.confirmBatchDelete",{count:c.value.size})))try{await re([...c.value]),d.success(t("admin.files.batchDeleteSuccess")),v()}catch(n){d.error(n instanceof x?n.msg:t("admin.files.batchDeleteFailed"))}}const y=_(!1),C=_(!1),o=A({id:0,code:"",expired_at:"",expired_count:null,original:null});function O(n){o.id=n.id,o.code=n.code,o.original=n,o.expired_at=n.expiredAt?j(n.expiredAt):"",o.expired_count=n.expiredCount,y.value=!0}function j(n){const i=new Date(n);if(Number.isNaN(i.getTime()))return"";const s=u=>`${u}`.padStart(2,"0");return`${i.getFullYear()}-${s(i.getMonth()+1)}-${s(i.getDate())}T${s(i.getHours())}:${s(i.getMinutes())}`}async function q(){const n=o.original;if(!n)return;const i={id:o.id};o.code.trim()&&o.code.trim()!==n.code&&(i.code=o.code.trim());const s=o.expired_count;if(s!==null&&s!==n.expiredCount&&(i.expired_count=s),o.expired_at){const u=new Date(o.expired_at).toISOString();u!==n.expiredAt&&(i.expired_at=u)}if(Object.keys(i).length===1){d.info(t("admin.files.nothingChanged")),y.value=!1;return}C.value=!0;try{await pe(i),d.success(t("admin.files.updateSuccess")),y.value=!1,v()}catch(u){d.error(u instanceof x?u.msg:t("admin.files.updateFailed"))}finally{C.value=!1}}async function K(n){await w(de(n.code,k.shareLinkBase))?d.success(t("admin.files.linkCopied")):d.error(t("common.copyFailed"))}async function W(n){await w(n.code)?d.success(t("admin.files.codeCopied")):d.error(t("common.copyFailed"))}async function G(n){try{const i=await fe(n.code);ce(new Blob([i],{type:"text/plain;charset=utf-8"}),n.name||`${n.code}.txt`)}catch(i){d.error(i instanceof x?i.msg:t("admin.files.fetchTextFailed"))}}function Q(n){return n.expiredCount===null||n.expiredCount<0?t("admin.files.remainingUnlimited"):t("admin.files.remainingCount",{n:n.expiredCount})}return V(v),(n,i)=>(p(),f("div",null,[e("div",ye,[e("div",null,[e("h2",_e,a(l(t)("admin.files.title")),1),e("p",xe,a(l(t)("admin.files.totalRecords",{total:b.value})),1)]),e("form",{class:"toolbar-actions",onSubmit:$(M,["prevent"])},[S(e("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>m.keyword=s),class:"input",placeholder:l(t)("admin.files.searchPlaceholder"),style:{"max-width":"220px"}},null,8,ke),[[T,m.keyword]]),e("button",Ce,a(l(t)("common.search")),1),e("button",{class:"btn btn-ghost",type:"button",onClick:v},a(l(t)("common.refresh")),1),e("button",{class:"btn btn-danger-ghost",type:"button",disabled:!c.value.size,title:c.value.size?l(t)("admin.files.deleteSelectedTitle",{count:c.value.size}):l(t)("admin.files.selectFirst"),onClick:P},a(c.value.size?l(t)("admin.files.batchDeleteWithCount",{count:c.value.size}):l(t)("admin.files.batchDelete")),9,Se)],32)]),g.value?(p(),f("div",Te,[i[6]||(i[6]=e("span",{class:"spin","aria-hidden":"true"},null,-1)),z(" "+a(l(t)("admin.files.loading")),1)])):r.value.length?(p(),f("div",Fe,[e("table",ze,[e("thead",null,[e("tr",null,[e("th",De,[e("input",{type:"checkbox",checked:F(),onChange:R},null,40,Ae)]),e("th",null,a(l(t)("admin.files.colCode")),1),e("th",null,a(l(t)("admin.files.colName")),1),e("th",null,a(l(t)("admin.files.colType")),1),e("th",null,a(l(t)("admin.files.colSize")),1),e("th",null,a(l(t)("admin.files.colUsed")),1),e("th",null,a(l(t)("admin.files.colRemaining")),1),e("th",null,a(l(t)("admin.files.colExpireAt")),1),e("th",null,a(l(t)("admin.files.colStatus")),1),e("th",null,a(l(t)("admin.files.colCreatedAt")),1),e("th",Be,a(l(t)("common.actions")),1)])]),e("tbody",null,[(p(!0),f(se,null,le(r.value,s=>(p(),f("tr",{key:s.id},[e("td",null,[e("input",{type:"checkbox",checked:c.value.has(s.id),onChange:u=>I(s.id)},null,40,Ee)]),e("td",we,a(s.code),1),e("td",{class:"wrap",title:s.name},a(s.name||"-"),9,Ne),e("td",null,[e("span",{class:B(["badge",s.isText?"badge-muted":""])},a(s.isText?l(t)("common.text"):l(t)("common.file")),3)]),e("td",null,a(s.isText?"-":l(oe)(s.size)),1),e("td",null,a(s.usedCount),1),e("td",null,a(Q(s)),1),e("td",null,a(s.expiredAt?l(E)(s.expiredAt):l(t)("time.permanent")),1),e("td",null,[e("span",{class:B(["badge",s.isExpired?"badge-danger":"badge-success"])},a(s.isExpired?l(t)("admin.files.statusExpired"):l(t)("admin.files.statusValid")),3)]),e("td",null,a(l(E)(s.createdAt)),1),e("td",null,[e("div",Ve,[e("button",{class:"btn btn-ghost btn-sm",type:"button",onClick:u=>W(s)},a(l(t)("admin.files.copyCode")),9,Le),e("button",{class:"btn btn-ghost btn-sm",type:"button",onClick:u=>K(s)},a(l(t)("admin.files.copyLink")),9,Me),e("button",{class:"btn btn-ghost btn-sm",type:"button",onClick:u=>O(s)},a(l(t)("admin.files.edit")),9,Ue),s.isText?(p(),f("button",{key:0,class:"btn btn-ghost btn-sm",type:"button",onClick:u=>G(s)},a(l(t)("admin.files.fetchText")),9,Ie)):L("",!0),e("button",{class:"btn btn-danger-ghost btn-sm",type:"button",onClick:u=>H(s)},a(l(t)("admin.files.delete")),9,Re)])])]))),128))])])])):(p(),f("div",$e,[i[7]||(i[7]=e("div",{class:"empty-icon"},"🗂",-1)),z(" "+a(l(t)("admin.files.empty")),1)])),D(he,{page:m.page,size:m.size,total:b.value,onChange:U},null,8,["page","size","total"]),D(ge,{open:y.value,title:l(t)("admin.files.editModalTitle"),onClose:i[5]||(i[5]=s=>y.value=!1)},{default:ae(()=>[e("form",{onSubmit:$(q,["prevent"])},[e("div",He,[e("label",null,a(l(t)("admin.files.colCode")),1),S(e("input",{"onUpdate:modelValue":i[1]||(i[1]=s=>o.code=s),class:"input input-mono",maxlength:"32"},null,512),[[T,o.code]])]),e("div",Pe,[e("label",null,a(l(t)("admin.files.expireAtHint")),1),S(e("input",{"onUpdate:modelValue":i[2]||(i[2]=s=>o.expired_at=s),class:"input",type:"datetime-local"},null,512),[[T,o.expired_at]])]),e("div",Oe,[e("label",null,a(l(t)("admin.files.expireCountHint")),1),e("input",{class:"input",type:"number",value:o.expired_count??-1,onInput:i[3]||(i[3]=s=>o.expired_count=Number(s.target.value))},null,40,je)]),e("div",qe,[e("button",{class:"btn btn-ghost",type:"button",onClick:i[4]||(i[4]=s=>y.value=!1)},a(l(t)("common.cancel")),1),e("button",{class:"btn",type:"submit",disabled:C.value},a(l(t)("common.save")),9,Ke)])],32)]),_:1},8,["open","title"])]))}});export{Je as default}; diff --git a/server/web/dist/assets/FilesView-DT4FMKVX.js b/server/web/dist/assets/FilesView-DT4FMKVX.js new file mode 100644 index 0000000..e755333 --- /dev/null +++ b/server/web/dist/assets/FilesView-DT4FMKVX.js @@ -0,0 +1 @@ +import{d as N,I as V,P as Y,z as J,c as f,w as $,b as e,t as a,Q as X,n as Z,g as L,T as ee,o as p,u as te,a as ne,i as ie,f as l,C as S,D as T,q as z,F as se,r as le,G as D,A as ae,j as _,R as A,H as x,e as B,s as oe,K as E,k as w,p as de,M as ce}from"./index-DSPQyv0Z.js";import{a as ue,b as re,c as me,d as pe}from"./admin-IDpKsD_2.js";import{p as fe}from"./share-DQTp5ax3.js";import{_ as he}from"./Pager.vue_vue_type_script_setup_true_lang-C7hYXz3z.js";const be=["aria-label"],ve={class:"modal-title"},ge=N({__name:"AppModal",props:{open:{type:Boolean},title:{},width:{}},emits:["close"],setup(h,{emit:t}){const k=h,d=t;function r(b){b.key==="Escape"&&k.open&&d("close")}return V(()=>document.addEventListener("keydown",r)),Y(()=>document.removeEventListener("keydown",r)),(b,g)=>(p(),J(ee,{to:"body"},[h.open?(p(),f("div",{key:0,class:"modal-overlay",onClick:g[0]||(g[0]=$(m=>d("close"),["self"]))},[e("div",{class:"modal",style:Z(h.width?{maxWidth:h.width}:void 0),role:"dialog","aria-modal":"true","aria-label":h.title},[e("h3",ve,a(h.title),1),X(b.$slots,"default")],12,be)])):L("",!0)]))}}),ye={class:"toolbar"},_e={class:"page-title"},xe={class:"page-sub"},ke=["placeholder"],Ce={class:"btn",type:"submit"},Se=["disabled","title"],Te={key:0,class:"loading-block"},$e={key:1,class:"card empty"},Fe={key:2,class:"table-wrap"},ze={class:"table"},De={style:{width:"36px"}},Ae=["checked"],Be={style:{"min-width":"210px"}},Ee=["checked","onChange"],we={class:"code-cell"},Ne=["title"],Ve={class:"row-actions"},Le=["onClick"],Me=["onClick"],Ue=["onClick"],Ie=["onClick"],Re=["onClick"],He={class:"field"},Pe={class:"field"},Oe={class:"field"},je=["value"],qe={class:"modal-actions"},Ke=["disabled"],Je=N({__name:"FilesView",setup(h){const{t}=te(),k=ne(),d=ie(),r=_([]),b=_(0),g=_(!1),m=A({page:1,size:10,keyword:""}),c=_(new Set);async function v(){g.value=!0;try{const n=await ue({...m});r.value=n.data,b.value=n.total,c.value=new Set}catch(n){d.error(n instanceof x?n.msg:t("admin.files.loadFailed"))}finally{g.value=!1}}function M(){m.page=1,v()}function U(n,i){m.page=n,m.size=i,v()}function I(n){const i=new Set(c.value);i.has(n)?i.delete(n):i.add(n),c.value=i}const F=()=>r.value.length>0&&r.value.every(n=>c.value.has(n.id));function R(){c.value=F()?new Set:new Set(r.value.map(n=>n.id))}async function H(n){if(window.confirm(t("admin.files.confirmDelete",{name:n.name||n.code})))try{await me(n.id),d.success(t("admin.files.deleteSuccess")),v()}catch(i){d.error(i instanceof x?i.msg:t("admin.files.deleteFailed"))}}async function P(){if(c.value.size&&window.confirm(t("admin.files.confirmBatchDelete",{count:c.value.size})))try{await re([...c.value]),d.success(t("admin.files.batchDeleteSuccess")),v()}catch(n){d.error(n instanceof x?n.msg:t("admin.files.batchDeleteFailed"))}}const y=_(!1),C=_(!1),o=A({id:0,code:"",expired_at:"",expired_count:null,original:null});function O(n){o.id=n.id,o.code=n.code,o.original=n,o.expired_at=n.expiredAt?j(n.expiredAt):"",o.expired_count=n.expiredCount,y.value=!0}function j(n){const i=new Date(n);if(Number.isNaN(i.getTime()))return"";const s=u=>`${u}`.padStart(2,"0");return`${i.getFullYear()}-${s(i.getMonth()+1)}-${s(i.getDate())}T${s(i.getHours())}:${s(i.getMinutes())}`}async function q(){const n=o.original;if(!n)return;const i={id:o.id};o.code.trim()&&o.code.trim()!==n.code&&(i.code=o.code.trim());const s=o.expired_count;if(s!==null&&s!==n.expiredCount&&(i.expired_count=s),o.expired_at){const u=new Date(o.expired_at).toISOString();u!==n.expiredAt&&(i.expired_at=u)}if(Object.keys(i).length===1){d.info(t("admin.files.nothingChanged")),y.value=!1;return}C.value=!0;try{await pe(i),d.success(t("admin.files.updateSuccess")),y.value=!1,v()}catch(u){d.error(u instanceof x?u.msg:t("admin.files.updateFailed"))}finally{C.value=!1}}async function K(n){await w(de(n.code,k.shareLinkBase))?d.success(t("admin.files.linkCopied")):d.error(t("common.copyFailed"))}async function W(n){await w(n.code)?d.success(t("admin.files.codeCopied")):d.error(t("common.copyFailed"))}async function G(n){try{const i=await fe(n.code);ce(new Blob([i],{type:"text/plain;charset=utf-8"}),n.name||`${n.code}.txt`)}catch(i){d.error(i instanceof x?i.msg:t("admin.files.fetchTextFailed"))}}function Q(n){return n.expiredCount===null||n.expiredCount<0?t("admin.files.remainingUnlimited"):t("admin.files.remainingCount",{n:n.expiredCount})}return V(v),(n,i)=>(p(),f("div",null,[e("div",ye,[e("div",null,[e("h2",_e,a(l(t)("admin.files.title")),1),e("p",xe,a(l(t)("admin.files.totalRecords",{total:b.value})),1)]),e("form",{class:"toolbar-actions",onSubmit:$(M,["prevent"])},[S(e("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>m.keyword=s),class:"input",placeholder:l(t)("admin.files.searchPlaceholder"),style:{"max-width":"220px"}},null,8,ke),[[T,m.keyword]]),e("button",Ce,a(l(t)("common.search")),1),e("button",{class:"btn btn-ghost",type:"button",onClick:v},a(l(t)("common.refresh")),1),e("button",{class:"btn btn-danger-ghost",type:"button",disabled:!c.value.size,title:c.value.size?l(t)("admin.files.deleteSelectedTitle",{count:c.value.size}):l(t)("admin.files.selectFirst"),onClick:P},a(c.value.size?l(t)("admin.files.batchDeleteWithCount",{count:c.value.size}):l(t)("admin.files.batchDelete")),9,Se)],32)]),g.value?(p(),f("div",Te,[i[6]||(i[6]=e("span",{class:"spin","aria-hidden":"true"},null,-1)),z(" "+a(l(t)("admin.files.loading")),1)])):r.value.length?(p(),f("div",Fe,[e("table",ze,[e("thead",null,[e("tr",null,[e("th",De,[e("input",{type:"checkbox",checked:F(),onChange:R},null,40,Ae)]),e("th",null,a(l(t)("admin.files.colCode")),1),e("th",null,a(l(t)("admin.files.colName")),1),e("th",null,a(l(t)("admin.files.colType")),1),e("th",null,a(l(t)("admin.files.colSize")),1),e("th",null,a(l(t)("admin.files.colUsed")),1),e("th",null,a(l(t)("admin.files.colRemaining")),1),e("th",null,a(l(t)("admin.files.colExpireAt")),1),e("th",null,a(l(t)("admin.files.colStatus")),1),e("th",null,a(l(t)("admin.files.colCreatedAt")),1),e("th",Be,a(l(t)("common.actions")),1)])]),e("tbody",null,[(p(!0),f(se,null,le(r.value,s=>(p(),f("tr",{key:s.id},[e("td",null,[e("input",{type:"checkbox",checked:c.value.has(s.id),onChange:u=>I(s.id)},null,40,Ee)]),e("td",we,a(s.code),1),e("td",{class:"wrap",title:s.name},a(s.name||"-"),9,Ne),e("td",null,[e("span",{class:B(["badge",s.isText?"badge-muted":""])},a(s.isText?l(t)("common.text"):l(t)("common.file")),3)]),e("td",null,a(s.isText?"-":l(oe)(s.size)),1),e("td",null,a(s.usedCount),1),e("td",null,a(Q(s)),1),e("td",null,a(s.expiredAt?l(E)(s.expiredAt):l(t)("time.permanent")),1),e("td",null,[e("span",{class:B(["badge",s.isExpired?"badge-danger":"badge-success"])},a(s.isExpired?l(t)("admin.files.statusExpired"):l(t)("admin.files.statusValid")),3)]),e("td",null,a(l(E)(s.createdAt)),1),e("td",null,[e("div",Ve,[e("button",{class:"btn btn-ghost btn-sm",type:"button",onClick:u=>W(s)},a(l(t)("admin.files.copyCode")),9,Le),e("button",{class:"btn btn-ghost btn-sm",type:"button",onClick:u=>K(s)},a(l(t)("admin.files.copyLink")),9,Me),e("button",{class:"btn btn-ghost btn-sm",type:"button",onClick:u=>O(s)},a(l(t)("admin.files.edit")),9,Ue),s.isText?(p(),f("button",{key:0,class:"btn btn-ghost btn-sm",type:"button",onClick:u=>G(s)},a(l(t)("admin.files.fetchText")),9,Ie)):L("",!0),e("button",{class:"btn btn-danger-ghost btn-sm",type:"button",onClick:u=>H(s)},a(l(t)("admin.files.delete")),9,Re)])])]))),128))])])])):(p(),f("div",$e,[i[7]||(i[7]=e("div",{class:"empty-icon"},"🗂",-1)),z(" "+a(l(t)("admin.files.empty")),1)])),D(he,{page:m.page,size:m.size,total:b.value,onChange:U},null,8,["page","size","total"]),D(ge,{open:y.value,title:l(t)("admin.files.editModalTitle"),onClose:i[5]||(i[5]=s=>y.value=!1)},{default:ae(()=>[e("form",{onSubmit:$(q,["prevent"])},[e("div",He,[e("label",null,a(l(t)("admin.files.colCode")),1),S(e("input",{"onUpdate:modelValue":i[1]||(i[1]=s=>o.code=s),class:"input input-mono",maxlength:"32"},null,512),[[T,o.code]])]),e("div",Pe,[e("label",null,a(l(t)("admin.files.expireAtHint")),1),S(e("input",{"onUpdate:modelValue":i[2]||(i[2]=s=>o.expired_at=s),class:"input",type:"datetime-local"},null,512),[[T,o.expired_at]])]),e("div",Oe,[e("label",null,a(l(t)("admin.files.expireCountHint")),1),e("input",{class:"input",type:"number",value:o.expired_count??-1,onInput:i[3]||(i[3]=s=>o.expired_count=Number(s.target.value))},null,40,je)]),e("div",qe,[e("button",{class:"btn btn-ghost",type:"button",onClick:i[4]||(i[4]=s=>y.value=!1)},a(l(t)("common.cancel")),1),e("button",{class:"btn",type:"submit",disabled:C.value},a(l(t)("common.save")),9,Ke)])],32)]),_:1},8,["open","title"])]))}});export{Je as default}; diff --git a/server/web/dist/assets/FilesView-bV8HZoYp.js b/server/web/dist/assets/FilesView-bV8HZoYp.js new file mode 100644 index 0000000..66a8680 --- /dev/null +++ b/server/web/dist/assets/FilesView-bV8HZoYp.js @@ -0,0 +1 @@ +import{d as N,I as V,P as Y,z as J,c as f,w as $,b as e,t as a,Q as X,n as Z,g as L,T as ee,o as p,u as te,a as ne,i as ie,f as l,C as S,D as T,q as z,F as se,r as le,G as D,A as ae,j as _,R as A,H as x,e as B,s as oe,K as E,k as w,p as de,M as ce}from"./index-QLbKGtH7.js";import{a as ue,b as re,c as me,d as pe}from"./admin-BZX1cFNW.js";import{p as fe}from"./share-Y37-qxxb.js";import{_ as he}from"./Pager.vue_vue_type_script_setup_true_lang-pYdn-As_.js";const be=["aria-label"],ve={class:"modal-title"},ge=N({__name:"AppModal",props:{open:{type:Boolean},title:{},width:{}},emits:["close"],setup(h,{emit:t}){const k=h,d=t;function r(b){b.key==="Escape"&&k.open&&d("close")}return V(()=>document.addEventListener("keydown",r)),Y(()=>document.removeEventListener("keydown",r)),(b,g)=>(p(),J(ee,{to:"body"},[h.open?(p(),f("div",{key:0,class:"modal-overlay",onClick:g[0]||(g[0]=$(m=>d("close"),["self"]))},[e("div",{class:"modal",style:Z(h.width?{maxWidth:h.width}:void 0),role:"dialog","aria-modal":"true","aria-label":h.title},[e("h3",ve,a(h.title),1),X(b.$slots,"default")],12,be)])):L("",!0)]))}}),ye={class:"toolbar"},_e={class:"page-title"},xe={class:"page-sub"},ke=["placeholder"],Ce={class:"btn",type:"submit"},Se=["disabled","title"],Te={key:0,class:"loading-block"},$e={key:1,class:"card empty"},Fe={key:2,class:"table-wrap"},ze={class:"table"},De={style:{width:"36px"}},Ae=["checked"],Be={style:{"min-width":"210px"}},Ee=["checked","onChange"],we={class:"code-cell"},Ne=["title"],Ve={class:"row-actions"},Le=["onClick"],Me=["onClick"],Ue=["onClick"],Ie=["onClick"],Re=["onClick"],He={class:"field"},Pe={class:"field"},Oe={class:"field"},je=["value"],qe={class:"modal-actions"},Ke=["disabled"],Je=N({__name:"FilesView",setup(h){const{t}=te(),k=ne(),d=ie(),r=_([]),b=_(0),g=_(!1),m=A({page:1,size:10,keyword:""}),c=_(new Set);async function v(){g.value=!0;try{const n=await ue({...m});r.value=n.data,b.value=n.total,c.value=new Set}catch(n){d.error(n instanceof x?n.msg:t("admin.files.loadFailed"))}finally{g.value=!1}}function M(){m.page=1,v()}function U(n,i){m.page=n,m.size=i,v()}function I(n){const i=new Set(c.value);i.has(n)?i.delete(n):i.add(n),c.value=i}const F=()=>r.value.length>0&&r.value.every(n=>c.value.has(n.id));function R(){c.value=F()?new Set:new Set(r.value.map(n=>n.id))}async function H(n){if(window.confirm(t("admin.files.confirmDelete",{name:n.name||n.code})))try{await me(n.id),d.success(t("admin.files.deleteSuccess")),v()}catch(i){d.error(i instanceof x?i.msg:t("admin.files.deleteFailed"))}}async function P(){if(c.value.size&&window.confirm(t("admin.files.confirmBatchDelete",{count:c.value.size})))try{await re([...c.value]),d.success(t("admin.files.batchDeleteSuccess")),v()}catch(n){d.error(n instanceof x?n.msg:t("admin.files.batchDeleteFailed"))}}const y=_(!1),C=_(!1),o=A({id:0,code:"",expired_at:"",expired_count:null,original:null});function O(n){o.id=n.id,o.code=n.code,o.original=n,o.expired_at=n.expiredAt?j(n.expiredAt):"",o.expired_count=n.expiredCount,y.value=!0}function j(n){const i=new Date(n);if(Number.isNaN(i.getTime()))return"";const s=u=>`${u}`.padStart(2,"0");return`${i.getFullYear()}-${s(i.getMonth()+1)}-${s(i.getDate())}T${s(i.getHours())}:${s(i.getMinutes())}`}async function q(){const n=o.original;if(!n)return;const i={id:o.id};o.code.trim()&&o.code.trim()!==n.code&&(i.code=o.code.trim());const s=o.expired_count;if(s!==null&&s!==n.expiredCount&&(i.expired_count=s),o.expired_at){const u=new Date(o.expired_at).toISOString();u!==n.expiredAt&&(i.expired_at=u)}if(Object.keys(i).length===1){d.info(t("admin.files.nothingChanged")),y.value=!1;return}C.value=!0;try{await pe(i),d.success(t("admin.files.updateSuccess")),y.value=!1,v()}catch(u){d.error(u instanceof x?u.msg:t("admin.files.updateFailed"))}finally{C.value=!1}}async function K(n){await w(de(n.code,k.shareLinkBase))?d.success(t("admin.files.linkCopied")):d.error(t("common.copyFailed"))}async function W(n){await w(n.code)?d.success(t("admin.files.codeCopied")):d.error(t("common.copyFailed"))}async function G(n){try{const i=await fe(n.code);ce(new Blob([i],{type:"text/plain;charset=utf-8"}),n.name||`${n.code}.txt`)}catch(i){d.error(i instanceof x?i.msg:t("admin.files.fetchTextFailed"))}}function Q(n){return n.expiredCount===null||n.expiredCount<0?t("admin.files.remainingUnlimited"):t("admin.files.remainingCount",{n:n.expiredCount})}return V(v),(n,i)=>(p(),f("div",null,[e("div",ye,[e("div",null,[e("h2",_e,a(l(t)("admin.files.title")),1),e("p",xe,a(l(t)("admin.files.totalRecords",{total:b.value})),1)]),e("form",{class:"toolbar-actions",onSubmit:$(M,["prevent"])},[S(e("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>m.keyword=s),class:"input",placeholder:l(t)("admin.files.searchPlaceholder"),style:{"max-width":"220px"}},null,8,ke),[[T,m.keyword]]),e("button",Ce,a(l(t)("common.search")),1),e("button",{class:"btn btn-ghost",type:"button",onClick:v},a(l(t)("common.refresh")),1),e("button",{class:"btn btn-danger-ghost",type:"button",disabled:!c.value.size,title:c.value.size?l(t)("admin.files.deleteSelectedTitle",{count:c.value.size}):l(t)("admin.files.selectFirst"),onClick:P},a(c.value.size?l(t)("admin.files.batchDeleteWithCount",{count:c.value.size}):l(t)("admin.files.batchDelete")),9,Se)],32)]),g.value?(p(),f("div",Te,[i[6]||(i[6]=e("span",{class:"spin","aria-hidden":"true"},null,-1)),z(" "+a(l(t)("admin.files.loading")),1)])):r.value.length?(p(),f("div",Fe,[e("table",ze,[e("thead",null,[e("tr",null,[e("th",De,[e("input",{type:"checkbox",checked:F(),onChange:R},null,40,Ae)]),e("th",null,a(l(t)("admin.files.colCode")),1),e("th",null,a(l(t)("admin.files.colName")),1),e("th",null,a(l(t)("admin.files.colType")),1),e("th",null,a(l(t)("admin.files.colSize")),1),e("th",null,a(l(t)("admin.files.colUsed")),1),e("th",null,a(l(t)("admin.files.colRemaining")),1),e("th",null,a(l(t)("admin.files.colExpireAt")),1),e("th",null,a(l(t)("admin.files.colStatus")),1),e("th",null,a(l(t)("admin.files.colCreatedAt")),1),e("th",Be,a(l(t)("common.actions")),1)])]),e("tbody",null,[(p(!0),f(se,null,le(r.value,s=>(p(),f("tr",{key:s.id},[e("td",null,[e("input",{type:"checkbox",checked:c.value.has(s.id),onChange:u=>I(s.id)},null,40,Ee)]),e("td",we,a(s.code),1),e("td",{class:"wrap",title:s.name},a(s.name||"-"),9,Ne),e("td",null,[e("span",{class:B(["badge",s.isText?"badge-muted":""])},a(s.isText?l(t)("common.text"):l(t)("common.file")),3)]),e("td",null,a(s.isText?"-":l(oe)(s.size)),1),e("td",null,a(s.usedCount),1),e("td",null,a(Q(s)),1),e("td",null,a(s.expiredAt?l(E)(s.expiredAt):l(t)("time.permanent")),1),e("td",null,[e("span",{class:B(["badge",s.isExpired?"badge-danger":"badge-success"])},a(s.isExpired?l(t)("admin.files.statusExpired"):l(t)("admin.files.statusValid")),3)]),e("td",null,a(l(E)(s.createdAt)),1),e("td",null,[e("div",Ve,[e("button",{class:"btn btn-ghost btn-sm",type:"button",onClick:u=>W(s)},a(l(t)("admin.files.copyCode")),9,Le),e("button",{class:"btn btn-ghost btn-sm",type:"button",onClick:u=>K(s)},a(l(t)("admin.files.copyLink")),9,Me),e("button",{class:"btn btn-ghost btn-sm",type:"button",onClick:u=>O(s)},a(l(t)("admin.files.edit")),9,Ue),s.isText?(p(),f("button",{key:0,class:"btn btn-ghost btn-sm",type:"button",onClick:u=>G(s)},a(l(t)("admin.files.fetchText")),9,Ie)):L("",!0),e("button",{class:"btn btn-danger-ghost btn-sm",type:"button",onClick:u=>H(s)},a(l(t)("admin.files.delete")),9,Re)])])]))),128))])])])):(p(),f("div",$e,[i[7]||(i[7]=e("div",{class:"empty-icon"},"🗂",-1)),z(" "+a(l(t)("admin.files.empty")),1)])),D(he,{page:m.page,size:m.size,total:b.value,onChange:U},null,8,["page","size","total"]),D(ge,{open:y.value,title:l(t)("admin.files.editModalTitle"),onClose:i[5]||(i[5]=s=>y.value=!1)},{default:ae(()=>[e("form",{onSubmit:$(q,["prevent"])},[e("div",He,[e("label",null,a(l(t)("admin.files.colCode")),1),S(e("input",{"onUpdate:modelValue":i[1]||(i[1]=s=>o.code=s),class:"input input-mono",maxlength:"32"},null,512),[[T,o.code]])]),e("div",Pe,[e("label",null,a(l(t)("admin.files.expireAtHint")),1),S(e("input",{"onUpdate:modelValue":i[2]||(i[2]=s=>o.expired_at=s),class:"input",type:"datetime-local"},null,512),[[T,o.expired_at]])]),e("div",Oe,[e("label",null,a(l(t)("admin.files.expireCountHint")),1),e("input",{class:"input",type:"number",value:o.expired_count??-1,onInput:i[3]||(i[3]=s=>o.expired_count=Number(s.target.value))},null,40,je)]),e("div",qe,[e("button",{class:"btn btn-ghost",type:"button",onClick:i[4]||(i[4]=s=>y.value=!1)},a(l(t)("common.cancel")),1),e("button",{class:"btn",type:"submit",disabled:C.value},a(l(t)("common.save")),9,Ke)])],32)]),_:1},8,["open","title"])]))}});export{Je as default}; diff --git a/server/web/dist/assets/HomeView-7rYMTqXg.js b/server/web/dist/assets/HomeView-7rYMTqXg.js new file mode 100644 index 0000000..1cbd1c6 --- /dev/null +++ b/server/web/dist/assets/HomeView-7rYMTqXg.js @@ -0,0 +1 @@ +import{d as W,u as Y,a as G,o as m,c as h,b as t,n as L,e as K,t as i,f as n,g as B,F as H,r as ne,h as $,E as q,_ as Z,i as ee,j as w,k as le,p as ae,l as se,w as O,m as ie,q as P,s as R,v as I,x as A,y as ue,z as re,A as ce,B as de,C as N,D as j,G as X,H as ve}from"./index-DSPQyv0Z.js";import{P as pe}from"./PageShell-Bv1Rpp4p.js";import{s as me,a as he}from"./share-DQTp5ax3.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-DSt3Q6Wq.js";const fe={class:"field-row"},ye={class:"field-sub"},xe=["max","value"],be={class:"field-sub"},ke=["value"],_e=["value"],Se={key:0,class:"hint",style:{color:"var(--c-warn)"}},ge={key:1,class:"hint"},Ce={key:2,class:"hint"},$e={key:3,class:"hint"},ze=W({__name:"ExpirePicker",props:{value:{},style:{},compact:{type:Boolean}},emits:["update:value","update:style"],setup(a,{emit:e}){const o=a,c=e,{t:r,te:C}=Y(),f=G(),z=$(()=>{const g=f.expireStyle.length?f.expireStyle:["day","hour","minute","forever","count"],d=q.filter(x=>g.includes(x.value)),v=g.filter(x=>!q.some(E=>E.value===x)).map(x=>({value:x,label:x}));return[...d,...v]}),S=$(()=>o.style==="forever"),y=$(()=>o.style==="count"),p=$(()=>f.maxSaveCount>0?f.maxSaveCount:9999),b=$(()=>f.maxSaveSeconds>0?f.maxSaveSeconds:0),V={day:86400,hour:3600,minute:60};function u(g){const d=b.value,v=V[g];return v?d<=0?9999:Math.max(1,Math.floor(d/v)):g==="count"?p.value:9999}const l=$(()=>{if(y.value&&f.maxSaveCount>0&&o.value>f.maxSaveCount)return r("expire.maxCountHint",{n:f.maxSaveCount});if(!S.value&&!y.value&&b.value>0){const g=u(o.style);if(o.value>g){const d=q.find(v=>v.value===o.style)?.label??o.style;return r("expire.maxSecondsHint",{value:`${g} ${d}`})}}return""}),T=$(()=>q.find(g=>g.value===o.style)?.label??o.style);function M(g,d){const v=`expireStyle.${g}`;return C(v)?r(v):d}function F(g){const d=g.target.value;c("update:style",d),d==="count"&&o.value>p.value&&c("update:value",1),d==="minute"&&o.value<1&&c("update:value",10)}return(g,d)=>(m(),h(H,null,[t("div",fe,[S.value?B("",!0):(m(),h("label",{key:0,class:K(["expire-value",{compact:a.compact}]),style:L(a.compact?"flex:0 0 110px":"")},[t("span",ye,i(n(r)("expire.value")),1),t("input",{class:"input",type:"number",min:1,max:u(a.style),value:a.value,onInput:d[0]||(d[0]=v=>c("update:value",Math.max(1,Number(v.target.value)||1)))},null,40,xe)],6)),t("label",{style:L(S.value?"flex:1":"")},[t("span",be,i(n(r)("expire.label")),1),t("select",{class:"select",value:a.style,onChange:F},[(m(!0),h(H,null,ne(z.value,v=>(m(),h("option",{key:v.value,value:v.value},i(S.value&&v.value==="forever"?n(r)("expire.foreverOption"):v.value==="count"?n(r)("expire.countOption"):M(v.value,v.label)),9,_e))),128))],40,ke)],4)]),l.value?(m(),h("p",Se,i(l.value),1)):a.style==="count"?(m(),h("p",ge,i(n(r)("expire.countHint")),1)):S.value?(m(),h("p",$e,i(n(r)("expire.foreverHint")),1)):(m(),h("p",Ce,i(n(r)("expire.timeHint",{value:a.value,unit:T.value})),1))],64))}}),Q=Z(ze,[["__scopeId","data-v-d049fcf9"]]),we={class:"card result-card"},Te={class:"result-head"},Ve={class:"badge badge-success"},Ee={key:0,class:"result-name"},Me={class:"field"},Be=["title"],De={class:"field"},Fe={class:"link-row"},Pe=["value"],Ue={class:"result-meta"},Le={key:0},He={class:"hint",style:{"margin-top":"10px"}},Oe=W({__name:"ResultCard",props:{code:{},name:{},expireValue:{},expireStyle:{}},setup(a){const e=a,{t:o}=Y(),c=ee(),r=G(),C=w(null),f=$(()=>ae(e.code,r.shareLinkBase));async function z(y){const p=y==="link"?f.value:e.code;await le(p)?(C.value=y,c.success(o(y==="link"?"result.linkCopied":"result.codeCopied")),setTimeout(()=>C.value=null,1600)):c.error(o("result.copyFailed"))}const S=$(()=>e.expireStyle==="forever"?o("result.forever"):`${e.expireValue??"-"} ${se(e.expireStyle??"")}`);return(y,p)=>(m(),h("div",we,[t("div",Te,[t("span",Ve,i(n(o)("result.badge")),1),a.name?(m(),h("span",Ee,i(a.name),1)):B("",!0)]),t("div",Me,[t("label",null,i(n(o)("result.code")),1),t("button",{class:"code-display code-copy",type:"button",title:n(o)("result.clickCopyCode"),onClick:p[0]||(p[0]=b=>z("code"))},i(a.code),9,Be)]),t("div",De,[t("label",null,i(n(o)("result.link")),1),t("div",Fe,[t("input",{class:"input input-mono",value:f.value,readonly:"",onFocus:p[1]||(p[1]=b=>b.target.select())},null,40,Pe),t("button",{class:"btn btn-ghost",type:"button",onClick:p[2]||(p[2]=b=>z("link"))},i(C.value==="link"?n(o)("common.copied"):n(o)("result.copyLink")),1)])]),t("div",Ue,[a.expireStyle?(m(),h("span",Le,i(n(o)("result.expires",{value:S.value})),1)):B("",!0)]),t("p",He,i(n(o)("result.hint")),1)]))}}),Re=Z(Oe,[["__scopeId","data-v-8bebf3d9"]]),Ie=["aria-label"],Ae={class:"dz-main"},qe={class:"dz-sub"},Ne={key:1,class:"file-chip"},je={class:"fc-name"},Xe={class:"fc-size"},Ke=["title"],We={key:2,class:"hint",style:{color:"var(--c-danger)"}},Ye=["accept"],Ge=W({__name:"FileDrop",props:{modelValue:{},maxSize:{},disabled:{type:Boolean},acceptTypes:{}},emits:["update:modelValue"],setup(a,{emit:e}){const o=a,c=e,{t:r}=Y(),C=w(null),f=w(!1),z=w(""),S=$(()=>{const u=(o.acceptTypes??[]).map(l=>l.trim()).filter(Boolean);return!u.length||u.some(l=>l==="*"||l==="*/*")?"":u.map(l=>l.includes("/")||l.startsWith(".")?l:`.${l.toLowerCase()}`).join(",")}),y=$(()=>{const u=(o.acceptTypes??[]).filter(l=>l&&l!=="*"&&l!=="*/*");return u.length?r("drop.typeHint",{types:u.join(", ")}):""});function p(u){if(z.value="",!!u){if(o.maxSize&&u.size>o.maxSize){z.value=r("drop.tooLarge",{size:R(u.size),limit:R(o.maxSize)}),c("update:modelValue",null);return}c("update:modelValue",u)}}function b(u){f.value=!1,!o.disabled&&p(u.dataTransfer?.files?.[0])}function V(u){const l=u.target;p(l.files?.[0]),l.value=""}return(u,l)=>(m(),h("div",null,[a.modelValue?(m(),h("div",Ne,[l[6]||(l[6]=t("span",{"aria-hidden":"true"},"📄",-1)),t("span",je,i(a.modelValue.name),1),t("span",Xe,i(n(R)(a.modelValue.size)),1),t("button",{class:"fc-remove",type:"button",title:n(r)("drop.remove"),onClick:l[4]||(l[4]=T=>c("update:modelValue",null))},"✕",8,Ke)])):(m(),h("div",{key:0,class:K(["dropzone",{dragover:f.value,disabled:a.disabled}]),role:"button",tabindex:"0","aria-label":n(r)("drop.aria"),onClick:l[0]||(l[0]=T=>!a.disabled&&C.value?.click()),onKeydown:l[1]||(l[1]=ie(O(T=>!a.disabled&&C.value?.click(),["prevent"]),["enter"])),onDragover:l[2]||(l[2]=O(T=>f.value=!0,["prevent"])),onDragleave:l[3]||(l[3]=T=>f.value=!1),onDrop:O(b,["prevent"])},[l[5]||(l[5]=t("div",{class:"dz-icon","aria-hidden":"true"},"📦",-1)),t("div",Ae,i(n(r)("drop.zone")),1),t("div",qe,[a.maxSize?(m(),h(H,{key:0},[P(i(n(r)("drop.maxSize",{size:n(R)(a.maxSize)})),1)],64)):(m(),h(H,{key:1},[P(i(n(r)("drop.noLimit")),1)],64)),y.value?(m(),h(H,{key:2},[P(" · "+i(y.value),1)],64)):B("",!0)])],42,Ie)),z.value?(m(),h("p",We,i(z.value),1)):B("",!0),t("input",{ref_key:"inputRef",ref:C,type:"file",hidden:"",accept:S.value,onChange:V},null,40,Ye)]))}}),Ze=Z(Ge,[["__scopeId","data-v-1b57fe5c"]]);function Je(a,e,o,c){return I(A.chunkInit,{method:"POST",json:{file_name:a,file_size:e,chunk_size:o,file_hash:c},timeout:6e4})}async function Qe(a,e,o){const c=new FormData;c.append("upload_id",a),c.append("chunk_index",String(e)),c.append("chunk",o,`chunk-${e}`),await I(A.chunkUpload(a,e),{method:"POST",formData:c,timeout:12e4})}function et(a){return I(A.chunkStatus(a),{timeout:6e4})}function tt(a,e,o,c=""){return I(A.chunkFinish(a),{method:"POST",json:{expire_value:e,expire_style:o,code:c},timeout:3e5})}async function ot(a){await I(A.chunkCancel(a),{method:"DELETE",timeout:6e4})}function nt(a){return a<=10*1024*1024?{chunkSize:1*1024*1024,concurrency:3}:a<=100*1024*1024?{chunkSize:5*1024*1024,concurrency:3}:a<=512*1024*1024?{chunkSize:10*1024*1024,concurrency:2}:{chunkSize:20*1024*1024,concurrency:2}}function lt(a,e){const{file:o,expireValue:c,expireStyle:r,customCode:C,onProgress:f}=a;let z=!1;return{promise:(async()=>{const y=nt(o.size),p=Math.max(1,Math.ceil(o.size/y.chunkSize));let b;try{b=await ue(await o.arrayBuffer())}catch{b=`nofp-${o.size}-${o.lastModified}`}const V=await e.init(o.name,o.size,y.chunkSize,b),u=V.upload_id,l=V.chunk_size||y.chunkSize,T=V.total_chunks||p,M=new Set(V.uploaded_chunks??[]),F=()=>{if(!f)return;let x=0;for(const E of M){const D=E*l;x+=Math.max(0,Math.min(l,o.size-D))}f(Math.min(100,Math.round(x/o.size*100)),x,o.size)};F();const g=async x=>{for(let E=0;E<2;E++)try{const D=x*l,U=o.slice(D,Math.min(D+l,o.size));await e.uploadOne(u,x,U),M.add(x),F();return}catch(D){if(E===1)throw D}};let d=0;const v=async()=>{for(;!z;){const x=d++;if(x>=T)return;M.has(x)||await g(x)}};if(await Promise.all(Array.from({length:y.concurrency},()=>v())),z)throw await e.cancel(u).catch(()=>{}),new DOMException("上传已取消","AbortError");if(M.sizez=!0}}const at={class:"hero"},st=["placeholder"],it={class:"btn",type:"submit"},ut={class:"card share-card"},rt={class:"tabs",role:"tablist"},ct={class:"field"},dt=["placeholder"],vt={class:"field"},pt={for:"share-custom-code"},mt=["placeholder"],ht={class:"field"},ft=["disabled"],yt={key:0,class:"spin","aria-hidden":"true"},xt={class:"field"},bt={class:"field"},kt={class:"field"},_t={for:"share-custom-code-file"},St=["placeholder"],gt={key:0,class:"field"},Ct={class:"progress"},$t={class:"hint"},zt=["disabled"],wt={key:0,class:"spin","aria-hidden":"true"},Tt={key:1,class:"empty"},Vt={key:2,style:{"margin-top":"18px"}},Et=222*1024,Pt=W({__name:"HomeView",setup(a){const{t:e}=Y(),o=de(),c=G(),r=ee(),C=w("text"),f=w("");function z(){const k=f.value.trim();if(!k){r.error(e("home.pickupRequired"));return}o.push({name:"pickup",params:{code:k}})}const S=w(1),y=w("day"),p=w(!1),b=w(null);function V(k,s){return k instanceof ve?k.code===423?e("home.rateLimited"):k.code===428?e("home.notInitialized"):k.msg||s:s}const u=w(""),l=/^[A-Za-z0-9]{4,8}$/,T=w(""),M=$(()=>new TextEncoder().encode(T.value).length),F=$(()=>M.value>Et);async function g(){const k=T.value;if(!k.trim()){r.error(e("home.textRequired"));return}if(F.value){r.error(e("home.textTooLong"));return}if(u.value.trim()&&!l.test(u.value.trim())){r.error(e("home.customCodeInvalid"));return}p.value=!0;try{const s=await me(k,S.value,y.value,u.value.trim());b.value={code:s.code},r.success(e("home.textShared"))}catch(s){r.error(V(s,e("home.shareFailed")))}finally{p.value=!1}}const d=w(null),v=w(null),x=w(null),E=$(()=>c.openUpload),D=$(()=>!!(d.value&&c.enableChunk&&d.value.size>8*1024*1024)),U=$(()=>c.effectiveMaxFileSize);async function te(){if(!d.value){r.error(e("home.fileRequired"));return}if(U.value&&d.value.size>U.value){r.error(e("home.fileTooLarge",{size:R(U.value)}));return}p.value=!0,v.value=0,b.value=null;try{if(u.value.trim()&&!l.test(u.value.trim())){r.error(e("home.customCodeInvalid"));return}if(D.value){const k=lt({file:d.value,expireValue:S.value,expireStyle:y.value,customCode:u.value.trim(),onProgress:_=>v.value=_},{init:Je,uploadOne:Qe,status:et,finish:tt,cancel:ot});x.value=k;const s=await k.promise;b.value={code:s.code,name:s.name}}else{const k=await he(d.value,S.value,y.value,s=>v.value=s,u.value.trim());b.value={code:k.code,name:k.name||d.value.name}}r.success(e("home.fileShared")),d.value=null}catch(k){k instanceof DOMException&&k.name==="AbortError"?r.info(e("home.uploadCancelled")):r.error(V(k,e("home.uploadFailed")))}finally{p.value=!1,v.value=null,x.value=null}}function oe(){x.value?.cancel()}function J(k){C.value=k,b.value=null,v.value=null}return(k,s)=>(m(),re(pe,null,{default:ce(()=>[t("section",at,[t("h1",null,i(n(e)("home.heroTitle",{name:n(c).displayName})),1),t("p",null,i(n(c).description||n(e)("home.heroDesc")),1),t("form",{class:"quick-pickup",onSubmit:O(z,["prevent"])},[N(t("input",{"onUpdate:modelValue":s[0]||(s[0]=_=>f.value=_),class:"input",placeholder:n(e)("home.pickupPlaceholder"),maxlength:"32",autocomplete:"off"},null,8,st),[[j,f.value]]),t("button",it,i(n(e)("home.pickupButton")),1)],32)]),t("section",ut,[t("div",rt,[t("button",{class:K(["tab",{active:C.value==="text"}]),type:"button",role:"tab",onClick:s[1]||(s[1]=_=>J("text"))},i(n(e)("home.tabText")),3),t("button",{class:K(["tab",{active:C.value==="file"}]),type:"button",role:"tab",onClick:s[2]||(s[2]=_=>J("file"))},i(n(e)("home.tabFile")),3)]),C.value==="text"?(m(),h("form",{key:0,style:{"margin-top":"18px"},onSubmit:O(g,["prevent"])},[t("div",ct,[t("label",null,i(n(e)("home.textContent")),1),N(t("textarea",{"onUpdate:modelValue":s[3]||(s[3]=_=>T.value=_),class:"textarea",placeholder:n(e)("home.textPlaceholder"),spellcheck:"false"},null,8,dt),[[j,T.value]]),t("p",{class:"hint",style:L(F.value?"color: var(--c-danger)":"")},i(n(e)("home.textBytes",{bytes:M.value.toLocaleString()})),5)]),t("div",vt,[t("label",pt,i(n(e)("home.customCode")),1),N(t("input",{id:"share-custom-code","onUpdate:modelValue":s[4]||(s[4]=_=>u.value=_),class:"input input-mono",placeholder:n(e)("home.customCodeHint"),maxlength:"8",autocomplete:"off"},null,8,mt),[[j,u.value]])]),t("div",ht,[X(Q,{value:S.value,"onUpdate:value":s[5]||(s[5]=_=>S.value=_),style:L(y.value),"onUpdate:style":s[6]||(s[6]=_=>y.value=_)},null,8,["value","style"])]),t("button",{class:"btn btn-block",type:"submit",disabled:p.value||F.value},[p.value?(m(),h("span",yt)):B("",!0),P(" "+i(n(e)("home.generateCode")),1)],8,ft)],32)):(m(),h("form",{key:1,style:{"margin-top":"18px"},onSubmit:O(te,["prevent"])},[E.value?(m(),h(H,{key:0},[t("div",xt,[X(Ze,{modelValue:d.value,"onUpdate:modelValue":s[7]||(s[7]=_=>d.value=_),"max-size":U.value||void 0,"accept-types":n(c).allowedFileTypes,disabled:p.value},null,8,["modelValue","max-size","accept-types","disabled"])]),t("div",bt,[t("div",kt,[t("label",_t,i(n(e)("home.customCode")),1),N(t("input",{id:"share-custom-code-file","onUpdate:modelValue":s[8]||(s[8]=_=>u.value=_),class:"input input-mono",placeholder:n(e)("home.customCodeHint"),maxlength:"8",autocomplete:"off"},null,8,St),[[j,u.value]])]),X(Q,{value:S.value,"onUpdate:value":s[9]||(s[9]=_=>S.value=_),style:L(y.value),"onUpdate:style":s[10]||(s[10]=_=>y.value=_)},null,8,["value","style"])]),v.value!==null?(m(),h("div",gt,[t("div",Ct,[t("i",{style:L({width:`${v.value}%`})},null,4)]),t("p",$t,[P(i(D.value?n(e)("home.chunkedUploading"):n(e)("home.uploading"))+" "+i(v.value)+"% ",1),p.value?(m(),h("button",{key:0,class:"btn btn-ghost btn-sm",type:"button",style:{"margin-left":"8px"},onClick:oe},i(n(e)("common.cancel")),1)):B("",!0)])])):B("",!0),t("button",{class:"btn btn-block",type:"submit",disabled:p.value||!d.value},[p.value?(m(),h("span",wt)):B("",!0),P(" "+i(p.value?n(e)("home.uploadingDots"):n(e)("home.uploadAndShare")),1)],8,zt)],64)):(m(),h("div",Tt,[s[12]||(s[12]=t("div",{class:"empty-icon"},"🚫",-1)),P(" "+i(n(e)("home.uploadDisabled")),1)]))],32)),b.value?(m(),h("div",Vt,[X(Re,{code:b.value.code,name:b.value.name,"expire-value":S.value,"expire-style":y.value},null,8,["code","name","expire-value","expire-style"]),t("button",{class:"btn btn-ghost btn-block",type:"button",style:{"margin-top":"12px"},onClick:s[11]||(s[11]=_=>b.value=null)},i(n(e)("home.shareAnother")),1)])):B("",!0)])]),_:1}))}});export{Pt as default}; diff --git a/server/web/dist/assets/HomeView-DtwmVvt0.js b/server/web/dist/assets/HomeView-DtwmVvt0.js new file mode 100644 index 0000000..2711412 --- /dev/null +++ b/server/web/dist/assets/HomeView-DtwmVvt0.js @@ -0,0 +1 @@ +import{d as W,u as Y,a as G,o as m,c as h,b as t,n as L,e as K,t as i,f as n,g as B,F as H,r as ne,h as $,E as q,_ as Z,i as ee,j as w,k as le,p as ae,l as se,w as O,m as ie,q as P,s as R,v as I,x as A,y as ue,z as re,A as ce,B as de,C as N,D as j,G as X,H as ve}from"./index-QLbKGtH7.js";import{P as pe}from"./PageShell-D1DY7qw8.js";import{s as me,a as he}from"./share-Y37-qxxb.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-8XmHL8P7.js";const fe={class:"field-row"},ye={class:"field-sub"},xe=["max","value"],be={class:"field-sub"},ke=["value"],_e=["value"],Se={key:0,class:"hint",style:{color:"var(--c-warn)"}},ge={key:1,class:"hint"},Ce={key:2,class:"hint"},$e={key:3,class:"hint"},ze=W({__name:"ExpirePicker",props:{value:{},style:{},compact:{type:Boolean}},emits:["update:value","update:style"],setup(a,{emit:e}){const o=a,c=e,{t:r,te:C}=Y(),f=G(),z=$(()=>{const g=f.expireStyle.length?f.expireStyle:["day","hour","minute","forever","count"],d=q.filter(x=>g.includes(x.value)),v=g.filter(x=>!q.some(E=>E.value===x)).map(x=>({value:x,label:x}));return[...d,...v]}),S=$(()=>o.style==="forever"),y=$(()=>o.style==="count"),p=$(()=>f.maxSaveCount>0?f.maxSaveCount:9999),b=$(()=>f.maxSaveSeconds>0?f.maxSaveSeconds:0),V={day:86400,hour:3600,minute:60};function u(g){const d=b.value,v=V[g];return v?d<=0?9999:Math.max(1,Math.floor(d/v)):g==="count"?p.value:9999}const l=$(()=>{if(y.value&&f.maxSaveCount>0&&o.value>f.maxSaveCount)return r("expire.maxCountHint",{n:f.maxSaveCount});if(!S.value&&!y.value&&b.value>0){const g=u(o.style);if(o.value>g){const d=q.find(v=>v.value===o.style)?.label??o.style;return r("expire.maxSecondsHint",{value:`${g} ${d}`})}}return""}),T=$(()=>q.find(g=>g.value===o.style)?.label??o.style);function M(g,d){const v=`expireStyle.${g}`;return C(v)?r(v):d}function F(g){const d=g.target.value;c("update:style",d),d==="count"&&o.value>p.value&&c("update:value",1),d==="minute"&&o.value<1&&c("update:value",10)}return(g,d)=>(m(),h(H,null,[t("div",fe,[S.value?B("",!0):(m(),h("label",{key:0,class:K(["expire-value",{compact:a.compact}]),style:L(a.compact?"flex:0 0 110px":"")},[t("span",ye,i(n(r)("expire.value")),1),t("input",{class:"input",type:"number",min:1,max:u(a.style),value:a.value,onInput:d[0]||(d[0]=v=>c("update:value",Math.max(1,Number(v.target.value)||1)))},null,40,xe)],6)),t("label",{style:L(S.value?"flex:1":"")},[t("span",be,i(n(r)("expire.label")),1),t("select",{class:"select",value:a.style,onChange:F},[(m(!0),h(H,null,ne(z.value,v=>(m(),h("option",{key:v.value,value:v.value},i(S.value&&v.value==="forever"?n(r)("expire.foreverOption"):v.value==="count"?n(r)("expire.countOption"):M(v.value,v.label)),9,_e))),128))],40,ke)],4)]),l.value?(m(),h("p",Se,i(l.value),1)):a.style==="count"?(m(),h("p",ge,i(n(r)("expire.countHint")),1)):S.value?(m(),h("p",$e,i(n(r)("expire.foreverHint")),1)):(m(),h("p",Ce,i(n(r)("expire.timeHint",{value:a.value,unit:T.value})),1))],64))}}),Q=Z(ze,[["__scopeId","data-v-d049fcf9"]]),we={class:"card result-card"},Te={class:"result-head"},Ve={class:"badge badge-success"},Ee={key:0,class:"result-name"},Me={class:"field"},Be=["title"],De={class:"field"},Fe={class:"link-row"},Pe=["value"],Ue={class:"result-meta"},Le={key:0},He={class:"hint",style:{"margin-top":"10px"}},Oe=W({__name:"ResultCard",props:{code:{},name:{},expireValue:{},expireStyle:{}},setup(a){const e=a,{t:o}=Y(),c=ee(),r=G(),C=w(null),f=$(()=>ae(e.code,r.shareLinkBase));async function z(y){const p=y==="link"?f.value:e.code;await le(p)?(C.value=y,c.success(o(y==="link"?"result.linkCopied":"result.codeCopied")),setTimeout(()=>C.value=null,1600)):c.error(o("result.copyFailed"))}const S=$(()=>e.expireStyle==="forever"?o("result.forever"):`${e.expireValue??"-"} ${se(e.expireStyle??"")}`);return(y,p)=>(m(),h("div",we,[t("div",Te,[t("span",Ve,i(n(o)("result.badge")),1),a.name?(m(),h("span",Ee,i(a.name),1)):B("",!0)]),t("div",Me,[t("label",null,i(n(o)("result.code")),1),t("button",{class:"code-display code-copy",type:"button",title:n(o)("result.clickCopyCode"),onClick:p[0]||(p[0]=b=>z("code"))},i(a.code),9,Be)]),t("div",De,[t("label",null,i(n(o)("result.link")),1),t("div",Fe,[t("input",{class:"input input-mono",value:f.value,readonly:"",onFocus:p[1]||(p[1]=b=>b.target.select())},null,40,Pe),t("button",{class:"btn btn-ghost",type:"button",onClick:p[2]||(p[2]=b=>z("link"))},i(C.value==="link"?n(o)("common.copied"):n(o)("result.copyLink")),1)])]),t("div",Ue,[a.expireStyle?(m(),h("span",Le,i(n(o)("result.expires",{value:S.value})),1)):B("",!0)]),t("p",He,i(n(o)("result.hint")),1)]))}}),Re=Z(Oe,[["__scopeId","data-v-8bebf3d9"]]),Ie=["aria-label"],Ae={class:"dz-main"},qe={class:"dz-sub"},Ne={key:1,class:"file-chip"},je={class:"fc-name"},Xe={class:"fc-size"},Ke=["title"],We={key:2,class:"hint",style:{color:"var(--c-danger)"}},Ye=["accept"],Ge=W({__name:"FileDrop",props:{modelValue:{},maxSize:{},disabled:{type:Boolean},acceptTypes:{}},emits:["update:modelValue"],setup(a,{emit:e}){const o=a,c=e,{t:r}=Y(),C=w(null),f=w(!1),z=w(""),S=$(()=>{const u=(o.acceptTypes??[]).map(l=>l.trim()).filter(Boolean);return!u.length||u.some(l=>l==="*"||l==="*/*")?"":u.map(l=>l.includes("/")||l.startsWith(".")?l:`.${l.toLowerCase()}`).join(",")}),y=$(()=>{const u=(o.acceptTypes??[]).filter(l=>l&&l!=="*"&&l!=="*/*");return u.length?r("drop.typeHint",{types:u.join(", ")}):""});function p(u){if(z.value="",!!u){if(o.maxSize&&u.size>o.maxSize){z.value=r("drop.tooLarge",{size:R(u.size),limit:R(o.maxSize)}),c("update:modelValue",null);return}c("update:modelValue",u)}}function b(u){f.value=!1,!o.disabled&&p(u.dataTransfer?.files?.[0])}function V(u){const l=u.target;p(l.files?.[0]),l.value=""}return(u,l)=>(m(),h("div",null,[a.modelValue?(m(),h("div",Ne,[l[6]||(l[6]=t("span",{"aria-hidden":"true"},"📄",-1)),t("span",je,i(a.modelValue.name),1),t("span",Xe,i(n(R)(a.modelValue.size)),1),t("button",{class:"fc-remove",type:"button",title:n(r)("drop.remove"),onClick:l[4]||(l[4]=T=>c("update:modelValue",null))},"✕",8,Ke)])):(m(),h("div",{key:0,class:K(["dropzone",{dragover:f.value,disabled:a.disabled}]),role:"button",tabindex:"0","aria-label":n(r)("drop.aria"),onClick:l[0]||(l[0]=T=>!a.disabled&&C.value?.click()),onKeydown:l[1]||(l[1]=ie(O(T=>!a.disabled&&C.value?.click(),["prevent"]),["enter"])),onDragover:l[2]||(l[2]=O(T=>f.value=!0,["prevent"])),onDragleave:l[3]||(l[3]=T=>f.value=!1),onDrop:O(b,["prevent"])},[l[5]||(l[5]=t("div",{class:"dz-icon","aria-hidden":"true"},"📦",-1)),t("div",Ae,i(n(r)("drop.zone")),1),t("div",qe,[a.maxSize?(m(),h(H,{key:0},[P(i(n(r)("drop.maxSize",{size:n(R)(a.maxSize)})),1)],64)):(m(),h(H,{key:1},[P(i(n(r)("drop.noLimit")),1)],64)),y.value?(m(),h(H,{key:2},[P(" · "+i(y.value),1)],64)):B("",!0)])],42,Ie)),z.value?(m(),h("p",We,i(z.value),1)):B("",!0),t("input",{ref_key:"inputRef",ref:C,type:"file",hidden:"",accept:S.value,onChange:V},null,40,Ye)]))}}),Ze=Z(Ge,[["__scopeId","data-v-1b57fe5c"]]);function Je(a,e,o,c){return I(A.chunkInit,{method:"POST",json:{file_name:a,file_size:e,chunk_size:o,file_hash:c},timeout:6e4})}async function Qe(a,e,o){const c=new FormData;c.append("upload_id",a),c.append("chunk_index",String(e)),c.append("chunk",o,`chunk-${e}`),await I(A.chunkUpload(a,e),{method:"POST",formData:c,timeout:12e4})}function et(a){return I(A.chunkStatus(a),{timeout:6e4})}function tt(a,e,o,c=""){return I(A.chunkFinish(a),{method:"POST",json:{expire_value:e,expire_style:o,code:c},timeout:3e5})}async function ot(a){await I(A.chunkCancel(a),{method:"DELETE",timeout:6e4})}function nt(a){return a<=10*1024*1024?{chunkSize:1*1024*1024,concurrency:3}:a<=100*1024*1024?{chunkSize:5*1024*1024,concurrency:3}:a<=512*1024*1024?{chunkSize:10*1024*1024,concurrency:2}:{chunkSize:20*1024*1024,concurrency:2}}function lt(a,e){const{file:o,expireValue:c,expireStyle:r,customCode:C,onProgress:f}=a;let z=!1;return{promise:(async()=>{const y=nt(o.size),p=Math.max(1,Math.ceil(o.size/y.chunkSize));let b;try{b=await ue(await o.arrayBuffer())}catch{b=`nofp-${o.size}-${o.lastModified}`}const V=await e.init(o.name,o.size,y.chunkSize,b),u=V.upload_id,l=V.chunk_size||y.chunkSize,T=V.total_chunks||p,M=new Set(V.uploaded_chunks??[]),F=()=>{if(!f)return;let x=0;for(const E of M){const D=E*l;x+=Math.max(0,Math.min(l,o.size-D))}f(Math.min(100,Math.round(x/o.size*100)),x,o.size)};F();const g=async x=>{for(let E=0;E<2;E++)try{const D=x*l,U=o.slice(D,Math.min(D+l,o.size));await e.uploadOne(u,x,U),M.add(x),F();return}catch(D){if(E===1)throw D}};let d=0;const v=async()=>{for(;!z;){const x=d++;if(x>=T)return;M.has(x)||await g(x)}};if(await Promise.all(Array.from({length:y.concurrency},()=>v())),z)throw await e.cancel(u).catch(()=>{}),new DOMException("上传已取消","AbortError");if(M.sizez=!0}}const at={class:"hero"},st=["placeholder"],it={class:"btn",type:"submit"},ut={class:"card share-card"},rt={class:"tabs",role:"tablist"},ct={class:"field"},dt=["placeholder"],vt={class:"field"},pt={for:"share-custom-code"},mt=["placeholder"],ht={class:"field"},ft=["disabled"],yt={key:0,class:"spin","aria-hidden":"true"},xt={class:"field"},bt={class:"field"},kt={class:"field"},_t={for:"share-custom-code-file"},St=["placeholder"],gt={key:0,class:"field"},Ct={class:"progress"},$t={class:"hint"},zt=["disabled"],wt={key:0,class:"spin","aria-hidden":"true"},Tt={key:1,class:"empty"},Vt={key:2,style:{"margin-top":"18px"}},Et=222*1024,Pt=W({__name:"HomeView",setup(a){const{t:e}=Y(),o=de(),c=G(),r=ee(),C=w("text"),f=w("");function z(){const k=f.value.trim();if(!k){r.error(e("home.pickupRequired"));return}o.push({name:"pickup",params:{code:k}})}const S=w(1),y=w("day"),p=w(!1),b=w(null);function V(k,s){return k instanceof ve?k.code===423?e("home.rateLimited"):k.code===428?e("home.notInitialized"):k.msg||s:s}const u=w(""),l=/^[A-Za-z0-9]{4,8}$/,T=w(""),M=$(()=>new TextEncoder().encode(T.value).length),F=$(()=>M.value>Et);async function g(){const k=T.value;if(!k.trim()){r.error(e("home.textRequired"));return}if(F.value){r.error(e("home.textTooLong"));return}if(u.value.trim()&&!l.test(u.value.trim())){r.error(e("home.customCodeInvalid"));return}p.value=!0;try{const s=await me(k,S.value,y.value,u.value.trim());b.value={code:s.code},r.success(e("home.textShared"))}catch(s){r.error(V(s,e("home.shareFailed")))}finally{p.value=!1}}const d=w(null),v=w(null),x=w(null),E=$(()=>c.openUpload),D=$(()=>!!(d.value&&c.enableChunk&&d.value.size>8*1024*1024)),U=$(()=>c.effectiveMaxFileSize);async function te(){if(!d.value){r.error(e("home.fileRequired"));return}if(U.value&&d.value.size>U.value){r.error(e("home.fileTooLarge",{size:R(U.value)}));return}p.value=!0,v.value=0,b.value=null;try{if(u.value.trim()&&!l.test(u.value.trim())){r.error(e("home.customCodeInvalid"));return}if(D.value){const k=lt({file:d.value,expireValue:S.value,expireStyle:y.value,customCode:u.value.trim(),onProgress:_=>v.value=_},{init:Je,uploadOne:Qe,status:et,finish:tt,cancel:ot});x.value=k;const s=await k.promise;b.value={code:s.code,name:s.name}}else{const k=await he(d.value,S.value,y.value,s=>v.value=s,u.value.trim());b.value={code:k.code,name:k.name||d.value.name}}r.success(e("home.fileShared")),d.value=null}catch(k){k instanceof DOMException&&k.name==="AbortError"?r.info(e("home.uploadCancelled")):r.error(V(k,e("home.uploadFailed")))}finally{p.value=!1,v.value=null,x.value=null}}function oe(){x.value?.cancel()}function J(k){C.value=k,b.value=null,v.value=null}return(k,s)=>(m(),re(pe,null,{default:ce(()=>[t("section",at,[t("h1",null,i(n(e)("home.heroTitle",{name:n(c).displayName})),1),t("p",null,i(n(c).description||n(e)("home.heroDesc")),1),t("form",{class:"quick-pickup",onSubmit:O(z,["prevent"])},[N(t("input",{"onUpdate:modelValue":s[0]||(s[0]=_=>f.value=_),class:"input",placeholder:n(e)("home.pickupPlaceholder"),maxlength:"32",autocomplete:"off"},null,8,st),[[j,f.value]]),t("button",it,i(n(e)("home.pickupButton")),1)],32)]),t("section",ut,[t("div",rt,[t("button",{class:K(["tab",{active:C.value==="text"}]),type:"button",role:"tab",onClick:s[1]||(s[1]=_=>J("text"))},i(n(e)("home.tabText")),3),t("button",{class:K(["tab",{active:C.value==="file"}]),type:"button",role:"tab",onClick:s[2]||(s[2]=_=>J("file"))},i(n(e)("home.tabFile")),3)]),C.value==="text"?(m(),h("form",{key:0,style:{"margin-top":"18px"},onSubmit:O(g,["prevent"])},[t("div",ct,[t("label",null,i(n(e)("home.textContent")),1),N(t("textarea",{"onUpdate:modelValue":s[3]||(s[3]=_=>T.value=_),class:"textarea",placeholder:n(e)("home.textPlaceholder"),spellcheck:"false"},null,8,dt),[[j,T.value]]),t("p",{class:"hint",style:L(F.value?"color: var(--c-danger)":"")},i(n(e)("home.textBytes",{bytes:M.value.toLocaleString()})),5)]),t("div",vt,[t("label",pt,i(n(e)("home.customCode")),1),N(t("input",{id:"share-custom-code","onUpdate:modelValue":s[4]||(s[4]=_=>u.value=_),class:"input input-mono",placeholder:n(e)("home.customCodeHint"),maxlength:"8",autocomplete:"off"},null,8,mt),[[j,u.value]])]),t("div",ht,[X(Q,{value:S.value,"onUpdate:value":s[5]||(s[5]=_=>S.value=_),style:L(y.value),"onUpdate:style":s[6]||(s[6]=_=>y.value=_)},null,8,["value","style"])]),t("button",{class:"btn btn-block",type:"submit",disabled:p.value||F.value},[p.value?(m(),h("span",yt)):B("",!0),P(" "+i(n(e)("home.generateCode")),1)],8,ft)],32)):(m(),h("form",{key:1,style:{"margin-top":"18px"},onSubmit:O(te,["prevent"])},[E.value?(m(),h(H,{key:0},[t("div",xt,[X(Ze,{modelValue:d.value,"onUpdate:modelValue":s[7]||(s[7]=_=>d.value=_),"max-size":U.value||void 0,"accept-types":n(c).allowedFileTypes,disabled:p.value},null,8,["modelValue","max-size","accept-types","disabled"])]),t("div",bt,[t("div",kt,[t("label",_t,i(n(e)("home.customCode")),1),N(t("input",{id:"share-custom-code-file","onUpdate:modelValue":s[8]||(s[8]=_=>u.value=_),class:"input input-mono",placeholder:n(e)("home.customCodeHint"),maxlength:"8",autocomplete:"off"},null,8,St),[[j,u.value]])]),X(Q,{value:S.value,"onUpdate:value":s[9]||(s[9]=_=>S.value=_),style:L(y.value),"onUpdate:style":s[10]||(s[10]=_=>y.value=_)},null,8,["value","style"])]),v.value!==null?(m(),h("div",gt,[t("div",Ct,[t("i",{style:L({width:`${v.value}%`})},null,4)]),t("p",$t,[P(i(D.value?n(e)("home.chunkedUploading"):n(e)("home.uploading"))+" "+i(v.value)+"% ",1),p.value?(m(),h("button",{key:0,class:"btn btn-ghost btn-sm",type:"button",style:{"margin-left":"8px"},onClick:oe},i(n(e)("common.cancel")),1)):B("",!0)])])):B("",!0),t("button",{class:"btn btn-block",type:"submit",disabled:p.value||!d.value},[p.value?(m(),h("span",wt)):B("",!0),P(" "+i(p.value?n(e)("home.uploadingDots"):n(e)("home.uploadAndShare")),1)],8,zt)],64)):(m(),h("div",Tt,[s[12]||(s[12]=t("div",{class:"empty-icon"},"🚫",-1)),P(" "+i(n(e)("home.uploadDisabled")),1)]))],32)),b.value?(m(),h("div",Vt,[X(Re,{code:b.value.code,name:b.value.name,"expire-value":S.value,"expire-style":y.value},null,8,["code","name","expire-value","expire-style"]),t("button",{class:"btn btn-ghost btn-block",type:"button",style:{"margin-top":"12px"},onClick:s[11]||(s[11]=_=>b.value=null)},i(n(e)("home.shareAnother")),1)])):B("",!0)])]),_:1}))}});export{Pt as default}; diff --git a/server/web/dist/assets/HomeView-DvJMP0hn.js b/server/web/dist/assets/HomeView-DvJMP0hn.js new file mode 100644 index 0000000..9cd2184 --- /dev/null +++ b/server/web/dist/assets/HomeView-DvJMP0hn.js @@ -0,0 +1 @@ +import{d as W,u as Y,a as G,o as m,c as h,b as t,n as L,e as K,t as i,f as n,g as B,F as H,r as ne,h as $,E as q,_ as Z,i as ee,j as w,k as le,p as ae,l as se,w as O,m as ie,q as P,s as R,v as I,x as A,y as ue,z as re,A as ce,B as de,C as N,D as j,G as X,H as ve}from"./index-D7AAbqvI.js";import{P as pe}from"./PageShell-D3dyUalL.js";import{s as me,a as he}from"./share-x2wQCCnt.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-B5OHbKDQ.js";const fe={class:"field-row"},ye={class:"field-sub"},xe=["max","value"],be={class:"field-sub"},ke=["value"],_e=["value"],Se={key:0,class:"hint",style:{color:"var(--c-warn)"}},ge={key:1,class:"hint"},Ce={key:2,class:"hint"},$e={key:3,class:"hint"},ze=W({__name:"ExpirePicker",props:{value:{},style:{},compact:{type:Boolean}},emits:["update:value","update:style"],setup(a,{emit:e}){const o=a,c=e,{t:r,te:C}=Y(),f=G(),z=$(()=>{const g=f.expireStyle.length?f.expireStyle:["day","hour","minute","forever","count"],d=q.filter(x=>g.includes(x.value)),v=g.filter(x=>!q.some(E=>E.value===x)).map(x=>({value:x,label:x}));return[...d,...v]}),S=$(()=>o.style==="forever"),y=$(()=>o.style==="count"),p=$(()=>f.maxSaveCount>0?f.maxSaveCount:9999),b=$(()=>f.maxSaveSeconds>0?f.maxSaveSeconds:0),V={day:86400,hour:3600,minute:60};function u(g){const d=b.value,v=V[g];return v?d<=0?9999:Math.max(1,Math.floor(d/v)):g==="count"?p.value:9999}const l=$(()=>{if(y.value&&f.maxSaveCount>0&&o.value>f.maxSaveCount)return r("expire.maxCountHint",{n:f.maxSaveCount});if(!S.value&&!y.value&&b.value>0){const g=u(o.style);if(o.value>g){const d=q.find(v=>v.value===o.style)?.label??o.style;return r("expire.maxSecondsHint",{value:`${g} ${d}`})}}return""}),T=$(()=>q.find(g=>g.value===o.style)?.label??o.style);function M(g,d){const v=`expireStyle.${g}`;return C(v)?r(v):d}function F(g){const d=g.target.value;c("update:style",d),d==="count"&&o.value>p.value&&c("update:value",1),d==="minute"&&o.value<1&&c("update:value",10)}return(g,d)=>(m(),h(H,null,[t("div",fe,[S.value?B("",!0):(m(),h("label",{key:0,class:K(["expire-value",{compact:a.compact}]),style:L(a.compact?"flex:0 0 110px":"")},[t("span",ye,i(n(r)("expire.value")),1),t("input",{class:"input",type:"number",min:1,max:u(a.style),value:a.value,onInput:d[0]||(d[0]=v=>c("update:value",Math.max(1,Number(v.target.value)||1)))},null,40,xe)],6)),t("label",{style:L(S.value?"flex:1":"")},[t("span",be,i(n(r)("expire.label")),1),t("select",{class:"select",value:a.style,onChange:F},[(m(!0),h(H,null,ne(z.value,v=>(m(),h("option",{key:v.value,value:v.value},i(S.value&&v.value==="forever"?n(r)("expire.foreverOption"):v.value==="count"?n(r)("expire.countOption"):M(v.value,v.label)),9,_e))),128))],40,ke)],4)]),l.value?(m(),h("p",Se,i(l.value),1)):a.style==="count"?(m(),h("p",ge,i(n(r)("expire.countHint")),1)):S.value?(m(),h("p",$e,i(n(r)("expire.foreverHint")),1)):(m(),h("p",Ce,i(n(r)("expire.timeHint",{value:a.value,unit:T.value})),1))],64))}}),Q=Z(ze,[["__scopeId","data-v-d049fcf9"]]),we={class:"card result-card"},Te={class:"result-head"},Ve={class:"badge badge-success"},Ee={key:0,class:"result-name"},Me={class:"field"},Be=["title"],De={class:"field"},Fe={class:"link-row"},Pe=["value"],Ue={class:"result-meta"},Le={key:0},He={class:"hint",style:{"margin-top":"10px"}},Oe=W({__name:"ResultCard",props:{code:{},name:{},expireValue:{},expireStyle:{}},setup(a){const e=a,{t:o}=Y(),c=ee(),r=G(),C=w(null),f=$(()=>ae(e.code,r.shareLinkBase));async function z(y){const p=y==="link"?f.value:e.code;await le(p)?(C.value=y,c.success(o(y==="link"?"result.linkCopied":"result.codeCopied")),setTimeout(()=>C.value=null,1600)):c.error(o("result.copyFailed"))}const S=$(()=>e.expireStyle==="forever"?o("result.forever"):`${e.expireValue??"-"} ${se(e.expireStyle??"")}`);return(y,p)=>(m(),h("div",we,[t("div",Te,[t("span",Ve,i(n(o)("result.badge")),1),a.name?(m(),h("span",Ee,i(a.name),1)):B("",!0)]),t("div",Me,[t("label",null,i(n(o)("result.code")),1),t("button",{class:"code-display code-copy",type:"button",title:n(o)("result.clickCopyCode"),onClick:p[0]||(p[0]=b=>z("code"))},i(a.code),9,Be)]),t("div",De,[t("label",null,i(n(o)("result.link")),1),t("div",Fe,[t("input",{class:"input input-mono",value:f.value,readonly:"",onFocus:p[1]||(p[1]=b=>b.target.select())},null,40,Pe),t("button",{class:"btn btn-ghost",type:"button",onClick:p[2]||(p[2]=b=>z("link"))},i(C.value==="link"?n(o)("common.copied"):n(o)("result.copyLink")),1)])]),t("div",Ue,[a.expireStyle?(m(),h("span",Le,i(n(o)("result.expires",{value:S.value})),1)):B("",!0)]),t("p",He,i(n(o)("result.hint")),1)]))}}),Re=Z(Oe,[["__scopeId","data-v-8bebf3d9"]]),Ie=["aria-label"],Ae={class:"dz-main"},qe={class:"dz-sub"},Ne={key:1,class:"file-chip"},je={class:"fc-name"},Xe={class:"fc-size"},Ke=["title"],We={key:2,class:"hint",style:{color:"var(--c-danger)"}},Ye=["accept"],Ge=W({__name:"FileDrop",props:{modelValue:{},maxSize:{},disabled:{type:Boolean},acceptTypes:{}},emits:["update:modelValue"],setup(a,{emit:e}){const o=a,c=e,{t:r}=Y(),C=w(null),f=w(!1),z=w(""),S=$(()=>{const u=(o.acceptTypes??[]).map(l=>l.trim()).filter(Boolean);return!u.length||u.some(l=>l==="*"||l==="*/*")?"":u.map(l=>l.includes("/")||l.startsWith(".")?l:`.${l.toLowerCase()}`).join(",")}),y=$(()=>{const u=(o.acceptTypes??[]).filter(l=>l&&l!=="*"&&l!=="*/*");return u.length?r("drop.typeHint",{types:u.join(", ")}):""});function p(u){if(z.value="",!!u){if(o.maxSize&&u.size>o.maxSize){z.value=r("drop.tooLarge",{size:R(u.size),limit:R(o.maxSize)}),c("update:modelValue",null);return}c("update:modelValue",u)}}function b(u){f.value=!1,!o.disabled&&p(u.dataTransfer?.files?.[0])}function V(u){const l=u.target;p(l.files?.[0]),l.value=""}return(u,l)=>(m(),h("div",null,[a.modelValue?(m(),h("div",Ne,[l[6]||(l[6]=t("span",{"aria-hidden":"true"},"📄",-1)),t("span",je,i(a.modelValue.name),1),t("span",Xe,i(n(R)(a.modelValue.size)),1),t("button",{class:"fc-remove",type:"button",title:n(r)("drop.remove"),onClick:l[4]||(l[4]=T=>c("update:modelValue",null))},"✕",8,Ke)])):(m(),h("div",{key:0,class:K(["dropzone",{dragover:f.value,disabled:a.disabled}]),role:"button",tabindex:"0","aria-label":n(r)("drop.aria"),onClick:l[0]||(l[0]=T=>!a.disabled&&C.value?.click()),onKeydown:l[1]||(l[1]=ie(O(T=>!a.disabled&&C.value?.click(),["prevent"]),["enter"])),onDragover:l[2]||(l[2]=O(T=>f.value=!0,["prevent"])),onDragleave:l[3]||(l[3]=T=>f.value=!1),onDrop:O(b,["prevent"])},[l[5]||(l[5]=t("div",{class:"dz-icon","aria-hidden":"true"},"📦",-1)),t("div",Ae,i(n(r)("drop.zone")),1),t("div",qe,[a.maxSize?(m(),h(H,{key:0},[P(i(n(r)("drop.maxSize",{size:n(R)(a.maxSize)})),1)],64)):(m(),h(H,{key:1},[P(i(n(r)("drop.noLimit")),1)],64)),y.value?(m(),h(H,{key:2},[P(" · "+i(y.value),1)],64)):B("",!0)])],42,Ie)),z.value?(m(),h("p",We,i(z.value),1)):B("",!0),t("input",{ref_key:"inputRef",ref:C,type:"file",hidden:"",accept:S.value,onChange:V},null,40,Ye)]))}}),Ze=Z(Ge,[["__scopeId","data-v-1b57fe5c"]]);function Je(a,e,o,c){return I(A.chunkInit,{method:"POST",json:{file_name:a,file_size:e,chunk_size:o,file_hash:c},timeout:6e4})}async function Qe(a,e,o){const c=new FormData;c.append("upload_id",a),c.append("chunk_index",String(e)),c.append("chunk",o,`chunk-${e}`),await I(A.chunkUpload(a,e),{method:"POST",formData:c,timeout:12e4})}function et(a){return I(A.chunkStatus(a),{timeout:6e4})}function tt(a,e,o,c=""){return I(A.chunkFinish(a),{method:"POST",json:{expire_value:e,expire_style:o,code:c},timeout:3e5})}async function ot(a){await I(A.chunkCancel(a),{method:"DELETE",timeout:6e4})}function nt(a){return a<=10*1024*1024?{chunkSize:1*1024*1024,concurrency:3}:a<=100*1024*1024?{chunkSize:5*1024*1024,concurrency:3}:a<=512*1024*1024?{chunkSize:10*1024*1024,concurrency:2}:{chunkSize:20*1024*1024,concurrency:2}}function lt(a,e){const{file:o,expireValue:c,expireStyle:r,customCode:C,onProgress:f}=a;let z=!1;return{promise:(async()=>{const y=nt(o.size),p=Math.max(1,Math.ceil(o.size/y.chunkSize));let b;try{b=await ue(await o.arrayBuffer())}catch{b=`nofp-${o.size}-${o.lastModified}`}const V=await e.init(o.name,o.size,y.chunkSize,b),u=V.upload_id,l=V.chunk_size||y.chunkSize,T=V.total_chunks||p,M=new Set(V.uploaded_chunks??[]),F=()=>{if(!f)return;let x=0;for(const E of M){const D=E*l;x+=Math.max(0,Math.min(l,o.size-D))}f(Math.min(100,Math.round(x/o.size*100)),x,o.size)};F();const g=async x=>{for(let E=0;E<2;E++)try{const D=x*l,U=o.slice(D,Math.min(D+l,o.size));await e.uploadOne(u,x,U),M.add(x),F();return}catch(D){if(E===1)throw D}};let d=0;const v=async()=>{for(;!z;){const x=d++;if(x>=T)return;M.has(x)||await g(x)}};if(await Promise.all(Array.from({length:y.concurrency},()=>v())),z)throw await e.cancel(u).catch(()=>{}),new DOMException("上传已取消","AbortError");if(M.sizez=!0}}const at={class:"hero"},st=["placeholder"],it={class:"btn",type:"submit"},ut={class:"card share-card"},rt={class:"tabs",role:"tablist"},ct={class:"field"},dt=["placeholder"],vt={class:"field"},pt={for:"share-custom-code"},mt=["placeholder"],ht={class:"field"},ft=["disabled"],yt={key:0,class:"spin","aria-hidden":"true"},xt={class:"field"},bt={class:"field"},kt={class:"field"},_t={for:"share-custom-code-file"},St=["placeholder"],gt={key:0,class:"field"},Ct={class:"progress"},$t={class:"hint"},zt=["disabled"],wt={key:0,class:"spin","aria-hidden":"true"},Tt={key:1,class:"empty"},Vt={key:2,style:{"margin-top":"18px"}},Et=222*1024,Pt=W({__name:"HomeView",setup(a){const{t:e}=Y(),o=de(),c=G(),r=ee(),C=w("text"),f=w("");function z(){const k=f.value.trim();if(!k){r.error(e("home.pickupRequired"));return}o.push({name:"pickup",params:{code:k}})}const S=w(1),y=w("day"),p=w(!1),b=w(null);function V(k,s){return k instanceof ve?k.code===423?e("home.rateLimited"):k.code===428?e("home.notInitialized"):k.msg||s:s}const u=w(""),l=/^[A-Za-z0-9]{4,8}$/,T=w(""),M=$(()=>new TextEncoder().encode(T.value).length),F=$(()=>M.value>Et);async function g(){const k=T.value;if(!k.trim()){r.error(e("home.textRequired"));return}if(F.value){r.error(e("home.textTooLong"));return}if(u.value.trim()&&!l.test(u.value.trim())){r.error(e("home.customCodeInvalid"));return}p.value=!0;try{const s=await me(k,S.value,y.value,u.value.trim());b.value={code:s.code},r.success(e("home.textShared"))}catch(s){r.error(V(s,e("home.shareFailed")))}finally{p.value=!1}}const d=w(null),v=w(null),x=w(null),E=$(()=>c.openUpload),D=$(()=>!!(d.value&&c.enableChunk&&d.value.size>8*1024*1024)),U=$(()=>c.effectiveMaxFileSize);async function te(){if(!d.value){r.error(e("home.fileRequired"));return}if(U.value&&d.value.size>U.value){r.error(e("home.fileTooLarge",{size:R(U.value)}));return}p.value=!0,v.value=0,b.value=null;try{if(u.value.trim()&&!l.test(u.value.trim())){r.error(e("home.customCodeInvalid"));return}if(D.value){const k=lt({file:d.value,expireValue:S.value,expireStyle:y.value,customCode:u.value.trim(),onProgress:_=>v.value=_},{init:Je,uploadOne:Qe,status:et,finish:tt,cancel:ot});x.value=k;const s=await k.promise;b.value={code:s.code,name:s.name}}else{const k=await he(d.value,S.value,y.value,s=>v.value=s,u.value.trim());b.value={code:k.code,name:k.name||d.value.name}}r.success(e("home.fileShared")),d.value=null}catch(k){k instanceof DOMException&&k.name==="AbortError"?r.info(e("home.uploadCancelled")):r.error(V(k,e("home.uploadFailed")))}finally{p.value=!1,v.value=null,x.value=null}}function oe(){x.value?.cancel()}function J(k){C.value=k,b.value=null,v.value=null}return(k,s)=>(m(),re(pe,null,{default:ce(()=>[t("section",at,[t("h1",null,i(n(e)("home.heroTitle",{name:n(c).displayName})),1),t("p",null,i(n(c).description||n(e)("home.heroDesc")),1),t("form",{class:"quick-pickup",onSubmit:O(z,["prevent"])},[N(t("input",{"onUpdate:modelValue":s[0]||(s[0]=_=>f.value=_),class:"input",placeholder:n(e)("home.pickupPlaceholder"),maxlength:"32",autocomplete:"off"},null,8,st),[[j,f.value]]),t("button",it,i(n(e)("home.pickupButton")),1)],32)]),t("section",ut,[t("div",rt,[t("button",{class:K(["tab",{active:C.value==="text"}]),type:"button",role:"tab",onClick:s[1]||(s[1]=_=>J("text"))},i(n(e)("home.tabText")),3),t("button",{class:K(["tab",{active:C.value==="file"}]),type:"button",role:"tab",onClick:s[2]||(s[2]=_=>J("file"))},i(n(e)("home.tabFile")),3)]),C.value==="text"?(m(),h("form",{key:0,style:{"margin-top":"18px"},onSubmit:O(g,["prevent"])},[t("div",ct,[t("label",null,i(n(e)("home.textContent")),1),N(t("textarea",{"onUpdate:modelValue":s[3]||(s[3]=_=>T.value=_),class:"textarea",placeholder:n(e)("home.textPlaceholder"),spellcheck:"false"},null,8,dt),[[j,T.value]]),t("p",{class:"hint",style:L(F.value?"color: var(--c-danger)":"")},i(n(e)("home.textBytes",{bytes:M.value.toLocaleString()})),5)]),t("div",vt,[t("label",pt,i(n(e)("home.customCode")),1),N(t("input",{id:"share-custom-code","onUpdate:modelValue":s[4]||(s[4]=_=>u.value=_),class:"input input-mono",placeholder:n(e)("home.customCodeHint"),maxlength:"8",autocomplete:"off"},null,8,mt),[[j,u.value]])]),t("div",ht,[X(Q,{value:S.value,"onUpdate:value":s[5]||(s[5]=_=>S.value=_),style:L(y.value),"onUpdate:style":s[6]||(s[6]=_=>y.value=_)},null,8,["value","style"])]),t("button",{class:"btn btn-block",type:"submit",disabled:p.value||F.value},[p.value?(m(),h("span",yt)):B("",!0),P(" "+i(n(e)("home.generateCode")),1)],8,ft)],32)):(m(),h("form",{key:1,style:{"margin-top":"18px"},onSubmit:O(te,["prevent"])},[E.value?(m(),h(H,{key:0},[t("div",xt,[X(Ze,{modelValue:d.value,"onUpdate:modelValue":s[7]||(s[7]=_=>d.value=_),"max-size":U.value||void 0,"accept-types":n(c).allowedFileTypes,disabled:p.value},null,8,["modelValue","max-size","accept-types","disabled"])]),t("div",bt,[t("div",kt,[t("label",_t,i(n(e)("home.customCode")),1),N(t("input",{id:"share-custom-code-file","onUpdate:modelValue":s[8]||(s[8]=_=>u.value=_),class:"input input-mono",placeholder:n(e)("home.customCodeHint"),maxlength:"8",autocomplete:"off"},null,8,St),[[j,u.value]])]),X(Q,{value:S.value,"onUpdate:value":s[9]||(s[9]=_=>S.value=_),style:L(y.value),"onUpdate:style":s[10]||(s[10]=_=>y.value=_)},null,8,["value","style"])]),v.value!==null?(m(),h("div",gt,[t("div",Ct,[t("i",{style:L({width:`${v.value}%`})},null,4)]),t("p",$t,[P(i(D.value?n(e)("home.chunkedUploading"):n(e)("home.uploading"))+" "+i(v.value)+"% ",1),p.value?(m(),h("button",{key:0,class:"btn btn-ghost btn-sm",type:"button",style:{"margin-left":"8px"},onClick:oe},i(n(e)("common.cancel")),1)):B("",!0)])])):B("",!0),t("button",{class:"btn btn-block",type:"submit",disabled:p.value||!d.value},[p.value?(m(),h("span",wt)):B("",!0),P(" "+i(p.value?n(e)("home.uploadingDots"):n(e)("home.uploadAndShare")),1)],8,zt)],64)):(m(),h("div",Tt,[s[12]||(s[12]=t("div",{class:"empty-icon"},"🚫",-1)),P(" "+i(n(e)("home.uploadDisabled")),1)]))],32)),b.value?(m(),h("div",Vt,[X(Re,{code:b.value.code,name:b.value.name,"expire-value":S.value,"expire-style":y.value},null,8,["code","name","expire-value","expire-style"]),t("button",{class:"btn btn-ghost btn-block",type:"button",style:{"margin-top":"12px"},onClick:s[11]||(s[11]=_=>b.value=null)},i(n(e)("home.shareAnother")),1)])):B("",!0)])]),_:1}))}});export{Pt as default}; diff --git a/server/web/dist/assets/LoginView-4Q37le_I.js b/server/web/dist/assets/LoginView-4Q37le_I.js new file mode 100644 index 0000000..c250f21 --- /dev/null +++ b/server/web/dist/assets/LoginView-4Q37le_I.js @@ -0,0 +1 @@ +import{d as w,u as b,a as y,z as x,A as k,b as e,f as t,t as a,w as V,C as B,D as C,c as m,g as _,q as N,j as r,N as S,B as q,o as d,H as L,_ as P}from"./index-DSPQyv0Z.js";import{P as A}from"./PageShell-Bv1Rpp4p.js";import{u as D}from"./auth-o4aHzrA6.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-DSt3Q6Wq.js";import"./admin-IDpKsD_2.js";const E={class:"card",style:{"max-width":"380px",margin:"8vh auto 0"}},I={class:"login-head"},M=["src"],R={class:"card-title"},T={class:"card-sub"},U={class:"field"},j={for:"admin-password"},z=["placeholder"],H={key:0,class:"hint",style:{color:"var(--c-danger)","margin-bottom":"12px"}},F=["disabled"],G={key:0,class:"spin","aria-hidden":"true"},J={class:"hint",style:{"margin-top":"16px"}},K=w({__name:"LoginView",setup(O){const{t:s}=b(),c=S(),g=q(),h=D(),u=y(),i=r(""),l=r(!1),n=r("");async function f(){if(!i.value){n.value=s("admin.login.required");return}l.value=!0,n.value="";try{await h.login(i.value);const o=typeof c.query.redirect=="string"?c.query.redirect:"/admin/files";g.replace(o)}catch(o){n.value=o instanceof L?o.code===401?s("admin.login.wrongPassword"):o.msg:s("admin.login.failed"),i.value=""}finally{l.value=!1}}return(o,p)=>(d(),x(A,null,{default:k(()=>[e("section",E,[e("div",I,[e("img",{src:t(u).displayLogoUrl,alt:"Logo",class:"login-logo"},null,8,M),e("h1",R,a(t(s)("admin.login.title")),1),e("p",T,a(t(s)("admin.login.subtitle",{name:t(u).displayName})),1)]),e("form",{onSubmit:V(f,["prevent"])},[e("div",U,[e("label",j,a(t(s)("admin.login.password")),1),B(e("input",{id:"admin-password","onUpdate:modelValue":p[0]||(p[0]=v=>i.value=v),class:"input",type:"password",placeholder:t(s)("admin.login.passwordPlaceholder"),autocomplete:"current-password",autofocus:""},null,8,z),[[C,i.value]])]),n.value?(d(),m("p",H,a(n.value),1)):_("",!0),e("button",{class:"btn btn-block",type:"submit",disabled:l.value},[l.value?(d(),m("span",G)):_("",!0),N(" "+a(t(s)("admin.login.submit")),1)],8,F)],32),e("p",J,a(t(s)("admin.login.hint")),1)])]),_:1}))}}),$=P(K,[["__scopeId","data-v-26e7f2a4"]]);export{$ as default}; diff --git a/server/web/dist/assets/LoginView-CKYOzlGK.js b/server/web/dist/assets/LoginView-CKYOzlGK.js new file mode 100644 index 0000000..0b2142c --- /dev/null +++ b/server/web/dist/assets/LoginView-CKYOzlGK.js @@ -0,0 +1 @@ +import{d as w,u as b,a as y,z as x,A as k,b as e,f as t,t as a,w as V,C as B,D as C,c as m,g as _,q as N,j as r,N as S,B as q,o as d,H as L,_ as P}from"./index-QLbKGtH7.js";import{P as A}from"./PageShell-D1DY7qw8.js";import{u as D}from"./auth-Yfi2oa1E.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-8XmHL8P7.js";import"./admin-BZX1cFNW.js";const E={class:"card",style:{"max-width":"380px",margin:"8vh auto 0"}},I={class:"login-head"},M=["src"],R={class:"card-title"},T={class:"card-sub"},U={class:"field"},j={for:"admin-password"},z=["placeholder"],H={key:0,class:"hint",style:{color:"var(--c-danger)","margin-bottom":"12px"}},F=["disabled"],G={key:0,class:"spin","aria-hidden":"true"},J={class:"hint",style:{"margin-top":"16px"}},K=w({__name:"LoginView",setup(O){const{t:s}=b(),c=S(),g=q(),h=D(),u=y(),i=r(""),l=r(!1),n=r("");async function f(){if(!i.value){n.value=s("admin.login.required");return}l.value=!0,n.value="";try{await h.login(i.value);const o=typeof c.query.redirect=="string"?c.query.redirect:"/admin/files";g.replace(o)}catch(o){n.value=o instanceof L?o.code===401?s("admin.login.wrongPassword"):o.msg:s("admin.login.failed"),i.value=""}finally{l.value=!1}}return(o,p)=>(d(),x(A,null,{default:k(()=>[e("section",E,[e("div",I,[e("img",{src:t(u).displayLogoUrl,alt:"Logo",class:"login-logo"},null,8,M),e("h1",R,a(t(s)("admin.login.title")),1),e("p",T,a(t(s)("admin.login.subtitle",{name:t(u).displayName})),1)]),e("form",{onSubmit:V(f,["prevent"])},[e("div",U,[e("label",j,a(t(s)("admin.login.password")),1),B(e("input",{id:"admin-password","onUpdate:modelValue":p[0]||(p[0]=v=>i.value=v),class:"input",type:"password",placeholder:t(s)("admin.login.passwordPlaceholder"),autocomplete:"current-password",autofocus:""},null,8,z),[[C,i.value]])]),n.value?(d(),m("p",H,a(n.value),1)):_("",!0),e("button",{class:"btn btn-block",type:"submit",disabled:l.value},[l.value?(d(),m("span",G)):_("",!0),N(" "+a(t(s)("admin.login.submit")),1)],8,F)],32),e("p",J,a(t(s)("admin.login.hint")),1)])]),_:1}))}}),$=P(K,[["__scopeId","data-v-26e7f2a4"]]);export{$ as default}; diff --git a/server/web/dist/assets/LoginView-DEDthjQ1.js b/server/web/dist/assets/LoginView-DEDthjQ1.js new file mode 100644 index 0000000..35f3f91 --- /dev/null +++ b/server/web/dist/assets/LoginView-DEDthjQ1.js @@ -0,0 +1 @@ +import{d as w,u as b,a as y,z as x,A as k,b as e,f as t,t as a,w as V,C as B,D as C,c as m,g as _,q as N,j as r,N as S,B as q,o as d,H as L,_ as P}from"./index-D7AAbqvI.js";import{P as A}from"./PageShell-D3dyUalL.js";import{u as D}from"./auth-DjiKbqje.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-B5OHbKDQ.js";import"./admin-uFxGdgNa.js";const E={class:"card",style:{"max-width":"380px",margin:"8vh auto 0"}},I={class:"login-head"},M=["src"],R={class:"card-title"},T={class:"card-sub"},U={class:"field"},j={for:"admin-password"},z=["placeholder"],H={key:0,class:"hint",style:{color:"var(--c-danger)","margin-bottom":"12px"}},F=["disabled"],G={key:0,class:"spin","aria-hidden":"true"},J={class:"hint",style:{"margin-top":"16px"}},K=w({__name:"LoginView",setup(O){const{t:s}=b(),c=S(),g=q(),h=D(),u=y(),i=r(""),l=r(!1),n=r("");async function f(){if(!i.value){n.value=s("admin.login.required");return}l.value=!0,n.value="";try{await h.login(i.value);const o=typeof c.query.redirect=="string"?c.query.redirect:"/admin/files";g.replace(o)}catch(o){n.value=o instanceof L?o.code===401?s("admin.login.wrongPassword"):o.msg:s("admin.login.failed"),i.value=""}finally{l.value=!1}}return(o,p)=>(d(),x(A,null,{default:k(()=>[e("section",E,[e("div",I,[e("img",{src:t(u).displayLogoUrl,alt:"Logo",class:"login-logo"},null,8,M),e("h1",R,a(t(s)("admin.login.title")),1),e("p",T,a(t(s)("admin.login.subtitle",{name:t(u).displayName})),1)]),e("form",{onSubmit:V(f,["prevent"])},[e("div",U,[e("label",j,a(t(s)("admin.login.password")),1),B(e("input",{id:"admin-password","onUpdate:modelValue":p[0]||(p[0]=v=>i.value=v),class:"input",type:"password",placeholder:t(s)("admin.login.passwordPlaceholder"),autocomplete:"current-password",autofocus:""},null,8,z),[[C,i.value]])]),n.value?(d(),m("p",H,a(n.value),1)):_("",!0),e("button",{class:"btn btn-block",type:"submit",disabled:l.value},[l.value?(d(),m("span",G)):_("",!0),N(" "+a(t(s)("admin.login.submit")),1)],8,F)],32),e("p",J,a(t(s)("admin.login.hint")),1)])]),_:1}))}}),$=P(K,[["__scopeId","data-v-26e7f2a4"]]);export{$ as default}; diff --git a/server/web/dist/assets/NotFoundView--KLulUeE.js b/server/web/dist/assets/NotFoundView--KLulUeE.js new file mode 100644 index 0000000..0dc3107 --- /dev/null +++ b/server/web/dist/assets/NotFoundView--KLulUeE.js @@ -0,0 +1 @@ +import{d as c,u as i,z as d,A as a,b as t,t as e,f as s,G as l,q as p,O as u,o as _}from"./index-D7AAbqvI.js";import{P as m}from"./PageShell-D3dyUalL.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-B5OHbKDQ.js";const f={class:"card empty",style:{"max-width":"480px",margin:"10vh auto 0"}},h={style:{"font-weight":"600",color:"var(--c-text)"}},x={class:"hint"},F=c({__name:"NotFoundView",setup(y){const{t:o}=i();return(g,n)=>{const r=u("RouterLink");return _(),d(m,null,{default:a(()=>[t("div",f,[n[0]||(n[0]=t("div",{class:"empty-icon"},"🧭",-1)),t("p",h,e(s(o)("notFound.title")),1),t("p",x,e(s(o)("notFound.desc")),1),l(r,{class:"btn",to:"/",style:{"margin-top":"10px"}},{default:a(()=>[p(e(s(o)("notFound.back")),1)]),_:1})])]),_:1})}}});export{F as default}; diff --git a/server/web/dist/assets/NotFoundView-BHkq8CY8.js b/server/web/dist/assets/NotFoundView-BHkq8CY8.js new file mode 100644 index 0000000..baca75b --- /dev/null +++ b/server/web/dist/assets/NotFoundView-BHkq8CY8.js @@ -0,0 +1 @@ +import{d as c,u as i,z as d,A as a,b as t,t as e,f as s,G as l,q as p,O as u,o as _}from"./index-QLbKGtH7.js";import{P as m}from"./PageShell-D1DY7qw8.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-8XmHL8P7.js";const f={class:"card empty",style:{"max-width":"480px",margin:"10vh auto 0"}},h={style:{"font-weight":"600",color:"var(--c-text)"}},x={class:"hint"},F=c({__name:"NotFoundView",setup(y){const{t:o}=i();return(g,n)=>{const r=u("RouterLink");return _(),d(m,null,{default:a(()=>[t("div",f,[n[0]||(n[0]=t("div",{class:"empty-icon"},"🧭",-1)),t("p",h,e(s(o)("notFound.title")),1),t("p",x,e(s(o)("notFound.desc")),1),l(r,{class:"btn",to:"/",style:{"margin-top":"10px"}},{default:a(()=>[p(e(s(o)("notFound.back")),1)]),_:1})])]),_:1})}}});export{F as default}; diff --git a/server/web/dist/assets/NotFoundView-CNRxIBJl.js b/server/web/dist/assets/NotFoundView-CNRxIBJl.js new file mode 100644 index 0000000..f6fee21 --- /dev/null +++ b/server/web/dist/assets/NotFoundView-CNRxIBJl.js @@ -0,0 +1 @@ +import{d as c,u as i,z as d,A as a,b as t,t as e,f as s,G as l,q as p,O as u,o as _}from"./index-DSPQyv0Z.js";import{P as m}from"./PageShell-Bv1Rpp4p.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-DSt3Q6Wq.js";const f={class:"card empty",style:{"max-width":"480px",margin:"10vh auto 0"}},h={style:{"font-weight":"600",color:"var(--c-text)"}},x={class:"hint"},F=c({__name:"NotFoundView",setup(y){const{t:o}=i();return(g,n)=>{const r=u("RouterLink");return _(),d(m,null,{default:a(()=>[t("div",f,[n[0]||(n[0]=t("div",{class:"empty-icon"},"🧭",-1)),t("p",h,e(s(o)("notFound.title")),1),t("p",x,e(s(o)("notFound.desc")),1),l(r,{class:"btn",to:"/",style:{"margin-top":"10px"}},{default:a(()=>[p(e(s(o)("notFound.back")),1)]),_:1})])]),_:1})}}});export{F as default}; diff --git a/server/web/dist/assets/OpenApiView-B6wLMzyn.js b/server/web/dist/assets/OpenApiView-B6wLMzyn.js new file mode 100644 index 0000000..18d8383 --- /dev/null +++ b/server/web/dist/assets/OpenApiView-B6wLMzyn.js @@ -0,0 +1,267 @@ +import{d as jU,u as PU,I as NU,ax as Xw,z as TU,A as IU,j as rA,b as Lc,t as Km,f as Gm,e as MU,c as RU,g as DU,h as nA,o as aA,_ as FU}from"./index-D7AAbqvI.js";import{P as LU}from"./PageShell-D3dyUalL.js";import{g as $U}from"./swagger-CqkleIqs.js";import{e as oA}from"./docsSource-CuVILP5D.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-B5OHbKDQ.js";var Qw={exports:{}};var iA;function BU(){return iA||(iA=1,(()=>{var eE={67526(w,N){N.byteLength=function(_){var T=m(_),I=T[0],j=T[1];return 3*(I+j)/4-j},N.toByteArray=function(_){var T,I,j=m(_),M=j[0],z=j[1],K=new v((function(te,ie,se){return 3*(ie+se)/4-se})(0,M,z)),Y=0,B=z>0?M-4:M;for(I=0;I>16&255,K[Y++]=T>>8&255,K[Y++]=255&T;return z===2&&(T=h[_.charCodeAt(I)]<<2|h[_.charCodeAt(I+1)]>>4,K[Y++]=255&T),z===1&&(T=h[_.charCodeAt(I)]<<10|h[_.charCodeAt(I+1)]<<4|h[_.charCodeAt(I+2)]>>2,K[Y++]=T>>8&255,K[Y++]=255&T),K},N.fromByteArray=function(_){for(var T,I=_.length,j=I%3,M=[],z=16383,K=0,Y=I-j;KY?Y:K+z));return j===1?(T=_[I-1],M.push(s[T>>2]+s[T<<4&63]+"==")):j===2&&(T=(_[I-2]<<8)+_[I-1],M.push(s[T>>10]+s[T>>4&63]+s[T<<2&63]+"=")),M.join("")};for(var s=[],h=[],v=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0;y<64;++y)s[y]=f[y],h[f.charCodeAt(y)]=y;function m(S){var _=S.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=S.indexOf("=");return T===-1&&(T=_),[T,T===_?0:4-T%4]}function g(S,_,T){for(var I,j,M=[],z=_;z>18&63]+s[j>>12&63]+s[j>>6&63]+s[63&j]);return M.join("")}h[45]=62,h[95]=63},48287(w,N,s){const h=s(67526),v=s(251),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;N.Buffer=g,N.SlowBuffer=function(U){return+U!=U&&(U=0),g.alloc(+U)},N.INSPECT_MAX_BYTES=50;const y=2147483647;function m(pe){if(pe>y)throw new RangeError('The value "'+pe+'" is invalid for option "size"');const U=new Uint8Array(pe);return Object.setPrototypeOf(U,g.prototype),U}function g(pe,U,Z){if(typeof pe=="number"){if(typeof U=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return T(pe)}return S(pe,U,Z)}function S(pe,U,Z){if(typeof pe=="string")return(function(Fe,St){if(typeof St=="string"&&St!==""||(St="utf8"),!g.isEncoding(St))throw new TypeError("Unknown encoding: "+St);const Bt=0|z(Fe,St);let Qe=m(Bt);const $t=Qe.write(Fe,St);return $t!==Bt&&(Qe=Qe.slice(0,$t)),Qe})(pe,U);if(ArrayBuffer.isView(pe))return(function(Fe){if(Gt(Fe,Uint8Array)){const St=new Uint8Array(Fe);return j(St.buffer,St.byteOffset,St.byteLength)}return I(Fe)})(pe);if(pe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof pe);if(Gt(pe,ArrayBuffer)||pe&&Gt(pe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Gt(pe,SharedArrayBuffer)||pe&&Gt(pe.buffer,SharedArrayBuffer)))return j(pe,U,Z);if(typeof pe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ne=pe.valueOf&&pe.valueOf();if(ne!=null&&ne!==pe)return g.from(ne,U,Z);const ye=(function(Fe){if(g.isBuffer(Fe)){const St=0|M(Fe.length),Bt=m(St);return Bt.length===0||Fe.copy(Bt,0,0,St),Bt}if(Fe.length!==void 0)return typeof Fe.length!="number"||Sr(Fe.length)?m(0):I(Fe);if(Fe.type==="Buffer"&&Array.isArray(Fe.data))return I(Fe.data)})(pe);if(ye)return ye;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof pe[Symbol.toPrimitive]=="function")return g.from(pe[Symbol.toPrimitive]("string"),U,Z);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof pe)}function _(pe){if(typeof pe!="number")throw new TypeError('"size" argument must be of type number');if(pe<0)throw new RangeError('The value "'+pe+'" is invalid for option "size"')}function T(pe){return _(pe),m(pe<0?0:0|M(pe))}function I(pe){const U=pe.length<0?0:0|M(pe.length),Z=m(U);for(let ne=0;ne=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return 0|pe}function z(pe,U){if(g.isBuffer(pe))return pe.length;if(ArrayBuffer.isView(pe)||Gt(pe,ArrayBuffer))return pe.byteLength;if(typeof pe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof pe);const Z=pe.length,ne=arguments.length>2&&arguments[2]===!0;if(!ne&&Z===0)return 0;let ye=!1;for(;;)switch(U){case"ascii":case"latin1":case"binary":return Z;case"utf8":case"utf-8":return ur(pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Z;case"hex":return Z>>>1;case"base64":return ar(pe).length;default:if(ye)return ne?-1:ur(pe).length;U=(""+U).toLowerCase(),ye=!0}}function K(pe,U,Z){let ne=!1;if((U===void 0||U<0)&&(U=0),U>this.length||((Z===void 0||Z>this.length)&&(Z=this.length),Z<=0)||(Z>>>=0)<=(U>>>=0))return"";for(pe||(pe="utf8");;)switch(pe){case"hex":return nt(this,U,Z);case"utf8":case"utf-8":return ke(this,U,Z);case"ascii":return He(this,U,Z);case"latin1":case"binary":return qe(this,U,Z);case"base64":return ge(this,U,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,U,Z);default:if(ne)throw new TypeError("Unknown encoding: "+pe);pe=(pe+"").toLowerCase(),ne=!0}}function Y(pe,U,Z){const ne=pe[U];pe[U]=pe[Z],pe[Z]=ne}function B(pe,U,Z,ne,ye){if(pe.length===0)return-1;if(typeof Z=="string"?(ne=Z,Z=0):Z>2147483647?Z=2147483647:Z<-2147483648&&(Z=-2147483648),Sr(Z=+Z)&&(Z=ye?0:pe.length-1),Z<0&&(Z=pe.length+Z),Z>=pe.length){if(ye)return-1;Z=pe.length-1}else if(Z<0){if(!ye)return-1;Z=0}if(typeof U=="string"&&(U=g.from(U,ne)),g.isBuffer(U))return U.length===0?-1:X(pe,U,Z,ne,ye);if(typeof U=="number")return U&=255,typeof Uint8Array.prototype.indexOf=="function"?ye?Uint8Array.prototype.indexOf.call(pe,U,Z):Uint8Array.prototype.lastIndexOf.call(pe,U,Z):X(pe,[U],Z,ne,ye);throw new TypeError("val must be string, number or Buffer")}function X(pe,U,Z,ne,ye){let Ee,Fe=1,St=pe.length,Bt=U.length;if(ne!==void 0&&((ne=String(ne).toLowerCase())==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(pe.length<2||U.length<2)return-1;Fe=2,St/=2,Bt/=2,Z/=2}function Qe($t,Pt){return Fe===1?$t[Pt]:$t.readUInt16BE(Pt*Fe)}if(ye){let $t=-1;for(Ee=Z;EeSt&&(Z=St-Bt),Ee=Z;Ee>=0;Ee--){let $t=!0;for(let Pt=0;Ptye&&(ne=ye):ne=ye;const Ee=U.length;let Fe;for(ne>Ee/2&&(ne=Ee/2),Fe=0;Fe>8,Qe=St%256,$t.push(Qe),$t.push(Bt);return $t})(U,pe.length-Z),pe,Z,ne)}function ge(pe,U,Z){return U===0&&Z===pe.length?h.fromByteArray(pe):h.fromByteArray(pe.slice(U,Z))}function ke(pe,U,Z){Z=Math.min(pe.length,Z);const ne=[];let ye=U;for(;ye239?4:Ee>223?3:Ee>191?2:1;if(ye+St<=Z){let Bt,Qe,$t,Pt;switch(St){case 1:Ee<128&&(Fe=Ee);break;case 2:Bt=pe[ye+1],(192&Bt)==128&&(Pt=(31&Ee)<<6|63&Bt,Pt>127&&(Fe=Pt));break;case 3:Bt=pe[ye+1],Qe=pe[ye+2],(192&Bt)==128&&(192&Qe)==128&&(Pt=(15&Ee)<<12|(63&Bt)<<6|63&Qe,Pt>2047&&(Pt<55296||Pt>57343)&&(Fe=Pt));break;case 4:Bt=pe[ye+1],Qe=pe[ye+2],$t=pe[ye+3],(192&Bt)==128&&(192&Qe)==128&&(192&$t)==128&&(Pt=(15&Ee)<<18|(63&Bt)<<12|(63&Qe)<<6|63&$t,Pt>65535&&Pt<1114112&&(Fe=Pt))}}Fe===null?(Fe=65533,St=1):Fe>65535&&(Fe-=65536,ne.push(Fe>>>10&1023|55296),Fe=56320|1023&Fe),ne.push(Fe),ye+=St}return(function(Fe){const St=Fe.length;if(St<=Ve)return String.fromCharCode.apply(String,Fe);let Bt="",Qe=0;for(;Qe"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}}),g.poolSize=8192,g.from=function(pe,U,Z){return S(pe,U,Z)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),g.alloc=function(pe,U,Z){return(function(ye,Ee,Fe){return _(ye),ye<=0?m(ye):Ee!==void 0?typeof Fe=="string"?m(ye).fill(Ee,Fe):m(ye).fill(Ee):m(ye)})(pe,U,Z)},g.allocUnsafe=function(pe){return T(pe)},g.allocUnsafeSlow=function(pe){return T(pe)},g.isBuffer=function(U){return U!=null&&U._isBuffer===!0&&U!==g.prototype},g.compare=function(U,Z){if(Gt(U,Uint8Array)&&(U=g.from(U,U.offset,U.byteLength)),Gt(Z,Uint8Array)&&(Z=g.from(Z,Z.offset,Z.byteLength)),!g.isBuffer(U)||!g.isBuffer(Z))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(U===Z)return 0;let ne=U.length,ye=Z.length;for(let Ee=0,Fe=Math.min(ne,ye);Eeye.length?(g.isBuffer(Fe)||(Fe=g.from(Fe)),Fe.copy(ye,Ee)):Uint8Array.prototype.set.call(ye,Fe,Ee);else{if(!g.isBuffer(Fe))throw new TypeError('"list" argument must be an Array of Buffers');Fe.copy(ye,Ee)}Ee+=Fe.length}return ye},g.byteLength=z,g.prototype._isBuffer=!0,g.prototype.swap16=function(){const U=this.length;if(U%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Z=0;ZZ&&(U+=" ... "),""},f&&(g.prototype[f]=g.prototype.inspect),g.prototype.compare=function(U,Z,ne,ye,Ee){if(Gt(U,Uint8Array)&&(U=g.from(U,U.offset,U.byteLength)),!g.isBuffer(U))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof U);if(Z===void 0&&(Z=0),ne===void 0&&(ne=U?U.length:0),ye===void 0&&(ye=0),Ee===void 0&&(Ee=this.length),Z<0||ne>U.length||ye<0||Ee>this.length)throw new RangeError("out of range index");if(ye>=Ee&&Z>=ne)return 0;if(ye>=Ee)return-1;if(Z>=ne)return 1;if(this===U)return 0;let Fe=(Ee>>>=0)-(ye>>>=0),St=(ne>>>=0)-(Z>>>=0);const Bt=Math.min(Fe,St),Qe=this.slice(ye,Ee),$t=U.slice(Z,ne);for(let Pt=0;Pt>>=0,isFinite(ne)?(ne>>>=0,ye===void 0&&(ye="utf8")):(ye=ne,ne=void 0)}const Ee=this.length-Z;if((ne===void 0||ne>Ee)&&(ne=Ee),U.length>0&&(ne<0||Z<0)||Z>this.length)throw new RangeError("Attempt to write outside buffer bounds");ye||(ye="utf8");let Fe=!1;for(;;)switch(ye){case"hex":return te(this,U,Z,ne);case"utf8":case"utf-8":return ie(this,U,Z,ne);case"ascii":case"latin1":case"binary":return se(this,U,Z,ne);case"base64":return Te(this,U,Z,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,U,Z,ne);default:if(Fe)throw new TypeError("Unknown encoding: "+ye);ye=(""+ye).toLowerCase(),Fe=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const Ve=4096;function He(pe,U,Z){let ne="";Z=Math.min(pe.length,Z);for(let ye=U;yene)&&(Z=ne);let ye="";for(let Ee=U;EeZ)throw new RangeError("Trying to access beyond buffer length")}function u(pe,U,Z,ne,ye,Ee){if(!g.isBuffer(pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(U>ye||Upe.length)throw new RangeError("Index out of range")}function at(pe,U,Z,ne,ye){H(U,ne,ye,pe,Z,7);let Ee=Number(U&BigInt(4294967295));pe[Z++]=Ee,Ee>>=8,pe[Z++]=Ee,Ee>>=8,pe[Z++]=Ee,Ee>>=8,pe[Z++]=Ee;let Fe=Number(U>>BigInt(32)&BigInt(4294967295));return pe[Z++]=Fe,Fe>>=8,pe[Z++]=Fe,Fe>>=8,pe[Z++]=Fe,Fe>>=8,pe[Z++]=Fe,Z}function Xe(pe,U,Z,ne,ye){H(U,ne,ye,pe,Z,7);let Ee=Number(U&BigInt(4294967295));pe[Z+7]=Ee,Ee>>=8,pe[Z+6]=Ee,Ee>>=8,pe[Z+5]=Ee,Ee>>=8,pe[Z+4]=Ee;let Fe=Number(U>>BigInt(32)&BigInt(4294967295));return pe[Z+3]=Fe,Fe>>=8,pe[Z+2]=Fe,Fe>>=8,pe[Z+1]=Fe,Fe>>=8,pe[Z]=Fe,Z+8}function Se(pe,U,Z,ne,ye,Ee){if(Z+ne>pe.length)throw new RangeError("Index out of range");if(Z<0)throw new RangeError("Index out of range")}function De(pe,U,Z,ne,ye){return U=+U,Z>>>=0,ye||Se(pe,0,Z,4),v.write(pe,U,Z,ne,23,4),Z+4}function Ke(pe,U,Z,ne,ye){return U=+U,Z>>>=0,ye||Se(pe,0,Z,8),v.write(pe,U,Z,ne,52,8),Z+8}g.prototype.slice=function(U,Z){const ne=this.length;(U=~~U)<0?(U+=ne)<0&&(U=0):U>ne&&(U=ne),(Z=Z===void 0?ne:~~Z)<0?(Z+=ne)<0&&(Z=0):Z>ne&&(Z=ne),Z>>=0,Z>>>=0,ne||Re(U,Z,this.length);let ye=this[U],Ee=1,Fe=0;for(;++Fe>>=0,Z>>>=0,ne||Re(U,Z,this.length);let ye=this[U+--Z],Ee=1;for(;Z>0&&(Ee*=256);)ye+=this[U+--Z]*Ee;return ye},g.prototype.readUint8=g.prototype.readUInt8=function(U,Z){return U>>>=0,Z||Re(U,1,this.length),this[U]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(U,Z){return U>>>=0,Z||Re(U,2,this.length),this[U]|this[U+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(U,Z){return U>>>=0,Z||Re(U,2,this.length),this[U]<<8|this[U+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),(this[U]|this[U+1]<<8|this[U+2]<<16)+16777216*this[U+3]},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),16777216*this[U]+(this[U+1]<<16|this[U+2]<<8|this[U+3])},g.prototype.readBigUInt64LE=yt((function(U){we(U>>>=0,"offset");const Z=this[U],ne=this[U+7];Z!==void 0&&ne!==void 0||ct(U,this.length-8);const ye=Z+256*this[++U]+65536*this[++U]+this[++U]*2**24,Ee=this[++U]+256*this[++U]+65536*this[++U]+ne*2**24;return BigInt(ye)+(BigInt(Ee)<>>=0,"offset");const Z=this[U],ne=this[U+7];Z!==void 0&&ne!==void 0||ct(U,this.length-8);const ye=Z*2**24+65536*this[++U]+256*this[++U]+this[++U],Ee=this[++U]*2**24+65536*this[++U]+256*this[++U]+ne;return(BigInt(ye)<>>=0,Z>>>=0,ne||Re(U,Z,this.length);let ye=this[U],Ee=1,Fe=0;for(;++Fe=Ee&&(ye-=Math.pow(2,8*Z)),ye},g.prototype.readIntBE=function(U,Z,ne){U>>>=0,Z>>>=0,ne||Re(U,Z,this.length);let ye=Z,Ee=1,Fe=this[U+--ye];for(;ye>0&&(Ee*=256);)Fe+=this[U+--ye]*Ee;return Ee*=128,Fe>=Ee&&(Fe-=Math.pow(2,8*Z)),Fe},g.prototype.readInt8=function(U,Z){return U>>>=0,Z||Re(U,1,this.length),128&this[U]?-1*(255-this[U]+1):this[U]},g.prototype.readInt16LE=function(U,Z){U>>>=0,Z||Re(U,2,this.length);const ne=this[U]|this[U+1]<<8;return 32768&ne?4294901760|ne:ne},g.prototype.readInt16BE=function(U,Z){U>>>=0,Z||Re(U,2,this.length);const ne=this[U+1]|this[U]<<8;return 32768&ne?4294901760|ne:ne},g.prototype.readInt32LE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),this[U]|this[U+1]<<8|this[U+2]<<16|this[U+3]<<24},g.prototype.readInt32BE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),this[U]<<24|this[U+1]<<16|this[U+2]<<8|this[U+3]},g.prototype.readBigInt64LE=yt((function(U){we(U>>>=0,"offset");const Z=this[U],ne=this[U+7];Z!==void 0&&ne!==void 0||ct(U,this.length-8);const ye=this[U+4]+256*this[U+5]+65536*this[U+6]+(ne<<24);return(BigInt(ye)<>>=0,"offset");const Z=this[U],ne=this[U+7];Z!==void 0&&ne!==void 0||ct(U,this.length-8);const ye=(Z<<24)+65536*this[++U]+256*this[++U]+this[++U];return(BigInt(ye)<>>=0,Z||Re(U,4,this.length),v.read(this,U,!0,23,4)},g.prototype.readFloatBE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),v.read(this,U,!1,23,4)},g.prototype.readDoubleLE=function(U,Z){return U>>>=0,Z||Re(U,8,this.length),v.read(this,U,!0,52,8)},g.prototype.readDoubleBE=function(U,Z){return U>>>=0,Z||Re(U,8,this.length),v.read(this,U,!1,52,8)},g.prototype.writeUintLE=g.prototype.writeUIntLE=function(U,Z,ne,ye){U=+U,Z>>>=0,ne>>>=0,!ye&&u(this,U,Z,ne,Math.pow(2,8*ne)-1,0);let Ee=1,Fe=0;for(this[Z]=255&U;++Fe>>=0,ne>>>=0,!ye&&u(this,U,Z,ne,Math.pow(2,8*ne)-1,0);let Ee=ne-1,Fe=1;for(this[Z+Ee]=255&U;--Ee>=0&&(Fe*=256);)this[Z+Ee]=U/Fe&255;return Z+ne},g.prototype.writeUint8=g.prototype.writeUInt8=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,1,255,0),this[Z]=255&U,Z+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,2,65535,0),this[Z]=255&U,this[Z+1]=U>>>8,Z+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,2,65535,0),this[Z]=U>>>8,this[Z+1]=255&U,Z+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,4,4294967295,0),this[Z+3]=U>>>24,this[Z+2]=U>>>16,this[Z+1]=U>>>8,this[Z]=255&U,Z+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,4,4294967295,0),this[Z]=U>>>24,this[Z+1]=U>>>16,this[Z+2]=U>>>8,this[Z+3]=255&U,Z+4},g.prototype.writeBigUInt64LE=yt((function(U,Z=0){return at(this,U,Z,BigInt(0),BigInt("0xffffffffffffffff"))})),g.prototype.writeBigUInt64BE=yt((function(U,Z=0){return Xe(this,U,Z,BigInt(0),BigInt("0xffffffffffffffff"))})),g.prototype.writeIntLE=function(U,Z,ne,ye){if(U=+U,Z>>>=0,!ye){const Bt=Math.pow(2,8*ne-1);u(this,U,Z,ne,Bt-1,-Bt)}let Ee=0,Fe=1,St=0;for(this[Z]=255&U;++Ee>>=0,!ye){const Bt=Math.pow(2,8*ne-1);u(this,U,Z,ne,Bt-1,-Bt)}let Ee=ne-1,Fe=1,St=0;for(this[Z+Ee]=255&U;--Ee>=0&&(Fe*=256);)U<0&&St===0&&this[Z+Ee+1]!==0&&(St=1),this[Z+Ee]=(U/Fe|0)-St&255;return Z+ne},g.prototype.writeInt8=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,1,127,-128),U<0&&(U=255+U+1),this[Z]=255&U,Z+1},g.prototype.writeInt16LE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,2,32767,-32768),this[Z]=255&U,this[Z+1]=U>>>8,Z+2},g.prototype.writeInt16BE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,2,32767,-32768),this[Z]=U>>>8,this[Z+1]=255&U,Z+2},g.prototype.writeInt32LE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,4,2147483647,-2147483648),this[Z]=255&U,this[Z+1]=U>>>8,this[Z+2]=U>>>16,this[Z+3]=U>>>24,Z+4},g.prototype.writeInt32BE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,4,2147483647,-2147483648),U<0&&(U=4294967295+U+1),this[Z]=U>>>24,this[Z+1]=U>>>16,this[Z+2]=U>>>8,this[Z+3]=255&U,Z+4},g.prototype.writeBigInt64LE=yt((function(U,Z=0){return at(this,U,Z,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),g.prototype.writeBigInt64BE=yt((function(U,Z=0){return Xe(this,U,Z,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),g.prototype.writeFloatLE=function(U,Z,ne){return De(this,U,Z,!0,ne)},g.prototype.writeFloatBE=function(U,Z,ne){return De(this,U,Z,!1,ne)},g.prototype.writeDoubleLE=function(U,Z,ne){return Ke(this,U,Z,!0,ne)},g.prototype.writeDoubleBE=function(U,Z,ne){return Ke(this,U,Z,!1,ne)},g.prototype.copy=function(U,Z,ne,ye){if(!g.isBuffer(U))throw new TypeError("argument should be a Buffer");if(ne||(ne=0),ye||ye===0||(ye=this.length),Z>=U.length&&(Z=U.length),Z||(Z=0),ye>0&&ye=this.length)throw new RangeError("Index out of range");if(ye<0)throw new RangeError("sourceEnd out of bounds");ye>this.length&&(ye=this.length),U.length-Z>>=0,ne=ne===void 0?this.length:ne>>>0,U||(U=0),typeof U=="number")for(Ee=Z;Ee=ne+4;Z-=3)U=`_${pe.slice(Z-3,Z)}${U}`;return`${pe.slice(0,Z)}${U}`}function H(pe,U,Z,ne,ye,Ee){if(pe>Z||pe= 0${Fe} and < 2${Fe} ** ${8*(Ee+1)}${Fe}`:`>= -(2${Fe} ** ${8*(Ee+1)-1}${Fe}) and < 2 ** ${8*(Ee+1)-1}${Fe}`,new ft.ERR_OUT_OF_RANGE("value",St,pe)}(function(St,Bt,Qe){we(Bt,"offset"),St[Bt]!==void 0&&St[Bt+Qe]!==void 0||ct(Bt,St.length-(Qe+1))})(ne,ye,Ee)}function we(pe,U){if(typeof pe!="number")throw new ft.ERR_INVALID_ARG_TYPE(U,"number",pe)}function ct(pe,U,Z){throw Math.floor(pe)!==pe?(we(pe,Z),new ft.ERR_OUT_OF_RANGE("offset","an integer",pe)):U<0?new ft.ERR_BUFFER_OUT_OF_BOUNDS:new ft.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${U}`,pe)}Nt("ERR_BUFFER_OUT_OF_BOUNDS",(function(pe){return pe?`${pe} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),Nt("ERR_INVALID_ARG_TYPE",(function(pe,U){return`The "${pe}" argument must be of type number. Received type ${typeof U}`}),TypeError),Nt("ERR_OUT_OF_RANGE",(function(pe,U,Z){let ne=`The value of "${pe}" is out of range.`,ye=Z;return Number.isInteger(Z)&&Math.abs(Z)>4294967296?ye=Wt(String(Z)):typeof Z=="bigint"&&(ye=String(Z),(Z>BigInt(2)**BigInt(32)||Z<-(BigInt(2)**BigInt(32)))&&(ye=Wt(ye)),ye+="n"),ne+=` It must be ${U}. Received ${ye}`,ne}),RangeError);const mt=/[^+/0-9A-Za-z-_]/g;function ur(pe,U){let Z;U=U||1/0;const ne=pe.length;let ye=null;const Ee=[];for(let Fe=0;Fe55295&&Z<57344){if(!ye){if(Z>56319){(U-=3)>-1&&Ee.push(239,191,189);continue}if(Fe+1===ne){(U-=3)>-1&&Ee.push(239,191,189);continue}ye=Z;continue}if(Z<56320){(U-=3)>-1&&Ee.push(239,191,189),ye=Z;continue}Z=65536+(ye-55296<<10|Z-56320)}else ye&&(U-=3)>-1&&Ee.push(239,191,189);if(ye=null,Z<128){if((U-=1)<0)break;Ee.push(Z)}else if(Z<2048){if((U-=2)<0)break;Ee.push(Z>>6|192,63&Z|128)}else if(Z<65536){if((U-=3)<0)break;Ee.push(Z>>12|224,Z>>6&63|128,63&Z|128)}else{if(!(Z<1114112))throw new Error("Invalid code point");if((U-=4)<0)break;Ee.push(Z>>18|240,Z>>12&63|128,Z>>6&63|128,63&Z|128)}}return Ee}function ar(pe){return h.toByteArray((function(Z){if((Z=(Z=Z.split("=")[0]).trim().replace(mt,"")).length<2)return"";for(;Z.length%4!=0;)Z+="=";return Z})(pe))}function Tt(pe,U,Z,ne){let ye;for(ye=0;ye=U.length||ye>=pe.length);++ye)U[ye+Z]=pe[ye];return ye}function Gt(pe,U){return pe instanceof U||pe!=null&&pe.constructor!=null&&pe.constructor.name!=null&&pe.constructor.name===U.name}function Sr(pe){return pe!=pe}const kt=(function(){const pe="0123456789abcdef",U=new Array(256);for(let Z=0;Z<16;++Z){const ne=16*Z;for(let ye=0;ye<16;++ye)U[ne+ye]=pe[Z]+pe[ye]}return U})();function yt(pe){return typeof BigInt>"u"?Zt:pe}function Zt(){throw new Error("BigInt not supported")}},13144(w,N,s){var h=s(66743),v=s(11002),f=s(10076),y=s(47119);w.exports=y||h.call(f,v)},12205(w,N,s){var h=s(66743),v=s(11002),f=s(13144);w.exports=function(){return f(h,v,arguments)}},11002(w){w.exports=Function.prototype.apply},10076(w){w.exports=Function.prototype.call},73126(w,N,s){var h=s(66743),v=s(69675),f=s(10076),y=s(13144);w.exports=function(g){if(g.length<1||typeof g[0]!="function")throw new v("a function is required");return y(h,f,g)}},47119(w){w.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},10487(w,N,s){var h=s(96897),v=s(30655),f=s(73126),y=s(12205);w.exports=function(g){var S=f(arguments),_=g.length-(arguments.length-1);return h(S,1+(_>0?_:0),!0)},v?v(w.exports,"apply",{value:y}):w.exports.apply=y},36556(w,N,s){var h=s(70453),v=s(73126),f=v([h("%String.prototype.indexOf%")]);w.exports=function(m,g){var S=h(m,!!g);return typeof S=="function"&&f(m,".prototype.")>-1?v([S]):S}},17965(w,N,s){var h=s(16426),v={"text/plain":"Text","text/html":"Url",default:"Text"};w.exports=function(y,m){var g,S,_,T,I,j,M=!1;m||(m={}),g=m.debug||!1;try{if(_=h(),T=document.createRange(),I=document.getSelection(),(j=document.createElement("span")).textContent=y,j.ariaHidden="true",j.style.all="unset",j.style.position="fixed",j.style.top=0,j.style.clip="rect(0, 0, 0, 0)",j.style.whiteSpace="pre",j.style.webkitUserSelect="text",j.style.MozUserSelect="text",j.style.msUserSelect="text",j.style.userSelect="text",j.addEventListener("copy",(function(z){if(z.stopPropagation(),m.format)if(z.preventDefault(),z.clipboardData===void 0){g&&console.warn("unable to use e.clipboardData"),g&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var K=v[m.format]||v.default;window.clipboardData.setData(K,y)}else z.clipboardData.clearData(),z.clipboardData.setData(m.format,y);m.onCopy&&(z.preventDefault(),m.onCopy(z.clipboardData))})),document.body.appendChild(j),T.selectNodeContents(j),I.addRange(T),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");M=!0}catch(z){g&&console.error("unable to copy using execCommand: ",z),g&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(m.format||"text",y),m.onCopy&&m.onCopy(window.clipboardData),M=!0}catch(K){g&&console.error("unable to copy using clipboardData: ",K),g&&console.error("falling back to prompt"),S=(function(B){var X=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return B.replace(/#{\s*key\s*}/g,X)})("message"in m?m.message:"Copy to clipboard: #{key}, Enter"),window.prompt(S,y)}}finally{I&&(typeof I.removeRange=="function"?I.removeRange(T):I.removeAllRanges()),j&&document.body.removeChild(j),_()}return M}},2205(w,N,s){var h;h=s.g!==void 0?s.g:this,w.exports=(function(v){if(v.CSS&&v.CSS.escape)return v.CSS.escape;var f=function(y){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var m,g=String(y),S=g.length,_=-1,T="",I=g.charCodeAt(0);++_=1&&m<=31||m==127||_==0&&m>=48&&m<=57||_==1&&m>=48&&m<=57&&I==45?"\\"+m.toString(16)+" ":_==0&&S==1&&m==45||!(m>=128||m==45||m==95||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122)?"\\"+g.charAt(_):g.charAt(_):T+="�";return T};return v.CSS||(v.CSS={}),v.CSS.escape=f,f})(h)},81919(w,N,s){var h=s(48287).Buffer;function v(S){return S instanceof h||S instanceof Date||S instanceof RegExp}function f(S){if(S instanceof h){var _=h.alloc?h.alloc(S.length):new h(S.length);return S.copy(_),_}if(S instanceof Date)return new Date(S.getTime());if(S instanceof RegExp)return new RegExp(S);throw new Error("Unexpected situation")}function y(S){var _=[];return S.forEach((function(T,I){typeof T=="object"&&T!==null?Array.isArray(T)?_[I]=y(T):v(T)?_[I]=f(T):_[I]=g({},T):_[I]=T})),_}function m(S,_){return _==="__proto__"?void 0:S[_]}var g=w.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var S,_,T=arguments[0];return Array.prototype.slice.call(arguments,1).forEach((function(I){typeof I!="object"||I===null||Array.isArray(I)||Object.keys(I).forEach((function(j){return _=m(T,j),(S=m(I,j))===T?void 0:typeof S!="object"||S===null?void(T[j]=S):Array.isArray(S)?void(T[j]=y(S)):v(S)?void(T[j]=f(S)):typeof _!="object"||_===null||Array.isArray(_)?void(T[j]=g({},S)):void(T[j]=g(_,S))}))})),T}},14744(w){var N=function(T){return(function(j){return!!j&&typeof j=="object"})(T)&&!(function(j){var M=Object.prototype.toString.call(j);return M==="[object RegExp]"||M==="[object Date]"||(function(K){return K.$$typeof===s})(j)})(T)},s=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function h(_,T){return T.clone!==!1&&T.isMergeableObject(_)?g((function(j){return Array.isArray(j)?[]:{}})(_),_,T):_}function v(_,T,I){return _.concat(T).map((function(j){return h(j,I)}))}function f(_){return Object.keys(_).concat((function(I){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(I).filter((function(j){return Object.propertyIsEnumerable.call(I,j)})):[]})(_))}function y(_,T){try{return T in _}catch{return!1}}function m(_,T,I){var j={};return I.isMergeableObject(_)&&f(_).forEach((function(M){j[M]=h(_[M],I)})),f(T).forEach((function(M){(function(K,Y){return y(K,Y)&&!(Object.hasOwnProperty.call(K,Y)&&Object.propertyIsEnumerable.call(K,Y))})(_,M)||(y(_,M)&&I.isMergeableObject(T[M])?j[M]=(function(K,Y){if(!Y.customMerge)return g;var B=Y.customMerge(K);return typeof B=="function"?B:g})(M,I)(_[M],T[M],I):j[M]=h(T[M],I))})),j}function g(_,T,I){(I=I||{}).arrayMerge=I.arrayMerge||v,I.isMergeableObject=I.isMergeableObject||N,I.cloneUnlessOtherwiseSpecified=h;var j=Array.isArray(T);return j===Array.isArray(_)?j?I.arrayMerge(_,T,I):m(_,T,I):h(T,I)}g.all=function(T,I){if(!Array.isArray(T))throw new Error("first argument should be an array");return T.reduce((function(j,M){return g(j,M,I)}),{})};var S=g;w.exports=S},30041(w,N,s){var h=s(30655),v=s(58068),f=s(69675),y=s(75795);w.exports=function(g,S,_){if(!g||typeof g!="object"&&typeof g!="function")throw new f("`obj` must be an object or a function`");if(typeof S!="string"&&typeof S!="symbol")throw new f("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new f("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new f("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new f("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new f("`loose`, if provided, must be a boolean");var T=arguments.length>3?arguments[3]:null,I=arguments.length>4?arguments[4]:null,j=arguments.length>5?arguments[5]:null,M=arguments.length>6&&arguments[6],z=!!y&&y(g,S);if(h)h(g,S,{configurable:j===null&&z?z.configurable:!j,enumerable:T===null&&z?z.enumerable:!T,value:_,writable:I===null&&z?z.writable:!I});else{if(!M&&(T||I||j))throw new v("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");g[S]=_}}},78004(w){class N{constructor(v,f){this.low=v,this.high=f,this.length=1+f-v}overlaps(v){return!(this.highv.high)}touches(v){return!(this.high+1v.high)}add(v){return new N(Math.min(this.low,v.low),Math.max(this.high,v.high))}subtract(v){return v.low<=this.low&&v.high>=this.high?[]:v.low>this.low&&v.highv+f.length),0)}add(v,f){var y=m=>{for(var g=0;g{for(var g=0;g{for(var S=0;S{for(var y=f.low;y<=f.high;)v.push(y),y++;return v}),[])}subranges(){return this.ranges.map((v=>({low:v.low,high:v.high,length:1+v.high-v.low})))}}w.exports=s},7176(w,N,s){var h,v=s(73126),f=s(75795);try{h=[].__proto__===Array.prototype}catch(S){if(!S||typeof S!="object"||!("code"in S)||S.code!=="ERR_PROTO_ACCESS")throw S}var y=!!h&&f&&f(Object.prototype,"__proto__"),m=Object,g=m.getPrototypeOf;w.exports=y&&typeof y.get=="function"?v([y.get]):typeof g=="function"&&function(_){return g(_==null?_:m(_))}},30655(w){var N=Object.defineProperty||!1;if(N)try{N({},"a",{value:1})}catch{N=!1}w.exports=N},41237(w){w.exports=EvalError},69383(w){w.exports=Error},79290(w){w.exports=RangeError},79538(w){w.exports=ReferenceError},58068(w){w.exports=SyntaxError},69675(w){w.exports=TypeError},35345(w){w.exports=URIError},79612(w){w.exports=Object},37007(w){var N,s=typeof Reflect=="object"?Reflect:null,h=s&&typeof s.apply=="function"?s.apply:function(Y,B,X){return Function.prototype.apply.call(Y,B,X)};N=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(Y){return Object.getOwnPropertyNames(Y).concat(Object.getOwnPropertySymbols(Y))}:function(Y){return Object.getOwnPropertyNames(Y)};var v=Number.isNaN||function(Y){return Y!=Y};function f(){f.init.call(this)}w.exports=f,w.exports.once=function(Y,B){return new Promise((function(X,te){function ie(Te){Y.removeListener(B,se),te(Te)}function se(){typeof Y.removeListener=="function"&&Y.removeListener("error",ie),X([].slice.call(arguments))}z(Y,B,se,{once:!0}),B!=="error"&&(function(he,ge,ke){typeof he.on=="function"&&z(he,"error",ge,ke)})(Y,ie,{once:!0})}))},f.EventEmitter=f,f.prototype._events=void 0,f.prototype._eventsCount=0,f.prototype._maxListeners=void 0;var y=10;function m(K){if(typeof K!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof K)}function g(K){return K._maxListeners===void 0?f.defaultMaxListeners:K._maxListeners}function S(K,Y,B,X){var te,ie,se;if(m(B),(ie=K._events)===void 0?(ie=K._events=Object.create(null),K._eventsCount=0):(ie.newListener!==void 0&&(K.emit("newListener",Y,B.listener?B.listener:B),ie=K._events),se=ie[Y]),se===void 0)se=ie[Y]=B,++K._eventsCount;else if(typeof se=="function"?se=ie[Y]=X?[B,se]:[se,B]:X?se.unshift(B):se.push(B),(te=g(K))>0&&se.length>te&&!se.warned){se.warned=!0;var Te=new Error("Possible EventEmitter memory leak detected. "+se.length+" "+String(Y)+" listeners added. Use emitter.setMaxListeners() to increase limit");Te.name="MaxListenersExceededWarning",Te.emitter=K,Te.type=Y,Te.count=se.length,(function(ge){console&&console.warn&&console.warn(ge)})(Te)}return K}function _(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function T(K,Y,B){var X={fired:!1,wrapFn:void 0,target:K,type:Y,listener:B},te=_.bind(X);return te.listener=B,X.wrapFn=te,te}function I(K,Y,B){var X=K._events;if(X===void 0)return[];var te=X[Y];return te===void 0?[]:typeof te=="function"?B?[te.listener||te]:[te]:B?(function(se){for(var Te=new Array(se.length),he=0;he0&&(se=B[0]),se instanceof Error)throw se;var Te=new Error("Unhandled error."+(se?" ("+se.message+")":""));throw Te.context=se,Te}var he=ie[Y];if(he===void 0)return!1;if(typeof he=="function")h(he,this,B);else{var ge=he.length,ke=M(he,ge);for(X=0;X=0;se--)if(X[se]===B||X[se].listener===B){Te=X[se].listener,ie=se;break}if(ie<0)return this;ie===0?X.shift():(function(ge,ke){for(;ke+1=0;te--)this.removeListener(Y,B[te]);return this},f.prototype.listeners=function(Y){return I(this,Y,!0)},f.prototype.rawListeners=function(Y){return I(this,Y,!1)},f.listenerCount=function(K,Y){return typeof K.listenerCount=="function"?K.listenerCount(Y):j.call(K,Y)},f.prototype.listenerCount=j,f.prototype.eventNames=function(){return this._eventsCount>0?N(this._events):[]}},85587(w,N,s){var h=s(26311),v=f(Error);function f(y){return m.displayName=y.displayName||y.name,m;function m(g){return g&&(g=h.apply(null,arguments)),new y(g)}}w.exports=v,v.eval=f(EvalError),v.range=f(RangeError),v.reference=f(ReferenceError),v.syntax=f(SyntaxError),v.type=f(TypeError),v.uri=f(URIError),v.create=f},82682(w,N,s){var h=s(69600),v=Object.prototype.toString,f=Object.prototype.hasOwnProperty;w.exports=function(m,g,S){if(!h(g))throw new TypeError("iterator must be a function");var _;arguments.length>=3&&(_=S),(function(I){return v.call(I)==="[object Array]"})(m)?(function(I,j,M){for(var z=0,K=I.length;z0?parseInt(Y):null};_"u"?h:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?h:ArrayBuffer,"%ArrayIteratorPrototype%":ge&&ke?ke([][Symbol.iterator]()):h,"%AsyncFromSyncIteratorPrototype%":h,"%AsyncFunction%":gt,"%AsyncGenerator%":gt,"%AsyncGeneratorFunction%":gt,"%AsyncIteratorPrototype%":gt,"%Atomics%":typeof Atomics>"u"?h:Atomics,"%BigInt%":typeof BigInt>"u"?h:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?h:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?h:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?h:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":f,"%eval%":eval,"%EvalError%":y,"%Float32Array%":typeof Float32Array>"u"?h:Float32Array,"%Float64Array%":typeof Float64Array>"u"?h:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?h:FinalizationRegistry,"%Function%":X,"%GeneratorFunction%":gt,"%Int8Array%":typeof Int8Array>"u"?h:Int8Array,"%Int16Array%":typeof Int16Array>"u"?h:Int16Array,"%Int32Array%":typeof Int32Array>"u"?h:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ge&&ke?ke(ke([][Symbol.iterator]())):h,"%JSON%":typeof JSON=="object"?JSON:h,"%Map%":typeof Map>"u"?h:Map,"%MapIteratorPrototype%":typeof Map<"u"&&ge&&ke?ke(new Map()[Symbol.iterator]()):h,"%Math%":Math,"%Number%":Number,"%Object%":v,"%Object.getOwnPropertyDescriptor%":ie,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?h:Promise,"%Proxy%":typeof Proxy>"u"?h:Proxy,"%RangeError%":m,"%ReferenceError%":g,"%Reflect%":typeof Reflect>"u"?h:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?h:Set,"%SetIteratorPrototype%":typeof Set<"u"&&ge&&ke?ke(new Set()[Symbol.iterator]()):h,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?h:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ge&&ke?ke(""[Symbol.iterator]()):h,"%Symbol%":ge?Symbol:h,"%SyntaxError%":S,"%ThrowTypeError%":he,"%TypedArray%":Re,"%TypeError%":_,"%Uint8Array%":typeof Uint8Array>"u"?h:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?h:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?h:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?h:Uint32Array,"%URIError%":T,"%WeakMap%":typeof WeakMap>"u"?h:WeakMap,"%WeakRef%":typeof WeakRef>"u"?h:WeakRef,"%WeakSet%":typeof WeakSet>"u"?h:WeakSet,"%Function.prototype.call%":nt,"%Function.prototype.apply%":qe,"%Object.defineProperty%":se,"%Object.getPrototypeOf%":Ve,"%Math.abs%":I,"%Math.floor%":j,"%Math.max%":M,"%Math.min%":z,"%Math.pow%":K,"%Math.round%":Y,"%Math.sign%":B,"%Reflect.getPrototypeOf%":He};if(ke)try{null.error}catch(ar){var at=ke(ke(ar));u["%Error.prototype%"]=at}var Xe=function ar(Tt){var Gt;if(Tt==="%AsyncFunction%")Gt=te("async function () {}");else if(Tt==="%GeneratorFunction%")Gt=te("function* () {}");else if(Tt==="%AsyncGeneratorFunction%")Gt=te("async function* () {}");else if(Tt==="%AsyncGenerator%"){var Sr=ar("%AsyncGeneratorFunction%");Sr&&(Gt=Sr.prototype)}else if(Tt==="%AsyncIteratorPrototype%"){var kt=ar("%AsyncGenerator%");kt&&ke&&(Gt=ke(kt.prototype))}return u[Tt]=Gt,Gt},Se={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},De=s(66743),Ke=s(9957),ft=De.call(nt,Array.prototype.concat),Nt=De.call(qe,Array.prototype.splice),Wt=De.call(nt,String.prototype.replace),H=De.call(nt,String.prototype.slice),we=De.call(nt,RegExp.prototype.exec),ct=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mt=/\\(\\)?/g,ur=function(Tt,Gt){var Sr,kt=Tt;if(Ke(Se,kt)&&(kt="%"+(Sr=Se[kt])[0]+"%"),Ke(u,kt)){var yt=u[kt];if(yt===gt&&(yt=Xe(kt)),yt===void 0&&!Gt)throw new _("intrinsic "+Tt+" exists, but is not available. Please file an issue!");return{alias:Sr,name:kt,value:yt}}throw new S("intrinsic "+Tt+" does not exist!")};w.exports=function(Tt,Gt){if(typeof Tt!="string"||Tt.length===0)throw new _("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Gt!="boolean")throw new _('"allowMissing" argument must be a boolean');if(we(/^%?[^%]*%?$/,Tt)===null)throw new S("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Sr=(function($t){var Pt=H($t,0,1),rn=H($t,-1);if(Pt==="%"&&rn!=="%")throw new S("invalid intrinsic syntax, expected closing `%`");if(rn==="%"&&Pt!=="%")throw new S("invalid intrinsic syntax, expected opening `%`");var kr=[];return Wt($t,ct,(function(An,Wr,Jn,Ea){kr[kr.length]=Jn?Wt(Ea,mt,"$1"):Wr||An})),kr})(Tt),kt=Sr.length>0?Sr[0]:"",yt=ur("%"+kt+"%",Gt),Zt=yt.name,pe=yt.value,U=!1,Z=yt.alias;Z&&(kt=Z[0],Nt(Sr,ft([0,1],Z)));for(var ne=1,ye=!0;ne=Sr.length){var Bt=ie(pe,Ee);pe=(ye=!!Bt)&&"get"in Bt&&!("originalValue"in Bt.get)?Bt.get:pe[Ee]}else ye=Ke(pe,Ee),pe=pe[Ee];ye&&!U&&(u[Zt]=pe)}}return pe}},71064(w,N,s){var h=s(79612);w.exports=h.getPrototypeOf||null},48648(w){w.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},93628(w,N,s){var h=s(48648),v=s(71064),f=s(7176);w.exports=h?function(m){return h(m)}:v?function(m){if(!m||typeof m!="object"&&typeof m!="function")throw new TypeError("getProto: not an object");return v(m)}:f?function(m){return f(m)}:null},6549(w){w.exports=Object.getOwnPropertyDescriptor},75795(w,N,s){var h=s(6549);if(h)try{h([],"length")}catch{h=null}w.exports=h},30592(w,N,s){var h=s(30655),v=function(){return!!h};v.hasArrayLengthDefineBug=function(){if(!h)return null;try{return h([],"length",{value:1}).length!==1}catch{return!0}},w.exports=v},64039(w,N,s){var h=typeof Symbol<"u"&&Symbol,v=s(41333);w.exports=function(){return typeof h=="function"&&typeof Symbol=="function"&&typeof h("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&v()}},41333(w){w.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},h=Symbol("test"),v=Object(h);if(typeof h=="string"||Object.prototype.toString.call(h)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;for(var f in s[h]=42,s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var y=Object.getOwnPropertySymbols(s);if(y.length!==1||y[0]!==h||!Object.prototype.propertyIsEnumerable.call(s,h))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var m=Object.getOwnPropertyDescriptor(s,h);if(m.value!==42||m.enumerable!==!0)return!1}return!0}},49092(w,N,s){var h=s(41333);w.exports=function(){return h()&&!!Symbol.toStringTag}},9957(w,N,s){var h=Function.prototype.call,v=Object.prototype.hasOwnProperty,f=s(66743);w.exports=f.call(h,v)},45981(w){function N(ne){return ne instanceof Map?ne.clear=ne.delete=ne.set=function(){throw new Error("map is read-only")}:ne instanceof Set&&(ne.add=ne.clear=ne.delete=function(){throw new Error("set is read-only")}),Object.freeze(ne),Object.getOwnPropertyNames(ne).forEach((function(ye){var Ee=ne[ye];typeof Ee!="object"||Object.isFrozen(Ee)||N(Ee)})),ne}var s=N,h=N;s.default=h;class v{constructor(ye){ye.data===void 0&&(ye.data={}),this.data=ye.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function f(ne){return ne.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function y(ne,...ye){const Ee=Object.create(null);for(const Fe in ne)Ee[Fe]=ne[Fe];return ye.forEach((function(Fe){for(const St in Fe)Ee[St]=Fe[St]})),Ee}const m=ne=>!!ne.kind;class g{constructor(ye,Ee){this.buffer="",this.classPrefix=Ee.classPrefix,ye.walk(this)}addText(ye){this.buffer+=f(ye)}openNode(ye){if(!m(ye))return;let Ee=ye.kind;ye.sublanguage||(Ee=`${this.classPrefix}${Ee}`),this.span(Ee)}closeNode(ye){m(ye)&&(this.buffer+="")}value(){return this.buffer}span(ye){this.buffer+=``}}class S{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ye){this.top.children.push(ye)}openNode(ye){const Ee={kind:ye,children:[]};this.add(Ee),this.stack.push(Ee)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ye){return this.constructor._walk(ye,this.rootNode)}static _walk(ye,Ee){return typeof Ee=="string"?ye.addText(Ee):Ee.children&&(ye.openNode(Ee),Ee.children.forEach((Fe=>this._walk(ye,Fe))),ye.closeNode(Ee)),ye}static _collapse(ye){typeof ye!="string"&&ye.children&&(ye.children.every((Ee=>typeof Ee=="string"))?ye.children=[ye.children.join("")]:ye.children.forEach((Ee=>{S._collapse(Ee)})))}}class _ extends S{constructor(ye){super(),this.options=ye}addKeyword(ye,Ee){ye!==""&&(this.openNode(Ee),this.addText(ye),this.closeNode())}addText(ye){ye!==""&&this.add(ye)}addSublanguage(ye,Ee){const Fe=ye.root;Fe.kind=Ee,Fe.sublanguage=!0,this.add(Fe)}toHTML(){return new g(this,this.options).value()}finalize(){return!0}}function T(ne){return ne?typeof ne=="string"?ne:ne.source:null}const I=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,j="[a-zA-Z]\\w*",M="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",K="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Y="\\b(0b[01]+)",B={begin:"\\\\[\\s\\S]",relevance:0},X={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[B]},te={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[B]},ie={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},se=function(ne,ye,Ee={}){const Fe=y({className:"comment",begin:ne,end:ye,contains:[]},Ee);return Fe.contains.push(ie),Fe.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),Fe},Te=se("//","$"),he=se("/\\*","\\*/"),ge=se("#","$"),ke={className:"number",begin:z,relevance:0},Ve={className:"number",begin:K,relevance:0},He={className:"number",begin:Y,relevance:0},qe={className:"number",begin:z+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},nt={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[B,{begin:/\[/,end:/\]/,relevance:0,contains:[B]}]}]},gt={className:"title",begin:j,relevance:0},Re={className:"title",begin:M,relevance:0},u={begin:"\\.\\s*"+M,relevance:0};var at=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:j,UNDERSCORE_IDENT_RE:M,NUMBER_RE:z,C_NUMBER_RE:K,BINARY_NUMBER_RE:Y,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(ne={})=>{const ye=/^#![ ]*\//;return ne.binary&&(ne.begin=(function(...Fe){return Fe.map((St=>T(St))).join("")})(ye,/.*\b/,ne.binary,/\b.*/)),y({className:"meta",begin:ye,end:/$/,relevance:0,"on:begin":(Ee,Fe)=>{Ee.index!==0&&Fe.ignoreMatch()}},ne)},BACKSLASH_ESCAPE:B,APOS_STRING_MODE:X,QUOTE_STRING_MODE:te,PHRASAL_WORDS_MODE:ie,COMMENT:se,C_LINE_COMMENT_MODE:Te,C_BLOCK_COMMENT_MODE:he,HASH_COMMENT_MODE:ge,NUMBER_MODE:ke,C_NUMBER_MODE:Ve,BINARY_NUMBER_MODE:He,CSS_NUMBER_MODE:qe,REGEXP_MODE:nt,TITLE_MODE:gt,UNDERSCORE_TITLE_MODE:Re,METHOD_GUARD:u,END_SAME_AS_BEGIN:function(ne){return Object.assign(ne,{"on:begin":(ye,Ee)=>{Ee.data._beginMatch=ye[1]},"on:end":(ye,Ee)=>{Ee.data._beginMatch!==ye[1]&&Ee.ignoreMatch()}})}});function Xe(ne,ye){ne.input[ne.index-1]==="."&&ye.ignoreMatch()}function Se(ne,ye){ye&&ne.beginKeywords&&(ne.begin="\\b("+ne.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ne.__beforeBegin=Xe,ne.keywords=ne.keywords||ne.beginKeywords,delete ne.beginKeywords,ne.relevance===void 0&&(ne.relevance=0))}function De(ne,ye){Array.isArray(ne.illegal)&&(ne.illegal=(function(...Fe){return"("+Fe.map((St=>T(St))).join("|")+")"})(...ne.illegal))}function Ke(ne,ye){if(ne.match){if(ne.begin||ne.end)throw new Error("begin & end are not supported with match");ne.begin=ne.match,delete ne.match}}function ft(ne,ye){ne.relevance===void 0&&(ne.relevance=1)}const Nt=["of","and","for","in","not","or","if","then","parent","list","value"];function Wt(ne,ye,Ee="keyword"){const Fe={};return typeof ne=="string"?St(Ee,ne.split(" ")):Array.isArray(ne)?St(Ee,ne):Object.keys(ne).forEach((function(Bt){Object.assign(Fe,Wt(ne[Bt],ye,Bt))})),Fe;function St(Bt,Qe){ye&&(Qe=Qe.map(($t=>$t.toLowerCase()))),Qe.forEach((function($t){const Pt=$t.split("|");Fe[Pt[0]]=[Bt,H(Pt[0],Pt[1])]}))}}function H(ne,ye){return ye?Number(ye):(function(Fe){return Nt.includes(Fe.toLowerCase())})(ne)?0:1}function we(ne,{plugins:ye}){function Ee(Bt,Qe){return new RegExp(T(Bt),"m"+(ne.case_insensitive?"i":"")+(Qe?"g":""))}class Fe{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Qe,$t){$t.position=this.position++,this.matchIndexes[this.matchAt]=$t,this.regexes.push([$t,Qe]),this.matchAt+=(function(rn){return new RegExp(rn.toString()+"|").exec("").length-1})(Qe)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Qe=this.regexes.map(($t=>$t[1]));this.matcherRe=Ee((function(Pt,rn="|"){let kr=0;return Pt.map((An=>{kr+=1;const Wr=kr;let Jn=T(An),Ea="";for(;Jn.length>0;){const Zn=I.exec(Jn);if(!Zn){Ea+=Jn;break}Ea+=Jn.substring(0,Zn.index),Jn=Jn.substring(Zn.index+Zn[0].length),Zn[0][0]==="\\"&&Zn[1]?Ea+="\\"+String(Number(Zn[1])+Wr):(Ea+=Zn[0],Zn[0]==="("&&kr++)}return Ea})).map((An=>`(${An})`)).join(rn)})(Qe),!0),this.lastIndex=0}exec(Qe){this.matcherRe.lastIndex=this.lastIndex;const $t=this.matcherRe.exec(Qe);if(!$t)return null;const Pt=$t.findIndex(((kr,An)=>An>0&&kr!==void 0)),rn=this.matchIndexes[Pt];return $t.splice(0,Pt),Object.assign($t,rn)}}class St{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Qe){if(this.multiRegexes[Qe])return this.multiRegexes[Qe];const $t=new Fe;return this.rules.slice(Qe).forEach((([Pt,rn])=>$t.addRule(Pt,rn))),$t.compile(),this.multiRegexes[Qe]=$t,$t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Qe,$t){this.rules.push([Qe,$t]),$t.type==="begin"&&this.count++}exec(Qe){const $t=this.getMatcher(this.regexIndex);$t.lastIndex=this.lastIndex;let Pt=$t.exec(Qe);if(this.resumingScanAtSamePosition()&&!(Pt&&Pt.index===this.lastIndex)){const rn=this.getMatcher(0);rn.lastIndex=this.lastIndex+1,Pt=rn.exec(Qe)}return Pt&&(this.regexIndex+=Pt.position+1,this.regexIndex===this.count&&this.considerAll()),Pt}}if(ne.compilerExtensions||(ne.compilerExtensions=[]),ne.contains&&ne.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return ne.classNameAliases=y(ne.classNameAliases||{}),(function Bt(Qe,$t){const Pt=Qe;if(Qe.isCompiled)return Pt;[Ke].forEach((kr=>kr(Qe,$t))),ne.compilerExtensions.forEach((kr=>kr(Qe,$t))),Qe.__beforeBegin=null,[Se,De,ft].forEach((kr=>kr(Qe,$t))),Qe.isCompiled=!0;let rn=null;if(typeof Qe.keywords=="object"&&(rn=Qe.keywords.$pattern,delete Qe.keywords.$pattern),Qe.keywords&&(Qe.keywords=Wt(Qe.keywords,ne.case_insensitive)),Qe.lexemes&&rn)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return rn=rn||Qe.lexemes||/\w+/,Pt.keywordPatternRe=Ee(rn,!0),$t&&(Qe.begin||(Qe.begin=/\B|\b/),Pt.beginRe=Ee(Qe.begin),Qe.endSameAsBegin&&(Qe.end=Qe.begin),Qe.end||Qe.endsWithParent||(Qe.end=/\B|\b/),Qe.end&&(Pt.endRe=Ee(Qe.end)),Pt.terminatorEnd=T(Qe.end)||"",Qe.endsWithParent&&$t.terminatorEnd&&(Pt.terminatorEnd+=(Qe.end?"|":"")+$t.terminatorEnd)),Qe.illegal&&(Pt.illegalRe=Ee(Qe.illegal)),Qe.contains||(Qe.contains=[]),Qe.contains=[].concat(...Qe.contains.map((function(kr){return(function(Wr){return Wr.variants&&!Wr.cachedVariants&&(Wr.cachedVariants=Wr.variants.map((function(Jn){return y(Wr,{variants:null},Jn)}))),Wr.cachedVariants?Wr.cachedVariants:ct(Wr)?y(Wr,{starts:Wr.starts?y(Wr.starts):null}):Object.isFrozen(Wr)?y(Wr):Wr})(kr==="self"?Qe:kr)}))),Qe.contains.forEach((function(kr){Bt(kr,Pt)})),Qe.starts&&Bt(Qe.starts,$t),Pt.matcher=(function(An){const Wr=new St;return An.contains.forEach((Jn=>Wr.addRule(Jn.begin,{rule:Jn,type:"begin"}))),An.terminatorEnd&&Wr.addRule(An.terminatorEnd,{type:"end"}),An.illegal&&Wr.addRule(An.illegal,{type:"illegal"}),Wr})(Pt),Pt})(ne)}function ct(ne){return!!ne&&(ne.endsWithParent||ct(ne.starts))}function mt(ne){const ye={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!ne.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,f(this.code);let Ee={};return this.autoDetect?(Ee=ne.highlightAuto(this.code),this.detectedLanguage=Ee.language):(Ee=ne.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),Ee.value},autoDetect(){return!this.language||(function(Fe){return!!(Fe||Fe==="")})(this.autodetect)},ignoreIllegals:()=>!0},render(Ee){return Ee("pre",{},[Ee("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:ye,VuePlugin:{install(Ee){Ee.component("highlightjs",ye)}}}}const ur={"after:highlightElement":({el:ne,result:ye,text:Ee})=>{const Fe=Tt(ne);if(!Fe.length)return;const St=document.createElement("div");St.innerHTML=ye.value,ye.value=(function(Qe,$t,Pt){let rn=0,kr="";const An=[];function Wr(){return Qe.length&&$t.length?Qe[0].offset!==$t[0].offset?Qe[0].offset<$t[0].offset?Qe:$t:$t[0].event==="start"?Qe:$t:Qe.length?Qe:$t}function Jn(un){function ti(Oo){return" "+Oo.nodeName+'="'+f(Oo.value)+'"'}kr+="<"+ar(un)+[].map.call(un.attributes,ti).join("")+">"}function Ea(un){kr+=""}function Zn(un){(un.event==="start"?Jn:Ea)(un.node)}for(;Qe.length||$t.length;){let un=Wr();if(kr+=f(Pt.substring(rn,un[0].offset)),rn=un[0].offset,un===Qe){An.reverse().forEach(Ea);do Zn(un.splice(0,1)[0]),un=Wr();while(un===Qe&&un.length&&un[0].offset===rn);An.reverse().forEach(Jn)}else un[0].event==="start"?An.push(un[0].node):An.pop(),Zn(un.splice(0,1)[0])}return kr+f(Pt.substr(rn))})(Fe,Tt(St),Ee)}};function ar(ne){return ne.nodeName.toLowerCase()}function Tt(ne){const ye=[];return(function Ee(Fe,St){for(let Bt=Fe.firstChild;Bt;Bt=Bt.nextSibling)Bt.nodeType===3?St+=Bt.nodeValue.length:Bt.nodeType===1&&(ye.push({event:"start",offset:St,node:Bt}),St=Ee(Bt,St),ar(Bt).match(/br|hr|img|input/)||ye.push({event:"stop",offset:St,node:Bt}));return St})(ne,0),ye}const Gt={},Sr=ne=>{console.error(ne)},kt=(ne,...ye)=>{console.log(`WARN: ${ne}`,...ye)},yt=(ne,ye)=>{Gt[`${ne}/${ye}`]||(console.log(`Deprecated as of ${ne}. ${ye}`),Gt[`${ne}/${ye}`]=!0)},Zt=f,pe=y,U=Symbol("nomatch");var Z=(function(ne){const ye=Object.create(null),Ee=Object.create(null),Fe=[];let St=!0;const Bt=/(^(<[^>]+>|\t|)+|\n)/gm,Qe="Could not find the language '{}', did you forget to load/include a language module?",$t={disableAutodetect:!0,name:"Plain text",contains:[]};let Pt={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:_};function rn(sr){return Pt.noHighlightRe.test(sr)}function kr(sr,br,tn,Cr){let Mr="",Nn="";typeof br=="object"?(Mr=sr,tn=br.ignoreIllegals,Nn=br.language,Cr=void 0):(yt("10.7.0","highlight(lang, code, ...args) has been deprecated."),yt("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),Nn=sr,Mr=br);const nn={code:Mr,language:Nn};ds("before:highlight",nn);const fn=nn.result?nn.result:An(nn.language,nn.code,tn,Cr);return fn.code=nn.code,ds("after:highlight",fn),fn}function An(sr,br,tn,Cr){function Mr(Yt,gr){const mr=ea.case_insensitive?gr[0].toLowerCase():gr[0];return Object.prototype.hasOwnProperty.call(Yt.keywords,mr)&&Yt.keywords[mr]}function Nn(){Rr.subLanguage!=null?(function(){if(xn==="")return;let gr=null;if(typeof Rr.subLanguage=="string"){if(!ye[Rr.subLanguage])return void Nr.addText(xn);gr=An(Rr.subLanguage,xn,!0,ko[Rr.subLanguage]),ko[Rr.subLanguage]=gr.top}else gr=Wr(xn,Rr.subLanguage.length?Rr.subLanguage:null);Rr.relevance>0&&(fi+=gr.relevance),Nr.addSublanguage(gr.emitter,gr.language)})():(function(){if(!Rr.keywords)return void Nr.addText(xn);let gr=0;Rr.keywordPatternRe.lastIndex=0;let mr=Rr.keywordPatternRe.exec(xn),Vr="";for(;mr;){Vr+=xn.substring(gr,mr.index);const Gr=Mr(Rr,mr);if(Gr){const[sa,Sa]=Gr;if(Nr.addText(Vr),Vr="",fi+=Sa,sa.startsWith("_"))Vr+=mr[0];else{const Ja=ea.classNameAliases[sa]||sa;Nr.addKeyword(mr[0],Ja)}}else Vr+=mr[0];gr=Rr.keywordPatternRe.lastIndex,mr=Rr.keywordPatternRe.exec(xn)}Vr+=xn.substr(gr),Nr.addText(Vr)})(),xn=""}function nn(Yt){return Yt.className&&Nr.openNode(ea.classNameAliases[Yt.className]||Yt.className),Rr=Object.create(Yt,{parent:{value:Rr}}),Rr}function fn(Yt,gr,mr){let Vr=(function(sa,Sa){const Ja=sa&&sa.exec(Sa);return Ja&&Ja.index===0})(Yt.endRe,mr);if(Vr){if(Yt["on:end"]){const Gr=new v(Yt);Yt["on:end"](gr,Gr),Gr.isMatchIgnored&&(Vr=!1)}if(Vr){for(;Yt.endsParent&&Yt.parent;)Yt=Yt.parent;return Yt}}if(Yt.endsWithParent)return fn(Yt.parent,gr,mr)}function Ln(Yt){return Rr.matcher.regexIndex===0?(xn+=Yt[0],1):(ms=!0,0)}function Hr(Yt){const gr=Yt[0],mr=Yt.rule,Vr=new v(mr),Gr=[mr.__beforeBegin,mr["on:begin"]];for(const sa of Gr)if(sa&&(sa(Yt,Vr),Vr.isMatchIgnored))return Ln(gr);return mr&&mr.endSameAsBegin&&(mr.endRe=(function(Sa){return new RegExp(Sa.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")})(gr)),mr.skip?xn+=gr:(mr.excludeBegin&&(xn+=gr),Nn(),mr.returnBegin||mr.excludeBegin||(xn=gr)),nn(mr),mr.returnBegin?0:gr.length}function ia(Yt){const gr=Yt[0],mr=br.substr(Yt.index),Vr=fn(Rr,Yt,mr);if(!Vr)return U;const Gr=Rr;Gr.skip?xn+=gr:(Gr.returnEnd||Gr.excludeEnd||(xn+=gr),Nn(),Gr.excludeEnd&&(xn=gr));do Rr.className&&Nr.closeNode(),Rr.skip||Rr.subLanguage||(fi+=Rr.relevance),Rr=Rr.parent;while(Rr!==Vr.parent);return Vr.starts&&(Vr.endSameAsBegin&&(Vr.starts.endRe=Vr.endRe),nn(Vr.starts)),Gr.returnEnd?0:gr.length}let za={};function fs(Yt,gr){const mr=gr&&gr[0];if(xn+=Yt,mr==null)return Nn(),0;if(za.type==="begin"&&gr.type==="end"&&za.index===gr.index&&mr===""){if(xn+=br.slice(gr.index,gr.index+1),!St){const Vr=new Error("0 width match regex");throw Vr.languageName=sr,Vr.badRule=za.rule,Vr}return 1}if(za=gr,gr.type==="begin")return Hr(gr);if(gr.type==="illegal"&&!tn){const Vr=new Error('Illegal lexeme "'+mr+'" for mode "'+(Rr.className||"")+'"');throw Vr.mode=Rr,Vr}if(gr.type==="end"){const Vr=ia(gr);if(Vr!==U)return Vr}if(gr.type==="illegal"&&mr==="")return 1;if(Jo>1e5&&Jo>3*gr.index)throw new Error("potential infinite loop, way more iterations than matches");return xn+=mr,mr.length}const ea=Fn(sr);if(!ea)throw Sr(Qe.replace("{}",sr)),new Error('Unknown language: "'+sr+'"');const di=we(ea,{plugins:Fe});let Va="",Rr=Cr||di;const ko={},Nr=new Pt.__emitter(Pt);(function(){const gr=[];for(let mr=Rr;mr!==ea;mr=mr.parent)mr.className&&gr.unshift(mr.className);gr.forEach((mr=>Nr.openNode(mr)))})();let xn="",fi=0,ta=0,Jo=0,ms=!1;try{for(Rr.matcher.considerAll();;){Jo++,ms?ms=!1:Rr.matcher.considerAll(),Rr.matcher.lastIndex=ta;const Yt=Rr.matcher.exec(br);if(!Yt)break;const gr=fs(br.substring(ta,Yt.index),Yt);ta=Yt.index+gr}return fs(br.substr(ta)),Nr.closeAllNodes(),Nr.finalize(),Va=Nr.toHTML(),{relevance:Math.floor(fi),value:Va,language:sr,illegal:!1,emitter:Nr,top:Rr}}catch(Yt){if(Yt.message&&Yt.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:Yt.message,context:br.slice(ta-100,ta+100),mode:Yt.mode},sofar:Va,relevance:0,value:Zt(br),emitter:Nr};if(St)return{illegal:!1,relevance:0,value:Zt(br),emitter:Nr,language:sr,top:Rr,errorRaised:Yt};throw Yt}}function Wr(sr,br){br=br||Pt.languages||Object.keys(ye);const tn=(function(Hr){const ia={relevance:0,emitter:new Pt.__emitter(Pt),value:Zt(Hr),illegal:!1,top:$t};return ia.emitter.addText(Hr),ia})(sr),Cr=br.filter(Fn).filter(Vo).map((Ln=>An(Ln,sr,!1)));Cr.unshift(tn);const Mr=Cr.sort(((Ln,Hr)=>{if(Ln.relevance!==Hr.relevance)return Hr.relevance-Ln.relevance;if(Ln.language&&Hr.language){if(Fn(Ln.language).supersetOf===Hr.language)return 1;if(Fn(Hr.language).supersetOf===Ln.language)return-1}return 0})),[Nn,nn]=Mr,fn=Nn;return fn.second_best=nn,fn}const Jn={"before:highlightElement":({el:sr})=>{Pt.useBR&&(sr.innerHTML=sr.innerHTML.replace(/\n/g,"").replace(//g,` +`))},"after:highlightElement":({result:sr})=>{Pt.useBR&&(sr.value=sr.value.replace(/\n/g,"
"))}},Ea=/^(<[^>]+>|\t)+/gm,Zn={"after:highlightElement":({result:sr})=>{Pt.tabReplace&&(sr.value=sr.value.replace(Ea,(br=>br.replace(/\t/g,Pt.tabReplace))))}};function un(sr){let br=null;const tn=(function(nn){let fn=nn.className+" ";fn+=nn.parentNode?nn.parentNode.className:"";const Ln=Pt.languageDetectRe.exec(fn);if(Ln){const Hr=Fn(Ln[1]);return Hr||(kt(Qe.replace("{}",Ln[1])),kt("Falling back to no-highlight mode for this block.",nn)),Hr?Ln[1]:"no-highlight"}return fn.split(/\s+/).find((Hr=>rn(Hr)||Fn(Hr)))})(sr);if(rn(tn))return;ds("before:highlightElement",{el:sr,language:tn}),br=sr;const Cr=br.textContent,Mr=tn?kr(Cr,{language:tn,ignoreIllegals:!0}):Wr(Cr);ds("after:highlightElement",{el:sr,result:Mr,text:Cr}),sr.innerHTML=Mr.value,(function(nn,fn,Ln){const Hr=fn?Ee[fn]:Ln;nn.classList.add("hljs"),Hr&&nn.classList.add(Hr)})(sr,tn,Mr.language),sr.result={language:Mr.language,re:Mr.relevance,relavance:Mr.relevance},Mr.second_best&&(sr.second_best={language:Mr.second_best.language,re:Mr.second_best.relevance,relavance:Mr.second_best.relevance})}const ti=()=>{ti.called||(ti.called=!0,yt("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(un))};let Oo=!1;function Li(){if(document.readyState==="loading")return void(Oo=!0);document.querySelectorAll("pre code").forEach(un)}function Fn(sr){return sr=(sr||"").toLowerCase(),ye[sr]||ye[Ee[sr]]}function zo(sr,{languageName:br}){typeof sr=="string"&&(sr=[sr]),sr.forEach((tn=>{Ee[tn.toLowerCase()]=br}))}function Vo(sr){const br=Fn(sr);return br&&!br.disableAutodetect}function ds(sr,br){const tn=sr;Fe.forEach((function(Cr){Cr[tn]&&Cr[tn](br)}))}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){Oo&&Li()}),!1),Object.assign(ne,{highlight:kr,highlightAuto:Wr,highlightAll:Li,fixMarkup:function(br){return yt("10.2.0","fixMarkup will be removed entirely in v11.0"),yt("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),(function(Cr){return Pt.tabReplace||Pt.useBR?Cr.replace(Bt,(Mr=>Mr===` +`?Pt.useBR?"
":Mr:Pt.tabReplace?Mr.replace(/\t/g,Pt.tabReplace):Mr)):Cr})(br)},highlightElement:un,highlightBlock:function(br){return yt("10.7.0","highlightBlock will be removed entirely in v12.0"),yt("10.7.0","Please use highlightElement now."),un(br)},configure:function(br){br.useBR&&(yt("10.3.0","'useBR' will be removed entirely in v11.0"),yt("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Pt=pe(Pt,br)},initHighlighting:ti,initHighlightingOnLoad:function(){yt("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),Oo=!0},registerLanguage:function(br,tn){let Cr=null;try{Cr=tn(ne)}catch(Mr){if(Sr("Language definition for '{}' could not be registered.".replace("{}",br)),!St)throw Mr;Sr(Mr),Cr=$t}Cr.name||(Cr.name=br),ye[br]=Cr,Cr.rawDefinition=tn.bind(null,ne),Cr.aliases&&zo(Cr.aliases,{languageName:br})},unregisterLanguage:function(br){delete ye[br];for(const tn of Object.keys(Ee))Ee[tn]===br&&delete Ee[tn]},listLanguages:function(){return Object.keys(ye)},getLanguage:Fn,registerAliases:zo,requireLanguage:function(br){yt("10.4.0","requireLanguage will be removed entirely in v11."),yt("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const tn=Fn(br);if(tn)return tn;throw new Error("The '{}' language is required, but not loaded.".replace("{}",br))},autoDetection:Vo,inherit:pe,addPlugin:function(br){(function(Cr){Cr["before:highlightBlock"]&&!Cr["before:highlightElement"]&&(Cr["before:highlightElement"]=Mr=>{Cr["before:highlightBlock"](Object.assign({block:Mr.el},Mr))}),Cr["after:highlightBlock"]&&!Cr["after:highlightElement"]&&(Cr["after:highlightElement"]=Mr=>{Cr["after:highlightBlock"](Object.assign({block:Mr.el},Mr))})})(br),Fe.push(br)},vuePlugin:mt(ne).VuePlugin}),ne.debugMode=function(){St=!1},ne.safeMode=function(){St=!0},ne.versionString="10.7.3";for(const sr in at)typeof at[sr]=="object"&&s(at[sr]);return Object.assign(ne,at),ne.addPlugin(Jn),ne.addPlugin(ur),ne.addPlugin(Zn),ne})({});w.exports=Z},35344(w){function N(...s){return s.map((h=>(function(f){return f?typeof f=="string"?f:f.source:null})(h))).join("")}w.exports=function(h){const v={},f={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[v]}]};Object.assign(v,{className:"variable",variants:[{begin:N(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},f]});const y={className:"subst",begin:/\$\(/,end:/\)/,contains:[h.BACKSLASH_ESCAPE]},m={begin:/<<-?\s*(?=\w+)/,starts:{contains:[h.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[h.BACKSLASH_ESCAPE,v,y]};y.contains.push(g);const S={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},h.NUMBER_MODE,v]},_=h.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),T={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[h.inherit(h.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[_,h.SHEBANG(),T,S,h.HASH_COMMENT_MODE,m,g,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},v]}}},73402(w){function N(...s){return s.map((h=>(function(f){return f?typeof f=="string"?f:f.source:null})(h))).join("")}w.exports=function(h){const v="HTTP/(2|1\\.[01])",f={className:"attribute",begin:N("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},y=[f,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+v+" \\d{3})",end:/$/,contains:[{className:"meta",begin:v},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:y}},{begin:"(?=^[A-Z]+ (.*?) "+v+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:v},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:y}},h.inherit(f,{relevance:0})]}}},95089(w){const N="[A-Za-z$_][0-9A-Za-z$_]*",s=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],h=["true","false","null","undefined","NaN","Infinity"],v=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function f(m){return y("(?=",m,")")}function y(...m){return m.map((g=>(function(_){return _?typeof _=="string"?_:_.source:null})(g))).join("")}w.exports=function(g){const S=N,_="<>",T="",I={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Ve,He)=>{const qe=Ve[0].length+Ve.index,nt=Ve.input[qe];nt!=="<"?nt===">"&&(((gt,{after:Re})=>{const u="",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:g.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:j,contains:ge}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:_,end:T},{begin:I.begin,"on:begin":I.isTrulyOpeningTag,end:I.end}],subLanguage:"xml",contains:[{begin:I.begin,end:I.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:j,contains:["self",g.inherit(g.TITLE_MODE,{begin:S}),ke],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:g.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[ke,g.inherit(g.TITLE_MODE,{begin:S})]},{variants:[{begin:"\\."+S},{begin:"\\$"+S}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},g.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[g.inherit(g.TITLE_MODE,{begin:S}),"self",ke]},{begin:"(get|set)\\s+(?="+S+"\\()",end:/\{/,keywords:"get set",contains:[g.inherit(g.TITLE_MODE,{begin:S}),{begin:/\(\)/},ke]},{begin:/\$[(.]/}]}}},65772(w){w.exports=function(s){const h={literal:"true false null"},v=[s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE],f=[s.QUOTE_STRING_MODE,s.C_NUMBER_MODE],y={end:",",endsWithParent:!0,excludeEnd:!0,contains:f,keywords:h},m={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[s.BACKSLASH_ESCAPE],illegal:"\\n"},s.inherit(y,{begin:/:/})].concat(v),illegal:"\\S"},g={begin:"\\[",end:"\\]",contains:[s.inherit(y)],illegal:"\\S"};return f.push(m,g),v.forEach((function(S){f.push(S)})),{name:"JSON",contains:f,keywords:h,illegal:"\\S"}}},26571(w){w.exports=function(s){const h={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},v={begin:"`[\\s\\S]",relevance:0},f={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},y={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[v,f,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},m={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},g=s.inherit(s.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),S={className:"built_in",variants:[{begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+")}]},_={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[s.TITLE_MODE]},T={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[f]}]},I={begin:/using\s/,end:/$/,returnBegin:!0,contains:[y,m,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},j={variants:[{className:"operator",begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},M={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(h.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},s.inherit(s.TITLE_MODE,{endsParent:!0})]},z=[M,g,v,s.NUMBER_MODE,y,m,S,f,{className:"literal",begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0}],K={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",z,{begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return M.contains.unshift(K),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:h,contains:z.concat(_,T,I,j,K)}}},17285(w){function N(f){return f?typeof f=="string"?f:f.source:null}function s(f){return h("(?=",f,")")}function h(...f){return f.map((y=>N(y))).join("")}function v(...f){return"("+f.map((y=>N(y))).join("|")+")"}w.exports=function(y){const m=h(/[A-Z_]/,(function(z){return h("(",z,")?")})(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),g={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},S={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},_=y.inherit(S,{begin:/\(/,end:/\)/}),T=y.inherit(y.APOS_STRING_MODE,{className:"meta-string"}),I=y.inherit(y.QUOTE_STRING_MODE,{className:"meta-string"}),j={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[S,I,T,_,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[S,_,I,T]}]}]},y.COMMENT(//,{relevance:10}),{begin://,relevance:10},g,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[j],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[j],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:h(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:m,relevance:0,starts:j}]},{className:"tag",begin:h(/<\//,s(h(m,/>/))),contains:[{className:"name",begin:m,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}},17533(w){w.exports=function(s){var h="true false yes no null",v="[\\w#;/?:@&=+$,.~*'()[\\]]+",f={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[s.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},y=s.inherit(f,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),m={className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},g={end:",",endsWithParent:!0,excludeEnd:!0,keywords:h,relevance:0},S={begin:/\{/,end:/\}/,contains:[g],illegal:"\\n",relevance:0},_={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},T=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+v},{className:"type",begin:"!<"+v+">"},{className:"type",begin:"!"+v},{className:"type",begin:"!!"+v},{className:"meta",begin:"&"+s.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+s.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},s.HASH_COMMENT_MODE,{beginKeywords:h,keywords:{literal:h}},m,{className:"number",begin:s.C_NUMBER_RE+"\\b",relevance:0},S,_,f],I=[...T];return I.pop(),I.push(y),g.contains=I,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:T}}},251(w,N){N.read=function(s,h,v,f,y){var m,g,S=8*y-f-1,_=(1<>1,I=-7,j=v?y-1:0,M=v?-1:1,z=s[h+j];for(j+=M,m=z&(1<<-I)-1,z>>=-I,I+=S;I>0;m=256*m+s[h+j],j+=M,I-=8);for(g=m&(1<<-I)-1,m>>=-I,I+=f;I>0;g=256*g+s[h+j],j+=M,I-=8);if(m===0)m=1-T;else{if(m===_)return g?NaN:1/0*(z?-1:1);g+=Math.pow(2,f),m-=T}return(z?-1:1)*g*Math.pow(2,m-f)},N.write=function(s,h,v,f,y,m){var g,S,_,T=8*m-y-1,I=(1<>1,M=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,z=f?0:m-1,K=f?1:-1,Y=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(S=isNaN(h)?1:0,g=I):(g=Math.floor(Math.log(h)/Math.LN2),h*(_=Math.pow(2,-g))<1&&(g--,_*=2),(h+=g+j>=1?M/_:M*Math.pow(2,1-j))*_>=2&&(g++,_/=2),g+j>=I?(S=0,g=I):g+j>=1?(S=(h*_-1)*Math.pow(2,y),g+=j):(S=h*Math.pow(2,j-1)*Math.pow(2,y),g=0));y>=8;s[v+z]=255&S,z+=K,S/=256,y-=8);for(g=g<0;s[v+z]=255&g,z+=K,g/=256,T-=8);s[v+z-K]|=128*Y}},49568(w,N,s){s.r(N),s.d(N,{Collection:()=>he,Iterable:()=>ip,List:()=>Wo,Map:()=>vi,OrderedMap:()=>Ra,OrderedSet:()=>Da,PairSorting:()=>cc,Range:()=>zi,Record:()=>jn,Repeat:()=>vl,Seq:()=>ar,Set:()=>No,Stack:()=>ul,default:()=>sp,fromJS:()=>Zc,get:()=>Ia,getIn:()=>lc,has:()=>Wa,hasIn:()=>ml,hash:()=>kr,is:()=>Qe,isAssociative:()=>Te,isCollection:()=>B,isImmutable:()=>Re,isIndexed:()=>se,isKeyed:()=>te,isList:()=>Bi,isMap:()=>Fe,isOrdered:()=>at,isOrderedMap:()=>St,isOrderedSet:()=>pl,isPlainObject:()=>sa,isRecord:()=>gt,isSeq:()=>qe,isSet:()=>Ui,isStack:()=>cl,isValueObject:()=>Bt,merge:()=>nc,mergeDeep:()=>Ku,mergeDeepWith:()=>$c,mergeWith:()=>Hu,remove:()=>gs,removeIn:()=>Zl,set:()=>ys,setIn:()=>Wu,update:()=>Ao,updateIn:()=>lo,version:()=>tu});var h="delete",v=32,f=31,y={};function m(A){A&&(A.value=!0)}function g(){}function S(A){return A.size===void 0&&(A.size=A.__iterate(T)),A.size}function _(A,O){if(typeof O!="number"){var D=O>>>0;if(""+D!==O||D===4294967295)return NaN;O=D}return O<0?S(A)+O:O}function T(){return!0}function I(A,O,D){return(A===0&&!K(A)||D!==void 0&&A<=-D)&&(O===void 0||D!==void 0&&O>=D)}function j(A,O){return z(A,O,0)}function M(A,O){return z(A,O,O)}function z(A,O,D){return A===void 0?D:K(A)?O===1/0?O:0|Math.max(0,O+A):O===void 0||O===A?A:0|Math.min(O,A)}function K(A){return A<0||A===0&&1/A==-1/0}var Y="@@__IMMUTABLE_ITERABLE__@@";function B(A){return!!(A&&A[Y])}var X="@@__IMMUTABLE_KEYED__@@";function te(A){return!!(A&&A[X])}var ie="@@__IMMUTABLE_INDEXED__@@";function se(A){return!!(A&&A[ie])}function Te(A){return te(A)||se(A)}var he=function(O){return B(O)?O:ar(O)},ge=(function(A){function O(D){return te(D)?D:Tt(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O})(he),ke=(function(A){function O(D){return se(D)?D:Gt(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O})(he),Ve=(function(A){function O(D){return B(D)&&!Te(D)?D:Sr(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O})(he);he.Keyed=ge,he.Indexed=ke,he.Set=Ve;var He="@@__IMMUTABLE_SEQ__@@";function qe(A){return!!(A&&A[He])}var nt="@@__IMMUTABLE_RECORD__@@";function gt(A){return!!(A&&A[nt])}function Re(A){return B(A)||gt(A)}var u="@@__IMMUTABLE_ORDERED__@@";function at(A){return!!(A&&A[u])}var Xe=typeof Symbol=="function"&&Symbol.iterator,Se="@@iterator",De=Xe||Se,Ke=function(O){this.next=O};function ft(A,O,D,F){var q=A===0?O:A===1?D:[O,D];return F?F.value=q:F={value:q,done:!1},F}function Nt(){return{value:void 0,done:!0}}function Wt(A){return!!Array.isArray(A)||!!ct(A)}function H(A){return A&&typeof A.next=="function"}function we(A){var O=ct(A);return O&&O.call(A)}function ct(A){var O=A&&(Xe&&A[Xe]||A[Se]);if(typeof O=="function")return O}Ke.prototype.toString=function(){return"[Iterator]"},Ke.KEYS=0,Ke.VALUES=1,Ke.ENTRIES=2,Ke.prototype.inspect=Ke.prototype.toSource=function(){return this.toString()},Ke.prototype[De]=function(){return this};var mt=Object.prototype.hasOwnProperty;function ur(A){return!(!Array.isArray(A)&&typeof A!="string")||A&&typeof A=="object"&&Number.isInteger(A.length)&&A.length>=0&&(A.length===0?Object.keys(A).length===1:A.hasOwnProperty(A.length-1))}var ar=(function(A){function O(D){return D==null?U():Re(D)?D.toSeq():(function(q){var ae=ye(q);if(ae)return(function(fe){var Pe=ct(fe);return Pe&&Pe===fe.entries})(q)?ae.fromEntrySeq():(function(fe){var Pe=ct(fe);return Pe&&Pe===fe.keys})(q)?ae.toSetSeq():ae;if(typeof q=="object")return new yt(q);throw new TypeError("Expected Array or collection object of values, or keyed object: "+q)})(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.toSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq {","}")},O.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},O.prototype.__iterate=function(F,q){var ae=this._cache;if(ae){for(var oe=ae.length,fe=0;fe!==oe;){var Pe=ae[q?oe-++fe:fe++];if(F(Pe[1],Pe[0],this)===!1)break}return fe}return this.__iterateUncached(F,q)},O.prototype.__iterator=function(F,q){var ae=this._cache;if(ae){var oe=ae.length,fe=0;return new Ke((function(){if(fe===oe)return{value:void 0,done:!0};var Pe=ae[q?oe-++fe:fe++];return ft(F,Pe[0],Pe[1])}))}return this.__iteratorUncached(F,q)},O})(he),Tt=(function(A){function O(D){return D==null?U().toKeyedSeq():B(D)?te(D)?D.toSeq():D.fromEntrySeq():gt(D)?D.toSeq():Z(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.toKeyedSeq=function(){return this},O})(ar),Gt=(function(A){function O(D){return D==null?U():B(D)?te(D)?D.entrySeq():D.toIndexedSeq():gt(D)?D.toSeq().entrySeq():ne(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return O(arguments)},O.prototype.toIndexedSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq [","]")},O})(ar),Sr=(function(A){function O(D){return(B(D)&&!Te(D)?D:Gt(D)).toSetSeq()}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return O(arguments)},O.prototype.toSetSeq=function(){return this},O})(ar);ar.isSeq=qe,ar.Keyed=Tt,ar.Set=Sr,ar.Indexed=Gt,ar.prototype[He]=!0;var kt=(function(A){function O(D){this._array=D,this.size=D.length}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.get=function(F,q){return this.has(F)?this._array[_(this,F)]:q},O.prototype.__iterate=function(F,q){for(var ae=this._array,oe=ae.length,fe=0;fe!==oe;){var Pe=q?oe-++fe:fe++;if(F(ae[Pe],Pe,this)===!1)break}return fe},O.prototype.__iterator=function(F,q){var ae=this._array,oe=ae.length,fe=0;return new Ke((function(){if(fe===oe)return{value:void 0,done:!0};var Pe=q?oe-++fe:fe++;return ft(F,Pe,ae[Pe])}))},O})(Gt),yt=(function(A){function O(D){var F=Object.keys(D).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(D):[]);this._object=D,this._keys=F,this.size=F.length}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.get=function(F,q){return q===void 0||this.has(F)?this._object[F]:q},O.prototype.has=function(F){return mt.call(this._object,F)},O.prototype.__iterate=function(F,q){for(var ae=this._object,oe=this._keys,fe=oe.length,Pe=0;Pe!==fe;){var ze=oe[q?fe-++Pe:Pe++];if(F(ae[ze],ze,this)===!1)break}return Pe},O.prototype.__iterator=function(F,q){var ae=this._object,oe=this._keys,fe=oe.length,Pe=0;return new Ke((function(){if(Pe===fe)return{value:void 0,done:!0};var ze=oe[q?fe-++Pe:Pe++];return ft(F,ze,ae[ze])}))},O})(Tt);yt.prototype[u]=!0;var Zt,pe=(function(A){function O(D){this._collection=D,this.size=D.length||D.size}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.__iterateUncached=function(F,q){if(q)return this.cacheResult().__iterate(F,q);var ae=we(this._collection),oe=0;if(H(ae))for(var fe;!(fe=ae.next()).done&&F(fe.value,oe++,this)!==!1;);return oe},O.prototype.__iteratorUncached=function(F,q){if(q)return this.cacheResult().__iterator(F,q);var ae=we(this._collection);if(!H(ae))return new Ke(Nt);var oe=0;return new Ke((function(){var fe=ae.next();return fe.done?fe:ft(F,oe++,fe.value)}))},O})(Gt);function U(){return Zt||(Zt=new kt([]))}function Z(A){var O=ye(A);if(O)return O.fromEntrySeq();if(typeof A=="object")return new yt(A);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+A)}function ne(A){var O=ye(A);if(O)return O;throw new TypeError("Expected Array or collection object of values: "+A)}function ye(A){return ur(A)?new kt(A):Wt(A)?new pe(A):void 0}var Ee="@@__IMMUTABLE_MAP__@@";function Fe(A){return!!(A&&A[Ee])}function St(A){return Fe(A)&&at(A)}function Bt(A){return!!(A&&typeof A.equals=="function"&&typeof A.hashCode=="function")}function Qe(A,O){if(A===O||A!=A&&O!=O)return!0;if(!A||!O)return!1;if(typeof A.valueOf=="function"&&typeof O.valueOf=="function"){if((A=A.valueOf())===(O=O.valueOf())||A!=A&&O!=O)return!0;if(!A||!O)return!1}return!!(Bt(A)&&Bt(O)&&A.equals(O))}var $t=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(O,D){var F=65535&(O|=0),q=65535&(D|=0);return F*q+((O>>>16)*q+F*(D>>>16)<<16>>>0)|0};function Pt(A){return A>>>1&1073741824|3221225471&A}var rn=Object.prototype.valueOf;function kr(A){if(A==null)return An(A);if(typeof A.hashCode=="function")return Pt(A.hashCode(A));var O=(function(F){return F.valueOf!==rn&&typeof F.valueOf=="function"?F.valueOf(F):F})(A);if(O==null)return An(O);switch(typeof O){case"boolean":return O?1108378657:1108378656;case"number":return(function(F){if(F!=F||F===1/0)return 0;var q=0|F;for(q!==F&&(q^=4294967295*F);F>4294967295;)q^=F/=4294967295;return Pt(q)})(O);case"string":return O.length>ds?(function(F){var q=tn[F];return q===void 0&&(q=Wr(F),br===sr&&(br=0,tn={}),br++,tn[F]=q),q})(O):Wr(O);case"object":case"function":return(function(F){var q;if(Li&&(q=Oo.get(F))!==void 0||(q=F[Vo])!==void 0||!un&&((q=F.propertyIsEnumerable&&F.propertyIsEnumerable[Vo])!==void 0||(q=(function(oe){if(oe&&oe.nodeType>0)switch(oe.nodeType){case 1:return oe.uniqueID;case 9:return oe.documentElement&&oe.documentElement.uniqueID}})(F))!==void 0))return q;if(q=ti(),Li)Oo.set(F,q);else{if(Zn!==void 0&&Zn(F)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(un)Object.defineProperty(F,Vo,{enumerable:!1,configurable:!1,writable:!1,value:q});else if(F.propertyIsEnumerable!==void 0&&F.propertyIsEnumerable===F.constructor.prototype.propertyIsEnumerable)F.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},F.propertyIsEnumerable[Vo]=q;else{if(F.nodeType===void 0)throw new Error("Unable to set a non-enumerable property on object.");F[Vo]=q}}return q})(O);case"symbol":return(function(F){var q=Fn[F];return q!==void 0||(q=ti(),Fn[F]=q),q})(O);default:if(typeof O.toString=="function")return Wr(O.toString());throw new Error("Value type "+typeof O+" cannot be hashed.")}}function An(A){return A===null?1108378658:1108378659}function Wr(A){for(var O=0,D=0;D=0&&(Pe.get=function(ze,tt){return(ze=_(this,ze))>=0&&zeae)return{value:void 0,done:!0};var vr=At.next();return F||ze===1||vr.done?vr:ft(ze,lr-1,ze===0?void 0:vr.value[1],vr)}))},Pe}function fs(A,O,D,F){var q=ta(A);return q.__iterateUncached=function(ae,oe){var fe=this;if(oe)return this.cacheResult().__iterate(ae,oe);var Pe=!0,ze=0;return A.__iterate((function(tt,At,Rt){if(!Pe||!(Pe=O.call(D,tt,At,Rt)))return ze++,ae(tt,F?At:ze-1,fe)})),ze},q.__iteratorUncached=function(ae,oe){var fe=this;if(oe)return this.cacheResult().__iterator(ae,oe);var Pe=A.__iterator(2,oe),ze=!0,tt=0;return new Ke((function(){var At,Rt,lr;do{if((At=Pe.next()).done)return F||ae===1?At:ft(ae,tt++,ae===0?void 0:At.value[1],At);var vr=At.value;Rt=vr[0],lr=vr[1],ze&&(ze=O.call(D,lr,Rt,fe))}while(ze);return ae===2?At:ft(ae,Rt,lr,At)}))},q}function ea(A,O,D){var F=ta(A);return F.__iterateUncached=function(q,ae){if(ae)return this.cacheResult().__iterate(q,ae);var oe=0,fe=!1;return(function Pe(ze,tt){ze.__iterate((function(At,Rt){return(!O||tt0}function ko(A,O,D,F){var q=ta(A),ae=new kt(D).map((function(oe){return oe.size}));return q.size=F?ae.max():ae.min(),q.__iterate=function(oe,fe){for(var Pe,ze=this.__iterator(1,fe),tt=0;!(Pe=ze.next()).done&&oe(Pe.value,tt++,this)!==!1;);return tt},q.__iteratorUncached=function(oe,fe){var Pe=D.map((function(At){return At=he(At),we(fe?At.reverse():At)})),ze=0,tt=!1;return new Ke((function(){var At;return tt||(At=Pe.map((function(Rt){return Rt.next()})),tt=F?At.every((function(Rt){return Rt.done})):At.some((function(Rt){return Rt.done}))),tt?{value:void 0,done:!0}:ft(oe,ze++,O.apply(null,At.map((function(Rt){return Rt.value}))))}))},q}function Nr(A,O){return A===O?A:qe(A)?O:A.constructor(O)}function xn(A){if(A!==Object(A))throw new TypeError("Expected [K, V] tuple: "+A)}function fi(A){return te(A)?ge:se(A)?ke:Ve}function ta(A){return Object.create((te(A)?Tt:se(A)?Gt:Sr).prototype)}function Jo(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ar.prototype.cacheResult.call(this)}function ms(A,O){return A===void 0&&O===void 0?0:A===void 0?1:O===void 0?-1:A>O?1:A0;)O[D]=arguments[D+1];if(typeof A!="function")throw new TypeError("Invalid merger function: "+A);return Zs(this,O,A)}function Zs(A,O,D){for(var F=[],q=0;q0;)O[D]=arguments[D+1];return Co(A,O)}function Hu(A,O){for(var D=[],F=arguments.length-2;F-- >0;)D[F]=arguments[F+2];return Co(O,D,A)}function Ku(A){for(var O=[],D=arguments.length-1;D-- >0;)O[D]=arguments[D+1];return $i(A,O)}function $c(A,O){for(var D=[],F=arguments.length-2;F-- >0;)D[F]=arguments[F+2];return $i(O,D,A)}function $i(A,O,D){return Co(A,O,(function(q){function ae(oe,fe,Pe){return Sa(oe)&&Sa(fe)&&(function(tt,At){var Rt=ar(tt),lr=ar(At);return se(Rt)===se(lr)&&te(Rt)===te(lr)})(oe,fe)?Co(oe,[fe],ae):q?q(oe,fe,Pe):fe}return ae})(D))}function Co(A,O,D){if(!Sa(A))throw new TypeError("Cannot merge into non-data-structure value: "+A);if(Re(A))return typeof D=="function"&&A.mergeWith?A.mergeWith.apply(A,[D].concat(O)):A.merge?A.merge.apply(A,O):A.concat.apply(A,O);for(var F=Array.isArray(A),q=A,ae=F?ke:ge,oe=F?function(Pe){q===A&&(q=Xl(q)),q.push(Pe)}:function(Pe,ze){if(!Yl(ze)){var tt=mt.call(q,ze),At=tt&&D?D(q[ze],Pe,ze):Pe;tt&&At===q[ze]||(q===A&&(q=Xl(q)),q[ze]=At)}},fe=0;fe0;)O[D]=arguments[D+1];return $i(this,O,A)}function bs(A){for(var O=[],D=arguments.length-1;D-- >0;)O[D]=arguments[D+1];return lo(this,A,co(),(function(F){return Co(F,O)}))}function ws(A){for(var O=[],D=arguments.length-1;D-- >0;)O[D]=arguments[D+1];return lo(this,A,co(),(function(F){return $i(F,O)}))}function jo(A){var O=this.asMutable();return A(O),O.wasAltered()?O.__ensureOwner(this.__ownerID):this}function ac(){return this.__ownerID?this:this.__ensureOwner(new g)}function el(){return this.__ensureOwner()}function Es(){return this.__altered}var vi=(function(A){function O(D){return D==null?co():Fe(D)&&!at(D)?D:co().withMutations((function(F){var q=A(D);mr(q.size),q.forEach((function(ae,oe){return F.set(oe,ae)}))}))}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){for(var F=[],q=arguments.length;q--;)F[q]=arguments[q];return co().withMutations((function(ae){for(var oe=0;oe=F.length)throw new Error("Missing value for key: "+F[oe]);ae.set(F[oe],F[oe+1])}}))},O.prototype.toString=function(){return this.__toString("Map {","}")},O.prototype.get=function(F,q){return this._root?this._root.get(0,void 0,F,q):q},O.prototype.set=function(F,q){return nl(this,F,q)},O.prototype.remove=function(F){return nl(this,F,y)},O.prototype.deleteAll=function(F){var q=he(F);return q.size===0?this:this.withMutations((function(ae){q.forEach((function(oe){return ae.remove(oe)}))}))},O.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):co()},O.prototype.sort=function(F){return Ra(di(this,F))},O.prototype.sortBy=function(F,q){return Ra(di(this,q,F))},O.prototype.map=function(F,q){var ae=this;return this.withMutations((function(oe){oe.forEach((function(fe,Pe){oe.set(Pe,F.call(q,fe,Pe,ae))}))}))},O.prototype.__iterator=function(F,q){return new jd(this,F,q)},O.prototype.__iterate=function(F,q){var ae=this,oe=0;return this._root&&this._root.iterate((function(fe){return oe++,F(fe[1],fe[0],ae)}),q),oe},O.prototype.__ensureOwner=function(F){return F===this.__ownerID?this:F?yr(this.size,this._root,F,this.__hash):this.size===0?co():(this.__ownerID=F,this.__altered=!1,this)},O})(ge);vi.isMap=Fe;var bn=vi.prototype;bn[Ee]=!0,bn[h]=bn.remove,bn.removeAll=bn.deleteAll,bn.setIn=Ql,bn.removeIn=bn.deleteIn=ec,bn.update=vs,bn.updateIn=an,bn.merge=bn.concat=tc,bn.mergeWith=rc,bn.mergeDeep=gi,bn.mergeDeepWith=yi,bn.mergeIn=bs,bn.mergeDeepIn=ws,bn.withMutations=jo,bn.wasAltered=Es,bn.asImmutable=el,bn["@@transducer/init"]=bn.asMutable=ac,bn["@@transducer/step"]=function(A,O){return A.set(O[0],O[1])},bn["@@transducer/result"]=function(A){return A.asImmutable()};var tl=function(O,D){this.ownerID=O,this.entries=D};tl.prototype.get=function(O,D,F,q){for(var ae=this.entries,oe=0,fe=ae.length;oe=zc)return(function(_n,ya,Fa,ai){_n||(_n=new g);for(var Tn=new Ma(_n,kr(Fa),[Fa,ai]),Hn=0;Hn>>O)&f),oe=this.bitmap;return oe&ae?this.nodes[Gu(oe&ae-1)].get(O+5,D,F,q):q},rl.prototype.update=function(O,D,F,q,ae,oe,fe){F===void 0&&(F=kr(q));var Pe=(D===0?F:F>>>D)&f,ze=1<=rh)return(function(Tn,Hn,na,aa,Bn){for(var Ga=0,Ya=new Array(v),po=0;na!==0;po++,na>>>=1)Ya[po]=1&na?Hn[Ga++]:void 0;return Ya[aa]=Bn,new bi(Tn,Ga+1,Ya)})(O,lr,tt,Pe,Ar);if(At&&!Ar&&lr.length===2&&Uc(lr[1^Rt]))return lr[1^Rt];if(At&&Ar&&lr.length===1&&Uc(Ar))return Ar;var _n=O&&O===this.ownerID,ya=At?Ar?tt:tt^ze:tt|ze,Fa=At?Ar?ic(lr,Rt,Ar,_n):(function(Tn,Hn,na){var aa=Tn.length-1;if(na&&Hn===aa)return Tn.pop(),Tn;for(var Bn=new Array(aa),Ga=0,Ya=0;Ya>>O)&f,oe=this.nodes[ae];return oe?oe.get(O+5,D,F,q):q},bi.prototype.update=function(O,D,F,q,ae,oe,fe){F===void 0&&(F=kr(q));var Pe=(D===0?F:F>>>D)&f,ze=ae===y,tt=this.nodes,At=tt[Pe];if(ze&&!At)return this;var Rt=wi(At,O,D+5,F,q,ae,oe,fe);if(Rt===At)return this;var lr=this.count;if(At){if(!Rt&&--lr=Yu&&(q=this._buildIndex()),q!==void 0){var ae=q[Ea(O)];if(ae!==void 0)for(var oe=0;oe>>D)&f,fe=(D===0?F:F>>>D)&f,Pe=oe===fe?[al(A,O,D+5,F,q)]:(ae=new Ma(O,F,q),oe>1&1431655765))+(A>>2&858993459))+(A>>4)&252645135,A+=A>>8,127&(A+=A>>16)}function ic(A,O,D,F){var q=F?A:Yt(A);return q[O]=D,q}var zc=8,rh=16,uo=8,Yu=16,Vc="@@__IMMUTABLE_LIST__@@";function Bi(A){return!!(A&&A[Vc])}var Wo=(function(A){function O(D){var F=Ss();if(D==null)return F;if(Bi(D))return D;var q=A(D),ae=q.size;return ae===0?F:(mr(ae),ae>0&&ae=0&&F=oe.size||fe<0)return oe.withMutations((function(Rt){fe<0?ri(Rt,fe).set(0,Pe):ri(Rt,0,fe+1).set(fe,Pe)}));fe+=oe._origin;var ze=oe._tail,tt=oe._root,At={value:!1};return fe>=sl(oe._capacity)?ze=Qu(ze,oe.__ownerID,0,fe,Pe,At):tt=Qu(tt,oe.__ownerID,oe._level,fe,Pe,At),At.value?oe.__ownerID?(oe._root=tt,oe._tail=ze,oe.__hash=void 0,oe.__altered=!0,oe):ol(oe._origin,oe._capacity,oe._level,tt,ze):oe})(this,F,q)},O.prototype.remove=function(F){return this.has(F)?F===0?this.shift():F===this.size-1?this.pop():this.splice(F,1):this},O.prototype.insert=function(F,q){return this.splice(F,0,q)},O.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Ss()},O.prototype.push=function(){var F=arguments,q=this.size;return this.withMutations((function(ae){ri(ae,0,q+F.length);for(var oe=0;oe>>D&f;if(q>=this.array.length)return new Ha([],O);var ae,oe=q===0;if(D>0){var fe=this.array[q];if((ae=fe&&fe.removeBefore(O,D-5,F))===fe&&oe)return this}if(oe&&!ae)return this;var Pe=il(this,O);if(!oe)for(var ze=0;ze>>D&f;if(ae>=this.array.length)return this;if(D>0){var oe=this.array[ae];if((q=oe&&oe.removeAfter(O,D-5,F))===oe&&ae===this.array.length-1)return this}var fe=il(this,O);return fe.array.splice(ae+1),q&&(fe.array[ae]=q),fe};var nh,Ei={};function Xu(A,O){var D=A._origin,F=A._capacity,q=sl(F),ae=A._tail;return oe(A._root,A._level,0);function oe(fe,Pe,ze){return Pe===0?(function(At,Rt){var lr=Rt===q?ae&&ae.array:At&&At.array,vr=Rt>D?0:D-Rt,Ar=F-Rt;return Ar>v&&(Ar=v),function(){if(vr===Ar)return Ei;var _n=O?--Ar:vr++;return lr&&lr[_n]}})(fe,ze):(function(At,Rt,lr){var vr,Ar=At&&At.array,_n=lr>D?0:D-lr>>Rt,ya=1+(F-lr>>Rt);return ya>v&&(ya=v),function(){for(;;){if(vr){var Fa=vr();if(Fa!==Ei)return Fa;vr=null}if(_n===ya)return Ei;var ai=O?--ya:_n++;vr=oe(Ar&&Ar[ai],Rt-5,lr+(ai<>>D&f,Pe=A&&fe0){var ze=A&&A.array[fe],tt=Qu(ze,O,D-5,F,q,ae);return tt===ze?A:((oe=il(A,O)).array[fe]=tt,oe)}return Pe&&A.array[fe]===q?A:(ae&&m(ae),oe=il(A,O),q===void 0&&fe===oe.array.length-1?oe.array.pop():oe.array[fe]=q,oe)}function il(A,O){return O&&A&&O===A.ownerID?A:new Ha(A?A.array.slice():[],O)}function ah(A,O){if(O>=sl(A._capacity))return A._tail;if(O<1<0;)D=D.array[O>>>F&f],F-=5;return D}}function ri(A,O,D){(function(Tn,Hn,na){var aa=Tn._origin+(Hn===void 0?0:Hn),Bn=na===void 0?Tn._capacity:na<0?Tn._capacity+na:Tn._origin+na;if(Number.isFinite(Bn)&&Bn>sc||Number.isFinite(aa)&&aa<-sc||Number.isFinite(Bn)&&Number.isFinite(aa)&&Bn-aa>sc)throw new RangeError("Invalid List size: a List cannot hold more than "+sc+" (2 ** 30) values.")})(A,O,D),O!==void 0&&(O|=0),D!==void 0&&(D|=0);var F=A.__ownerID||new g,q=A._origin,ae=A._capacity,oe=q+O,fe=D===void 0?ae:D<0?ae+D:q+D;if(oe===q&&fe===ae)return A;if(oe>=fe)return A.clear();for(var Pe=A._level,ze=A._root,tt=0;oe+tt<0;)ze=new Ha(ze&&ze.array.length?[void 0,ze]:[],F),tt+=Jc(Pe+=5);tt&&(oe+=tt,q+=tt,fe+=tt,ae+=tt);for(var At=sl(ae),Rt=sl(fe);Rt>=Jc(Pe+5);)ze=new Ha(ze&&ze.array.length?[ze]:[],F),Pe+=5;var lr=A._tail,vr=RtAt?new Ha([],F):lr;if(lr&&Rt>At&&oe5;_n-=5){var ya=At>>>_n&f;Ar=Ar.array[ya]=il(Ar.array[ya],F)}Ar.array[At>>>5&f]=lr}if(fe=Rt)oe-=Rt,fe-=Rt,Pe=5,ze=null,vr=vr&&vr.removeBefore(F,0,oe);else if(oe>q||Rt>>Pe&f;if(Fa!==Rt>>>Pe&f)break;Fa&&(tt+=(1<q&&(ze=ze.removeBefore(F,Pe,oe-tt)),ze&&Rt>>5<<5}var sc=Math.pow(2,30);function Jc(A){return A<31?1<=v&&oe.size>=2*ae.size?(F=(q=oe.filter((function(ze,tt){return ze!==void 0&&fe!==tt}))).toKeyedSeq().map((function(ze){return ze[0]})).flip().toMap(),A.__ownerID&&(F.__ownerID=q.__ownerID=A.__ownerID)):(F=ae.remove(O),q=fe===oe.size-1?oe.pop():oe.set(fe,void 0))}else if(Pe){if(D===oe.get(fe)[1])return A;F=ae,q=oe.set(fe,[O,D])}else F=ae.set(O,oe.size),q=oe.set(oe.size,[O,D]);return A.__ownerID?(A.size=F.size,A._map=F,A._list=q,A.__hash=void 0,A.__altered=!0,A):Wc(F,q)}Ra.isOrderedMap=St,Ra.prototype[u]=!0,Ra.prototype[h]=Ra.prototype.remove;var ep="@@__IMMUTABLE_STACK__@@";function cl(A){return!!(A&&A[ep])}var ul=(function(A){function O(D){return D==null?Si():cl(D)?D:Si().pushAll(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return this(arguments)},O.prototype.toString=function(){return this.__toString("Stack [","]")},O.prototype.get=function(F,q){var ae=this._head;for(F=_(this,F);ae&&F--;)ae=ae.next;return ae?ae.value:q},O.prototype.peek=function(){return this._head&&this._head.value},O.prototype.push=function(){var F=arguments;if(arguments.length===0)return this;for(var q=this.size+arguments.length,ae=this._head,oe=arguments.length-1;oe>=0;oe--)ae={value:F[oe],next:ae};return this.__ownerID?(this.size=q,this._head=ae,this.__hash=void 0,this.__altered=!0,this):qi(q,ae)},O.prototype.pushAll=function(F){if((F=A(F)).size===0)return this;if(this.size===0&&cl(F))return F;mr(F.size);var q=this.size,ae=this._head;return F.__iterate((function(oe){q++,ae={value:oe,next:ae}}),!0),this.__ownerID?(this.size=q,this._head=ae,this.__hash=void 0,this.__altered=!0,this):qi(q,ae)},O.prototype.pop=function(){return this.slice(1)},O.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Si()},O.prototype.slice=function(F,q){if(I(F,q,this.size))return this;var ae=j(F,this.size);if(M(q,this.size)!==this.size)return A.prototype.slice.call(this,F,q);for(var oe=this.size-ae,fe=this._head;ae--;)fe=fe.next;return this.__ownerID?(this.size=oe,this._head=fe,this.__hash=void 0,this.__altered=!0,this):qi(oe,fe)},O.prototype.__ensureOwner=function(F){return F===this.__ownerID?this:F?qi(this.size,this._head,F,this.__hash):this.size===0?Si():(this.__ownerID=F,this.__altered=!1,this)},O.prototype.__iterate=function(F,q){var ae=this;if(q)return new kt(this.toArray()).__iterate((function(Pe,ze){return F(Pe,ze,ae)}),q);for(var oe=0,fe=this._head;fe&&F(fe.value,oe++,this)!==!1;)fe=fe.next;return oe},O.prototype.__iterator=function(F,q){if(q)return new kt(this.toArray()).__iterator(F,q);var ae=0,oe=this._head;return new Ke((function(){if(oe){var fe=oe.value;return oe=oe.next,ft(F,ae++,fe)}return{value:void 0,done:!0}}))},O})(ke);ul.isStack=cl;var tp,xa=ul.prototype;function qi(A,O,D,F){var q=Object.create(xa);return q.size=A,q._head=O,q.__ownerID=D,q.__hash=F,q.__altered=!1,q}function Si(){return tp||(tp=qi(0))}xa[ep]=!0,xa.shift=xa.pop,xa.unshift=xa.push,xa.unshiftAll=xa.pushAll,xa.withMutations=jo,xa.wasAltered=Es,xa.asImmutable=el,xa["@@transducer/init"]=xa.asMutable=ac,xa["@@transducer/step"]=function(A,O){return A.unshift(O)},xa["@@transducer/result"]=function(A){return A.asImmutable()};var rp="@@__IMMUTABLE_SET__@@";function Ui(A){return!!(A&&A[rp])}function pl(A){return Ui(A)&&at(A)}function hl(A,O){if(A===O)return!0;if(!B(O)||A.size!==void 0&&O.size!==void 0&&A.size!==O.size||A.__hash!==void 0&&O.__hash!==void 0&&A.__hash!==O.__hash||te(A)!==te(O)||se(A)!==se(O)||at(A)!==at(O))return!1;if(A.size===0&&O.size===0)return!0;var D=!Te(A);if(at(A)){var F=A.entries();return O.every((function(Pe,ze){var tt=F.next().value;return tt&&Qe(tt[1],Pe)&&(D||Qe(tt[0],ze))}))&&F.next().done}var q=!1;if(A.size===void 0)if(O.size===void 0)typeof A.cacheResult=="function"&&A.cacheResult();else{q=!0;var ae=A;A=O,O=ae}var oe=!0,fe=O.__iterate((function(Pe,ze){if(D?!A.has(Pe):q?!Qe(Pe,A.get(ze,y)):!Qe(A.get(ze,y),Pe))return oe=!1,!1}));return oe&&A.size===fe}function xi(A,O){var D=function(F){A.prototype[F]=O[F]};return Object.keys(O).forEach(D),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(O).forEach(D),A}function xs(A){if(!A||typeof A!="object")return A;if(!B(A)){if(!Sa(A))return A;A=ar(A)}if(te(A)){var O={};return A.__iterate((function(F,q){Yl(q)||(O[q]=xs(F))})),O}var D=[];return A.__iterate((function(F){D.push(xs(F))})),D}var No=(function(A){function O(D){return D==null?ni():Ui(D)&&!at(D)?D:ni().withMutations((function(F){var q=A(D);mr(q.size),q.forEach((function(ae){return F.add(ae)}))}))}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return this(arguments)},O.fromKeys=function(F){return this(ge(F).keySeq())},O.intersect=function(F){return(F=he(F).toArray()).length?ra.intersect.apply(O(F.pop()),F):ni()},O.union=function(F){return(F=he(F).toArray()).length?ra.union.apply(O(F.pop()),F):ni()},O.prototype.toString=function(){return this.__toString("Set {","}")},O.prototype.has=function(F){return this._map.has(F)},O.prototype.add=function(F){return dl(this,this._map.set(F,F))},O.prototype.remove=function(F){return dl(this,this._map.remove(F))},O.prototype.clear=function(){return dl(this,this._map.clear())},O.prototype.map=function(F,q){var ae=this,oe=!1,fe=dl(this,this._map.mapEntries((function(Pe){var ze=Pe[1],tt=F.call(q,ze,ze,ae);return tt!==ze&&(oe=!0),[tt,tt]}),q));return oe?fe:this},O.prototype.union=function(){for(var F=[],q=arguments.length;q--;)F[q]=arguments[q];return(F=F.filter((function(ae){return ae.size!==0}))).length===0?this:this.size!==0||this.__ownerID||F.length!==1?this.withMutations((function(ae){for(var oe=0;oe=0&&q=0&&ae>>-15,461845907),Pe=$t(Pe<<13|Pe>>>-13,5),Pe=Pe+3864292196^fe,Pe=$t(Pe^Pe>>>16,2246822507),Pe=$t(Pe^Pe>>>13,3266489909),Pe=Pt(Pe^Pe>>>16),Pe})(D.__iterate(q?F?function(oe,fe){ae=31*ae+yl(kr(oe),kr(fe))|0}:function(oe,fe){ae=ae+yl(kr(oe),kr(fe))|0}:F?function(oe){ae=31*ae+kr(oe)|0}:function(oe){ae=ae+kr(oe)|0}),ae)})(this))}});var la=he.prototype;la[Y]=!0,la[De]=la.values,la.toJSON=la.toArray,la.__toStringMapper=Ja,la.inspect=la.toSource=function(){return this.toString()},la.chain=la.flatMap,la.contains=la.includes,xi(ge,{flip:function(){return Nr(this,fn(this))},mapEntries:function(O,D){var F=this,q=0;return Nr(this,this.toSeq().map((function(ae,oe){return O.call(D,[oe,ae],q++,F)})).fromEntrySeq())},mapKeys:function(O,D){var F=this;return Nr(this,this.toSeq().flip().map((function(q,ae){return O.call(D,q,ae,F)})).flip())}});var Vi=ge.prototype;Vi[X]=!0,Vi[De]=la.entries,Vi.toJSON=gl,Vi.__toStringMapper=function(A,O){return Ja(O)+": "+Ja(A)},xi(ke,{toKeyedSeq:function(){return new Cr(this,!1)},filter:function(O,D){return Nr(this,ia(this,O,D,!1))},findIndex:function(O,D){var F=this.findEntry(O,D);return F?F[0]:-1},indexOf:function(O){var D=this.keyOf(O);return D===void 0?-1:D},lastIndexOf:function(O){var D=this.lastKeyOf(O);return D===void 0?-1:D},reverse:function(){return Nr(this,Hr(this,!1))},slice:function(O,D){return Nr(this,za(this,O,D,!1))},splice:function(O,D){var F=arguments.length;if(D=Math.max(D||0,0),F===0||F===2&&!D)return this;O=j(O,O<0?this.count():this.size);var q=this.slice(0,O);return Nr(this,F===1?q:q.concat(Yt(arguments,2),this.slice(O+D)))},findLastIndex:function(O,D){var F=this.findLastEntry(O,D);return F?F[0]:-1},first:function(O){return this.get(0,O)},flatten:function(O){return Nr(this,ea(this,O,!1))},get:function(O,D){return(O=_(this,O))<0||this.size===1/0||this.size!==void 0&&O>this.size?D:this.find((function(F,q){return q===O}),void 0,D)},has:function(O){return(O=_(this,O))>=0&&(this.size!==void 0?this.size===1/0||OO?-1:0}function yl(A,O){return A^O+2654435769+(A<<6)+(A>>2)}Wi.has=la.includes,Wi.contains=Wi.includes,Wi.keys=Wi.values,xi(Tt,Vi),xi(Gt,Ji),xi(Sr,Wi);var Da=(function(A){function O(D){return D==null?_i():pl(D)?D:_i().withMutations((function(F){var q=Ve(D);mr(q.size),q.forEach((function(ae){return F.add(ae)}))}))}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return this(arguments)},O.fromKeys=function(F){return this(ge(F).keySeq())},O.prototype.toString=function(){return this.__toString("OrderedSet {","}")},O})(No);Da.isOrderedSet=pl;var Hi,Ho=Da.prototype;function _a(A,O){var D=Object.create(Ho);return D.size=A?A.size:0,D._map=A,D.__ownerID=O,D}function _i(){return Hi||(Hi=_a(ll()))}Ho[u]=!0,Ho.zip=Ji.zip,Ho.zipWith=Ji.zipWith,Ho.zipAll=Ji.zipAll,Ho.__empty=_i,Ho.__make=_a;var cc={LeftThenRight:-1,RightThenLeft:1},jn=function(O,D){var F;(function(fe){if(gt(fe))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Re(fe))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(fe===null||typeof fe!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")})(O);var q=function(fe){var Pe=this;if(fe instanceof q)return fe;if(!(this instanceof q))return new q(fe);if(!F){F=!0;var ze=Object.keys(O),tt=ae._indices={};ae._name=D,ae._keys=ze,ae._defaultValues=O;for(var At=0;At2?[]:void 0,{"":A})}function eu(A,O,D,F,q,ae){if(typeof D!="string"&&!Re(D)&&(ur(D)||Wt(D)||sa(D))){if(~A.indexOf(D))throw new TypeError("Cannot convert circular structure to Immutable");A.push(D),q&&F!==""&&q.push(F);var oe=O.call(ae,F,ar(D).map((function(fe,Pe){return eu(A,O,fe,Pe,q,D)})),q&&q.slice());return A.pop(),q&&q.pop(),oe}return D}function op(A,O){return se(O)?O.toList():te(O)?O.toMap():O.toSet()}var tu="4.3.9",ip=he;const sp={version:tu,Collection:he,Iterable:he,Seq:ar,Map:vi,OrderedMap:Ra,List:Wo,Stack:ul,Set:No,OrderedSet:Da,PairSorting:cc,Record:jn,Range:zi,Repeat:vl,is:Qe,fromJS:Zc,hash:kr,isImmutable:Re,isCollection:B,isKeyed:te,isIndexed:se,isAssociative:Te,isOrdered:at,isValueObject:Bt,isPlainObject:sa,isSeq:qe,isList:Bi,isMap:Fe,isOrderedMap:St,isStack:cl,isSet:Ui,isOrderedSet:pl,isRecord:gt,get:Ia,getIn:lc,has:Wa,hasIn:ml,merge:nc,mergeDeep:Ku,mergeWith:Hu,mergeDeepWith:$c,remove:gs,removeIn:Zl,set:ys,setIn:Wu,update:Ao,updateIn:lo}},56698(w){typeof Object.create=="function"?w.exports=function(s,h){h&&(s.super_=h,s.prototype=Object.create(h.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:w.exports=function(s,h){if(h){s.super_=h;var v=function(){};v.prototype=h.prototype,s.prototype=new v,s.prototype.constructor=s}}},69600(w){var N,s,h=Function.prototype.toString,v=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof v=="function"&&typeof Object.defineProperty=="function")try{N=Object.defineProperty({},"length",{get:function(){throw s}}),s={},v((function(){throw 42}),null,N)}catch(j){j!==s&&(v=null)}else v=null;var f=/^\s*class\b/,y=function(M){try{var z=h.call(M);return f.test(z)}catch{return!1}},m=function(M){try{return!y(M)&&(h.call(M),!0)}catch{return!1}},g=Object.prototype.toString,S=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),T=function(){return!1};if(typeof document=="object"){var I=document.all;g.call(I)===g.call(document.all)&&(T=function(M){if((_||!M)&&(M===void 0||typeof M=="object"))try{var z=g.call(M);return(z==="[object HTMLAllCollection]"||z==="[object HTML document.all class]"||z==="[object HTMLCollection]"||z==="[object Object]")&&M("")==null}catch{}return!1})}w.exports=v?function(M){if(T(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;try{v(M,null,N)}catch(z){if(z!==s)return!1}return!y(M)&&m(M)}:function(M){if(T(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;if(S)return m(M);if(y(M))return!1;var z=g.call(M);return!(z!=="[object Function]"&&z!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(z))&&m(M)}},35680(w,N,s){var h=s(25767);w.exports=function(f){return!!h(f)}},64634(w){var N={}.toString;w.exports=Array.isArray||function(s){return N.call(s)=="[object Array]"}},5419(w){w.exports=function(N,s,h,v){var f=new Blob(v!==void 0?[v,N]:[N],{type:h||"application/octet-stream"});if(window.navigator.msSaveBlob!==void 0)window.navigator.msSaveBlob(f,s);else{var y=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(f):window.webkitURL.createObjectURL(f),m=document.createElement("a");m.style.display="none",m.href=y,m.setAttribute("download",s),m.download===void 0&&m.setAttribute("target","_blank"),document.body.appendChild(m),m.click(),setTimeout((function(){document.body.removeChild(m),window.URL.revokeObjectURL(y)}),200)}}},20181(w,N,s){var h=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,y=/^0o[0-7]+$/i,m=parseInt,g=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g,S=typeof self=="object"&&self&&self.Object===Object&&self,_=g||S||Function("return this")(),T=Object.prototype.toString,I=Math.max,j=Math.min,M=function(){return _.Date.now()};function z(Y){var B=typeof Y;return!!Y&&(B=="object"||B=="function")}function K(Y){if(typeof Y=="number")return Y;if((function(ie){return typeof ie=="symbol"||(function(Te){return!!Te&&typeof Te=="object"})(ie)&&T.call(ie)=="[object Symbol]"})(Y))return NaN;if(z(Y)){var B=typeof Y.valueOf=="function"?Y.valueOf():Y;Y=z(B)?B+"":B}if(typeof Y!="string")return Y===0?Y:+Y;Y=Y.replace(h,"");var X=f.test(Y);return X||y.test(Y)?m(Y.slice(2),X?2:8):v.test(Y)?NaN:+Y}w.exports=function(B,X,te){var ie,se,Te,he,ge,ke,Ve=0,He=!1,qe=!1,nt=!0;if(typeof B!="function")throw new TypeError("Expected a function");function gt(Se){var De=ie,Ke=se;return ie=se=void 0,Ve=Se,he=B.apply(Ke,De)}function Re(Se){var De=Se-ke;return ke===void 0||De>=X||De<0||qe&&Se-Ve>=Te}function u(){var Se=M();if(Re(Se))return at(Se);ge=setTimeout(u,(function(Ke){var ft=X-(Ke-ke);return qe?j(ft,Te-(Ke-Ve)):ft})(Se))}function at(Se){return ge=void 0,nt&&ie?gt(Se):(ie=se=void 0,he)}function Xe(){var Se=M(),De=Re(Se);if(ie=arguments,se=this,ke=Se,De){if(ge===void 0)return(function(ft){return Ve=ft,ge=setTimeout(u,X),He?gt(ft):he})(ke);if(qe)return ge=setTimeout(u,X),gt(ke)}return ge===void 0&&(ge=setTimeout(u,X)),he}return X=K(X)||0,z(te)&&(He=!!te.leading,Te=(qe="maxWait"in te)?I(K(te.maxWait)||0,X):Te,nt="trailing"in te?!!te.trailing:nt),Xe.cancel=function(){ge!==void 0&&clearTimeout(ge),Ve=0,ie=ke=se=ge=void 0},Xe.flush=function(){return ge===void 0?he:at(M())},Xe}},55580(w,N,s){var h=s(56110)(s(9325),"DataView");w.exports=h},21549(w,N,s){var h=s(22032),v=s(63862),f=s(66721),y=s(12749),m=s(35749);function g(S){var _=-1,T=S==null?0:S.length;for(this.clear();++_-1}},70695(w,N,s){var h=s(78096),v=s(72428),f=s(56449),y=s(3656),m=s(30361),g=s(37167),S=Object.prototype.hasOwnProperty;w.exports=function(T,I){var j=f(T),M=!j&&v(T),z=!j&&!M&&y(T),K=!j&&!M&&!z&&g(T),Y=j||M||z||K,B=Y?h(T.length,String):[],X=B.length;for(var te in T)!I&&!S.call(T,te)||Y&&(te=="length"||z&&(te=="offset"||te=="parent")||K&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||m(te,X))||B.push(te);return B}},34932(w){w.exports=function(s,h){for(var v=-1,f=s==null?0:s.length,y=Array(f);++v0&&g(j)?m>1?f(j,m-1,g,S,_):h(_,j):S||(_[_.length]=j)}return _}},86649(w,N,s){var h=s(83221)();w.exports=h},30641(w,N,s){var h=s(86649),v=s(95950);w.exports=function(y,m){return y&&h(y,m,v)}},47422(w,N,s){var h=s(31769),v=s(77797);w.exports=function(y,m){for(var g=0,S=(m=h(m,y)).length;y!=null&&gy?0:y+h),(v=v>y?y:v)<0&&(v+=y),y=h>v?0:v-h>>>0,h>>>=0;for(var m=Array(y);++f=g?f:h(f,y,m)}},49653(w,N,s){var h=s(37828);w.exports=function(f){var y=new f.constructor(f.byteLength);return new h(y).set(new h(f)),y}},93290(w,N,s){w=s.nmd(w);var h=s(9325),v=N&&!N.nodeType&&N,f=v&&w&&!w.nodeType&&w,y=f&&f.exports===v?h.Buffer:void 0,m=y?y.allocUnsafe:void 0;w.exports=function(S,_){if(_)return S.slice();var T=S.length,I=m?m(T):new S.constructor(T);return S.copy(I),I}},76169(w,N,s){var h=s(49653);w.exports=function(f,y){var m=y?h(f.buffer):f.buffer;return new f.constructor(m,f.byteOffset,f.byteLength)}},73201(w){var N=/\w*$/;w.exports=function(h){var v=new h.constructor(h.source,N.exec(h));return v.lastIndex=h.lastIndex,v}},93736(w,N,s){var h=s(51873),v=h?h.prototype:void 0,f=v?v.valueOf:void 0;w.exports=function(m){return f?Object(f.call(m)):{}}},71961(w,N,s){var h=s(49653);w.exports=function(f,y){var m=y?h(f.buffer):f.buffer;return new f.constructor(m,f.byteOffset,f.length)}},91596(w){var N=Math.max;w.exports=function(h,v,f,y){for(var m=-1,g=h.length,S=f.length,_=-1,T=v.length,I=N(g-S,0),j=Array(T+I),M=!y;++_1?g[_-1]:void 0,I=_>2?g[2]:void 0;for(T=y.length>3&&typeof T=="function"?(_--,T):void 0,I&&v(g[0],g[1],I)&&(T=_<3?void 0:T,_=1),m=Object(m);++S<_;){var j=g[S];j&&y(m,j,S,T)}return m}))}},38329(w,N,s){var h=s(64894);w.exports=function(f,y){return function(m,g){if(m==null)return m;if(!h(m))return f(m,g);for(var S=m.length,_=y?S:-1,T=Object(m);(y?_--:++_-1?T[I?g[j]:j]:void 0}}},37471(w,N,s){var h=s(91596),v=s(53320),f=s(58523),y=s(82819),m=s(18073),g=s(11287),S=s(68294),_=s(36306),T=s(9325);w.exports=function I(j,M,z,K,Y,B,X,te,ie,se){var Te=128&M,he=1&M,ge=2&M,ke=24&M,Ve=512&M,He=ge?void 0:y(j);return function qe(){for(var nt=arguments.length,gt=Array(nt),Re=nt;Re--;)gt[Re]=arguments[Re];if(ke)var u=g(qe),at=f(gt,u);if(K&&(gt=h(gt,K,Y,ke)),B&&(gt=v(gt,B,X,ke)),nt-=at,ke&&nt1&>.reverse(),Te&&ieM))return!1;var K=I.get(m),Y=I.get(g);if(K&&Y)return K==g&&Y==m;var B=-1,X=!0,te=2&S?new h:void 0;for(I.set(m,g),I.set(g,m);++B1?"& ":"")+v[y],v=v.join(f>2?", ":" "),h.replace(N,`{ +/* [wrapped with `+v+`] */ +`)}},45891(w,N,s){var h=s(51873),v=s(72428),f=s(56449),y=h?h.isConcatSpreadable:void 0;w.exports=function(g){return f(g)||v(g)||!!(y&&g&&g[y])}},30361(w){var N=/^(?:0|[1-9]\d*)$/;w.exports=function(h,v){var f=typeof h;return!!(v=v??9007199254740991)&&(f=="number"||f!="symbol"&&N.test(h))&&h>-1&&h%1==0&&h-1}},31175(w,N,s){var h=s(26025);w.exports=function(f,y){var m=this.__data__,g=h(m,f);return g<0?(++this.size,m.push([f,y])):m[g][1]=y,this}},63040(w,N,s){var h=s(21549),v=s(80079),f=s(68223);w.exports=function(){this.size=0,this.__data__={hash:new h,map:new(f||v),string:new h}}},17670(w,N,s){var h=s(12651);w.exports=function(f){var y=h(this,f).delete(f);return this.size-=y?1:0,y}},90289(w,N,s){var h=s(12651);w.exports=function(f){return h(this,f).get(f)}},4509(w,N,s){var h=s(12651);w.exports=function(f){return h(this,f).has(f)}},72949(w,N,s){var h=s(12651);w.exports=function(f,y){var m=h(this,f),g=m.size;return m.set(f,y),this.size+=m.size==g?0:1,this}},20317(w){w.exports=function(s){var h=-1,v=Array(s.size);return s.forEach((function(f,y){v[++h]=[y,f]})),v}},67197(w){w.exports=function(s,h){return function(v){return v!=null&&v[s]===h&&(h!==void 0||s in Object(v))}}},62224(w,N,s){var h=s(50104);w.exports=function(f){var y=h(f,(function(g){return m.size===500&&m.clear(),g})),m=y.cache;return y}},3209(w,N,s){var h=s(91596),v=s(53320),f=s(36306),y="__lodash_placeholder__",m=128,g=Math.min;w.exports=function(_,T){var I=_[1],j=T[1],M=I|j,z=M<131,K=j==m&&I==8||j==m&&I==256&&_[7].length<=T[8]||j==384&&T[7].length<=T[8]&&I==8;if(!z&&!K)return _;1&j&&(_[2]=T[2],M|=1&I?0:4);var Y=T[3];if(Y){var B=_[3];_[3]=B?h(B,Y,T[4]):Y,_[4]=B?f(_[3],y):T[4]}return(Y=T[5])&&(B=_[5],_[5]=B?v(B,Y,T[6]):Y,_[6]=B?f(_[5],y):T[6]),(Y=T[7])&&(_[7]=Y),j&m&&(_[8]=_[8]==null?T[8]:g(_[8],T[8])),_[9]==null&&(_[9]=T[9]),_[0]=T[0],_[1]=M,_}},48152(w,N,s){var h=s(28303),v=h&&new h;w.exports=v},81042(w,N,s){var h=s(56110)(Object,"create");w.exports=h},3650(w,N,s){var h=s(74335)(Object.keys,Object);w.exports=h},90181(w){w.exports=function(s){var h=[];if(s!=null)for(var v in Object(s))h.push(v);return h}},86009(w,N,s){w=s.nmd(w);var h=s(34840),v=N&&!N.nodeType&&N,f=v&&w&&!w.nodeType&&w,y=f&&f.exports===v&&h.process,m=(function(){try{var g=f&&f.require&&f.require("util").types;return g||y&&y.binding&&y.binding("util")}catch{}})();w.exports=m},59350(w){var N=Object.prototype.toString;w.exports=function(h){return N.call(h)}},74335(w){w.exports=function(s,h){return function(v){return s(h(v))}}},56757(w,N,s){var h=s(91033),v=Math.max;w.exports=function(y,m,g){return m=v(m===void 0?y.length-1:m,0),function(){for(var S=arguments,_=-1,T=v(S.length-m,0),I=Array(T);++_0){if(++v>=800)return arguments[0]}else v=0;return h.apply(void 0,arguments)}}},51420(w,N,s){var h=s(80079);w.exports=function(){this.__data__=new h,this.size=0}},90938(w){w.exports=function(s){var h=this.__data__,v=h.delete(s);return this.size=h.size,v}},63605(w){w.exports=function(s){return this.__data__.get(s)}},29817(w){w.exports=function(s){return this.__data__.has(s)}},80945(w,N,s){var h=s(80079),v=s(68223),f=s(53661);w.exports=function(m,g){var S=this.__data__;if(S instanceof h){var _=S.__data__;if(!v||_.length<199)return _.push([m,g]),this.size=++S.size,this;S=this.__data__=new f(_)}return S.set(m,g),this.size=S.size,this}},76959(w){w.exports=function(s,h,v){for(var f=v-1,y=s.length;++f=_||He<0||te&&Ve-B>=M}function he(){var Ve=v();if(Te(Ve))return ge(Ve);K=setTimeout(he,(function(qe){var nt=_-(qe-Y);return te?m(nt,M-(qe-B)):nt})(Ve))}function ge(Ve){return K=void 0,ie&&I?se(Ve):(I=j=void 0,z)}function ke(){var Ve=v(),He=Te(Ve);if(I=arguments,j=this,Y=Ve,He){if(K===void 0)return(function(nt){return B=nt,K=setTimeout(he,_),X?se(nt):z})(Y);if(te)return clearTimeout(K),K=setTimeout(he,_),se(Y)}return K===void 0&&(K=setTimeout(he,_)),z}return _=f(_)||0,h(T)&&(X=!!T.leading,M=(te="maxWait"in T)?y(f(T.maxWait)||0,_):M,ie="trailing"in T?!!T.trailing:ie),ke.cancel=function(){K!==void 0&&clearTimeout(K),B=0,I=Y=j=K=void 0},ke.flush=function(){return K===void 0?z:ge(v())},ke}},50828(w,N,s){var h=s(24647),v=s(13222),f=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,y=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");w.exports=function(g){return(g=v(g))&&g.replace(f,h).replace(y,"")}},75288(w){w.exports=function(s,h){return s===h||s!=s&&h!=h}},60680(w,N,s){var h=s(13222),v=/[\\^$.*+?()[\]{}|]/g,f=RegExp(v.source);w.exports=function(m){return(m=h(m))&&f.test(m)?m.replace(v,"\\$&"):m}},7309(w,N,s){var h=s(62006)(s(24713));w.exports=h},24713(w,N,s){var h=s(2523),v=s(15389),f=s(61489),y=Math.max;w.exports=function(g,S,_){var T=g==null?0:g.length;if(!T)return-1;var I=_==null?0:f(_);return I<0&&(I=y(T+I,0)),h(g,v(S,3),I)}},35970(w,N,s){var h=s(83120);w.exports=function(f){return f!=null&&f.length?h(f,1):[]}},73424(w,N,s){var h=s(16962),v=s(2874),f=Array.prototype.push;function y(S,_){return _==2?function(T,I){return S(T,I)}:function(T){return S(T)}}function m(S){for(var _=S?S.length:0,T=Array(_);_--;)T[_]=S[_];return T}function g(S,_){return function(){var T=arguments.length;if(T){for(var I=Array(T);T--;)I[T]=arguments[T];var j=I[0]=_.apply(void 0,I);return S.apply(void 0,I),j}}}w.exports=function S(_,T,I,j){var M=typeof T=="function",z=T===Object(T);if(z&&(j=I,I=T,T=void 0),I==null)throw new TypeError;j||(j={});var K=!("cap"in j)||j.cap,Y=!("curry"in j)||j.curry,B=!("fixed"in j)||j.fixed,X=!("immutable"in j)||j.immutable,te=!("rearg"in j)||j.rearg,ie=M?I:v,se="curry"in j&&j.curry,Te="fixed"in j&&j.fixed,he="rearg"in j&&j.rearg,ge=M?I.runInContext():void 0,ke=M?I:{ary:_.ary,assign:_.assign,clone:_.clone,curry:_.curry,forEach:_.forEach,isArray:_.isArray,isError:_.isError,isFunction:_.isFunction,isWeakMap:_.isWeakMap,iteratee:_.iteratee,keys:_.keys,rearg:_.rearg,toInteger:_.toInteger,toPath:_.toPath},Ve=ke.ary,He=ke.assign,qe=ke.clone,nt=ke.curry,gt=ke.forEach,Re=ke.isArray,u=ke.isError,at=ke.isFunction,Xe=ke.isWeakMap,Se=ke.keys,De=ke.rearg,Ke=ke.toInteger,ft=ke.toPath,Nt=Se(h.aryMethod),Wt={castArray:function(kt){return function(){var yt=arguments[0];return Re(yt)?kt(m(yt)):kt.apply(void 0,arguments)}},iteratee:function(kt){return function(){var yt=arguments[1],Zt=kt(arguments[0],yt),pe=Zt.length;return K&&typeof yt=="number"?(yt=yt>2?yt-2:1,pe&&pe<=yt?Zt:y(Zt,yt)):Zt}},mixin:function(kt){return function(yt){var Zt=this;if(!at(Zt))return kt(Zt,Object(yt));var pe=[];return gt(Se(yt),(function(U){at(yt[U])&&pe.push([U,Zt.prototype[U]])})),kt(Zt,Object(yt)),gt(pe,(function(U){var Z=U[1];at(Z)?Zt.prototype[U[0]]=Z:delete Zt.prototype[U[0]]})),Zt}},nthArg:function(kt){return function(yt){var Zt=yt<0?1:Ke(yt)+1;return nt(kt(yt),Zt)}},rearg:function(kt){return function(yt,Zt){var pe=Zt?Zt.length:0;return nt(kt(yt,Zt),pe)}},runInContext:function(kt){return function(yt){return S(_,kt(yt),j)}}};function H(kt,yt){if(K){var Zt=h.iterateeRearg[kt];if(Zt)return(function(Z,ne){return ar(Z,(function(ye){var Ee=ne.length;return(function(St,Bt){return Bt==2?function(Qe,$t){return St.apply(void 0,arguments)}:function(Qe){return St.apply(void 0,arguments)}})(De(y(ye,Ee),ne),Ee)}))})(yt,Zt);var pe=!M&&h.iterateeAry[kt];if(pe)return(function(Z,ne){return ar(Z,(function(ye){return typeof ye=="function"?y(ye,ne):ye}))})(yt,pe)}return yt}function we(kt,yt,Zt){if(B&&(Te||!h.skipFixed[kt])){var pe=h.methodSpread[kt],U=pe&&pe.start;return U===void 0?Ve(yt,Zt):(function(ne,ye){return function(){for(var Ee=arguments.length,Fe=Ee-1,St=Array(Ee);Ee--;)St[Ee]=arguments[Ee];var Bt=St[ye],Qe=St.slice(0,ye);return Bt&&f.apply(Qe,Bt),ye!=Fe&&f.apply(Qe,St.slice(ye+1)),ne.apply(this,Qe)}})(yt,U)}return yt}function ct(kt,yt,Zt){return te&&Zt>1&&(he||!h.skipRearg[kt])?De(yt,h.methodRearg[kt]||h.aryRearg[Zt]):yt}function mt(kt,yt){for(var Zt=-1,pe=(yt=ft(yt)).length,U=pe-1,Z=qe(Object(kt)),ne=Z;ne!=null&&++Zt1?nt($t,Pt):$t})(0,pe=H(U,pe),ye),!1}})),!pe})),pe||(pe=Z),pe==yt&&(pe=se?nt(pe,1):function(){return yt.apply(this,arguments)}),pe.convert=ur(U,yt),pe.placeholder=yt.placeholder=Zt,pe}if(!z)return Tt(T,I,ie);var Gt=I,Sr=[];return gt(Nt,(function(kt){gt(h.aryMethod[kt],(function(yt){var Zt=Gt[h.remap[yt]||yt];Zt&&Sr.push([yt,Tt(yt,Zt,Gt)])}))})),gt(Se(Gt),(function(kt){var yt=Gt[kt];if(typeof yt=="function"){for(var Zt=Sr.length;Zt--;)if(Sr[Zt][0]==kt)return;yt.convert=ur(kt,yt),Sr.push([kt,yt])}})),gt(Sr,(function(kt){Gt[kt[0]]=kt[1]})),Gt.convert=function(yt){return Gt.runInContext.convert(yt)(void 0)},Gt.placeholder=Gt,gt(Se(Gt),(function(kt){gt(h.realToAlias[kt]||[],(function(yt){Gt[yt]=Gt[kt]}))})),Gt}},16962(w,N){N.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},N.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},N.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},N.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},N.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},N.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},N.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},N.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},N.realToAlias=(function(){var s=Object.prototype.hasOwnProperty,h=N.aliasToReal,v={};for(var f in h){var y=h[f];s.call(v,y)?v[y].push(f):v[y]=[f]}return v})(),N.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},N.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},N.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},47934(w,N,s){w.exports={ary:s(64626),assign:s(74733),clone:s(32629),curry:s(49747),forEach:s(83729),isArray:s(56449),isError:s(23546),isFunction:s(1882),isWeakMap:s(47886),iteratee:s(33855),keys:s(88984),rearg:s(84195),toInteger:s(61489),toPath:s(42072)}},56367(w,N,s){w.exports=s(77731)},79920(w,N,s){var h=s(73424),v=s(47934);w.exports=function(y,m,g){return h(v,y,m,g)}},2874(w){w.exports={}},77731(w,N,s){var h=s(79920)("set",s(63560));h.placeholder=s(2874),w.exports=h},58156(w,N,s){var h=s(47422);w.exports=function(f,y,m){var g=f==null?void 0:h(f,y);return g===void 0?m:g}},61448(w,N,s){var h=s(20426),v=s(49326);w.exports=function(y,m){return y!=null&&v(y,m,h)}},80631(w,N,s){var h=s(28077),v=s(49326);w.exports=function(y,m){return y!=null&&v(y,m,h)}},83488(w){w.exports=function(s){return s}},72428(w,N,s){var h=s(27534),v=s(40346),f=Object.prototype,y=f.hasOwnProperty,m=f.propertyIsEnumerable,g=h((function(){return arguments})())?h:function(S){return v(S)&&y.call(S,"callee")&&!m.call(S,"callee")};w.exports=g},56449(w){var N=Array.isArray;w.exports=N},64894(w,N,s){var h=s(1882),v=s(30294);w.exports=function(y){return y!=null&&v(y.length)&&!h(y)}},83693(w,N,s){var h=s(64894),v=s(40346);w.exports=function(y){return v(y)&&h(y)}},53812(w,N,s){var h=s(72552),v=s(40346);w.exports=function(y){return y===!0||y===!1||v(y)&&h(y)=="[object Boolean]"}},3656(w,N,s){w=s.nmd(w);var h=s(9325),v=s(89935),f=N&&!N.nodeType&&N,y=f&&w&&!w.nodeType&&w,m=y&&y.exports===f?h.Buffer:void 0,g=(m?m.isBuffer:void 0)||v;w.exports=g},62193(w,N,s){var h=s(88984),v=s(5861),f=s(72428),y=s(56449),m=s(64894),g=s(3656),S=s(55527),_=s(37167),T=Object.prototype.hasOwnProperty;w.exports=function(j){if(j==null)return!0;if(m(j)&&(y(j)||typeof j=="string"||typeof j.splice=="function"||g(j)||_(j)||f(j)))return!j.length;var M=v(j);if(M=="[object Map]"||M=="[object Set]")return!j.size;if(S(j))return!h(j).length;for(var z in j)if(T.call(j,z))return!1;return!0}},2404(w,N,s){var h=s(60270);w.exports=function(f,y){return h(f,y)}},23546(w,N,s){var h=s(72552),v=s(40346),f=s(11331);w.exports=function(m){if(!v(m))return!1;var g=h(m);return g=="[object Error]"||g=="[object DOMException]"||typeof m.message=="string"&&typeof m.name=="string"&&!f(m)}},1882(w,N,s){var h=s(72552),v=s(23805);w.exports=function(y){if(!v(y))return!1;var m=h(y);return m=="[object Function]"||m=="[object GeneratorFunction]"||m=="[object AsyncFunction]"||m=="[object Proxy]"}},30294(w){w.exports=function(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=9007199254740991}},87730(w,N,s){var h=s(29172),v=s(27301),f=s(86009),y=f&&f.isMap,m=y?v(y):h;w.exports=m},5187(w){w.exports=function(s){return s===null}},98023(w,N,s){var h=s(72552),v=s(40346);w.exports=function(y){return typeof y=="number"||v(y)&&h(y)=="[object Number]"}},23805(w){w.exports=function(s){var h=typeof s;return s!=null&&(h=="object"||h=="function")}},40346(w){w.exports=function(s){return s!=null&&typeof s=="object"}},11331(w,N,s){var h=s(72552),v=s(28879),f=s(40346),y=Function.prototype,m=Object.prototype,g=y.toString,S=m.hasOwnProperty,_=g.call(Object);w.exports=function(I){if(!f(I)||h(I)!="[object Object]")return!1;var j=v(I);if(j===null)return!0;var M=S.call(j,"constructor")&&j.constructor;return typeof M=="function"&&M instanceof M&&g.call(M)==_}},38440(w,N,s){var h=s(16038),v=s(27301),f=s(86009),y=f&&f.isSet,m=y?v(y):h;w.exports=m},85015(w,N,s){var h=s(72552),v=s(56449),f=s(40346);w.exports=function(m){return typeof m=="string"||!v(m)&&f(m)&&h(m)=="[object String]"}},44394(w,N,s){var h=s(72552),v=s(40346);w.exports=function(y){return typeof y=="symbol"||v(y)&&h(y)=="[object Symbol]"}},37167(w,N,s){var h=s(4901),v=s(27301),f=s(86009),y=f&&f.isTypedArray,m=y?v(y):h;w.exports=m},47886(w,N,s){var h=s(5861),v=s(40346);w.exports=function(y){return v(y)&&h(y)=="[object WeakMap]"}},33855(w,N,s){var h=s(9999),v=s(15389);w.exports=function(y){return v(typeof y=="function"?y:h(y,1))}},95950(w,N,s){var h=s(70695),v=s(88984),f=s(64894);w.exports=function(m){return f(m)?h(m):v(m)}},37241(w,N,s){var h=s(70695),v=s(72903),f=s(64894);w.exports=function(m){return f(m)?h(m,!0):v(m)}},68090(w){w.exports=function(s){var h=s==null?0:s.length;return h?s[h-1]:void 0}},50104(w,N,s){var h=s(53661);function v(f,y){if(typeof f!="function"||y!=null&&typeof y!="function")throw new TypeError("Expected a function");var m=function(){var g=arguments,S=y?y.apply(this,g):g[0],_=m.cache;if(_.has(S))return _.get(S);var T=f.apply(this,g);return m.cache=_.set(S,T)||_,T};return m.cache=new(v.Cache||h),m}v.Cache=h,w.exports=v},55364(w,N,s){var h=s(85250),v=s(20999)((function(f,y,m){h(f,y,m)}));w.exports=v},6048(w){w.exports=function(s){if(typeof s!="function")throw new TypeError("Expected a function");return function(){var h=arguments;switch(h.length){case 0:return!s.call(this);case 1:return!s.call(this,h[0]);case 2:return!s.call(this,h[0],h[1]);case 3:return!s.call(this,h[0],h[1],h[2])}return!s.apply(this,h)}}},63950(w){w.exports=function(){}},10124(w,N,s){var h=s(9325);w.exports=function(){return h.Date.now()}},90179(w,N,s){var h=s(34932),v=s(9999),f=s(19931),y=s(31769),m=s(21791),g=s(53138),S=s(38816),_=s(83349),T=S((function(I,j){var M={};if(I==null)return M;var z=!1;j=h(j,(function(Y){return Y=y(Y,I),z||(z=Y.length>1),Y})),m(I,_(I),M),z&&(M=v(M,7,g));for(var K=j.length;K--;)f(M,j[K]);return M}));w.exports=T},50583(w,N,s){var h=s(47237),v=s(17255),f=s(28586),y=s(77797);w.exports=function(g){return f(g)?h(y(g)):v(g)}},84195(w,N,s){var h=s(66977),v=s(38816),f=v((function(y,m){return h(y,256,void 0,void 0,void 0,m)}));w.exports=f},40860(w,N,s){var h=s(40882),v=s(80909),f=s(15389),y=s(85558),m=s(56449);w.exports=function(S,_,T){var I=m(S)?h:y,j=arguments.length<3;return I(S,f(_,4),T,j,v)}},63560(w,N,s){var h=s(73170);w.exports=function(f,y,m){return f==null?f:h(f,y,m)}},42426(w,N,s){var h=s(14248),v=s(15389),f=s(90916),y=s(56449),m=s(36800);w.exports=function(S,_,T){var I=y(S)?h:f;return T&&m(S,_,T)&&(_=void 0),I(S,v(_,3))}},63345(w){w.exports=function(){return[]}},89935(w){w.exports=function(){return!1}},17400(w,N,s){var h=s(99374),v=1/0;w.exports=function(y){return y?(y=h(y))===v||y===-1/0?17976931348623157e292*(y<0?-1:1):y==y?y:0:y===0?y:0}},61489(w,N,s){var h=s(17400);w.exports=function(f){var y=h(f),m=y%1;return y==y?m?y-m:y:0}},80218(w,N,s){var h=s(13222);w.exports=function(f){return h(f).toLowerCase()}},99374(w,N,s){var h=s(54128),v=s(23805),f=s(44394),y=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,g=/^0o[0-7]+$/i,S=parseInt;w.exports=function(T){if(typeof T=="number")return T;if(f(T))return NaN;if(v(T)){var I=typeof T.valueOf=="function"?T.valueOf():T;T=v(I)?I+"":I}if(typeof T!="string")return T===0?T:+T;T=h(T);var j=m.test(T);return j||g.test(T)?S(T.slice(2),j?2:8):y.test(T)?NaN:+T}},42072(w,N,s){var h=s(34932),v=s(23007),f=s(56449),y=s(44394),m=s(61802),g=s(77797),S=s(13222);w.exports=function(T){return f(T)?h(T,g):y(T)?[T]:v(m(S(T)))}},69884(w,N,s){var h=s(21791),v=s(37241);w.exports=function(y){return h(y,v(y))}},13222(w,N,s){var h=s(77556);w.exports=function(f){return f==null?"":h(f)}},55808(w,N,s){var h=s(12507)("toUpperCase");w.exports=h},66645(w,N,s){var h=s(1733),v=s(45434),f=s(13222),y=s(22225);w.exports=function(g,S,_){return g=f(g),(S=_?void 0:S)===void 0?v(g)?y(g):h(g):g.match(S)||[]}},53758(w,N,s){var h=s(30980),v=s(56017),f=s(94033),y=s(56449),m=s(40346),g=s(80257),S=Object.prototype.hasOwnProperty;function _(T){if(m(T)&&!y(T)&&!(T instanceof h)){if(T instanceof v)return T;if(S.call(T,"__wrapped__"))return g(T)}return new v(T)}_.prototype=f.prototype,_.prototype.constructor=_,w.exports=_},47248(w,N,s){var h=s(16547),v=s(51234);w.exports=function(y,m){return v(y||[],m||[],h)}},43768(w,N,s){var h=s(45981),v=s(85587);N.highlight=y,N.highlightAuto=function(_,T){var I,j,M,z,K=T||{},Y=K.subset||h.listLanguages();K.prefix;var B=Y.length,X=-1;if(typeof _!="string")throw v("Expected `string` for value, got `%s`",_);for(j={relevance:0,language:null,value:[]},I={relevance:0,language:null,value:[]};++Xj.relevance&&(j=M),M.relevance>I.relevance&&(j=I,I=M));return j.language&&(I.secondBest=j),I},N.registerLanguage=function(_,T){h.registerLanguage(_,T)},N.listLanguages=function(){return h.listLanguages()},N.registerAlias=function(_,T){var I,j=_;T&&((j={})[_]=T);for(I in j)h.registerAliases(j[I],{languageName:I})},m.prototype.addText=function(_){var T,I,j=this.stack;_!==""&&(T=j[j.length-1],(I=T.children[T.children.length-1])&&I.type==="text"?I.value+=_:T.children.push({type:"text",value:_}))},m.prototype.addKeyword=function(_,T){this.openNode(T),this.addText(_),this.closeNode()},m.prototype.addSublanguage=function(_,T){var I=this.stack,j=I[I.length-1],M=_.rootNode.children,z=T?{type:"element",tagName:"span",properties:{className:[T]},children:M}:M;j.children=j.children.concat(z)},m.prototype.openNode=function(_){var T=this.stack,I=this.options.classPrefix+_,j=T[T.length-1],M={type:"element",tagName:"span",properties:{className:[I]},children:[]};j.children.push(M),T.push(M)},m.prototype.closeNode=function(){this.stack.pop()},m.prototype.closeAllNodes=g,m.prototype.finalize=g,m.prototype.toHTML=function(){return""};var f="hljs-";function y(S,_,T){var I,j=h.configure({}),M=(T||{}).prefix;if(typeof S!="string")throw v("Expected `string` for name, got `%s`",S);if(!h.getLanguage(S))throw v("Unknown language: `%s` is not registered",S);if(typeof _!="string")throw v("Expected `string` for value, got `%s`",_);if(M==null&&(M=f),h.configure({__emitter:m,classPrefix:M}),I=h.highlight(_,{language:S,ignoreIllegals:!0}),h.configure(j||{}),I.errorRaised)throw I.errorRaised;return{relevance:I.relevance,language:I.language,value:I.emitter.rootNode.children}}function m(S){this.options=S,this.rootNode={children:[]},this.stack=[this.rootNode]}function g(){}},71514(w){w.exports=Math.abs},58968(w){w.exports=Math.floor},94459(w){w.exports=Number.isNaN||function(s){return s!=s}},6188(w){w.exports=Math.max},68002(w){w.exports=Math.min},75880(w){w.exports=Math.pow},70414(w){w.exports=Math.round},73093(w,N,s){var h=s(94459);w.exports=function(f){return h(f)||f===0?f:f<0?-1:1}},92340(w,N,s){const h=s(6048);function v(y){return typeof y=="string"?m=>m.element===y:y.constructor&&y.extend?m=>m instanceof y:y}class f{constructor(m){this.elements=m||[]}toValue(){return this.elements.map((m=>m.toValue()))}map(m,g){return this.elements.map(m,g)}flatMap(m,g){return this.map(m,g).reduce(((S,_)=>S.concat(_)),[])}compactMap(m,g){const S=[];return this.forEach((_=>{const T=m.bind(g)(_);T&&S.push(T)})),S}filter(m,g){return m=v(m),new f(this.elements.filter(m,g))}reject(m,g){return m=v(m),new f(this.elements.filter(h(m),g))}find(m,g){return m=v(m),this.elements.find(m,g)}forEach(m,g){this.elements.forEach(m,g)}reduce(m,g){return this.elements.reduce(m,g)}includes(m){return this.elements.some((g=>g.equals(m)))}shift(){return this.elements.shift()}unshift(m){this.elements.unshift(this.refract(m))}push(m){return this.elements.push(this.refract(m)),this}add(m){this.push(m)}get(m){return this.elements[m]}getValue(m){const g=this.elements[m];if(g)return g.toValue()}get length(){return this.elements.length}get isEmpty(){return this.elements.length===0}get first(){return this.elements[0]}}typeof Symbol<"u"&&(f.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),w.exports=f},55973(w){class N{constructor(h,v){this.key=h,this.value=v}clone(){const h=new N;return this.key&&(h.key=this.key.clone()),this.value&&(h.value=this.value.clone()),h}}w.exports=N},3110(w,N,s){const h=s(5187),v=s(85015),f=s(98023),y=s(53812),m=s(23805),g=s(85105),S=s(86804);class _{constructor(I){this.elementMap={},this.elementDetection=[],this.Element=S.Element,this.KeyValuePair=S.KeyValuePair,I&&I.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(I){return I.namespace&&I.namespace({base:this}),I.load&&I.load({base:this}),this}useDefault(){return this.register("null",S.NullElement).register("string",S.StringElement).register("number",S.NumberElement).register("boolean",S.BooleanElement).register("array",S.ArrayElement).register("object",S.ObjectElement).register("member",S.MemberElement).register("ref",S.RefElement).register("link",S.LinkElement),this.detect(h,S.NullElement,!1).detect(v,S.StringElement,!1).detect(f,S.NumberElement,!1).detect(y,S.BooleanElement,!1).detect(Array.isArray,S.ArrayElement,!1).detect(m,S.ObjectElement,!1),this}register(I,j){return this._elements=void 0,this.elementMap[I]=j,this}unregister(I){return this._elements=void 0,delete this.elementMap[I],this}detect(I,j,M){return M===void 0||M?this.elementDetection.unshift([I,j]):this.elementDetection.push([I,j]),this}toElement(I){if(I instanceof this.Element)return I;let j;for(let M=0;M{const j=I[0].toUpperCase()+I.substr(1);this._elements[j]=this.elementMap[I]}))),this._elements}get serialiser(){return new g(this)}}g.prototype.Namespace=_,w.exports=_},10866(w,N,s){const h=s(6048),v=s(92340);class f extends v{map(m,g){return this.elements.map((S=>m.bind(g)(S.value,S.key,S)))}filter(m,g){return new f(this.elements.filter((S=>m.bind(g)(S.value,S.key,S))))}reject(m,g){return this.filter(h(m.bind(g)))}forEach(m,g){return this.elements.forEach(((S,_)=>{m.bind(g)(S.value,S.key,S,_)}))}keys(){return this.map(((m,g)=>g.toValue()))}values(){return this.map((m=>m.toValue()))}}w.exports=f},86804(w,N,s){const h=s(10316),v=s(41067),f=s(71167),y=s(40239),m=s(12242),g=s(6233),S=s(87726),_=s(61045),T=s(86303),I=s(14540),j=s(92340),M=s(10866),z=s(55973);function K(Y){return Y instanceof h?Y:typeof Y=="string"?new f(Y):typeof Y=="number"?new y(Y):typeof Y=="boolean"?new m(Y):Y===null?new v:Array.isArray(Y)?new g(Y.map(K)):typeof Y=="object"?new _(Y):Y}h.prototype.ObjectElement=_,h.prototype.RefElement=I,h.prototype.MemberElement=S,h.prototype.refract=K,j.prototype.refract=K,w.exports={Element:h,NullElement:v,StringElement:f,NumberElement:y,BooleanElement:m,ArrayElement:g,MemberElement:S,ObjectElement:_,LinkElement:T,RefElement:I,refract:K,ArraySlice:j,ObjectSlice:M,KeyValuePair:z}},86303(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f||[],y,m),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(f){this.attributes.set("relation",f)}get href(){return this.attributes.get("href")}set href(f){this.attributes.set("href",f)}}},14540(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f||[],y,m),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(f){this.attributes.set("path",f)}}},34035(w,N,s){const h=s(3110),v=s(86804);N.g$=h,N.KeyValuePair=s(55973),N.G6=v.ArraySlice,N.ot=v.ObjectSlice,N.Hg=v.Element,N.Om=v.StringElement,N.kT=v.NumberElement,N.bd=v.BooleanElement,N.Os=v.NullElement,N.wE=v.ArrayElement,N.Sh=v.ObjectElement,N.Pr=v.MemberElement,N.sI=v.RefElement,N.Ft=v.LinkElement,N.e=v.refract,s(85105),s(75147)},6233(w,N,s){const h=s(6048),v=s(10316),f=s(92340);class y extends v{constructor(g,S,_){super(g||[],S,_),this.element="array"}primitive(){return"array"}get(g){return this.content[g]}getValue(g){const S=this.get(g);if(S)return S.toValue()}getIndex(g){return this.content[g]}set(g,S){return this.content[g]=this.refract(S),this}remove(g){const S=this.content.splice(g,1);return S.length?S[0]:null}map(g,S){return this.content.map(g,S)}flatMap(g,S){return this.map(g,S).reduce(((_,T)=>_.concat(T)),[])}compactMap(g,S){const _=[];return this.forEach((T=>{const I=g.bind(S)(T);I&&_.push(I)})),_}filter(g,S){return new f(this.content.filter(g,S))}reject(g,S){return this.filter(h(g),S)}reduce(g,S){let _,T;S!==void 0?(_=0,T=this.refract(S)):(_=1,T=this.primitive()==="object"?this.first.value:this.first);for(let I=_;I{g.bind(S)(_,this.refract(T))}))}shift(){return this.content.shift()}unshift(g){this.content.unshift(this.refract(g))}push(g){return this.content.push(this.refract(g)),this}add(g){this.push(g)}findElements(g,S){const _=S||{},T=!!_.recursive,I=_.results===void 0?[]:_.results;return this.forEach(((j,M,z)=>{T&&j.findElements!==void 0&&j.findElements(g,{results:I,recursive:T}),g(j,M,z)&&I.push(j)})),I}find(g){return new f(this.findElements(g,{recursive:!0}))}findByElement(g){return this.find((S=>S.element===g))}findByClass(g){return this.find((S=>S.classes.includes(g)))}getById(g){return this.find((S=>S.id.toValue()===g)).first}includes(g){return this.content.some((S=>S.equals(g)))}contains(g){return this.includes(g)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(g){return new this.constructor(this.content.concat(g.content))}"fantasy-land/concat"(g){return this.concat(g)}"fantasy-land/map"(g){return new this.constructor(this.map(g))}"fantasy-land/chain"(g){return this.map((S=>g(S)),this).reduce(((S,_)=>S.concat(_)),this.empty())}"fantasy-land/filter"(g){return new this.constructor(this.content.filter(g))}"fantasy-land/reduce"(g,S){return this.content.reduce(g,S)}get length(){return this.content.length}get isEmpty(){return this.content.length===0}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}y.empty=function(){return new this},y["fantasy-land/empty"]=y.empty,typeof Symbol<"u"&&(y.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),w.exports=y},12242(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f,y,m),this.element="boolean"}primitive(){return"boolean"}}},10316(w,N,s){const h=s(2404),v=s(55973),f=s(92340);class y{constructor(g,S,_){S&&(this.meta=S),_&&(this.attributes=_),this.content=g}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((g=>{g.parent=this,g.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const g=new this.constructor;return g.element=this.element,this.meta.length&&(g._meta=this.meta.clone()),this.attributes.length&&(g._attributes=this.attributes.clone()),this.content?this.content.clone?g.content=this.content.clone():Array.isArray(this.content)?g.content=this.content.map((S=>S.clone())):g.content=this.content:g.content=this.content,g}toValue(){return this.content instanceof y?this.content.toValue():this.content instanceof v?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((g=>g.toValue()),this):this.content}toRef(g){if(this.id.toValue()==="")throw Error("Cannot create reference to an element that does not contain an ID");const S=new this.RefElement(this.id.toValue());return g&&(S.path=g),S}findRecursive(...g){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const S=g.pop();let _=new f;const T=(j,M)=>(j.push(M),j),I=(j,M)=>{M.element===S&&j.push(M);const z=M.findRecursive(S);return z&&z.reduce(T,j),M.content instanceof v&&(M.content.key&&I(j,M.content.key),M.content.value&&I(j,M.content.value)),j};return this.content&&(this.content.element&&I(_,this.content),Array.isArray(this.content)&&this.content.reduce(I,_)),g.isEmpty||(_=_.filter((j=>{let M=j.parents.map((z=>z.element));for(const z in g){const K=g[z],Y=M.indexOf(K);if(Y===-1)return!1;M=M.splice(0,Y)}return!0}))),_}set(g){return this.content=g,this}equals(g){return h(this.toValue(),g)}getMetaProperty(g,S){if(!this.meta.hasKey(g)){if(this.isFrozen){const _=this.refract(S);return _.freeze(),_}this.meta.set(g,S)}return this.meta.get(g)}setMetaProperty(g,S){this.meta.set(g,S)}get element(){return this._storedElement||"element"}set element(g){this._storedElement=g}get content(){return this._content}set content(g){if(g instanceof y)this._content=g;else if(g instanceof f)this.content=g.elements;else if(typeof g=="string"||typeof g=="number"||typeof g=="boolean"||g==="null"||g==null)this._content=g;else if(g instanceof v)this._content=g;else if(Array.isArray(g))this._content=g.map(this.refract);else{if(typeof g!="object")throw new Error("Cannot set content to given value");this._content=Object.keys(g).map((S=>new this.MemberElement(S,g[S])))}}get meta(){if(!this._meta){if(this.isFrozen){const g=new this.ObjectElement;return g.freeze(),g}this._meta=new this.ObjectElement}return this._meta}set meta(g){g instanceof this.ObjectElement?this._meta=g:this.meta.set(g||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const g=new this.ObjectElement;return g.freeze(),g}this._attributes=new this.ObjectElement}return this._attributes}set attributes(g){g instanceof this.ObjectElement?this._attributes=g:this.attributes.set(g||{})}get id(){return this.getMetaProperty("id","")}set id(g){this.setMetaProperty("id",g)}get classes(){return this.getMetaProperty("classes",[])}set classes(g){this.setMetaProperty("classes",g)}get title(){return this.getMetaProperty("title","")}set title(g){this.setMetaProperty("title",g)}get description(){return this.getMetaProperty("description","")}set description(g){this.setMetaProperty("description",g)}get links(){return this.getMetaProperty("links",[])}set links(g){this.setMetaProperty("links",g)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:g}=this;const S=new f;for(;g;)S.push(g),g=g.parent;return S}get children(){if(Array.isArray(this.content))return new f(this.content);if(this.content instanceof v){const g=new f([this.content.key]);return this.content.value&&g.push(this.content.value),g}return this.content instanceof y?new f([this.content]):new f}get recursiveChildren(){const g=new f;return this.children.forEach((S=>{g.push(S),S.recursiveChildren.forEach((_=>{g.push(_)}))})),g}}w.exports=y},87726(w,N,s){const h=s(55973),v=s(10316);w.exports=class extends v{constructor(y,m,g,S){super(new h,g,S),this.element="member",this.key=y,this.value=m}get key(){return this.content.key}set key(y){this.content.key=this.refract(y)}get value(){return this.content.value}set value(y){this.content.value=this.refract(y)}}},41067(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f||null,y,m),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},40239(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f,y,m),this.element="number"}primitive(){return"number"}}},61045(w,N,s){const h=s(6048),v=s(23805),f=s(6233),y=s(87726),m=s(10866);w.exports=class extends f{constructor(S,_,T){super(S||[],_,T),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((S,_)=>(S[_.key.toValue()]=_.value?_.value.toValue():void 0,S)),{})}get(S){const _=this.getMember(S);if(_)return _.value}getMember(S){if(S!==void 0)return this.content.find((_=>_.key.toValue()===S))}remove(S){let _=null;return this.content=this.content.filter((T=>T.key.toValue()!==S||(_=T,!1))),_}getKey(S){const _=this.getMember(S);if(_)return _.key}set(S,_){if(v(S))return Object.keys(S).forEach((j=>{this.set(j,S[j])})),this;const T=S,I=this.getMember(T);return I?I.value=_:this.content.push(new y(T,_)),this}keys(){return this.content.map((S=>S.key.toValue()))}values(){return this.content.map((S=>S.value.toValue()))}hasKey(S){return this.content.some((_=>_.key.equals(S)))}items(){return this.content.map((S=>[S.key.toValue(),S.value.toValue()]))}map(S,_){return this.content.map((T=>S.bind(_)(T.value,T.key,T)))}compactMap(S,_){const T=[];return this.forEach(((I,j,M)=>{const z=S.bind(_)(I,j,M);z&&T.push(z)})),T}filter(S,_){return new m(this.content).filter(S,_)}reject(S,_){return this.filter(h(S),_)}forEach(S,_){return this.content.forEach((T=>S.bind(_)(T.value,T.key,T)))}}},71167(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f,y,m),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},75147(w,N,s){const h=s(85105);w.exports=class extends h{serialise(f){if(!(f instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${f}\` is not an Element instance`);let y;f._attributes&&f.attributes.get("variable")&&(y=f.attributes.get("variable"));const m={element:f.element};f._meta&&f._meta.length>0&&(m.meta=this.serialiseObject(f.meta));const g=f.element==="enum"||f.attributes.keys().indexOf("enumerations")!==-1;if(g){const S=this.enumSerialiseAttributes(f);S&&(m.attributes=S)}else if(f._attributes&&f._attributes.length>0){let{attributes:S}=f;S.get("metadata")&&(S=S.clone(),S.set("meta",S.get("metadata")),S.remove("metadata")),f.element==="member"&&y&&(S=S.clone(),S.remove("variable")),S.length>0&&(m.attributes=this.serialiseObject(S))}if(g)m.content=this.enumSerialiseContent(f,m);else if(this[`${f.element}SerialiseContent`])m.content=this[`${f.element}SerialiseContent`](f,m);else if(f.content!==void 0){let S;y&&f.content.key?(S=f.content.clone(),S.key.attributes.set("variable",y),S=this.serialiseContent(S)):S=this.serialiseContent(f.content),this.shouldSerialiseContent(f,S)&&(m.content=S)}else this.shouldSerialiseContent(f,f.content)&&f instanceof this.namespace.elements.Array&&(m.content=[]);return m}shouldSerialiseContent(f,y){return f.element==="parseResult"||f.element==="httpRequest"||f.element==="httpResponse"||f.element==="category"||f.element==="link"||y!==void 0&&(!Array.isArray(y)||y.length!==0)}refSerialiseContent(f,y){return delete y.attributes,{href:f.toValue(),path:f.path.toValue()}}sourceMapSerialiseContent(f){return f.toValue()}dataStructureSerialiseContent(f){return[this.serialiseContent(f.content)]}enumSerialiseAttributes(f){const y=f.attributes.clone(),m=y.remove("enumerations")||new this.namespace.elements.Array([]),g=y.get("default");let S=y.get("samples")||new this.namespace.elements.Array([]);if(g&&g.content&&(g.content.attributes&&g.content.attributes.remove("typeAttributes"),y.set("default",new this.namespace.elements.Array([g.content]))),S.forEach((_=>{_.content&&_.content.element&&_.content.attributes.remove("typeAttributes")})),f.content&&m.length!==0&&S.unshift(f.content),S=S.map((_=>_ instanceof this.namespace.elements.Array?[_]:new this.namespace.elements.Array([_.content]))),S.length&&y.set("samples",S),y.length>0)return this.serialiseObject(y)}enumSerialiseContent(f){if(f._attributes){const y=f.attributes.get("enumerations");if(y&&y.length>0)return y.content.map((m=>{const g=m.clone();return g.attributes.remove("typeAttributes"),this.serialise(g)}))}if(f.content){const y=f.content.clone();return y.attributes.remove("typeAttributes"),[this.serialise(y)]}return[]}deserialise(f){if(typeof f=="string")return new this.namespace.elements.String(f);if(typeof f=="number")return new this.namespace.elements.Number(f);if(typeof f=="boolean")return new this.namespace.elements.Boolean(f);if(f===null)return new this.namespace.elements.Null;if(Array.isArray(f))return new this.namespace.elements.Array(f.map(this.deserialise,this));const y=this.namespace.getElementClass(f.element),m=new y;m.element!==f.element&&(m.element=f.element),f.meta&&this.deserialiseObject(f.meta,m.meta),f.attributes&&this.deserialiseObject(f.attributes,m.attributes);const g=this.deserialiseContent(f.content);if(g===void 0&&m.content!==null||(m.content=g),m.element==="enum"){m.content&&m.attributes.set("enumerations",m.content);let S=m.attributes.get("samples");if(m.attributes.remove("samples"),S){const T=S;S=new this.namespace.elements.Array,T.forEach((j=>{j.forEach((M=>{const z=new y(M);z.element=m.element,S.push(z)}))}));const I=S.shift();m.content=I?I.content:void 0,m.attributes.set("samples",S)}else m.content=void 0;let _=m.attributes.get("default");if(_&&_.length>0){_=_.get(0);const T=new y(_);T.element=m.element,m.attributes.set("default",T)}}else if(m.element==="dataStructure"&&Array.isArray(m.content))[m.content]=m.content;else if(m.element==="category"){const S=m.attributes.get("meta");S&&(m.attributes.set("metadata",S),m.attributes.remove("meta"))}else m.element==="member"&&m.key&&m.key._attributes&&m.key._attributes.getValue("variable")&&(m.attributes.set("variable",m.key.attributes.get("variable")),m.key.attributes.remove("variable"));return m}serialiseContent(f){if(f instanceof this.namespace.elements.Element)return this.serialise(f);if(f instanceof this.namespace.KeyValuePair){const y={key:this.serialise(f.key)};return f.value&&(y.value=this.serialise(f.value)),y}return f&&f.map?f.map(this.serialise,this):f}deserialiseContent(f){if(f){if(f.element)return this.deserialise(f);if(f.key){const y=new this.namespace.KeyValuePair(this.deserialise(f.key));return f.value&&(y.value=this.deserialise(f.value)),y}if(f.map)return f.map(this.deserialise,this)}return f}shouldRefract(f){return!!(f._attributes&&f.attributes.keys().length||f._meta&&f.meta.keys().length)||f.element!=="enum"&&(f.element!==f.primitive()||f.element==="member")}convertKeyToRefract(f,y){return this.shouldRefract(y)?this.serialise(y):y.element==="enum"?this.serialiseEnum(y):y.element==="array"?y.map((m=>this.shouldRefract(m)||f==="default"?this.serialise(m):m.element==="array"||m.element==="object"||m.element==="enum"?m.children.map((g=>this.serialise(g))):m.toValue())):y.element==="object"?(y.content||[]).map(this.serialise,this):y.toValue()}serialiseEnum(f){return f.children.map((y=>this.serialise(y)))}serialiseObject(f){const y={};return f.forEach(((m,g)=>{if(m){const S=g.toValue();y[S]=this.convertKeyToRefract(S,m)}})),y}deserialiseObject(f,y){Object.keys(f).forEach((m=>{y.set(m,this.deserialise(f[m]))}))}}},85105(w){w.exports=class{constructor(s){this.namespace=s||new this.Namespace}serialise(s){if(!(s instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${s}\` is not an Element instance`);const h={element:s.element};s._meta&&s._meta.length>0&&(h.meta=this.serialiseObject(s.meta)),s._attributes&&s._attributes.length>0&&(h.attributes=this.serialiseObject(s.attributes));const v=this.serialiseContent(s.content);return v!==void 0&&(h.content=v),h}deserialise(s){if(!s.element)throw new Error("Given value is not an object containing an element name");const h=new(this.namespace.getElementClass(s.element));h.element!==s.element&&(h.element=s.element),s.meta&&this.deserialiseObject(s.meta,h.meta),s.attributes&&this.deserialiseObject(s.attributes,h.attributes);const v=this.deserialiseContent(s.content);return v===void 0&&h.content!==null||(h.content=v),h}serialiseContent(s){if(s instanceof this.namespace.elements.Element)return this.serialise(s);if(s instanceof this.namespace.KeyValuePair){const h={key:this.serialise(s.key)};return s.value&&(h.value=this.serialise(s.value)),h}return s&&s.map?s.length===0?void 0:s.map(this.serialise,this):s}deserialiseContent(s){if(s){if(s.element)return this.deserialise(s);if(s.key){const h=new this.namespace.KeyValuePair(this.deserialise(s.key));return s.value&&(h.value=this.deserialise(s.value)),h}if(s.map)return s.map(this.deserialise,this)}return s}serialiseObject(s){const h={};if(s.forEach(((v,f)=>{v&&(h[f.toValue()]=this.serialise(v))})),Object.keys(h).length!==0)return h}deserialiseObject(s,h){Object.keys(s).forEach((v=>{h.set(v,this.deserialise(s[v]))}))}}},76578(w){w.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},65606(w){var N,s,h=w.exports={};function v(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}function y(z){if(N===setTimeout)return setTimeout(z,0);if((N===v||!N)&&setTimeout)return N=setTimeout,setTimeout(z,0);try{return N(z,0)}catch{try{return N.call(null,z,0)}catch{return N.call(this,z,0)}}}(function(){try{N=typeof setTimeout=="function"?setTimeout:v}catch{N=v}try{s=typeof clearTimeout=="function"?clearTimeout:f}catch{s=f}})();var m,g=[],S=!1,_=-1;function T(){S&&m&&(S=!1,m.length?g=m.concat(g):_=-1,g.length&&I())}function I(){if(!S){var z=y(T);S=!0;for(var K=g.length;K;){for(m=g,g=[];++_1)for(var Y=1;Yf)throw new RangeError("requested too many random bytes");var T=y.allocUnsafe(S);if(S>0)if(S>v)for(var I=0;I=0||(qe[Ve]=ge[Ve]);return qe})(B,X);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(B);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(B,te)&&(se[te]=B[te])}return se}function S(B,X){var te=Object.keys(B);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(B);X&&(ie=ie.filter((function(se){return Object.getOwnPropertyDescriptor(B,se).enumerable}))),te.push.apply(te,ie)}return te}function _(B){for(var X=1;X"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var ie,se=z(B);if(X){var Te=z(this).constructor;ie=Reflect.construct(se,arguments,Te)}else ie=se.apply(this,arguments);return(function(ge,ke){if(ke&&(h(ke)==="object"||typeof ke=="function"))return ke;if(ke!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M(ge)})(this,ie)}}function M(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function z(B){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(te){return te.__proto__||Object.getPrototypeOf(te)},z(B)}function K(B,X,te){return X in B?Object.defineProperty(B,X,{value:te,enumerable:!0,configurable:!0,writable:!0}):B[X]=te,B}var Y=(function(B){(function(se,Te){if(typeof Te!="function"&&Te!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(Te&&Te.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),Te&&I(se,Te)})(te,B);var X=j(te);function te(ie){var se;(function(ge,ke){if(!(ge instanceof ke))throw new TypeError("Cannot call a class as a function")})(this,te),K(M(se=X.call(this,ie)),"onChange",(function(he){he.persist();var ge=se.state.value,ke=se.props.minLength;se.setState({value:he.target.value},(function(){var Ve=se.state.value;Ve.length>=ke?se.notify(he):ge.length>Ve.length&&se.notify(_(_({},he),{},{target:_(_({},he.target),{},{value:""})}))}))})),K(M(se),"onKeyDown",(function(he){he.key==="Enter"&&se.forceNotify(he);var ge=se.props.onKeyDown;ge&&(he.persist(),ge(he))})),K(M(se),"onBlur",(function(he){se.forceNotify(he);var ge=se.props.onBlur;ge&&(he.persist(),ge(he))})),K(M(se),"createNotifier",(function(he){if(he<0)se.notify=function(){return null};else if(he===0)se.notify=se.doNotify;else{var ge=(0,f.default)((function(ke){se.isDebouncing=!1,se.doNotify(ke)}),he);se.notify=function(ke){se.isDebouncing=!0,ge(ke)},se.flush=function(){return ge.flush()},se.cancel=function(){se.isDebouncing=!1,ge.cancel()}}})),K(M(se),"doNotify",(function(){se.props.onChange.apply(void 0,arguments)})),K(M(se),"forceNotify",(function(he){var ge=se.props.debounceTimeout;if(se.isDebouncing||!(ge>0)){se.cancel&&se.cancel();var ke=se.state.value,Ve=se.props.minLength;ke.length>=Ve?se.doNotify(he):se.doNotify(_(_({},he),{},{target:_(_({},he.target),{},{value:ke})}))}})),se.isDebouncing=!1,se.state={value:ie.value===void 0||ie.value===null?"":ie.value};var Te=se.props.debounceTimeout;return se.createNotifier(Te),se}return(function(se,Te,he){return Te&&T(se.prototype,Te),Object.defineProperty(se,"prototype",{writable:!1}),se})(te,[{key:"componentDidUpdate",value:function(se){if(!this.isDebouncing){var Te=this.props,he=Te.value,ge=Te.debounceTimeout,ke=se.debounceTimeout,Ve=se.value,He=this.state.value;he!==void 0&&Ve!==he&&He!==he&&this.setState({value:he}),ge!==ke&&this.createNotifier(ge)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var se,Te,he=this.props,ge=he.element,ke=(he.onChange,he.value,he.minLength,he.debounceTimeout,he.forceNotifyByEnter),Ve=he.forceNotifyOnBlur,He=he.onKeyDown,qe=he.onBlur,nt=he.inputRef,gt=g(he,y),Re=this.state.value;se=ke?{onKeyDown:this.onKeyDown}:He?{onKeyDown:He}:{},Te=Ve?{onBlur:this.onBlur}:qe?{onBlur:qe}:{};var u=nt?{ref:nt}:{};return v.default.createElement(ge,_(_(_(_({},gt),{},{onChange:this.onChange,value:Re},se),Te),u))}}]),te})(v.default.PureComponent);N.DebounceInput=Y,K(Y,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0})},24677(w,N,s){var h=s(81214).DebounceInput;h.DebounceInput=h,w.exports=h},22551(w,N,s){var h=s(96540),v=s(69982);function f(i){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+i,b=1;b"u"||window.document===void 0||window.document.createElement===void 0),T=Object.prototype.hasOwnProperty,I=/^[: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]*$/,j={},M={};function z(i,l,b,C,$,ee,ue){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=C,this.attributeNamespace=$,this.mustUseProperty=b,this.propertyName=i,this.type=l,this.sanitizeURL=ee,this.removeEmptyString=ue}var K={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(i){K[i]=new z(i,0,!1,i,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(i){var l=i[0];K[l]=new z(l,1,!1,i[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(i){K[i]=new z(i,2,!1,i.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(i){K[i]=new z(i,2,!1,i,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(i){K[i]=new z(i,3,!1,i.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(i){K[i]=new z(i,3,!0,i,null,!1,!1)})),["capture","download"].forEach((function(i){K[i]=new z(i,4,!1,i,null,!1,!1)})),["cols","rows","size","span"].forEach((function(i){K[i]=new z(i,6,!1,i,null,!1,!1)})),["rowSpan","start"].forEach((function(i){K[i]=new z(i,5,!1,i.toLowerCase(),null,!1,!1)}));var Y=/[\-:]([a-z])/g;function B(i){return i[1].toUpperCase()}function X(i,l,b,C){var $=K.hasOwnProperty(l)?K[l]:null;($!==null?$.type!==0:C||!(2Ce}return!1})(l,b,$,C)&&(b=null),C||$===null?(function(ue){return!!T.call(M,ue)||!T.call(j,ue)&&(I.test(ue)?M[ue]=!0:(j[ue]=!0,!1))})(l)&&(b===null?i.removeAttribute(l):i.setAttribute(l,""+b)):$.mustUseProperty?i[$.propertyName]=b===null?$.type!==3&&"":b:(l=$.attributeName,C=$.attributeNamespace,b===null?i.removeAttribute(l):(b=($=$.type)===3||$===4&&b===!0?"":""+b,C?i.setAttributeNS(C,l,b):i.setAttribute(l,b))))}"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(i){var l=i.replace(Y,B);K[l]=new z(l,1,!1,i,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(i){var l=i.replace(Y,B);K[l]=new z(l,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(i){var l=i.replace(Y,B);K[l]=new z(l,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(i){K[i]=new z(i,1,!1,i.toLowerCase(),null,!1,!1)})),K.xlinkHref=new z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(i){K[i]=new z(i,1,!1,i.toLowerCase(),null,!0,!0)}));var te=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ie=Symbol.for("react.element"),se=Symbol.for("react.portal"),Te=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),ge=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),Ve=Symbol.for("react.context"),He=Symbol.for("react.forward_ref"),qe=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),gt=Symbol.for("react.memo"),Re=Symbol.for("react.lazy"),u=Symbol.for("react.offscreen"),at=Symbol.iterator;function Xe(i){return i===null||typeof i!="object"?null:typeof(i=at&&i[at]||i["@@iterator"])=="function"?i:null}var Se,De=Object.assign;function Ke(i){if(Se===void 0)try{throw Error()}catch(b){var l=b.stack.trim().match(/\n( *(at )?)/);Se=l&&l[1]||""}return` +`+Se+i}var ft=!1;function Nt(i,l){if(!i||ft)return"";ft=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(Ue){var C=Ue}Reflect.construct(i,[],l)}else{try{l.call()}catch(Ue){C=Ue}i.call(l.prototype)}else{try{throw Error()}catch(Ue){C=Ue}i()}}catch(Ue){if(Ue&&C&&typeof Ue.stack=="string"){for(var $=Ue.stack.split(` +`),ee=C.stack.split(` +`),ue=$.length-1,Ce=ee.length-1;1<=ue&&0<=Ce&&$[ue]!==ee[Ce];)Ce--;for(;1<=ue&&0<=Ce;ue--,Ce--)if($[ue]!==ee[Ce]){if(ue!==1||Ce!==1)do if(ue--,0>--Ce||$[ue]!==ee[Ce]){var Me=` +`+$[ue].replace(" at new "," at ");return i.displayName&&Me.includes("")&&(Me=Me.replace("",i.displayName)),Me}while(1<=ue&&0<=Ce);break}}}finally{ft=!1,Error.prepareStackTrace=b}return(i=i?i.displayName||i.name:"")?Ke(i):""}function Wt(i){switch(i.tag){case 5:return Ke(i.type);case 16:return Ke("Lazy");case 13:return Ke("Suspense");case 19:return Ke("SuspenseList");case 0:case 2:case 15:return i=Nt(i.type,!1);case 11:return i=Nt(i.type.render,!1);case 1:return i=Nt(i.type,!0);default:return""}}function H(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case Te:return"Fragment";case se:return"Portal";case ge:return"Profiler";case he:return"StrictMode";case qe:return"Suspense";case nt:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case Ve:return(i.displayName||"Context")+".Consumer";case ke:return(i._context.displayName||"Context")+".Provider";case He:var l=i.render;return(i=i.displayName)||(i=(i=l.displayName||l.name||"")!==""?"ForwardRef("+i+")":"ForwardRef"),i;case gt:return(l=i.displayName||null)!==null?l:H(i.type)||"Memo";case Re:l=i._payload,i=i._init;try{return H(i(l))}catch{}}return null}function we(i){var l=i.type;switch(i.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=(i=l.render).displayName||i.name||"",l.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(l);case 8:return l===he?"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 l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function ct(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":case"object":return i;default:return""}}function mt(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function ur(i){i._valueTracker||(i._valueTracker=(function(b){var C=mt(b)?"checked":"value",$=Object.getOwnPropertyDescriptor(b.constructor.prototype,C),ee=""+b[C];if(!b.hasOwnProperty(C)&&$!==void 0&&typeof $.get=="function"&&typeof $.set=="function"){var ue=$.get,Ce=$.set;return Object.defineProperty(b,C,{configurable:!0,get:function(){return ue.call(this)},set:function(Me){ee=""+Me,Ce.call(this,Me)}}),Object.defineProperty(b,C,{enumerable:$.enumerable}),{getValue:function(){return ee},setValue:function(Me){ee=""+Me},stopTracking:function(){b._valueTracker=null,delete b[C]}}}})(i))}function ar(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var b=l.getValue(),C="";return i&&(C=mt(i)?i.checked?"true":"false":i.value),(i=C)!==b&&(l.setValue(i),!0)}function Tt(i){if((i=i||(typeof document<"u"?document:void 0))===void 0)return null;try{return i.activeElement||i.body}catch{return i.body}}function Gt(i,l){var b=l.checked;return De({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:b??i._wrapperState.initialChecked})}function Sr(i,l){var b=l.defaultValue==null?"":l.defaultValue,C=l.checked!=null?l.checked:l.defaultChecked;b=ct(l.value!=null?l.value:b),i._wrapperState={initialChecked:C,initialValue:b,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function kt(i,l){(l=l.checked)!=null&&X(i,"checked",l,!1)}function yt(i,l){kt(i,l);var b=ct(l.value),C=l.type;if(b!=null)C==="number"?(b===0&&i.value===""||i.value!=b)&&(i.value=""+b):i.value!==""+b&&(i.value=""+b);else if(C==="submit"||C==="reset")return void i.removeAttribute("value");l.hasOwnProperty("value")?pe(i,l.type,b):l.hasOwnProperty("defaultValue")&&pe(i,l.type,ct(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(i.defaultChecked=!!l.defaultChecked)}function Zt(i,l,b){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var C=l.type;if(!(C!=="submit"&&C!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+i._wrapperState.initialValue,b||l===i.value||(i.value=l),i.defaultValue=l}(b=i.name)!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,b!==""&&(i.name=b)}function pe(i,l,b){l==="number"&&Tt(i.ownerDocument)===i||(b==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+b&&(i.defaultValue=""+b))}var U=Array.isArray;function Z(i,l,b,C){if(i=i.options,l){l={};for(var $=0;$"+l.valueOf().toString()+"",l=Qe.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,b,C){MSApp.execUnsafeLocalFunction((function(){return $t(i,l)}))}:$t);function rn(i,l){if(l){var b=i.firstChild;if(b&&b===i.lastChild&&b.nodeType===3)return void(b.nodeValue=l)}i.textContent=l}var kr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},An=["Webkit","ms","Moz","O"];function Wr(i,l,b){return l==null||typeof l=="boolean"||l===""?"":b||typeof l!="number"||l===0||kr.hasOwnProperty(i)&&kr[i]?(""+l).trim():l+"px"}function Jn(i,l){for(var b in i=i.style,l)if(l.hasOwnProperty(b)){var C=b.indexOf("--")===0,$=Wr(b,l[b],C);b==="float"&&(b="cssFloat"),C?i.setProperty(b,$):i[b]=$}}Object.keys(kr).forEach((function(i){An.forEach((function(l){l=l+i.charAt(0).toUpperCase()+i.substring(1),kr[l]=kr[i]}))}));var Ea=De({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Zn(i,l){if(l){if(Ea[i]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(f(137,i));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(f(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(f(61))}if(l.style!=null&&typeof l.style!="object")throw Error(f(62))}}function un(i,l){if(i.indexOf("-")===-1)return typeof l.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ti=null;function Oo(i){return(i=i.target||i.srcElement||window).correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Li=null,Fn=null,zo=null;function Vo(i){if(i=cp(i)){if(typeof Li!="function")throw Error(f(280));var l=i.stateNode;l&&(l=up(l),Li(i.stateNode,i.type,l))}}function ds(i){Fn?zo?zo.push(i):zo=[i]:Fn=i}function sr(){if(Fn){var i=Fn,l=zo;if(zo=Fn=null,Vo(i),l)for(i=0;i>>=0,l===0?32:31-(Yl(l)/Xl|0)|0},Yl=Math.log,Xl=Math.LN2,gs=64,ys=4194304;function lo(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&i;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&i;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function mi(i,l){var b=i.pendingLanes;if(b===0)return 0;var C=0,$=i.suspendedLanes,ee=i.pingedLanes,ue=268435455&b;if(ue!==0){var Ce=ue&~$;Ce!==0?C=lo(Ce):(ee&=ue)!==0&&(C=lo(ee))}else(ue=b&~$)!==0?C=lo(ue):ee!==0&&(C=lo(ee));if(C===0)return 0;if(l!==0&&l!==C&&!(l&$)&&(($=C&-C)>=(ee=l&-l)||$===16&&4194240&ee))return l;if(4&C&&(C|=16&b),(l=i.entangledLanes)!==0)for(i=i.entanglements,l&=C;0b;b++)l.push(i);return l}function Ao(i,l,b){i.pendingLanes|=l,l!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),(i=i.eventTimes)[l=31-Ia(l)]=b}function vs(i,l){var b=i.entangledLanes|=l;for(i=i.entanglements;b;){var C=31-Ia(b),$=1<=Si),pl=" ",hl=!1;function xi(i,l){switch(i){case"keyup":return xa.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xs(i){return typeof(i=i.detail)=="object"&&"data"in i?i.data:null}var No=!1,Kc={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ra(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l==="input"?!!Kc[i.type]:l==="textarea"}function dl(i,l,b,C){ds(C),0<(l=vr(l,"onChange")).length&&(b=new $n("onChange","change",null,b,C),i.push({event:b,listeners:l}))}var fl=null,ni=null;function Gc(i){oe(i,0)}function zi(i){if(ar(ru(i)))return i}function lc(i,l){if(i==="change")return l}var Yc=!1;if(_){var ml;if(_){var gl="oninput"in document;if(!gl){var la=document.createElement("div");la.setAttribute("oninput","return;"),gl=typeof la.oninput=="function"}ml=gl}else ml=!1;Yc=ml&&(!document.documentMode||9=l)return{node:C,offset:l-i};i=b}e:{for(;C;){if(C.nextSibling){C=C.nextSibling;break e}C=C.parentNode}C=void 0}C=Xc(C)}}function yl(i,l){return!(!i||!l)&&(i===l||(!i||i.nodeType!==3)&&(l&&l.nodeType===3?yl(i,l.parentNode):"contains"in i?i.contains(l):!!i.compareDocumentPosition&&!!(16&i.compareDocumentPosition(l))))}function Da(){for(var i=window,l=Tt();l instanceof i.HTMLIFrameElement;){try{var b=typeof l.contentWindow.location.href=="string"}catch{b=!1}if(!b)break;l=Tt((i=l.contentWindow).document)}return l}function Hi(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}function Ho(i){var l=Da(),b=i.focusedElem,C=i.selectionRange;if(l!==b&&b&&b.ownerDocument&&yl(b.ownerDocument.documentElement,b)){if(C!==null&&Hi(b)){if(l=C.start,(i=C.end)===void 0&&(i=l),"selectionStart"in b)b.selectionStart=l,b.selectionEnd=Math.min(i,b.value.length);else if((i=(l=b.ownerDocument||document)&&l.defaultView||window).getSelection){i=i.getSelection();var $=b.textContent.length,ee=Math.min(C.start,$);C=C.end===void 0?ee:Math.min(C.end,$),!i.extend&&ee>C&&($=C,C=ee,ee=$),$=ca(b,ee);var ue=ca(b,C);$&&ue&&(i.rangeCount!==1||i.anchorNode!==$.node||i.anchorOffset!==$.offset||i.focusNode!==ue.node||i.focusOffset!==ue.offset)&&((l=l.createRange()).setStart($.node,$.offset),i.removeAllRanges(),ee>C?(i.addRange(l),i.extend(ue.node,ue.offset)):(l.setEnd(ue.node,ue.offset),i.addRange(l)))}}for(l=[],i=b;i=i.parentNode;)i.nodeType===1&&l.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b=document.documentMode,_i=null,cc=null,jn=null,mn=!1;function uc(i,l,b){var C=b.window===b?b.document:b.nodeType===9?b:b.ownerDocument;mn||_i==null||_i!==Tt(C)||("selectionStart"in(C=_i)&&Hi(C)?C={start:C.selectionStart,end:C.selectionEnd}:C={anchorNode:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset},jn&&_s(jn,C)||(jn=C,0<(C=vr(cc,"onSelect")).length&&(l=new $n("onSelect","select",null,l,b),i.push({event:l,listeners:C}),l.target=_i)))}function Os(i,l){var b={};return b[i.toLowerCase()]=l.toLowerCase(),b["Webkit"+i]="webkit"+l,b["Moz"+i]="moz"+l,b}var To={animationend:Os("Animation","AnimationEnd"),animationiteration:Os("Animation","AnimationIteration"),animationstart:Os("Animation","AnimationStart"),transitionend:Os("Transition","TransitionEnd")},Qc={},pc={};function vl(i){if(Qc[i])return Qc[i];if(!To[i])return i;var l,b=To[i];for(l in b)if(b.hasOwnProperty(l)&&l in pc)return Qc[i]=b[l];return i}_&&(pc=document.createElement("div").style,"AnimationEvent"in window||(delete To.animationend.animation,delete To.animationiteration.animation,delete To.animationstart.animation),"TransitionEvent"in window||delete To.transitionend.transition);var Zc=vl("animationend"),eu=vl("animationiteration"),op=vl("animationstart"),tu=vl("transitionend"),ip=new Map,sp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function A(i,l){ip.set(i,l),g(l,[i])}for(var O=0;Onu||(i.current=Td[nu],Td[nu]=null,nu--)}function Cn(i,l){nu++,Td[nu]=i.current,i.current=l}var xl={},Xa=Sl(xl),Oa=Sl(!1),ks=xl;function hc(i,l){var b=i.type.contextTypes;if(!b)return xl;var C=i.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===l)return C.__reactInternalMemoizedMaskedChildContext;var $,ee={};for($ in b)ee[$]=l[$];return C&&((i=i.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,i.__reactInternalMemoizedMaskedChildContext=ee),ee}function Ko(i){return(i=i.childContextTypes)!=null}function sh(){qn(Oa),qn(Xa)}function Xm(i,l,b){if(Xa.current!==xl)throw Error(f(168));Cn(Xa,l),Cn(Oa,b)}function Id(i,l,b){var C=i.stateNode;if(l=l.childContextTypes,typeof C.getChildContext!="function")return b;for(var $ in C=C.getChildContext())if(!($ in l))throw Error(f(108,we(i)||"Unknown",$));return De({},b,C)}function lh(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||xl,ks=Xa.current,Cn(Xa,i),Cn(Oa,Oa.current),!0}function Yr(i,l,b){var C=i.stateNode;if(!C)throw Error(f(169));b?(i=Id(i,l,ks),C.__reactInternalMemoizedMergedChildContext=i,qn(Oa),qn(Xa),Cn(Xa,i)):qn(Oa),Cn(Oa,b)}var As=null,ch=!1,Md=!1;function Qm(i){As===null?As=[i]:As.push(i)}function _l(){if(!Md&&As!==null){Md=!0;var i=0,l=an;try{var b=As;for(an=1;i>=ue,$-=ue,Yi=1<<32-Ia(l)+$|b<<$|C,js=ee+i}else Yi=1<xr?(Qr=Mt,Mt=null):Qr=Mt.sibling;var sn=lt(Ze,Mt,rt[xr],wt);if(sn===null){Mt===null&&(Mt=Qr);break}i&&Mt&&sn.alternate===null&&l(Ze,Mt),Le=ee(sn,Le,xr),Fr===null?nr=sn:Fr.sibling=sn,Fr=sn,Mt=Qr}if(xr===rt.length)return b(Ze,Mt),Un&&dc(Ze,xr),nr;if(Mt===null){for(;xrxr?(Qr=Mt,Mt=null):Qr=Mt.sibling;var wr=lt(Ze,Mt,sn.value,wt);if(wr===null){Mt===null&&(Mt=Qr);break}i&&Mt&&wr.alternate===null&&l(Ze,Mt),Le=ee(wr,Le,xr),Fr===null?nr=wr:Fr.sibling=wr,Fr=wr,Mt=Qr}if(sn.done)return b(Ze,Mt),Un&&dc(Ze,xr),nr;if(Mt===null){for(;!sn.done;xr++,sn=rt.next())(sn=st(Ze,sn.value,wt))!==null&&(Le=ee(sn,Le,xr),Fr===null?nr=sn:Fr.sibling=sn,Fr=sn);return Un&&dc(Ze,xr),nr}for(Mt=C(Ze,Mt);!sn.done;xr++,sn=rt.next())(sn=vt(Mt,Ze,xr,sn.value,wt))!==null&&(i&&sn.alternate!==null&&Mt.delete(sn.key===null?xr:sn.key),Le=ee(sn,Le,xr),Fr===null?nr=sn:Fr.sibling=sn,Fr=sn);return i&&Mt.forEach((function(_r){return l(Ze,_r)})),Un&&dc(Ze,xr),nr}return function Ze(Le,rt,wt,nr){if(typeof wt=="object"&&wt!==null&&wt.type===Te&&wt.key===null&&(wt=wt.props.children),typeof wt=="object"&&wt!==null){switch(wt.$$typeof){case ie:e:{for(var Fr=wt.key,Mt=rt;Mt!==null;){if(Mt.key===Fr){if((Fr=wt.type)===Te){if(Mt.tag===7){b(Le,Mt.sibling),(rt=$(Mt,wt.props.children)).return=Le,Le=rt;break e}}else if(Mt.elementType===Fr||typeof Fr=="object"&&Fr!==null&&Fr.$$typeof===Re&&rg(Fr)===Mt.type){b(Le,Mt.sibling),(rt=$(Mt,wt.props)).ref=fp(Le,Mt,wt),rt.return=Le,Le=rt;break e}b(Le,Mt);break}l(Le,Mt),Mt=Mt.sibling}wt.type===Te?((rt=Xo(wt.props.children,Le.mode,nr,wt.key)).return=Le,Le=rt):((nr=ku(wt.type,wt.key,wt.props,null,Le.mode,nr)).ref=fp(Le,rt,wt),nr.return=Le,Le=nr)}return ue(Le);case se:e:{for(Mt=wt.key;rt!==null;){if(rt.key===Mt){if(rt.tag===4&&rt.stateNode.containerInfo===wt.containerInfo&&rt.stateNode.implementation===wt.implementation){b(Le,rt.sibling),(rt=$(rt,wt.children||[])).return=Le,Le=rt;break e}b(Le,rt);break}l(Le,rt),rt=rt.sibling}(rt=qh(wt,Le.mode,nr)).return=Le,Le=rt}return ue(Le);case Re:return Ze(Le,rt,(Mt=wt._init)(wt._payload),nr)}if(U(wt))return Lt(Le,rt,wt,nr);if(Xe(wt))return xt(Le,rt,wt,nr);mp(Le,wt)}return typeof wt=="string"&&wt!==""||typeof wt=="number"?(wt=""+wt,rt!==null&&rt.tag===6?(b(Le,rt.sibling),(rt=$(rt,wt)).return=Le,Le=rt):(b(Le,rt),(rt=Tp(wt,Le.mode,nr)).return=Le,Le=rt),ue(Le)):b(Le,rt)}}var fc=ph(!0),ng=ph(!1),hh=Sl(null),dh=null,lu=null,Xr=null;function cu(){Xr=lu=dh=null}function uu(i){var l=hh.current;qn(hh),i._currentValue=l}function qd(i,l,b){for(;i!==null;){var C=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,C!==null&&(C.childLanes|=l)):C!==null&&(C.childLanes&l)!==l&&(C.childLanes|=l),i===b)break;i=i.return}}function pu(i,l){dh=i,Xr=lu=null,(i=i.dependencies)!==null&&i.firstContext!==null&&(i.lanes&l&&(Do=!0),i.firstContext=null)}function oi(i){var l=i._currentValue;if(Xr!==i)if(i={context:i,memoizedValue:l,next:null},lu===null){if(dh===null)throw Error(f(308));lu=i,dh.dependencies={lanes:0,firstContext:i}}else lu=lu.next=i;return l}var Ol=null;function gp(i){Ol===null?Ol=[i]:Ol.push(i)}function ag(i,l,b,C){var $=l.interleaved;return $===null?(b.next=b,gp(l)):(b.next=$.next,$.next=b),l.interleaved=b,Ps(i,C)}function Ps(i,l){i.lanes|=l;var b=i.alternate;for(b!==null&&(b.lanes|=l),b=i,i=i.return;i!==null;)i.childLanes|=l,(b=i.alternate)!==null&&(b.childLanes|=l),b=i,i=i.return;return b.tag===3?b.stateNode:null}var kl=!1;function yp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function og(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Ns(i,l){return{eventTime:i,lane:l,tag:0,payload:null,callback:null,next:null}}function Ts(i,l,b){var C=i.updateQueue;if(C===null)return null;if(C=C.shared,2&pn){var $=C.pending;return $===null?l.next=l:(l.next=$.next,$.next=l),C.pending=l,Ps(i,b)}return($=C.interleaved)===null?(l.next=l,gp(C)):(l.next=$.next,$.next=l),C.interleaved=l,Ps(i,b)}function hu(i,l,b){if((l=l.updateQueue)!==null&&(l=l.shared,4194240&b)){var C=l.lanes;b|=C&=i.pendingLanes,l.lanes=b,vs(i,b)}}function fh(i,l){var b=i.updateQueue,C=i.alternate;if(C!==null&&b===(C=C.updateQueue)){var $=null,ee=null;if((b=b.firstBaseUpdate)!==null){do{var ue={eventTime:b.eventTime,lane:b.lane,tag:b.tag,payload:b.payload,callback:b.callback,next:null};ee===null?$=ee=ue:ee=ee.next=ue,b=b.next}while(b!==null);ee===null?$=ee=l:ee=ee.next=l}else $=ee=l;return b={baseState:C.baseState,firstBaseUpdate:$,lastBaseUpdate:ee,shared:C.shared,effects:C.effects},void(i.updateQueue=b)}(i=b.lastBaseUpdate)===null?b.firstBaseUpdate=l:i.next=l,b.lastBaseUpdate=l}function mh(i,l,b,C){var $=i.updateQueue;kl=!1;var ee=$.firstBaseUpdate,ue=$.lastBaseUpdate,Ce=$.shared.pending;if(Ce!==null){$.shared.pending=null;var Me=Ce,Ue=Me.next;Me.next=null,ue===null?ee=Ue:ue.next=Ue,ue=Me;var ot=i.alternate;ot!==null&&(Ce=(ot=ot.updateQueue).lastBaseUpdate)!==ue&&(Ce===null?ot.firstBaseUpdate=Ue:Ce.next=Ue,ot.lastBaseUpdate=Me)}if(ee!==null){var st=$.baseState;for(ue=0,ot=Ue=Me=null,Ce=ee;;){var lt=Ce.lane,vt=Ce.eventTime;if((C<)===lt){ot!==null&&(ot=ot.next={eventTime:vt,lane:0,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null});e:{var Lt=i,xt=Ce;switch(lt=l,vt=b,xt.tag){case 1:if(typeof(Lt=xt.payload)=="function"){st=Lt.call(vt,st,lt);break e}st=Lt;break e;case 3:Lt.flags=-65537&Lt.flags|128;case 0:if((lt=typeof(Lt=xt.payload)=="function"?Lt.call(vt,st,lt):Lt)==null)break e;st=De({},st,lt);break e;case 2:kl=!0}}Ce.callback!==null&&Ce.lane!==0&&(i.flags|=64,(lt=$.effects)===null?$.effects=[Ce]:lt.push(Ce))}else vt={eventTime:vt,lane:lt,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null},ot===null?(Ue=ot=vt,Me=st):ot=ot.next=vt,ue|=lt;if((Ce=Ce.next)===null){if((Ce=$.shared.pending)===null)break;Ce=(lt=Ce).next,lt.next=null,$.lastBaseUpdate=lt,$.shared.pending=null}}if(ot===null&&(Me=st),$.baseState=Me,$.firstBaseUpdate=Ue,$.lastBaseUpdate=ot,(l=$.shared.interleaved)!==null){$=l;do ue|=$.lane,$=$.next;while($!==l)}else ee===null&&($.shared.lanes=0);Ds|=ue,i.lanes=ue,i.memoizedState=st}}function Ud(i,l,b){if(i=l.effects,l.effects=null,i!==null)for(l=0;lb?b:4,i(!0);var C=Wd.transition;Wd.transition={};try{i(!1),l()}finally{an=b,Wd.transition=C}}function ef(){return ii().memoizedState}function fg(i,l,b){var C=Tl(i);b={lane:C,action:b,hasEagerState:!1,eagerState:null,next:null},gg(i)?gc(l,b):(b=ag(i,l,b,C))!==null&&(Lo(b,i,C,to()),Yo(b,l,C))}function mg(i,l,b){var C=Tl(i),$={lane:C,action:b,hasEagerState:!1,eagerState:null,next:null};if(gg(i))gc(l,$);else{var ee=i.alternate;if(i.lanes===0&&(ee===null||ee.lanes===0)&&(ee=l.lastRenderedReducer)!==null)try{var ue=l.lastRenderedState,Ce=ee(ue,b);if($.hasEagerState=!0,$.eagerState=Ce,Ka(Ce,ue)){var Me=l.interleaved;return Me===null?($.next=$,gp(l)):($.next=Me.next,Me.next=$),void(l.interleaved=$)}}catch{}(b=ag(i,l,$,C))!==null&&(Lo(b,i,C,$=to()),Yo(b,l,C))}}function gg(i){var l=i.alternate;return i===Dr||l!==null&&l===Dr}function gc(i,l){wp=mc=!0;var b=i.pending;b===null?l.next=l:(l.next=b.next,b.next=l),i.pending=l}function Yo(i,l,b){if(4194240&b){var C=l.lanes;b|=C&=i.pendingLanes,l.lanes=b,vs(i,b)}}var _p={readContext:oi,useCallback:Qa,useContext:Qa,useEffect:Qa,useImperativeHandle:Qa,useInsertionEffect:Qa,useLayoutEffect:Qa,useMemo:Qa,useReducer:Qa,useRef:Qa,useState:Qa,useDebugValue:Qa,useDeferredValue:Qa,useTransition:Qa,useMutableSource:Qa,useSyncExternalStore:Qa,useId:Qa,unstable_isNewReconciler:!1},tf={readContext:oi,useCallback:function(i,l){return Xi().memoizedState=[i,l===void 0?null:l],i},useContext:oi,useEffect:pg,useImperativeHandle:function(i,l,b){return b=b!=null?b.concat([i]):null,Sh(4194308,4,_h.bind(null,l,i),b)},useLayoutEffect:function(i,l){return Sh(4194308,4,i,l)},useInsertionEffect:function(i,l){return Sh(4,2,i,l)},useMemo:function(i,l){var b=Xi();return l=l===void 0?null:l,i=i(),b.memoizedState=[i,l],i},useReducer:function(i,l,b){var C=Xi();return l=b!==void 0?b(l):l,C.memoizedState=C.baseState=l,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:l},C.queue=i,i=i.dispatch=fg.bind(null,Dr,i),[C.memoizedState,i]},useRef:function(i){return i={current:i},Xi().memoizedState=i},useState:Gd,useDebugValue:Xd,useDeferredValue:function(i){return Xi().memoizedState=i},useTransition:function(){var i=Gd(!1),l=i[0];return i=l0.bind(null,i[1]),Xi().memoizedState=i,[l,i]},useMutableSource:function(){},useSyncExternalStore:function(i,l,b){var C=Dr,$=Xi();if(Un){if(b===void 0)throw Error(f(407));b=b()}else{if(b=l(),Ca===null)throw Error(f(349));30&ba||Eh(C,l,b)}$.memoizedState=b;var ee={value:b,getSnapshot:l};return $.queue=ee,pg(cg.bind(null,C,ee,i),[i]),C.flags|=2048,Sp(9,lg.bind(null,C,ee,b,l),void 0,null),b},useId:function(){var i=Xi(),l=Ca.identifierPrefix;if(Un){var b=js;l=":"+l+"R"+(b=(Yi&~(1<<32-Ia(Yi)-1)).toString(32)+b),0<(b=Ep++)&&(l+="H"+b.toString(32)),l+=":"}else l=":"+l+"r"+(b=s0++).toString(32)+":";return i.memoizedState=l},unstable_isNewReconciler:!1},rf={readContext:oi,useCallback:gu,useContext:oi,useEffect:xh,useImperativeHandle:dg,useInsertionEffect:hg,useLayoutEffect:Ci,useMemo:Qd,useReducer:wh,useRef:Yd,useState:function(){return wh(mu)},useDebugValue:Xd,useDeferredValue:function(i){return Zd(ii(),ka.memoizedState,i)},useTransition:function(){return[wh(mu)[0],ii().memoizedState]},useMutableSource:ig,useSyncExternalStore:sg,useId:ef,unstable_isNewReconciler:!1},yg={readContext:oi,useCallback:gu,useContext:oi,useEffect:xh,useImperativeHandle:dg,useInsertionEffect:hg,useLayoutEffect:Ci,useMemo:Qd,useReducer:Kd,useRef:Yd,useState:function(){return Kd(mu)},useDebugValue:Xd,useDeferredValue:function(i){var l=ii();return ka===null?l.memoizedState=i:Zd(l,ka.memoizedState,i)},useTransition:function(){return[Kd(mu)[0],ii().memoizedState]},useMutableSource:ig,useSyncExternalStore:sg,useId:ef,unstable_isNewReconciler:!1};function si(i,l){if(i&&i.defaultProps){for(var b in l=De({},l),i=i.defaultProps)l[b]===void 0&&(l[b]=i[b]);return l}return l}function Oh(i,l,b,C){b=(b=b(C,l=i.memoizedState))==null?l:De({},l,b),i.memoizedState=b,i.lanes===0&&(i.updateQueue.baseState=b)}var kh={isMounted:function(i){return!!(i=i._reactInternals)&&Va(i)===i},enqueueSetState:function(i,l,b){i=i._reactInternals;var C=to(),$=Tl(i),ee=Ns(C,$);ee.payload=l,b!=null&&(ee.callback=b),(l=Ts(i,ee,$))!==null&&(Lo(l,i,$,C),hu(l,i,$))},enqueueReplaceState:function(i,l,b){i=i._reactInternals;var C=to(),$=Tl(i),ee=Ns(C,$);ee.tag=1,ee.payload=l,b!=null&&(ee.callback=b),(l=Ts(i,ee,$))!==null&&(Lo(l,i,$,C),hu(l,i,$))},enqueueForceUpdate:function(i,l){i=i._reactInternals;var b=to(),C=Tl(i),$=Ns(b,C);$.tag=2,l!=null&&($.callback=l),(l=Ts(i,$,C))!==null&&(Lo(l,i,C,b),hu(l,i,C))}};function vg(i,l,b,C,$,ee,ue){return typeof(i=i.stateNode).shouldComponentUpdate=="function"?i.shouldComponentUpdate(C,ee,ue):!l.prototype||!l.prototype.isPureReactComponent||!_s(b,C)||!_s($,ee)}function bg(i,l,b){var C=!1,$=xl,ee=l.contextType;return typeof ee=="object"&&ee!==null?ee=oi(ee):($=Ko(l)?ks:Xa.current,ee=(C=(C=l.contextTypes)!=null)?hc(i,$):xl),l=new l(b,ee),i.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=kh,i.stateNode=l,l._reactInternals=i,C&&((i=i.stateNode).__reactInternalMemoizedUnmaskedChildContext=$,i.__reactInternalMemoizedMaskedChildContext=ee),l}function wg(i,l,b,C){i=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(b,C),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(b,C),l.state!==i&&kh.enqueueReplaceState(l,l.state,null)}function nf(i,l,b,C){var $=i.stateNode;$.props=b,$.state=i.memoizedState,$.refs={},yp(i);var ee=l.contextType;typeof ee=="object"&&ee!==null?$.context=oi(ee):(ee=Ko(l)?ks:Xa.current,$.context=hc(i,ee)),$.state=i.memoizedState,typeof(ee=l.getDerivedStateFromProps)=="function"&&(Oh(i,l,ee,b),$.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(l=$.state,typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount(),l!==$.state&&kh.enqueueReplaceState($,$.state,null),mh(i,b,$,C),$.state=i.memoizedState),typeof $.componentDidMount=="function"&&(i.flags|=4194308)}function yu(i,l){try{var b="",C=l;do b+=Wt(C),C=C.return;while(C);var $=b}catch(ee){$=` +Error generating stack: `+ee.message+` +`+ee.stack}return{value:i,source:l,stack:$,digest:null}}function af(i,l,b){return{value:i,source:null,stack:b??null,digest:l??null}}function Ah(i,l){try{console.error(l.value)}catch(b){setTimeout((function(){throw b}))}}var c0=typeof WeakMap=="function"?WeakMap:Map;function vu(i,l,b){(b=Ns(-1,b)).tag=3,b.payload={element:null};var C=l.value;return b.callback=function(){bc||(bc=!0,Cp=C),Ah(0,l)},b}function Eg(i,l,b){(b=Ns(-1,b)).tag=3;var C=i.type.getDerivedStateFromError;if(typeof C=="function"){var $=l.value;b.payload=function(){return C($)},b.callback=function(){Ah(0,l)}}var ee=i.stateNode;return ee!==null&&typeof ee.componentDidCatch=="function"&&(b.callback=function(){Ah(0,l),typeof C!="function"&&(Pi===null?Pi=new Set([this]):Pi.add(this));var ue=l.stack;this.componentDidCatch(l.value,{componentStack:ue!==null?ue:""})}),b}function ji(i,l,b){var C=i.pingCache;if(C===null){C=i.pingCache=new c0;var $=new Set;C.set(l,$)}else($=C.get(l))===void 0&&($=new Set,C.set(l,$));$.has(b)||($.add(b),i=f0.bind(null,i,l,b),l.then(i,i))}function Sg(i){do{var l;if((l=i.tag===13)&&(l=(l=i.memoizedState)===null||l.dehydrated!==null),l)return i;i=i.return}while(i!==null);return null}function xg(i,l,b,C,$){return 1&i.mode?(i.flags|=65536,i.lanes=$,i):(i===l?i.flags|=65536:(i.flags|=128,b.flags|=131072,b.flags&=-52805,b.tag===1&&(b.alternate===null?b.tag=17:((l=Ns(-1,1)).tag=2,Ts(b,l,1))),b.lanes|=1),i)}var u0=te.ReactCurrentOwner,Do=!1;function Za(i,l,b,C){l.child=i===null?ng(l,null,b,C):fc(l,i.child,b,C)}function _g(i,l,b,C,$){b=b.render;var ee=l.ref;return pu(l,$),C=Is(i,l,b,C,ee,$),b=Hd(),i===null||Do?(Un&&b&&Rd(l),l.flags|=1,Za(i,l,C,$),l.child):(l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~$,Ms(i,l,$))}function Og(i,l,b,C,$){if(i===null){var ee=b.type;return typeof ee!="function"||Pp(ee)||ee.defaultProps!==void 0||b.compare!==null||b.defaultProps!==void 0?((i=ku(b.type,null,C,l,l.mode,$)).ref=l.ref,i.return=l,l.child=i):(l.tag=15,l.type=ee,kg(i,l,ee,C,$))}if(ee=i.child,!(i.lanes&$)){var ue=ee.memoizedProps;if((b=(b=b.compare)!==null?b:_s)(ue,C)&&i.ref===l.ref)return Ms(i,l,$)}return l.flags|=1,(i=pa(ee,C)).ref=l.ref,i.return=l,l.child=i}function kg(i,l,b,C,$){if(i!==null){var ee=i.memoizedProps;if(_s(ee,C)&&i.ref===l.ref){if(Do=!1,l.pendingProps=C=ee,!(i.lanes&$))return l.lanes=i.lanes,Ms(i,l,$);131072&i.flags&&(Do=!0)}}return eo(i,l,b,C,$)}function of(i,l,b){var C=l.pendingProps,$=C.children,ee=i!==null?i.memoizedState:null;if(C.mode==="hidden")if(1&l.mode){if(!(1073741824&b))return i=ee!==null?ee.baseLanes|b:b,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:i,cachePool:null,transitions:null},l.updateQueue=null,Cn(jl,fo),fo|=i,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=ee!==null?ee.baseLanes:b,Cn(jl,fo),fo|=C}else l.memoizedState={baseLanes:0,cachePool:null,transitions:null},Cn(jl,fo),fo|=b;else ee!==null?(C=ee.baseLanes|b,l.memoizedState=null):C=b,Cn(jl,fo),fo|=C;return Za(i,l,$,b),l.child}function li(i,l){var b=l.ref;(i===null&&b!==null||i!==null&&i.ref!==b)&&(l.flags|=512,l.flags|=2097152)}function eo(i,l,b,C,$){var ee=Ko(b)?ks:Xa.current;return ee=hc(l,ee),pu(l,$),b=Is(i,l,b,C,ee,$),C=Hd(),i===null||Do?(Un&&C&&Rd(l),l.flags|=1,Za(i,l,b,$),l.child):(l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~$,Ms(i,l,$))}function Ag(i,l,b,C,$){if(Ko(b)){var ee=!0;lh(l)}else ee=!1;if(pu(l,$),l.stateNode===null)Th(i,l),bg(l,b,C),nf(l,b,C,$),C=!0;else if(i===null){var ue=l.stateNode,Ce=l.memoizedProps;ue.props=Ce;var Me=ue.context,Ue=b.contextType;typeof Ue=="object"&&Ue!==null?Ue=oi(Ue):Ue=hc(l,Ue=Ko(b)?ks:Xa.current);var ot=b.getDerivedStateFromProps,st=typeof ot=="function"||typeof ue.getSnapshotBeforeUpdate=="function";st||typeof ue.UNSAFE_componentWillReceiveProps!="function"&&typeof ue.componentWillReceiveProps!="function"||(Ce!==C||Me!==Ue)&&wg(l,ue,C,Ue),kl=!1;var lt=l.memoizedState;ue.state=lt,mh(l,C,ue,$),Me=l.memoizedState,Ce!==C||lt!==Me||Oa.current||kl?(typeof ot=="function"&&(Oh(l,b,ot,C),Me=l.memoizedState),(Ce=kl||vg(l,b,Ce,C,lt,Me,Ue))?(st||typeof ue.UNSAFE_componentWillMount!="function"&&typeof ue.componentWillMount!="function"||(typeof ue.componentWillMount=="function"&&ue.componentWillMount(),typeof ue.UNSAFE_componentWillMount=="function"&&ue.UNSAFE_componentWillMount()),typeof ue.componentDidMount=="function"&&(l.flags|=4194308)):(typeof ue.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=C,l.memoizedState=Me),ue.props=C,ue.state=Me,ue.context=Ue,C=Ce):(typeof ue.componentDidMount=="function"&&(l.flags|=4194308),C=!1)}else{ue=l.stateNode,og(i,l),Ce=l.memoizedProps,Ue=l.type===l.elementType?Ce:si(l.type,Ce),ue.props=Ue,st=l.pendingProps,lt=ue.context,typeof(Me=b.contextType)=="object"&&Me!==null?Me=oi(Me):Me=hc(l,Me=Ko(b)?ks:Xa.current);var vt=b.getDerivedStateFromProps;(ot=typeof vt=="function"||typeof ue.getSnapshotBeforeUpdate=="function")||typeof ue.UNSAFE_componentWillReceiveProps!="function"&&typeof ue.componentWillReceiveProps!="function"||(Ce!==st||lt!==Me)&&wg(l,ue,C,Me),kl=!1,lt=l.memoizedState,ue.state=lt,mh(l,C,ue,$);var Lt=l.memoizedState;Ce!==st||lt!==Lt||Oa.current||kl?(typeof vt=="function"&&(Oh(l,b,vt,C),Lt=l.memoizedState),(Ue=kl||vg(l,b,Ue,C,lt,Lt,Me)||!1)?(ot||typeof ue.UNSAFE_componentWillUpdate!="function"&&typeof ue.componentWillUpdate!="function"||(typeof ue.componentWillUpdate=="function"&&ue.componentWillUpdate(C,Lt,Me),typeof ue.UNSAFE_componentWillUpdate=="function"&&ue.UNSAFE_componentWillUpdate(C,Lt,Me)),typeof ue.componentDidUpdate=="function"&&(l.flags|=4),typeof ue.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof ue.componentDidUpdate!="function"||Ce===i.memoizedProps&<===i.memoizedState||(l.flags|=4),typeof ue.getSnapshotBeforeUpdate!="function"||Ce===i.memoizedProps&<===i.memoizedState||(l.flags|=1024),l.memoizedProps=C,l.memoizedState=Lt),ue.props=C,ue.state=Lt,ue.context=Me,C=Ue):(typeof ue.componentDidUpdate!="function"||Ce===i.memoizedProps&<===i.memoizedState||(l.flags|=4),typeof ue.getSnapshotBeforeUpdate!="function"||Ce===i.memoizedProps&<===i.memoizedState||(l.flags|=1024),C=!1)}return Ch(i,l,b,C,ee,$)}function Ch(i,l,b,C,$,ee){li(i,l);var ue=!!(128&l.flags);if(!C&&!ue)return $&&Yr(l,b,!1),Ms(i,l,ee);C=l.stateNode,u0.current=l;var Ce=ue&&typeof b.getDerivedStateFromError!="function"?null:C.render();return l.flags|=1,i!==null&&ue?(l.child=fc(l,i.child,null,ee),l.child=fc(l,null,Ce,ee)):Za(i,l,Ce,ee),l.memoizedState=C.state,$&&Yr(l,b,!0),l.child}function Cg(i){var l=i.stateNode;l.pendingContext?Xm(0,l.pendingContext,l.pendingContext!==l.context):l.context&&Xm(0,l.context,!1),zd(i,l.containerInfo)}function sf(i,l,b,C,$){return su(),$d($),l.flags|=256,Za(i,l,b,C),l.child}var jg,lf,Pg,jh={dehydrated:null,treeContext:null,retryLane:0};function Ph(i){return{baseLanes:i,cachePool:null,transitions:null}}function cf(i,l,b){var C,$=l.pendingProps,ee=Wn.current,ue=!1,Ce=!!(128&l.flags);if((C=Ce)||(C=(i===null||i.memoizedState!==null)&&!!(2&ee)),C?(ue=!0,l.flags&=-129):i!==null&&i.memoizedState===null||(ee|=1),Cn(Wn,1&ee),i===null)return hp(l),(i=l.memoizedState)!==null&&(i=i.dehydrated)!==null?(1&l.mode?i.data==="$!"?l.lanes=8:l.lanes=1073741824:l.lanes=1,null):(Ce=$.children,i=$.fallback,ue?($=l.mode,ue=l.child,Ce={mode:"hidden",children:Ce},1&$||ue===null?ue=Np(Ce,$,0,null):(ue.childLanes=0,ue.pendingProps=Ce),i=Xo(i,$,b,null),ue.return=l,i.return=l,ue.sibling=i,l.child=ue,l.child.memoizedState=Ph(b),l.memoizedState=jh,i):uf(l,Ce));if((ee=i.memoizedState)!==null&&(C=ee.dehydrated)!==null)return(function(ot,st,lt,vt,Lt,xt,Ze){if(lt)return 256&st.flags?(st.flags&=-257,Nh(ot,st,Ze,vt=af(Error(f(422))))):st.memoizedState!==null?(st.child=ot.child,st.flags|=128,null):(xt=vt.fallback,Lt=st.mode,vt=Np({mode:"visible",children:vt.children},Lt,0,null),(xt=Xo(xt,Lt,Ze,null)).flags|=2,vt.return=st,xt.return=st,vt.sibling=xt,st.child=vt,1&st.mode&&fc(st,ot.child,null,Ze),st.child.memoizedState=Ph(Ze),st.memoizedState=jh,xt);if(!(1&st.mode))return Nh(ot,st,Ze,null);if(Lt.data==="$!"){if(vt=Lt.nextSibling&&Lt.nextSibling.dataset)var Le=vt.dgst;return vt=Le,Nh(ot,st,Ze,vt=af(xt=Error(f(419)),vt,void 0))}if(Le=!!(Ze&ot.childLanes),Do||Le){if((vt=Ca)!==null){switch(Ze&-Ze){case 4:Lt=2;break;case 16:Lt=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:Lt=32;break;case 536870912:Lt=268435456;break;default:Lt=0}(Lt=Lt&(vt.suspendedLanes|Ze)?0:Lt)!==0&&Lt!==xt.retryLane&&(xt.retryLane=Lt,Ps(ot,Lt),Lo(vt,ot,Lt,-1))}return xf(),Nh(ot,st,Ze,vt=af(Error(f(421))))}return Lt.data==="$?"?(st.flags|=128,st.child=ot.child,st=m0.bind(null,ot),Lt._reactRetry=st,null):(ot=xt.treeContext,Ro=bl(Lt.nextSibling),Go=st,Un=!0,Oi=null,ot!==null&&(Io[Mo++]=Yi,Io[Mo++]=js,Io[Mo++]=Cs,Yi=ot.id,js=ot.overflow,Cs=st),st=uf(st,vt.children),st.flags|=4096,st)})(i,l,Ce,$,C,ee,b);if(ue){ue=$.fallback,Ce=l.mode,C=(ee=i.child).sibling;var Me={mode:"hidden",children:$.children};return 1&Ce||l.child===ee?($=pa(ee,Me)).subtreeFlags=14680064&ee.subtreeFlags:(($=l.child).childLanes=0,$.pendingProps=Me,l.deletions=null),C!==null?ue=pa(C,ue):(ue=Xo(ue,Ce,b,null)).flags|=2,ue.return=l,$.return=l,$.sibling=ue,l.child=$,$=ue,ue=l.child,Ce=(Ce=i.child.memoizedState)===null?Ph(b):{baseLanes:Ce.baseLanes|b,cachePool:null,transitions:Ce.transitions},ue.memoizedState=Ce,ue.childLanes=i.childLanes&~b,l.memoizedState=jh,$}return i=(ue=i.child).sibling,$=pa(ue,{mode:"visible",children:$.children}),!(1&l.mode)&&($.lanes=b),$.return=l,$.sibling=null,i!==null&&((b=l.deletions)===null?(l.deletions=[i],l.flags|=16):b.push(i)),l.child=$,l.memoizedState=null,$}function uf(i,l){return(l=Np({mode:"visible",children:l},i.mode,0,null)).return=i,i.child=l}function Nh(i,l,b,C){return C!==null&&$d(C),fc(l,i.child,null,b),(i=uf(l,l.pendingProps.children)).flags|=2,l.memoizedState=null,i}function Ng(i,l,b){i.lanes|=l;var C=i.alternate;C!==null&&(C.lanes|=l),qd(i.return,l,b)}function pf(i,l,b,C,$){var ee=i.memoizedState;ee===null?i.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:C,tail:b,tailMode:$}:(ee.isBackwards=l,ee.rendering=null,ee.renderingStartTime=0,ee.last=C,ee.tail=b,ee.tailMode=$)}function Tg(i,l,b){var C=l.pendingProps,$=C.revealOrder,ee=C.tail;if(Za(i,l,C.children,b),2&(C=Wn.current))C=1&C|2,l.flags|=128;else{if(i!==null&&128&i.flags)e:for(i=l.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Ng(i,b,l);else if(i.tag===19)Ng(i,b,l);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break e;for(;i.sibling===null;){if(i.return===null||i.return===l)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}C&=1}if(Cn(Wn,C),1&l.mode)switch($){case"forwards":for(b=l.child,$=null;b!==null;)(i=b.alternate)!==null&&vh(i)===null&&($=b),b=b.sibling;(b=$)===null?($=l.child,l.child=null):($=b.sibling,b.sibling=null),pf(l,!1,$,b,ee);break;case"backwards":for(b=null,$=l.child,l.child=null;$!==null;){if((i=$.alternate)!==null&&vh(i)===null){l.child=$;break}i=$.sibling,$.sibling=b,b=$,$=i}pf(l,!0,b,null,ee);break;case"together":pf(l,!1,null,null,void 0);break;default:l.memoizedState=null}else l.memoizedState=null;return l.child}function Th(i,l){!(1&l.mode)&&i!==null&&(i.alternate=null,l.alternate=null,l.flags|=2)}function Ms(i,l,b){if(i!==null&&(l.dependencies=i.dependencies),Ds|=l.lanes,!(b&l.childLanes))return null;if(i!==null&&l.child!==i.child)throw Error(f(153));if(l.child!==null){for(b=pa(i=l.child,i.pendingProps),l.child=b,b.return=l;i.sibling!==null;)i=i.sibling,(b=b.sibling=pa(i,i.pendingProps)).return=l;b.sibling=null}return l.child}function bu(i,l){if(!Un)switch(i.tailMode){case"hidden":l=i.tail;for(var b=null;l!==null;)l.alternate!==null&&(b=l),l=l.sibling;b===null?i.tail=null:b.sibling=null;break;case"collapsed":b=i.tail;for(var C=null;b!==null;)b.alternate!==null&&(C=b),b=b.sibling;C===null?l||i.tail===null?i.tail=null:i.tail.sibling=null:C.sibling=null}}function La(i){var l=i.alternate!==null&&i.alternate.child===i.child,b=0,C=0;if(l)for(var $=i.child;$!==null;)b|=$.lanes|$.childLanes,C|=14680064&$.subtreeFlags,C|=14680064&$.flags,$.return=i,$=$.sibling;else for($=i.child;$!==null;)b|=$.lanes|$.childLanes,C|=$.subtreeFlags,C|=$.flags,$.return=i,$=$.sibling;return i.subtreeFlags|=C,i.childLanes=b,l}function Ig(i,l,b){var C=l.pendingProps;switch(Dd(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return La(l),null;case 1:case 17:return Ko(l.type)&&sh(),La(l),null;case 3:return C=l.stateNode,va(),qn(Oa),qn(Xa),Jd(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),i!==null&&i.child!==null||(dp(l)?l.flags|=4:i===null||i.memoizedState.isDehydrated&&!(256&l.flags)||(l.flags|=1024,Oi!==null&&(wf(Oi),Oi=null))),La(l),null;case 5:yh(l);var $=Al(bp.current);if(b=l.type,i!==null&&l.stateNode!=null)lf(i,l,b,C),i.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!C){if(l.stateNode===null)throw Error(f(166));return La(l),null}if(i=Al(ki.current),dp(l)){C=l.stateNode,b=l.type;var ee=l.memoizedProps;switch(C[Ki]=l,C[lp]=ee,i=!!(1&l.mode),b){case"dialog":fe("cancel",C),fe("close",C);break;case"iframe":case"object":case"embed":fe("load",C);break;case"video":case"audio":for($=0;$<\/script>",i=i.removeChild(i.firstChild)):typeof C.is=="string"?i=ue.createElement(b,{is:C.is}):(i=ue.createElement(b),b==="select"&&(ue=i,C.multiple?ue.multiple=!0:C.size&&(ue.size=C.size))):i=ue.createElementNS(i,b),i[Ki]=l,i[lp]=C,jg(i,l),l.stateNode=i;e:{switch(ue=un(b,C),b){case"dialog":fe("cancel",i),fe("close",i),$=C;break;case"iframe":case"object":case"embed":fe("load",i),$=C;break;case"video":case"audio":for($=0;$Pl&&(l.flags|=128,C=!0,bu(ee,!1),l.lanes=4194304)}else{if(!C)if((i=vh(ue))!==null){if(l.flags|=128,C=!0,(b=i.updateQueue)!==null&&(l.updateQueue=b,l.flags|=4),bu(ee,!0),ee.tail===null&&ee.tailMode==="hidden"&&!ue.alternate&&!Un)return La(l),null}else 2*Yt()-ee.renderingStartTime>Pl&&b!==1073741824&&(l.flags|=128,C=!0,bu(ee,!1),l.lanes=4194304);ee.isBackwards?(ue.sibling=l.child,l.child=ue):((b=ee.last)!==null?b.sibling=ue:l.child=ue,ee.last=ue)}return ee.tail!==null?(l=ee.tail,ee.rendering=l,ee.tail=l.sibling,ee.renderingStartTime=Yt(),l.sibling=null,b=Wn.current,Cn(Wn,C?1&b|2:1&b),l):(La(l),null);case 22:case 23:return Sf(),C=l.memoizedState!==null,i!==null&&i.memoizedState!==null!==C&&(l.flags|=8192),C&&1&l.mode?1073741824&fo&&(La(l),6&l.subtreeFlags&&(l.flags|=8192)):La(l),null;case 24:case 25:return null}throw Error(f(156,l.tag))}function Mg(i,l){switch(Dd(l),l.tag){case 1:return Ko(l.type)&&sh(),65536&(i=l.flags)?(l.flags=-65537&i|128,l):null;case 3:return va(),qn(Oa),qn(Xa),Jd(),65536&(i=l.flags)&&!(128&i)?(l.flags=-65537&i|128,l):null;case 5:return yh(l),null;case 13:if(qn(Wn),(i=l.memoizedState)!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(f(340));su()}return 65536&(i=l.flags)?(l.flags=-65537&i|128,l):null;case 19:return qn(Wn),null;case 4:return va(),null;case 10:return uu(l.type._context),null;case 22:case 23:return Sf(),null;default:return null}}jg=function(i,l){for(var b=l.child;b!==null;){if(b.tag===5||b.tag===6)i.appendChild(b.stateNode);else if(b.tag!==4&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===l)break;for(;b.sibling===null;){if(b.return===null||b.return===l)return;b=b.return}b.sibling.return=b.return,b=b.sibling}},lf=function(i,l,b,C){var $=i.memoizedProps;if($!==C){i=l.stateNode,Al(ki.current);var ee,ue=null;switch(b){case"input":$=Gt(i,$),C=Gt(i,C),ue=[];break;case"select":$=De({},$,{value:void 0}),C=De({},C,{value:void 0}),ue=[];break;case"textarea":$=ne(i,$),C=ne(i,C),ue=[];break;default:typeof $.onClick!="function"&&typeof C.onClick=="function"&&(i.onclick=Hn)}for(Ue in Zn(b,C),b=null,$)if(!C.hasOwnProperty(Ue)&&$.hasOwnProperty(Ue)&&$[Ue]!=null)if(Ue==="style"){var Ce=$[Ue];for(ee in Ce)Ce.hasOwnProperty(ee)&&(b||(b={}),b[ee]="")}else Ue!=="dangerouslySetInnerHTML"&&Ue!=="children"&&Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&Ue!=="autoFocus"&&(m.hasOwnProperty(Ue)?ue||(ue=[]):(ue=ue||[]).push(Ue,null));for(Ue in C){var Me=C[Ue];if(Ce=$?.[Ue],C.hasOwnProperty(Ue)&&Me!==Ce&&(Me!=null||Ce!=null))if(Ue==="style")if(Ce){for(ee in Ce)!Ce.hasOwnProperty(ee)||Me&&Me.hasOwnProperty(ee)||(b||(b={}),b[ee]="");for(ee in Me)Me.hasOwnProperty(ee)&&Ce[ee]!==Me[ee]&&(b||(b={}),b[ee]=Me[ee])}else b||(ue||(ue=[]),ue.push(Ue,b)),b=Me;else Ue==="dangerouslySetInnerHTML"?(Me=Me?Me.__html:void 0,Ce=Ce?Ce.__html:void 0,Me!=null&&Ce!==Me&&(ue=ue||[]).push(Ue,Me)):Ue==="children"?typeof Me!="string"&&typeof Me!="number"||(ue=ue||[]).push(Ue,""+Me):Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&(m.hasOwnProperty(Ue)?(Me!=null&&Ue==="onScroll"&&fe("scroll",i),ue||Ce===Me||(ue=[])):(ue=ue||[]).push(Ue,Me))}b&&(ue=ue||[]).push("style",b);var Ue=ue;(l.updateQueue=Ue)&&(l.flags|=4)}},Pg=function(i,l,b,C){b!==C&&(l.flags|=4)};var Ih=!1,$a=!1,Rg=typeof WeakSet=="function"?WeakSet:Set,cr=null;function wu(i,l){var b=i.ref;if(b!==null)if(typeof b=="function")try{b(null)}catch(C){Gn(i,l,C)}else b.current=null}function Dg(i,l,b){try{b()}catch(C){Gn(i,l,C)}}var Fg=!1;function Op(i,l,b){var C=l.updateQueue;if((C=C!==null?C.lastEffect:null)!==null){var $=C=C.next;do{if(($.tag&i)===i){var ee=$.destroy;$.destroy=void 0,ee!==void 0&&Dg(l,b,ee)}$=$.next}while($!==C)}}function Eu(i,l){if((l=(l=l.updateQueue)!==null?l.lastEffect:null)!==null){var b=l=l.next;do{if((b.tag&i)===i){var C=b.create;b.destroy=C()}b=b.next}while(b!==l)}}function Mh(i){var l=i.ref;if(l!==null){var b=i.stateNode;i.tag,i=b,typeof l=="function"?l(i):l.current=i}}function Lg(i){var l=i.alternate;l!==null&&(i.alternate=null,Lg(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode)!==null&&(delete l[Ki],delete l[lp],delete l[ih],delete l[o0],delete l[i0]),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function hf(i){return i.tag===5||i.tag===3||i.tag===4}function $g(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||hf(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(2&i.flags||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(2&i.flags))return i.stateNode}}function df(i,l,b){var C=i.tag;if(C===5||C===6)i=i.stateNode,l?b.nodeType===8?b.parentNode.insertBefore(i,l):b.insertBefore(i,l):(b.nodeType===8?(l=b.parentNode).insertBefore(i,b):(l=b).appendChild(i),(b=b._reactRootContainer)!=null||l.onclick!==null||(l.onclick=Hn));else if(C!==4&&(i=i.child)!==null)for(df(i,l,b),i=i.sibling;i!==null;)df(i,l,b),i=i.sibling}function Rh(i,l,b){var C=i.tag;if(C===5||C===6)i=i.stateNode,l?b.insertBefore(i,l):b.appendChild(i);else if(C!==4&&(i=i.child)!==null)for(Rh(i,l,b),i=i.sibling;i!==null;)Rh(i,l,b),i=i.sibling}var ho=null,ci=!1;function Cl(i,l,b){for(b=b.child;b!==null;)ff(i,l,b),b=b.sibling}function ff(i,l,b){if(Wa&&typeof Wa.onCommitFiberUnmount=="function")try{Wa.onCommitFiberUnmount(Ja,b)}catch{}switch(b.tag){case 5:$a||wu(b,l);case 6:var C=ho,$=ci;ho=null,Cl(i,l,b),ci=$,(ho=C)!==null&&(ci?(i=ho,b=b.stateNode,i.nodeType===8?i.parentNode.removeChild(b):i.removeChild(b)):ho.removeChild(b.stateNode));break;case 18:ho!==null&&(ci?(i=ho,b=b.stateNode,i.nodeType===8?Pd(i.parentNode,b):i.nodeType===1&&Pd(i,b),Po(i)):Pd(ho,b.stateNode));break;case 4:C=ho,$=ci,ho=b.stateNode.containerInfo,ci=!0,Cl(i,l,b),ho=C,ci=$;break;case 0:case 11:case 14:case 15:if(!$a&&(C=b.updateQueue)!==null&&(C=C.lastEffect)!==null){$=C=C.next;do{var ee=$,ue=ee.destroy;ee=ee.tag,ue!==void 0&&(2&ee||4&ee)&&Dg(b,l,ue),$=$.next}while($!==C)}Cl(i,l,b);break;case 1:if(!$a&&(wu(b,l),typeof(C=b.stateNode).componentWillUnmount=="function"))try{C.props=b.memoizedProps,C.state=b.memoizedState,C.componentWillUnmount()}catch(Ce){Gn(b,l,Ce)}Cl(i,l,b);break;case 21:Cl(i,l,b);break;case 22:1&b.mode?($a=(C=$a)||b.memoizedState!==null,Cl(i,l,b),$a=C):Cl(i,l,b);break;default:Cl(i,l,b)}}function Bg(i){var l=i.updateQueue;if(l!==null){i.updateQueue=null;var b=i.stateNode;b===null&&(b=i.stateNode=new Rg),l.forEach((function(C){var $=ey.bind(null,i,C);b.has(C)||(b.add(C),C.then($,$))}))}}function Qi(i,l){var b=l.deletions;if(b!==null)for(var C=0;C$&&($=ue),C&=~ee}if(C=$,10<(C=(120>(C=Yt()-C)?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*p0(C/1960))-C)){i.timeoutHandle=Ga(_u.bind(null,i,Fo,Zi),C);break}_u(i,Fo,Zi);break;default:throw Error(f(329))}}}return $o(i,Yt()),i.callbackNode===b?Wg.bind(null,i):null}function bf(i,l){var b=vc;return i.current.memoizedState.isDehydrated&&(Ec(i,l).flags|=256),(i=Bh(i,l))!==2&&(l=Fo,Fo=b,l!==null&&wf(l)),i}function wf(i){Fo===null?Fo=i:Fo.push.apply(Fo,i)}function Il(i,l){for(l&=~kp,l&=~Su,i.suspendedLanes|=l,i.pingedLanes&=~l,i=i.expirationTimes;0i?16:i,Nl===null)var C=!1;else{if(i=Nl,Nl=null,Fh=0,6&pn)throw Error(f(331));var $=pn;for(pn|=4,cr=i.current;cr!==null;){var ee=cr,ue=ee.child;if(16&cr.flags){var Ce=ee.deletions;if(Ce!==null){for(var Me=0;MeYt()-Ap?Ec(i,0):kp|=b),$o(i,l)}function Zg(i,l){l===0&&(1&i.mode?(l=ys,!(130023424&(ys<<=1))&&(ys=4194304)):l=1);var b=to();(i=Ps(i,l))!==null&&(Ao(i,l,b),$o(i,b))}function m0(i){var l=i.memoizedState,b=0;l!==null&&(b=l.retryLane),Zg(i,b)}function ey(i,l){var b=0;switch(i.tag){case 13:var C=i.stateNode,$=i.memoizedState;$!==null&&(b=$.retryLane);break;case 19:C=i.stateNode;break;default:throw Error(f(314))}C!==null&&C.delete(l),Zg(i,b)}function ty(i,l){return fi(i,l)}function g0(i,l,b,C){this.tag=i,this.key=b,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bo(i,l,b,C){return new g0(i,l,b,C)}function Pp(i){return!(!(i=i.prototype)||!i.isReactComponent)}function pa(i,l){var b=i.alternate;return b===null?((b=Bo(i.tag,l,i.key,i.mode)).elementType=i.elementType,b.type=i.type,b.stateNode=i.stateNode,b.alternate=i,i.alternate=b):(b.pendingProps=l,b.type=i.type,b.flags=0,b.subtreeFlags=0,b.deletions=null),b.flags=14680064&i.flags,b.childLanes=i.childLanes,b.lanes=i.lanes,b.child=i.child,b.memoizedProps=i.memoizedProps,b.memoizedState=i.memoizedState,b.updateQueue=i.updateQueue,l=i.dependencies,b.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},b.sibling=i.sibling,b.index=i.index,b.ref=i.ref,b}function ku(i,l,b,C,$,ee){var ue=2;if(C=i,typeof i=="function")Pp(i)&&(ue=1);else if(typeof i=="string")ue=5;else e:switch(i){case Te:return Xo(b.children,$,ee,l);case he:ue=8,$|=8;break;case ge:return(i=Bo(12,b,l,2|$)).elementType=ge,i.lanes=ee,i;case qe:return(i=Bo(13,b,l,$)).elementType=qe,i.lanes=ee,i;case nt:return(i=Bo(19,b,l,$)).elementType=nt,i.lanes=ee,i;case u:return Np(b,$,ee,l);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case ke:ue=10;break e;case Ve:ue=9;break e;case He:ue=11;break e;case gt:ue=14;break e;case Re:ue=16,C=null;break e}throw Error(f(130,i==null?i:typeof i,""))}return(l=Bo(ue,b,l,$)).elementType=i,l.type=C,l.lanes=ee,l}function Xo(i,l,b,C){return(i=Bo(7,i,C,l)).lanes=b,i}function Np(i,l,b,C){return(i=Bo(22,i,C,l)).elementType=u,i.lanes=b,i.stateNode={isHidden:!1},i}function Tp(i,l,b){return(i=Bo(6,i,null,l)).lanes=b,i}function qh(i,l,b){return(l=Bo(4,i.children!==null?i.children:[],i.key,l)).lanes=b,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}function ry(i,l,b,C,$){this.tag=l,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ec(0),this.expirationTimes=ec(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ec(0),this.identifierPrefix=C,this.onRecoverableError=$,this.mutableSourceEagerHydrationData=null}function zn(i,l,b,C,$,ee,ue,Ce,Me){return i=new ry(i,l,b,Ce,Me),l===1?(l=1,ee===!0&&(l|=8)):l=0,ee=Bo(3,null,null,l),i.current=ee,ee.stateNode=i,ee.memoizedState={element:C,isDehydrated:b,cache:null,transitions:null,pendingSuspenseBoundaries:null},yp(ee),i}function ny(i){if(!i)return xl;e:{if(Va(i=i._reactInternals)!==i||i.tag!==1)throw Error(f(170));var l=i;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(Ko(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(f(171))}if(i.tag===1){var b=i.type;if(Ko(b))return Id(i,b,l)}return l}function Sc(i,l,b,C,$,ee,ue,Ce,Me){return(i=zn(b,C,!0,i,0,ee,0,Ce,Me)).context=ny(null),b=i.current,(ee=Ns(C=to(),$=Tl(b))).callback=l??null,Ts(b,ee,$),i.current.lanes=$,Ao(i,$,C),$o(i,C),i}function Uh(i,l,b,C){var $=l.current,ee=to(),ue=Tl($);return b=ny(b),l.context===null?l.context=b:l.pendingContext=b,(l=Ns(ee,ue)).payload={element:i},(C=C===void 0?null:C)!==null&&(l.callback=C),(i=Ts($,l,ue))!==null&&(Lo(i,$,ue,ee),hu(i,$,ue)),ue}function Ml(i){return(i=i.current).child?(i.child.tag,i.child.stateNode):null}function Rl(i,l){if((i=i.memoizedState)!==null&&i.dehydrated!==null){var b=i.retryLane;i.retryLane=b!==0&&b6?X-6:0),ie=6;ie>",M[z]!=null?_.apply(void 0,[M,z,K,Y,B].concat(te)):j?new Error("Required "+Y+" `"+B+"` was not specified in `"+K+"`."):void 0}var I=T.bind(null,!1);return I.isRequired=T.bind(null,!0),I}function S(_,T){return(function(j,M){return g((function(K,Y,B,X,te){var ie=K[Y];if(!M(ie)){var se=m(ie);return new Error("Invalid "+X+" `"+te+"` of type `"+se+"` supplied to `"+B+"`, expected `"+j+"`.")}return null}))})("Iterable."+_,(function(I){return v.Iterable.isIterable(I)&&T(I)}))}(h={listOf:y,mapOf:y,orderedMapOf:y,setOf:y,orderedSetOf:y,stackOf:y,iterableOf:y,recordOf:y,shape:y,contains:y,mapContains:y,orderedMapContains:y,list:f,map:f,orderedMap:f,set:f,orderedSet:f,stack:f,seq:f,record:f,iterable:f}).iterable.indexed=S("Indexed",v.Iterable.isIndexed),h.iterable.keyed=S("Keyed",v.Iterable.isKeyed),w.exports=h},15287(w,N){var s=Symbol.for("react.element"),h=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),g=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),T=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),j=Symbol.iterator,M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,K={};function Y(Se,De,Ke){this.props=Se,this.context=De,this.refs=K,this.updater=Ke||M}function B(){}function X(Se,De,Ke){this.props=Se,this.context=De,this.refs=K,this.updater=Ke||M}Y.prototype.isReactComponent={},Y.prototype.setState=function(Se,De){if(typeof Se!="object"&&typeof Se!="function"&&Se!=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,Se,De,"setState")},Y.prototype.forceUpdate=function(Se){this.updater.enqueueForceUpdate(this,Se,"forceUpdate")},B.prototype=Y.prototype;var te=X.prototype=new B;te.constructor=X,z(te,Y.prototype),te.isPureReactComponent=!0;var ie=Array.isArray,se=Object.prototype.hasOwnProperty,Te={current:null},he={key:!0,ref:!0,__self:!0,__source:!0};function ge(Se,De,Ke){var ft,Nt={},Wt=null,H=null;if(De!=null)for(ft in De.ref!==void 0&&(H=De.ref),De.key!==void 0&&(Wt=""+De.key),De)se.call(De,ft)&&!he.hasOwnProperty(ft)&&(Nt[ft]=De[ft]);var we=arguments.length-2;if(we===1)Nt.children=Ke;else if(12?"one of ".concat(f," ").concat(v.slice(0,y-1).join(", "),", or ")+v[y-1]:y===2?"one of ".concat(f," ").concat(v[0]," or ").concat(v[1]):"of ".concat(f," ").concat(v[0])}return"of ".concat(f," ").concat(String(v))}s("ERR_INVALID_OPT_VALUE",(function(v,f){return'The value "'+f+'" is invalid for option "'+v+'"'}),TypeError),s("ERR_INVALID_ARG_TYPE",(function(v,f,y){var m,g;if(typeof f=="string"&&(function(T,I,j){return T.substr(0,I.length)===I})(f,"not ")?(m="must not be",f=f.replace(/^not /,"")):m="must be",(function(T,I,j){return(j===void 0||j>T.length)&&(j=T.length),T.substring(j-I.length,j)===I})(v," argument"))g="The ".concat(v," ").concat(m," ").concat(h(f,"type"));else{var S=(function(T,I,j){return typeof j!="number"&&(j=0),!(j+I.length>T.length)&&T.indexOf(I,j)!==-1})(v,".")?"property":"argument";g='The "'.concat(v,'" ').concat(S," ").concat(m," ").concat(h(f,"type"))}return g+=". Received type ".concat(typeof y)}),TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",(function(v){return"The "+v+" method is not implemented"})),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",(function(v){return"Cannot call "+v+" after a stream was destroyed"})),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",(function(v){return"Unknown encoding: "+v}),TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),w.exports.F=N},25382(w,N,s){var h=s(65606),v=Object.keys||function(j){var M=[];for(var z in j)M.push(z);return M};w.exports=_;var f=s(45412),y=s(16708);s(56698)(_,f);for(var m=v(y.prototype),g=0;g0)if(typeof we=="string"||Tt.objectMode||Object.getPrototypeOf(we)===m.prototype||(we=(function(Sr){return m.from(Sr)})(we)),mt)Tt.endEmitted?se(H,new ie):Ve(H,Tt,we,!0);else if(Tt.ended)se(H,new X);else{if(Tt.destroyed)return!1;Tt.reading=!1,Tt.decoder&&!ct?(we=Tt.decoder.write(we),Tt.objectMode||we.length!==0?Ve(H,Tt,we,!1):Re(H,Tt)):Ve(H,Tt,we,!1)}else mt||(Tt.reading=!1,Re(H,Tt));return!Tt.ended&&(Tt.lengthwe.highWaterMark&&(we.highWaterMark=(function(mt){return mt>=He?mt=He:(mt--,mt|=mt>>>1,mt|=mt>>>2,mt|=mt>>>4,mt|=mt>>>8,mt|=mt>>>16,mt++),mt})(H)),H<=we.length?H:we.ended?we.length:(we.needReadable=!0,0))}function nt(H){var we=H._readableState;S("emitReadable",we.needReadable,we.emittedReadable),we.needReadable=!1,we.emittedReadable||(S("emitReadable",we.flowing),we.emittedReadable=!0,v.nextTick(gt,H))}function gt(H){var we=H._readableState;S("emitReadable_",we.destroyed,we.length,we.ended),we.destroyed||!we.length&&!we.ended||(H.emit("readable"),we.emittedReadable=!1),we.needReadable=!we.flowing&&!we.ended&&we.length<=we.highWaterMark,De(H)}function Re(H,we){we.readingMore||(we.readingMore=!0,v.nextTick(u,H,we))}function u(H,we){for(;!we.reading&&!we.ended&&(we.length0,we.resumeScheduled&&!we.paused?we.flowing=!0:H.listenerCount("data")>0&&H.resume()}function Xe(H){S("readable nexttick read 0"),H.read(0)}function Se(H,we){S("resume",we.reading),we.reading||H.read(0),we.resumeScheduled=!1,H.emit("resume"),De(H),we.flowing&&!we.reading&&H.read(0)}function De(H){var we=H._readableState;for(S("flow",we.flowing);we.flowing&&H.read()!==null;);}function Ke(H,we){return we.length===0?null:(we.objectMode?ct=we.buffer.shift():!H||H>=we.length?(ct=we.decoder?we.buffer.join(""):we.buffer.length===1?we.buffer.first():we.buffer.concat(we.length),we.buffer.clear()):ct=we.buffer.consume(H,we.decoder),ct);var ct}function ft(H){var we=H._readableState;S("endReadable",we.endEmitted),we.endEmitted||(we.ended=!0,v.nextTick(Nt,we,H))}function Nt(H,we){if(S("endReadableNT",H.endEmitted,H.length),!H.endEmitted&&H.length===0&&(H.endEmitted=!0,we.readable=!1,we.emit("end"),H.autoDestroy)){var ct=we._writableState;(!ct||ct.autoDestroy&&ct.finished)&&we.destroy()}}function Wt(H,we){for(var ct=0,mt=H.length;ct=we.highWaterMark:we.length>0)||we.ended))return S("read: emitReadable",we.length,we.ended),we.length===0&&we.ended?ft(this):nt(this),null;if((H=qe(H,we))===0&&we.ended)return we.length===0&&ft(this),null;var mt,ur=we.needReadable;return S("need readable",ur),(we.length===0||we.length-H0?Ke(H,we):null)===null?(we.needReadable=we.length<=we.highWaterMark,H=0):(we.length-=H,we.awaitDrain=0),we.length===0&&(we.ended||(we.needReadable=!0),ct!==H&&we.ended&&ft(this)),mt!==null&&this.emit("data",mt),mt},ge.prototype._read=function(H){se(this,new te("_read()"))},ge.prototype.pipe=function(H,we){var ct=this,mt=this._readableState;switch(mt.pipesCount){case 0:mt.pipes=H;break;case 1:mt.pipes=[mt.pipes,H];break;default:mt.pipes.push(H)}mt.pipesCount+=1,S("pipe count=%d opts=%j",mt.pipesCount,we);var ur=(!we||we.end!==!1)&&H!==v.stdout&&H!==v.stderr?Tt:U;function ar(Z,ne){S("onunpipe"),Z===ct&&ne&&ne.hasUnpiped===!1&&(ne.hasUnpiped=!0,(function(){S("cleanup"),H.removeListener("close",Zt),H.removeListener("finish",pe),H.removeListener("drain",Gt),H.removeListener("error",yt),H.removeListener("unpipe",ar),ct.removeListener("end",Tt),ct.removeListener("end",U),ct.removeListener("data",kt),Sr=!0,!mt.awaitDrain||H._writableState&&!H._writableState.needDrain||Gt()})())}function Tt(){S("onend"),H.end()}mt.endEmitted?v.nextTick(ur):ct.once("end",ur),H.on("unpipe",ar);var Gt=(function(ne){return function(){var Ee=ne._readableState;S("pipeOnDrain",Ee.awaitDrain),Ee.awaitDrain&&Ee.awaitDrain--,Ee.awaitDrain===0&&f(ne,"data")&&(Ee.flowing=!0,De(ne))}})(ct);H.on("drain",Gt);var Sr=!1;function kt(Z){S("ondata");var ne=H.write(Z);S("dest.write",ne),ne===!1&&((mt.pipesCount===1&&mt.pipes===H||mt.pipesCount>1&&Wt(mt.pipes,H)!==-1)&&!Sr&&(S("false write response, pause",mt.awaitDrain),mt.awaitDrain++),ct.pause())}function yt(Z){S("onerror",Z),U(),H.removeListener("error",yt),f(H,"error")===0&&se(H,Z)}function Zt(){H.removeListener("finish",pe),U()}function pe(){S("onfinish"),H.removeListener("close",Zt),U()}function U(){S("unpipe"),ct.unpipe(H)}return ct.on("data",kt),(function(ne,ye,Ee){if(typeof ne.prependListener=="function")return ne.prependListener(ye,Ee);ne._events&&ne._events[ye]?Array.isArray(ne._events[ye])?ne._events[ye].unshift(Ee):ne._events[ye]=[Ee,ne._events[ye]]:ne.on(ye,Ee)})(H,"error",yt),H.once("close",Zt),H.once("finish",pe),H.emit("pipe",ct),mt.flowing||(S("pipe resume"),ct.resume()),H},ge.prototype.unpipe=function(H){var we=this._readableState,ct={hasUnpiped:!1};if(we.pipesCount===0)return this;if(we.pipesCount===1)return H&&H!==we.pipes||(H||(H=we.pipes),we.pipes=null,we.pipesCount=0,we.flowing=!1,H&&H.emit("unpipe",this,ct)),this;if(!H){var mt=we.pipes,ur=we.pipesCount;we.pipes=null,we.pipesCount=0,we.flowing=!1;for(var ar=0;ar0,mt.flowing!==!1&&this.resume()):H==="readable"&&(mt.endEmitted||mt.readableListening||(mt.readableListening=mt.needReadable=!0,mt.flowing=!1,mt.emittedReadable=!1,S("on readable",mt.length,mt.reading),mt.length?nt(this):mt.reading||v.nextTick(Xe,this))),ct},ge.prototype.addListener=ge.prototype.on,ge.prototype.removeListener=function(H,we){var ct=y.prototype.removeListener.call(this,H,we);return H==="readable"&&v.nextTick(at,this),ct},ge.prototype.removeAllListeners=function(H){var we=y.prototype.removeAllListeners.apply(this,arguments);return H!=="readable"&&H!==void 0||v.nextTick(at,this),we},ge.prototype.resume=function(){var H=this._readableState;return H.flowing||(S("resume"),H.flowing=!H.readableListening,(function(ct,mt){mt.resumeScheduled||(mt.resumeScheduled=!0,v.nextTick(Se,ct,mt))})(this,H)),H.paused=!1,this},ge.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},ge.prototype.wrap=function(H){var we=this,ct=this._readableState,mt=!1;for(var ur in H.on("end",(function(){if(S("wrapped end"),ct.decoder&&!ct.ended){var Tt=ct.decoder.end();Tt&&Tt.length&&we.push(Tt)}we.push(null)})),H.on("data",(function(Tt){S("wrapped data"),ct.decoder&&(Tt=ct.decoder.write(Tt)),ct.objectMode&&Tt==null||(ct.objectMode||Tt&&Tt.length)&&(we.push(Tt)||(mt=!0,H.pause()))})),H)this[ur]===void 0&&typeof H[ur]=="function"&&(this[ur]=(function(Gt){return function(){return H[Gt].apply(H,arguments)}})(ur));for(var ar=0;ar-1))throw new ie(u);return this._writableState.defaultEncoding=u,this},Object.defineProperty(ge.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ge.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ge.prototype._write=function(Re,u,at){at(new z("_write()"))},ge.prototype._writev=null,ge.prototype.end=function(Re,u,at){var Xe=this._writableState;return typeof Re=="function"?(at=Re,Re=null,u=null):typeof u=="function"&&(at=u,u=null),Re!=null&&this.write(Re,u),Xe.corked&&(Xe.corked=1,this.uncork()),Xe.ending||(function(De,Ke,ft){Ke.ending=!0,gt(De,Ke),ft&&(Ke.finished?v.nextTick(ft):De.once("finish",ft)),Ke.ended=!0,De.writable=!1})(this,Xe,at),this},Object.defineProperty(ge.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ge.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(u){this._writableState&&(this._writableState.destroyed=u)}}),ge.prototype.destroy=T.destroy,ge.prototype._undestroy=T.undestroy,ge.prototype._destroy=function(Re,u){u(Re)}},2955(w,N,s){var h,v=s(65606);function f(X,te,ie){return(te=(function(Te){var he=(function(ke,Ve){if(typeof ke!="object"||ke===null)return ke;var He=ke[Symbol.toPrimitive];if(He!==void 0){var qe=He.call(ke,Ve);if(typeof qe!="object")return qe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ve==="string"?String:Number)(ke)})(Te,"string");return typeof he=="symbol"?he:String(he)})(te))in X?Object.defineProperty(X,te,{value:ie,enumerable:!0,configurable:!0,writable:!0}):X[te]=ie,X}var y=s(86238),m=Symbol("lastResolve"),g=Symbol("lastReject"),S=Symbol("error"),_=Symbol("ended"),T=Symbol("lastPromise"),I=Symbol("handlePromise"),j=Symbol("stream");function M(X,te){return{value:X,done:te}}function z(X){var te=X[m];if(te!==null){var ie=X[j].read();ie!==null&&(X[T]=null,X[m]=null,X[g]=null,te(M(ie,!1)))}}function K(X){v.nextTick(z,X)}var Y=Object.getPrototypeOf((function(){})),B=Object.setPrototypeOf((f(h={get stream(){return this[j]},next:function(){var te=this,ie=this[S];if(ie!==null)return Promise.reject(ie);if(this[_])return Promise.resolve(M(void 0,!0));if(this[j].destroyed)return new Promise((function(ge,ke){v.nextTick((function(){te[S]?ke(te[S]):ge(M(void 0,!0))}))}));var se,Te=this[T];if(Te)se=new Promise((function(ke,Ve){return function(He,qe){ke.then((function(){Ve[_]?He(M(void 0,!0)):Ve[I](He,qe)}),qe)}})(Te,this));else{var he=this[j].read();if(he!==null)return Promise.resolve(M(he,!1));se=new Promise(this[I])}return this[T]=se,se}},Symbol.asyncIterator,(function(){return this})),f(h,"return",(function(){var te=this;return new Promise((function(ie,se){te[j].destroy(null,(function(Te){Te?se(Te):ie(M(void 0,!0))}))}))})),h),Y);w.exports=function(te){var ie,se=Object.create(B,(f(ie={},j,{value:te,writable:!0}),f(ie,m,{value:null,writable:!0}),f(ie,g,{value:null,writable:!0}),f(ie,S,{value:null,writable:!0}),f(ie,_,{value:te._readableState.endEmitted,writable:!0}),f(ie,I,{value:function(he,ge){var ke=se[j].read();ke?(se[T]=null,se[m]=null,se[g]=null,he(M(ke,!1))):(se[m]=he,se[g]=ge)},writable:!0}),ie));return se[T]=null,y(te,(function(Te){if(Te&&Te.code!=="ERR_STREAM_PREMATURE_CLOSE"){var he=se[g];return he!==null&&(se[T]=null,se[m]=null,se[g]=null,he(Te)),void(se[S]=Te)}var ge=se[m];ge!==null&&(se[T]=null,se[m]=null,se[g]=null,ge(M(void 0,!0))),se[_]=!0})),te.on("readable",K.bind(null,se)),se}},80345(w,N,s){function h(T,I){var j=Object.keys(T);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(T);I&&(M=M.filter((function(z){return Object.getOwnPropertyDescriptor(T,z).enumerable}))),j.push.apply(j,M)}return j}function v(T){for(var I=1;I0?this.tail.next=M:this.head=M,this.tail=M,++this.length}},{key:"unshift",value:function(j){var M={data:j,next:this.head};this.length===0&&(this.tail=M),this.head=M,++this.length}},{key:"shift",value:function(){if(this.length!==0){var j=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,j}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(j){if(this.length===0)return"";for(var M=this.head,z=""+M.data;M=M.next;)z+=j+M.data;return z}},{key:"concat",value:function(j){if(this.length===0)return g.alloc(0);for(var M,z,K,Y=g.allocUnsafe(j>>>0),B=this.head,X=0;B;)M=B.data,z=Y,K=X,g.prototype.copy.call(M,z,K),X+=B.data.length,B=B.next;return Y}},{key:"consume",value:function(j,M){var z;return jY.length?Y.length:j;if(B===Y.length?K+=Y:K+=Y.slice(0,j),(j-=B)===0){B===Y.length?(++z,M.next?this.head=M.next:this.head=this.tail=null):(this.head=M,M.data=Y.slice(B));break}++z}return this.length-=z,K}},{key:"_getBuffer",value:function(j){var M=g.allocUnsafe(j),z=this.head,K=1;for(z.data.copy(M),j-=z.data.length;z=z.next;){var Y=z.data,B=j>Y.length?Y.length:j;if(Y.copy(M,M.length-j,0,B),(j-=B)===0){B===Y.length?(++K,z.next?this.head=z.next:this.head=this.tail=null):(this.head=z,z.data=Y.slice(B));break}++K}return this.length-=K,M}},{key:_,value:function(j,M){return S(this,v(v({},M),{},{depth:0,customInspect:!1}))}}]),T})()},75896(w,N,s){var h=s(65606);function v(m,g){y(m,g),f(m)}function f(m){m._writableState&&!m._writableState.emitClose||m._readableState&&!m._readableState.emitClose||m.emit("close")}function y(m,g){m.emit("error",g)}w.exports={destroy:function(g,S){var _=this,T=this._readableState&&this._readableState.destroyed,I=this._writableState&&this._writableState.destroyed;return T||I?(S?S(g):g&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,h.nextTick(y,this,g)):h.nextTick(y,this,g)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,(function(j){!S&&j?_._writableState?_._writableState.errorEmitted?h.nextTick(f,_):(_._writableState.errorEmitted=!0,h.nextTick(v,_,j)):h.nextTick(v,_,j):S?(h.nextTick(f,_),S(j)):h.nextTick(f,_)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(g,S){var _=g._readableState,T=g._writableState;_&&_.autoDestroy||T&&T.autoDestroy?g.destroy(S):g.emit("error",S)}}},86238(w,N,s){var h=s(86048).F.ERR_STREAM_PREMATURE_CLOSE;function v(){}w.exports=function f(y,m,g){if(typeof m=="function")return f(y,null,m);m||(m={}),g=(function(te){var ie=!1;return function(){if(!ie){ie=!0;for(var se=arguments.length,Te=new Array(se),he=0;he0,(function(te){M||(M=te),te&&K.forEach(g),X||(K.forEach(g),z(M))}))}));return I.reduce(S)}},65291(w,N,s){var h=s(86048).F.ERR_INVALID_OPT_VALUE;w.exports={getHighWaterMark:function(f,y,m,g){var S=(function(T,I,j){return T.highWaterMark!=null?T.highWaterMark:I?T[j]:null})(y,g,m);if(S!=null){if(!isFinite(S)||Math.floor(S)!==S||S<0)throw new h(g?m:"highWaterMark",S);return Math.floor(S)}return f.objectMode?16:16384}}},40345(w,N,s){w.exports=s(37007).EventEmitter},84977(w,N,s){Object.defineProperty(N,"__esModule",{value:!0});var h=(function(y){return y&&y.__esModule?y:{default:y}})(s(49568)),v=s(55674);N.default=function(f){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.Map,m=Object.keys(f);return function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y(),S=arguments[1];return g.withMutations((function(_){m.forEach((function(T){var I=(0,f[T])(_.get(T),S);(0,v.validateNextState)(I,T,S),_.set(T,I)}))}))}},w.exports=N.default},89593(w,N,s){N.H=void 0;var h=(function(f){return f&&f.__esModule?f:{default:f}})(s(84977));N.H=h.default},48590(w,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=function(s){return s&&s.type==="@@redux/INIT"?"initialState argument passed to createStore":"previous state received by the reducer"},w.exports=N.default},82261(w,N,s){Object.defineProperty(N,"__esModule",{value:!0});var h=f(s(49568)),v=f(s(48590));function f(y){return y&&y.__esModule?y:{default:y}}N.default=function(y,m,g){var S=Object.keys(m);if(!S.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";var _=(0,v.default)(g);if(h.default.isImmutable?!h.default.isImmutable(y):!h.default.Iterable.isIterable(y))return"The "+_+' is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "'+S.join('", "')+'".';var T=y.toSeq().keySeq().toArray().filter((function(I){return!m.hasOwnProperty(I)}));return T.length>0?"Unexpected "+(T.length===1?"property":"properties")+' "'+T.join('", "')+'" found in '+_+'. Expected to find one of the known reducer property names instead: "'+S.join('", "')+'". Unexpected properties will be ignored.':null},w.exports=N.default},55674(w,N,s){Object.defineProperty(N,"__esModule",{value:!0}),N.validateNextState=N.getUnexpectedInvocationParameterMessage=N.getStateName=void 0;var h=y(s(48590)),v=y(s(82261)),f=y(s(27374));function y(m){return m&&m.__esModule?m:{default:m}}N.getStateName=h.default,N.getUnexpectedInvocationParameterMessage=v.default,N.validateNextState=f.default},27374(w,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=function(s,h,v){if(s===void 0)throw new Error('Reducer "'+h+'" returned undefined when handling "'+v.type+'" action. To ignore an action, you must explicitly return the previous state.')},w.exports=N.default},75208(w){var N,s="";w.exports=function(v,f){if(typeof v!="string")throw new TypeError("expected a string");if(f===1)return v;if(f===2)return v+v;var y=v.length*f;if(N!==v||N===void 0)N=v,s="";else if(s.length>=y)return s.substr(0,y);for(;y>s.length&&f>1;)1&f&&(s+=v),f>>=1,v+=v;return s=(s+=v).substr(0,y)}},92063(w){w.exports=function(s,h){if(h=h.split(":")[0],!(s=+s))return!1;switch(h){case"http":case"ws":return s!==80;case"https":case"wss":return s!==443;case"ftp":return s!==21;case"gopher":return s!==70;case"file":return!1}return s!==0}},27096(w,N,s){const h=s(87586),v=s(6205),f=s(10023),y=s(8048);w.exports=m=>{var g,S,_=0,T={type:v.ROOT,stack:[]},I=T,j=T.stack,M=[],z=he=>{h.error(m,"Nothing to repeat at column "+(he-1))},K=h.strToChars(m);for(g=K.length;_({type:h.POSITION,value:"b"}),N.nonWordBoundary=()=>({type:h.POSITION,value:"B"}),N.begin=()=>({type:h.POSITION,value:"^"}),N.end=()=>({type:h.POSITION,value:"$"})},10023(w,N,s){const h=s(6205),v=()=>[{type:h.RANGE,from:48,to:57}],f=()=>[{type:h.CHAR,value:95},{type:h.RANGE,from:97,to:122},{type:h.RANGE,from:65,to:90}].concat(v()),y=()=>[{type:h.CHAR,value:9},{type:h.CHAR,value:10},{type:h.CHAR,value:11},{type:h.CHAR,value:12},{type:h.CHAR,value:13},{type:h.CHAR,value:32},{type:h.CHAR,value:160},{type:h.CHAR,value:5760},{type:h.RANGE,from:8192,to:8202},{type:h.CHAR,value:8232},{type:h.CHAR,value:8233},{type:h.CHAR,value:8239},{type:h.CHAR,value:8287},{type:h.CHAR,value:12288},{type:h.CHAR,value:65279}];N.words=()=>({type:h.SET,set:f(),not:!1}),N.notWords=()=>({type:h.SET,set:f(),not:!0}),N.ints=()=>({type:h.SET,set:v(),not:!1}),N.notInts=()=>({type:h.SET,set:v(),not:!0}),N.whitespace=()=>({type:h.SET,set:y(),not:!1}),N.notWhitespace=()=>({type:h.SET,set:y(),not:!0}),N.anyChar=()=>({type:h.SET,set:[{type:h.CHAR,value:10},{type:h.CHAR,value:13},{type:h.CHAR,value:8232},{type:h.CHAR,value:8233}],not:!0})},6205(w){w.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},87586(w,N,s){const h=s(6205),v=s(10023),f={0:0,t:9,n:10,v:11,f:12,r:13};N.strToChars=function(y){return y=y.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,(function(m,g,S,_,T,I,j,M){if(S)return m;var z=g?8:_?parseInt(_,16):T?parseInt(T,16):I?parseInt(I,8):j?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(j):f[M],K=String.fromCharCode(z);return/[[\]{}^$.|?*+()]/.test(K)&&(K="\\"+K),K}))},N.tokenizeClass=(y,m)=>{for(var g,S,_=[],T=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;(g=T.exec(y))!=null;)if(g[1])_.push(v.words());else if(g[2])_.push(v.ints());else if(g[3])_.push(v.whitespace());else if(g[4])_.push(v.notWords());else if(g[5])_.push(v.notInts());else if(g[6])_.push(v.notWhitespace());else if(g[7])_.push({type:h.RANGE,from:(g[8]||g[9]).charCodeAt(0),to:g[10].charCodeAt(0)});else{if(!(S=g[12]))return[_,T.lastIndex];_.push({type:h.CHAR,value:S.charCodeAt(0)})}N.error(m,"Unterminated character class")},N.error=(y,m)=>{throw new SyntaxError("Invalid regular expression: /"+y+"/: "+m)}},92861(w,N,s){var h=s(48287),v=h.Buffer;function f(m,g){for(var S in m)g[S]=m[S]}function y(m,g,S){return v(m,g,S)}v.from&&v.alloc&&v.allocUnsafe&&v.allocUnsafeSlow?w.exports=h:(f(h,N),N.Buffer=y),y.prototype=Object.create(v.prototype),f(v,y),y.from=function(m,g,S){if(typeof m=="number")throw new TypeError("Argument must not be a number");return v(m,g,S)},y.alloc=function(m,g,S){if(typeof m!="number")throw new TypeError("Argument must be a number");var _=v(m);return g!==void 0?typeof S=="string"?_.fill(g,S):_.fill(g):_.fill(0),_},y.allocUnsafe=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return v(m)},y.allocUnsafeSlow=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return h.SlowBuffer(m)}},29844(w,N){function s(Xe,Se){var De=Xe.length;Xe.push(Se);e:for(;0>>1,ft=Xe[Ke];if(!(0>>1;Kef(H,De))wef(ct,H)?(Xe[Ke]=ct,Xe[we]=De,Ke=we):(Xe[Ke]=H,Xe[Wt]=De,Ke=Wt);else{if(!(wef(ct,De)))break e;Xe[Ke]=ct,Xe[we]=De,Ke=we}}}return Se}function f(Xe,Se){var De=Xe.sortIndex-Se.sortIndex;return De!==0?De:Xe.id-Se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var y=performance;N.unstable_now=function(){return y.now()}}else{var m=Date,g=m.now();N.unstable_now=function(){return m.now()-g}}var S=[],_=[],T=1,I=null,j=3,M=!1,z=!1,K=!1,Y=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function te(Xe){for(var Se=h(_);Se!==null;){if(Se.callback===null)v(_);else{if(!(Se.startTime<=Xe))break;v(_),Se.sortIndex=Se.expirationTime,s(S,Se)}Se=h(_)}}function ie(Xe){if(K=!1,te(Xe),!z)if(h(S)!==null)z=!0,u(se);else{var Se=h(_);Se!==null&&at(ie,Se.startTime-Xe)}}function se(Xe,Se){z=!1,K&&(K=!1,B(ke),ke=-1),M=!0;var De=j;try{for(te(Se),I=h(S);I!==null&&(!(I.expirationTime>Se)||Xe&&!qe());){var Ke=I.callback;if(typeof Ke=="function"){I.callback=null,j=I.priorityLevel;var ft=Ke(I.expirationTime<=Se);Se=N.unstable_now(),typeof ft=="function"?I.callback=ft:I===h(S)&&v(S),te(Se)}else v(S);I=h(S)}if(I!==null)var Nt=!0;else{var Wt=h(_);Wt!==null&&at(ie,Wt.startTime-Se),Nt=!1}return Nt}finally{I=null,j=De,M=!1}}typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var Te,he=!1,ge=null,ke=-1,Ve=5,He=-1;function qe(){return!(N.unstable_now()-HeXe||125Ke?(Xe.sortIndex=De,s(_,Xe),h(S)===null&&Xe===h(_)&&(K?(B(ke),ke=-1):K=!0,at(ie,De-Ke))):(Xe.sortIndex=ft,s(S,Xe),z||M||(z=!0,u(se))),Xe},N.unstable_shouldYield=qe,N.unstable_wrapCallback=function(Xe){var Se=j;return function(){var De=j;j=Se;try{return Xe.apply(this,arguments)}finally{j=De}}}},69982(w,N,s){w.exports=s(29844)},20334(w,N,s){var h=s(48287).Buffer;class v extends Error{constructor(S){super(v._prepareSuperMessage(S)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,v)}static _prepareSuperMessage(S){try{return JSON.stringify(S)}catch{return String(S)}}}const f=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],y=Symbol(".toJSON called"),m=({from:g,seen:S,to_:_,forceEnumerable:T,maxDepth:I,depth:j})=>{const M=_||(Array.isArray(g)?[]:{});if(S.push(g),j>=I)return M;if(typeof g.toJSON=="function"&&g[y]!==!0)return(z=>{z[y]=!0;const K=z.toJSON();return delete z[y],K})(g);for(const[z,K]of Object.entries(g))typeof h=="function"&&h.isBuffer(K)?M[z]="[object Buffer]":typeof K!="function"&&(K&&typeof K=="object"?S.includes(g[z])?M[z]="[Circular]":(j++,M[z]=m({from:g[z],seen:S.slice(),forceEnumerable:T,maxDepth:I,depth:j})):M[z]=K);for(const{property:z,enumerable:K}of f)typeof g[z]=="string"&&Object.defineProperty(M,z,{value:g[z],enumerable:!!T||K,configurable:!0,writable:!0});return M};w.exports={serializeError:(g,S={})=>{const{maxDepth:_=Number.POSITIVE_INFINITY}=S;return typeof g=="object"&&g!==null?m({from:g,seen:[],forceEnumerable:!0,maxDepth:_,depth:0}):typeof g=="function"?`[Function: ${g.name||"anonymous"}]`:g},deserializeError:(g,S={})=>{const{maxDepth:_=Number.POSITIVE_INFINITY}=S;if(g instanceof Error)return g;if(typeof g=="object"&&g!==null&&!Array.isArray(g)){const T=new Error;return m({from:g,seen:[],to_:T,maxDepth:_,depth:0}),T}return new v(g)}}},96897(w,N,s){var h=s(70453),v=s(30041),f=s(30592)(),y=s(75795),m=s(69675),g=h("%Math.floor%");w.exports=function(_,T){if(typeof _!="function")throw new m("`fn` is not a function");if(typeof T!="number"||T<0||T>4294967295||g(T)!==T)throw new m("`length` must be a positive 32-bit integer");var I=arguments.length>2&&!!arguments[2],j=!0,M=!0;if("length"in _&&y){var z=y(_,"length");z&&!z.configurable&&(j=!1),z&&!z.writable&&(M=!1)}return(j||M||!I)&&(f?v(_,"length",T,!0,!0):v(_,"length",T)),_}},90392(w,N,s){var h=s(92861).Buffer,v=s(15377);function f(y,m){this._block=h.alloc(y),this._finalSize=m,this._blockSize=y,this._len=0}f.prototype.update=function(y,m){y=v(y,m||"utf8");for(var g=this._block,S=this._blockSize,_=y.length,T=this._len,I=0;I<_;){for(var j=T%S,M=Math.min(_-I,S-j),z=0;z=this._finalSize&&(this._update(this._block),this._block.fill(0));var g=8*this._len;if(g<=4294967295)this._block.writeUInt32BE(g,this._blockSize-4);else{var S=(4294967295&g)>>>0,_=(g-S)/4294967296;this._block.writeUInt32BE(_,this._blockSize-8),this._block.writeUInt32BE(S,this._blockSize-4)}this._update(this._block);var T=this._hash();return y?T.toString(y):T},f.prototype._update=function(){throw new Error("_update must be implemented by subclass")},w.exports=f},62802(w,N,s){w.exports=function(v){var f=v.toLowerCase(),y=w.exports[f];if(!y)throw new Error(f+" is not supported (we accept pull requests)");return new y},w.exports.sha=s(27816),w.exports.sha1=s(63737),w.exports.sha224=s(26710),w.exports.sha256=s(24107),w.exports.sha384=s(32827),w.exports.sha512=s(82890)},27816(w,N,s){var h=s(56698),v=s(90392),f=s(92861).Buffer,y=[1518500249,1859775393,-1894007588,-899497514],m=new Array(80);function g(){this.init(),this._w=m,v.call(this,64,56)}function S(T){return T<<30|T>>>2}function _(T,I,j,M){return T===0?I&j|~I&M:T===2?I&j|I&M|j&M:I^j^M}h(g,v),g.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},g.prototype._update=function(T){for(var I,j=this._w,M=0|this._a,z=0|this._b,K=0|this._c,Y=0|this._d,B=0|this._e,X=0;X<16;++X)j[X]=T.readInt32BE(4*X);for(;X<80;++X)j[X]=j[X-3]^j[X-8]^j[X-14]^j[X-16];for(var te=0;te<80;++te){var ie=~~(te/20),se=0|((I=M)<<5|I>>>27)+_(ie,z,K,Y)+B+j[te]+y[ie];B=Y,Y=K,K=S(z),z=M,M=se}this._a=M+this._a|0,this._b=z+this._b|0,this._c=K+this._c|0,this._d=Y+this._d|0,this._e=B+this._e|0},g.prototype._hash=function(){var T=f.allocUnsafe(20);return T.writeInt32BE(0|this._a,0),T.writeInt32BE(0|this._b,4),T.writeInt32BE(0|this._c,8),T.writeInt32BE(0|this._d,12),T.writeInt32BE(0|this._e,16),T},w.exports=g},63737(w,N,s){var h=s(56698),v=s(90392),f=s(92861).Buffer,y=[1518500249,1859775393,-1894007588,-899497514],m=new Array(80);function g(){this.init(),this._w=m,v.call(this,64,56)}function S(I){return I<<5|I>>>27}function _(I){return I<<30|I>>>2}function T(I,j,M,z){return I===0?j&M|~j&z:I===2?j&M|j&z|M&z:j^M^z}h(g,v),g.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},g.prototype._update=function(I){for(var j,M=this._w,z=0|this._a,K=0|this._b,Y=0|this._c,B=0|this._d,X=0|this._e,te=0;te<16;++te)M[te]=I.readInt32BE(4*te);for(;te<80;++te)M[te]=(j=M[te-3]^M[te-8]^M[te-14]^M[te-16])<<1|j>>>31;for(var ie=0;ie<80;++ie){var se=~~(ie/20),Te=S(z)+T(se,K,Y,B)+X+M[ie]+y[se]|0;X=B,B=Y,Y=_(K),K=z,z=Te}this._a=z+this._a|0,this._b=K+this._b|0,this._c=Y+this._c|0,this._d=B+this._d|0,this._e=X+this._e|0},g.prototype._hash=function(){var I=f.allocUnsafe(20);return I.writeInt32BE(0|this._a,0),I.writeInt32BE(0|this._b,4),I.writeInt32BE(0|this._c,8),I.writeInt32BE(0|this._d,12),I.writeInt32BE(0|this._e,16),I},w.exports=g},26710(w,N,s){var h=s(56698),v=s(24107),f=s(90392),y=s(92861).Buffer,m=new Array(64);function g(){this.init(),this._w=m,f.call(this,64,56)}h(g,v),g.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},g.prototype._hash=function(){var S=y.allocUnsafe(28);return S.writeInt32BE(this._a,0),S.writeInt32BE(this._b,4),S.writeInt32BE(this._c,8),S.writeInt32BE(this._d,12),S.writeInt32BE(this._e,16),S.writeInt32BE(this._f,20),S.writeInt32BE(this._g,24),S},w.exports=g},24107(w,N,s){var h=s(56698),v=s(90392),f=s(92861).Buffer,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],m=new Array(64);function g(){this.init(),this._w=m,v.call(this,64,56)}function S(M,z,K){return K^M&(z^K)}function _(M,z,K){return M&z|K&(M|z)}function T(M){return(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10)}function I(M){return(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7)}function j(M){return(M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3}h(g,v),g.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},g.prototype._update=function(M){for(var z,K=this._w,Y=0|this._a,B=0|this._b,X=0|this._c,te=0|this._d,ie=0|this._e,se=0|this._f,Te=0|this._g,he=0|this._h,ge=0;ge<16;++ge)K[ge]=M.readInt32BE(4*ge);for(;ge<64;++ge)K[ge]=0|(((z=K[ge-2])>>>17|z<<15)^(z>>>19|z<<13)^z>>>10)+K[ge-7]+j(K[ge-15])+K[ge-16];for(var ke=0;ke<64;++ke){var Ve=he+I(ie)+S(ie,se,Te)+y[ke]+K[ke]|0,He=T(Y)+_(Y,B,X)|0;he=Te,Te=se,se=ie,ie=te+Ve|0,te=X,X=B,B=Y,Y=Ve+He|0}this._a=Y+this._a|0,this._b=B+this._b|0,this._c=X+this._c|0,this._d=te+this._d|0,this._e=ie+this._e|0,this._f=se+this._f|0,this._g=Te+this._g|0,this._h=he+this._h|0},g.prototype._hash=function(){var M=f.allocUnsafe(32);return M.writeInt32BE(this._a,0),M.writeInt32BE(this._b,4),M.writeInt32BE(this._c,8),M.writeInt32BE(this._d,12),M.writeInt32BE(this._e,16),M.writeInt32BE(this._f,20),M.writeInt32BE(this._g,24),M.writeInt32BE(this._h,28),M},w.exports=g},32827(w,N,s){var h=s(56698),v=s(82890),f=s(90392),y=s(92861).Buffer,m=new Array(160);function g(){this.init(),this._w=m,f.call(this,128,112)}h(g,v),g.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},g.prototype._hash=function(){var S=y.allocUnsafe(48);function _(T,I,j){S.writeInt32BE(T,j),S.writeInt32BE(I,j+4)}return _(this._ah,this._al,0),_(this._bh,this._bl,8),_(this._ch,this._cl,16),_(this._dh,this._dl,24),_(this._eh,this._el,32),_(this._fh,this._fl,40),S},w.exports=g},82890(w,N,s){var h=s(56698),v=s(90392),f=s(92861).Buffer,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],m=new Array(160);function g(){this.init(),this._w=m,v.call(this,128,112)}function S(B,X,te){return te^B&(X^te)}function _(B,X,te){return B&X|te&(B|X)}function T(B,X){return(B>>>28|X<<4)^(X>>>2|B<<30)^(X>>>7|B<<25)}function I(B,X){return(B>>>14|X<<18)^(B>>>18|X<<14)^(X>>>9|B<<23)}function j(B,X){return(B>>>1|X<<31)^(B>>>8|X<<24)^B>>>7}function M(B,X){return(B>>>1|X<<31)^(B>>>8|X<<24)^(B>>>7|X<<25)}function z(B,X){return(B>>>19|X<<13)^(X>>>29|B<<3)^B>>>6}function K(B,X){return(B>>>19|X<<13)^(X>>>29|B<<3)^(B>>>6|X<<26)}function Y(B,X){return B>>>0>>0?1:0}h(g,v),g.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},g.prototype._update=function(B){for(var X=this._w,te=0|this._ah,ie=0|this._bh,se=0|this._ch,Te=0|this._dh,he=0|this._eh,ge=0|this._fh,ke=0|this._gh,Ve=0|this._hh,He=0|this._al,qe=0|this._bl,nt=0|this._cl,gt=0|this._dl,Re=0|this._el,u=0|this._fl,at=0|this._gl,Xe=0|this._hl,Se=0;Se<32;Se+=2)X[Se]=B.readInt32BE(4*Se),X[Se+1]=B.readInt32BE(4*Se+4);for(;Se<160;Se+=2){var De=X[Se-30],Ke=X[Se-30+1],ft=j(De,Ke),Nt=M(Ke,De),Wt=z(De=X[Se-4],Ke=X[Se-4+1]),H=K(Ke,De),we=X[Se-14],ct=X[Se-14+1],mt=X[Se-32],ur=X[Se-32+1],ar=Nt+ct|0,Tt=ft+we+Y(ar,Nt)|0;Tt=(Tt=Tt+Wt+Y(ar=ar+H|0,H)|0)+mt+Y(ar=ar+ur|0,ur)|0,X[Se]=Tt,X[Se+1]=ar}for(var Gt=0;Gt<160;Gt+=2){Tt=X[Gt],ar=X[Gt+1];var Sr=_(te,ie,se),kt=_(He,qe,nt),yt=T(te,He),Zt=T(He,te),pe=I(he,Re),U=I(Re,he),Z=y[Gt],ne=y[Gt+1],ye=S(he,ge,ke),Ee=S(Re,u,at),Fe=Xe+U|0,St=Ve+pe+Y(Fe,Xe)|0;St=(St=(St=St+ye+Y(Fe=Fe+Ee|0,Ee)|0)+Z+Y(Fe=Fe+ne|0,ne)|0)+Tt+Y(Fe=Fe+ar|0,ar)|0;var Bt=Zt+kt|0,Qe=yt+Sr+Y(Bt,Zt)|0;Ve=ke,Xe=at,ke=ge,at=u,ge=he,u=Re,he=Te+St+Y(Re=gt+Fe|0,gt)|0,Te=se,gt=nt,se=ie,nt=qe,ie=te,qe=He,te=St+Qe+Y(He=Fe+Bt|0,Fe)|0}this._al=this._al+He|0,this._bl=this._bl+qe|0,this._cl=this._cl+nt|0,this._dl=this._dl+gt|0,this._el=this._el+Re|0,this._fl=this._fl+u|0,this._gl=this._gl+at|0,this._hl=this._hl+Xe|0,this._ah=this._ah+te+Y(this._al,He)|0,this._bh=this._bh+ie+Y(this._bl,qe)|0,this._ch=this._ch+se+Y(this._cl,nt)|0,this._dh=this._dh+Te+Y(this._dl,gt)|0,this._eh=this._eh+he+Y(this._el,Re)|0,this._fh=this._fh+ge+Y(this._fl,u)|0,this._gh=this._gh+ke+Y(this._gl,at)|0,this._hh=this._hh+Ve+Y(this._hl,Xe)|0},g.prototype._hash=function(){var B=f.allocUnsafe(64);function X(te,ie,se){B.writeInt32BE(te,se),B.writeInt32BE(ie,se+4)}return X(this._ah,this._al,0),X(this._bh,this._bl,8),X(this._ch,this._cl,16),X(this._dh,this._dl,24),X(this._eh,this._el,32),X(this._fh,this._fl,40),X(this._gh,this._gl,48),X(this._hh,this._hl,56),B},w.exports=g},8068(w){var N=(()=>{var s=Object.defineProperty,h=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=(Y,B,X)=>B in Y?s(Y,B,{enumerable:!0,configurable:!0,writable:!0,value:X}):Y[B]=X,S=(Y,B)=>{for(var X in B||(B={}))y.call(B,X)&&g(Y,X,B[X]);if(f)for(var X of f(B))m.call(B,X)&&g(Y,X,B[X]);return Y},_=(Y,B,X)=>g(Y,typeof B!="symbol"?B+"":B,X),T={};((Y,B)=>{for(var X in B)s(Y,X,{get:B[X],enumerable:!0})})(T,{DEFAULT_OPTIONS:()=>j,DEFAULT_UUID_LENGTH:()=>I,default:()=>K});var I=6,j={dictionary:"alphanum",shuffle:!0,debug:!1,length:I,counter:0},M=class{constructor(B={}){_(this,"counter"),_(this,"debug"),_(this,"dict"),_(this,"version"),_(this,"dictIndex",0),_(this,"dictRange",[]),_(this,"lowerBound",0),_(this,"upperBound",0),_(this,"dictLength",0),_(this,"uuidLength"),_(this,"_digit_first_ascii",48),_(this,"_digit_last_ascii",58),_(this,"_alpha_lower_first_ascii",97),_(this,"_alpha_lower_last_ascii",123),_(this,"_hex_last_ascii",103),_(this,"_alpha_upper_first_ascii",65),_(this,"_alpha_upper_last_ascii",91),_(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),_(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),_(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),_(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),_(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),_(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),_(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),_(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),_(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),_(this,"log",((...he)=>{const ge=[...he];ge[0]="[short-unique-id] ".concat(he[0]),this.debug!==!0||typeof console>"u"||console===null||console.log(...ge)})),_(this,"_normalizeDictionary",((he,ge)=>{let ke;if(he&&Array.isArray(he)&&he.length>1)ke=he;else{ke=[],this.dictIndex=0;const Ve="_".concat(he,"_dict_ranges"),He=this._dict_ranges[Ve];let qe=0;for(const[,gt]of Object.entries(He)){const[Re,u]=gt;qe+=Math.abs(u-Re)}ke=new Array(qe);let nt=0;for(const[,gt]of Object.entries(He)){this.dictRange=gt,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const Re=this.lowerBound<=this.upperBound,u=this.lowerBound,at=this.upperBound;if(Re)for(let Xe=u;Xeat;Xe--)ke[nt++]=String.fromCharCode(Xe),this.dictIndex=Xe}ke.length=nt}if(ge)for(let Ve=ke.length-1;Ve>0;Ve--){const He=Math.floor(Math.random()*(Ve+1));[ke[Ve],ke[He]]=[ke[He],ke[Ve]]}return ke})),_(this,"setDictionary",((he,ge)=>{this.dict=this._normalizeDictionary(he,ge),this.dictLength=this.dict.length,this.setCounter(0)})),_(this,"seq",(()=>this.sequentialUUID())),_(this,"sequentialUUID",(()=>{const he=this.dictLength,ge=this.dict;let ke=this.counter;const Ve=[];do{const qe=ke%he;ke=Math.trunc(ke/he),Ve.push(ge[qe])}while(ke!==0);const He=Ve.join("");return this.counter+=1,He})),_(this,"rnd",((he=this.uuidLength||I)=>this.randomUUID(he))),_(this,"randomUUID",((he=this.uuidLength||I)=>{if(he==null||he<1)throw new Error("Invalid UUID Length Provided");const ge=new Array(he),ke=this.dictLength,Ve=this.dict;for(let He=0;Hethis.formattedUUID(he,ge))),_(this,"formattedUUID",((he,ge)=>{const ke={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return he.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(Ve=>{const He=Ve.slice(0,2),qe=Number.parseInt(Ve.slice(2),10);return He==="$s"?ke[He]().padStart(qe,"0"):He==="$t"&&ge?ke[He](qe,ge):ke[He](qe)}))})),_(this,"availableUUIDs",((he=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**he).toFixed(0)))),_(this,"_collisionCache",new Map),_(this,"approxMaxBeforeCollision",((he=this.availableUUIDs(this.uuidLength))=>{const ge=he,ke=this._collisionCache.get(ge);if(ke!==void 0)return ke;const Ve=Number.parseFloat(Math.sqrt(Math.PI/2*he).toFixed(20));return this._collisionCache.set(ge,Ve),Ve})),_(this,"collisionProbability",((he=this.availableUUIDs(this.uuidLength),ge=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(he)/this.availableUUIDs(ge)).toFixed(20)))),_(this,"uniqueness",((he=this.availableUUIDs(this.uuidLength))=>{const ge=Number.parseFloat((1-this.approxMaxBeforeCollision(he)/he).toFixed(20));return ge>1?1:ge<0?0:ge})),_(this,"getVersion",(()=>this.version)),_(this,"stamp",((he,ge)=>{const ke=Math.floor(+(ge||new Date)/1e3).toString(16);if(typeof he=="number"&&he===0)return ke;if(typeof he!="number"||he<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join(` +`));const Ve=he-9,He=Math.round(Math.random()*(Ve>15?15:Ve)),qe=this.randomUUID(Ve);return"".concat(qe.substring(0,He)).concat(ke).concat(qe.substring(He)).concat(He.toString(16))})),_(this,"parseStamp",((he,ge)=>{if(ge&&!/t0|t[1-9]\d{1,}/.test(ge))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const ke=ge?ge.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(He=>{const qe={$r:Re=>[...Array(Re)].map((()=>"r")).join(""),$s:Re=>[...Array(Re)].map((()=>"s")).join(""),$t:Re=>[...Array(Re)].map((()=>"t")).join("")},nt=He.slice(0,2),gt=Number.parseInt(He.slice(2),10);return qe[nt](gt)})).replace(/^(.*?)(t{8,})(.*)$/g,((He,qe,nt)=>he.substring(qe.length,qe.length+nt.length))):he;if(ke.length===8)return new Date(1e3*Number.parseInt(ke,16));if(ke.length<10)throw new Error("Stamp length invalid");const Ve=Number.parseInt(ke.substring(ke.length-1),16);return new Date(1e3*Number.parseInt(ke.substring(Ve,Ve+8),16))})),_(this,"setCounter",(he=>{this.counter=he})),_(this,"validate",((he,ge)=>{const ke=ge?this._normalizeDictionary(ge):this.dict;return he.split("").every((Ve=>ke.includes(Ve)))}));const X=S(S({},j),B);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";const{dictionary:te,shuffle:ie,length:se,counter:Te}=X;this.uuidLength=se,this.setDictionary(te,ie),this.setCounter(Te),this.debug=X.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(this.counter)),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};_(M,"default",M);var z,K=M;return z=T,((Y,B,X,te)=>{if(B&&typeof B=="object"||typeof B=="function")for(let ie of v(B))y.call(Y,ie)||ie===X||s(Y,ie,{get:()=>B[ie],enumerable:!(te=h(B,ie))||te.enumerable});return Y})(s({},"__esModule",{value:!0}),z)})();w.exports=N.default,typeof window<"u"&&(N=N.default)},88310(w,N,s){w.exports=v;var h=s(37007).EventEmitter;function v(){h.call(this)}s(56698)(v,h),v.Readable=s(45412),v.Writable=s(16708),v.Duplex=s(25382),v.Transform=s(74610),v.PassThrough=s(63600),v.finished=s(86238),v.pipeline=s(57758),v.Stream=v,v.prototype.pipe=function(f,y){var m=this;function g(z){f.writable&&f.write(z)===!1&&m.pause&&m.pause()}function S(){m.readable&&m.resume&&m.resume()}m.on("data",g),f.on("drain",S),f._isStdio||y&&y.end===!1||(m.on("end",T),m.on("close",I));var _=!1;function T(){_||(_=!0,f.end())}function I(){_||(_=!0,typeof f.destroy=="function"&&f.destroy())}function j(z){if(M(),h.listenerCount(this,"error")===0)throw z}function M(){m.removeListener("data",g),f.removeListener("drain",S),m.removeListener("end",T),m.removeListener("close",I),m.removeListener("error",j),f.removeListener("error",j),m.removeListener("end",M),m.removeListener("close",M),f.removeListener("close",M)}return m.on("error",j),f.on("error",j),m.on("end",M),m.on("close",M),f.on("close",M),f.emit("pipe",m),f}},83141(w,N,s){var h=s(92861).Buffer,v=h.isEncoding||function(M){switch((M=""+M)&&M.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function f(M){var z;switch(this.encoding=(function(Y){var B=(function(te){if(!te)return"utf8";for(var ie;;)switch(te){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return te;default:if(ie)return;te=(""+te).toLowerCase(),ie=!0}})(Y);if(typeof B!="string"&&(h.isEncoding===v||!v(Y)))throw new Error("Unknown encoding: "+Y);return B||Y})(M),this.encoding){case"utf16le":this.text=g,this.end=S,z=4;break;case"utf8":this.fillLast=m,z=4;break;case"base64":this.text=_,this.end=T,z=3;break;default:return this.write=I,void(this.end=j)}this.lastNeed=0,this.lastTotal=0,this.lastChar=h.allocUnsafe(z)}function y(M){return M<=127?0:M>>5==6?2:M>>4==14?3:M>>3==30?4:M>>6==2?-1:-2}function m(M){var z=this.lastTotal-this.lastNeed,K=(function(B,X,te){if((192&X[0])!=128)return B.lastNeed=0,"�";if(B.lastNeed>1&&X.length>1){if((192&X[1])!=128)return B.lastNeed=1,"�";if(B.lastNeed>2&&X.length>2&&(192&X[2])!=128)return B.lastNeed=2,"�"}})(this,M);return K!==void 0?K:this.lastNeed<=M.length?(M.copy(this.lastChar,z,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(M.copy(this.lastChar,z,0,M.length),void(this.lastNeed-=M.length))}function g(M,z){if((M.length-z)%2==0){var K=M.toString("utf16le",z);if(K){var Y=K.charCodeAt(K.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=M[M.length-2],this.lastChar[1]=M[M.length-1],K.slice(0,-1)}return K}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=M[M.length-1],M.toString("utf16le",z,M.length-1)}function S(M){var z=M&&M.length?this.write(M):"";if(this.lastNeed){var K=this.lastTotal-this.lastNeed;return z+this.lastChar.toString("utf16le",0,K)}return z}function _(M,z){var K=(M.length-z)%3;return K===0?M.toString("base64",z):(this.lastNeed=3-K,this.lastTotal=3,K===1?this.lastChar[0]=M[M.length-1]:(this.lastChar[0]=M[M.length-2],this.lastChar[1]=M[M.length-1]),M.toString("base64",z,M.length-K))}function T(M){var z=M&&M.length?this.write(M):"";return this.lastNeed?z+this.lastChar.toString("base64",0,3-this.lastNeed):z}function I(M){return M.toString(this.encoding)}function j(M){return M&&M.length?this.write(M):""}N.I=f,f.prototype.write=function(M){if(M.length===0)return"";var z,K;if(this.lastNeed){if((z=this.fillLast(M))===void 0)return"";K=this.lastNeed,this.lastNeed=0}else K=0;return K=0?(he>0&&(te.lastNeed=he-1),he):--Te=0?(he>0&&(te.lastNeed=he-2),he):--Te=0?(he>0&&(he===2?he=0:te.lastNeed=he-3),he):0))})(this,z,K);if(!this.lastNeed)return z.toString("utf8",K);this.lastTotal=Y;var B=z.length-(Y-this.lastNeed);return z.copy(this.lastChar,0,B),z.toString("utf8",K,B)},f.prototype.fillLast=function(M){if(this.lastNeed<=M.length)return M.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);M.copy(this.lastChar,this.lastTotal-this.lastNeed,0,M.length),this.lastNeed-=M.length}},15377(w,N,s){var h=s(92861).Buffer,v=s(64634),f=s(74372),y=ArrayBuffer.isView||function(T){try{return f(T),!0}catch{return!1}},m=typeof Uint8Array<"u",g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",S=g&&(h.prototype instanceof Uint8Array||h.TYPED_ARRAY_SUPPORT);w.exports=function(T,I){if(T instanceof h)return T;if(typeof T=="string")return h.from(T,I);if(g&&y(T)){if(T.byteLength===0)return h.alloc(0);if(S){var j=h.from(T.buffer,T.byteOffset,T.byteLength);if(j.byteLength===T.byteLength)return j}var M=T instanceof Uint8Array?T:new Uint8Array(T.buffer,T.byteOffset,T.byteLength),z=h.from(M);if(z.length===T.byteLength)return z}if(m&&T instanceof Uint8Array)return h.from(T);var K=v(T);if(K)for(var Y=0;Y255||~~B!==B)throw new RangeError("Array items must be numbers in the range 0-255.")}if(K||h.isBuffer(T)&&T.constructor&&typeof T.constructor.isBuffer=="function"&&T.constructor.isBuffer(T))return h.from(T);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},16426(w){w.exports=function(){var N=document.getSelection();if(!N.rangeCount)return function(){};for(var s=document.activeElement,h=[],v=0;v=2&&(te=te.slice(2)):z(se)?te=ie[4]:se?Te&&(te=te.slice(2)):ge>=2&&z(X.protocol)&&(te=ie[4]),{protocol:se,slashes:Te||z(se),slashesCount:ge,rest:te}}function Y(B,X,te){if(B=(B=T(B)).replace(y,""),!(this instanceof Y))return new Y(B,X,te);var ie,se,Te,he,ge,ke,Ve=I.slice(),He=typeof X,qe=this,nt=0;for(He!=="object"&&He!=="string"&&(te=X,X=null),te&&typeof te!="function"&&(te=v.parse),ie=!(se=K(B||"",X=M(X))).protocol&&!se.slashes,qe.slashes=se.slashes||ie&&X.slashes,qe.protocol=se.protocol||X.protocol||"",B=se.rest,(se.protocol==="file:"&&(se.slashesCount!==2||_.test(B))||!se.slashes&&(se.protocol||se.slashesCount<2||!z(qe.protocol)))&&(Ve[3]=[/(.*)/,"pathname"]);nt"u"?s.g:globalThis,T=v(),I=y("String.prototype.slice"),j=Object.getPrototypeOf,M=y("Array.prototype.indexOf",!0)||function(Y,B){for(var X=0;X-1?B:B==="Object"&&(function(te){var ie=!1;return h(z,(function(se,Te){if(!ie)try{se(te),ie=I(Te,1)}catch{}})),ie})(Y)}return m?(function(te){var ie=!1;return h(z,(function(se,Te){if(!ie)try{"$"+se(te)===Te&&(ie=I(Te,1))}catch{}})),ie})(Y):null}},26657(w,N,s){var h=s(75208),v=function(g){return/<\/+[^>]+>/.test(g)},f=function(g){return/<[^>]+\/>/.test(g)};function y(m){return v(m)?"ClosingTag":(function(S){return(function(T){return/<[^>!]+>/.test(T)})(S)&&!v(S)&&!f(S)})(m)?"OpeningTag":f(m)?"SelfClosingTag":"Text"}w.exports=function(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=g.indentor,_=g.textNodesOnSameLine,T=0,I=[];S=S||" ";var j=(function(z){return(function(Y){return Y.split(/(<\/?[^>]+>)/g).filter((function(B){return B.trim()!==""}))})(z).map((function(K){return{value:K,type:y(K)}}))})(m).map((function(M,z,K){var Y=M.value,B=M.type;B==="ClosingTag"&&T--;var X=h(S,T),te=X+Y;if(B==="OpeningTag"&&T++,_){var ie=K[z-1],se=K[z-2];B==="ClosingTag"&&ie.type==="Text"&&se.type==="OpeningTag"&&(te=""+X+se.value+ie.value+Y,I.push(z-2,z-1))}return te}));return I.forEach((function(M){return j[M]=null})),j.filter((function(M){return!!M})).join(` +`)}},31499(w){var N={"&":"&",'"':""","'":"'","<":"<",">":">"};w.exports=function(h){return h&&h.replace?h.replace(/([&"<>'])/g,(function(v,f){return N[f]})):h}},19123(w,N,s){var h=s(65606),v=s(31499),f=s(88310).Stream;function y(g,S,_){var T,I=(function(X,te){return new Array(te||0).join(X||"")})(S,_=_||0),j=g;if(typeof g=="object"&&(j=g[T=Object.keys(g)[0]])&&j._elem)return j._elem.name=T,j._elem.icount=_,j._elem.indent=S,j._elem.indents=I,j._elem.interrupt=j,j._elem;var M,z=[],K=[];function Y(B){Object.keys(B).forEach((function(X){z.push((function(ie,se){return ie+'="'+v(se)+'"'})(X,B[X]))}))}switch(typeof j){case"object":if(j===null)break;j._attr&&Y(j._attr),j._cdata&&K.push(("/g,"]]]]>")+"]]>"),j.forEach&&(M=!1,K.push(""),j.forEach((function(B){typeof B=="object"?Object.keys(B)[0]=="_attr"?Y(B._attr):K.push(y(B,S,_+1)):(K.pop(),M=!0,K.push(v(B)))})),M||K.push(""));break;default:K.push(v(j))}return{name:T,interrupt:!1,attributes:z,content:K,icount:_,indents:I,indent:S}}function m(g,S,_){if(typeof S!="object")return g(!1,S);var T=S.interrupt?1:S.content.length;function I(){for(;S.content.length;){var M=S.content.shift();if(M!==void 0){if(j(M))return;m(g,M)}}g(!1,(T>1?S.indents:"")+(S.name?"":"")+(S.indent&&!_?` +`:"")),_&&_()}function j(M){return!!M.interrupt&&(M.interrupt.append=g,M.interrupt.end=I,M.interrupt=!1,g(!0),!0)}if(g(!1,S.indents+(S.name?"<"+S.name:"")+(S.attributes.length?" "+S.attributes.join(" "):"")+(T?S.name?">":"":S.name?"/>":"")+(S.indent&&T>1?` +`:"")),!T)return g(!1,S.indent?` +`:"");j(S)||I()}w.exports=function(S,_){typeof _!="object"&&(_={indent:_});var T=_.stream?new f:null,I="",j=!1,M=_.indent?_.indent===!0?" ":_.indent:"",z=!0;function K(te){z?h.nextTick(te):te()}function Y(te,ie){if(ie!==void 0&&(I+=ie),te&&!j&&(T=T||new f,j=!0),te&&j){var se=I;K((function(){T.emit("data",se)})),I=""}}function B(te,ie){m(Y,y(te,M,M?1:0),ie)}function X(){if(T){var te=I;K((function(){T.emit("data",te),T.emit("end"),T.readable=!1,T.emit("close")}))}}return K((function(){z=!1})),_.declaration&&(function(ie){var se={version:"1.0",encoding:ie.encoding||"UTF-8"};ie.standalone&&(se.standalone=ie.standalone),B({"?xml":{_attr:se}}),I=I.replace("/>","?>")})(_.declaration),S&&S.forEach?S.forEach((function(te,ie){var se;ie+1===S.length&&(se=X),B(te,se)})):B(S,X),T?(T.readable=!0,T):I},w.exports.element=w.exports.Element=function(){var S={_elem:y(Array.prototype.slice.call(arguments)),push:function(_){if(!this.append)throw new Error("not assigned to a parent!");var T=this,I=this._elem.indent;m(this.append,y(_,I,this._elem.icount+(I?1:0)),(function(){T.append(!0)}))},close:function(_){_!==void 0&&this.push(_),this.end&&this.end()}};return S}},86215(w,N){var s,h,v;h=[],s=(function(){var f=function(j){return j&&"getComputedStyle"in window&&window.getComputedStyle(j)["scroll-behavior"]==="smooth"};if(typeof window>"u"||!("document"in window))return{};var y=function(j,M,z){var K;M=M||999,z||z===0||(z=9);var Y=function(he){K=he},B=function(){clearTimeout(K),Y(0)},X=function(he){return Math.max(0,j.getTopOf(he)-z)},te=function(he,ge,ke){if(B(),ge===0||ge&&ge<0||f(j.body))j.toY(he),ke&&ke();else{var Ve=j.getY(),He=Math.max(0,he)-Ve,qe=new Date().getTime();ge=ge||Math.min(Math.abs(He),M),(function nt(){Y(setTimeout((function(){var gt=Math.min(1,(new Date().getTime()-qe)/ge),Re=Math.max(0,Math.floor(Ve+He*(gt<.5?2*gt*gt:gt*(4-2*gt)-1)));j.toY(Re),gt<1&&j.getHeight()+Reqe?ie(he,ge,ke):He+z>gt?te(He-qe+z,ge,ke):ke&&ke()},Te=function(he,ge,ke,Ve){te(Math.max(0,j.getTopOf(he)-j.getHeight()/2+(ke||he.getBoundingClientRect().height/2)),ge,Ve)};return{setup:function(he,ge){return(he===0||he)&&(M=he),(ge===0||ge)&&(z=ge),{defaultDuration:M,edgeOffset:z}},to:ie,toY:te,intoView:se,center:Te,stop:B,moving:function(){return!!K},getY:j.getY,getTopOf:j.getTopOf}},m=document.documentElement,g=function(){return window.scrollY||m.scrollTop},S=y({body:document.scrollingElement||document.body,toY:function(j){window.scrollTo(0,j)},getY:g,getHeight:function(){return window.innerHeight||m.clientHeight},getTopOf:function(j){return j.getBoundingClientRect().top+g()-m.offsetTop}});if(S.createScroller=function(j,M,z){return y({body:j,toY:function(K){j.scrollTop=K},getY:function(){return j.scrollTop},getHeight:function(){return Math.min(j.clientHeight,window.innerHeight||m.clientHeight)},getTopOf:function(K){return K.offsetTop}},M,z)},"addEventListener"in window&&!window.noZensmooth&&!f(document.body)){var _="history"in window&&"pushState"in history,T=_&&"scrollRestoration"in history;T&&(history.scrollRestoration="auto"),window.addEventListener("load",(function(){T&&(setTimeout((function(){history.scrollRestoration="manual"}),9),window.addEventListener("popstate",(function(j){j.state&&"zenscrollY"in j.state&&S.toY(j.state.zenscrollY)}),!1)),window.location.hash&&setTimeout((function(){var j=S.setup().edgeOffset;if(j){var M=document.getElementById(window.location.href.split("#")[1]);if(M){var z=Math.max(0,S.getTopOf(M)-j),K=S.getY()-z;0<=K&&K<9&&window.scrollTo(0,z)}}}),9)}),!1);var I=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",(function(j){for(var M=j.target;M&&M.tagName!=="A";)M=M.parentNode;if(!(!M||j.which!==1||j.shiftKey||j.metaKey||j.ctrlKey||j.altKey)){if(T){var z=history.state&&typeof history.state=="object"?history.state:{};z.zenscrollY=S.getY();try{history.replaceState(z,"")}catch{}}var K=M.getAttribute("href")||"";if(K.indexOf("#")===0&&!I.test(M.className)){var Y=0,B=document.getElementById(K.substring(1));if(K!=="#"){if(!B)return;Y=S.getTopOf(B)}j.preventDefault();var X=function(){window.location=K},te=S.setup().edgeOffset;te&&(Y=Math.max(0,Y-te),_&&(X=function(){history.pushState({},"",K)})),S.toY(Y,null,X)}}}),!1)}return S})(),(v=typeof s=="function"?s.apply(N,h):s)===void 0||(w.exports=v)},15340(){},79838(){},8628(w,N,s){w.exports=s(76343)},48675(w,N,s){w.exports=s(20850)},7666(w,N,s){var h=s(84851),v=s(953);function f(){var y;return w.exports=f=h?v(y=h).call(y):function(m){for(var g=1;g"u"?s.g:globalThis;w.exports=function(){for(var y=[],m=0;mM;)if((j=T[M++])!=j)return!0}else for(;I>M;M++)if((m||M in T)&&T[M]===S)return m||M||0;return!m&&-1}};w.exports={includes:y(!0),indexOf:y(!1)}},93427(w,N,s){var h=s(1907);w.exports=h([].slice)},45807(w,N,s){var h=s(1907),v=h({}.toString),f=h("".slice);w.exports=function(y){return f(v(y),8,-1)}},73948(w,N,s){var h=s(52623),v=s(62250),f=s(45807),y=s(76264)("toStringTag"),m=Object,g=f((function(){return arguments})())==="Arguments";w.exports=h?f:function(S){var _,T,I;return S===void 0?"Undefined":S===null?"Null":typeof(T=(function(j,M){try{return j[M]}catch{}})(_=m(S),y))=="string"?T:g?f(_):(I=f(_))==="Object"&&v(_.callee)?"Arguments":I}},19595(w,N,s){var h=s(49724),v=s(11042),f=s(13846),y=s(74284);w.exports=function(m,g,S){for(var _=v(g),T=y.f,I=f.f,j=0;j<_.length;j++){var M=_[j];h(m,M)||S&&h(S,M)||T(m,M,I(g,M))}}},25735(w,N,s){var h=s(76264)("match");w.exports=function(v){var f=/./;try{"/./"[v](f)}catch{try{return f[h]=!1,"/./"[v](f)}catch{}}return!1}},57382(w,N,s){var h=s(98828);w.exports=!h((function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}))},59550(w){w.exports=function(N,s){return{value:N,done:s}}},61626(w,N,s){var h=s(39447),v=s(74284),f=s(75817);w.exports=h?function(y,m,g){return v.f(y,m,f(1,g))}:function(y,m,g){return y[m]=g,y}},75817(w){w.exports=function(N,s){return{enumerable:!(1&N),configurable:!(2&N),writable:!(4&N),value:s}}},68055(w,N,s){var h=s(61626);w.exports=function(v,f,y,m){return m&&m.enumerable?v[f]=y:h(v,f,y),v}},2532(w,N,s){var h=s(45951),v=Object.defineProperty;w.exports=function(f,y){try{v(h,f,{value:y,configurable:!0,writable:!0})}catch{h[f]=y}return y}},39447(w,N,s){var h=s(98828);w.exports=!h((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},49552(w,N,s){var h=s(45951),v=s(46285),f=h.document,y=v(f)&&v(f.createElement);w.exports=function(m){return y?f.createElement(m):{}}},19287(w){w.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},80376(w){w.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},96794(w,N,s){var h=s(45951).navigator,v=h&&h.userAgent;w.exports=v?String(v):""},20798(w,N,s){var h,v,f=s(45951),y=s(96794),m=f.process,g=f.Deno,S=m&&m.versions||g&&g.version,_=S&&S.v8;_&&(v=(h=_.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!v&&y&&(!(h=y.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=y.match(/Chrome\/(\d+)/))&&(v=+h[1]),w.exports=v},85762(w,N,s){var h=s(1907),v=Error,f=h("".replace),y=String(new v("zxcasd").stack),m=/\n\s*at [^:]*:[^\n]*/,g=m.test(y);w.exports=function(S,_){if(g&&typeof S=="string"&&!v.prepareStackTrace)for(;_--;)S=f(S,m,"");return S}},85884(w,N,s){var h=s(61626),v=s(85762),f=s(23888),y=Error.captureStackTrace;w.exports=function(m,g,S,_){f&&(y?y(m,g):h(m,"stack",v(S,_)))}},23888(w,N,s){var h=s(98828),v=s(75817);w.exports=!h((function(){var f=new Error("a");return!("stack"in f)||(Object.defineProperty(f,"stack",v(1,7)),f.stack!==7)}))},11091(w,N,s){var h=s(45951),v=s(76024),f=s(92361),y=s(62250),m=s(13846).f,g=s(7463),S=s(92046),_=s(28311),T=s(61626),I=s(49724);s(36128);var j=function(M){var z=function(K,Y,B){if(this instanceof z){switch(arguments.length){case 0:return new M;case 1:return new M(K);case 2:return new M(K,Y)}return new M(K,Y,B)}return v(M,this,arguments)};return z.prototype=M.prototype,z};w.exports=function(M,z){var K,Y,B,X,te,ie,se,Te,he,ge=M.target,ke=M.global,Ve=M.stat,He=M.proto,qe=ke?h:Ve?h[ge]:h[ge]&&h[ge].prototype,nt=ke?S:S[ge]||T(S,ge,{})[ge],gt=nt.prototype;for(X in z)Y=!(K=g(ke?X:ge+(Ve?".":"#")+X,M.forced))&&qe&&I(qe,X),ie=nt[X],Y&&(se=M.dontCallGetSet?(he=m(qe,X))&&he.value:qe[X]),te=Y&&se?se:z[X],(K||He||typeof ie!=typeof te)&&(Te=M.bind&&Y?_(te,h):M.wrap&&Y?j(te):He&&y(te)?f(te):te,(M.sham||te&&te.sham||ie&&ie.sham)&&T(Te,"sham",!0),T(nt,X,Te),He&&(I(S,B=ge+"Prototype")||T(S,B,{}),T(S[B],X,te),M.real&>&&(K||!gt[X])&&T(gt,X,te)))}},98828(w){w.exports=function(N){try{return!!N()}catch{return!0}}},76024(w,N,s){var h=s(41505),v=Function.prototype,f=v.apply,y=v.call;w.exports=typeof Reflect=="object"&&Reflect.apply||(h?y.bind(f):function(){return y.apply(f,arguments)})},28311(w,N,s){var h=s(92361),v=s(82159),f=s(41505),y=h(h.bind);w.exports=function(m,g){return v(m),g===void 0?m:f?y(m,g):function(){return m.apply(g,arguments)}}},41505(w,N,s){var h=s(98828);w.exports=!h((function(){var v=(function(){}).bind();return typeof v!="function"||v.hasOwnProperty("prototype")}))},44673(w,N,s){var h=s(1907),v=s(82159),f=s(46285),y=s(49724),m=s(93427),g=s(41505),S=Function,_=h([].concat),T=h([].join),I={};w.exports=g?S.bind:function(M){var z=v(this),K=z.prototype,Y=m(arguments,1),B=function(){var te=_(Y,m(arguments));return this instanceof B?(function(ie,se,Te){if(!y(I,se)){for(var he=[],ge=0;geie;ie++)if((Te=u(K[ie]))&&S(z,Te))return Te;return new M(!1)}X=_(K,te)}for(he=He?K.next:X.next;!(ge=v(he,X)).done;){try{Te=u(ge.value)}catch(at){I(X,"throw",at)}if(typeof Te=="object"&&Te&&S(z,Te))return Te}return new M(!1)}},40154(w,N,s){var h=s(13930),v=s(36624),f=s(29367);w.exports=function(y,m,g){var S,_;v(y);try{if(!(S=f(y,"return"))){if(m==="throw")throw g;return g}S=h(S,y)}catch(T){_=!0,S=T}if(m==="throw")throw g;if(_)throw S;return v(S),g}},47181(w,N,s){var h=s(95116).IteratorPrototype,v=s(58075),f=s(75817),y=s(14840),m=s(93742),g=function(){return this};w.exports=function(S,_,T,I){var j=_+" Iterator";return S.prototype=v(h,{next:f(+!I,T)}),y(S,j,!1,!0),m[j]=g,S}},60183(w,N,s){var h=s(11091),v=s(13930),f=s(7376),y=s(36833),m=s(62250),g=s(47181),S=s(15972),_=s(79192),T=s(14840),I=s(61626),j=s(68055),M=s(76264),z=s(93742),K=s(95116),Y=y.PROPER,B=y.CONFIGURABLE,X=K.IteratorPrototype,te=K.BUGGY_SAFARI_ITERATORS,ie=M("iterator"),se="keys",Te="values",he="entries",ge=function(){return this};w.exports=function(ke,Ve,He,qe,nt,gt,Re){g(He,Ve,qe);var u,at,Xe,Se=function(we){if(we===nt&&Wt)return Wt;if(!te&&we&&we in ft)return ft[we];switch(we){case se:return function(){return new He(this,we)};case Te:return function(){return new He(this,we)};case he:return function(){return new He(this,we)}}return function(){return new He(this)}},De=Ve+" Iterator",Ke=!1,ft=ke.prototype,Nt=ft[ie]||ft["@@iterator"]||nt&&ft[nt],Wt=!te&&Nt||Se(nt),H=Ve==="Array"&&ft.entries||Nt;if(H&&(u=S(H.call(new ke)))!==Object.prototype&&u.next&&(f||S(u)===X||(_?_(u,X):m(u[ie])||j(u,ie,ge)),T(u,De,!0,!0),f&&(z[De]=ge)),Y&&nt===Te&&Nt&&Nt.name!==Te&&(!f&&B?I(ft,"name",Te):(Ke=!0,Wt=function(){return v(Nt,this)})),nt)if(at={values:Se(Te),keys:gt?Wt:Se(se),entries:Se(he)},Re)for(Xe in at)(te||Ke||!(Xe in ft))&&j(ft,Xe,at[Xe]);else h({target:Ve,proto:!0,forced:te||Ke},at);return f&&!Re||ft[ie]===Wt||j(ft,ie,Wt,{name:nt}),z[Ve]=Wt,at}},95116(w,N,s){var h,v,f,y=s(98828),m=s(62250),g=s(46285),S=s(58075),_=s(15972),T=s(68055),I=s(76264),j=s(7376),M=I("iterator"),z=!1;[].keys&&("next"in(f=[].keys())?(v=_(_(f)))!==Object.prototype&&(h=v):z=!0),!g(h)||y((function(){var K={};return h[M].call(K)!==K}))?h={}:j&&(h=S(h)),m(h[M])||T(h,M,(function(){return this})),w.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:z}},93742(w){w.exports={}},20575(w,N,s){var h=s(3121);w.exports=function(v){return h(v.length)}},41176(w){var N=Math.ceil,s=Math.floor;w.exports=Math.trunc||function(v){var f=+v;return(f>0?s:N)(f)}},32096(w,N,s){var h=s(90160);w.exports=function(v,f){return v===void 0?arguments.length<2?"":f:h(v)}},12074(w,N,s){var h=s(72087),v=TypeError;w.exports=function(f){if(h(f))throw new v("The method doesn't accept regular expressions");return f}},29538(w,N,s){var h=s(39447),v=s(1907),f=s(13930),y=s(98828),m=s(2875),g=s(87170),S=s(22574),_=s(39298),T=s(16946),I=Object.assign,j=Object.defineProperty,M=v([].concat);w.exports=!I||y((function(){if(h&&I({b:1},I(j({},"a",{enumerable:!0,get:function(){j(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var z={},K={},Y=Symbol("assign detection"),B="abcdefghijklmnopqrst";return z[Y]=7,B.split("").forEach((function(X){K[X]=X})),I({},z)[Y]!==7||m(I({},K)).join("")!==B}))?function(K,Y){for(var B=_(K),X=arguments.length,te=1,ie=g.f,se=S.f;X>te;)for(var Te,he=T(arguments[te++]),ge=ie?M(m(he),ie(he)):m(he),ke=ge.length,Ve=0;ke>Ve;)Te=ge[Ve++],h&&!f(se,he,Te)||(B[Te]=he[Te]);return B}:I},58075(w,N,s){var h,v=s(36624),f=s(42220),y=s(80376),m=s(38530),g=s(62416),S=s(49552),_=s(92522),T="prototype",I="script",j=_("IE_PROTO"),M=function(){},z=function(B){return"<"+I+">"+B+""},K=function(B){B.write(z("")),B.close();var X=B.parentWindow.Object;return B=null,X},Y=function(){try{h=new ActiveXObject("htmlfile")}catch{}var B,X,te;Y=typeof document<"u"?document.domain&&h?K(h):(X=S("iframe"),te="java"+I+":",X.style.display="none",g.appendChild(X),X.src=String(te),(B=X.contentWindow.document).open(),B.write(z("document.F=Object")),B.close(),B.F):K(h);for(var ie=y.length;ie--;)delete Y[T][y[ie]];return Y()};m[j]=!0,w.exports=Object.create||function(X,te){var ie;return X!==null?(M[T]=v(X),ie=new M,M[T]=null,ie[j]=X):ie=Y(),te===void 0?ie:f.f(ie,te)}},42220(w,N,s){var h=s(39447),v=s(58661),f=s(74284),y=s(36624),m=s(4993),g=s(2875);N.f=h&&!v?Object.defineProperties:function(_,T){y(_);for(var I,j=m(T),M=g(T),z=M.length,K=0;z>K;)f.f(_,I=M[K++],j[I]);return _}},74284(w,N,s){var h=s(39447),v=s(73648),f=s(58661),y=s(36624),m=s(70470),g=TypeError,S=Object.defineProperty,_=Object.getOwnPropertyDescriptor,T="enumerable",I="configurable",j="writable";N.f=h?f?function(z,K,Y){if(y(z),K=m(K),y(Y),typeof z=="function"&&K==="prototype"&&"value"in Y&&j in Y&&!Y[j]){var B=_(z,K);B&&B[j]&&(z[K]=Y.value,Y={configurable:I in Y?Y[I]:B[I],enumerable:T in Y?Y[T]:B[T],writable:!1})}return S(z,K,Y)}:S:function(z,K,Y){if(y(z),K=m(K),y(Y),v)try{return S(z,K,Y)}catch{}if("get"in Y||"set"in Y)throw new g("Accessors not supported");return"value"in Y&&(z[K]=Y.value),z}},13846(w,N,s){var h=s(39447),v=s(13930),f=s(22574),y=s(75817),m=s(4993),g=s(70470),S=s(49724),_=s(73648),T=Object.getOwnPropertyDescriptor;N.f=h?T:function(j,M){if(j=m(j),M=g(M),_)try{return T(j,M)}catch{}if(S(j,M))return y(!v(f.f,j,M),j[M])}},24443(w,N,s){var h=s(23045),v=s(80376).concat("length","prototype");N.f=Object.getOwnPropertyNames||function(y){return h(y,v)}},87170(w,N){N.f=Object.getOwnPropertySymbols},15972(w,N,s){var h=s(49724),v=s(62250),f=s(39298),y=s(92522),m=s(57382),g=y("IE_PROTO"),S=Object,_=S.prototype;w.exports=m?S.getPrototypeOf:function(T){var I=f(T);if(h(I,g))return I[g];var j=I.constructor;return v(j)&&I instanceof j?j.prototype:I instanceof S?_:null}},88280(w,N,s){var h=s(1907);w.exports=h({}.isPrototypeOf)},23045(w,N,s){var h=s(1907),v=s(49724),f=s(4993),y=s(74436).indexOf,m=s(38530),g=h([].push);w.exports=function(S,_){var T,I=f(S),j=0,M=[];for(T in I)!v(m,T)&&v(I,T)&&g(M,T);for(;_.length>j;)v(I,T=_[j++])&&(~y(M,T)||g(M,T));return M}},2875(w,N,s){var h=s(23045),v=s(80376);w.exports=Object.keys||function(y){return h(y,v)}},22574(w,N){var s={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,v=h&&!s.call({1:2},1);N.f=v?function(y){var m=h(this,y);return!!m&&m.enumerable}:s},79192(w,N,s){var h=s(51871),v=s(46285),f=s(74239),y=s(10043);w.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var m,g=!1,S={};try{(m=h(Object.prototype,"__proto__","set"))(S,[]),g=S instanceof Array}catch{}return function(T,I){return f(T),y(I),v(T)&&(g?m(T,I):T.__proto__=I),T}})():void 0)},54878(w,N,s){var h=s(52623),v=s(73948);w.exports=h?{}.toString:function(){return"[object "+v(this)+"]"}},60581(w,N,s){var h=s(13930),v=s(62250),f=s(46285),y=TypeError;w.exports=function(m,g){var S,_;if(g==="string"&&v(S=m.toString)&&!f(_=h(S,m))||v(S=m.valueOf)&&!f(_=h(S,m))||g!=="string"&&v(S=m.toString)&&!f(_=h(S,m)))return _;throw new y("Can't convert object to primitive value")}},11042(w,N,s){var h=s(85582),v=s(1907),f=s(24443),y=s(87170),m=s(36624),g=v([].concat);w.exports=h("Reflect","ownKeys")||function(_){var T=f.f(m(_)),I=y.f;return I?g(T,I(_)):T}},92046(w){w.exports={}},54829(w,N,s){var h=s(74284).f;w.exports=function(v,f,y){y in v||h(v,y,{configurable:!0,get:function(){return f[y]},set:function(m){f[y]=m}})}},74239(w,N,s){var h=s(87136),v=TypeError;w.exports=function(f){if(h(f))throw new v("Can't call method on "+f);return f}},14840(w,N,s){var h=s(52623),v=s(74284).f,f=s(61626),y=s(49724),m=s(54878),g=s(76264)("toStringTag");w.exports=function(S,_,T,I){var j=T?S:S&&S.prototype;j&&(y(j,g)||v(j,g,{configurable:!0,value:_}),I&&!h&&f(j,"toString",m))}},92522(w,N,s){var h=s(85816),v=s(6499),f=h("keys");w.exports=function(y){return f[y]||(f[y]=v(y))}},36128(w,N,s){var h=s(7376),v=s(45951),f=s(2532),y="__core-js_shared__",m=w.exports=v[y]||f(y,{});(m.versions||(m.versions=[])).push({version:"3.40.0",mode:h?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})},85816(w,N,s){var h=s(36128);w.exports=function(v,f){return h[v]||(h[v]=f||{})}},11470(w,N,s){var h=s(1907),v=s(65482),f=s(90160),y=s(74239),m=h("".charAt),g=h("".charCodeAt),S=h("".slice),_=function(T){return function(I,j){var M,z,K=f(y(I)),Y=v(j),B=K.length;return Y<0||Y>=B?T?"":void 0:(M=g(K,Y))<55296||M>56319||Y+1===B||(z=g(K,Y+1))<56320||z>57343?T?m(K,Y):M:T?S(K,Y,Y+2):z-56320+(M-55296<<10)+65536}};w.exports={codeAt:_(!1),charAt:_(!0)}},19846(w,N,s){var h=s(20798),v=s(98828),f=s(45951).String;w.exports=!!Object.getOwnPropertySymbols&&!v((function(){var y=Symbol("symbol detection");return!f(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&h&&h<41}))},34849(w,N,s){var h=s(65482),v=Math.max,f=Math.min;w.exports=function(y,m){var g=h(y);return g<0?v(g+m,0):f(g,m)}},4993(w,N,s){var h=s(16946),v=s(74239);w.exports=function(f){return h(v(f))}},65482(w,N,s){var h=s(41176);w.exports=function(v){var f=+v;return f!=f||f===0?0:h(f)}},3121(w,N,s){var h=s(65482),v=Math.min;w.exports=function(f){var y=h(f);return y>0?v(y,9007199254740991):0}},39298(w,N,s){var h=s(74239),v=Object;w.exports=function(f){return v(h(f))}},46028(w,N,s){var h=s(13930),v=s(46285),f=s(25594),y=s(29367),m=s(60581),g=s(76264),S=TypeError,_=g("toPrimitive");w.exports=function(T,I){if(!v(T)||f(T))return T;var j,M=y(T,_);if(M){if(I===void 0&&(I="default"),j=h(M,T,I),!v(j)||f(j))return j;throw new S("Can't convert object to primitive value")}return I===void 0&&(I="number"),m(T,I)}},70470(w,N,s){var h=s(46028),v=s(25594);w.exports=function(f){var y=h(f,"string");return v(y)?y:y+""}},52623(w,N,s){var h={};h[s(76264)("toStringTag")]="z",w.exports=String(h)==="[object z]"},90160(w,N,s){var h=s(73948),v=String;w.exports=function(f){if(h(f)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return v(f)}},4640(w){var N=String;w.exports=function(s){try{return N(s)}catch{return"Object"}}},6499(w,N,s){var h=s(1907),v=0,f=Math.random(),y=h(1 .toString);w.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+y(++v+f,36)}},51175(w,N,s){var h=s(19846);w.exports=h&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},58661(w,N,s){var h=s(39447),v=s(98828);w.exports=h&&v((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype!==42}))},40551(w,N,s){var h=s(45951),v=s(62250),f=h.WeakMap;w.exports=v(f)&&/native code/.test(String(f))},76264(w,N,s){var h=s(45951),v=s(85816),f=s(49724),y=s(6499),m=s(19846),g=s(51175),S=h.Symbol,_=v("wks"),T=g?S.for||S:S&&S.withoutSetter||y;w.exports=function(I){return f(_,I)||(_[I]=m&&f(S,I)?S[I]:T("Symbol."+I)),_[I]}},19358(w,N,s){var h=s(85582),v=s(49724),f=s(61626),y=s(88280),m=s(79192),g=s(19595),S=s(54829),_=s(34084),T=s(32096),I=s(39259),j=s(85884),M=s(39447),z=s(7376);w.exports=function(K,Y,B,X){var te="stackTraceLimit",ie=X?2:1,se=K.split("."),Te=se[se.length-1],he=h.apply(null,se);if(he){var ge=he.prototype;if(!z&&v(ge,"cause")&&delete ge.cause,!B)return he;var ke=h("Error"),Ve=Y((function(He,qe){var nt=T(X?qe:He,void 0),gt=X?new he(He):new he;return nt!==void 0&&f(gt,"message",nt),j(gt,Ve,gt.stack,2),this&&y(ge,this)&&_(gt,this,Ve),arguments.length>ie&&I(gt,arguments[ie]),gt}));if(Ve.prototype=ge,Te!=="Error"?m?m(Ve,ke):g(Ve,ke,{name:!0}):M&&te in he&&(S(Ve,he,te),S(Ve,he,"prepareStackTrace")),g(Ve,he),!z)try{ge.name!==Te&&f(ge,"name",Te),ge.constructor=Ve}catch{}return Ve}}},36371(w,N,s){var h=s(11091),v=s(85582),f=s(76024),y=s(98828),m=s(19358),g="AggregateError",S=v(g),_=!y((function(){return S([1]).errors[0]!==1}))&&y((function(){return S([1],g,{cause:7}).cause!==7}));h({global:!0,constructor:!0,arity:2,forced:_},{AggregateError:m(g,(function(T){return function(j,M){return f(T,this,arguments)}}),_,!0)})},82048(w,N,s){var h=s(11091),v=s(88280),f=s(15972),y=s(79192),m=s(19595),g=s(58075),S=s(61626),_=s(75817),T=s(39259),I=s(85884),j=s(24823),M=s(32096),z=s(76264)("toStringTag"),K=Error,Y=[].push,B=function(ie,se){var Te,he=v(X,this);y?Te=y(new K,he?f(this):X):(Te=he?this:g(X),S(Te,z,"Error")),se!==void 0&&S(Te,"message",M(se)),I(Te,B,Te.stack,1),arguments.length>2&&T(Te,arguments[2]);var ge=[];return j(ie,Y,{that:ge}),S(Te,"errors",ge),Te};y?y(B,K):m(B,K,{name:!0});var X=B.prototype=g(K.prototype,{constructor:_(1,B),message:_(1,""),name:_(1,"AggregateError")});h({global:!0,constructor:!0,arity:2},{AggregateError:B})},64502(w,N,s){s(82048)},19748(w,N,s){var h=s(11091),v=s(74436).includes,f=s(98828),y=s(42156);h({target:"Array",proto:!0,forced:f((function(){return!Array(1).includes()}))},{includes:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),y("includes")},99363(w,N,s){var h=s(4993),v=s(42156),f=s(93742),y=s(64932),m=s(74284).f,g=s(60183),S=s(59550),_=s(7376),T=s(39447),I="Array Iterator",j=y.set,M=y.getterFor(I);w.exports=g(Array,"Array",(function(K,Y){j(this,{type:I,target:h(K),index:0,kind:Y})}),(function(){var K=M(this),Y=K.target,B=K.index++;if(!Y||B>=Y.length)return K.target=null,S(void 0,!0);switch(K.kind){case"keys":return S(B,!1);case"values":return S(Y[B],!1)}return S([B,Y[B]],!1)}),"values");var z=f.Arguments=f.Array;if(v("keys"),v("values"),v("entries"),!_&&T&&z.name!=="values")try{m(z,"name",{value:"values"})}catch{}},96605(w,N,s){var h=s(11091),v=s(45951),f=s(76024),y=s(19358),m="WebAssembly",g=v[m],S=new Error("e",{cause:7}).cause!==7,_=function(I,j){var M={};M[I]=y(I,j,S),h({global:!0,constructor:!0,arity:1,forced:S},M)},T=function(I,j){if(g&&g[I]){var M={};M[I]=y(m+"."+I,j,S),h({target:m,stat:!0,constructor:!0,arity:1,forced:S},M)}};_("Error",(function(I){return function(M){return f(I,this,arguments)}})),_("EvalError",(function(I){return function(M){return f(I,this,arguments)}})),_("RangeError",(function(I){return function(M){return f(I,this,arguments)}})),_("ReferenceError",(function(I){return function(M){return f(I,this,arguments)}})),_("SyntaxError",(function(I){return function(M){return f(I,this,arguments)}})),_("TypeError",(function(I){return function(M){return f(I,this,arguments)}})),_("URIError",(function(I){return function(M){return f(I,this,arguments)}})),T("CompileError",(function(I){return function(M){return f(I,this,arguments)}})),T("LinkError",(function(I){return function(M){return f(I,this,arguments)}})),T("RuntimeError",(function(I){return function(M){return f(I,this,arguments)}}))},79307(w,N,s){var h=s(11091),v=s(44673);h({target:"Function",proto:!0,forced:Function.bind!==v},{bind:v})},71340(w,N,s){var h=s(11091),v=s(29538);h({target:"Object",stat:!0,arity:2,forced:Object.assign!==v},{assign:v})},19770(w,N,s){var h=s(11091),v=s(1907),f=s(12074),y=s(74239),m=s(90160),g=s(25735),S=v("".indexOf);h({target:"String",proto:!0,forced:!g("includes")},{includes:function(T){return!!~S(m(y(this)),m(f(T)),arguments.length>1?arguments[1]:void 0)}})},7057(w,N,s){var h=s(11470).charAt,v=s(90160),f=s(64932),y=s(60183),m=s(59550),g="String Iterator",S=f.set,_=f.getterFor(g);y(String,"String",(function(T){S(this,{type:g,string:v(T),index:0})}),(function(){var I,j=_(this),M=j.string,z=j.index;return z>=M.length?m(void 0,!0):(I=h(M,z),j.index+=I.length,m(I,!1))}))},91599(w,N,s){s(64502)},12560(w,N,s){s(99363);var h=s(19287),v=s(45951),f=s(14840),y=s(93742);for(var m in h)f(v[m],m),y[m]=y.Array},694(w,N,s){s(91599);var h=s(37257);s(12560),w.exports=h},19709(w,N,s){var h=s(23034);w.exports=h},76343(w,N,s){var h=s(36880);w.exports=h},40975(w,N,s){var h=s(9748);w.exports=h}},hs={};function Be(w){var N=hs[w];if(N!==void 0)return N.exports;var s=hs[w]={id:w,loaded:!1,exports:{}};return eE[w].call(s.exports,s,s.exports,Be),s.loaded=!0,s.exports}Be.n=w=>{var N=w&&w.__esModule?()=>w.default:()=>w;return Be.d(N,{a:N}),N},Be.d=(w,N)=>{for(var s in N)Be.o(N,s)&&!Be.o(w,s)&&Object.defineProperty(w,s,{enumerable:!0,get:N[s]})},Be.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),Be.o=(w,N)=>Object.prototype.hasOwnProperty.call(w,N),Be.r=w=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(w,"__esModule",{value:!0})},Be.nmd=w=>(w.paths=[],w.children||(w.children=[]),w);var Cd={};(()=>{Be.d(Cd,{default:()=>bU});var w={};Be.r(w),Be.d(w,{CLEAR:()=>pe,CLEAR_BY:()=>U,NEW_AUTH_ERR:()=>Zt,NEW_SPEC_ERR:()=>kt,NEW_SPEC_ERR_BATCH:()=>yt,NEW_THROWN_ERR:()=>Gt,NEW_THROWN_ERR_BATCH:()=>Sr,clear:()=>St,clearBy:()=>Bt,newAuthErr:()=>Fe,newSpecErr:()=>ye,newSpecErrBatch:()=>Ee,newThrownErr:()=>Z,newThrownErrBatch:()=>ne});var N={};Be.r(N),Be.d(N,{AUTHORIZE:()=>an,AUTHORIZE_OAUTH2:()=>rc,CONFIGURE_AUTH:()=>Zs,LOGOUT:()=>tc,RESTORE_AUTHORIZATION:()=>nc,SHOW_AUTH_POPUP:()=>vs,authPopup:()=>rl,authorize:()=>Ku,authorizeAccessCodeWithBasicAuthentication:()=>el,authorizeAccessCodeWithFormParams:()=>ac,authorizeApplication:()=>jo,authorizeOauth2:()=>yi,authorizeOauth2WithPersistOption:()=>bs,authorizePassword:()=>ws,authorizeRequest:()=>Es,authorizeWithPersistOption:()=>$c,configureAuth:()=>vi,logout:()=>$i,logoutWithPersistOption:()=>Co,persistAuthorizationIfNeeded:()=>tl,preAuthorizeImplicit:()=>gi,restoreAuthorization:()=>bn,showDefinitions:()=>Hu});var s={};Be.r(s),Be.d(s,{authorized:()=>zc,definitionsForRequirements:()=>ic,definitionsToAuthorize:()=>Uc,getConfigs:()=>uo,getDefinitionsByNames:()=>Gu,isAuthorized:()=>rh,selectAuthPath:()=>al,shownDefinitions:()=>wi});var h={};Be.r(h),Be.d(h,{TOGGLE_CONFIGS:()=>Bn,UPDATE_CONFIGS:()=>aa,downloadConfig:()=>n0,getConfigByUrl:()=>a0,loaded:()=>po,toggle:()=>Ya,update:()=>Ga});var v={};Be.r(v),Be.d(v,{get:()=>Pd});var f={};Be.r(f),Be.d(f,{transform:()=>Sl});var y={};Be.r(y),Be.d(y,{transform:()=>xl});var m={};Be.r(m),Be.d(m,{allErrors:()=>hc,lastError:()=>Ko});var g={};Be.r(g),Be.d(g,{SHOW:()=>Cs,UPDATE_FILTER:()=>Io,UPDATE_LAYOUT:()=>iu,UPDATE_MODE:()=>Mo,changeMode:()=>Zm,show:()=>dc,updateFilter:()=>js,updateLayout:()=>Yi});var S={};Be.r(S),Be.d(S,{current:()=>Dd,currentFilter:()=>Go,isShown:()=>Ro,showSummary:()=>Oi,whatMode:()=>Un});var _={};Be.r(_),Be.d(_,{taggedOperations:()=>eg});var T={};Be.r(T),Be.d(T,{getActiveLanguage:()=>hh,getDefaultExpanded:()=>dh,getGenerators:()=>fc,getSnippetGenerators:()=>ng});var I={};Be.r(I),Be.d(I,{JsonSchemaArrayItemFile:()=>wh,JsonSchemaArrayItemText:()=>mu,JsonSchemaForm:()=>Hd,JsonSchema_array:()=>ii,JsonSchema_boolean:()=>Kd,JsonSchema_object:()=>sg,JsonSchema_string:()=>Xi});var j={};Be.r(j),Be.d(j,{allowTryItOutFor:()=>Op,basePath:()=>Tg,canExecuteScheme:()=>Rs,consumes:()=>Ph,consumesOptionsFor:()=>Qi,contentTypeValues:()=>Cl,currentProducesFor:()=>ff,definitions:()=>pf,externalDocs:()=>Cg,findDefinition:()=>Ng,getOAS3RequiredRequestBodyContentType:()=>zg,getParameter:()=>$g,hasHost:()=>df,host:()=>Th,info:()=>Ch,isMediaTypeSchemaPropertiesEqual:()=>Vg,isOAS3:()=>Ag,lastError:()=>Sg,mutatedRequestFor:()=>Fg,mutatedRequests:()=>cr,operationScheme:()=>mf,operationWithMeta:()=>hf,operations:()=>jh,operationsWithRootInherited:()=>bu,operationsWithTags:()=>Mg,parameterInclusionSettingFor:()=>Mh,parameterValues:()=>Rh,parameterWithMeta:()=>Lg,parameterWithMetaByIdentity:()=>Eu,parametersIncludeIn:()=>ho,parametersIncludeType:()=>ci,paths:()=>lf,produces:()=>cf,producesOptionsFor:()=>Bg,requestFor:()=>Dg,requests:()=>Rg,responseFor:()=>wu,responses:()=>$a,schemes:()=>Ms,security:()=>uf,securityDefinitions:()=>Nh,semver:()=>jg,spec:()=>eo,specJS:()=>_g,specJson:()=>Za,specJsonWithResolvedSubtrees:()=>li,specResolved:()=>Og,specResolvedSubtree:()=>kg,specSource:()=>Do,specStr:()=>u0,tagDetails:()=>Ig,taggedOperations:()=>Ih,tags:()=>La,url:()=>xg,validOperationMethods:()=>Pg,validateBeforeExecute:()=>Ug,validationErrors:()=>qg,version:()=>sf});var M={};Be.r(M),Be.d(M,{CLEAR_REQUEST:()=>Pl,CLEAR_RESPONSE:()=>Ap,CLEAR_VALIDATE_PARAMS:()=>Zi,LOG_REQUEST:()=>Fo,SET_MUTATED_REQUEST:()=>vc,SET_REQUEST:()=>kp,SET_RESPONSE:()=>Su,SET_SCHEME:()=>xu,UPDATE_EMPTY_PARAM_INCLUSION:()=>yc,UPDATE_JSON:()=>jl,UPDATE_OPERATION_META_VALUE:()=>bc,UPDATE_PARAM:()=>Kn,UPDATE_RESOLVED:()=>Cp,UPDATE_RESOLVED_SUBTREE:()=>Pi,UPDATE_SPEC:()=>wa,UPDATE_URL:()=>fo,VALIDATE_PARAMS:()=>Ds,changeConsumesValue:()=>Ec,changeParam:()=>bf,changeParamByIdentity:()=>wf,changeProducesValue:()=>Kg,clearRequest:()=>_u,clearResponse:()=>Xg,clearValidateParams:()=>Sf,execute:()=>Yg,executeRequest:()=>d0,invalidateResolvedSubtreeCache:()=>Hg,logRequest:()=>h0,parseToJson:()=>$h,requestResolvedSubtree:()=>Wg,resolveSpec:()=>Tl,setMutatedRequest:()=>Bh,setRequest:()=>xf,setResponse:()=>Gg,setScheme:()=>Ou,updateEmptyParamInclusion:()=>wc,updateJsonSpec:()=>Lh,updateResolved:()=>jp,updateResolvedSubtree:()=>Il,updateSpec:()=>Fh,updateUrl:()=>vf,validateParams:()=>Ef});var z={};Be.r(z),Be.d(z,{executeRequest:()=>Zg,updateJsonSpec:()=>f0,updateSpec:()=>Gn,validateParams:()=>m0});var K={};Be.r(K),Be.d(K,{JsonPatchError:()=>zn,_areEquals:()=>xc,applyOperation:()=>Rl,applyPatch:()=>es,applyReducer:()=>ay,deepClone:()=>ny,getValueByPointer:()=>Ml,validate:()=>Ip,validator:()=>Au});var Y={};Be.r(Y),Be.d(Y,{compare:()=>i,generate:()=>_f,observe:()=>Mp,unobserve:()=>y0});var B={};Be.r(B),Be.d(B,{hasElementSourceMap:()=>Gh,includesClasses:()=>Yh,includesSymbols:()=>FC,isAnnotationElement:()=>RC,isArrayElement:()=>vo,isBooleanElement:()=>Ff,isCommentElement:()=>DC,isElement:()=>da,isLinkElement:()=>aS,isMemberElement:()=>Bs,isNullElement:()=>tb,isNumberElement:()=>eb,isObjectElement:()=>hn,isParseResultElement:()=>iS,isPrimitiveElement:()=>$p,isRefElement:()=>oS,isStringElement:()=>Ir});var X={};Be.r(X),Be.d(X,{isJSONReferenceElement:()=>cb,isJSONSchemaElement:()=>LS,isLinkDescriptionElement:()=>p3,isMediaElement:()=>$S});var te={};Be.r(te),Be.d(te,{isBooleanJsonSchemaElement:()=>sN,isCallbackElement:()=>WP,isComponentsElement:()=>HP,isContactElement:()=>KP,isDiscriminatorElement:()=>hN,isExampleElement:()=>GP,isExternalDocumentationElement:()=>YP,isHeaderElement:()=>ad,isInfoElement:()=>XP,isLicenseElement:()=>QP,isLinkElement:()=>ZP,isMediaTypeElement:()=>Jy,isOpenApi3_0Element:()=>tN,isOpenapiElement:()=>eN,isOperationElement:()=>HS,isParameterElement:()=>rN,isPathItemElement:()=>gb,isPathsElement:()=>nN,isReferenceElement:()=>Mn,isRequestBodyElement:()=>aN,isResponseElement:()=>Vy,isResponsesElement:()=>oN,isSchemaElement:()=>iN,isSecurityRequirementElement:()=>lN,isSecuritySchemeElement:()=>cN,isServerElement:()=>uN,isServerVariableElement:()=>pN,isServersElement:()=>KS});var ie={};Be.r(ie),Be.d(ie,{isJSONReferenceElement:()=>cb,isJSONSchemaElement:()=>y4,isLinkDescriptionElement:()=>v4,isMediaElement:()=>$S});var se={};Be.r(se),Be.d(se,{isJSONReferenceElement:()=>cb,isJSONSchemaElement:()=>_4,isLinkDescriptionElement:()=>O4});var Te={};Be.r(Te),Be.d(Te,{isJSONSchemaElement:()=>z4,isLinkDescriptionElement:()=>V4});var he={};Be.r(he),Be.d(he,{isJSONSchemaElement:()=>Q4,isLinkDescriptionElement:()=>Z4});var ge={};Be.r(ge),Be.d(ge,{isBooleanJsonSchemaElement:()=>a1,isCallbackElement:()=>MI,isComponentsElement:()=>RI,isContactElement:()=>DI,isExampleElement:()=>FI,isExternalDocumentationElement:()=>LI,isHeaderElement:()=>$I,isInfoElement:()=>BI,isJsonSchemaDialectElement:()=>A2,isLicenseElement:()=>qI,isLinkElement:()=>UI,isMediaTypeElement:()=>t5,isOpenApi3_1Element:()=>C2,isOpenapiElement:()=>zI,isOperationElement:()=>j2,isParameterElement:()=>VI,isPathItemElement:()=>zp,isPathItemElementExternal:()=>JI,isPathsElement:()=>WI,isReferenceElement:()=>Vp,isReferenceElementExternal:()=>HI,isRequestBodyElement:()=>KI,isResponseElement:()=>GI,isResponsesElement:()=>YI,isSchemaElement:()=>Vs,isSecurityRequirementElement:()=>XI,isSecuritySchemeElement:()=>QI,isServerElement:()=>ZI,isServerVariableElement:()=>e5});var ke={};Be.r(ke),Be.d(ke,{cookie:()=>HM,header:()=>WM,path:()=>zM,query:()=>VM});var Ve={};Be.r(Ve),Be.d(Ve,{Button:()=>C7,Col:()=>k7,Collapse:()=>T7,Container:()=>O7,Input:()=>P7,Link:()=>t_,Row:()=>A7,Select:()=>N7,TextArea:()=>j7});var He={};Be.r(He),Be.d(He,{basePath:()=>XF,consumes:()=>QF,definitions:()=>WF,findDefinition:()=>JF,hasHost:()=>HF,host:()=>YF,produces:()=>ZF,schemes:()=>eL,securityDefinitions:()=>KF,validOperationMethods:()=>GF});var qe={};Be.r(qe),Be.d(qe,{definitionsToAuthorize:()=>tL});var nt={};Be.r(nt),Be.d(nt,{callbacksOperations:()=>lL,findSchema:()=>sL,isOAS3:()=>oL,isOAS30:()=>aL,isSwagger2:()=>nL,servers:()=>iL});var gt={};Be.r(gt),Be.d(gt,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:()=>Fv,CLEAR_REQUEST_BODY_VALUE:()=>kw,SET_REQUEST_BODY_VALIDATE_ERROR:()=>Ow,UPDATE_ACTIVE_EXAMPLES_MEMBER:()=>Ew,UPDATE_REQUEST_BODY_INCLUSION:()=>ww,UPDATE_REQUEST_BODY_VALUE:()=>vw,UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:()=>bw,UPDATE_REQUEST_CONTENT_TYPE:()=>Sw,UPDATE_RESPONSE_CONTENT_TYPE:()=>xw,UPDATE_SELECTED_SERVER:()=>yw,UPDATE_SERVER_VARIABLE_VALUE:()=>_w,clearRequestBodyValidateError:()=>DL,clearRequestBodyValue:()=>LL,initRequestBodyValidateError:()=>FL,setActiveExamplesMember:()=>NL,setRequestBodyInclusion:()=>PL,setRequestBodyValidateError:()=>RL,setRequestBodyValue:()=>CL,setRequestContentType:()=>TL,setResponseContentType:()=>IL,setRetainRequestBodyValueFlag:()=>jL,setSelectedServer:()=>AL,setServerVariableValue:()=>ML});var Re={};Be.r(Re),Be.d(Re,{activeExamplesMember:()=>KL,hasUserEditedBody:()=>JL,requestBodyErrors:()=>HL,requestBodyInclusionSetting:()=>WL,requestBodyValue:()=>UL,requestContentType:()=>GL,responseContentType:()=>YL,selectDefaultRequestBodyValue:()=>VL,selectedServer:()=>qL,serverEffectiveValue:()=>ZL,serverVariableValue:()=>XL,serverVariables:()=>QL,shouldRetainRequestBodyValue:()=>zL,validOperationMethods:()=>r$,validateBeforeExecute:()=>e$,validateShallowRequired:()=>t$});var u=Be(96540);function at(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Xe=typeof Symbol=="function"&&Symbol.observable||"@@observable",Se=()=>Math.random().toString(36).substring(7).split("").join("."),De={INIT:`@@redux/INIT${Se()}`,REPLACE:`@@redux/REPLACE${Se()}`};function Ke(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function ft(t,e,r){if(typeof t!="function")throw new Error(at(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(at(0));if(typeof e=="function"&&r===void 0&&(r=e,e=void 0),r!==void 0){if(typeof r!="function")throw new Error(at(1));return r(ft)(t,e)}let n=t,a=e,o=new Map,p=o,c=0,d=!1;function E(){p===o&&(p=new Map,o.forEach(((R,L)=>{p.set(L,R)})))}function x(){if(d)throw new Error(at(3));return a}function k(R){if(typeof R!="function")throw new Error(at(4));if(d)throw new Error(at(5));let L=!0;E();const V=c++;return p.set(V,R),function(){if(L){if(d)throw new Error(at(6));L=!1,E(),p.delete(V),o=null}}}function P(R){if(!Ke(R))throw new Error(at(7));if(R.type===void 0)throw new Error(at(8));if(typeof R.type!="string")throw new Error(at(17));if(d)throw new Error(at(9));try{d=!0,a=n(a,R)}finally{d=!1}return(o=p).forEach((L=>{L()})),R}return P({type:De.INIT}),{dispatch:P,subscribe:k,getState:x,replaceReducer:function(L){if(typeof L!="function")throw new Error(at(10));n=L,P({type:De.REPLACE})},[Xe]:function(){const L=k;return{subscribe(V){if(typeof V!="object"||V===null)throw new Error(at(11));function Q(){const J=V;J.next&&J.next(x())}return Q(),{unsubscribe:L(Q)}},[Xe](){return this}}}}}function Nt(t,e){return function(...r){return e(t.apply(this,r))}}function Wt(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce(((e,r)=>(...n)=>e(r(...n))))}var H=Be(49568),we=Be(81919),ct=Be.n(we),mt=Be(89593),ur=Be(20334),ar=Be(55364),Tt=Be.n(ar);const Gt="err_new_thrown_err",Sr="err_new_thrown_err_batch",kt="err_new_spec_err",yt="err_new_spec_err_batch",Zt="err_new_auth_err",pe="err_clear",U="err_clear_by";function Z(t){return{type:Gt,payload:(0,ur.serializeError)(t)}}function ne(t){return{type:Sr,payload:t}}function ye(t){return{type:kt,payload:t}}function Ee(t){return{type:yt,payload:t}}function Fe(t){return{type:Zt,payload:t}}function St(t={}){return{type:pe,payload:t}}function Bt(t=()=>!0){return{type:U,payload:t}}const Qe=(function(){var e={location:{},history:{},open:()=>{},close:()=>{},File:function(){},FormData:function(){}};if(typeof window>"u")return e;try{e=window;for(var r of["File","Blob","FormData"])r in window&&(e[r]=window[r])}catch(n){console.error(n)}return e})();Be(84058),Be(55808);var $t=Be(50104),Pt=Be.n($t),rn=Be(7309),kr=Be.n(rn),An=Be(42426),Wr=Be.n(An),Jn=Be(75288),Ea=Be.n(Jn),Zn=Be(1882),un=Be.n(Zn),ti=Be(2205),Oo=Be.n(ti),Li=Be(53209),Fn=Be.n(Li),zo=Be(62802),Vo=Be.n(zo);const ds=H.default.Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function sr(t,{isOAS3:e}={}){if(!H.default.Map.isMap(t))return{schema:H.default.Map(),parameterContentMediaType:null};if(!e)return t.get("in")==="body"?{schema:t.get("schema",H.default.Map()),parameterContentMediaType:null}:{schema:t.filter(((r,n)=>ds.includes(n))),parameterContentMediaType:null};if(t.get("content")){const r=t.get("content",H.default.Map({})).keySeq().first();return{schema:t.getIn(["content",r,"schema"],H.default.Map()),parameterContentMediaType:r}}return{schema:t.get("schema")?t.get("schema",H.default.Map()):H.default.Map(),parameterContentMediaType:null}}var br=Be(48287).Buffer;const tn="default",Cr=t=>H.default.Iterable.isIterable(t),Mr=t=>Cr(t)?t.toJS():t;function Nn(t){return Hr(t)?Mr(t):{}}function nn(t){if(Cr(t)||t instanceof Qe.File||!Hr(t))return t;if(Array.isArray(t))return H.default.Seq(t).map(nn).toList();if(un()(t.entries)){const e=(function(n){if(!un()(n.entries))return n;const a={},o="_**[]",p={};for(let c of n.entries())a[c[0]]||p[c[0]]&&p[c[0]].containsMultiple?(p[c[0]]||(p[c[0]]={containsMultiple:!0,length:1},a[`${c[0]}${o}${p[c[0]].length}`]=a[c[0]],delete a[c[0]]),p[c[0]].length+=1,a[`${c[0]}${o}${p[c[0]].length}`]=c[1]):a[c[0]]=c[1];return a})(t);return H.default.OrderedMap(e).map(nn)}return H.default.OrderedMap(t).map(nn)}function fn(t){return Array.isArray(t)?t:[t]}function Ln(t){return typeof t=="function"}function Hr(t){return!!t&&typeof t=="object"}function ia(t){return typeof t=="function"}function za(t){return Array.isArray(t)}const fs=Pt();function ea(t,e){return Object.keys(t).reduce(((r,n)=>(r[n]=e(t[n],n),r)),{})}function di(t,e){return Object.keys(t).reduce(((r,n)=>{let a=e(t[n],n);return a&&typeof a=="object"&&Object.assign(r,a),r}),{})}function Va(t){return({dispatch:e,getState:r})=>n=>a=>typeof a=="function"?a(t()):n(a)}function Rr(t,e,r,n,a,o){if(!e)return[];let p=[],c=e.get("nullable"),d=e.get("required"),E=e.get("maximum"),x=e.get("minimum"),k=e.get("type"),P=e.get("format"),R=e.get("maxLength"),L=e.get("minLength"),V=e.get("uniqueItems"),Q=e.get("maxItems"),J=e.get("minItems"),re=e.get("pattern");const me=r||d===!0,le=t!=null,ve=me||le&&k==="array"||!(!me&&!le),be=c&&t===null;if(me&&!le&&!be&&!n&&!k)return p.push("Required field is not provided"),p;if(be||!k||!ve)return[];let ce=k==="string"&&t,_e=k==="array"&&Array.isArray(t)&&t.length,Ae=k==="array"&&H.default.List.isList(t)&&t.count(),xe=k==="array"&&typeof t=="string"&&t;const Oe=[ce,_e,Ae,k==="file"&&t instanceof Qe.File,k==="boolean"&&(t||t===!1),k==="number"&&(t||t===0),k==="integer"&&(t||t===0),k==="object"&&typeof t=="object"&&t!==null,k==="object"&&typeof t=="string"&&t],je=(o?Oe:Oe.concat(xe)).some((G=>!!G));if(me&&!je&&!n)return p.push("Required field is not provided"),p;if(k==="object"&&(a===null||a==="application/json")){let G=t;if(typeof t=="string")try{G=JSON.parse(t)}catch{return p.push("Parameter string value must be valid JSON"),p}e&&e.has("required")&&ia(d.isList)&&d.isList()&&d.forEach((de=>{G[de]===void 0&&p.push({propKey:de,error:"Required property not found"})})),e&&e.has("properties")&&e.get("properties").forEach(((de,Ne)=>{const Ye=Rr(G[Ne],de,!1,n,a,o);p.push(...Ye.map((ht=>({propKey:Ne,error:ht}))))}))}if(re){let G=((de,Ne)=>{if(!new RegExp(Ne).test(de))return"Value must follow pattern "+Ne})(t,re);G&&p.push(G)}if(J&&k==="array"){let G=((de,Ne)=>{if(!de&&Ne>=1||de&&de.length{if(de&&de.length>Ne)return`Array must not contain more then ${Ne} item${Ne===1?"":"s"}`})(t,Q);G&&p.push({needRemove:!0,error:G})}if(V&&k==="array"){let G=((de,Ne)=>{if(de&&(Ne==="true"||Ne===!0)){const Ye=(0,H.fromJS)(de),ht=Ye.toSet();if(de.length>ht.size){let Ct=(0,H.Set)();if(Ye.forEach(((_t,qt)=>{Ye.filter((It=>ia(It.equals)?It.equals(_t):It===_t)).size>1&&(Ct=Ct.add(qt))})),Ct.size!==0)return Ct.map((_t=>({index:_t,error:"No duplicates allowed."}))).toArray()}}})(t,V);G&&p.push(...G)}if(R||R===0){let G=((de,Ne)=>{if(de.length>Ne)return`Value must be no longer than ${Ne} character${Ne!==1?"s":""}`})(t,R);G&&p.push(G)}if(L){let G=((de,Ne)=>{if(de.length{if(de>Ne)return`Value must be less than or equal to ${Ne}`})(t,E);G&&p.push(G)}if(x||x===0){let G=((de,Ne)=>{if(de{if(isNaN(Date.parse(de)))return"Value must be a DateTime"})(t):P==="uuid"?(de=>{if(de=de.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(de))return"Value must be a Guid"})(t):(de=>{if(de&&typeof de!="string")return"Value must be a string"})(t),!G)return p;p.push(G)}else if(k==="boolean"){let G=(de=>{if(de!=="true"&&de!=="false"&&de!==!0&&de!==!1)return"Value must be a boolean"})(t);if(!G)return p;p.push(G)}else if(k==="number"){let G=(de=>{if(!/^-?\d+(\.?\d+)?$/.test(de))return"Value must be a number"})(t);if(!G)return p;p.push(G)}else if(k==="integer"){let G=(de=>{if(!/^-?\d+$/.test(de))return"Value must be an integer"})(t);if(!G)return p;p.push(G)}else if(k==="array"){if(!_e&&!Ae)return p;t&&t.forEach(((G,de)=>{const Ne=Rr(G,e.get("items"),!1,n,a,o);p.push(...Ne.map((Ye=>({index:de,error:Ye}))))}))}else if(k==="file"){let G=(de=>{if(de&&!(de instanceof Qe.File))return"Value must be a file"})(t);if(!G)return p;p.push(G)}return p}const ko=t=>{let e;return e=t instanceof br?t:br.from(t.toString(),"utf-8"),e.toString("base64")},Nr={operationsSorter:{alpha:(t,e)=>t.get("path").localeCompare(e.get("path")),method:(t,e)=>t.get("method").localeCompare(e.get("method"))},tagsSorter:{alpha:(t,e)=>t.localeCompare(e)}},xn=t=>{let e=[];for(let r in t){let n=t[r];n!==void 0&&n!==""&&e.push([r,"=",encodeURIComponent(n).replace(/%20/g,"+")].join(""))}return e.join("&")},fi=(t,e,r)=>!!kr()(r,(n=>Ea()(t[n],e[n])));function ta(t){return!(!t||t.indexOf("localhost")>=0||t.indexOf("127.0.0.1")>=0||t==="none")}const Jo=t=>typeof t=="string"||t instanceof String?t.trim().replace(/\s/g,"%20"):"",ms=t=>Oo()(Jo(t).replace(/%20/g,"_")),Yt=t=>/^x-/.test(t),gr=t=>H.Map.isMap(t)?t.filter(((e,r)=>Yt(r))):Object.keys(t).filter((e=>Yt(e))),mr=t=>t.filter(((e,r)=>/^pattern|maxLength|minLength|maximum|minimum/.test(r)));function Vr(t,e,r=()=>!0){if(typeof t!="object"||Array.isArray(t)||t===null||!e)return t;const n=Object.assign({},t);return Object.keys(n).forEach((a=>{a===e&&r(n[a],a)?delete n[a]:n[a]=Vr(n[a],e,r)})),n}function Gr(t){if(typeof t=="string")return t;if(t&&t.toJS&&(t=t.toJS()),typeof t=="object"&&t!==null)try{return JSON.stringify(t,null,2)}catch{return String(t)}return t==null?"":t.toString()}function sa(t,{returnAll:e=!1,allowHashes:r=!0}={}){if(!H.default.Map.isMap(t))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");const n=t.get("name"),a=t.get("in");let o=[];return t&&t.hashCode&&a&&n&&r&&o.push(`${a}.${n}.hash-${t.hashCode()}`),a&&n&&o.push(`${a}.${n}`),o.push(n),e?o:o[0]||""}function Sa(t,e){return sa(t,{returnAll:!0}).map((r=>e[r])).filter((r=>r!==void 0))[0]}function Ja(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const Wa=t=>!t||!(!Cr(t)||!t.isEmpty()),Ia=t=>t;function Yl(t,e,r){let n=[Va(r)];return ft(t,e,(Qe.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Wt)((function(...o){return p=>(c,d)=>{const E=p(c,d);let x=()=>{throw new Error(at(15))};const k={getState:E.getState,dispatch:(R,...L)=>x(R,...L)},P=o.map((R=>R(k)));return x=Wt(...P)(E.dispatch),{...E,dispatch:x}}})(...n)))}class Xl{constructor(e={}){ct()(this,{state:{},plugins:[],system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},e),this.getSystem=this._getSystem.bind(this),this.store=(function(n,a,o){return Yl(n,a,o)})(Ia,(0,H.fromJS)(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(e,r=!0){var n=gs(e,this.getSystem());lo(this.system,n),r&&this.buildSystem(),ys.call(this.system,e,this.getSystem())&&this.buildSystem()}buildSystem(e=!0){let r=this.getStore().dispatch,n=this.getStore().getState;this.boundSystem=Object.assign({},this.getRootInjects(),this.getWrappedAndBoundActions(r),this.getWrappedAndBoundSelectors(n,this.getSystem),this.getStateThunks(n),this.getFn(),this.getConfigs()),e&&this.rebuildReducer()}_getSystem(){return this.boundSystem}getRootInjects(){return Object.assign({getSystem:this.getSystem,getStore:this.getStore.bind(this),getComponents:this.getComponents.bind(this),getState:this.getStore().getState,getConfigs:this._getConfigs.bind(this),Im:H.default,React:u},this.system.rootInjects||{})}_getConfigs(){return this.system.configs}getConfigs(){return{configs:this.system.configs}}setConfigs(e){this.system.configs=e}rebuildReducer(){this.store.replaceReducer((function(r,n){return(function(o,p){let c=Object.keys(o).reduce(((d,E)=>(d[E]=(function(k,P){return(R=new H.Map,L)=>{if(!k)return R;let V=k[L.type];if(V){const Q=mi(V,P)(R,L);return Q===null?R:Q}return R}})(o[E],p),d)),{});return Object.keys(c).length?(0,mt.H)(c):Ia})(ea(r,(a=>a.reducers)),n)})(this.system.statePlugins,this.getSystem))}getType(e){let r=e[0].toUpperCase()+e.slice(1);return di(this.system.statePlugins,((n,a)=>{let o=n[e];if(o)return{[a+r]:o}}))}getSelectors(){return this.getType("selectors")}getActions(){return ea(this.getType("actions"),(e=>di(e,((r,n)=>{if(Ln(r))return{[n]:r}}))))}getWrappedAndBoundActions(e){return ea(this.getBoundActions(e),((r,n)=>{let a=this.system.statePlugins[n.slice(0,-7)].wrapActions;return a?ea(r,((o,p)=>{let c=a[p];return c?(Array.isArray(c)||(c=[c]),c.reduce(((d,E)=>{let x=(...k)=>E(d,this.getSystem())(...k);if(!Ln(x))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return mi(x,this.getSystem)}),o||Function.prototype)):o})):r}))}getWrappedAndBoundSelectors(e,r){return ea(this.getBoundSelectors(e,r),((n,a)=>{let o=[a.slice(0,-9)],p=this.system.statePlugins[o].wrapSelectors;return p?ea(n,((c,d)=>{let E=p[d];return E?(Array.isArray(E)||(E=[E]),E.reduce(((x,k)=>{let P=(...R)=>k(x,this.getSystem())(e().getIn(o),...R);if(!Ln(P))throw new TypeError("wrapSelector needs to return a function that returns a new function (ie the wrapped action)");return P}),c||Function.prototype)):c})):n}))}getStates(e){return Object.keys(this.system.statePlugins).reduce(((r,n)=>(r[n]=e.get(n),r)),{})}getStateThunks(e){return Object.keys(this.system.statePlugins).reduce(((r,n)=>(r[n]=()=>e().get(n),r)),{})}getFn(){return{fn:this.system.fn}}getComponents(e){const r=this.system.components[e];return Array.isArray(r)?r.reduce(((n,a)=>a(n,this.getSystem()))):e!==void 0?this.system.components[e]:this.system.components}getBoundSelectors(e,r){return ea(this.getSelectors(),((n,a)=>{let o=[a.slice(0,-9)];return ea(n,(p=>(...c)=>{let d=mi(p,this.getSystem).apply(null,[e().getIn(o),...c]);return typeof d=="function"&&(d=mi(d,this.getSystem)(r())),d}))}))}getBoundActions(e){e=e||this.getStore().dispatch;const r=this.getActions(),n=a=>typeof a!="function"?ea(a,(o=>n(o))):(...o)=>{var p=null;try{p=a(...o)}catch(c){p={type:Gt,error:!0,payload:(0,ur.serializeError)(c)}}finally{return p}};return ea(r,(a=>(function(p,c){if(typeof p=="function")return Nt(p,c);if(typeof p!="object"||p===null)throw new Error(at(16));const d={};for(const E in p){const x=p[E];typeof x=="function"&&(d[E]=Nt(x,c))}return d})(n(a),e)))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(e){return r=>ct()({},this.getWrappedAndBoundActions(r),this.getFn(),e)}}function gs(t,e){return Hr(t)&&!za(t)?Tt()({},t):ia(t)?gs(t(e),e):za(t)?t.map((r=>gs(r,e))).reduce(lo,{components:e.getComponents()}):{}}function ys(t,e,{hasLoaded:r}={}){let n=r;return Hr(t)&&!za(t)&&typeof t.afterLoad=="function"&&(n=!0,mi(t.afterLoad,e.getSystem).call(this,e)),ia(t)?ys.call(this,t(e),e,{hasLoaded:n}):za(t)?t.map((a=>ys.call(this,a,e,{hasLoaded:n}))):n}function lo(t={},e={}){if(!Hr(t))return{};if(!Hr(e))return t;e.wrapComponents&&(ea(e.wrapComponents,((n,a)=>{const o=t.components&&t.components[a];o&&Array.isArray(o)?(t.components[a]=o.concat([n]),delete e.wrapComponents[a]):o&&(t.components[a]=[o,n],delete e.wrapComponents[a])})),Object.keys(e.wrapComponents).length||delete e.wrapComponents);const{statePlugins:r}=t;if(Hr(r))for(let n in r){const a=r[n];if(!Hr(a))continue;const{wrapActions:o,wrapSelectors:p}=a;if(Hr(o))for(let c in o){let d=o[c];Array.isArray(d)||(d=[d],o[c]=d),e&&e.statePlugins&&e.statePlugins[n]&&e.statePlugins[n].wrapActions&&e.statePlugins[n].wrapActions[c]&&(e.statePlugins[n].wrapActions[c]=o[c].concat(e.statePlugins[n].wrapActions[c]))}if(Hr(p))for(let c in p){let d=p[c];Array.isArray(d)||(d=[d],p[c]=d),e&&e.statePlugins&&e.statePlugins[n]&&e.statePlugins[n].wrapSelectors&&e.statePlugins[n].wrapSelectors[c]&&(e.statePlugins[n].wrapSelectors[c]=p[c].concat(e.statePlugins[n].wrapSelectors[c]))}}return ct()(t,e)}function mi(t,e,{logErrors:r=!0}={}){return typeof t!="function"?t:function(...n){try{return t.call(this,...n)}catch(a){if(r){const{uncaughtExceptionHandler:o}=e().getConfigs();typeof o=="function"?o(a):console.error(a)}return null}}}const Wu=t=>{t.preventDefault();const e=t.currentTarget.closest(".swagger-ui")?.querySelector("#operations");e&&(e.focus(),e.scrollIntoView())},Ql=()=>u.createElement("a",{href:"#operations",className:"swagger-ui__skip-link",onClick:Wu},"Skip to operations"),Zl=()=>({components:{SkipToOperations:Ql}});var ec=Be(61160),Ao=Be.n(ec);const vs="show_popup",an="authorize",tc="logout",rc="authorize_oauth2",Zs="configure_auth",nc="restore_authorization";function Hu(t){return{type:vs,payload:t}}function Ku(t){return{type:an,payload:t}}const $c=t=>({authActions:e})=>{e.authorize(t),e.persistAuthorizationIfNeeded()};function $i(t){return{type:tc,payload:t}}const Co=t=>({authActions:e})=>{e.logout(t),e.persistAuthorizationIfNeeded()},gi=t=>({authActions:e,errActions:r})=>{let{auth:n,token:a,isValid:o}=t,{schema:p,name:c}=n,d=p.get("flow");delete Qe.swaggerUIRedirectOauth2,d==="accessCode"||o||r.newAuthErr({authId:c,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),a.error?r.newAuthErr({authId:c,source:"auth",level:"error",message:JSON.stringify(a)}):e.authorizeOauth2WithPersistOption({auth:n,token:a})};function yi(t){return{type:rc,payload:t}}const bs=t=>({authActions:e})=>{e.authorizeOauth2(t),e.persistAuthorizationIfNeeded()},ws=t=>({authActions:e})=>{let{schema:r,name:n,username:a,password:o,passwordType:p,clientId:c,clientSecret:d}=t,E={grant_type:"password",scope:t.scopes.join(" "),username:a,password:o},x={};switch(p){case"request-body":(function(P,R,L){R&&Object.assign(P,{client_id:R}),L&&Object.assign(P,{client_secret:L})})(E,c,d);break;case"basic":x.Authorization="Basic "+ko(c+":"+d);break;default:console.warn(`Warning: invalid passwordType ${p} was passed, not including client id and secret`)}return e.authorizeRequest({body:xn(E),url:r.get("tokenUrl"),name:n,headers:x,query:{},auth:t})},jo=t=>({authActions:e})=>{let{schema:r,scopes:n,name:a,clientId:o,clientSecret:p}=t,c={Authorization:"Basic "+ko(o+":"+p)},d={grant_type:"client_credentials",scope:n.join(" ")};return e.authorizeRequest({body:xn(d),name:a,url:r.get("tokenUrl"),auth:t,headers:c})},ac=({auth:t,redirectUrl:e})=>({authActions:r})=>{let{schema:n,name:a,clientId:o,clientSecret:p,codeVerifier:c}=t,d={grant_type:"authorization_code",code:t.code,client_id:o,client_secret:p,redirect_uri:e,code_verifier:c};return r.authorizeRequest({body:xn(d),name:a,url:n.get("tokenUrl"),auth:t})},el=({auth:t,redirectUrl:e})=>({authActions:r})=>{let{schema:n,name:a,clientId:o,clientSecret:p,codeVerifier:c}=t,d={Authorization:"Basic "+ko(o+":"+p)},E={grant_type:"authorization_code",code:t.code,client_id:o,redirect_uri:e,code_verifier:c};return r.authorizeRequest({body:xn(E),name:a,url:n.get("tokenUrl"),auth:t,headers:d})},Es=t=>({fn:e,getConfigs:r,authActions:n,errActions:a,oas3Selectors:o,specSelectors:p,authSelectors:c})=>{let d,{body:E,query:x={},headers:k={},name:P,url:R,auth:L}=t,{additionalQueryStringParams:V}=c.getConfigs()||{};if(p.isOAS3()){let re=o.serverEffectiveValue(o.selectedServer());d=Ao()(R,re,!0)}else d=Ao()(R,p.url(),!0);typeof V=="object"&&(d.query=Object.assign({},d.query,V));const Q=d.toString();let J=Object.assign({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},k);e.fetch({url:Q,method:"post",headers:J,query:x,body:E,requestInterceptor:r().requestInterceptor,responseInterceptor:r().responseInterceptor}).then((function(re){let me=JSON.parse(re.data),le=me&&(me.error||""),ve=me&&(me.parseError||"");re.ok?le||ve?a.newAuthErr({authId:P,level:"error",source:"auth",message:JSON.stringify(me)}):n.authorizeOauth2WithPersistOption({auth:L,token:me}):a.newAuthErr({authId:P,level:"error",source:"auth",message:re.statusText})})).catch((re=>{let me=new Error(re).message;if(re.response&&re.response.data){const le=re.response.data;try{const ve=typeof le=="string"?JSON.parse(le):le;ve.error&&(me+=`, error: ${ve.error}`),ve.error_description&&(me+=`, description: ${ve.error_description}`)}catch{}}a.newAuthErr({authId:P,level:"error",source:"auth",message:me})}))};function vi(t){return{type:Zs,payload:t}}function bn(t){return{type:nc,payload:t}}const tl=()=>({authSelectors:t,getConfigs:e})=>{if(!e().persistAuthorization)return;const r=t.authorized().toJS();localStorage.setItem("authorized",JSON.stringify(r))},rl=(t,e)=>()=>{Qe.swaggerUIRedirectOauth2=e,Qe.open(t)},bi={[vs]:(t,{payload:e})=>t.set("showDefinitions",e),[an]:(t,{payload:e})=>{let r=(0,H.fromJS)(e),n=t.get("authorized")||(0,H.Map)();return r.entrySeq().forEach((([a,o])=>{if(!ia(o.getIn))return t.set("authorized",n);let p=o.getIn(["schema","type"]);if(p==="apiKey"||p==="http")n=n.set(a,o);else if(p==="basic"){let c=o.getIn(["value","username"]),d=o.getIn(["value","password"]);n=n.setIn([a,"value"],{username:c,header:"Basic "+ko(c+":"+d)}),n=n.setIn([a,"schema"],o.get("schema"))}})),t.set("authorized",n)},[rc]:(t,{payload:e})=>{let r,{auth:n,token:a}=e;n.token=Object.assign({},a),r=(0,H.fromJS)(n);let o=t.get("authorized")||(0,H.Map)();return o=o.set(r.get("name"),r),t.set("authorized",o)},[tc]:(t,{payload:e})=>{let r=t.get("authorized").withMutations((n=>{e.forEach((a=>{n.delete(a)}))}));return t.set("authorized",r)},[Zs]:(t,{payload:e})=>t.set("configs",e),[nc]:(t,{payload:e})=>t.set("authorized",(0,H.fromJS)(e.authorized))};function Po(t,e="expected a function, instead received "+typeof t){if(typeof t!="function")throw new TypeError(e)}var Ma=t=>Array.isArray(t)?t:[t];function oc(t){const e=Array.isArray(t[0])?t[0]:t;return(function(n,a="expected all items to be functions, instead received the following types: "){if(!n.every((o=>typeof o=="function"))){const o=n.map((p=>typeof p=="function"?`function ${p.name||"unnamed"}()`:typeof p)).join(", ");throw new TypeError(`${a}[${o}]`)}})(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}var jd=typeof WeakRef<"u"?WeakRef:class{constructor(t){this.value=t}deref(){return this.value}};function Bc(t,e={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=e;let a,o=0;function p(){let c=r;const{length:d}=arguments;for(let k=0,P=d;k{r={s:0,v:void 0,o:null,p:null},p.resetResultsCount()},p.resultsCount=()=>o,p.resetResultsCount=()=>{o=0},p}function qc(t,...e){const r=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,n=(...a)=>{let o,p=0,c=0,d={},E=a.pop();typeof E=="object"&&(d=E,E=a.pop()),Po(E,`createSelector expects an output function after the inputs, but received: [${typeof E}]`);const x={...r,...d},{memoize:k,memoizeOptions:P=[],argsMemoize:R=Bc,argsMemoizeOptions:L=[]}=x,V=Ma(P),Q=Ma(L),J=oc(a),re=k((function(){return p++,E.apply(null,arguments)}),...V),me=R((function(){c++;const ve=(function(ce,_e){const Ae=[],{length:xe}=ce;for(let Oe=0;Oec,resetDependencyRecomputations:()=>{c=0},lastResult:()=>o,recomputations:()=>p,resetRecomputations:()=>{p=0},memoize:k,argsMemoize:R})};return Object.assign(n,{withTypes:()=>n}),n}var yr=qc(Bc),co=Object.assign(((t,e=yr)=>{(function(a,o="expected an object, instead received "+typeof a){if(typeof a!="object")throw new TypeError(o)})(t,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof t);const r=Object.keys(t);return e(r.map((n=>t[n])),((...n)=>n.reduce(((a,o,p)=>(a[r[p]]=o,a)),{})))}),{withTypes:()=>co});const nl=t=>t,wi=yr(nl,(t=>t.get("showDefinitions"))),Uc=yr(nl,(()=>({specSelectors:t})=>{let e=t.securityDefinitions()||(0,H.Map)({}),r=(0,H.List)();return e.entrySeq().forEach((([n,a])=>{let o=(0,H.Map)();o=o.set(n,a),r=r.push(o)})),r})),al=(t,e)=>({specSelectors:r})=>(0,H.List)(r.isOAS3()?["components","securitySchemes",e]:["securityDefinitions",e]),Gu=(t,e)=>({specSelectors:r})=>{console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");let n=r.securityDefinitions(),a=(0,H.List)();return e.valueSeq().forEach((o=>{let p=(0,H.Map)();o.entrySeq().forEach((([c,d])=>{let E,x=n.get(c);x.get("type")==="oauth2"&&d.size&&(E=x.get("scopes"),E.keySeq().forEach((k=>{d.contains(k)||(E=E.delete(k))})),x=x.set("allowedScopes",E)),p=p.set(c,x)})),a=a.push(p)})),a},ic=(t,e=(0,H.List)())=>({authSelectors:r})=>{const n=r.definitionsToAuthorize()||(0,H.List)();let a=(0,H.List)();return n.forEach((o=>{let p=e.find((c=>c.get(o.keySeq().first())));p&&(o.forEach(((c,d)=>{if(c.get("type")==="oauth2"){const E=p.get(d);let x=c.get("scopes");H.List.isList(E)&&H.Map.isMap(x)&&(x.keySeq().forEach((k=>{E.contains(k)||(x=x.delete(k))})),o=o.set(d,c.set("scopes",x)))}})),a=a.push(o))})),a},zc=yr(nl,(t=>t.get("authorized")||(0,H.Map)())),rh=(t,e)=>({authSelectors:r})=>{let n=r.authorized();return H.List.isList(e)?!!e.toJS().filter((a=>Object.keys(a).map((o=>!!n.get(o))).indexOf(!1)===-1)).length:null},uo=yr(nl,(t=>t.get("configs"))),Yu=(t,{authSelectors:e,specSelectors:r})=>({path:n,method:a,operation:o,extras:p})=>{let c={authorized:e.authorized()&&e.authorized().toJS(),definitions:r.securityDefinitions()&&r.securityDefinitions().toJS(),specSecurity:r.security()&&r.security().toJS()};return t({path:n,method:a,operation:o,securities:c,...p})},Vc=(t,e)=>r=>{const{getConfigs:n,authActions:a}=e,o=n();if(t(r),o.persistAuthorization){const p=localStorage.getItem("authorized");p&&a.restoreAuthorization({authorized:JSON.parse(p)})}},Bi=(t,e)=>r=>{if(t(r),e.getConfigs().persistAuthorization)try{const[{schema:n,value:a}]=Object.values(r),o=(0,H.fromJS)(n),p=o.get("type")==="apiKey",c=o.get("in")==="cookie";p&&c&&(document.cookie=`${o.get("name")}=${a}; SameSite=None; Secure`)}catch(n){console.error("Error persisting cookie based apiKey in document.cookie.",n)}},Wo=(t,e)=>r=>{const n=e.getConfigs(),a=e.authSelectors.authorized();try{n.persistAuthorization&&Array.isArray(r)&&r.forEach((o=>{const p=a.get(o,{}),c=p.getIn(["schema","type"])==="apiKey",d=p.getIn(["schema","in"])==="cookie";if(c&&d){const E=p.getIn(["schema","name"]);document.cookie=`${E}=; Max-Age=-99999999`}}))}catch(o){console.error("Error deleting cookie based apiKey from document.cookie.",o)}t(r)};var $n=Be(90179),Ha=Be.n($n);class nh extends u.Component{mapStateToProps(e,r){return{state:e,ownProps:Ha()(r,Object.keys(r.getSystem()))}}render(){const{getComponent:e,ownProps:r}=this.props,n=e("LockIcon");return u.createElement(n,r)}}const Ei=nh;class Xu extends u.Component{mapStateToProps(e,r){return{state:e,ownProps:Ha()(r,Object.keys(r.getSystem()))}}render(){const{getComponent:e,ownProps:r}=this.props,n=e("UnlockIcon");return u.createElement(n,r)}}const ol=Xu;function Ss(){return{afterLoad(t){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=t.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=il.bind(null,t),this.rootInjects.preauthorizeBasic=Qu.bind(null,t)},components:{LockAuthIcon:Ei,UnlockAuthIcon:ol,LockAuthOperationIcon:Ei,UnlockAuthOperationIcon:ol},statePlugins:{auth:{reducers:bi,actions:N,selectors:s,wrapActions:{authorize:Bi,logout:Wo}},configs:{wrapActions:{loaded:Vc}},spec:{wrapActions:{execute:Yu}}}}}function Qu(t,e,r,n){const{authActions:{authorize:a},specSelectors:{specJson:o,isOAS3:p}}=t,c=p()?["components","securitySchemes"]:["securityDefinitions"],d=o().getIn([...c,e]);return d?a({[e]:{value:{username:r,password:n},schema:d.toJS()}}):null}function il(t,e,r){const{authActions:{authorize:n},specSelectors:{specJson:a,isOAS3:o}}=t,p=o()?["components","securitySchemes"]:["securityDefinitions"],c=a().getIn([...p,e]);return c?n({[e]:{value:r,schema:c.toJS()}}):null}function ah(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ri,sl,sc,Jc,Zu,Ra,Wc,ll,Hc,ep,cl,ul,tp,xa,qi,Si,rp,Ui,pl,hl,xi,xs,No,Kc,ra,dl,fl,ni,Gc,zi,lc,Yc,ml,gl,la,Vi,Ji,Wi,np,ap,oh,Ka,_s,Xc,ca={},yl={},Da={};function Hi(){if(ri)return Da;function t(e){return e==null}return ri=1,Da.isNothing=t,Da.isObject=function(r){return typeof r=="object"&&r!==null},Da.toArray=function(r){return Array.isArray(r)?r:t(r)?[]:[r]},Da.repeat=function(r,n){let a="";for(let o=0;o=48&&o<=55}function n(o){return o>=48&&o<=57}function a(o){let p=o,c=1,d=p[0];if(d!=="-"&&d!=="+"||(d==="-"&&(c=-1),p=p.slice(1),d=p[0]),p==="0")return 0;if(d==="0"){if(p[1]==="b")return c*parseInt(p.slice(2),2);if(p[1]==="x")return c*parseInt(p.slice(2),16);if(p[1]==="o")return c*parseInt(p.slice(2),8)}return c*parseInt(p,10)}return xs=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(p){if(p===null)return!1;const c=p.length;let d=0,E=!1;if(!c)return!1;let x=p[d];if(x!=="-"&&x!=="+"||(x=p[++d]),x==="0"){if(d+1===c)return!0;if(x=p[++d],x==="b"){for(d++;d=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102))return!1;E=!0}return E&&isFinite(a(p))}if(x==="o"){for(d++;d=0?"0b"+o.toString(2):"-0b"+o.toString(2).slice(1)},octal:function(o){return o>=0?"0o"+o.toString(8):"-0o"+o.toString(8).slice(1)},decimal:function(o){return o.toString(10)},hexadecimal:function(o){return o>=0?"0x"+o.toString(16).toUpperCase():"-0x"+o.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),xs}function pc(){if(ra)return Kc;ra=1;const t=Hi(),e=_a(),r=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),n=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=/^[-+]?[0-9]+e/;return Kc=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(p){return p!==null&&!!r.test(p)&&(!!isFinite(parseFloat(p,10))||n.test(p))},construct:function(p){let c=p.toLowerCase();const d=c[0]==="-"?-1:1;return"+-".indexOf(c[0])>=0&&(c=c.slice(1)),c===".inf"?d===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:c===".nan"?NaN:d*parseFloat(c,10)},predicate:function(p){return Object.prototype.toString.call(p)==="[object Number]"&&(p%1!=0||t.isNegativeZero(p))},represent:function(p,c){if(isNaN(p))switch(c){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===p)switch(c){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===p)switch(c){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(p))return"-0.0";const d=p.toString(10);return a.test(d)?d.replace("e",".e"):d},defaultStyle:"lowercase"}),Kc}function vl(){return fl?dl:(fl=1,dl=uc().extend({implicit:[Os(),To(),Qc(),pc()]}))}function Zc(){return Gc?ni:(Gc=1,ni=vl())}function eu(){if(lc)return zi;lc=1;const t=_a(),e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return zi=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(a){return a!==null&&(e.exec(a)!==null||r.exec(a)!==null)},construct:function(a){let o=0,p=null,c=e.exec(a);if(c===null&&(c=r.exec(a)),c===null)throw new Error("Date resolve error");const d=+c[1],E=+c[2]-1,x=+c[3];if(!c[4])return new Date(Date.UTC(d,E,x));const k=+c[4],P=+c[5],R=+c[6];if(c[7]){for(o=c[7].slice(0,3);o.length<3;)o+="0";o=+o}c[9]&&(p=6e4*(60*+c[10]+ +(c[11]||0)),c[9]==="-"&&(p=-p));const L=new Date(Date.UTC(d,E,x,k,P,R,o));return p&&L.setTime(L.getTime()-p),L},instanceOf:Date,represent:function(a){return a.toISOString()}}),zi}function op(){if(ml)return Yc;ml=1;const t=_a();return Yc=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(r){return r==="<<"||r===null}})}function tu(){if(la)return gl;la=1;const t=_a(),e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;return gl=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(n){if(n===null)return!1;let a=0;const o=n.length,p=e;for(let c=0;c64)){if(d<0)return!1;a+=6}}return a%8==0},construct:function(n){const a=n.replace(/[\r\n=]/g,""),o=a.length,p=e;let c=0;const d=[];for(let x=0;x>16&255),d.push(c>>8&255),d.push(255&c)),c=c<<6|p.indexOf(a.charAt(x));const E=o%4*6;return E===0?(d.push(c>>16&255),d.push(c>>8&255),d.push(255&c)):E===18?(d.push(c>>10&255),d.push(c>>2&255)):E===12&&d.push(c>>4&255),new Uint8Array(d)},predicate:function(n){return Object.prototype.toString.call(n)==="[object Uint8Array]"},represent:function(n){let a="",o=0;const p=n.length,c=e;for(let E=0;E>18&63],a+=c[o>>12&63],a+=c[o>>6&63],a+=c[63&o]),o=(o<<8)+n[E];const d=p%3;return d===0?(a+=c[o>>18&63],a+=c[o>>12&63],a+=c[o>>6&63],a+=c[63&o]):d===2?(a+=c[o>>10&63],a+=c[o>>4&63],a+=c[o<<2&63],a+=c[64]):d===1&&(a+=c[o>>2&63],a+=c[o<<4&63],a+=c[64],a+=c[64]),a}}),gl}function ip(){if(Ji)return Vi;Ji=1;const t=_a(),e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;return Vi=new t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(a){if(a===null)return!0;const o={},p=a;for(let c=0,d=p.length;cdr&&(tr=" ... ",bt=Xt-dr+tr.length),ut-Xt>dr&&(Er=" ...",ut=Xt+dr-Er.length),{str:tr+it.slice(bt,ut).replace(/\t/g,"→")+Er,pos:Xt-bt+tr.length}}function Ft(it,bt){return $e.repeat(" ",bt-it.length)+it}return Jc=function(bt,ut){if(ut=Object.create(ut||null),!bt.buffer)return null;ut.maxLength||(ut.maxLength=79),typeof ut.indent!="number"&&(ut.indent=1),typeof ut.linesBefore!="number"&&(ut.linesBefore=3),typeof ut.linesAfter!="number"&&(ut.linesAfter=2);const Xt=/\r?\n|\r|\0/g,zt=[0],tr=[];let Er,dr=-1;for(;Er=Xt.exec(bt.buffer);)tr.push(Er.index),zt.push(Er.index+Er[0].length),bt.position<=Er.index&&dr<0&&(dr=zt.length-2);dr<0&&(dr=zt.length-1);let qr="";const en=Math.min(bt.line+ut.linesAfter,tr.length).toString().length,kn=ut.maxLength-(ut.indent+en+3);for(let jt=1;jt<=ut.linesBefore&&!(dr-jt<0);jt++){const We=Je(bt.buffer,zt[dr-jt],tr[dr-jt],bt.position-(zt[dr]-zt[dr-jt]),kn);qr=$e.repeat(" ",ut.indent)+Ft((bt.line-jt+1).toString(),en)+" | "+We.str+` +`+qr}const ln=Je(bt.buffer,zt[dr],tr[dr],bt.position,kn);qr+=$e.repeat(" ",ut.indent)+Ft((bt.line+1).toString(),en)+" | "+ln.str+` +`,qr+=$e.repeat("-",ut.indent+en+3+ln.pos)+`^ +`;for(let jt=1;jt<=ut.linesAfter&&!(dr+jt>=tr.length);jt++){const We=Je(bt.buffer,zt[dr+jt],tr[dr+jt],bt.position-(zt[dr]-zt[dr+jt]),kn);qr+=$e.repeat(" ",ut.indent)+Ft((bt.line+jt+1).toString(),en)+" | "+We.str+` +`}return qr.replace(/\n$/,"")},Jc})(),n=O(),a=Object.prototype.hasOwnProperty,o=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/[\x85\u2028\u2029]/,c=/[,\[\]{}]/,d=/^(?:!|!!|![0-9A-Za-z-]+!)$/,E=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function x(W){return Object.prototype.toString.call(W)}function k(W){return W===10||W===13}function P(W){return W===9||W===32}function R(W){return W===9||W===32||W===10||W===13}function L(W){return W===44||W===91||W===93||W===123||W===125}function V(W){if(W>=48&&W<=57)return W-48;const $e=32|W;return $e>=97&&$e<=102?$e-97+10:-1}function Q(W){switch(W){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:case 9:return" ";case 110:return` +`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function J(W){return W<=65535?String.fromCharCode(W):String.fromCharCode(55296+(W-65536>>10),56320+(W-65536&1023))}function re(W,$e,Je){$e==="__proto__"?Object.defineProperty(W,$e,{configurable:!0,enumerable:!0,writable:!0,value:Je}):W[$e]=Je}const me=new Array(256),le=new Array(256);for(let W=0;W<256;W++)me[W]=Q(W)?1:0,le[W]=Q(W);function ve(W,$e){this.input=W,this.filename=$e.filename||null,this.schema=$e.schema||n,this.onWarning=$e.onWarning||null,this.legacy=$e.legacy||!1,this.json=$e.json||!1,this.listener=$e.listener||null,this.maxDepth=typeof $e.maxDepth=="number"?$e.maxDepth:100,this.maxTotalMergeKeys=typeof $e.maxTotalMergeKeys=="number"?$e.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=W.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function be(W,$e){const Je={name:W.filename,buffer:W.input.slice(0,-1),position:W.position,line:W.line,column:W.position-W.lineStart};return Je.snippet=r(Je),new e($e,Je)}function ce(W,$e){throw be(W,$e)}function _e(W,$e){W.onWarning&&W.onWarning.call(null,be(W,$e))}function Ae(W,$e,Je){const Ft=W.anchorMapTransactions;if(Ft.length!==0){const it=Ft[Ft.length-1];a.call(it,$e)||(it[$e]={existed:a.call(W.anchorMap,$e),value:W.anchorMap[$e]})}W.anchorMap[$e]=Je}function xe(W){return{position:W.position,line:W.line,lineStart:W.lineStart,lineIndent:W.lineIndent,firstTabInLine:W.firstTabInLine,tag:W.tag,anchor:W.anchor,kind:W.kind,result:W.result}}function Oe(W,$e){W.position=$e.position,W.line=$e.line,W.lineStart=$e.lineStart,W.lineIndent=$e.lineIndent,W.firstTabInLine=$e.firstTabInLine,W.tag=$e.tag,W.anchor=$e.anchor,W.kind=$e.kind,W.result=$e.result}const je={YAML:function($e,Je,Ft){$e.version!==null&&ce($e,"duplication of %YAML directive"),Ft.length!==1&&ce($e,"YAML directive accepts exactly one argument");const it=/^([0-9]+)\.([0-9]+)$/.exec(Ft[0]);it===null&&ce($e,"ill-formed argument of the YAML directive");const bt=parseInt(it[1],10),ut=parseInt(it[2],10);bt!==1&&ce($e,"unacceptable YAML version of the document"),$e.version=Ft[0],$e.checkLineBreaks=ut<2,ut!==1&&ut!==2&&_e($e,"unsupported YAML version of the document")},TAG:function($e,Je,Ft){let it;Ft.length!==2&&ce($e,"TAG directive accepts exactly two arguments");const bt=Ft[0];it=Ft[1],d.test(bt)||ce($e,"ill-formed tag handle (first argument) of the TAG directive"),a.call($e.tagMap,bt)&&ce($e,'there is a previously declared suffix for "'+bt+'" tag handle'),E.test(it)||ce($e,"ill-formed tag prefix (second argument) of the TAG directive");try{it=decodeURIComponent(it)}catch{ce($e,"tag prefix is malformed: "+it)}$e.tagMap[bt]=it}};function G(W,$e,Je,Ft){if($e=32&&Xt<=1114111||ce(W,"expected valid JSON character")}else o.test(it)&&ce(W,"the stream contains non-printable characters");W.result+=it}}function de(W,$e,Je,Ft){t.isObject(Je)||ce(W,"cannot merge mappings; the provided source object is unacceptable");const it=Object.keys(Je);for(let bt=0,ut=it.length;btW.maxTotalMergeKeys&&ce(W,"merge keys exceeded maxTotalMergeKeys ("+W.maxTotalMergeKeys+")"),a.call($e,Xt)||(re($e,Xt,Je[Xt]),Ft[Xt]=!0)}}function Ne(W,$e,Je,Ft,it,bt,ut,Xt,zt){if(Array.isArray(it))for(let tr=0,Er=(it=Array.prototype.slice.call(it)).length;tr1&&(W.result+=t.repeat(` +`,$e-1))}function qt(W,$e){const Je=W.tag,Ft=W.anchor,it=[];let bt=!1;if(W.firstTabInLine!==-1)return!1;W.anchor!==null&&Ae(W,W.anchor,it);let ut=W.input.charCodeAt(W.position);for(;ut!==0&&(W.firstTabInLine!==-1&&(W.position=W.firstTabInLine,ce(W,"tab characters must not be used in indentation")),ut===45)&&R(W.input.charCodeAt(W.position+1));){if(bt=!0,W.position++,ht(W,!0,-1)&&W.lineIndent<=$e){it.push(null),ut=W.input.charCodeAt(W.position);continue}const Xt=W.line;if(or(W,$e,3,!1,!0),it.push(W.result),ht(W,!0,-1),ut=W.input.charCodeAt(W.position),(W.line===Xt||W.lineIndent>$e)&&ut!==0)ce(W,"bad indentation of a sequence entry");else if(W.lineIndent<$e)break}return!!bt&&(W.tag=Je,W.anchor=Ft,W.kind="sequence",W.result=it,!0)}function It(W,$e,Je){let Ft,it,bt,ut;const Xt=W.tag,zt=W.anchor,tr={},Er=Object.create(null);let dr=null,qr=null,en=null,kn=!1,ln=!1;if(W.firstTabInLine!==-1)return!1;W.anchor!==null&&Ae(W,W.anchor,tr);let jt=W.input.charCodeAt(W.position);for(;jt!==0;){kn||W.firstTabInLine===-1||(W.position=W.firstTabInLine,ce(W,"tab characters must not be used in indentation"));const We=W.input.charCodeAt(W.position+1),Kr=W.line;if(jt!==63&&jt!==58||!R(We)){if(it=W.line,bt=W.lineStart,ut=W.position,!or(W,Je,2,!1,!0))break;if(W.line===Kr){for(jt=W.input.charCodeAt(W.position);P(jt);)jt=W.input.charCodeAt(++W.position);if(jt===58)jt=W.input.charCodeAt(++W.position),R(jt)||ce(W,"a whitespace character is expected after the key-value separator within a block mapping"),kn&&(Ne(W,tr,Er,dr,qr,null,it,bt,ut),dr=qr=en=null),ln=!0,kn=!1,Ft=!1,dr=W.tag,qr=W.result;else{if(!ln)return W.tag=Xt,W.anchor=zt,!0;ce(W,"can not read an implicit mapping pair; a colon is missed")}}else{if(!ln)return W.tag=Xt,W.anchor=zt,!0;ce(W,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else jt===63?(kn&&(Ne(W,tr,Er,dr,qr,null,it,bt,ut),dr=qr=en=null),ln=!0,kn=!0,Ft=!0):kn?(kn=!1,Ft=!0):ce(W,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),W.position+=1,jt=We;if((W.line===Kr||W.lineIndent>$e)&&(kn&&(it=W.line,bt=W.lineStart,ut=W.position),or(W,$e,4,!0,Ft)&&(kn?qr=W.result:en=W.result),kn||(Ne(W,tr,Er,dr,qr,en,it,bt,ut),dr=qr=en=null),ht(W,!0,-1),jt=W.input.charCodeAt(W.position)),(W.line===Kr||W.lineIndent>$e)&&jt!==0)ce(W,"bad indentation of a mapping entry");else if(W.lineIndent<$e)break}return kn&&Ne(W,tr,Er,dr,qr,null,it,bt,ut),ln&&(W.tag=Xt,W.anchor=zt,W.kind="mapping",W.result=tr),ln}function Ot(W){let $e,Je,Ft=!1,it=!1,bt=W.input.charCodeAt(W.position);if(bt!==33)return!1;W.tag!==null&&ce(W,"duplication of a tag property"),bt=W.input.charCodeAt(++W.position),bt===60?(Ft=!0,bt=W.input.charCodeAt(++W.position)):bt===33?(it=!0,$e="!!",bt=W.input.charCodeAt(++W.position)):$e="!";let ut=W.position;if(Ft){do bt=W.input.charCodeAt(++W.position);while(bt!==0&&bt!==62);W.position=0;tr-=1){const Er=Xt[zt[tr]];Er.existed?ut.anchorMap[zt[tr]]=Er.value:delete ut.anchorMap[zt[tr]]}})(W),Oe(W,it),!1)}function or(W,$e,Je,Ft,it){let bt,ut,Xt,zt,tr,Er=1,dr=!1,qr=!1,en=null;W.depth>=W.maxDepth&&ce(W,"nesting exceeded maxDepth ("+W.maxDepth+")"),W.depth+=1,W.listener!==null&&W.listener("open",W),W.tag=null,W.anchor=null,W.kind=null,W.result=null;const kn=bt=ut=Je===4||Je===3;if(Ft&&ht(W,!0,-1)&&(dr=!0,W.lineIndent>$e?Er=1:W.lineIndent===$e?Er=0:W.lineIndent<$e&&(Er=-1)),Er===1)for(;;){const ln=W.input.charCodeAt(W.position),jt=xe(W);if(dr&&(ln===33&&W.tag!==null||ln===38&&W.anchor!==null)||!Ot(W)&&!et(W))break;en===null&&(en=jt),ht(W,!0,-1)?(dr=!0,ut=kn,W.lineIndent>$e?Er=1:W.lineIndent===$e?Er=0:W.lineIndent<$e&&(Er=-1)):ut=!1}if(ut&&(ut=dr||it),Er===1||Je===4)if(zt=Je===1||Je===2?$e:$e+1,tr=W.position-W.lineStart,Er===1)if(ut&&(qt(W,tr)||It(W,tr,zt))||(function(jt,We){let Kr,Lr,zr,yn=!0;const En=jt.tag;let Pn;const Ua=jt.anchor;let Dn,Di,vn,cn;const hi=Object.create(null);let Hl,Xs,Zo,so=jt.input.charCodeAt(jt.position);if(so===91)Dn=93,cn=!1,Pn=[];else{if(so!==123)return!1;Dn=125,cn=!0,Pn={}}for(jt.anchor!==null&&Ae(jt,jt.anchor,Pn),so=jt.input.charCodeAt(++jt.position);so!==0;){if(ht(jt,!0,We),so=jt.input.charCodeAt(jt.position),so===Dn)return jt.position++,jt.tag=En,jt.anchor=Ua,jt.kind=cn?"mapping":"sequence",jt.result=Pn,!0;yn?so===44&&ce(jt,"expected the node content, but found ','"):ce(jt,"missed comma between flow collection entries"),Xs=Hl=Zo=null,Di=vn=!1,so===63&&R(jt.input.charCodeAt(jt.position+1))&&(Di=vn=!0,jt.position++,ht(jt,!0,We)),Kr=jt.line,Lr=jt.lineStart,zr=jt.position,or(jt,We,1,!1,!0),Xs=jt.tag,Hl=jt.result,ht(jt,!0,We),so=jt.input.charCodeAt(jt.position),!vn&&jt.line!==Kr||so!==58||(Di=!0,so=jt.input.charCodeAt(++jt.position),ht(jt,!0,We),or(jt,We,1,!1,!0),Zo=jt.result),cn?Ne(jt,Pn,hi,Xs,Hl,Zo,Kr,Lr,zr):Di?Pn.push(Ne(jt,null,hi,Xs,Hl,Zo,Kr,Lr,zr)):Pn.push(Hl),ht(jt,!0,We),so=jt.input.charCodeAt(jt.position),so===44?(yn=!0,so=jt.input.charCodeAt(++jt.position)):yn=!1}ce(jt,"unexpected end of the stream within a flow collection")})(W,zt))qr=!0;else{const ln=W.input.charCodeAt(W.position);en!==null&&kn&&!ut&&ln!==124&&ln!==62&&Dt(W,en,en.position-en.lineStart,zt)||bt&&(function(We,Kr){let Lr,zr,yn=1,En=!1,Pn=!1,Ua=Kr,Dn=0,Di=!1,vn=We.input.charCodeAt(We.position);if(vn===124)Lr=!1;else{if(vn!==62)return!1;Lr=!0}for(We.kind="scalar",We.result="";vn!==0;)if(vn=We.input.charCodeAt(++We.position),vn===43||vn===45)yn===1?yn=vn===43?3:2:ce(We,"repeat of a chomping mode identifier");else{if(!((zr=(cn=vn)>=48&&cn<=57?cn-48:-1)>=0))break;zr===0?ce(We,"bad explicit indentation width of a block scalar; it cannot be less than one"):Pn?ce(We,"repeat of an indentation width identifier"):(Ua=Kr+zr-1,Pn=!0)}var cn;if(P(vn)){do vn=We.input.charCodeAt(++We.position);while(P(vn));if(vn===35)do vn=We.input.charCodeAt(++We.position);while(!k(vn)&&vn!==0)}for(;vn!==0;){for(Ye(We),We.lineIndent=0,vn=We.input.charCodeAt(We.position);(!Pn||We.lineIndentUa&&(Ua=We.lineIndent),k(vn)){Dn++;continue}if(Pn||Ua!==0||ce(We,"missing indentation for block scalar"),We.lineIndent0){let Ua=yn,Dn=0;for(;Ua>0;Ua--)En=We.input.charCodeAt(++We.position),(yn=V(En))>=0?Dn=(Dn<<4)+yn:ce(We,"expected hexadecimal character");We.result+=J(Dn),We.position++}else ce(We,"unknown escape sequence");Lr=zr=We.position}else k(En)?(G(We,Lr,zr,!0),_t(We,ht(We,!1,Kr)),Lr=zr=We.position):We.position===We.lineStart&&Ct(We)?ce(We,"unexpected end of the document within a double quoted scalar"):(We.position++,P(En)||(zr=We.position))}var Pn;ce(We,"unexpected end of the stream within a double quoted scalar")})(W,zt)?qr=!0:(function(We){let Kr=We.input.charCodeAt(We.position);if(Kr!==42)return!1;Kr=We.input.charCodeAt(++We.position);const Lr=We.position;for(;Kr!==0&&!R(Kr)&&!L(Kr);)Kr=We.input.charCodeAt(++We.position);We.position===Lr&&ce(We,"name of an alias node must contain at least one character");const zr=We.input.slice(Lr,We.position);return a.call(We.anchorMap,zr)||ce(We,'unidentified alias "'+zr+'"'),We.result=We.anchorMap[zr],ht(We,!0,-1),!0})(W)?(qr=!0,W.tag===null&&W.anchor===null||ce(W,"alias node should not have any properties")):(function(We,Kr,Lr){let zr,yn,En,Pn,Ua,Dn;const Di=We.kind,vn=We.result;let cn=We.input.charCodeAt(We.position);if(R(cn)||L(cn)||cn===35||cn===38||cn===42||cn===33||cn===124||cn===62||cn===39||cn===34||cn===37||cn===64||cn===96)return!1;if(cn===63||cn===45){const hi=We.input.charCodeAt(We.position+1);if(R(hi)||Lr&&L(hi))return!1}for(We.kind="scalar",We.result="",zr=yn=We.position,En=!1;cn!==0;){if(cn===58){const hi=We.input.charCodeAt(We.position+1);if(R(hi)||Lr&&L(hi))break}else if(cn===35){if(R(We.input.charCodeAt(We.position-1)))break}else{if(We.position===We.lineStart&&Ct(We)||Lr&&L(cn))break;if(k(cn)){if(Pn=We.line,Ua=We.lineStart,Dn=We.lineIndent,ht(We,!1,-1),We.lineIndent>=Kr){En=!0,cn=We.input.charCodeAt(We.position);continue}We.position=yn,We.line=Pn,We.lineStart=Ua,We.lineIndent=Dn;break}}En&&(G(We,zr,yn,!1),_t(We,We.line-Pn),zr=yn=We.position,En=!1),P(cn)||(yn=We.position+1),cn=We.input.charCodeAt(++We.position)}return G(We,zr,yn,!1),!!We.result||(We.kind=Di,We.result=vn,!1)})(W,zt,Je===1)&&(qr=!0,W.tag===null&&(W.tag="?")),W.anchor!==null&&Ae(W,W.anchor,W.result)}else Er===0&&(qr=ut&&qt(W,tr));if(W.tag===null)W.anchor!==null&&Ae(W,W.anchor,W.result);else if(W.tag==="?"){W.result!==null&&W.kind!=="scalar"&&ce(W,'unacceptable node kind for ! tag; it should be "scalar", not "'+W.kind+'"');for(let ln=0,jt=W.implicitTypes.length;ln"),W.result!==null&&Xt.kind!==W.kind&&ce(W,"unacceptable node kind for !<"+W.tag+'> tag; it should be "'+Xt.kind+'", not "'+W.kind+'"'),Xt.resolve(W.result,W.tag)?(W.result=Xt.construct(W.result,W.tag),W.anchor!==null&&Ae(W,W.anchor,W.result)):ce(W,"cannot resolve a node with !<"+W.tag+"> explicit tag")}return W.listener!==null&&W.listener("close",W),W.depth-=1,W.tag!==null||W.anchor!==null||qr}function Ut(W){const $e=W.position;let Je,Ft=!1;for(W.version=null,W.checkLineBreaks=W.legacy,W.tagMap=Object.create(null),W.anchorMap=Object.create(null);(Je=W.input.charCodeAt(W.position))!==0&&(ht(W,!0,-1),Je=W.input.charCodeAt(W.position),!(W.lineIndent>0||Je!==37));){Ft=!0,Je=W.input.charCodeAt(++W.position);let it=W.position;for(;Je!==0&&!R(Je);)Je=W.input.charCodeAt(++W.position);const bt=W.input.slice(it,W.position),ut=[];for(bt.length<1&&ce(W,"directive name must not be less than one character in length");Je!==0;){for(;P(Je);)Je=W.input.charCodeAt(++W.position);if(Je===35){do Je=W.input.charCodeAt(++W.position);while(Je!==0&&!k(Je));break}if(k(Je))break;for(it=W.position;Je!==0&&!R(Je);)Je=W.input.charCodeAt(++W.position);ut.push(W.input.slice(it,W.position))}Je!==0&&Ye(W),a.call(je,bt)?je[bt](W,bt,ut):_e(W,'unknown document directive "'+bt+'"')}ht(W,!0,-1),W.lineIndent===0&&W.input.charCodeAt(W.position)===45&&W.input.charCodeAt(W.position+1)===45&&W.input.charCodeAt(W.position+2)===45?(W.position+=3,ht(W,!0,-1)):Ft&&ce(W,"directives end mark is expected"),or(W,W.lineIndent-1,4,!1,!0),ht(W,!0,-1),W.checkLineBreaks&&p.test(W.input.slice($e,W.position))&&_e(W,"non-ASCII line breaks are interpreted as content"),W.documents.push(W.result),W.position===W.lineStart&&Ct(W)?W.input.charCodeAt(W.position)===46&&(W.position+=3,ht(W,!0,-1)):W.position=32&&G<=126||G>=161&&G<=55295&&G!==8232&&G!==8233||G>=57344&&G<=65533&&G!==o||G>=65536&&G<=1114111}function V(G){return L(G)&&G!==o&&G!==13&&G!==10}function Q(G,de,Ne){const Ye=V(G),ht=Ye&&!R(G);return(Ne?Ye:Ye&&G!==44&&G!==91&&G!==93&&G!==123&&G!==125)&&G!==35&&!(de===58&&!ht)||V(de)&&!R(de)&&G===35||de===58&&ht}function J(G,de){const Ne=G.charCodeAt(de);let Ye;return Ne>=55296&&Ne<=56319&&de+1=56320&&Ye<=57343)?1024*(Ne-55296)+Ye-56320+65536:Ne}function re(G){return/^\n* /.test(G)}function me(G,de,Ne,Ye,ht,Ct,_t,qt){let It,Ot=0,et=null,Dt=!1,or=!1;const Ut=Ye!==-1;let pr=-1,W=(function(Je){return L(Je)&&Je!==o&&!R(Je)&&Je!==45&&Je!==63&&Je!==58&&Je!==44&&Je!==91&&Je!==93&&Je!==123&&Je!==125&&Je!==35&&Je!==38&&Je!==42&&Je!==33&&Je!==124&&Je!==61&&Je!==62&&Je!==39&&Je!==34&&Je!==37&&Je!==64&&Je!==96})(J(G,0))&&(function(Je){return!R(Je)&&Je!==58})(J(G,G.length-1));if(de||_t)for(It=0;It=65536?It+=2:It++){if(Ot=J(G,It),!L(Ot))return 5;W=W&&Q(Ot,et,qt),et=Ot}else{for(It=0;It=65536?It+=2:It++){if(Ot=J(G,It),Ot===10)Dt=!0,Ut&&(or=or||It-pr-1>Ye&&G[pr+1]!==" ",pr=It);else if(!L(Ot))return 5;W=W&&Q(Ot,et,qt),et=Ot}or=or||Ut&&It-pr-1>Ye&&G[pr+1]!==" "}return Dt||or?Ne>9&&re(G)?5:_t?Ct===2?5:2:or?4:3:!W||_t||ht(G)?Ct===2?5:2:1}function le(G,de,Ne,Ye,ht){G.dump=(function(){if(de.length===0)return G.quotingType===2?'""':"''";if(!G.noCompatMode&&(c.indexOf(de)!==-1||d.test(de)))return G.quotingType===2?'"'+de+'"':"'"+de+"'";const Ct=G.indent*Math.max(1,Ne),_t=G.lineWidth===-1?-1:Math.max(Math.min(G.lineWidth,40),G.lineWidth-Ct),qt=Ye||G.flowLevel>-1&&Ne>=G.flowLevel;switch(me(de,qt,G.indent,_t,(function(Ot){return(function(Dt,or){for(let Ut=0,pr=Dt.implicitTypes.length;Ut"+ve(de,G.indent)+be(k((function(Ot,et){const Dt=/(\n+)([^\n]*)/g;let or,Ut,pr=(function(){let $e=Ot.indexOf(` +`);return $e=$e!==-1?$e:Ot.length,Dt.lastIndex=$e,ce(Ot.slice(0,$e),et)})(),W=Ot[0]===` +`||Ot[0]===" ";for(;Ut=Dt.exec(Ot);){const $e=Ut[1],Je=Ut[2];or=Je[0]===" ",pr+=$e+(W||or||Je===""?"":` +`)+ce(Je,et),W=or}return pr})(de,_t),Ct));case 5:return'"'+(function(Ot){let et="",Dt=0;for(let or=0;or=65536?or+=2:or++){Dt=J(Ot,or);const Ut=p[Dt];!Ut&&L(Dt)?(et+=Ot[or],Dt>=65536&&(et+=Ot[or+1])):et+=Ut||E(Dt)}return et})(de)+'"';default:throw new e("impossible error: invalid scalar style")}})()}function ve(G,de){const Ne=re(G)?String(de):"",Ye=G[G.length-1]===` +`;return Ne+(Ye&&(G[G.length-2]===` +`||G===` +`)?"+":Ye?"":"-")+` +`}function be(G){return G[G.length-1]===` +`?G.slice(0,-1):G}function ce(G,de){if(G===""||G[0]===" ")return G;const Ne=/ [^ ]/g;let Ye,ht,Ct=0,_t=0,qt=0,It="";for(;Ye=Ne.exec(G);)qt=Ye.index,qt-Ct>de&&(ht=_t>Ct?_t:qt,It+=` +`+G.slice(Ct,ht),Ct=ht+1),_t=qt;return It+=` +`,G.length-Ct>de&&_t>Ct?It+=G.slice(Ct,_t)+` +`+G.slice(_t+1):It+=G.slice(Ct),It.slice(1)}function _e(G,de,Ne,Ye){let ht="";const Ct=G.tag;for(let _t=0,qt=Ne.length;_t tag resolver accepts not "'+qt+'" style');It=_t.represent[qt](de,qt)}G.dump=It}return!0}}return!1}function xe(G,de,Ne,Ye,ht,Ct,_t){G.tag=null,G.dump=Ne,Ae(G,Ne,!1)||Ae(G,Ne,!0);const qt=n.call(G.dump),It=Ye;Ye&&(Ye=G.flowLevel<0||G.flowLevel>de);const Ot=qt==="[object Object]"||qt==="[object Array]";let et,Dt;if(Ot&&(et=G.duplicates.indexOf(Ne),Dt=et!==-1),(G.tag!==null&&G.tag!=="?"||Dt||G.indent!==2&&de>0)&&(ht=!1),Dt&&G.usedDuplicates[et])G.dump="*ref_"+et;else{if(Ot&&Dt&&!G.usedDuplicates[et]&&(G.usedDuplicates[et]=!0),qt==="[object Object]")Ye&&Object.keys(G.dump).length!==0?((function(Ut,pr,W,$e){let Je="";const Ft=Ut.tag,it=Object.keys(W);if(Ut.sortKeys===!0)it.sort();else if(typeof Ut.sortKeys=="function")it.sort(Ut.sortKeys);else if(Ut.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let bt=0,ut=it.length;bt1024;Er&&(Ut.dump&&Ut.dump.charCodeAt(0)===10?Xt+="?":Xt+="? "),Xt+=Ut.dump,Er&&(Xt+=P(Ut,pr)),xe(Ut,pr+1,tr,!0,Er)&&(Ut.dump&&Ut.dump.charCodeAt(0)===10?Xt+=":":Xt+=": ",Xt+=Ut.dump,Je+=Xt)}Ut.tag=Ft,Ut.dump=Je||"{}"})(G,de,G.dump,ht),Dt&&(G.dump="&ref_"+et+G.dump)):((function(Ut,pr,W){let $e="";const Je=Ut.tag,Ft=Object.keys(W);for(let it=0,bt=Ft.length;it1024&&(ut+="? "),ut+=Ut.dump+(Ut.condenseFlow?'"':"")+":"+(Ut.condenseFlow?"":" "),xe(Ut,pr,zt,!1,!1)&&(ut+=Ut.dump,$e+=ut))}Ut.tag=Je,Ut.dump="{"+$e+"}"})(G,de,G.dump),Dt&&(G.dump="&ref_"+et+" "+G.dump));else if(qt==="[object Array]")Ye&&G.dump.length!==0?(G.noArrayIndent&&!_t&&de>0?_e(G,de-1,G.dump,ht):_e(G,de,G.dump,ht),Dt&&(G.dump="&ref_"+et+G.dump)):((function(Ut,pr,W){let $e="";const Je=Ut.tag;for(let Ft=0,it=W.length;Ft",G.dump=or+" "+G.dump}}return!0}function Oe(G,de){const Ne=[],Ye=[];je(G,Ne,Ye);const ht=Ye.length;for(let Ct=0;Ct()=>{},n0=t=>e=>{const{fn:{fetch:r}}=e;return r(t)},a0=(t,e)=>r=>{const{specActions:n,configsActions:a}=r;if(t)return a.downloadConfig(t).then(o,o);function o(p){p instanceof Error||p.status>=400?(n.updateLoadingStatus("failedConfig"),n.updateLoadingStatus("failedConfig"),n.updateUrl(""),console.error(p.statusText+" "+t.url),e(null)):e(((c,d)=>{try{return Pe.load(c)}catch(E){return d&&d.errActions.newThrownErr(new Error(E)),{}}})(p.text,r))}},Pd=(t,e)=>t.getIn(Array.isArray(e)?e:[e]),bl={[aa]:(t,e)=>t.merge((0,H.fromJS)(e.payload)),[Bn]:(t,e)=>{const r=e.payload,n=t.get(r);return t.set(r,!n)}};function Nd(){return{statePlugins:{configs:{reducers:bl,actions:h,selectors:v}}}}const wl=t=>t?history.pushState(null,null,`#${t}`):window.location.hash="";var Ki=Be(86215),lp=Be.n(Ki);const Gi="layout_scroll_to",ih="layout_clear_scroll",o0={fn:{getScrollParent:function(e,r){const n=document.documentElement;let a=getComputedStyle(e);const o=a.position==="absolute",p=r?/(auto|scroll|hidden)/:/(auto|scroll)/;if(a.position==="fixed")return n;for(let c=e;c=c.parentElement;)if(a=getComputedStyle(c),(!o||a.position!=="static")&&p.test(a.overflow+a.overflowY+a.overflowX))return c;return n}},statePlugins:{layout:{actions:{scrollToElement:(t,e)=>r=>{try{e=e||r.fn.getScrollParent(t),lp().createScroller(e).to(t)}catch(n){console.error(n)}},scrollTo:t=>({type:Gi,payload:Array.isArray(t)?t:[t]}),clearScrollTo:()=>({type:ih}),readyToScroll:(t,e)=>r=>{const n=r.layoutSelectors.getScrollToKey();H.default.is(n,(0,H.fromJS)(t))&&(r.layoutActions.scrollToElement(e),r.layoutActions.clearScrollTo())},parseDeepLinkHash:t=>({layoutActions:e,layoutSelectors:r,getConfigs:n})=>{if(n().deepLinking&&t){let a=t.slice(1);a[0]==="!"&&(a=a.slice(1)),a[0]==="/"&&(a=a.slice(1));const o=a.split("/").map((x=>x||"")),p=r.isShownKeyFromUrlHashArray(o),[c,d="",E=""]=p;if(c==="operations"){const x=r.isShownKeyFromUrlHashArray([d]);d.indexOf("_")>-1&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),e.show(x.map((k=>k.replace(/_/g," "))),!0)),e.show(x,!0)}(d.indexOf("_")>-1||E.indexOf("_")>-1)&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),e.show(p.map((x=>x.replace(/_/g," "))),!0)),e.show(p,!0),e.scrollTo(p)}}},selectors:{getScrollToKey:t=>t.get("scrollToKey"),isShownKeyFromUrlHashArray(t,e){const[r,n]=e;return n?["operations",r,n]:r?["operations-tag",r]:[]},urlHashArrayFromIsShownKey(t,e){let[r,n,a]=e;return r=="operations"?[n,a]:r=="operations-tag"?[n]:[]}},reducers:{[Gi]:(t,e)=>t.set("scrollToKey",H.default.fromJS(e.payload)),[ih]:t=>t.delete("scrollToKey")},wrapActions:{show:(t,{getConfigs:e,layoutSelectors:r})=>(...n)=>{if(t(...n),e().deepLinking)try{let[a,o]=n;a=Array.isArray(a)?a:[a];const p=r.urlHashArrayFromIsShownKey(a);if(!p.length)return;const[c,d]=p;if(!o)return wl("/");p.length===2?wl(Jo(`/${encodeURIComponent(c)}/${encodeURIComponent(d)}`)):p.length===1&&wl(Jo(`/${encodeURIComponent(c)}`))}catch(a){console.error(a)}}}}}};var i0=Be(2209),El=Be.n(i0);const cp=(t,e)=>class extends u.Component{onLoad=n=>{const{operation:a}=this.props,{tag:o,operationId:p}=a.toObject();let{isShownKey:c}=a.toObject();c=c||["operations",o,p],e.layoutActions.readyToScroll(c,n)};render(){return u.createElement("span",{ref:this.onLoad},u.createElement(t,this.props))}},ru=(t,e)=>class extends u.Component{onLoad=n=>{const{tag:a}=this.props,o=["operations-tag",a];e.layoutActions.readyToScroll(o,n)};render(){return u.createElement("span",{ref:this.onLoad},u.createElement(t,this.props))}};function up(){return[o0,{statePlugins:{configs:{wrapActions:{loaded:(t,e)=>(...r)=>{t(...r);const n=decodeURIComponent(window.location.hash);e.layoutActions.parseDeepLinkHash(n)}}}},wrapComponents:{operation:cp,OperationTag:ru}}]}var Td=Be(40860),nu=Be.n(Td);function Sl(t){return t.map((e=>{let r="is not of a type(s)",n=e.get("message").indexOf(r);if(n>-1){let a=e.get("message").slice(n+19).split(",");return e.set("message",e.get("message").slice(0,n)+(function(p){return p.reduce(((c,d,E,x)=>E===x.length-1&&x.length>1?c+"or "+d:x[E+1]&&x.length>2?c+d+", ":x[E+1]?c+d+" ":c+d),"should be a")})(a))}return e}))}var qn=Be(58156),Cn=Be.n(qn);function xl(t,{jsSpec:e}){return t}const Xa=[f,y];function Oa(t){let e={jsSpec:{}};return nu()(Xa,((n,a)=>{try{return a.transform(n,e).filter((o=>!!o))}catch(o){return console.error("Transformer error:",o),n}}),t).filter((n=>!!n)).map((n=>(!n.get("line")&&n.get("path"),n)))}let ks={line:0,level:"error",message:"Unknown error"};const hc=yr((t=>t),(t=>t.get("errors",(0,H.List)()))),Ko=yr(hc,(t=>t.last()));function sh(t){return{statePlugins:{err:{reducers:{[Gt]:(e,{payload:r})=>{let n=Object.assign(ks,r,{type:"thrown"});return e.update("errors",(a=>(a||(0,H.List)()).push((0,H.fromJS)(n)))).update("errors",(a=>Oa(a)))},[Sr]:(e,{payload:r})=>(r=r.map((n=>(0,H.fromJS)(Object.assign(ks,n,{type:"thrown"})))),e.update("errors",(n=>(n||(0,H.List)()).concat((0,H.fromJS)(r)))).update("errors",(n=>Oa(n)))),[kt]:(e,{payload:r})=>{let n=(0,H.fromJS)(r);return n=n.set("type","spec"),e.update("errors",(a=>(a||(0,H.List)()).push((0,H.fromJS)(n)).sortBy((o=>o.get("line"))))).update("errors",(a=>Oa(a)))},[yt]:(e,{payload:r})=>(r=r.map((n=>(0,H.fromJS)(Object.assign(ks,n,{type:"spec"})))),e.update("errors",(n=>(n||(0,H.List)()).concat((0,H.fromJS)(r)))).update("errors",(n=>Oa(n)))),[Zt]:(e,{payload:r})=>{let n=(0,H.fromJS)(Object.assign({},r));return n=n.set("type","auth"),e.update("errors",(a=>(a||(0,H.List)()).push((0,H.fromJS)(n)))).update("errors",(a=>Oa(a)))},[pe]:(e,{payload:r})=>{if(!r||!e.get("errors"))return e;let n=e.get("errors").filter((a=>a.keySeq().every((o=>{const p=a.get(o),c=r[o];return!c||p!==c}))));return e.merge({errors:n})},[U]:(e,{payload:r})=>{if(!r||typeof r!="function")return e;let n=e.get("errors").filter((a=>r(a)));return e.merge({errors:n})}},actions:w,selectors:m}}}}function Xm(t,e){return t.filter(((r,n)=>n.indexOf(e)!==-1))}function Id(){return{fn:{opsFilter:Xm}}}var lh=Be(7666),Yr=Be.n(lh);const As=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),ch=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),Md=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),Qm=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),_l=({className:t=null,width:e=15,height:r=16,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 16",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("g",{transform:"translate(2, -1)"},u.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))),au=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),ou=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),pp=()=>({components:{ArrowUpIcon:As,ArrowDownIcon:ch,ArrowIcon:Md,CloseIcon:Qm,CopyIcon:_l,LockIcon:au,UnlockIcon:ou}}),iu="layout_update_layout",Io="layout_update_filter",Mo="layout_update_mode",Cs="layout_show";function Yi(t){return{type:iu,payload:t}}function js(t){return{type:Io,payload:t}}function dc(t,e=!0){return t=fn(t),{type:Cs,payload:{thing:t,shown:e}}}function Zm(t,e=""){return t=fn(t),{type:Mo,payload:{thing:t,mode:e}}}const Rd={[iu]:(t,e)=>t.set("layout",e.payload),[Io]:(t,e)=>t.set("filter",e.payload),[Cs]:(t,e)=>{const r=e.payload.shown,n=(0,H.fromJS)(e.payload.thing);return t.update("shown",(0,H.fromJS)({}),(a=>a.set(n,r)))},[Mo]:(t,e)=>{let r=e.payload.thing,n=e.payload.mode;return t.setIn(["modes"].concat(r),(n||"")+"")}},Dd=t=>t.get("layout"),Go=t=>t.get("filter"),Ro=(t,e,r)=>(e=fn(e),t.get("shown",(0,H.fromJS)({})).get((0,H.fromJS)(e),r)),Un=(t,e,r="")=>(e=fn(e),t.getIn(["modes",...e],r)),Oi=yr((t=>t),(t=>!Ro(t,"editor"))),eg=(t,e)=>(r,...n)=>{let a=t(r,...n);const{fn:o,layoutSelectors:p,getConfigs:c}=e.getSystem(),d=c(),{maxDisplayedTags:E}=d;let x=p.currentFilter();return x&&x!==!0&&(a=o.opsFilter(a,x)),E>=0&&(a=a.slice(0,E)),a};function Fd(){return{statePlugins:{layout:{reducers:Rd,actions:g,selectors:S},spec:{wrapSelectors:_}}}}function uh({configs:t}){const e={debug:0,info:1,log:2,warn:3,error:4},r=p=>e[p]||-1;let{logLevel:n}=t,a=r(n);function o(p,...c){r(p)>=a&&console[p](...c)}return o.warn=o.bind(null,"warn"),o.error=o.bind(null,"error"),o.info=o.bind(null,"info"),o.debug=o.bind(null,"debug"),{rootInjects:{log:o}}}let hp=!1;function Ld(){return{statePlugins:{spec:{wrapActions:{updateSpec:t=>(...e)=>(hp=!0,t(...e)),updateJsonSpec:(t,e)=>(...r)=>{const n=e.getConfigs().onComplete;return hp&&typeof n=="function"&&(setTimeout(n,0),hp=!1),t(...r)}}}}}}const dp=t=>{const e="_**[]";return t.indexOf(e)<0?t:t.split(e)[0].trim()},tg=t=>t==="-d "||/^[_\/-]/g.test(t)?t:"'"+t.replace(/'/g,"'\\''")+"'",su=t=>(t=t.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,`^ +`))==="-d "?t.replace(/-d /g,`-d ^ +`):/^[_\/-]/g.test(t)?t:'"'+t+'"',$d=t=>t==="-d "?t:/\n/.test(t)?`@" +${t.replace(/`/g,"``").replace(/\$/g,"`$")} +"@`:/^[_\/-]/.test(t)?t:`'${t.replace(/'/g,"''")}'`,Bd=(t,e,r,n="")=>{let a=!1,o="";const p=(...R)=>o+=" "+R.map(e).join(" "),c=(...R)=>o+=R.map(e).join(" "),d=()=>o+=` ${r}`,E=(R=1)=>o+=" ".repeat(R);let x=t.get("headers");o+="curl"+n;const k=t.get("curlOptions");if(H.List.isList(k)&&!k.isEmpty()&&p(...t.get("curlOptions")),p("-X",t.get("method")),d(),E(),c(`${t.get("url")}`),x&&x.size)for(let R of t.get("headers").entries()){d(),E();let[L,V]=R;c("-H",`${L}: ${V}`),a=a||/^content-type$/i.test(L)&&/^multipart\/form-data$/i.test(V)}const P=t.get("body");if(P)if(a&&["POST","PUT","PATCH"].includes(t.get("method")))for(let[R,L]of P.entrySeq()){let V=dp(R);d(),E(),c("-F"),L instanceof Qe.File&&typeof L.valueOf()=="string"?p(`${V}=${L.data}${L.type?`;type=${L.type}`:""}`):L instanceof Qe.File?p(`${V}=@${L.name}${L.type?`;type=${L.type}`:""}`):p(`${V}=${L}`)}else if(P instanceof Qe.File)d(),E(),c(`--data-binary '@${P.name}'`);else{d(),E(),c("-d ");let R=P;H.Map.isMap(R)?c((function(V){let Q=[];for(let[J,re]of V.get("body").entrySeq()){let me=dp(J);re instanceof Qe.File?Q.push(` "${me}": { + "name": "${re.name}"${re.type?`, + "type": "${re.type}"`:""} + }`):Q.push(` "${me}": ${JSON.stringify(re,null,2).replace(/(\r\n|\r|\n)/g,` + `)}`)}return`{ +${Q.join(`, +`)} +}`})(t)):(typeof R!="string"&&(R=JSON.stringify(R)),c(R))}else P||t.get("method")!=="POST"||(d(),E(),c("-d ''"));return o},fp=t=>Bd(t,$d,"`\n",".exe"),mp=t=>Bd(t,tg,`\\ +`),rg=t=>Bd(t,su,`^ +`),ph=t=>t||(0,H.Map)(),fc=yr(ph,(t=>{const e=t.get("languages"),r=t.get("generators",(0,H.Map)());return!e||e.isEmpty()?r:r.filter(((n,a)=>e.includes(a)))})),ng=t=>({fn:e})=>fc(t).map(((r,n)=>{const a=(o=>e[`requestSnippetGenerator_${o}`])(n);return typeof a!="function"?null:r.set("fn",a)})).filter((r=>r)),hh=yr(ph,(t=>t.get("activeLanguage"))),dh=yr(ph,(t=>t.get("defaultExpanded")));var lu=Be(46942),Xr=Be.n(lu),cu=Be(59399);const uu="Copy request snippet to clipboard",qd={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(250, 250, 250)",paddingBottom:"0",paddingTop:"0",border:"1px solid rgb(51, 51, 51)",borderRadius:"4px 4px 0 0",boxShadow:"none",borderBottom:"none"},pu={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(51, 51, 51)",boxShadow:"none",border:"1px solid rgb(51, 51, 51)",paddingBottom:"0",paddingTop:"0",borderRadius:"4px 4px 0 0",marginTop:"-5px",marginRight:"-5px",marginLeft:"-5px",zIndex:"9999",borderBottom:"none"},oi=({request:t,requestSnippetsSelectors:e,getComponent:r})=>{const n=(0,u.useRef)(null),a=r("ArrowUpIcon"),o=r("ArrowDownIcon"),p=r("SyntaxHighlighter",!0),[c,d]=(0,u.useState)(e.getSnippetGenerators()?.keySeq().first()),[E,x]=(0,u.useState)(e?.getDefaultExpanded()),k=e.getSnippetGenerators(),P=k.get(c),R=P.get("fn")(t),L=()=>{x(!E)},V=J=>J===c?pu:qd,Q=J=>{const{target:re,deltaY:me}=J,{scrollHeight:le,offsetHeight:ve,scrollTop:be}=re;le>ve&&(be===0&&me<0||ve+be>=le&&me>0)&&J.preventDefault()};return(0,u.useEffect)((()=>{}),[]),(0,u.useEffect)((()=>{const J=Array.from(n.current.childNodes).filter((re=>!!re.nodeType&&re.classList?.contains("curl-command")));return J.forEach((re=>re.addEventListener("mousewheel",Q,{passive:!1}))),()=>{J.forEach((re=>re.removeEventListener("mousewheel",Q)))}}),[t]),u.createElement("div",{className:"request-snippets",ref:n},u.createElement("div",{style:{width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"15px"}},u.createElement("h4",{onClick:()=>L(),style:{cursor:"pointer"}},"Snippets"),u.createElement("button",{onClick:()=>L(),style:{border:"none",background:"none"},title:E?"Collapse operation":"Expand operation"},E?u.createElement(o,{className:"arrow",width:"10",height:"10"}):u.createElement(a,{className:"arrow",width:"10",height:"10"}))),E&&u.createElement("div",{className:"curl-command"},u.createElement("div",{style:{paddingLeft:"15px",paddingRight:"10px",width:"100%",display:"flex"}},k.entrySeq().map((([J,re])=>u.createElement("div",{className:Xr()("btn",{active:J===c}),style:V(J),key:J,onClick:()=>(me=>{c!==me&&d(me)})(J)},u.createElement("h4",{style:J===c?{color:"white"}:{}},re.get("title")))))),u.createElement("div",{className:"copy-to-clipboard",title:uu,"aria-label":uu},u.createElement(cu.CopyToClipboard,{text:R},u.createElement("button",{"aria-label":uu,title:uu,type:"button"}))),u.createElement("div",null,u.createElement(p,{language:P.get("syntax"),className:"curl microlight",renderPlainText:({children:J,PlainTextViewer:re})=>u.createElement(re,{className:"curl"},J)},R))))},Ol=()=>({components:{RequestSnippets:oi},fn:{requestSnippetGenerator_curl_bash:mp,requestSnippetGenerator_curl_cmd:rg,requestSnippetGenerator_curl_powershell:fp},statePlugins:{requestSnippets:{selectors:T}}});class gp extends u.Component{static defaultProps={collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:H.default.List([])};constructor(e,r){super(e,r);let{expanded:n,collapsedContent:a}=this.props;this.state={expanded:n,collapsedContent:a||gp.defaultProps.collapsedContent}}componentDidMount(){const{hideSelfOnExpand:e,expanded:r,modelName:n}=this.props;e&&r&&this.props.onToggle(n,r)}UNSAFE_componentWillReceiveProps(e){this.props.expanded!==e.expanded&&this.setState({expanded:e.expanded})}toggleCollapsed=()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})};onLoad=e=>{if(e&&this.props.layoutSelectors){const r=this.props.layoutSelectors.getScrollToKey();H.default.is(r,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,e.parentElement)}};render(){const{title:e,classes:r}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?u.createElement("span",{className:r||""},this.props.children):u.createElement("span",{className:r||"",ref:this.onLoad},u.createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},e&&u.createElement("span",{className:"pointer"},e),u.createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&u.createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}}const ag=({initialTab:t,isExecute:e,schema:r,example:n})=>{const a=(0,u.useMemo)((()=>({example:"example",model:"model"})),[]),o=(0,u.useMemo)((()=>Object.keys(a)),[a]).includes(t)&&r&&!e?t:a.example,p=(x=>{const k=(0,u.useRef)();return(0,u.useEffect)((()=>{k.current=x})),k.current})(e),[c,d]=(0,u.useState)(o),E=(0,u.useCallback)((x=>{d(x.target.dataset.name)}),[]);return(0,u.useEffect)((()=>{p&&!e&&n&&d(a.example)}),[p,e,n]),{activeTab:c,onTabChange:E,tabs:a}},Ps=({schema:t,example:e,isExecute:r=!1,specPath:n,includeWriteOnly:a=!1,includeReadOnly:o=!1,getComponent:p,getConfigs:c,specSelectors:d})=>{const{defaultModelRendering:E,defaultModelExpandDepth:x}=c(),k=p("ModelWrapper"),P=p("HighlightCode",!0),R=Fn()(5).toString("base64"),L=Fn()(5).toString("base64"),V=Fn()(5).toString("base64"),Q=Fn()(5).toString("base64"),J=d.isOAS3(),{activeTab:re,tabs:me,onTabChange:le}=ag({initialTab:E,isExecute:r,schema:t,example:e});return u.createElement("div",{className:"model-example"},u.createElement("ul",{className:"tab",role:"tablist"},u.createElement("li",{className:Xr()("tabitem",{active:re===me.example}),role:"presentation"},u.createElement("button",{"aria-controls":L,"aria-selected":re===me.example,className:"tablinks","data-name":"example",id:R,onClick:le,role:"tab"},r?"Edit Value":"Example Value")),t&&u.createElement("li",{className:Xr()("tabitem",{active:re===me.model}),role:"presentation"},u.createElement("button",{"aria-controls":Q,"aria-selected":re===me.model,className:Xr()("tablinks",{inactive:r}),"data-name":"model",id:V,onClick:le,role:"tab"},J?"Schema":"Model"))),re===me.example&&u.createElement("div",{"aria-hidden":re!==me.example,"aria-labelledby":R,"data-name":"examplePanel",id:L,role:"tabpanel",tabIndex:"0"},e||u.createElement(P,null,"(no example available")),re===me.model&&u.createElement("div",{className:"model-container","aria-hidden":re===me.example,"aria-labelledby":V,"data-name":"modelPanel",id:Q,role:"tabpanel",tabIndex:"0"},u.createElement(k,{schema:t,getComponent:p,getConfigs:c,specSelectors:d,expandDepth:x,specPath:n,includeReadOnly:o,includeWriteOnly:a})))};class kl extends u.Component{onToggle=(e,r)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,r)};render(){let{getComponent:e,getConfigs:r}=this.props;const n=e("Model");let a;return this.props.layoutSelectors&&(a=this.props.layoutSelectors.isShown(this.props.fullPath)),u.createElement("div",{className:"model-box"},u.createElement(n,Yr()({},this.props,{getConfigs:r,expanded:a,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}function yp(t){return yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yp(t)}function og(t,e){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=(function(p,c){return function(d){if(typeof d=="string")return(0,H.is)(c[d],p[d]);if(Array.isArray(d))return(0,H.is)(ki(c,d),ki(p,d));throw new TypeError("Invalid key: expected Array or string: "+d)}})(e,r),a=t||Object.keys((function(p){for(var c=1;c1&&arguments[1]!==void 0?arguments[1]:{};return!du(this.updateOnProps,this.props,n,"updateOnProps")||!du(this.updateOnStates,this.state,a,"updateOnStates")}}]),e})(u.Component);var Al,zd=Be(5556),va=Be.n(zd);function gh(){return gh=Object.assign?Object.assign.bind():function(t){for(var e=1;eu.createElement("svg",gh({xmlns:"http://www.w3.org/2000/svg",width:200,height:200,className:"rolling-load_svg__lds-rolling",preserveAspectRatio:"xMidYMid",style:{backgroundImage:"none",backgroundPosition:"initial initial",backgroundRepeat:"initial initial"},viewBox:"0 0 100 100"},t),Al||(Al=u.createElement("circle",{cx:50,cy:50,r:35,fill:"none",stroke:"#555",strokeDasharray:"164.93361431346415 56.97787143782138",strokeWidth:10},u.createElement("animateTransform",{attributeName:"transform",begin:"0s",calcMode:"linear",dur:"1s",keyTimes:"0;1",repeatCount:"indefinite",type:"rotate",values:"0 50 50;360 50 50"})))),Wn=t=>{const e=t.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(e)}catch{return e}};class vh extends bp{static propTypes={schema:El().map.isRequired,getComponent:va().func.isRequired,getConfigs:va().func.isRequired,specSelectors:va().object.isRequired,name:va().string,displayName:va().string,isRef:va().bool,required:va().bool,expandDepth:va().number,depth:va().number,specPath:El().list.isRequired,includeReadOnly:va().bool,includeWriteOnly:va().bool};getModelName=e=>e.indexOf("#/definitions/")!==-1?Wn(e.replace(/^.*#\/definitions\//,"")):e.indexOf("#/components/schemas/")!==-1?Wn(e.replace(/^.*#\/components\/schemas\//,"")):void 0;getRefSchema=e=>{let{specSelectors:r}=this.props;return r.findDefinition(e)};render(){let{getComponent:e,getConfigs:r,specSelectors:n,schema:a,required:o,name:p,isRef:c,specPath:d,displayName:E,includeReadOnly:x,includeWriteOnly:k}=this.props;const P=e("ObjectModel"),R=e("ArrayModel"),L=e("PrimitiveModel");let V="object",Q=a&&a.get("$$ref"),J=a&&a.get("$ref");if(!p&&Q&&(p=this.getModelName(Q)),J){const me=this.getModelName(J),le=this.getRefSchema(me);H.Map.isMap(le)?(a=le.mergeDeep(a),Q||(a=a.set("$$ref",J),Q=J)):H.Map.isMap(a)&&a.size===1&&(a=null,p=J)}if(!a)return u.createElement("strong",{className:"model model-title"},u.createElement("span",{className:"model-title__text"},E||p),!J&&u.createElement(yh,{height:"20px",width:"20px"}));const re=n.isOAS3()&&a.get("deprecated");switch(c=c!==void 0?c:!!Q,V=a&&a.get("type")||V,V){case"object":return u.createElement(P,Yr()({className:"object"},this.props,{specPath:d,getConfigs:r,schema:a,name:p,deprecated:re,isRef:c,includeReadOnly:x,includeWriteOnly:k}));case"array":return u.createElement(R,Yr()({className:"array"},this.props,{getConfigs:r,schema:a,name:p,deprecated:re,required:o,includeReadOnly:x,includeWriteOnly:k}));default:return u.createElement(L,Yr()({},this.props,{getComponent:e,getConfigs:r,schema:a,name:p,deprecated:re,required:o}))}}}class Vd extends u.Component{getSchemaBasePath=()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"];getCollapsedContent=()=>" ";handleToggle=(e,r)=>{const{layoutActions:n}=this.props;n.show([...this.getSchemaBasePath(),e],r),r&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),e])};onLoadModels=e=>{e&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),e)};onLoadModel=e=>{if(e){const r=e.getAttribute("data-name");this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),r],e)}};render(){let{specSelectors:e,getComponent:r,layoutSelectors:n,layoutActions:a,getConfigs:o}=this.props,p=e.definitions(),{docExpansion:c,defaultModelsExpandDepth:d}=o();if(!p.size||d<0)return null;const E=this.getSchemaBasePath();let x=n.isShown(E,d>0&&c!=="none");const k=e.isOAS3(),P=r("ModelWrapper"),R=r("Collapse"),L=r("ModelCollapse"),V=r("JumpToPath",!0),Q=r("ArrowUpIcon"),J=r("ArrowDownIcon");return u.createElement("section",{className:x?"models is-open":"models",ref:this.onLoadModels},u.createElement("h4",null,u.createElement("button",{"aria-expanded":x,className:"models-control",onClick:()=>a.show(E,!x)},u.createElement("span",null,k?"Schemas":"Models"),x?u.createElement(Q,null):u.createElement(J,null))),u.createElement(R,{isOpened:x},p.entrySeq().map((([re])=>{const me=[...E,re],le=H.default.List(me),ve=e.specResolvedSubtree(me),be=e.specJson().getIn(me),ce=H.Map.isMap(ve)?ve:H.default.Map(),_e=H.Map.isMap(be)?be:H.default.Map(),Ae=ce.get("title")||_e.get("title")||re,xe=n.isShown(me,!1);xe&&ce.size===0&&_e.size>0&&this.props.specActions.requestResolvedSubtree(me);const Oe=u.createElement(P,{name:re,expandDepth:d,schema:ce||H.default.Map(),displayName:Ae,fullPath:me,specPath:le,getComponent:r,specSelectors:e,getConfigs:o,layoutSelectors:n,layoutActions:a,includeReadOnly:!0,includeWriteOnly:!0}),je=u.createElement("span",{className:"model-box"},u.createElement("strong",{className:"model model-title"},Ae));return u.createElement("div",{id:`model-${re}`,className:"model-container",key:`models-section-${re}`,"data-name":re,ref:this.onLoadModel},u.createElement("span",{className:"models-jump-to-path"},u.createElement(V,{path:le})),u.createElement(L,{classes:"model-box",collapsedContent:this.getCollapsedContent(re),onToggle:this.handleToggle,title:je,displayName:Ae,modelName:re,specPath:le,layoutSelectors:n,layoutActions:a,hideSelfOnExpand:!0,expanded:d>0&&xe},Oe))})).toArray()))}}const Jd=({value:t,getComponent:e})=>{let r=e("ModelCollapse"),n=u.createElement("span",null,"Array [ ",t.count()," ]");return u.createElement("span",{className:"prop-enum"},"Enum:",u.createElement("br",null),u.createElement(r,{collapsedContent:n},"[ ",t.map(String).join(", ")," ]"))};function fu(t){return t.match(/^(?:[a-z]+:)?\/\//i)}function Wd(t,e){return t?fu(t)?(function(n){return n.match(/^\/\//i)?`${window.location.protocol}${n}`:n})(t):new URL(t,e).href:e}function ba(t,e,{selectedServer:r=""}={}){try{return(function(a,o,{selectedServer:p=""}={}){if(!a)return;if(fu(a))return a;const c=Wd(p,o);return fu(c)?new URL(a,c).href:new URL(a,window.location.href).href})(t,e,{selectedServer:r})}catch{return}}function Dr(t){if(typeof t!="string"||t.trim()==="")return"";const e=t.trim(),r="about:blank";try{const n=`https://base${String(Math.random()).slice(2)}`,a=new URL(e,n),o=a.protocol.slice(0,-1);return["javascript","data","vbscript"].includes(o.toLowerCase())?r:a.origin===n?e.startsWith("/")?`${a.pathname}${a.search}${a.hash}`:e.startsWith("./")||e.startsWith("../")?`${e.match(/^(\.\.?\/)+/)[0]}${a.pathname.substring(1)}${a.search}${a.hash}`:`${a.pathname.substring(1)}${a.search}${a.hash}`:String(a)}catch{return r}}class ka extends u.Component{render(){let{schema:e,name:r,displayName:n,isRef:a,getComponent:o,getConfigs:p,depth:c,onToggle:d,expanded:E,specPath:x,...k}=this.props,{specSelectors:P,expandDepth:R,includeReadOnly:L,includeWriteOnly:V}=k;const{isOAS3:Q}=P,J=c>2||c===2&&x.last()!=="items";if(!e)return null;const{showExtensions:re}=p(),me=re?gr(e):(0,H.List)();let le=e.get("description"),ve=e.get("properties"),be=e.get("additionalProperties"),ce=e.get("title")||n||r,_e=e.get("required"),Ae=e.filter(((pr,W)=>["maxProperties","minProperties","nullable","example"].indexOf(W)!==-1)),xe=e.get("deprecated"),Oe=e.getIn(["externalDocs","url"]),je=e.getIn(["externalDocs","description"]);const G=o("JumpToPath",!0),de=o("Markdown",!0),Ne=o("Model"),Ye=o("ModelCollapse"),ht=o("Property"),Ct=o("Link"),_t=o("ModelExtensions"),qt=()=>u.createElement("span",{className:"model-jump-to-path"},u.createElement(G,{path:x})),It=u.createElement("span",null,u.createElement("span",null,"{"),"...",u.createElement("span",null,"}"),a?u.createElement(qt,null):""),Ot=P.isOAS3()?e.get("allOf"):null,et=P.isOAS3()?e.get("anyOf"):null,Dt=P.isOAS3()?e.get("oneOf"):null,or=P.isOAS3()?e.get("not"):null,Ut=ce&&u.createElement("strong",{className:"model-title"},a&&e.get("$$ref")&&u.createElement("span",{className:Xr()("model-hint",{"model-hint--embedded":J})},e.get("$$ref")),u.createElement("span",{className:"model-title__text"},ce));return u.createElement("span",{className:"model"},u.createElement(Ye,{modelName:r,title:Ut,onToggle:d,expanded:!!E||c<=R,collapsedContent:It},u.createElement("span",{className:"brace-open object"},"{"),a?u.createElement(qt,null):null,u.createElement("span",{className:"inner-object"},u.createElement("table",{className:"model"},u.createElement("tbody",null,le?u.createElement("tr",{className:"description"},u.createElement("td",null,"description:"),u.createElement("td",null,u.createElement(de,{source:le}))):null,Oe&&u.createElement("tr",{className:"external-docs"},u.createElement("td",null,"externalDocs:"),u.createElement("td",null,u.createElement(Ct,{target:"_blank",href:Dr(Oe)},je||Oe))),xe?u.createElement("tr",{className:"property"},u.createElement("td",null,"deprecated:"),u.createElement("td",null,"true")):null,ve&&ve.size?ve.entrySeq().filter((([,pr])=>(!pr.get("readOnly")||L)&&(!pr.get("writeOnly")||V))).map((([pr,W])=>{let $e=Q()&&W.get("deprecated"),Je=H.List.isList(_e)&&_e.contains(pr),Ft=["property-row"];return $e&&Ft.push("deprecated"),Je&&Ft.push("required"),u.createElement("tr",{key:pr,className:Ft.join(" ")},u.createElement("td",null,pr,Je&&u.createElement("span",{className:"star"},"*")),u.createElement("td",null,u.createElement(Ne,Yr()({key:`object-${r}-${pr}_${W}`},k,{required:Je,getComponent:o,specPath:x.push("properties",pr),getConfigs:p,schema:W,depth:c+1}))))})).toArray():null,me.size===0?null:u.createElement(u.Fragment,null,u.createElement("tr",null,u.createElement("td",null," ")),u.createElement(_t,{extensions:me,propClass:"extension"})),be&&be.size?u.createElement("tr",null,u.createElement("td",null,"< * >:"),u.createElement("td",null,u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("additionalProperties"),getConfigs:p,schema:be,depth:c+1})))):null,Ot?u.createElement("tr",null,u.createElement("td",null,"allOf ->"),u.createElement("td",null,Ot.map(((pr,W)=>u.createElement("div",{key:W},u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("allOf",W),getConfigs:p,schema:pr,depth:c+1}))))))):null,et?u.createElement("tr",null,u.createElement("td",null,"anyOf ->"),u.createElement("td",null,et.map(((pr,W)=>u.createElement("div",{key:W},u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("anyOf",W),getConfigs:p,schema:pr,depth:c+1}))))))):null,Dt?u.createElement("tr",null,u.createElement("td",null,"oneOf ->"),u.createElement("td",null,Dt.map(((pr,W)=>u.createElement("div",{key:W},u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("oneOf",W),getConfigs:p,schema:pr,depth:c+1}))))))):null,or?u.createElement("tr",null,u.createElement("td",null,"not ->"),u.createElement("td",null,u.createElement("div",null,u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("not"),getConfigs:p,schema:or,depth:c+1}))))):null))),u.createElement("span",{className:"brace-close"},"}")),Ae.size?Ae.entrySeq().map((([pr,W])=>u.createElement(ht,{key:`${pr}-${W}`,propKey:pr,propVal:W,propClass:"property"}))):null)}}class Aa extends u.Component{render(){let{getComponent:e,getConfigs:r,schema:n,depth:a,expandDepth:o,name:p,displayName:c,specPath:d}=this.props,E=n.get("description"),x=n.get("items"),k=n.get("title")||c||p,P=n.filter(((ve,be)=>["type","items","description","$$ref","externalDocs"].indexOf(be)===-1)),R=n.getIn(["externalDocs","url"]),L=n.getIn(["externalDocs","description"]);const V=e("Markdown",!0),Q=e("ModelCollapse"),J=e("Model"),re=e("Property"),me=e("Link"),le=k&&u.createElement("strong",{className:"model-title"},u.createElement("span",{className:"model-title__text"},k));return u.createElement("span",{className:"model"},u.createElement(Q,{title:le,expanded:a<=o,collapsedContent:"[...]"},"[",P.size?P.entrySeq().map((([ve,be])=>u.createElement(re,{key:`${ve}-${be}`,propKey:ve,propVal:be,propClass:"property"}))):null,E?u.createElement(V,{source:E}):P.size?u.createElement("div",{className:"markdown"}):null,R&&u.createElement("div",{className:"external-docs"},u.createElement(me,{target:"_blank",href:Dr(R)},L||R)),u.createElement("span",null,u.createElement(J,Yr()({},this.props,{getConfigs:r,specPath:d.push("items"),name:null,schema:x,required:!1,depth:a+1}))),"]"))}}const mc="property primitive";class wp extends u.Component{render(){let{schema:e,getComponent:r,getConfigs:n,name:a,displayName:o,depth:p,expandDepth:c}=this.props;const{showExtensions:d}=n();if(!e||!e.get)return u.createElement("div",null);let E=e.get("type"),x=e.get("format"),k=e.get("xml"),P=e.get("enum"),R=e.get("title")||o||a,L=e.get("description");const V=gr(e);let Q=e.filter(((xe,Oe)=>["enum","type","format","description","$$ref","externalDocs"].indexOf(Oe)===-1)).filterNot(((xe,Oe)=>V.has(Oe))),J=e.getIn(["externalDocs","url"]),re=e.getIn(["externalDocs","description"]);const me=r("Markdown",!0),le=r("EnumModel"),ve=r("Property"),be=r("ModelCollapse"),ce=r("Link"),_e=r("ModelExtensions"),Ae=R&&u.createElement("strong",{className:"model-title"},u.createElement("span",{className:"model-title__text"},R));return u.createElement("span",{className:"model"},u.createElement(be,{title:Ae,expanded:p<=c,collapsedContent:"[...]"},u.createElement("span",{className:"prop"},a&&p>1&&u.createElement("span",{className:"prop-name"},R),u.createElement("span",{className:"prop-type"},E),x&&u.createElement("span",{className:"prop-format"},"($",x,")"),Q.size?Q.entrySeq().map((([xe,Oe])=>u.createElement(ve,{key:`${xe}-${Oe}`,propKey:xe,propVal:Oe,propClass:mc}))):null,d&&V.size>0?u.createElement(_e,{extensions:V,propClass:`${mc} extension`}):null,L?u.createElement(me,{source:L}):null,J&&u.createElement("div",{className:"external-docs"},u.createElement(ce,{target:"_blank",href:Dr(J)},re||J)),k&&k.size?u.createElement("span",null,u.createElement("br",null),u.createElement("span",{className:mc},"xml:"),k.entrySeq().map((([xe,Oe])=>u.createElement("span",{key:`${xe}-${Oe}`,className:mc},u.createElement("br",null),"   ",xe,": ",String(Oe)))).toArray()):null,P&&u.createElement(le,{value:P,getComponent:r}))))}}class Ep extends u.Component{UNSAFE_componentWillMount(){let{schemes:e}=this.props;this.setScheme(e.first())}UNSAFE_componentWillReceiveProps(e){this.props.currentScheme&&e.schemes.includes(this.props.currentScheme)||this.setScheme(e.schemes.first())}onChange=e=>{this.setScheme(e.target.value)};setScheme=e=>{let{path:r,method:n,specActions:a}=this.props;a.setScheme(e,r,n)};render(){let{schemes:e,currentScheme:r}=this.props;return u.createElement("label",{htmlFor:"schemes"},u.createElement("span",{className:"schemes-title"},"Schemes"),u.createElement("select",{onChange:this.onChange,value:r,id:"schemes"},e.valueSeq().map((n=>u.createElement("option",{value:n,key:n},n))).toArray()))}}class s0 extends u.Component{render(){const{specActions:e,specSelectors:r,getComponent:n}=this.props,a=r.operationScheme(),o=r.schemes(),p=n("schemes");return o&&o.size?u.createElement(p,{currentScheme:a,schemes:o,specActions:e}):null}}var Qa=Be(24677),bh=Be.n(Qa);const Is={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,H.List)()};class Hd extends u.Component{static defaultProps=Is;componentDidMount(){const{dispatchInitialValue:e,value:r,onChange:n}=this.props;e?n(r):e===!1&&n("")}render(){let{schema:e,errors:r,value:n,onChange:a,getComponent:o,fn:p,disabled:c}=this.props;const d=e&&e.get?e.get("format"):null,E=e&&e.get?e.get("type"):null,x=p.getSchemaObjectType(e),k=p.isFileUploadIntended(e);let P=L=>o(L,!1,{failSilently:!0}),R=E?P(d?`JsonSchema_${E}_${d}`:`JsonSchema_${E}`):o("JsonSchema_string");return k||!H.List.isList(E)||x!=="array"&&x!=="object"||(R=o("JsonSchema_object")),R||(R=o("JsonSchema_string")),u.createElement(R,Yr()({},this.props,{errors:r,fn:p,getComponent:o,value:n,onChange:a,schema:e,disabled:c}))}}class Xi extends u.Component{static defaultProps=Is;onChange=e=>{const r=this.props.schema&&this.props.schema.get("type")==="file"?e.target.files[0]:e.target.value;this.props.onChange(r,this.props.keyName)};onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:r,schema:n,errors:a,required:o,description:p,disabled:c}=this.props;const d=n&&n.get?n.get("enum"):null,E=n&&n.get?n.get("format"):null,x=n&&n.get?n.get("type"):null,k=n&&n.get?n.get("in"):null;if(r?(Cr(r)||typeof r=="object")&&(r=Gr(r)):r="",a=a.toJS?a.toJS():[],d){const L=e("Select");return u.createElement(L,{className:a.length?"invalid":"",title:a.length?a:"",allowedValues:[...d],value:r,allowEmptyValue:!o,disabled:c,onChange:this.onEnumChange})}const P=c||k&&k==="formData"&&!("FormData"in window),R=e("Input");return x&&x==="file"?u.createElement(R,{type:"file",className:a.length?"invalid":"",title:a.length?a:"",onChange:this.onChange,disabled:P}):u.createElement(bh(),{type:E&&E==="password"?"password":"text",className:a.length?"invalid":"",title:a.length?a:"",value:r,minLength:0,debounceTimeout:350,placeholder:p,onChange:this.onChange,disabled:P})}}class ii extends u.PureComponent{static defaultProps=Is;constructor(e,r){super(e,r),this.state={value:Eh(e.value),schema:e.schema}}UNSAFE_componentWillReceiveProps(e){const r=Eh(e.value);r!==this.state.value&&this.setState({value:r}),e.schema!==this.state.schema&&this.setState({schema:e.schema})}onChange=()=>{this.props.onChange(this.state.value)};onItemChange=(e,r)=>{this.setState((({value:n})=>({value:n.set(r,e)})),this.onChange)};removeItem=e=>{this.setState((({value:r})=>({value:r.delete(e)})),this.onChange)};addItem=()=>{const{fn:e}=this.props;let r=Eh(this.state.value);this.setState((()=>({value:r.push(e.getSampleSchema(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))})),this.onChange)};onEnumChange=e=>{this.setState((()=>({value:e})),this.onChange)};render(){let{getComponent:e,required:r,schema:n,errors:a,fn:o,disabled:p}=this.props;a=a.toJS?a.toJS():Array.isArray(a)?a:[];const c=a.filter((ve=>typeof ve=="string")),d=a.filter((ve=>ve.needRemove!==void 0)).map((ve=>ve.error)),E=this.state.value,x=!!(E&&E.count&&E.count()>0),k=n.getIn(["items","enum"]),P=n.get("items"),R=o.getSchemaObjectType(P),L=o.getSchemaObjectTypeLabel(P),V=n.getIn(["items","format"]),Q=n.get("items");let J,re=!1,me=R==="file"||R==="string"&&V==="binary";if(R&&V?J=e(`JsonSchema_${R}_${V}`):R!=="boolean"&&R!=="array"&&R!=="object"||(J=e(`JsonSchema_${R}`)),!H.List.isList(P?.get("type"))||R!=="array"&&R!=="object"||(J=e("JsonSchema_object")),J||me||(re=!0),k){const ve=e("Select");return u.createElement(ve,{className:a.length?"invalid":"",title:a.length?a:"",multiple:!0,value:E,disabled:p,allowedValues:k,allowEmptyValue:!r,onChange:this.onEnumChange})}const le=e("Button");return u.createElement("div",{className:"json-schema-array"},x?E.map(((ve,be)=>{const ce=(0,H.fromJS)([...a.filter((_e=>_e.index===be)).map((_e=>_e.error))]);return u.createElement("div",{key:be,className:"json-schema-form-item"},me?u.createElement(wh,{value:ve,onChange:_e=>this.onItemChange(_e,be),disabled:p,errors:ce,getComponent:e}):re?u.createElement(mu,{value:ve,onChange:_e=>this.onItemChange(_e,be),disabled:p,errors:ce}):u.createElement(J,Yr()({},this.props,{value:ve,onChange:_e=>this.onItemChange(_e,be),disabled:p,errors:ce,schema:Q,getComponent:e,fn:o})),p?null:u.createElement(le,{className:`btn btn-sm json-schema-form-item-remove ${d.length?"invalid":null}`,title:d.length?d:"",onClick:()=>this.removeItem(be)}," - "))})):null,p?null:u.createElement(le,{className:`btn btn-sm json-schema-form-item-add ${c.length?"invalid":null}`,title:c.length?c:"",onClick:this.addItem},"Add ",L," item"))}}class mu extends u.Component{static defaultProps=Is;onChange=e=>{const r=e.target.value;this.props.onChange(r,this.props.keyName)};render(){let{value:e,errors:r,description:n,disabled:a}=this.props;return e?(Cr(e)||typeof e=="object")&&(e=Gr(e)):e="",r=r.toJS?r.toJS():[],u.createElement(bh(),{type:"text",className:r.length?"invalid":"",title:r.length?r:"",value:e,minLength:0,debounceTimeout:350,placeholder:n,onChange:this.onChange,disabled:a})}}class wh extends u.Component{static defaultProps=Is;onFileChange=e=>{const r=e.target.files[0];this.props.onChange(r,this.props.keyName)};render(){let{getComponent:e,errors:r,disabled:n}=this.props;const a=e("Input"),o=n||!("FormData"in window);return u.createElement(a,{type:"file",className:r.length?"invalid":"",title:r.length?r:"",onChange:this.onFileChange,disabled:o})}}class Kd extends u.Component{static defaultProps=Is;onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:r,errors:n,schema:a,required:o,disabled:p}=this.props;n=n.toJS?n.toJS():[];let c=a&&a.get?a.get("enum"):null,d=!c||!o,E=!c&&["true","false"];const x=e("Select");return u.createElement(x,{className:n.length?"invalid":"",title:n.length?n:"",value:String(r),disabled:p,allowedValues:c?[...c]:E,allowEmptyValue:d,onChange:this.onEnumChange})}}const ig=t=>t.map((e=>{const r=e.propKey!==void 0?e.propKey:e.index;let n=typeof e=="string"?e:typeof e.error=="string"?e.error:null;if(!r&&n)return n;let a=e.error,o=`/${e.propKey}`;for(;typeof a=="object";){const p=a.propKey!==void 0?a.propKey:a.index;if(p===void 0||(o+=`/${p}`,!a.error))break;a=a.error}return`${o}: ${a}`}));class sg extends u.PureComponent{constructor(){super()}static defaultProps=Is;onChange=e=>{this.props.onChange(e)};handleOnChange=e=>{const r=e.target.value;this.onChange(r)};render(){let{getComponent:e,value:r,errors:n,disabled:a}=this.props;const o=e("TextArea");return n=n.toJS?n.toJS():Array.isArray(n)?n:[],u.createElement("div",null,u.createElement(o,{className:Xr()({invalid:n.length}),title:n.length?ig(n).join(", "):"",value:Gr(r),disabled:a,onChange:this.handleOnChange}))}}function Eh(t){return H.List.isList(t)?t:Array.isArray(t)?(0,H.fromJS)(t):(0,H.List)()}const lg=({extensions:t,propClass:e=""})=>t.entrySeq().map((([r,n])=>{const a=Mr(n)??null;return u.createElement("tr",{key:r,className:e},u.createElement("td",null,r),u.createElement("td",null,JSON.stringify(a)))})).toArray();var cg=Be(11331),Ai=Be.n(cg);const ug=(t,e)=>{const r=H.Map.isMap(t);if(!r&&!Ai()(t))return!1;const n=r?t.get("type"):t.type;return e===n||Array.isArray(e)&&e.includes(n)},Gd=(t,e=new WeakSet)=>{if(t==null||e.has(t))return"any";e.add(t);const{type:r,items:n}=t;return Object.hasOwn(t,"items")?n?`array<${Gd(n,e)}>`:"array":r},Sp=t=>Gd(Mr(t)),Yd=()=>({components:{modelExample:Ps,ModelWrapper:kl,ModelCollapse:gp,Model:vh,Models:Vd,EnumModel:Jd,ObjectModel:ka,ArrayModel:Aa,PrimitiveModel:wp,ModelExtensions:lg,schemes:Ep,SchemesContainer:s0,...I},fn:{hasSchemaType:ug,getSchemaObjectTypeLabel:Sp}});var Sh=Be(19123),xp=Be.n(Sh),pg=Be(41859),xh=Be.n(pg),hg=Be(62193),Ci=Be.n(hg);const _h=t=>e=>Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every(((r,n)=>r===e[n])),dg=(...t)=>t;class Xd extends Map{delete(e){const r=Array.from(this.keys()).find(_h(e));return super.delete(r)}get(e){const r=Array.from(this.keys()).find(_h(e));return super.get(r)}has(e){return Array.from(this.keys()).findIndex(_h(e))!==-1}}const gu=(t,e=dg)=>{const{Cache:r}=Pt();Pt().Cache=Xd;const n=Pt()(t,e);return Pt().Cache=r,n},Qd={string:t=>t.pattern?(e=>{try{const r=new RegExp("(?<=(?"user@example.com","string_date-time":()=>new Date().toISOString(),string_date:()=>new Date().toISOString().substring(0,10),string_time:()=>new Date().toISOString().substring(11),string_uuid:()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",string_hostname:()=>"example.com",string_ipv4:()=>"198.51.100.42",string_ipv6:()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",number:()=>0,number_float:()=>0,integer:()=>0,boolean:t=>typeof t.default!="boolean"||t.default},Zd=t=>{t=Nn(t);let{type:e,format:r}=t,n=Qd[`${e}_${r}`]||Qd[e];return ia(n)?n(t):"Unknown Type: "+t.type},l0=t=>Vr(t,"$$ref",(e=>typeof e=="string"&&e.indexOf("#")>-1)),ef=["maxProperties","minProperties"],fg=["minItems","maxItems"],mg=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],gg=["minLength","maxLength"],gc=(t,e,r={})=>{const n={...t};if(["example","default","enum","xml","type",...ef,...fg,...mg,...gg].forEach((a=>(o=>{n[o]===void 0&&e[o]!==void 0&&(n[o]=e[o])})(a))),e.required!==void 0&&Array.isArray(e.required)&&(n.required!==void 0&&n.required.length||(n.required=[]),e.required.forEach((a=>{n.required.includes(a)||n.required.push(a)}))),e.properties){n.properties||(n.properties={});let a=Nn(e.properties);for(let o in a)Object.prototype.hasOwnProperty.call(a,o)&&(a[o]&&a[o].deprecated||a[o]&&a[o].readOnly&&!r.includeReadOnly||a[o]&&a[o].writeOnly&&!r.includeWriteOnly||n.properties[o]||(n.properties[o]=a[o],!e.required&&Array.isArray(e.required)&&e.required.indexOf(o)!==-1&&(n.required?n.required.push(o):n.required=[o])))}return e.items&&(n.items||(n.items={}),n.items=gc(n.items,e.items,r)),n},Yo=(t,e={},r=void 0,n=!1)=>{t&&ia(t.toJS)&&(t=t.toJS());let a=r!==void 0||t&&t.example!==void 0||t&&t.default!==void 0;const o=!a&&t&&t.oneOf&&t.oneOf.length>0,p=!a&&t&&t.anyOf&&t.anyOf.length>0;if(!a&&(o||p)){const G=Nn(o?t.oneOf[0]:t.anyOf[0]);if(!(t=gc(t,G,e)).xml&&G.xml&&(t.xml=G.xml),t.example!==void 0&&G.example!==void 0)a=!0;else if(G.properties){t.properties||(t.properties={});let de=Nn(G.properties);for(let Ne in de)Object.prototype.hasOwnProperty.call(de,Ne)&&(de[Ne]&&de[Ne].deprecated||de[Ne]&&de[Ne].readOnly&&!e.includeReadOnly||de[Ne]&&de[Ne].writeOnly&&!e.includeWriteOnly||t.properties[Ne]||(t.properties[Ne]=de[Ne],!G.required&&Array.isArray(G.required)&&G.required.indexOf(Ne)!==-1&&(t.required?t.required.push(Ne):t.required=[Ne])))}}const c={};let{xml:d,type:E,example:x,properties:k,additionalProperties:P,items:R}=t||{},{includeReadOnly:L,includeWriteOnly:V}=e;d=d||{};let Q,{name:J,prefix:re,namespace:me}=d,le={};n&&(J=J||"notagname",Q=(re?re+":":"")+J,me)&&(c[re?"xmlns:"+re:"xmlns"]=me),n&&(le[Q]=[]);const ve=G=>G.some((de=>Object.prototype.hasOwnProperty.call(t,de)));t&&!E&&(k||P||ve(ef)?E="object":R||ve(fg)?E="array":ve(mg)?(E="number",t.type="number"):a||t.enum||(E="string",t.type="string"));const be=G=>{if(t?.maxItems!=null&&(G=G.slice(0,t?.maxItems)),t?.minItems!=null){let de=0;for(;G.lengtht&&t.maxProperties!==null&&t.maxProperties!==void 0&&Ae>=t.maxProperties,Oe=G=>!t||t.maxProperties===null||t.maxProperties===void 0||!xe()&&(!(de=>!(t&&t.required&&t.required.length&&t.required.includes(de)))(G)||t.maxProperties-Ae-(()=>{if(!t||!t.required)return 0;let de=0;return n?t.required.forEach((Ne=>de+=le[Ne]===void 0?0:1)):t.required.forEach((Ne=>de+=le[Q]?.find((Ye=>Ye[Ne]!==void 0))===void 0?0:1)),t.required.length-de})()>0);if(_e=n?(G,de=void 0)=>{if(t&&ce[G]){if(ce[G].xml=ce[G].xml||{},ce[G].xml.attribute){const Ye=Array.isArray(ce[G].enum)?ce[G].enum[0]:void 0,ht=ce[G].example,Ct=ce[G].default;return void(c[ce[G].xml.name||G]=ht!==void 0?ht:Ct!==void 0?Ct:Ye!==void 0?Ye:Zd(ce[G]))}ce[G].xml.name=ce[G].xml.name||G}else ce[G]||P===!1||(ce[G]={xml:{name:G}});let Ne=Yo(t&&ce[G]||void 0,e,de,n);Oe(G)&&(Ae++,Array.isArray(Ne)?le[Q]=le[Q].concat(Ne):le[Q].push(Ne))}:(G,de)=>{if(Oe(G)){if(Object.prototype.hasOwnProperty.call(t,"discriminator")&&t.discriminator&&Object.prototype.hasOwnProperty.call(t.discriminator,"mapping")&&t.discriminator.mapping&&Object.prototype.hasOwnProperty.call(t,"$$ref")&&t.$$ref&&t.discriminator.propertyName===G){for(let Ne in t.discriminator.mapping)if(t.$$ref.search(t.discriminator.mapping[Ne])!==-1){le[G]=Ne;break}}else le[G]=Yo(ce[G],e,de,n);Ae++}},a){let G;if(G=l0(r!==void 0?r:x!==void 0?x:t.default),!n){if(typeof G=="number"&&E==="string")return`${G}`;if(typeof G!="string"||E==="string")return G;try{return JSON.parse(G)}catch{return G}}if(t||(E=Array.isArray(G)?"array":typeof G),E==="array"){if(!Array.isArray(G)){if(typeof G=="string")return G;G=[G]}const de=t?t.items:void 0;de&&(de.xml=de.xml||d||{},de.xml.name=de.xml.name||d.name);let Ne=G.map((Ye=>Yo(de,e,Ye,n)));return Ne=be(Ne),d.wrapped?(le[Q]=Ne,Ci()(c)||le[Q].push({_attr:c})):le=Ne,le}if(E==="object"){if(typeof G=="string")return G;for(let de in G)Object.prototype.hasOwnProperty.call(G,de)&&(t&&ce[de]&&ce[de].readOnly&&!L||t&&ce[de]&&ce[de].writeOnly&&!V||(t&&ce[de]&&ce[de].xml&&ce[de].xml.attribute?c[ce[de].xml.name||de]=G[de]:_e(de,G[de])));return Ci()(c)||le[Q].push({_attr:c}),le}return le[Q]=Ci()(c)?G:[{_attr:c},G],le}if(E==="object"){for(let G in ce)Object.prototype.hasOwnProperty.call(ce,G)&&(ce[G]&&ce[G].deprecated||ce[G]&&ce[G].readOnly&&!L||ce[G]&&ce[G].writeOnly&&!V||_e(G));if(n&&c&&le[Q].push({_attr:c}),xe())return le;if(P===!0)n?le[Q].push({additionalProp:"Anything can be here"}):le.additionalProp1={},Ae++;else if(P){const G=Nn(P),de=Yo(G,e,void 0,n);if(n&&G.xml&&G.xml.name&&G.xml.name!=="notagname")le[Q].push(de);else{const Ne=G["x-additionalPropertiesName"]||"additionalProp",Ye=t.minProperties!==null&&t.minProperties!==void 0&&AeYo(gc(de,R,e),e,void 0,n)));else if(Array.isArray(R.oneOf))G=R.oneOf.map((de=>Yo(gc(de,R,e),e,void 0,n)));else{if(!(!n||n&&d.wrapped))return Yo(R,e,void 0,n);G=[Yo(R,e,void 0,n)]}return G=be(G),n&&d.wrapped?(le[Q]=G,Ci()(c)||le[Q].push({_attr:c}),le):G}let je;if(t&&Array.isArray(t.enum))je=fn(t.enum)[0];else{if(!t)return;if(je=Zd(t),typeof je=="number"){let G=t.minimum;G!=null&&(t.exclusiveMinimum&&G++,je=G);let de=t.maximum;de!=null&&(t.exclusiveMaximum&&de--,je=de)}if(typeof je=="string"&&(t.maxLength!==null&&t.maxLength!==void 0&&(je=je.slice(0,t.maxLength)),t.minLength!==null&&t.minLength!==void 0)){let G=0;for(;je.length(t.schema&&(t=t.schema),t.properties&&(t.type="object"),t),tf=(t,e,r)=>{const n=Yo(t,e,r,!0);if(n)return typeof n=="string"?n:xp()(n,{declaration:!0,indent:" "})},rf=(t,e,r)=>Yo(t,e,r,!1),yg=(t,e,r)=>[t,JSON.stringify(e),JSON.stringify(r)],si=gu(tf,yg),Oh=gu(rf,yg),kh=t=>Mr(t)?.type??"string",vg=[{when:/json/,shouldStringifyTypes:["string"]}],bg=["object"],wg=t=>(e,r,n,a)=>{const{fn:o}=t(),p=o.memoizedSampleFromSchema(e,r,a),c=typeof p,d=vg.reduce(((E,x)=>x.when.test(n)?[...E,...x.shouldStringifyTypes]:E),bg);return Wr()(d,(E=>E===c))?JSON.stringify(p,null,2):p},nf=t=>(e,r,n,a)=>{const{fn:o}=t(),p=o.getJsonSampleSchema(e,r,n,a);let c;try{c=Pe.dump(Pe.load(p),{lineWidth:-1},{schema:Rt}),c[c.length-1]===` +`&&(c=c.slice(0,c.length-1))}catch(d){return console.error(d),"error: could not generate yaml example"}return c.replace(/\t/g," ")},yu=t=>(e,r,n)=>{const{fn:a}=t();if(e&&!e.xml&&(e.xml={}),e&&!e.xml.name){if(!e.$$ref&&(e.type||e.items||e.properties||e.additionalProperties))return` +`;if(e.$$ref){let o=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=o[1]}}return a.memoizedCreateXMLExample(e,r,n)},af=t=>(e,r="",n={},a=void 0)=>{const{fn:o}=t();return typeof a?.toJS=="function"&&(a=a.toJS()),/xml/.test(r)?(typeof e?.toJS=="function"&&(e=e.toJS()),o.getXmlSampleSchema(e,n,a)):/(yaml|yml)/.test(r)?o.getYamlSampleSchema(e,n,r,a):o.getJsonSampleSchema(e,n,r,a)},Ah=({getSystem:t})=>{const e=wg(t),r=nf(t),n=yu(t),a=af(t);return{fn:{jsonSchema5:{inferSchema:_p,sampleFromSchema:rf,sampleFromSchemaGeneric:Yo,createXMLExample:tf,memoizedSampleFromSchema:Oh,memoizedCreateXMLExample:si,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:a,mergeJsonSchema:gc},inferSchema:_p,sampleFromSchema:rf,sampleFromSchemaGeneric:Yo,createXMLExample:tf,memoizedSampleFromSchema:Oh,memoizedCreateXMLExample:si,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:a,mergeJsonSchema:gc,getSchemaObjectType:kh}}};var c0=Be(37334),vu=Be.n(c0);const Eg=["get","put","post","delete","options","head","patch","trace","query"],ji=t=>t||(0,H.Map)(),Sg=yr(ji,(t=>t.get("lastError"))),xg=yr(ji,(t=>t.get("url"))),u0=yr(ji,(t=>t.get("spec")||"")),Do=yr(ji,(t=>t.get("specSource")||"not-editor")),Za=yr(ji,(t=>t.get("json",(0,H.Map)()))),_g=yr(Za,(t=>t.toJS())),Og=yr(ji,(t=>t.get("resolved",(0,H.Map)()))),kg=(t,e)=>t.getIn(["resolvedSubtrees",...e],void 0),of=(t,e)=>H.Map.isMap(t)&&H.Map.isMap(e)?e.get("$$ref")?e:(0,H.OrderedMap)().mergeWith(of,t,e):e,li=yr(ji,(t=>(0,H.OrderedMap)().mergeWith(of,t.get("json"),t.get("resolvedSubtrees")))),eo=t=>Za(t),Ag=yr(eo,(()=>!1)),Ch=yr(eo,(t=>gf(t&&t.get("info")))),Cg=yr(eo,(t=>gf(t&&t.get("externalDocs")))),sf=yr(Ch,(t=>t&&t.get("version"))),jg=yr(sf,(t=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(t).slice(1))),lf=yr(li,(t=>t.get("paths"))),Pg=vu()(["get","put","post","delete","options","head","patch"]),jh=yr(lf,(t=>{let e=(0,H.List)();return!H.Map.isMap(t)||t.isEmpty()||t.forEach(((r,n)=>{if(!r||!r.forEach)return{};r.forEach(((a,o)=>{Eg.indexOf(o)<0||(e=e.push((0,H.fromJS)({path:n,method:o,operation:a,id:`${o}-${n}`,specPath:["paths",n,o]})))}))})),e})),Ph=yr(eo,(t=>(0,H.Set)(t.get("consumes")))),cf=yr(eo,(t=>(0,H.Set)(t.get("produces")))),uf=yr(eo,(t=>t.get("security",(0,H.List)()))),Nh=yr(eo,(t=>t.get("securityDefinitions"))),Ng=(t,e)=>{const r=t.getIn(["resolvedSubtrees","definitions",e],null),n=t.getIn(["json","definitions",e],null);return r||n||null},pf=yr(eo,(t=>{const e=t.get("definitions");return H.Map.isMap(e)?e:(0,H.Map)()})),Tg=yr(eo,(t=>t.get("basePath"))),Th=yr(eo,(t=>t.get("host"))),Ms=yr(eo,(t=>t.get("schemes",(0,H.Map)()))),bu=yr([jh,Ph,cf],((t,e,r)=>t.map((n=>n.update("operation",(a=>H.Map.isMap(a)?a.withMutations((o=>(o.get("consumes")||o.update("consumes",(p=>(0,H.Set)(p).merge(e))),o.get("produces")||o.update("produces",(p=>(0,H.Set)(p).merge(r))),o))):(0,H.Map)())))))),La=yr(eo,(t=>{const e=t.get("tags",(0,H.List)());return H.List.isList(e)?e.filter((r=>H.Map.isMap(r))):(0,H.List)()})),Ig=(t,e)=>(La(t)||(0,H.List)()).filter(H.Map.isMap).find((r=>r.get("name")===e),(0,H.Map)()),Mg=yr(bu,La,((t,e)=>t.reduce(((r,n)=>{let a=(0,H.Set)(n.getIn(["operation","tags"]));return a.count()<1?r.update("default",(0,H.List)(),(o=>o.push(n))):a.reduce(((o,p)=>o.update(p,(0,H.List)(),(c=>c.push(n)))),r)}),e.reduce(((r,n)=>r.set(n.get("name"),(0,H.List)())),(0,H.OrderedMap)())))),Ih=t=>({getConfigs:e})=>{let{tagsSorter:r,operationsSorter:n}=e();return Mg(t).sortBy(((a,o)=>o),((a,o)=>{let p=typeof r=="function"?r:Nr.tagsSorter[r];return p?p(a,o):null})).map(((a,o)=>{let p=typeof n=="function"?n:Nr.operationsSorter[n],c=p?a.sort(p):a;return(0,H.Map)({tagDetails:Ig(t,o),operations:c})}))},$a=yr(ji,(t=>t.get("responses",(0,H.Map)()))),Rg=yr(ji,(t=>t.get("requests",(0,H.Map)()))),cr=yr(ji,(t=>t.get("mutatedRequests",(0,H.Map)()))),wu=(t,e,r)=>$a(t).getIn([e,r],null),Dg=(t,e,r)=>Rg(t).getIn([e,r],null),Fg=(t,e,r)=>cr(t).getIn([e,r],null),Op=()=>!0,Eu=(t,e,r)=>{const n=li(t).getIn(["paths",...e,"parameters"],(0,H.OrderedMap)()),a=t.getIn(["meta","paths",...e,"parameters"],(0,H.OrderedMap)());return n.map((o=>{const p=a.get(`${r.get("in")}.${r.get("name")}`),c=a.get(`${r.get("in")}.${r.get("name")}.hash-${r.hashCode()}`);return(0,H.OrderedMap)().merge(o,p,c)})).find((o=>o.get("in")===r.get("in")&&o.get("name")===r.get("name")),(0,H.OrderedMap)())},Mh=(t,e,r,n)=>{const a=`${n}.${r}`;return t.getIn(["meta","paths",...e,"parameter_inclusions",a],!1)},Lg=(t,e,r,n)=>{const a=li(t).getIn(["paths",...e,"parameters"],(0,H.OrderedMap)()).find((o=>o.get("in")===n&&o.get("name")===r),(0,H.OrderedMap)());return Eu(t,e,a)},hf=(t,e,r)=>{const n=li(t).getIn(["paths",e,r],(0,H.OrderedMap)()),a=t.getIn(["meta","paths",e,r],(0,H.OrderedMap)()),o=n.get("parameters",(0,H.List)()).map((p=>Eu(t,[e,r],p)));return(0,H.OrderedMap)().merge(n,a).set("parameters",o)};function $g(t,e,r,n){return e=e||[],t.getIn(["meta","paths",...e,"parameters"],(0,H.fromJS)([])).find((a=>H.Map.isMap(a)&&a.get("name")===r&&a.get("in")===n))||(0,H.Map)()}const df=yr(eo,(t=>{const e=t.get("host");return typeof e=="string"&&e.length>0&&e[0]!=="/"}));function Rh(t,e,r){return e=e||[],hf(t,...e).get("parameters",(0,H.List)()).reduce(((n,a)=>{let o=r&&a.get("in")==="body"?a.get("value_xml"):a.get("value");return H.List.isList(o)&&(o=o.filter((p=>p!==""))),n.set(sa(a,{allowHashes:!1}),o)}),(0,H.fromJS)({}))}function ho(t,e=""){if(H.List.isList(t))return t.some((r=>H.Map.isMap(r)&&r.get("in")===e))}function ci(t,e=""){if(H.List.isList(t))return t.some((r=>H.Map.isMap(r)&&r.get("type")===e))}function Cl(t,e){e=e||[];let r=li(t).getIn(["paths",...e],(0,H.fromJS)({})),n=t.getIn(["meta","paths",...e],(0,H.fromJS)({})),a=ff(t,e);const o=r.get("parameters")||new H.List,p=n.get("consumes_value")?n.get("consumes_value"):ci(o,"file")?"multipart/form-data":ci(o,"formData")?"application/x-www-form-urlencoded":void 0;return(0,H.fromJS)({requestContentType:p,responseContentType:a})}function ff(t,e){e=e||[];const r=li(t).getIn(["paths",...e],null);if(r===null)return;const n=t.getIn(["meta","paths",...e,"produces_value"],null),a=r.getIn(["produces",0],null);return n||a||"application/json"}function Bg(t,e){e=e||[];const r=li(t),n=r.getIn(["paths",...e],null);if(n===null)return;const[a]=e,o=n.get("produces",null),p=r.getIn(["paths",a,"produces"],null),c=r.getIn(["produces"],null);return o||p||c}function Qi(t,e){e=e||[];const r=li(t),n=r.getIn(["paths",...e],null);if(n===null)return;const[a]=e,o=n.get("consumes",null),p=r.getIn(["paths",a,"consumes"],null),c=r.getIn(["consumes"],null);return o||p||c}const mf=(t,e,r)=>{let n=t.get("url").match(/^([a-z][a-z0-9+\-.]*):/),a=Array.isArray(n)?n[1]:null;return t.getIn(["scheme",e,r])||t.getIn(["scheme","_defaultScheme"])||a||""},Rs=(t,e,r)=>["http","https"].indexOf(mf(t,e,r))>-1,qg=(t,e)=>{e=e||[];const r=t.getIn(["meta","paths",...e,"parameters"],(0,H.fromJS)([])),n=[];if(r.length===0)return n;const a=(o,p=[])=>{const c=(d,E)=>{const x=[...E,d.get("propKey")||d.get("index")];return H.Map.isMap(d.get("error"))?a(d.get("error"),x):{error:d.get("error"),path:x}};return H.List.isList(o)?o.map((d=>H.Map.isMap(d)?c(d,p):{error:d,path:p})):c(o,p)};return r.forEach(((o,p)=>{const c=p.split(".").slice(1,-1).join("."),d=o.get("errors");d&&d.count()&&a(d).forEach((({error:E,path:x})=>{n.push(((k,P,R)=>`For '${R}'${(P=P.reduce(((L,V)=>typeof V=="number"?`${L}[${V}]`:L?`${L}.${V}`:V),""))?` at path '${P}'`:""}: ${k}.`)(E,x,c))}))})),n},Ug=(t,e)=>qg(t,e).length===0,zg=(t,e)=>{let r={requestBody:!1,requestContentType:{}},n=t.getIn(["resolvedSubtrees","paths",...e,"requestBody"],(0,H.fromJS)([]));if(n.size<1)return r;n.getIn(["required"])&&(r.requestBody=n.getIn(["required"]));const a=n.getIn(["content"]);return a&&a.entrySeq().forEach((o=>{const p=o[0];if(o[1].getIn(["schema","required"])){const c=o[1].getIn(["schema","required"]).toJS();r.requestContentType[p]=c}})),r},Vg=(t,e,r,n)=>{if((r||n)&&r===n)return!0;let a=t.getIn(["resolvedSubtrees","paths",...e,"requestBody","content"],(0,H.fromJS)([]));if(a.size<2||!r||!n)return!1;let o=a.getIn([r,"schema","properties"],(0,H.fromJS)([])),p=a.getIn([n,"schema","properties"],(0,H.fromJS)([]));return!!o.equals(p)};function gf(t){return H.Map.isMap(t)?t:new H.Map}var Jg=Be(85015),p0=Be.n(Jg),Dh=Be(38221),yf=Be.n(Dh),ui=Be(63560),pn=Be.n(ui),Ca=Be(56367),ua=Be.n(Ca);const wa="spec_update_spec",fo="spec_update_url",jl="spec_update_json",Kn="spec_update_param",yc="spec_update_empty_param_inclusion",Ds="spec_validate_param",Su="spec_set_response",kp="spec_set_request",vc="spec_set_mutated_request",Fo="spec_log_request",Ap="spec_clear_response",Pl="spec_clear_request",Zi="spec_clear_validate_param",bc="spec_update_operation_meta_value",Cp="spec_update_resolved",Pi="spec_update_resolved_subtree",xu="set_scheme",Nl=t=>p0()(t)?t:"";function Fh(t){const e=Nl(t).replace(/\t/g," ");if(typeof t=="string")return{type:wa,payload:e}}function jp(t){return{type:Cp,payload:t}}function vf(t){return{type:fo,payload:t}}function Lh(t){return{type:jl,payload:t}}const $h=t=>({specActions:e,specSelectors:r,errActions:n})=>{let{specStr:a}=r,o=null;try{t=t||a(),n.clear({source:"parser"}),o=Pe.load(t,{schema:Rt})}catch(p){return console.error(p),n.newSpecErr({source:"parser",level:"error",message:p.reason,line:p.mark&&p.mark.line?p.mark.line+1:void 0})}return o&&typeof o=="object"?e.updateJsonSpec(o):e.updateJsonSpec({})};let to=!1;const Tl=(t,e)=>({specActions:r,specSelectors:n,errActions:a,fn:{fetch:o,resolve:p,AST:c={}},getConfigs:d})=>{to||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),to=!0);const{modelPropertyMacro:E,parameterMacro:x,requestInterceptor:k,responseInterceptor:P}=d();t===void 0&&(t=n.specJson()),e===void 0&&(e=n.url());let R=c.getLineNumberForPath?c.getLineNumberForPath:()=>{},L=n.specStr();return p({fetch:o,spec:t,baseDoc:String(new URL(e,document.baseURI)),modelPropertyMacro:E,parameterMacro:x,requestInterceptor:k,responseInterceptor:P}).then((({spec:V,errors:Q})=>{if(a.clear({type:"thrown"}),Array.isArray(Q)&&Q.length>0){let J=Q.map((re=>(console.error(re),re.line=re.fullPath?R(L,re.fullPath):null,re.path=re.fullPath?re.fullPath.join("."):null,re.level="error",re.type="thrown",re.source="resolver",Object.defineProperty(re,"message",{enumerable:!0,value:re.message}),re)));a.newThrownErrBatch(J)}return r.updateResolved(V)}))};let Lo=[];const $o=yf()((()=>{const t=Lo.reduce(((e,{path:r,system:n})=>(e.has(n)||e.set(n,[]),e.get(n).push(r),e)),new Map);Lo=[],t.forEach((async(e,r)=>{if(!r)return void console.error("debResolveSubtrees: don't have a system to operate on, aborting.");if(!r.fn.resolveSubtree)return void console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.");const{errActions:n,errSelectors:a,fn:{resolveSubtree:o,fetch:p,AST:c={}},specSelectors:d,specActions:E}=r,x=c.getLineNumberForPath??vu()(void 0),k=d.specStr(),{modelPropertyMacro:P,parameterMacro:R,requestInterceptor:L,responseInterceptor:V}=r.getConfigs();try{const Q=await e.reduce((async(J,re)=>{let{resultMap:me,specWithCurrentSubtrees:le}=await J;const{errors:ve,spec:be}=await o(le,re,{baseDoc:String(new URL(d.url(),document.baseURI)),modelPropertyMacro:P,parameterMacro:R,requestInterceptor:L,responseInterceptor:V});if(a.allErrors().size&&n.clearBy((ce=>ce.get("type")!=="thrown"||ce.get("source")!=="resolver"||!ce.get("fullPath")?.every(((_e,Ae)=>_e===re[Ae]||re[Ae]===void 0)))),Array.isArray(ve)&&ve.length>0){let ce=ve.map((_e=>(_e.line=_e.fullPath?x(k,_e.fullPath):null,_e.path=_e.fullPath?_e.fullPath.join("."):null,_e.level="error",_e.type="thrown",_e.source="resolver",Object.defineProperty(_e,"message",{enumerable:!0,value:_e.message}),_e)));n.newThrownErrBatch(ce)}return be&&d.isOAS3()&&re[0]==="components"&&re[1]==="securitySchemes"&&await Promise.all(Object.values(be).filter((ce=>ce?.type==="openIdConnect")).map((async ce=>{const _e={url:ce.openIdConnectUrl,requestInterceptor:L,responseInterceptor:V};try{const Ae=await p(_e);Ae instanceof Error||Ae.status>=400?console.error(Ae.statusText+" "+_e.url):ce.openIdConnectData=JSON.parse(Ae.text)}catch(Ae){console.error(Ae)}}))),pn()(me,re,be),le=ua()(re,be,le),{resultMap:me,specWithCurrentSubtrees:le}}),Promise.resolve({resultMap:(d.specResolvedSubtree([])||(0,H.Map)()).toJS(),specWithCurrentSubtrees:d.specJS()}));E.updateResolvedSubtree([],Q.resultMap)}catch(Q){console.error(Q)}}))}),35),Wg=t=>e=>{Lo.find((({path:r,system:n})=>n===e&&r.toString()===t.toString()))||(Lo.push({path:t,system:e}),$o())};function bf(t,e,r,n,a){return{type:Kn,payload:{path:t,value:n,paramName:e,paramIn:r,isXml:a}}}function wf(t,e,r,n){return{type:Kn,payload:{path:t,param:e,value:r,isXml:n}}}const Il=(t,e)=>({type:Pi,payload:{path:t,value:e}}),Hg=()=>({type:Pi,payload:{path:[],value:(0,H.Map)()}}),Ef=(t,e)=>({type:Ds,payload:{pathMethod:t,isOAS3:e}}),wc=(t,e,r,n)=>({type:yc,payload:{pathMethod:t,paramName:e,paramIn:r,includeEmptyValue:n}});function Sf(t){return{type:Zi,payload:{pathMethod:t}}}function Ec(t,e){return{type:bc,payload:{path:t,value:e,key:"consumes_value"}}}function Kg(t,e){return{type:bc,payload:{path:t,value:e,key:"produces_value"}}}const Gg=(t,e,r)=>({payload:{path:t,method:e,res:r},type:Su}),xf=(t,e,r)=>({payload:{path:t,method:e,req:r},type:kp}),Bh=(t,e,r)=>({payload:{path:t,method:e,req:r},type:vc}),h0=t=>({payload:t,type:Fo}),d0=t=>({fn:e,specActions:r,specSelectors:n,getConfigs:a,oas3Selectors:o})=>{let{pathName:p,method:c,operation:d}=t,{requestInterceptor:E,responseInterceptor:x}=a(),k=d.toJS();if(d&&d.get("parameters")&&d.get("parameters").filter((L=>L&&L.get("allowEmptyValue")===!0)).forEach((L=>{if(n.parameterInclusionSettingFor([p,c],L.get("name"),L.get("in"))){t.parameters=t.parameters||{};const V=Sa(L,t.parameters);(!V||V&&V.size===0)&&(t.parameters[L.get("name")]="")}})),t.contextUrl=Ao()(n.url()).toString(),k&&k.operationId?t.operationId=k.operationId:k&&p&&c&&(t.operationId=e.opId(k,p,c)),n.isOAS3()){const L=`${p}:${c}`;t.server=o.selectedServer(L)||o.selectedServer();const V=o.serverVariables({server:t.server,namespace:L}).toJS(),Q=o.serverVariables({server:t.server}).toJS();t.serverVariables=Object.keys(V).length?V:Q,t.requestContentType=o.requestContentType(p,c),t.responseContentType=o.responseContentType(p,c)||"*/*";const J=o.requestBodyValue(p,c),re=o.requestBodyInclusionSetting(p,c);J&&J.toJS?t.requestBody=J.map((me=>H.Map.isMap(me)?me.get("value"):me)).filter(((me,le)=>(Array.isArray(me)?me.length!==0:!Wa(me))||re.get(le))).toJS():t.requestBody=J}let P=Object.assign({},t);P=e.buildRequest(P),r.setRequest(t.pathName,t.method,P),t.requestInterceptor=async L=>{let V=await E.apply(void 0,[L]),Q=Object.assign({},V);return r.setMutatedRequest(t.pathName,t.method,Q),V},t.responseInterceptor=x;const R=Date.now();return e.execute(t).then((L=>{L.duration=Date.now()-R,r.setResponse(t.pathName,t.method,L)})).catch((L=>{L.message==="Failed to fetch"&&(L.name="",L.message=`**Failed to fetch.** +**Possible Reasons:** + - CORS + - Network Failure + - URL scheme must be "http" or "https" for CORS request.`),r.setResponse(t.pathName,t.method,{error:!0,err:L})}))},Yg=({path:t,method:e,...r}={})=>n=>{let{fn:{fetch:a},specSelectors:o,specActions:p}=n,c=o.specJsonWithResolvedSubtrees().toJS(),d=o.operationScheme(t,e),{requestContentType:E,responseContentType:x}=o.contentTypeValues([t,e]).toJS(),k=/xml/i.test(E),P=o.parameterValues([t,e],k).toJS();return p.executeRequest({...r,fetch:a,spec:c,pathName:t,method:e,parameters:P,requestContentType:E,scheme:d,responseContentType:x})};function Xg(t,e){return{type:Ap,payload:{path:t,method:e}}}function _u(t,e){return{type:Pl,payload:{path:t,method:e}}}function Ou(t,e,r){return{type:xu,payload:{scheme:t,path:e,method:r}}}const Qg={[wa]:(t,e)=>typeof e.payload=="string"?t.set("spec",e.payload):t,[fo]:(t,e)=>t.set("url",e.payload+""),[jl]:(t,e)=>t.set("json",nn(e.payload)),[Cp]:(t,e)=>t.setIn(["resolved"],nn(e.payload)),[Pi]:(t,e)=>{const{value:r,path:n}=e.payload;return t.setIn(["resolvedSubtrees",...n],nn(r))},[Kn]:(t,{payload:e})=>{let{path:r,paramName:n,paramIn:a,param:o,value:p,isXml:c}=e,d=o?sa(o):`${a}.${n}`;const E=c?"value_xml":"value";return t.setIn(["meta","paths",...r,"parameters",d,E],(0,H.fromJS)(p))},[yc]:(t,{payload:e})=>{let{pathMethod:r,paramName:n,paramIn:a,includeEmptyValue:o}=e;if(!n||!a)return console.warn("Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey."),t;const p=`${a}.${n}`;return t.setIn(["meta","paths",...r,"parameter_inclusions",p],o)},[Ds]:(t,{payload:{pathMethod:e,isOAS3:r}})=>{const n=li(t).getIn(["paths",...e]),a=Rh(t,e).toJS();return t.updateIn(["meta","paths",...e,"parameters"],(0,H.fromJS)({}),(o=>n.get("parameters",(0,H.List)()).reduce(((p,c)=>{const d=Sa(c,a),E=Mh(t,e,c.get("name"),c.get("in")),x=((k,P,{isOAS3:R=!1,bypassRequiredCheck:L=!1}={})=>{let V=k.get("required"),{schema:Q,parameterContentMediaType:J}=sr(k,{isOAS3:R});return Rr(P,Q,V,L,J,R)})(c,d,{bypassRequiredCheck:E,isOAS3:r});return p.setIn([sa(c),"errors"],(0,H.fromJS)(x))}),o)))},[Zi]:(t,{payload:{pathMethod:e}})=>t.updateIn(["meta","paths",...e,"parameters"],(0,H.fromJS)([]),(r=>r.map((n=>n.set("errors",(0,H.fromJS)([])))))),[Su]:(t,{payload:{res:e,path:r,method:n}})=>{let a;a=e.error?Object.assign({error:!0,name:e.err.name,message:e.err.message,statusCode:e.err.statusCode},e.err.response):e,a.headers=a.headers||{};let o=t.setIn(["responses",r,n],nn(a));return Qe.Blob&&a.data instanceof Qe.Blob&&(o=o.setIn(["responses",r,n,"text"],a.data)),o},[kp]:(t,{payload:{req:e,path:r,method:n}})=>t.setIn(["requests",r,n],nn(e)),[vc]:(t,{payload:{req:e,path:r,method:n}})=>t.setIn(["mutatedRequests",r,n],nn(e)),[bc]:(t,{payload:{path:e,value:r,key:n}})=>{let a=["paths",...e],o=["meta","paths",...e];return t.getIn(["json",...a])||t.getIn(["resolved",...a])||t.getIn(["resolvedSubtrees",...a])?t.setIn([...o,n],(0,H.fromJS)(r)):t},[Ap]:(t,{payload:{path:e,method:r}})=>t.deleteIn(["responses",e,r]),[Pl]:(t,{payload:{path:e,method:r}})=>t.deleteIn(["requests",e,r]),[xu]:(t,{payload:{scheme:e,path:r,method:n}})=>r&&n?t.setIn(["scheme",r,n],e):r||n?void 0:t.setIn(["scheme","_defaultScheme"],e)},Gn=(t,{specActions:e})=>(...r)=>{t(...r),e.parseToJson(...r)},f0=(t,{specActions:e})=>(...r)=>{t(...r),e.invalidateResolvedSubtreeCache();const[n]=r,a=Cn()(n,["paths"])||{};Object.keys(a).forEach((o=>{const p=Cn()(a,[o]);Ai()(p)&&p.$ref&&e.requestResolvedSubtree(["paths",o])})),e.requestResolvedSubtree(["components","securitySchemes"])},Zg=(t,{specActions:e})=>r=>(e.logRequest(r),t(r)),m0=(t,{specSelectors:e})=>r=>t(r,e.isOAS3()),ey=()=>({statePlugins:{spec:{wrapActions:{...z},reducers:{...Qg},actions:{...M},selectors:{...j}}}});var ty=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)a.hasOwnProperty(o)&&(n[o]=a[o])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),g0=Object.prototype.hasOwnProperty;function Bo(t,e){return g0.call(t,e)}function Pp(t){if(Array.isArray(t)){for(var e=new Array(t.length),r=0;r=48&&e<=57))return!1;r++}return!0}function Xo(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Np(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Tp(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var e=0,r=t.length;e0&&c[E-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&k===void 0&&(d[P]===void 0?k=c.slice(0,E).join("/"):E==x-1&&(k=e.path),k!==void 0&&R(e,0,t,k)),E++,Array.isArray(d)){if(P==="-")P=d.length;else{if(r&&!ku(P))throw new zn("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,e,t);ku(P)&&(P=~~P)}if(E>=x){if(r&&e.op==="add"&&P>d.length)throw new zn("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,e,t);if((p=Uh[e.op].call(e,d,P,t)).test===!1)throw new zn("Test operation failed","TEST_OPERATION_FAILED",o,e,t);return p}}else if(E>=x){if((p=Sc[e.op].call(e,d,P,t)).test===!1)throw new zn("Test operation failed","TEST_OPERATION_FAILED",o,e,t);return p}if(d=d[P],r&&E0)throw new zn('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",e,t,r);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new zn("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new zn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&Tp(t.value))throw new zn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",e,t,r);if(r){if(t.op=="add"){var a=t.path.split("/").length,o=n.split("/").length;if(a!==o+1&&a!==o)throw new zn("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",e,t,r)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==n)throw new zn("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",e,t,r)}else if(t.op==="move"||t.op==="copy"){var p=Ip([{op:"_get",path:t.from,value:void 0}],r);if(p&&p.name==="OPERATION_PATH_UNRESOLVABLE")throw new zn("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",e,t,r)}}}function Ip(t,e,r){try{if(!Array.isArray(t))throw new zn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(e)es(pa(e),pa(t),r||!0);else{r=r||Au;for(var n=0;n0&&(t.patches=[],t.callback&&t.callback(n)),n}function ju(t,e,r,n,a){if(e!==t){typeof e.toJSON=="function"&&(e=e.toJSON());for(var o=Pp(e),p=Pp(t),c=!1,d=p.length-1;d>=0;d--){var E=t[k=p[d]];if(!Bo(e,k)||e[k]===void 0&&E!==void 0&&Array.isArray(e)===!1)Array.isArray(t)===Array.isArray(e)?(a&&r.push({op:"test",path:n+"/"+Xo(k),value:pa(E)}),r.push({op:"remove",path:n+"/"+Xo(k)}),c=!0):(a&&r.push({op:"test",path:n,value:t}),r.push({op:"replace",path:n,value:e}));else{var x=e[k];typeof E=="object"&&E!=null&&typeof x=="object"&&x!=null&&Array.isArray(E)===Array.isArray(x)?ju(E,x,r,n+"/"+Xo(k),a):E!==x&&(a&&r.push({op:"test",path:n+"/"+Xo(k),value:pa(E)}),r.push({op:"replace",path:n+"/"+Xo(k),value:pa(x)}))}}if(c||o.length!=p.length)for(d=0;da!==void 0&&n?n[a]:n),e)},applyPatch:function(e,r,n){if(n=n||{},(r={...r,path:r.path&&$(r.path)}).op==="merge"){const a=rt(e,r.path);Object.assign(a,r.value),es(e,[ee(r.path,a)])}else if(r.op==="mergeDeep"){const a=rt(e,r.path),o=b()(a,r.value,{customMerge:p=>{if(p==="enum")return(c,d)=>Array.isArray(c)&&Array.isArray(d)?[...new Set([...c,...d])]:b()(c,d)}});e=es(e,[ee(r.path,o)]).newDocument}else if(r.op==="add"&&r.path===""&<(r.value))es(e,Object.keys(r.value).reduce(((a,o)=>(a.push({op:"add",path:`/${$(o)}`,value:r.value[o]}),a)),[]));else if(r.op==="replace"&&r.path===""){let{value:a}=r;n.allowMetaPatches&&r.meta&&Ze(r)&&(Array.isArray(r.value)||lt(r.value))&&(a={...a,...r.meta}),e=a}else if(es(e,[r]),n.allowMetaPatches&&r.meta&&Ze(r)&&(Array.isArray(r.value)||lt(r.value))){const a={...rt(e,r.path),...r.meta};es(e,[ee(r.path,a)])}return e},parentPathMatch:function(e,r){if(!Array.isArray(r))return!1;for(let n=0,a=r.length;n(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:t}function ee(t,e,r){return{op:"replace",path:t,value:e,meta:r}}function ue(t,e,r){return st(ot(t.filter(Ze).map((n=>e(n.value,r,n.path)))||[]))}function Ce(t,e,r){return r=r||[],Array.isArray(t)?t.map(((n,a)=>Ce(n,e,r.concat(a)))):lt(t)?Object.keys(t).map((n=>Ce(t[n],e,r.concat(n)))):e(t,r[r.length-1],r)}function Me(t,e,r){let n=[];if((r=r||[]).length>0){const a=e(t,r[r.length-1],r);a&&(n=n.concat(a))}if(Array.isArray(t)){const a=t.map(((o,p)=>Me(o,e,r.concat(p))));a&&(n=n.concat(a))}else if(lt(t)){const a=Object.keys(t).map((o=>Me(t[o],e,r.concat(o))));a&&(n=n.concat(a))}return n=ot(n),n}function Ue(t){return Array.isArray(t)?t:[t]}function ot(t){return[].concat(...t.map((e=>Array.isArray(e)?ot(e):e)))}function st(t){return t.filter((e=>e!==void 0))}function lt(t){return t&&typeof t=="object"}function vt(t){return t&&typeof t=="function"}function Lt(t){if(Le(t)){const{op:e}=t;return e==="add"||e==="remove"||e==="replace"}return!1}function xt(t){return Lt(t)||Le(t)&&t.type==="mutation"}function Ze(t){return xt(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Le(t){return t&&typeof t=="object"}function rt(t,e){try{return Ml(t,e)}catch(r){return console.error(r),{}}}var wt=Be(48675);const nr=class extends wt{constructor(e,r,n){if(super(e,r,n),this.name=this.constructor.name,typeof r=="string"&&(this.message=r),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack,n!=null&&typeof n=="object"&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:a}=n;this.cause=a,a instanceof Error&&"stack"in a&&(this.stack=`${this.stack} +CAUSE: ${a.stack}`)}}};class Fr extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(nr,e)}constructor(e,r){if(super(e,r),this.name=this.constructor.name,typeof e=="string"&&(this.message=e),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,r!=null&&typeof r=="object"&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack} +CAUSE: ${n.stack}`)}}}const Mt=Fr,xr=class extends Mt{constructor(e,r){if(super(e,r),r!=null&&typeof r=="object"){const{cause:n,...a}=r;Object.assign(this,a)}}};function Qr(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(r){return e.apply(this,arguments)};case 2:return function(r,n){return e.apply(this,arguments)};case 3:return function(r,n,a){return e.apply(this,arguments)};case 4:return function(r,n,a,o){return e.apply(this,arguments)};case 5:return function(r,n,a,o,p){return e.apply(this,arguments)};case 6:return function(r,n,a,o,p,c){return e.apply(this,arguments)};case 7:return function(r,n,a,o,p,c,d){return e.apply(this,arguments)};case 8:return function(r,n,a,o,p,c,d,E){return e.apply(this,arguments)};case 9:return function(r,n,a,o,p,c,d,E,x){return e.apply(this,arguments)};case 10:return function(r,n,a,o,p,c,d,E,x,k){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function sn(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function wr(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function _r(t){return function e(r){return arguments.length===0||wr(r)?e:t.apply(this,arguments)}}function Tr(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return wr(r)?e:_r((function(a){return t(r,a)}));default:return wr(r)&&wr(n)?e:wr(r)?_r((function(a){return t(a,n)})):wr(n)?_r((function(a){return t(r,a)})):t(r,n)}}}function ha(t){return function e(r,n,a){switch(arguments.length){case 0:return e;case 1:return wr(r)?e:Tr((function(o,p){return t(r,o,p)}));case 2:return wr(r)&&wr(n)?e:wr(r)?Tr((function(o,p){return t(o,n,p)})):wr(n)?Tr((function(o,p){return t(r,o,p)})):_r((function(o){return t(r,n,o)}));default:return wr(r)&&wr(n)&&wr(a)?e:wr(r)&&wr(n)?Tr((function(o,p){return t(o,p,a)})):wr(r)&&wr(a)?Tr((function(o,p){return t(o,n,p)})):wr(n)&&wr(a)?Tr((function(o,p){return t(r,o,p)})):wr(r)?_r((function(o){return t(o,n,a)})):wr(n)?_r((function(o){return t(r,o,a)})):wr(a)?_r((function(o){return t(r,n,o)})):t(r,n,a)}}}const Dl=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Of(t){return Object.prototype.toString.call(t)==="[object String]"}const iy=_r((function(e){return!!Dl(e)||!!e&&typeof e=="object"&&!Of(e)&&(e.length===0||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}));var sy=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _c(t,e,r){return function(a,o,p){if(iy(p))return t(a,o,p);if(p==null)return o;if(typeof p["fantasy-land/reduce"]=="function")return e(a,o,p,"fantasy-land/reduce");if(p[sy]!=null)return r(a,o,p[sy]());if(typeof p.next=="function")return r(a,o,p);if(typeof p.reduce=="function")return e(a,o,p,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ly(t,e,r){for(var n=0,a=r.length;n=arguments.length)?d=e[p]:(d=arguments[a],a+=1),n[p]=d,wr(d)?c=!0:o-=1,p+=1}return!c&&o<=0?r.apply(this,n):Qr(Math.max(0,o),w0(t,n,r))}}const ja=Tr((function(e,r){return e===1?_r(r):Qr(e,w0(e,[],r))})),E0=_r((function(e){return ja(e.length,e)}));function S0(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function nE(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function hy(t,e,r){for(var n=0,a=r.length;n=0;)ts(r=iE[n],e)&&!mA(a,r)&&(a[a.length]=r),n-=1;return a}):(function(e){return Object(e)!==e?[]:Object.keys(e)}));const Rp=gA,Fs=_r((function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function lE(t,e,r,n){var a=nE(t);function o(p,c){return x0(p,c,r.slice(),n.slice())}return!hy((function(p,c){return!hy(o,c,p)}),nE(e),a)}function x0(t,e,r,n){if(Cf(t,e))return!0;var a=Fs(t);if(a!==Fs(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&(function(k){var P=String(k).match(/^function (\w*)/);return P==null?"":P[1]})(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!Cf(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!Cf(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var o=r.length-1;o>=0;){if(r[o]===t)return n[o]===e;o-=1}switch(a){case"Map":return t.size===e.size&&lE(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&lE(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var p=Rp(t);if(p.length!==Rp(e).length)return!1;var c=r.concat([t]),d=n.concat([e]);for(o=p.length-1;o>=0;){var E=p[o];if(!ts(E,e)||!x0(e[E],t[E],c,d))return!1;o-=1}return!0}const Pu=Tr((function(e,r){return x0(e,r,[],[])}));function dy(t,e){return(function(n,a,o){var p,c;if(typeof n.indexOf=="function")switch(typeof a){case"number":if(a===0){for(p=1/a;o=0}function fy(t,e){for(var r=0,n=e.length,a=Array(n);r":uE(p,c)},n=function(o,p){return fy((function(c){return _0(c)+": "+r(o[c])}),p.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+fy(r,t).join(", ")+"))";case"[object Array]":return"["+fy(r,t).concat(n(t,SA((function(o){return/^\d+$/.test(o)}),Rp(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):_0(yA(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+r(t.valueOf())+")":_0(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+n(t,Rp(t)).join(", ")+"}"}}const Tf=_r((function(e){return uE(e,[])})),O0=Tr((function(e,r){return ja(e+1,(function(){var n=arguments[e];if(n!=null&&S0(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Tf(n)+' does not have a method named "'+r+'"')}))})),pE=O0(1,"split");function xA(t,e){for(var r=e.length-1;r>=0&&t(e[r]);)r-=1;return kf(0,r+1,e)}var _A=(function(){function t(e,r){this.f=e,this.retained=[],this.xf=r}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.retain(e,r):this.flush(e,r)},t.prototype.flush=function(e,r){return e=v0(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,r)},t.prototype.retain=function(e,r){return this.retained.push(r),e},t})();function OA(t){return function(e){return new _A(t,e)}}const kA=Tr(Nu([],OA,xA)),hE=O0(1,"join"),gy=_r((function(e){return ja(e.length,(function(r,n){var a=Array.prototype.slice.call(arguments,0);return a[0]=n,a[1]=r,e.apply(this,a)}))}))(Tr(dy)),AA=E0((function(t,e){return mo(pE(""),kA(gy(t)),hE(""))(e)}));function CA(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function jA(t,e,r,n){return r[n](t,e)}const PA=_c(Pf,jA,CA);var NA=(function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=Nf,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t})();const yy=Tr(Nu(["fantasy-land/map","map"],(function(e){return function(r){return new NA(e,r)}}),(function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return ja(r.length,(function(){return e.call(this,r.apply(this,arguments))}));case"[object Object]":return Pf((function(n,a){return n[a]=e(r[a]),n}),{},Rp(r));default:return fy(e,r)}}))),TA=Tr((function(e,r){return typeof r["fantasy-land/ap"]=="function"?r["fantasy-land/ap"](e):typeof e.ap=="function"?e.ap(r):typeof e=="function"?function(n){return e(n)(r(n))}:PA((function(n,a){return(function(p,c){var d;c=c||[];var E=(p=p||[]).length,x=c.length,k=[];for(d=0;dE!=E>d)return E>d?E:d}var a=n(e,r);if(a!==void 0)return a;var o=n(typeof e,typeof r);if(o!==void 0)return o===typeof e?e:r;var p=Tf(e),c=n(p,Tf(r));return c!==void 0&&c===p?e:r}));var MA=Tr((function(e,r){return yy(Af(e),r)}));const mE=MA,RA=_r((function(e){return ja(Vh(fE,0,mE("length",e)),(function(){for(var r=0,n=e.length;r{var t,e;return/^win/.test((t=(e=globalThis.process)===null||e===void 0?void 0:e.platform)!==null&&t!==void 0?t:"")},C0=t=>{try{const e=new URL(t);return AA(":",e.protocol)}catch{return}},bE=(mo(C0,dE),t=>{if(globalThis.window!==void 0)return!1;const e=C0(t);return Iu(e)||e==="file"||/^[a-zA-Z]$/.test(e)}),j0=t=>{const e=C0(t);return e==="http"||e==="https"},wE=(t,e)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=uy(!1,"keepFileProtocol",e),a=uy(A0,"isWindows",e);let o=decodeURI(t);for(let c=0;c{const e=t.indexOf("#");return e!==-1?t.substring(e):"#"},In=t=>{const e=t.indexOf("#");let r=t;return e>=0&&(r=t.substring(0,e)),r},P0=()=>{var t,e;if(globalThis.window!==void 0)return In(globalThis.location.href);const r=(t=(e=globalThis.process)===null||e===void 0?void 0:e.cwd())!==null&&t!==void 0?t:"/",n=py(r);return["/","\\"].includes(n)?r:r+(A0()?"\\":"/")},go=(t,e)=>{const r=new URL(e,new URL(t,"resolve://"));if(r.protocol==="resolve:"){const{pathname:n,search:a,hash:o}=r;return n+a+o}return r.toString()},by=t=>{if(bE(t))return(e=>{const r=[/\?/g,"%3F",/#/g,"%23"];let n=e;A0()&&(n=n.replace(/\\/g,"/")),n=encodeURI(n);for(let a=0;abE(t)?wE(t):decodeURI(t);var JA=Be(8628),Yn=Be.n(JA);const SE=t=>Object.prototype.toString.call(t),N0=t=>ArrayBuffer.isView(t)&&!(t instanceof DataView),xE=Array.isArray,_E=t=>{const e=SE(t);return e==="[object Boolean]"||e==="[object Number]"||e==="[object String]"},WA=Object.getOwnPropertyDescriptor,HA=Object.prototype.propertyIsEnumerable,KA=Object.getOwnPropertySymbols,wy=Object.prototype.hasOwnProperty,OE=t=>t==="__proto__"||t==="constructor"||t==="prototype";function Ey(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0}):t[e]=r}function kE(t,e){if(e!==void 0&&t>e)throw new RangeError(`neotraverse: maximum traversal depth (${e}) exceeded`)}function T0(t){const e=Object.keys(t),r=KA(t);for(let n=0;nnew Ll(t,e);$l.get=(t,e,r)=>new Ll(t,r).get(e),$l.set=(t,e,r,n)=>new Ll(t,n).set(e,r),$l.has=(t,e,r)=>new Ll(t,r).has(e),$l.map=(t,e,r)=>new Ll(t,r).map(e),$l.forEach=(t,e,r)=>new Ll(t,r).forEach(e),$l.reduce=(t,e,r,n)=>new Ll(t,n).reduce(e,r),$l.paths=(t,e)=>new Ll(t,e).paths(),$l.nodes=(t,e)=>new Ll(t,e).nodes(),$l.clone=(t,e)=>new Ll(t,e).clone();const PE="application/json, application/yaml",Sy="https://swagger.io",YA=Object.freeze({url:"/"}),NE=3e3,XA=["properties"],QA=["properties"],ZA=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],eC=["schema/example","items/example"];function TE(t){const e=t[t.length-1],r=t[t.length-2],n=t.join("/");return XA.indexOf(e)>-1&&QA.indexOf(r)===-1||ZA.indexOf(n)>-1||eC.some((a=>n.indexOf(a)>-1))}function I0(t,e){const[r,n]=t.split("#"),a=e??"",o=r??"";let p;if(j0(a))p=go(a,o);else{const c=go(Sy,a),d=go(c,o).replace(Sy,"");p=o.startsWith("/")?d:d.substring(1)}return n?`${p}#${n}`:p}const tC=/^([a-z]+:\/\/|\/\/)/i;class Hh extends xr{}const Oc={},IE=new WeakMap,rC=[t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples",t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example",t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value",t=>t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example",t=>t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value",t=>t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"],nC={key:"$ref",plugin:(t,e,r,n)=>{const a=n.getInstance(),o=r.slice(0,-1);if(TE(o)||(V=>rC.some((Q=>Q(V))))(o))return;const{baseDoc:p}=n.getContext(r);if(typeof t!="string")return new Hh("$ref: must be a string (JSON-Ref)",{$ref:t,baseDoc:p,fullPath:r});const c=FE(t),d=c[0],E=c[1]||"";let x,k,P;try{x=p||d?DE(d,p):null}catch(V){return M0(V,{pointer:E,$ref:t,basePath:x,fullPath:r})}if((function(Q,J,re,me){let le=IE.get(me);le||(le={},IE.set(me,le));const ve=(function(je){return je.length===0?"":`/${je.map(qE).join("/")}`})(re),be=`${J||""}#${Q}`,ce=ve.replace(/allOf\/\d+\/?/g,""),_e=me.contextTree.get([]).baseDoc;if(J===_e&&F0(ce,Q))return!0;let Ae="";if(re.some((Oe=>(Ae=`${Ae}/${qE(Oe)}`,le[Ae]&&le[Ae].some((je=>F0(je,be)||F0(be,je)))))))return!0;le[ce]=(le[ce]||[]).concat(be)})(E,x,o,n)&&!a.useCircularStructures){const V=I0(t,x);return t===V?null:C.replace(r,V)}if(x==null?(P=D0(E),k=n.get(P),k===void 0&&(k=new Hh(`Could not resolve reference: ${t}`,{pointer:E,$ref:t,baseDoc:p,fullPath:r}))):(k=LE(x,E),k=k.__value!=null?k.__value:k.catch((V=>{throw M0(V,{pointer:E,$ref:t,baseDoc:p,fullPath:r})}))),k instanceof Error)return[C.remove(r),k];const R=I0(t,x),L=C.replace(o,k,{$$ref:R});if(x&&x!==p)return[L,C.context(o,{baseDoc:x})];try{if(!(function(Q,J){const re=[Q];return J.path.reduce(((le,ve)=>(re.push(le[ve]),le[ve])),Q),me(J.value);function me(le){return C.isObject(le)&&(re.indexOf(le)>=0||Object.keys(le).some((ve=>me(le[ve]))))}})(n.state,L)||a.useCircularStructures)return L}catch{return null}}},ME=Object.assign(nC,{docCache:Oc,absoluteify:DE,clearCache:function(e){e!==void 0?delete Oc[e]:Object.keys(Oc).forEach((r=>{delete Oc[r]}))},JSONRefError:Hh,wrapError:M0,getDoc:$E,split:FE,extractFromDoc:LE,fetchJSON:function(e){return fetch(e,{headers:{Accept:PE},loadSpec:!0}).then((r=>r.text())).then((r=>Pe.load(r)))},extract:R0,jsonPointerToArray:D0,unescapeJsonPointerToken:BE}),RE=ME;function DE(t,e){if(!tC.test(t)){if(!e)throw new Hh(`Tried to resolve a relative URL, without having a basePath. path: '${t}' basePath: '${e}'`);return go(e,t)}return t}function M0(t,e){let r;return r=t&&t.response&&t.response.body?`${t.response.body.code} ${t.response.body.message}`:t.message,new Hh(`Could not resolve reference: ${r}`,{...e,cause:t})}function FE(t){return(t+"").split("#")}function LE(t,e){const r=Oc[t];if(r&&!C.isPromise(r))try{const n=R0(e,r);return Object.assign(Promise.resolve(n),{__value:n})}catch(n){return Promise.reject(n)}return $E(t).then((n=>R0(e,n)))}function $E(t){const e=Oc[t];return e?C.isPromise(e)?e:Promise.resolve(e):(Oc[t]=ME.fetchJSON(t).then((r=>(Oc[t]=r,r))),Oc[t])}function R0(t,e){const r=D0(t);if(r.length<1)return e;const n=C.getIn(e,r);if(n===void 0)throw new Hh(`Could not resolve pointer: ${t} does not exist in document`,{pointer:t});return n}function D0(t){if(typeof t!="string")throw new TypeError("Expected a string, got a "+typeof t);return t[0]==="/"&&(t=t.substr(1)),t===""?[]:t.split("/").map(BE)}function BE(t){return typeof t!="string"?t:new URLSearchParams(`=${t.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function qE(t){return new URLSearchParams([["",t.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const aC=t=>!t||t==="/"||t==="#";function F0(t,e){if(aC(e))return!0;const r=t.charAt(e.length),n=e.slice(-1);return t.indexOf(e)===0&&(!r||r==="/"||r==="#")&&n!=="#"}const oC={key:"allOf",plugin:(t,e,r,n,a)=>{if(a.meta&&a.meta.$$ref)return;const o=r.slice(0,-1);if(TE(o))return;if(!Array.isArray(t)){const E=new TypeError("allOf must be an array");return E.fullPath=r,E}let p=!1,c=a.value;if(o.forEach((E=>{c&&(c=c[E])})),c={...c},Object.keys(c).length===0)return;delete c.allOf;const d=[];return d.push(n.replace(o,{})),t.forEach(((E,x)=>{if(!n.isObject(E)){if(p)return null;p=!0;const P=new TypeError("Elements in allOf must be objects");return P.fullPath=r,d.push(P)}d.push(n.mergeDeep(o,E));const k=(function(R,L,{specmap:V,getBaseUrlForNodePath:Q=re=>V.getContext([...L,...re]).baseDoc,targetKeys:J=["$ref","$$ref"]}={}){const re=[];return $l(R).forEach((function(){if(Yn()(J).call(J,this.key)&&typeof this.node=="string"){const le=this.path,ve=L.concat(this.path),be=I0(this.node,Q(le));re.push(V.replace(ve,be))}})),re})(E,r.slice(0,-1),{getBaseUrlForNodePath:P=>n.getContext([...r,x,...P]).baseDoc,specmap:n});d.push(...k)})),c.example&&d.push(n.remove([].concat(o,"example"))),d.push(n.mergeDeep(o,c)),c.$$ref||d.push(n.remove([].concat(o,"$$ref"))),d}},iC={key:"parameters",plugin:(t,e,r,n)=>{if(Array.isArray(t)&&t.length){const a=Object.assign([],t),o=r.slice(0,-1),p={...C.getIn(n.spec,o)};for(let c=0;c{const a={...t};for(const o in t)try{a[o].default=n.modelPropertyMacro(a[o])}catch(p){const c=new Error(p);return c.fullPath=r,c}return C.replace(r,a)}};class lC{constructor(e){this.root=L0(e||{})}set(e,r){const n=this.getParent(e,!0);if(!n)return void xy(this.root,r,null);const a=e[e.length-1],{children:o}=n;o[a]?xy(o[a],r,n):o[a]=L0(r,n)}get(e){if((e=e||[]).length<1)return this.root.value;let r,n,a=this.root;for(let o=0;o{if(!n)return n;const{children:o}=n;return!o[a]&&r&&(o[a]=L0(null,n)),o[a]}),this.root)}}function L0(t,e){return xy({children:{}},t,e)}function xy(t,e,r){return t.value=e||{},t.protoValue=r?{...r.protoValue,...t.value}:t.value,Object.keys(t.children).forEach((n=>{const a=t.children[n];t.children[n]=xy(a,a.value,t)})),t}const UE=()=>{};class cC{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,r){return e.filter(r)}constructor(e){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new lC,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),C,{getInstance:()=>this}),allowMetaPatches:!1},e),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(C.isFunction),this.patches.push(C.add([],this.spec)),this.patches.push(C.context([],this.context)),this.updatePatches(this.patches)}debug(e,...r){this.debugLevel===e&&console.log(...r)}verbose(e,...r){this.debugLevel==="verbose"&&console.log(`[${e}] `,...r)}wrapPlugin(e,r){const{pathDiscriminator:n}=this;let a,o=null;return e[this.pluginProp]?(o=e,a=e[this.pluginProp]):C.isFunction(e)?a=e:C.isObject(e)&&(a=(function(c){const d=(E,x)=>!Array.isArray(E)||E.every(((k,P)=>k===x[P]));return function*(x,k){const P={};for(const[L,V]of x.filter(C.isAdditiveMutation).entries()){if(!(Lthis.getMutationsForPlugin(e).length>0))}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map((e=>e.value)))}getPluginHistory(e){const r=this.constructor.getPluginName(e);return this.pluginHistory[r]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){const r=this.getPluginHistory(e);return r&&r[r.length-1]||{}}getPluginMutationIndex(e){const r=this.getPluginHistoryTip(e).mutationIndex;return typeof r!="number"?-1:r}updatePluginHistory(e,r){const n=this.constructor.getPluginName(e);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(r)}updatePatches(e){C.normalizeArray(e).forEach((r=>{if(r instanceof Error)this.errors.push(r);else try{if(!C.isObject(r))return void this.debug("updatePatches","Got a non-object patch",r);if(this.showDebug&&this.allPatches.push(r),C.isPromise(r.value))return this.promisedPatches.push(r),void this.promisedPatchThen(r);if(C.isContextPatch(r))return void this.setContext(r.path,r.value);C.isMutation(r)&&this.updateMutations(r)}catch(n){console.error(n),this.errors.push(n)}}))}updateMutations(e){typeof e.value=="object"&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});const r=C.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});r&&(this.mutations.push(e),this.state=r)}removePromisedPatch(e){const r=this.promisedPatches.indexOf(e);r<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(r,1)}promisedPatchThen(e){return e.value=e.value.then((r=>{const n={...e,value:r};this.removePromisedPatch(e),this.updatePatches(n)})).catch((r=>{this.removePromisedPatch(e),this.updatePatches(r)})),e.value}getMutations(e,r){return e=e||0,typeof r!="number"&&(r=this.mutations.length),this.mutations.slice(e,r)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const r=this.getPluginMutationIndex(e);return this.getMutations(r+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return C.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,r){return this.contextTree.set(e,r)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,r=this.nextPlugin();if(!r){const a=this.nextPromisedPatch();if(a)return a.then((()=>this.dispatch())).catch((()=>this.dispatch()));const o={spec:this.state,errors:this.errors};return this.showDebug&&(o.patches=this.allPatches),Promise.resolve(o)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(r,(e.pluginCount.get(r)||0)+1),e.pluginCount[r]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(r!==this.currentPlugin&&this.promisedPatches.length){const a=this.promisedPatches.map((o=>o.value));return Promise.all(a.map((o=>o.then(UE,UE)))).then((()=>this.dispatch()))}return(function(){e.currentPlugin=r;const o=e.getCurrentMutations(),p=e.mutations.length-1;try{if(r.isGenerator)for(const c of r(o,e.getLib()))n(c);else n(r(o,e.getLib()))}catch(c){console.error(c),n([Object.assign(Object.create(c),{plugin:r})])}finally{e.updatePluginHistory(r,{mutationIndex:p})}return e.dispatch()})();function n(a){a&&(a=C.fullyNormalizeArray(a),e.updatePatches(a,r))}}}const Kh={refs:RE,allOf:oC,parameters:iC,properties:sC};function zE(t,e={}){const{requestInterceptor:r,responseInterceptor:n}=e,a=t.withCredentials?"include":"same-origin";return o=>t({url:o,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:PE},credentials:a}).then((p=>p.body))}function $0(t,e){return e||typeof navigator>"u"||(e=navigator),e&&e.product==="ReactNative"?!(!t||typeof t!="object"||typeof t.uri!="string"):typeof File<"u"&&t instanceof File||typeof Blob<"u"&&t instanceof Blob||!!ArrayBuffer.isView(t)||t!==null&&typeof t=="object"&&typeof t.pipe=="function"}function VE(t,e){return Array.isArray(t)&&t.some((r=>$0(r,e)))}class B0 extends File{constructor(e,r="",n={}){super([e],r,n),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const uC=t=>":/?#[]@!$&'()*+,;=".indexOf(t)>-1,pC=t=>/^[a-z0-9\-._~]+$/i.test(t);function JE(t,e="reserved"){return[...t].map((r=>{if(pC(r)||uC(r)&&e==="unsafe")return r;const n=new TextEncoder;return Array.from(n.encode(r)).map((a=>`0${a.toString(16).toUpperCase()}`.slice(-2))).map((a=>`%${a}`)).join("")})).join("")}function q0(t){const{value:e}=t;return Array.isArray(e)?(function({key:n,value:a,style:o,explode:p,escape:c}){if(o==="simple")return a.map((d=>yo(d,c))).join(",");if(o==="label")return`.${a.map((d=>yo(d,c))).join(".")}`;if(o==="matrix")return a.map((d=>yo(d,c))).reduce(((d,E)=>!d||p?`${d||""};${n}=${E}`:`${d},${E}`),"");if(o==="form"){const d=p?`&${n}=`:",";return a.map((E=>yo(E,c))).join(d)}if(o==="spaceDelimited"){const d=p?`${n}=`:"";return a.map((E=>yo(E,c))).join(` ${d}`)}if(o==="pipeDelimited"){const d=p?`${n}=`:"";return a.map((E=>yo(E,c))).join(`|${d}`)}})(t):typeof e=="object"?(function({key:n,value:a,style:o,explode:p,escape:c}){const d=Object.keys(a);if(o==="simple")return d.reduce(((E,x)=>{const k=yo(a[x],c);return`${E?`${E},`:""}${x}${p?"=":","}${k}`}),"");if(o==="label")return d.reduce(((E,x)=>{const k=yo(a[x],c);return`${E?`${E}.`:"."}${x}${p?"=":"."}${k}`}),"");if(o==="matrix"&&p)return d.reduce(((E,x)=>`${E?`${E};`:";"}${x}=${yo(a[x],c)}`),"");if(o==="matrix")return d.reduce(((E,x)=>{const k=yo(a[x],c);return`${E?`${E},`:`;${n}=`}${x},${k}`}),"");if(o==="form")return d.reduce(((E,x)=>{const k=yo(a[x],c);return`${E?`${E}${p?"&":","}`:""}${x}${p?"=":","}${k}`}),"")})(t):(function({key:n,value:a,style:o,escape:p}){if(o==="simple")return yo(a,p);if(o==="label")return`.${yo(a,p)}`;if(o==="matrix")return`;${n}=${yo(a,p)}`;if(o==="form"||o==="deepObject")return yo(a,p)})(t)}function yo(t,e=!1){return Array.isArray(t)||t!==null&&typeof t=="object"?t=JSON.stringify(t):typeof t!="number"&&typeof t!="boolean"||(t=String(t)),e&&typeof t=="string"&&t.length>0?JE(t,e):t??""}const hC={form:",",spaceDelimited:"%20",pipeDelimited:"|"},dC={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function WE(t,e,r=!1){const{collectionFormat:n,allowEmptyValue:a,serializationOption:o,encoding:p}=e,c=typeof e!="object"||Array.isArray(e)?e:e.value,d=r?x=>x.toString():x=>encodeURIComponent(x),E=d(t);if(c===void 0&&a)return[[E,""]];if($0(c)||VE(c))return[[E,c]];if(o)return HE(t,c,r,o);if(p){if([typeof p.style,typeof p.explode,typeof p.allowReserved].some((x=>x!=="undefined"))){const{style:x,explode:k,allowReserved:P}=p;return HE(t,c,r,{style:x,explode:k,allowReserved:P})}if(typeof p.contentType=="string"){if(p.contentType.startsWith("application/json")){const k=d(typeof c=="string"?c:JSON.stringify(c));return[[E,new B0(k,"blob",{type:p.contentType})]]}const x=d(String(c));return[[E,new B0(x,"blob",{type:p.contentType})]]}return typeof c!="object"?[[E,d(c)]]:Array.isArray(c)&&c.every((x=>typeof x!="object"))?[[E,c.map(d).join(",")]]:[[E,d(JSON.stringify(c))]]}return typeof c!="object"?[[E,d(c)]]:Array.isArray(c)?n==="multi"?[[E,c.map(d)]]:[[E,c.map(d).join(dC[n||"csv"])]]:[[E,""]]}function HE(t,e,r,n){const a=n.style||"form",o=n.explode===void 0?a==="form":n.explode,p=!r&&(n&&n.allowReserved?"unsafe":"reserved"),c=E=>yo(E,p),d=r?E=>E:E=>c(E);return typeof e!="object"?[[d(t),c(e)]]:Array.isArray(e)?o?[[d(t),e.map(c)]]:[[d(t),e.map(c).join(hC[a])]]:a==="deepObject"?Object.keys(e).map((E=>[d(`${t}[${E}]`),c(e[E])])):o?Object.keys(e).map((E=>[d(E),c(e[E])])):[[d(t),Object.keys(e).map((E=>[`${d(E)},${c(e[E])}`])).join(",")]]}function KE(t){return((e,{encode:r=!0}={})=>{const n=(p,c,d)=>(Array.isArray(d)?d.reduce(((E,x)=>n(p,c,x)),p):d instanceof Date?p.append(c,d.toISOString()):typeof d=="object"?Object.entries(d).reduce(((E,[x,k])=>n(p,`${c}[${x}]`,k)),p):p.append(c,d),p),a=Object.entries(e).reduce(((p,[c,d])=>n(p,c,d)),new URLSearchParams),o=String(a);return r?o:decodeURIComponent(o)})(Object.keys(t).reduce(((e,r)=>{for(const[n,a]of WE(r,t[r]))e[n]=a instanceof B0?a.valueOf():a;return e}),{}),{encode:!1})}function U0(t={}){const{url:e="",query:r,form:n}=t;if(n){const a=Object.keys(n).some((p=>{const{value:c}=n[p];return $0(c)||VE(c)})),o=t.headers["content-type"]||t.headers["Content-Type"];if(a||/multipart\/form-data/i.test(o)){const p=(function(d){return Object.entries(d).reduce(((E,[x,k])=>{for(const[P,R]of WE(x,k,!0))if(Array.isArray(R))for(const L of R)if(ArrayBuffer.isView(L)){const V=new Blob([L]);E.append(P,V)}else E.append(P,L);else if(ArrayBuffer.isView(R)){const L=new Blob([R]);E.append(P,L)}else E.append(P,R);return E}),new FormData)})(t.form);t.formdata=p,t.body=p}else t.body=KE(n);delete t.form}if(r){const[a,o]=e.split("?");let p="";if(o){const d=new URLSearchParams(o);Object.keys(r).forEach((E=>d.delete(E))),p=String(d)}const c=((...d)=>{const E=d.filter((x=>x)).join("&");return E?`?${E}`:""})(p,KE(r));t.url=a+c,delete t.query}return t}function fC(t={}){return typeof t.entries!="function"?{}:Array.from(t.entries()).reduce(((e,[r,n])=>(e[r]=(function(o){return Yn()(o).call(o,", ")?o.split(", "):o})(n),e)),{})}function GE(t,e,{loadSpec:r=!1}={}){const n={ok:t.ok,url:t.url||e,status:t.status,statusText:t.statusText,headers:fC(t.headers)},a=n.headers["content-type"],o=r||((p="")=>/(json|xml|yaml|text)\b/.test(p))(a);return(o?t.text:t.blob||t.buffer).call(t).then((p=>{if(n.text=p,n.data=p,o)try{const c=(function(E,x){if(x){if(x.indexOf("application/json")===0||x.indexOf("+json")>0)return JSON.parse(E);if(x.indexOf("application/xml")===0||x.indexOf("+xml")>0)return E}return Pe.load(E)})(p,a);n.body=c,n.obj=c}catch(c){n.parseError=c}return n}))}async function Mf(t,e={}){typeof t=="object"&&(t=(e=t).url),e.headers=e.headers||{},(e=U0(e)).headers&&Object.keys(e.headers).forEach((a=>{const o=e.headers[a];typeof o=="string"&&(e.headers[a]=o.replace(/\n+/g," "))})),e.requestInterceptor&&(e=await e.requestInterceptor(e)||e);const r=e.headers["content-type"]||e.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&(delete e.headers["content-type"],delete e.headers["Content-Type"]);try{n=await(e.userFetch||fetch)(e.url,e),n=await GE(n,t,e),e.responseInterceptor&&(n=await e.responseInterceptor(n)||n)}catch(a){if(!n)throw a;const o=new Error(n.statusText||`response status is ${n.status}`);throw o.status=n.status,o.statusCode=n.status,o.responseError=a,o}if(!n.ok){const a=new Error(n.statusText||`response status is ${n.status}`);throw a.status=n.status,a.statusCode=n.status,a.response=n,a}return n}const z0=t=>{const{baseDoc:e,url:r}=t,n=e??r??"";return typeof globalThis.document?.baseURI=="string"?String(new URL(n,globalThis.document.baseURI)):n},YE=t=>{const{fetch:e,http:r}=t;return e||r||Mf};async function V0(t){const{spec:e,mode:r,allowMetaPatches:n=!0,pathDiscriminator:a,modelPropertyMacro:o,parameterMacro:p,requestInterceptor:c,responseInterceptor:d,skipNormalization:E=!1,useCircularStructures:x,strategies:k}=t,P=z0(t),R=YE(t),L=k.find((V=>V.match(e)));return(async function(Q){P&&(Kh.refs.docCache[P]=Q),Kh.refs.fetchJSON=zE(R,{requestInterceptor:c,responseInterceptor:d});const J=[Kh.refs];typeof p=="function"&&J.push(Kh.parameters),typeof o=="function"&&J.push(Kh.properties),r!=="strict"&&J.push(Kh.allOf);const re=await(function(le){return new cC(le).dispatch()})({spec:Q,context:{baseDoc:P},plugins:J,allowMetaPatches:n,pathDiscriminator:a,parameterMacro:p,modelPropertyMacro:o,useCircularStructures:x});return E||(re.spec=L.normalize(re.spec)),re})(e)}function J0(t,e){for(var r=e,n=0;nt.replace(/\W/gi,"_"),EC=new Set(["connect","delete","get","head","options","patch","post","put","query","trace"]);function Df(t,e,r="",{v2OperationIdCompatibilityMode:n}={}){return!t||typeof t!="object"?null:(t.operationId||"").replace(/\s/g,"").length?eS(t.operationId):(function(o,p,{v2OperationIdCompatibilityMode:c}={}){if(c){let d=`${p.toLowerCase()}_${o}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return d=d||`${o.substring(1)}_${p}`,d.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${EC.has(p.toLowerCase())?p.toLowerCase():p}${eS(o)}`})(e,r,{v2OperationIdCompatibilityMode:n})}function K0(t){const{spec:e}=t,{paths:r}=e,n={};if(!r||e.$$normalized)return t;for(const p in r){var a;const c=r[p];if(c==null||!Yn()(a=["object","function"]).call(a,typeof c))continue;const d=c.parameters;for(const E in c){var o;const x=c[E];if(x==null||!Yn()(o=["object","function"]).call(o,typeof x))continue;const k=Df(x,p,E);if(k){n[k]?n[k].push(x):n[k]=[x];const P=n[k];if(P.length>1)P.forEach(((R,L)=>{R.__originalOperationId=R.__originalOperationId||R.operationId,R.operationId=`${k}${L+1}`}));else if(x.operationId!==void 0){const R=P[0];R.__originalOperationId=R.__originalOperationId||x.operationId,R.operationId=k}}if(E!=="parameters"){const P=[],R={};for(const L in e)L!=="produces"&&L!=="consumes"&&L!=="security"||(R[L]=e[L],P.push(R));if(d&&(R.parameters=d,P.push(R)),P.length)for(const L of P)for(const V in L)if(Array.isArray(x[V])){if(V==="parameters")for(const Q of L[V])x[V].some((J=>!(!Ls(J)&&!Ls(Q))&&(J===Q||["name","$ref","$$ref"].some((re=>typeof J[re]=="string"&&typeof Q[re]=="string"&&J[re]===Q[re])))))||x[V].push(Q)}else x[V]=L[V]}}}return e.$$normalized=!0,t}const SC={name:"generic",match:()=>!0,normalize(t){const{spec:e}=K0({spec:t});return e},resolve:async t=>V0(t)},G0=SC,tS=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},Y0=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},rS=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.2\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},nS=t=>tS(t)||Y0(t)||rS(t),xC={name:"openapi-2",match:t=>(e=>{try{const{swagger:r}=e;return r==="2.0"}catch{return!1}})(t),normalize(t){const{spec:e}=K0({spec:t});return e},resolve:async t=>(async function(r){return V0(r)})(t)},X0=xC,_C={name:"openapi-3-0",match:t=>tS(t),normalize(t){const{spec:e}=K0({spec:t});return e},resolve:async t=>(async function(r){return V0(r)})(t)},Q0=_C;var Ge=Be(34035);function _y(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}var OC=(function(){function t(e,r){this.xf=r,this.f=e,this.all=!0}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.f(r)||(this.all=!1,e=_y(this.xf["@@transducer/step"](e,!1))),e},t})();function kC(t){return function(e){return new OC(t,e)}}var AC=Tr(Nu(["all"],kC,(function(e,r){for(var n=0;ne.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>e.element==="annotation"))}get warnings(){return this.children.filter((e=>e.element==="annotation"&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>e.element==="annotation"&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>e.element==="annotation")).isEmpty}replaceResult(e){const{result:r}=this;if(Iu(r))return!1;const n=this.content.findIndex((a=>a===r));return n!==-1&&(this.content[n]=e,!0)}}const $s=PC,NC=(t,e)=>typeof e=="object"&&e!==null&&t in e&&typeof e[t]=="function",TC=t=>typeof t=="object"&&t!=null&&"_storedElement"in t&&typeof t._storedElement=="string"&&"_content"in t,IC=(t,e)=>typeof e=="object"&&e!==null&&"primitive"in e&&typeof e.primitive=="function"&&e.primitive()===t,MC=(t,e)=>typeof e=="object"&&e!==null&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof Ge.wE)&&e.classes.includes(t),Mu=(t,e)=>typeof e=="object"&&e!==null&&"element"in e&&e.element===t,Qt=t=>t({hasMethod:NC,hasBasicElementProps:TC,primitiveEq:IC,isElementType:Mu,hasClass:MC}),da=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.Hg||t(r)&&e(void 0,r))),Ir=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.Om||t(r)&&e("string",r))),eb=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.kT||t(r)&&e("number",r))),tb=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.Os||t(r)&&e("null",r))),Ff=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.bd||t(r)&&e("boolean",r))),hn=Qt((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Ge.Sh||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),vo=Qt((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Ge.wE&&!(n instanceof Ge.Sh)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Bs=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ge.Pr||t(n)&&e("member",n)&&r(void 0,n))),aS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ge.Ft||t(n)&&e("link",n)&&r(void 0,n))),oS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ge.sI||t(n)&&e("ref",n)&&r(void 0,n))),RC=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Oy||t(n)&&e("annotation",n)&&r("array",n))),DC=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ky||t(n)&&e("comment",n)&&r("string",n))),iS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $s||t(n)&&e("parseResult",n)&&r("array",n))),$p=t=>Mu("object",t)||Mu("array",t)||Mu("boolean",t)||Mu("number",t)||Mu("string",t)||Mu("null",t)||Mu("member",t),Gh=t=>!!da(t)&&Number.isInteger(t.startPositionRow)&&Number.isInteger(t.startPositionColumn)&&Number.isInteger(t.startIndex)&&Number.isInteger(t.endPositionRow)&&Number.isInteger(t.endPositionColumn)&&Number.isInteger(t.endIndex),FC=(t,e)=>{if(t.length===0)return!0;const r=e.attributes.get("symbols");return!!vo(r)&&Z0(gy(r.toValue()),t)},Yh=(t,e)=>t.length===0||Z0(gy(e.classes.toValue()),t),kc=function(){return!0},rb=function(){return!1},Ay=(t,e,r)=>{const n=t[e];if(n!=null){if(!r&&typeof n=="function")return n;const a=r?n.leave:n.enter;if(typeof a=="function")return a}else{const a=r?t.leave:t.enter;if(a!=null){if(typeof a=="function")return a;const o=a[e];if(typeof o=="function")return o}}return null},on={},Lf=t=>t?.type,sS=t=>typeof Lf(t)=="string",nb=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),Cy=(t,{visitFnGetter:e=Ay,nodeTypeGetter:r=Lf,breakSymbol:n=on,deleteNodeSymbol:a=null,skipVisitingNodeSymbol:o=!1,exposeEdits:p=!1}={})=>{const c=Symbol("skip"),d=new Array(t.length).fill(c);return{enter(E,x,k,P,R,L){let V=E,Q=!1;const J={...L,replaceWith(re,me){L.replaceWith(re,me),V=re}};for(let re=0;re{const c=Symbol("skip"),d=new Array(t.length).fill(c);return{async enter(E,x,k,P,R,L){let V=E,Q=!1;const J={...L,replaceWith(re,me){L.replaceWith(re,me),V=re}};for(let re=0;re{const R=r||{};let L,V,Q=Array.isArray(t),J=[t],re=-1,me=[],le=t;const ve=[],be=[];do{re+=1;const Ae=re===J.length;let xe;const Oe=Ae&&me.length!==0;if(Ae){if(xe=be.length===0?void 0:ve.pop(),le=V,V=be.pop(),Oe)if(Q){le=le.slice();let G=0;for(const[de,Ne]of me){const Ye=de-G;Ne===o?(le.splice(Ye,1),G+=1):le[Ye]=Ne}}else{le=x(le);for(const[G,de]of me)le[G]=de}re=L.index,J=L.keys,me=L.edits,Q=L.inArray,L=L.prev}else if(V!==o&&V!==void 0){if(xe=Q?re:J[re],le=V[xe],le===o||le===void 0)continue;ve.push(xe)}let je;if(!Array.isArray(le)){var ce;if(!E(le))throw new xr(`Invalid AST Node: ${String(le)}`,{node:le});if(k&&be.includes(le)){typeof P=="function"&&P(le,xe,V,ve,be),ve.pop();continue}const G=c(e,d(le),Ae);if(G){for(const[Ne,Ye]of Object.entries(n))e[Ne]=Ye;const de={replaceWith(Ne,Ye){typeof Ye=="function"?Ye(Ne,le,xe,V,ve,be):V&&(V[xe]=Ne),Ae||(le=Ne)}};je=G.call(e,le,xe,V,ve,be,de)}if(typeof((ce=je)===null||ce===void 0?void 0:ce.then)=="function")throw new xr("Async visitor not supported in sync mode",{visitor:e,visitFn:G});if(je===a)break;if(je===p){if(!Ae){ve.pop();continue}}else if(je!==void 0&&(me.push([xe,je]),!Ae)){if(!E(je)){ve.pop();continue}le=je}}var _e;je===void 0&&Oe&&me.push([xe,le]),!Ae&&(L={inArray:Q,index:re,keys:J,edits:me,prev:L},Q=Array.isArray(le),J=Q?le:(_e=R[d(le)])!==null&&_e!==void 0?_e:[],re=-1,me=[],V!==o&&V!==void 0&&be.push(V),V=le)}while(L!==void 0);return me.length!==0?me[me.length-1][1]:t};ab[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:a=on,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:p=!1,visitFnGetter:c=Ay,nodeTypeGetter:d=Lf,nodePredicate:E=sS,nodeCloneFn:x=nb,detectCycles:k=!0,detectCyclesCallback:P=null}={})=>{const R=r||{};let L,V,Q=Array.isArray(t),J=[t],re=-1,me=[],le=t;const ve=[],be=[];do{re+=1;const _e=re===J.length;let Ae;const xe=_e&&me.length!==0;if(_e){if(Ae=be.length===0?void 0:ve.pop(),le=V,V=be.pop(),xe)if(Q){le=le.slice();let je=0;for(const[G,de]of me){const Ne=G-je;de===o?(le.splice(Ne,1),je+=1):le[Ne]=de}}else{le=x(le);for(const[je,G]of me)le[je]=G}re=L.index,J=L.keys,me=L.edits,Q=L.inArray,L=L.prev}else if(V!==o&&V!==void 0){if(Ae=Q?re:J[re],le=V[Ae],le===o||le===void 0)continue;ve.push(Ae)}let Oe;if(!Array.isArray(le)){if(!E(le))throw new xr(`Invalid AST Node: ${String(le)}`,{node:le});if(k&&be.includes(le)){typeof P=="function"&&P(le,Ae,V,ve,be),ve.pop();continue}const je=c(e,d(le),_e);if(je){for(const[de,Ne]of Object.entries(n))e[de]=Ne;const G={replaceWith(de,Ne){typeof Ne=="function"?Ne(de,le,Ae,V,ve,be):V&&(V[Ae]=de),_e||(le=de)}};Oe=await je.call(e,le,Ae,V,ve,be,G)}if(Oe===a)break;if(Oe===p){if(!_e){ve.pop();continue}}else if(Oe!==void 0&&(me.push([Ae,Oe]),!_e)){if(!E(Oe)){ve.pop();continue}le=Oe}}var ce;Oe===void 0&&xe&&me.push([Ae,le]),!_e&&(L={inArray:Q,index:re,keys:J,edits:me,prev:L},Q=Array.isArray(le),J=Q?le:(ce=R[d(le)])!==null&&ce!==void 0?ce:[],re=-1,me=[],V!==o&&V!==void 0&&be.push(V),V=le)}while(L!==void 0);return me.length!==0?me[me.length-1][1]:t};const lS=class extends xr{value;constructor(e,r){super(e,r),r!==void 0&&(this.value=r.value)}},LC=class extends lS{},$C=class extends lS{},BC=Tr((function(e,r){return Pf((function(n,a){return n[a]=e(r[a],a,r),n}),{},Rp(r))})),jy=_r((function(e){return e==null}));var qC=Tr((function(e,r){if(e.length===0||jy(r))return!1;for(var n=r,a=0;a{const r=Jh(t,e);return BC((n=>{if(Ls(n)&&$f("$ref",n)&&VC(Lp,"$ref",n)){const a=ro(["$ref"],n),o=cS("#/",a);return ro(o.split("/"),r)}return Ls(n)?Ru(n,r):n}),t)},ob=(t,e)=>(t.startPositionRow=e?.startPositionRow,t.startPositionColumn=e?.startPositionColumn,t.startIndex=e?.startIndex,t.endPositionRow=e?.endPositionRow,t.endPositionColumn=e?.endPositionColumn,t.endIndex=e?.endIndex,t),hr=(t,e={})=>{const{visited:r=new WeakMap}=e,n={...e,visited:r};if(r.has(t))return r.get(t);if(t instanceof Ge.KeyValuePair){const{key:a,value:o}=t,p=da(a)?hr(a,n):a,c=da(o)?hr(o,n):o,d=new Ge.KeyValuePair(p,c);return r.set(t,d),d}if(t instanceof Ge.ot){const a=c=>hr(c,n),o=[...t].map(a),p=new Ge.ot(o);return r.set(t,p),p}if(t instanceof Ge.G6){const a=c=>hr(c,n),o=[...t].map(a),p=new Ge.G6(o);return r.set(t,p),p}if(da(t)){const a=no(t);if(r.set(t,a),t.content)if(da(t.content))a.content=hr(t.content,n);else if(t.content instanceof Ge.KeyValuePair)a.content=hr(t.content,n);else if(Array.isArray(t.content)){const o=p=>hr(p,n);a.content=t.content.map(o)}else a.content=t.content;else a.content=t.content;return a}throw new LC("Value provided to cloneDeep function couldn't be cloned",{value:t})};hr.safe=t=>{try{return hr(t)}catch{return t}};const uS=t=>{const{key:e,value:r}=t;return new Ge.KeyValuePair(e,r)},pS=t=>{const e=new t.constructor;if(e.element=t.element,Gh(t)&&ob(e,t),t.meta.length>0&&(e._meta=hr(t.meta)),t.attributes.length>0&&(e._attributes=hr(t.attributes)),da(t.content)){const r=t.content;e.content=pS(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof Ge.KeyValuePair?e.content=uS(t.content):e.content=t.content;return e},no=t=>{if(t instanceof Ge.KeyValuePair)return uS(t);if(t instanceof Ge.ot)return(e=>{const r=[...e];return new Ge.ot(r)})(t);if(t instanceof Ge.G6)return(e=>{const r=[...e];return new Ge.G6(r)})(t);if(da(t))return pS(t);throw new $C("Value provided to cloneShallow function couldn't be cloned",{value:t})};no.safe=t=>{try{return no(t)}catch{return t}};const Xh=t=>hn(t)?"ObjectElement":vo(t)?"ArrayElement":Bs(t)?"MemberElement":Ir(t)?"StringElement":Ff(t)?"BooleanElement":eb(t)?"NumberElement":tb(t)?"NullElement":aS(t)?"LinkElement":oS(t)?"RefElement":void 0,hS=t=>da(t)?no(t):nb(t),dS=mo(Xh,Lp),Bl={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class fS{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=rb,returnOnTrue:r,returnOnFalse:n}={}){this.result=[],this.predicate=e,this.returnOnTrue=r,this.returnOnFalse=n}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const Pa=(t,e,{keyMap:r=Bl,...n}={})=>ab(t,e,{keyMap:r,nodeTypeGetter:Xh,nodePredicate:dS,nodeCloneFn:hS,...n});Pa[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=Bl,...n}={})=>ab[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:Xh,nodePredicate:dS,nodeCloneFn:hS,...n});const mS=t=>typeof t?.type=="string"?t.type:Xh(t),gS={EphemeralObject:["content"],EphemeralArray:["content"],...Bl},yS=(t,e,{keyMap:r=gS,...n}={})=>Pa(t,e,{keyMap:r,nodeTypeGetter:mS,nodePredicate:kc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});yS[Symbol.for("nodejs.util.promisify.custom")]=async(t,{keyMap:e=gS,...r}={})=>Pa[Symbol.for("nodejs.util.promisify.custom")](t,visitor,{keyMap:e,nodeTypeGetter:mS,nodePredicate:kc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const KC=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}},GC=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class YC{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const r=new GC(e.content);return this.references.set(e,r),r}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const r=new KC(e.content);return this.references.set(e,r),r}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...r){var n;const a=r[3];return((n=a[a.length-1])===null||n===void 0?void 0:n.type)==="EphemeralObject"?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Ir(e.href)?e.href.toValue():""}}const Et=t=>da(t)?Ir(t)||eb(t)||Ff(t)||tb(t)?t.toValue():yS(t,new YC):t,XC=ha((function(e,r,n){var a,o={};for(a in n=n||{},r=r||{})ts(a,r)&&(o[a]=ts(a,n)?e(a,r[a],n[a]):r[a]);for(a in n)ts(a,n)&&!ts(a,o)&&(o[a]=n[a]);return o})),QC=ha((function t(e,r,n){return XC((function(a,o,p){return my(o)&&my(p)?t(e,o,p):e(a,o,p)}),r,n)})),Py=Tr((function(e,r){return QC((function(n,a,o){return o}),e,r)})),ZC=kf(0,-1),ej=Tr((function(e,r){return e.apply(this,r)})),tj=If(Fp);var rj=_r((function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():Dl(e)?[]:Of(e)?"":my(e)?{}:oE(e)?(function(){return arguments})():(function(n){var a=Object.prototype.toString.call(n);return a==="[object Uint8ClampedArray]"||a==="[object Int8Array]"||a==="[object Uint8Array]"||a==="[object Int16Array]"||a==="[object Uint16Array]"||a==="[object Int32Array]"||a==="[object Uint32Array]"||a==="[object Float32Array]"||a==="[object Float64Array]"||a==="[object BigInt64Array]"||a==="[object BigUint64Array]"})(e)?e.constructor.from(""):void 0}));const nj=rj,Bf=_r((function(e){return e!=null&&Pu(e,nj(e))})),vS=ja(1,Fp(Array.isArray)?Array.isArray:mo(Fs,Dp("Array"))),aj=Rf(vS,Bf);var oj=ja(3,(function(t,e,r){var n=ro(t,r),a=ro(ZC(t),r);if(!tj(n)&&!aj(t)){var o=tE(n,a);return ej(o,e)}}));const qf=oj;class bS extends Ge.g${constructor(){super(),this.register("annotation",Oy),this.register("comment",ky),this.register("parseResult",$s)}}const ij=new bS,Ac=t=>{const e=new bS;return Ls(t)&&e.use(t),e},wS=ij,ES=()=>({predicates:{...B},namespace:wS}),SS={toolboxCreator:ES,visitorOptions:{nodeTypeGetter:Xh,exposeEdits:!0}},ql=(t,e,r={})=>{if(e.length===0)return t;const n=Py(SS,r),{toolboxCreator:a,visitorOptions:o}=n,p=a(),c=e.map((x=>x(p))),d=Cy(c.map(uy({},"visitor")),{...o});c.forEach(qf(["pre"],[]));const E=Pa(t,d,o);return c.forEach(qf(["post"],[])),E};ql[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,r={})=>{if(e.length===0)return t;const n=Py(SS,r),{toolboxCreator:a,visitorOptions:o}=n,p=a(),c=e.map((P=>P(p))),d=Cy[Symbol.for("nodejs.util.promisify.custom")],E=Pa[Symbol.for("nodejs.util.promisify.custom")],x=d(c.map(uy({},"visitor")),{...o});await Promise.allSettled(c.map(qf(["pre"],[])));const k=await E(t,x,o);return await Promise.allSettled(c.map(qf(["post"],[]))),k};const sj=(t,{Type:e,plugins:r=[]})=>{const n=new e(t);return da(t)&&(t.meta.length>0&&(n.meta=hr(t.meta)),t.attributes.length>0&&(n.attributes=hr(t.attributes))),ql(n,r,{toolboxCreator:ES,visitorOptions:{nodeTypeGetter:Xh}})},qs=t=>(e,r={})=>sj(e,{...r,Type:t});Ge.Sh.refract=qs(Ge.Sh),Ge.wE.refract=qs(Ge.wE),Ge.Om.refract=qs(Ge.Om),Ge.bd.refract=qs(Ge.bd),Ge.Os.refract=qs(Ge.Os),Ge.kT.refract=qs(Ge.kT),Ge.Ft.refract=qs(Ge.Ft),Ge.sI.refract=qs(Ge.sI),Oy.refract=qs(Oy),ky.refract=qs(ky),$s.refract=qs($s);const Ny=(t,e=new WeakMap)=>(Bs(t)?(e.set(t.key,t),Ny(t.key,e),e.set(t.value,t),Ny(t.value,e)):t.children.forEach((r=>{e.set(r,t),Ny(r,e)})),e),lj=class{element;edges;constructor({element:e}){this.element=e}transclude(e,r){var n;if(e===this.element)return r;if(e===r)return this.element;this.edges=(n=this.edges)!==null&&n!==void 0?n:Ny(this.element);const a=this.edges.get(e);return Iu(a)?void 0:(hn(a)?((o,p,c)=>{const d=c.get(o);hn(d)&&(d.content=d.map(((E,x,k)=>k===o?(c.delete(o),c.set(p,d),p):k)))})(e,r,this.edges):vo(a)?((o,p,c)=>{const d=c.get(o);vo(d)&&(d.content=d.map((E=>E===o?(c.delete(o),c.set(p,d),p):E)))})(e,r,this.edges):Bs(a)&&((o,p,c)=>{const d=c.get(o);Bs(d)&&(d.key===o&&(d.key=p,c.delete(o),c.set(p,d)),d.value===o&&(d.value=p,c.delete(o),c.set(p,d)))})(e,r,this.edges),this.element)}},rs=t=>{const e=t.indexOf("#");return(r=>{try{const n=r.startsWith("#")?r.slice(1):r;return decodeURIComponent(n)}catch{return r}})(e===-1?"#":t.substring(e))},ns=function(){const e=Br,r=Ni,n=this,a="parser.js: Parser(): ";n.ast=void 0,n.stats=void 0,n.trace=void 0,n.callbacks=[];let o,p,c,d,E,x,k,P=0,R=0,L=0,V=0,Q=0,J=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};n.parse=(ve,be,ce,_e)=>{const Ae=`${a}parse(): `;P=0,R=0,L=0,V=0,Q=0,o=void 0,p=void 0,c=void 0,d=void 0,J.refresh(),E=void 0,x=void 0,k=void 0,d=r.stringToChars(ce),o=ve.rules,p=ve.udts;const xe=be.toLowerCase();let Oe;for(const G in o)if(o.hasOwnProperty(G)&&xe===o[G].lower){Oe=o[G].index;break}if(Oe===void 0)throw new Error(`${Ae}start rule name '${startRule}' not recognized`);(()=>{const G=`${a}initializeCallbacks(): `;let de,Ne;for(E=[],x=[],de=0;de{if(be.phraseLength>ce){let Ae=`${a}opRNM(${ve.name}): callback function error: `;throw Ae+=`sysData.phraseLength: ${be.phraseLength}`,Ae+=` must be <= remaining chars: ${ce}`,new Error(Ae)}switch(be.state){case e.ACTIVE:if(!_e)throw new Error(`${a}opRNM(${ve.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:be.phraseLength=0;break;case e.MATCH:be.phraseLength===0&&(be.state=e.EMPTY);break;case e.NOMATCH:be.phraseLength=0;break;default:throw new Error(`${a}opRNM(${ve.name}): callback function return error. Unrecognized return state: ${be.state}`)}},me=(ve,be)=>{let ce,_e,Ae;const xe=c[ve],Oe=p[xe.index];J.UdtIndex=Oe.index,P||(Ae=n.ast&&n.ast.udtDefined(xe.index),Ae&&(_e=o.length+xe.index,ce=n.ast.getLength(),n.ast.down(_e,Oe.name)));const je=d.length-be;x[xe.index](J,d,be,k),((G,de,Ne)=>{if(de.phraseLength>Ne){let Ye=`${a}opUDT(${G.name}): callback function error: `;throw Ye+=`sysData.phraseLength: ${de.phraseLength}`,Ye+=` must be <= remaining chars: ${Ne}`,new Error(Ye)}switch(de.state){case e.ACTIVE:throw new Error(`${a}opUDT(${G.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!G.empty)throw new Error(`${a}opUDT(${G.name}) may not return EMPTY.`);de.phraseLength=0;break;case e.MATCH:if(de.phraseLength===0){if(!G.empty)throw new Error(`${a}opUDT(${G.name}) may not return EMPTY.`);de.state=e.EMPTY}break;case e.NOMATCH:de.phraseLength=0;break;default:throw new Error(`${a}opUDT(${G.name}): callback function return error. Unrecognized return state: ${de.state}`)}})(Oe,J,je),P||Ae&&(J.state===e.NOMATCH?n.ast.setLength(ce):n.ast.up(_e,Oe.name,be,J.phraseLength))},le=(ve,be)=>{const ce=`${a}opExecute(): `,_e=c[ve];switch(V+=1,R>L&&(L=R),R+=1,J.refresh(),n.trace&&n.trace.down(_e,be),_e.type){case e.ALT:((Ae,xe)=>{const Oe=c[Ae];for(let je=0;je{let Oe,je,G,de;const Ne=c[Ae];n.ast&&(je=n.ast.getLength()),Oe=!0,G=xe,de=0;for(let Ye=0;Ye{let Oe,je,G,de;const Ne=c[Ae];if(Ne.max===0)return J.state=e.EMPTY,void(J.phraseLength=0);for(je=xe,G=0,de=0,n.ast&&(Oe=n.ast.getLength());!(je>=d.length)&&(le(Ae+1,je),J.state!==e.NOMATCH)&&J.state!==e.EMPTY&&(de+=1,G+=J.phraseLength,je+=J.phraseLength,de!==Ne.max););J.state===e.EMPTY||de>=Ne.min?(J.state=G===0?e.EMPTY:e.MATCH,J.phraseLength=G):(J.state=e.NOMATCH,J.phraseLength=0,n.ast&&n.ast.setLength(Oe))})(ve,be);break;case e.RNM:((Ae,xe)=>{let Oe,je,G;const de=c[Ae],Ne=o[de.index],Ye=E[Ne.index];if(P||(je=n.ast&&n.ast.ruleDefined(de.index),je&&(Oe=n.ast.getLength(),n.ast.down(de.index,o[de.index].name))),Ye){const ht=d.length-xe;Ye(J,d,xe,k),re(Ne,J,ht,!0),J.state===e.ACTIVE&&(G=c,c=Ne.opcodes,le(0,xe),c=G,Ye(J,d,xe,k),re(Ne,J,ht,!1))}else G=c,c=Ne.opcodes,le(0,xe),c=G;P||je&&(J.state===e.NOMATCH?n.ast.setLength(Oe):n.ast.up(de.index,Ne.name,xe,J.phraseLength))})(ve,be);break;case e.TRG:((Ae,xe)=>{const Oe=c[Ae];J.state=e.NOMATCH,xe{const Oe=c[Ae],je=Oe.string.length;if(J.state=e.NOMATCH,xe+je<=d.length){for(let G=0;G{let Oe;const je=c[Ae];J.state=e.NOMATCH;const G=je.string.length;if(G!==0){if(xe+G<=d.length){for(let de=0;de=65&&Oe<=90&&(Oe+=32),Oe!==je.string[de])return;J.state=e.MATCH,J.phraseLength=G}}else J.state=e.EMPTY})(ve,be);break;case e.UDT:me(ve,be);break;case e.AND:((Ae,xe)=>{switch(P+=1,le(Ae+1,xe),P-=1,J.phraseLength=0,J.state){case e.EMPTY:case e.MATCH:J.state=e.EMPTY;break;case e.NOMATCH:J.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${J.state}`)}})(ve,be);break;case e.NOT:((Ae,xe)=>{switch(P+=1,le(Ae+1,xe),P-=1,J.phraseLength=0,J.state){case e.EMPTY:case e.MATCH:J.state=e.NOMATCH;break;case e.NOMATCH:J.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${J.state}`)}})(ve,be);break;default:throw new Error(`${ce}unrecognized operator`)}P||be+J.phraseLength>Q&&(Q=be+J.phraseLength),n.stats&&n.stats.collect(_e,J),n.trace&&n.trace.up(_e,J.state,be,J.phraseLength),R-=1}},ib=function(){const e=Br,r=Ni,n=this;let a,o,p,c=0;const d=[],E=[],x=[];function k(P){let R="";for(;P-- >0;)R+=" ";return R}n.callbacks=[],n.init=(P,R,L)=>{let V;E.length=0,x.length=0,c=0,a=P,o=R,p=L;const Q=[];for(V=0;V!!d[P],n.udtDefined=P=>!!d[a.length+P],n.down=(P,R)=>{const L=x.length;return E.push(L),x.push({name:R,thisIndex:L,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:P,phraseIndex:void 0,phraseLength:void 0,stack:E.length}),L},n.up=(P,R,L,V)=>{const Q=x.length,J=E.pop();return x.push({name:R,thisIndex:Q,thatIndex:J,state:e.SEM_POST,callbackIndex:P,phraseIndex:L,phraseLength:V,stack:E.length}),x[J].thatIndex=Q,x[J].phraseIndex=L,x[J].phraseLength=V,Q},n.translate=P=>{let R,L;for(let V=0;V{x.length=P,E.length=P>0?x[P-1].stack:0},n.getLength=()=>x.length,n.toXml=()=>{let P="",R=0;return P+=` +`,P+=` +`,P+=` +`,P+=k(R+2),P+=r.charsToString(p),P+=` +`,x.forEach((L=>{L.state===e.SEM_PRE?(R+=1,P+=k(R),P+=` +`,P+=k(R+2),P+=r.charsToString(p,L.phraseIndex,L.phraseLength),P+=` +`):(P+=k(R),P+=` +`,R-=1)})),P+=` +`,P}},cj=function(){const e=Br,r=Ni,n="parser.js: Trace(): ";let a,o,p,c="",d=0;const E=this,x=P=>{let R="",L=0;if(P>=0)for(;P--;)L+=1,L===5?(R+="|",L=0):R+=".";return R};E.init=(P,R,L)=>{o=P,p=R,a=L};const k=P=>{let R;switch(P.type){case e.ALT:R="ALT";break;case e.CAT:R="CAT";break;case e.REP:R=P.max===1/0?`REP(${P.min},inf)`:`REP(${P.min},${P.max})`;break;case e.RNM:R=`RNM(${o[P.index].name})`;break;case e.TRG:R=`TRG(${P.min},${P.max})`;break;case e.TBS:R=P.string.length>6?`TBS(${r.charsToString(P.string,0,3)}...)`:`TBS(${r.charsToString(P.string,0,6)})`;break;case e.TLS:R=P.string.length>6?`TLS(${r.charsToString(P.string,0,3)}...)`:`TLS(${r.charsToString(P.string,0,6)})`;break;case e.UDT:R=`UDT(${p[P.index].name})`;break;case e.AND:R="AND";break;case e.NOT:R="NOT";break;default:throw new Error(`${n}Trace: opName: unrecognized opcode`)}return R};E.down=(P,R)=>{const L=x(d),V=Math.min(100,a.length-R);let Q=r.charsToString(a,R,V);V{const Q=`${n}trace.up: `;d-=1;const J=x(d);let re,me,le;switch(R){case e.EMPTY:le="|E|",me="''";break;case e.MATCH:le="|M|",re=Math.min(100,V),me=rec},uj=function(){const e=Br;let r,n,a;const o=[],p=[],c=[];this.init=(V,Q)=>{r=V,n=Q,R()},this.collect=(V,Q)=>{L(a,Q.state,Q.phraseLength),L(o[V.type],Q.state,Q.phraseLength),V.type===e.RNM&&L(p[V.index],Q.state,Q.phraseLength),V.type===e.UDT&&L(c[V.index],Q.state,Q.phraseLength)},this.displayStats=()=>{let V="";const Q={match:0,empty:0,nomatch:0,total:0},J=(re,me,le,ve,be)=>(Q.match+=me,Q.empty+=le,Q.nomatch+=ve,Q.total+=be,`${re} | ${d(me)} | ${d(le)} | ${d(ve)} | ${d(be)} | +`);return V+=` OPERATOR STATS +`,V+=` | MATCH | EMPTY | NOMATCH | TOTAL | +`,V+=J(" ALT",o[e.ALT].match,o[e.ALT].empty,o[e.ALT].nomatch,o[e.ALT].total),V+=J(" CAT",o[e.CAT].match,o[e.CAT].empty,o[e.CAT].nomatch,o[e.CAT].total),V+=J(" REP",o[e.REP].match,o[e.REP].empty,o[e.REP].nomatch,o[e.REP].total),V+=J(" RNM",o[e.RNM].match,o[e.RNM].empty,o[e.RNM].nomatch,o[e.RNM].total),V+=J(" TRG",o[e.TRG].match,o[e.TRG].empty,o[e.TRG].nomatch,o[e.TRG].total),V+=J(" TBS",o[e.TBS].match,o[e.TBS].empty,o[e.TBS].nomatch,o[e.TBS].total),V+=J(" TLS",o[e.TLS].match,o[e.TLS].empty,o[e.TLS].nomatch,o[e.TLS].total),V+=J(" UDT",o[e.UDT].match,o[e.UDT].empty,o[e.UDT].nomatch,o[e.UDT].total),V+=J(" AND",o[e.AND].match,o[e.AND].empty,o[e.AND].nomatch,o[e.AND].total),V+=J(" NOT",o[e.NOT].match,o[e.NOT].empty,o[e.NOT].nomatch,o[e.NOT].total),V+=J("TOTAL",Q.match,Q.empty,Q.nomatch,Q.total),V},this.displayHits=V=>{let Q="";const J=(re,me,le,ve,be)=>(a.match+=re,a.empty+=me,a.nomatch+=le,a.total+=ve,`| ${d(re)} | ${d(me)} | ${d(le)} | ${d(ve)} | ${be} +`);typeof V=="string"&&V.toLowerCase()[0]==="a"?(p.sort(E),c.sort(E),Q+=` RULES/UDTS ALPHABETICALLY +`):typeof V=="string"&&V.toLowerCase()[0]==="i"?(p.sort(k),c.sort(k),Q+=` RULES/UDTS BY INDEX +`):(p.sort(x),c.sort(x),Q+=` RULES/UDTS BY HIT COUNT +`),Q+=`| MATCH | EMPTY | NOMATCH | TOTAL | NAME +`;for(let re=0;reV<10?` ${V}`:V<100?` ${V}`:V<1e3?` ${V}`:V<1e4?` ${V}`:V<1e5?` ${V}`:V<1e6?` ${V}`:`${V}`,E=(V,Q)=>V.lowerQ.lower?1:0,x=(V,Q)=>V.totalQ.total?-1:E(V,Q),k=(V,Q)=>V.indexQ.index?1:0,P=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},R=()=>{o.length=0,a=new P,o[e.ALT]=new P,o[e.CAT]=new P,o[e.REP]=new P,o[e.RNM]=new P,o[e.TRG]=new P,o[e.TBS]=new P,o[e.TLS]=new P,o[e.UDT]=new P,o[e.AND]=new P,o[e.NOT]=new P,p.length=0;for(let V=0;V0){c.length=0;for(let V=0;V{switch(V.total+=1,Q){case e.EMPTY:V.empty+=1;break;case e.MATCH:V.match+=1;break;case e.NOMATCH:V.nomatch+=1;break;default:throw new Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${Q}`)}}},Ni={stringToChars:t=>[...t].map((e=>e.codePointAt(0))),charsToString:(t,e,r)=>{let n=t;for(;!(e===void 0||e<0);){if(r===void 0){n=t.slice(e);break}if(r<=0)return"";n=t.slice(e,e+r);break}return String.fromCodePoint(...n)}},Br={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:t=>{switch(t){case Br.ALT:return"ALT";case Br.CAT:return"CAT";case Br.REP:return"REP";case Br.RNM:return"RNM";case Br.TRG:return"TRG";case Br.TBS:return"TBS";case Br.TLS:return"TLS";case Br.UDT:return"UDT";case Br.AND:return"AND";case Br.NOT:return"NOT";case Br.ACTIVE:return"ACTIVE";case Br.EMPTY:return"EMPTY";case Br.MATCH:return"MATCH";case Br.NOMATCH:return"NOMATCH";case Br.SEM_PRE:return"SEM_PRE";case Br.SEM_POST:return"SEM_POST";case Br.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Uf(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){return`; JavaScript Object Notation (JSON) Pointer ABNF syntax +; https://datatracker.ietf.org/doc/html/rfc6901 +json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used +reference-token = *( unescaped / escaped ) +unescaped = %x00-2E / %x30-7D / %x7F-10FFFF + ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped' +escaped = "~" ( "0" / "1" ) + ; representing '~' and '/', respectively + +; https://datatracker.ietf.org/doc/html/rfc6901#section-4 +array-location = array-index / array-dash +array-index = %x30 / ( %x31-39 *(%x30-39) ) + ; "0", or digits without a leading "0" +array-dash = "-" + +; Surrogate named rules +slash = "/" +`}}class pj extends Error{constructor(e,r=void 0){if(super(e,r),this.name=this.constructor.name,typeof e=="string"&&(this.message=e),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,r!=null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack} +CAUSE: ${n.stack}`)}if(r!=null&&typeof r=="object"){const{cause:n,...a}=r;Object.assign(this,a)}}}const Du=pj,xS=class extends Du{},sb=t=>(e,r,n,a,o)=>{if(typeof o!="object"||o===null||Array.isArray(o))throw new xS("parser's user data must be an object");if(e===Br.SEM_PRE){const p={type:t,text:Ni.charsToString(r,n,a),start:n,length:a,children:[]};o.stack.length>0?o.stack[o.stack.length-1].children.push(p):o.root=p,o.stack.push(p)}e===Br.SEM_POST&&o.stack.pop()},hj=class extends ib{constructor(){super(),this.callbacks["json-pointer"]=sb("json-pointer"),this.callbacks["reference-token"]=sb("reference-token"),this.callbacks.slash=sb("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}},dj=t=>{if(typeof t!="string")throw new TypeError("Reference token must be a string");return t.replace(/~1/g,"/").replace(/~0/g,"~")},fj=class extends hj{getTree(){const{root:e}=super.getTree();return e.children.filter((({type:r})=>r==="reference-token")).map((({text:r})=>dj(r)))}},mj=class extends Array{toString(){return this.map((e=>`"${String(e)}"`)).join(", ")}},gj=class extends cj{inferExpectations(){const e=this.displayTrace().split(` +`),r=new Set;let n=-1;for(let a=0;an){const p=o.match(/N\|\[TLS\(([^)]+)\)]/);p&&r.add(p[1])}}return new mj(...r)}},yj=new Uf,vj=(t,{translator:e=new fj,stats:r=!1,trace:n=!1}={})=>{if(typeof t!="string")throw new TypeError("JSON Pointer must be a string");try{const a=new ns;e&&(a.ast=e),r&&(a.stats=new uj),n&&(a.trace=new gj);const o=a.parse(yj,"json-pointer",t);return{result:o,tree:o.success&&e?a.ast.getTree():void 0,stats:a.stats,trace:a.trace}}catch(a){throw new xS("Unexpected error during JSON Pointer parsing",{cause:a,jsonPointer:t})}};new Uf,new ns,new Uf,new ns;const bj=new Uf,wj=new ns,Ej=t=>{if(typeof t!="string")return!1;try{return wj.parse(bj,"array-index",t).success}catch{return!1}},Sj=new Uf,xj=new ns,_j=t=>{if(typeof t!="string")return!1;try{return xj.parse(Sj,"array-dash",t).success}catch{return!1}},Oj=t=>{if(typeof t!="string"&&typeof t!="number")throw new TypeError("Reference token must be a string or number");return String(t).replace(/~/g,"~0").replace(/\//g,"~1")},kj=class extends Du{},_S=t=>{if(!Array.isArray(t))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return t.length===0?"":`/${t.map((e=>{if(typeof e!="string"&&typeof e!="number")throw new TypeError("Reference token must be a string or number");return Oj(String(e))})).join("/")}`}catch(e){throw new kj("Unexpected error during JSON Pointer compilation",{cause:e,referenceTokens:t})}},Aj=class{#e;#t;#r;constructor(e,r={}){this.#e=e,this.#e.steps=[],this.#e.failed=!1,this.#e.failedAt=-1,this.#e.message=`JSON Pointer "${r.jsonPointer}" was successfully evaluated against the provided value`,this.#e.context={...r,realm:r.realm.name},this.#t=[],this.#r=r.realm}step({referenceToken:e,input:r,output:n,success:a=!0,reason:o}){const p=this.#t.length;this.#t.push(e);const c={referenceToken:e,referenceTokenPosition:p,input:r,inputType:this.#r.isObject(r)?"object":this.#r.isArray(r)?"array":"unrecognized",output:n,success:a};o&&(c.reason=o),this.#e.steps.push(c),a||(this.#e.failed=!0,this.#e.failedAt=p,this.#e.message=o)}},OS=class{name="";isArray(e){throw new Du("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new Du("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new Du("Realm.sizeOf(node) must be implemented in a subclass")}has(e,r){throw new Du("Realm.has(node) must be implemented in a subclass")}evaluate(e,r){throw new Du("Realm.evaluate(node) must be implemented in a subclass")}},Bp=class extends Du{},Qh=class extends Bp{},Cj=class extends OS{name="json";isArray(e){return Array.isArray(e)}isObject(e){return typeof e=="object"&&e!==null&&!this.isArray(e)}sizeOf(e){return this.isArray(e)?e.length:this.isObject(e)?Object.keys(e).length:0}has(e,r){if(this.isArray(e)){const n=Number(r),a=n>>>0;if(n!==a)throw new Qh(`Invalid array index "${r}": index must be an unsinged 32-bit integer`,{referenceToken:r,currentValue:e,realm:this.name});return a{const{result:p,tree:c,trace:d}=vj(e,{trace:!!o}),E=typeof o=="object"&&o!==null?new Aj(o,{jsonPointer:e,referenceTokens:c,strictArrays:r,strictObjects:n,realm:a,value:t}):null;try{let x;if(!p.success){let k=`Invalid JSON Pointer: "${e}". Syntax error at position ${p.maxMatched}`;throw k+=d?`, expected ${d.inferExpectations()}`:"",new Bp(k,{jsonPointer:e,currentValue:t,realm:a.name})}return c.reduce(((k,P,R)=>{if(a.isArray(k)){if(_j(P)){if(r)throw new Qh(`Invalid array index "-" at position ${R} in "${e}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});return x=a.evaluate(k,String(a.sizeOf(k))),E?.step({referenceToken:P,input:k,output:x}),x}if(!Ej(P))throw new Qh(`Invalid array index "${P}" at position ${R} in "${e}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});const L=Number(P);if(!Number.isSafeInteger(L))throw new Qh(`Invalid array index "${P}" at position ${R} in "${e}": index must be a safe integer`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});if(!a.has(k,P)&&r)throw new Qh(`Invalid array index "${P}" at position ${R} in "${e}": index not found in array`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});return x=a.evaluate(k,P),E?.step({referenceToken:P,input:k,output:x}),x}if(a.isObject(k)){if(!a.has(k,P)&&n)throw new kS(`Invalid object key "${P}" at position ${R} in "${e}": key not found in object`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});return x=a.evaluate(k,P),E?.step({referenceToken:P,input:k,output:x}),x}throw new jj(`Invalid reference token "${P}" at position ${R} in "${e}": cannot be applied to a non-object/non-array value`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name})}),t)}catch(x){throw E?.step({referenceToken:x.referenceToken,input:x.currentValue,success:!1,reason:x.message}),x instanceof Bp?x:new Bp("Unexpected error during JSON Pointer evaluation",{cause:x,jsonPointer:e,referenceTokens:c})}},Nj=class extends OS{name="apidom";isArray(e){return vo(e)}isObject(e){return hn(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,r){if(this.isArray(e)){const n=Number(r),a=n>>>0;if(n!==a)throw new Qh(`Invalid array index "${r}": index must be an unsinged 32-bit integer`,{referenceToken:r,currentValue:e,realm:this.name});return aPj(t,e,{...r,realm:new Nj});class Tj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="callback"}}const zf=Tj;class Ij extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Vf=Ij;class Mj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Jf=Mj;class Rj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Wf=Rj;class Dj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const Ty=Dj;class Fj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Hf=Fj;class Lj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Kf=Lj;class AS extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Ge.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ge.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(AS.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});const Gf=AS;class $j extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Yf=$j;class Bj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Xf=Bj;class qj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,r;return Ir(this.operationRef)?(e=this.operationRef)===null||e===void 0?void 0:e.meta.get("operation"):Ir(this.operationId)?(r=this.operationId)===null||r===void 0?void 0:r.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const Qf=qj;class Uj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const Zf=Uj;class zj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Iy=zj;class Vj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const My=Vj;class Jj extends Ge.Om{constructor(e,r,n){super(e,r,n),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const em=Jj;class Wj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Ry=Wj;class Hj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ge.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const tm=Hj;class CS extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new Ge.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ge.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(CS.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});const rm=CS;class Kj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const nm=Kj;class Gj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="paths"}}const am=Gj;class Yj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const om=Yj;class Xj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new Ge.bd(!1)}set required(e){this.set("required",e)}}const im=Xj;class Qj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const sm=Qj;class Zj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const lm=Zj,Zr=class extends Mt{};class e3 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Zh=e3;class t3 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const ed=t3;class r3 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const cm=r3;class n3 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const um=n3,Dy=t=>{const e=t.meta.length>0?hr(t.meta):void 0,r=t.attributes.length>0?hr(t.attributes):void 0;return new t.constructor(void 0,e,r)},Fy=(t,e)=>e.clone&&e.isMergeableElement(t)?td(Dy(t),t,e):t,Ly={clone:!0,isMergeableElement:t=>hn(t)||vo(t),arrayElementMerge:(t,e,r)=>t.concat(e)["fantasy-land/map"]((n=>Fy(n,r))),objectElementMerge:(t,e,r)=>{const n=hn(t)?Dy(t):Dy(e);return hn(t)&&t.forEach(((a,o,p)=>{const c=no(p);c.value=Fy(a,r),n.content.push(c)})),e.forEach(((a,o,p)=>{const c=Et(o);let d;if(hn(t)&&t.hasKey(c)&&r.isMergeableElement(a)){const E=t.get(c);d=no(p),d.value=((x,k)=>{if(typeof k.customMerge!="function")return td;const P=k.customMerge(x,k);return typeof P=="function"?P:td})(o,r)(E,a,r)}else d=no(p),d.value=Fy(a,r);n.remove(c),n.content.push(d)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},td=(t,e,r)=>{var n,a,o;const p={...Ly,...r};p.isMergeableElement=(n=p.isMergeableElement)!==null&&n!==void 0?n:Ly.isMergeableElement,p.arrayElementMerge=(a=p.arrayElementMerge)!==null&&a!==void 0?a:Ly.arrayElementMerge,p.objectElementMerge=(o=p.objectElementMerge)!==null&&o!==void 0?o:Ly.objectElementMerge;const c=vo(e);if(c!==vo(t))return Fy(e,p);const d=c&&typeof p.arrayElementMerge=="function"?p.arrayElementMerge(t,e,p):p.objectElementMerge(t,e,p);return d.meta=(E=>typeof E.customMetaMerge!="function"?x=>hr(x):E.customMetaMerge)(p)(t.meta,e.meta),d.attributes=(E=>typeof E.customAttributesMerge!="function"?x=>hr(x):E.customAttributesMerge)(p)(t.attributes,e.attributes),d};td.all=(t,e)=>{if(!Array.isArray(t))throw new TypeError("First argument of deepmerge should be an array.");return t.length===0?new Ge.Sh:t.reduce(((r,n)=>td(r,n,e)),Dy(t[0]))};const qp=td,jS=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,r){(e.meta.length>0||r.meta.length>0)&&(r.meta=qp(r.meta,e.meta)),Gh(e)&&ob(r,e),(e.attributes.length>0||e.meta.length>0)&&(r.attributes=qp(r.attributes,e.attributes))}},gn=class extends jS{enter(e){return this.element=hr(e),on}},PS=(t,e,r=[])=>{const n=Object.getOwnPropertyDescriptors(e);for(let a of r)delete n[a];Object.defineProperties(t,n)},pm=(t,e=[t])=>{const r=Object.getPrototypeOf(t);return r===null?e:pm(r,[...e,r])},NS=(t,e,r=[])=>{var n;const a=(n=((...c)=>{if(c.length===0)return;let d;const E=c.map((x=>pm(x)));for(;E.every((x=>x.length>0));){const x=E.map((P=>P.pop())),k=x[0];if(!x.every((P=>P===k)))break;d=k}return d})(...t))!==null&&n!==void 0?n:Object.prototype,o=Object.create(a),p=pm(a);for(let c of t){let d=pm(c);for(let E=d.length-1;E>=0;E--){let x=d[E];p.indexOf(x)===-1&&(PS(o,x,["constructor",...r]),p.push(x))}}return o.constructor=e,o},lb=t=>t.filter(((e,r)=>t.indexOf(e)==r)),TS=new WeakMap,a3=t=>TS.get(t),IS=(t,e)=>{var r,n;const a=lb([...Object.getOwnPropertyNames(t),...Object.getOwnPropertyNames(e)]),o={};for(let p of a)o[p]=lb([...(r=t?.[p])!==null&&r!==void 0?r:[],...(n=e?.[p])!==null&&n!==void 0?n:[]]);return o},MS=(t,e)=>{var r,n,a,o;return{property:IS((r=t?.property)!==null&&r!==void 0?r:{},(n=e?.property)!==null&&n!==void 0?n:{}),method:IS((a=t?.method)!==null&&a!==void 0?a:{},(o=e?.method)!==null&&o!==void 0?o:{})}},o3=(t,e)=>{var r,n,a,o,p,c;return{class:lb([...(r=t?.class)!==null&&r!==void 0?r:[],...(n=e?.class)!==null&&n!==void 0?n:[]]),static:MS((a=t?.static)!==null&&a!==void 0?a:{},(o=e?.static)!==null&&o!==void 0?o:{}),instance:MS((p=t?.instance)!==null&&p!==void 0?p:{},(c=e?.instance)!==null&&c!==void 0?c:{})}},i3=new Map,s3=(...t)=>{const e=((...r)=>{var n;const a=new Set,o=new Set([...r]);for(;o.size>0;)for(let p of o){const c=pm(p.prototype).map((E=>E.constructor)),d=[...c,...(n=a3(p))!==null&&n!==void 0?n:[]].filter((E=>!a.has(E)));for(let E of d)o.add(E);a.add(p),o.delete(p)}return[...a]})(...t).map((r=>i3.get(r))).filter((r=>!!r));return e.length==0?{}:e.length==1?e[0]:e.reduce(((r,n)=>o3(r,n)))};function Vt(...t){var e,r,n;const a=t.map((E=>E.prototype));function o(...E){for(const x of t)PS(this,new x(...E))}o.prototype=NS(a,o),Object.setPrototypeOf(o,NS(t,null,["prototype"]));let p=o;{const E=s3(...t);for(let x of(e=E?.class)!==null&&e!==void 0?e:[]){const k=x(p);k&&(p=k)}RS((r=E?.static)!==null&&r!==void 0?r:{},p),RS((n=E?.instance)!==null&&n!==void 0?n:{},p.prototype)}var c,d;return c=p,d=t,TS.set(c,d),p}const RS=(t,e)=>{const r=t.property,n=t.method;if(r)for(let a in r)for(let o of r[a])o(e,a);if(n)for(let a in n)for(let o of n[a])o(e,a,Object.getOwnPropertyDescriptor(e,a))},l3=_r((function(e){return ja(Vh(fE,0,mE("length",e)),(function(){for(var r=0,n=e.length;r{if(Ir(o)&&n.includes(Et(o))&&!this.ignoredFields.includes(Et(o))){const c=this.toRefractedElement([...r,"fixedFields",Et(o)],a),d=new Ge.Pr(hr(o),c);this.copyMetaAndAttributes(p,d),d.classes.push("fixed-field"),this.element.content.push(d)}else this.ignoredFields.includes(Et(o))||this.element.content.push(hr(p))})),this.copyMetaAndAttributes(e,this.element),on}},Na=class{parent;constructor({parent:e}){this.parent=e}},LS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zh||t(n)&&e("JSONSchemaDraft4",n)&&r("object",n))),cb=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ed||t(n)&&e("JSONReference",n)&&r("object",n))),$S=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cm||t(n)&&e("media",n)&&r("object",n))),p3=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof um||t(n)&&e("linkDescription",n)&&r("object",n)));class h3 extends Vt(Up,Na,gn){constructor(e){super(e),this.element=new Zh,this.specPath=jr(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,Up.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Iu(this.parent)&&!Ir(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(LS(this.parent)&&!Ir(e.get("$schema"))){const r=Jh(Et(this.parent.meta.get("inheritedDialectIdentifier")),Et(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",r)}}handleSchemaIdentifier(e,r="id"){const n=this.parent!==void 0?hr(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new Ge.wE,a=Et(e.get(r));$y(a)&&n.push(a),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}}const BS=h3,Ul=t=>hn(t)&&t.hasKey("$ref");class d3 extends Vt(Ti,Na,gn){ObjectElement(e){const r=Ul(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(r,e),on}ArrayElement(e){return this.element=new Ge.wE,this.element.classes.push("json-schema-items"),e.forEach((r=>{const n=Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const qS=d3,f3=class extends gn{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-required"),r}},m3=class extends Ti{specPath;ignoredFields;fieldPatternPredicate=rb;constructor({specPath:e,ignoredFields:r,fieldPatternPredicate:n,...a}){super({...a}),this.specPath=e,this.ignoredFields=r||[],typeof n=="function"&&(this.fieldPatternPredicate=n)}ObjectElement(e){return e.forEach(((r,n,a)=>{if(!this.ignoredFields.includes(Et(n))&&this.fieldPatternPredicate(Et(n))){const o=this.specPath(r),p=this.toRefractedElement(o,r),c=new Ge.Pr(hr(n),p);this.copyMetaAndAttributes(a,c),c.classes.push("patterned-field"),this.element.content.push(c)}else this.ignoredFields.includes(Et(n))||this.element.content.push(hr(a))})),this.copyMetaAndAttributes(e,this.element),on}},Fu=class extends m3{constructor(e){super(e),this.fieldPatternPredicate=$y}};class g3 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-properties"),this.specPath=r=>Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const y3=g3;class v3 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=r=>Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const b3=v3;class w3 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=r=>Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const E3=w3,S3=class extends gn{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-enum"),r}},x3=class extends gn{StringElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-type"),r}ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-type"),r}};class _3 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((r=>{const n=Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const O3=_3;class k3 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((r=>{const n=Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const A3=k3;class C3 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((r=>{const n=Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const j3=C3;class P3 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=r=>Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const N3=P3;class T3 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","LinkDescription"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const I3=T3;class M3 extends Vt(Up,gn){constructor(e){super(e),this.element=new ed,this.specPath=jr(["document","objects","JSONReference"])}ObjectElement(e){const r=Up.prototype.ObjectElement.call(this,e);return Ir(this.element.$ref)&&this.element.classes.push("reference-element"),r}}const R3=M3,D3=class extends gn{StringElement(e){const r=this.enter(e);return this.element.classes.push("reference-value"),r}},ub=ha((function(e,r,n){return ja(Math.max(e.length,r.length,n.length),(function(){return e.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)}))})),F3=_r((function(e){return function(r,n){return e(r,n)?-1:e(n,r)?1:0}}));var L3=Tr((function(e,r){return Array.prototype.slice.call(r,0).sort(e)}));const $3=L3;var B3=_r((function(t){return cy(0,t)}));const q3=B3,U3=_r(_y),z3=If(jy),V3=Rf(vS,DS);function J3(t){return(function(r){if(Array.isArray(r))return pb(r)})(t)||(function(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)})(t)||(function(r,n){if(r){if(typeof r=="string")return pb(r,n);var a={}.toString.call(r).slice(8,-1);return a==="Object"&&r.constructor&&(a=r.constructor.name),a==="Map"||a==="Set"?Array.from(r):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?pb(r,n):void 0}})(t)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function pb(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);re.length}))),q3,Af("length")),H3=E0((function(t,e,r){var n=r.apply(void 0,J3(t));return z3(n)?U3(n):e}));const US=ub(V3,(function(e){var r=W3(e);return ja(r,(function(){for(var n=arguments.length,a=new Array(n),o=0;oub(a,jr(o),vy))),n=US(r)(e);return this.element=this.toRefractedElement(n,e),on}},rd=class extends K3{constructor(e){super(e),this.alternator=[{predicate:Ul,specPath:["document","objects","JSONReference"]},{predicate:kc,specPath:["document","objects","JSONSchema"]}]}};class G3 extends Vt(Up,gn){constructor(e){super(e),this.element=new cm,this.specPath=jr(["document","objects","Media"])}}const Y3=G3;class X3 extends Vt(Up,gn){constructor(e){super(e),this.element=new um,this.specPath=jr(["document","objects","LinkDescription"])}}const zS=X3,bo={visitors:{value:gn,JSONSchemaOrJSONReferenceVisitor:rd,document:{objects:{JSONSchema:{$visitor:BS,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:rd,items:qS,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:f3,properties:y3,additionalProperties:rd,patternProperties:b3,dependencies:E3,enum:S3,type:x3,allOf:O3,anyOf:A3,oneOf:j3,not:rd,definitions:N3,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:I3,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:R3,fixedFields:{$ref:D3}},Media:{$visitor:Y3,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:zS,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:rd,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:rd}}}}}},hm=t=>{if(da(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},Q3={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Bl},Z3={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft4",Zh),e.register("jSONReference",ed),e.register("media",cm),e.register("linkDescription",um),e}},eP=Z3,tP=()=>{const t=Ac(eP);return{predicates:{...X,isStringElement:Ir},namespace:t}},rP=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=bo}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:tP,visitorOptions:{keyMap:Q3,nodeTypeGetter:hm}})},By=t=>(e,r={})=>rP(e,{specPath:t,...r});Zh.refract=By(["visitors","document","objects","JSONSchema","$visitor"]),ed.refract=By(["visitors","document","objects","JSONReference","$visitor"]),cm.refract=By(["visitors","document","objects","Media","$visitor"]),um.refract=By(["visitors","document","objects","LinkDescription","$visitor"]);const qy=class extends Zh{constructor(e,r,n){super(e,r,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Zr("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Zr("idProp setter in Schema class is not not supported.")}get $schema(){throw new Zr("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Zr("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new Zr("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Zr("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Zr("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Zr("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new Zr("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Zr("definitions setter in Schema class is not not supported.")}get base(){throw new Zr("base getter in Schema class is not not supported.")}set base(e){throw new Zr("base setter in Schema class is not not supported.")}get links(){throw new Zr("links getter in Schema class is not not supported.")}set links(e){throw new Zr("links setter in Schema class is not not supported.")}get media(){throw new Zr("media getter in Schema class is not not supported.")}set media(e){throw new Zr("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class nP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="securityRequirement"}}const dm=nP;class aP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const fm=aP;class oP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const mm=oP;class iP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const gm=iP;class sP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Uy=sP;class lP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const zy=lP,VS=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,r){(e.meta.length>0||r.meta.length>0)&&(r.meta=qp(r.meta,e.meta)),Gh(e)&&ob(r,e),(e.attributes.length>0||e.meta.length>0)&&(r.attributes=qp(r.attributes,e.attributes))}},er=class extends VS{enter(e){return this.element=hr(e),on}},zs=class extends VS{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:r,openApiGenericElement:n,openApiSemanticElement:a,...o}){super({...o}),this.specObj=e,this.openApiGenericElement=n,this.openApiSemanticElement=a,Array.isArray(r)&&(this.passingOptionsNames=r)}retrievePassingOptions(){return FS(this.passingOptionsNames,this)}retrieveFixedFields(e){const r=ro(["visitors",...e,"fixedFields"],this.specObj);return typeof r=="object"&&r!==null?Object.keys(r):[]}retrieveVisitor(e){return W0(Fp,["visitors",...e],this.specObj)?ro(["visitors",...e],this.specObj):ro(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,r={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...r})}toRefractedElement(e,r,n={}){const a=this.retrieveVisitorInstance(e,n);return a instanceof er&&a?.constructor===er?hr(r):(Pa(r,a,n),a.element)}};var cP=(function(){function t(e,r){this.xf=r,this.n=e,this.i=0}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=Nf,t.prototype["@@transducer/step"]=function(e,r){this.i+=1;var n=this.n===0?e:this.xf["@@transducer/step"](e,r);return this.n>=0&&this.i>=this.n?_y(n):n},t})();function uP(t){return function(e){return new cP(t,e)}}const pP=Tr(Nu(["take"],uP,(function(e,r){return kf(0,e<0?1/0:e,r)})));var hP=Tr((function(t,e){return Pu(pP(t.length,e),t)}));const dP=hP,Vn=t=>hn(t)&&t.hasKey("$ref"),fP=hn,mP=hn,JS=t=>Ir(t.key)&&dP("x-",Et(t.key)),Jr=class extends zs{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=JS;constructor({specPath:e,ignoredFields:r,canSupportSpecificationExtensions:n,specificationExtensionPredicate:a,...o}){super({...o}),this.specPath=e,this.ignoredFields=r||[],typeof n=="boolean"&&(this.canSupportSpecificationExtensions=n),typeof a=="function"&&(this.specificationExtensionPredicate=a)}ObjectElement(e){const r=this.specPath(e),n=this.retrieveFixedFields(r);return e.forEach(((a,o,p)=>{if(Ir(o)&&n.includes(Et(o))&&!this.ignoredFields.includes(Et(o))){const c=this.toRefractedElement([...r,"fixedFields",Et(o)],a),d=new Ge.Pr(hr(o),c);this.copyMetaAndAttributes(p,d),d.classes.push("fixed-field"),this.element.content.push(d)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(p)){const c=this.toRefractedElement(["document","extension"],p);this.element.content.push(c)}else this.ignoredFields.includes(Et(o))||this.element.content.push(hr(p))})),this.copyMetaAndAttributes(e,this.element),on}};class gP extends Vt(Jr,er){constructor(e){super(e),this.element=new Ry,this.specPath=jr(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Jr.prototype.ObjectElement.call(this,e)}}const yP=gP;class vP extends Vt(zs,er){StringElement(e){const r=new em(Et(e));return this.copyMetaAndAttributes(e,r),this.element=r,on}}const bP=vP,wP=class extends zs{MemberElement(e){return this.element=hr(e),this.element.classes.push("specification-extension"),on}};class EP extends Vt(Jr,er){constructor(e){super(e),this.element=new Yf,this.specPath=jr(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const SP=EP,xP=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),r}};class _P extends Vt(Jr,er){constructor(e){super(e),this.element=new Jf,this.specPath=jr(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const OP=_P;class kP extends Vt(Jr,er){constructor(e){super(e),this.element=new Xf,this.specPath=jr(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const AP=kP;class CP extends Vt(Jr,er){constructor(e){super(e),this.element=new Qf,this.specPath=jr(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return(Ir(this.element.operationId)||Ir(this.element.operationRef))&&this.element.classes.push("reference-element"),r}}const jP=CP,PP=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}},NP=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}},nd=class extends zs{specPath;ignoredFields;fieldPatternPredicate=rb;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=JS;constructor({specPath:e,ignoredFields:r,fieldPatternPredicate:n,canSupportSpecificationExtensions:a,specificationExtensionPredicate:o,...p}){super({...p}),this.specPath=e,this.ignoredFields=r||[],typeof n=="function"&&(this.fieldPatternPredicate=n),typeof a=="boolean"&&(this.canSupportSpecificationExtensions=a),typeof o=="function"&&(this.specificationExtensionPredicate=o)}ObjectElement(e){return e.forEach(((r,n,a)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(a)){const o=this.toRefractedElement(["document","extension"],a);this.element.content.push(o)}else if(!this.ignoredFields.includes(Et(n))&&this.fieldPatternPredicate(Et(n))){const o=this.specPath(r),p=this.toRefractedElement(o,r),c=new Ge.Pr(hr(n),p);this.copyMetaAndAttributes(a,c),c.classes.push("patterned-field"),this.element.content.push(c)}else this.ignoredFields.includes(Et(n))||this.element.content.push(hr(a))})),this.copyMetaAndAttributes(e,this.element),on}},Ur=class extends nd{constructor(e){super(e),this.fieldPatternPredicate=$y}};class hb extends Ge.Sh{static primaryClass="link-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(hb.primaryClass)}}const TP=hb;class IP extends Vt(Ur,er){constructor(e){super(e),this.element=new TP,this.specPath=jr(["value"])}}const MP=IP;class RP extends Vt(Jr,er){constructor(e){super(e),this.element=new mm,this.specPath=jr(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const DP=RP,FP=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("server-url"),r}};class db extends Ge.wE{static primaryClass="servers";constructor(e,r,n){super(e,r,n),this.classes.push(db.primaryClass)}}const WS=db;class LP extends Vt(zs,er){constructor(e){super(e),this.element=new WS}ArrayElement(e){return e.forEach((r=>{const n=fP(r)?["document","objects","Server"]:["value"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const fb=LP;class $P extends Vt(Jr,er){constructor(e){super(e),this.element=new gm,this.specPath=jr(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const BP=$P;class mb extends Ge.Sh{static primaryClass="server-variables";constructor(e,r,n){super(e,r,n),this.classes.push(mb.primaryClass)}}const qP=mb;class UP extends Vt(Ur,er){constructor(e){super(e),this.element=new qP,this.specPath=jr(["document","objects","ServerVariable"])}}const zP=UP;class VP extends Vt(Jr,er){constructor(e){super(e),this.element=new Zf,this.specPath=jr(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const JP=VP,zl=class extends zs{alternator;constructor({alternator:e,...r}){super({...r}),this.alternator=e||[]}enter(e){const r=this.alternator.map((({predicate:a,specPath:o})=>ub(a,jr(o),vy))),n=US(r)(e);return this.element=this.toRefractedElement(n,e),on}},WP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof zf||t(n)&&e("callback",n)&&r("object",n))),HP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Vf||t(n)&&e("components",n)&&r("object",n))),KP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Jf||t(n)&&e("contact",n)&&r("object",n))),GP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Hf||t(n)&&e("example",n)&&r("object",n))),YP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Kf||t(n)&&e("externalDocumentation",n)&&r("object",n))),ad=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Gf||t(n)&&e("header",n)&&r("object",n))),XP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Yf||t(n)&&e("info",n)&&r("object",n))),QP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xf||t(n)&&e("license",n)&&r("object",n))),ZP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qf||t(n)&&e("link",n)&&r("object",n))),eN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof em||t(n)&&e("openapi",n)&&r("string",n))),tN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>a=>a instanceof Ry||t(a)&&e("openApi3_0",a)&&r("object",a)&&n("api",a))),HS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof tm||t(n)&&e("operation",n)&&r("object",n))),rN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof rm||t(n)&&e("parameter",n)&&r("object",n))),gb=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof nm||t(n)&&e("pathItem",n)&&r("object",n))),nN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof am||t(n)&&e("paths",n)&&r("object",n))),Mn=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof om||t(n)&&e("reference",n)&&r("object",n))),aN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof im||t(n)&&e("requestBody",n)&&r("object",n))),Vy=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof sm||t(n)&&e("response",n)&&r("object",n))),oN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof lm||t(n)&&e("responses",n)&&r("object",n))),iN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof qy||t(n)&&e("schema",n)&&r("object",n))),sN=t=>Ff(t)&&t.classes.includes("boolean-json-schema"),lN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof dm||t(n)&&e("securityRequirement",n)&&r("object",n))),cN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fm||t(n)&&e("securityScheme",n)&&r("object",n))),uN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof mm||t(n)&&e("server",n)&&r("object",n))),pN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof gm||t(n)&&e("serverVariable",n)&&r("object",n))),Jy=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zf||t(n)&&e("mediaType",n)&&r("object",n))),KS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>a=>a instanceof WS||t(a)&&e("array",a)&&r("array",a)&&n("servers",a))),hN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Wf||t(n)&&e("discriminator",n)&&r("object",n)));class dN extends Vt(zl,er){constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const fN=dN;class mN extends Vt(Ur,er){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("examples"),this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","example")})),r}}const yb=mN;class vb extends Ge.Sh{static primaryClass="media-type-examples";constructor(e,r,n){super(e,r,n),this.classes.push(vb.primaryClass),this.classes.push("examples")}}const gN=vb,yN=class extends yb{constructor(e){super(e),this.element=new gN}};class bb extends Ge.Sh{static primaryClass="media-type-encoding";constructor(e,r,n){super(e,r,n),this.classes.push(bb.primaryClass)}}const vN=bb;class bN extends Vt(Ur,er){constructor(e){super(e),this.element=new vN,this.specPath=jr(["document","objects","Encoding"])}}const wN=bN;class EN extends Vt(Ur,er){constructor(e){super(e),this.element=new dm,this.specPath=jr(["value"])}}const SN=EN;class wb extends Ge.wE{static primaryClass="security";constructor(e,r,n){super(e,r,n),this.classes.push(wb.primaryClass)}}const xN=wb;class _N extends Vt(zs,er){constructor(e){super(e),this.element=new xN}ArrayElement(e){return e.forEach((r=>{if(hn(r)){const n=this.toRefractedElement(["document","objects","SecurityRequirement"],r);this.element.push(n)}else this.element.push(hr(r))})),this.copyMetaAndAttributes(e,this.element),on}}const ON=_N;class kN extends Vt(Jr,er){constructor(e){super(e),this.element=new Vf,this.specPath=jr(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const AN=kN;class CN extends Vt(Jr,er){constructor(e){super(e),this.element=new Uy,this.specPath=jr(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const jN=CN;class PN extends Vt(Jr,er){constructor(e){super(e),this.element=new om,this.specPath=jr(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return Ir(this.element.$ref)&&this.element.classes.push("reference-element"),r}}const NN=PN,TN=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}};class IN extends Vt(Jr,er){constructor(e){super(e),this.element=new rm,this.specPath=jr(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return hn(this.element.contentProp)&&this.element.contentProp.filter(Jy).forEach(((n,a)=>{n.setMetaProperty("media-type",Et(a))})),r}}const MN=IN;class RN extends Vt(zl,er){constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const DN=RN;class FN extends Vt(Jr,er){constructor(e){super(e),this.element=new Gf,this.specPath=jr(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const LN=FN;class $N extends Vt(zl,er){constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const BN=$N;class Eb extends Ge.Sh{static primaryClass="header-examples";constructor(e,r,n){super(e,r,n),this.classes.push(Eb.primaryClass),this.classes.push("examples")}}const qN=Eb,UN=class extends yb{constructor(e){super(e),this.element=new qN}};class zN extends Vt(Ur,er){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("content"),this.specPath=jr(["document","objects","MediaType"])}}const Wy=zN;class Sb extends Ge.Sh{static primaryClass="header-content";constructor(e,r,n){super(e,r,n),this.classes.push(Sb.primaryClass),this.classes.push("content")}}const VN=Sb,JN=class extends Wy{constructor(e){super(e),this.element=new VN}};class WN extends Vt(Jr,er){constructor(e){super(e),this.element=new qy,this.specPath=jr(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const HN=WN,GS=bo.visitors.document.objects.JSONSchema.fixedFields.allOf,KN=class extends GS{ArrayElement(e){const r=GS.prototype.ArrayElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}},YS=bo.visitors.document.objects.JSONSchema.fixedFields.anyOf,GN=class extends YS{ArrayElement(e){const r=YS.prototype.ArrayElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}},XS=bo.visitors.document.objects.JSONSchema.fixedFields.oneOf,YN=class extends XS{ArrayElement(e){const r=XS.prototype.ArrayElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}},QS=bo.visitors.document.objects.JSONSchema.fixedFields.items,XN=class extends QS{ObjectElement(e){const r=QS.prototype.ObjectElement.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}ArrayElement(e){return this.enter(e)}},ZS=bo.visitors.document.objects.JSONSchema.fixedFields.properties,QN=class extends ZS{ObjectElement(e){const r=ZS.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}},ZN=bo.visitors.document.objects.JSONSchema.fixedFields.type,eT=class extends ZN{ArrayElement(e){return this.enter(e)}},e2=bo.visitors.JSONSchemaOrJSONReferenceVisitor,t2=class extends e2{ObjectElement(e){const r=e2.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}};class tT extends Vt(Jr,er){constructor(e){super(e),this.element=new Wf,this.specPath=jr(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const rT=tT;class xb extends Ge.Sh{static primaryClass="discriminator-mapping";constructor(e,r,n){super(e,r,n),this.classes.push(xb.primaryClass)}}const nT=xb;class aT extends Vt(Ur,er){constructor(e){super(e),this.element=new nT,this.specPath=jr(["value"])}}const oT=aT;class iT extends Vt(Jr,er){constructor(e){super(e),this.element=new zy,this.specPath=jr(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const sT=iT;class _b extends Ge.Sh{static primaryClass="parameter-examples";constructor(e,r,n){super(e,r,n),this.classes.push(_b.primaryClass),this.classes.push("examples")}}const lT=_b,cT=class extends yb{constructor(e){super(e),this.element=new lT}};class Ob extends Ge.Sh{static primaryClass="parameter-content";constructor(e,r,n){super(e,r,n),this.classes.push(Ob.primaryClass),this.classes.push("content")}}const uT=Ob,pT=class extends Wy{constructor(e){super(e),this.element=new uT}};class kb extends Ge.Sh{static primaryClass="components-schemas";constructor(e,r,n){super(e,r,n),this.classes.push(kb.primaryClass)}}const r2=kb;class hT extends Vt(Ur,er){constructor(e){super(e),this.element=new r2,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}}const dT=hT;class Ab extends Ge.Sh{static primaryClass="components-responses";constructor(e,r,n){super(e,r,n),this.classes.push(Ab.primaryClass)}}const fT=Ab;class mT extends Vt(Ur,er){constructor(e){super(e),this.element=new fT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","response")})),this.element.filter(Vy).forEach(((n,a)=>{n.setMetaProperty("http-status-code",Et(a))})),r}}const gT=mT;class Cb extends Ge.Sh{static primaryClass="components-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(Cb.primaryClass),this.classes.push("parameters")}}const yT=Cb;class vT extends Vt(Ur,er){constructor(e){super(e),this.element=new yT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","parameter")})),r}}const bT=vT;class jb extends Ge.Sh{static primaryClass="components-examples";constructor(e,r,n){super(e,r,n),this.classes.push(jb.primaryClass),this.classes.push("examples")}}const wT=jb;class ET extends Vt(Ur,er){constructor(e){super(e),this.element=new wT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","example")})),r}}const ST=ET;class Pb extends Ge.Sh{static primaryClass="components-request-bodies";constructor(e,r,n){super(e,r,n),this.classes.push(Pb.primaryClass)}}const xT=Pb;class _T extends Vt(Ur,er){constructor(e){super(e),this.element=new xT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","requestBody")})),r}}const OT=_T;class Nb extends Ge.Sh{static primaryClass="components-headers";constructor(e,r,n){super(e,r,n),this.classes.push(Nb.primaryClass)}}const kT=Nb;class AT extends Vt(Ur,er){constructor(e){super(e),this.element=new kT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","header")})),this.element.filter(ad).forEach(((n,a)=>{n.setMetaProperty("header-name",Et(a))})),r}}const CT=AT;class Tb extends Ge.Sh{static primaryClass="components-security-schemes";constructor(e,r,n){super(e,r,n),this.classes.push(Tb.primaryClass)}}const jT=Tb;class PT extends Vt(Ur,er){constructor(e){super(e),this.element=new jT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","securityScheme")})),r}}const NT=PT;class Ib extends Ge.Sh{static primaryClass="components-links";constructor(e,r,n){super(e,r,n),this.classes.push(Ib.primaryClass)}}const TT=Ib;class IT extends Vt(Ur,er){constructor(e){super(e),this.element=new TT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","link")})),r}}const MT=IT;class Mb extends Ge.Sh{static primaryClass="components-callbacks";constructor(e,r,n){super(e,r,n),this.classes.push(Mb.primaryClass)}}const RT=Mb;class DT extends Vt(Ur,er){constructor(e){super(e),this.element=new RT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","callback")})),r}}const FT=DT;class LT extends Vt(Jr,er){constructor(e){super(e),this.element=new Hf,this.specPath=jr(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return Ir(this.element.externalValue)&&this.element.classes.push("reference-element"),r}}const $T=LT,BT=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}};class qT extends Vt(Jr,er){constructor(e){super(e),this.element=new Kf,this.specPath=jr(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const UT=qT;class zT extends Vt(Jr,er){constructor(e){super(e),this.element=new Ty,this.specPath=jr(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return hn(this.element.headers)&&this.element.headers.filter(ad).forEach(((n,a)=>{n.setMetaProperty("header-name",Et(a))})),r}}const VT=zT;class Rb extends Ge.Sh{static primaryClass="encoding-headers";constructor(e,r,n){super(e,r,n),this.classes.push(Rb.primaryClass)}}const JT=Rb;class WT extends Vt(Ur,er){constructor(e){super(e),this.element=new JT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","header")})),this.element.forEach(((n,a)=>{if(!ad(n))return;const o=Et(a);n.setMetaProperty("headerName",o)})),r}}const HT=WT;class KT extends Vt(nd,er){constructor(e){super(e),this.element=new am,this.specPath=jr(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=kc}ObjectElement(e){const r=nd.prototype.ObjectElement.call(this,e);return this.element.filter(gb).forEach(((n,a)=>{a.classes.push("openapi-path-template"),a.classes.push("path-template"),n.setMetaProperty("path",hr(a))})),r}}const GT=KT;class YT extends Vt(Jr,er){constructor(e){super(e),this.element=new im,this.specPath=jr(["document","objects","RequestBody"])}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return hn(this.element.contentProp)&&this.element.contentProp.filter(Jy).forEach(((n,a)=>{n.setMetaProperty("media-type",Et(a))})),r}}const XT=YT;class Db extends Ge.Sh{static primaryClass="request-body-content";constructor(e,r,n){super(e,r,n),this.classes.push(Db.primaryClass),this.classes.push("content")}}const QT=Db,ZT=class extends Wy{constructor(e){super(e),this.element=new QT}};class e6 extends Vt(nd,er){constructor(e){super(e),this.element=new zf,this.specPath=jr(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=r=>/{(?[^}]{1,2083})}/.test(String(r))}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(gb).forEach(((n,a)=>{n.setMetaProperty("runtime-expression",Et(a))})),r}}const t6=e6;class r6 extends Vt(Jr,er){constructor(e){super(e),this.element=new sm,this.specPath=jr(["document","objects","Response"])}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return hn(this.element.contentProp)&&this.element.contentProp.filter(Jy).forEach(((n,a)=>{n.setMetaProperty("media-type",Et(a))})),hn(this.element.headers)&&this.element.headers.filter(ad).forEach(((n,a)=>{n.setMetaProperty("header-name",Et(a))})),r}}const n6=r6;class Fb extends Ge.Sh{static primaryClass="response-headers";constructor(e,r,n){super(e,r,n),this.classes.push(Fb.primaryClass)}}const a6=Fb;class o6 extends Vt(Ur,er){constructor(e){super(e),this.element=new a6,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","header")})),this.element.forEach(((n,a)=>{if(!ad(n))return;const o=Et(a);n.setMetaProperty("header-name",o)})),r}}const i6=o6;class Lb extends Ge.Sh{static primaryClass="response-content";constructor(e,r,n){super(e,r,n),this.classes.push(Lb.primaryClass),this.classes.push("content")}}const s6=Lb,l6=class extends Wy{constructor(e){super(e),this.element=new s6}};class $b extends Ge.Sh{static primaryClass="response-links";constructor(e,r,n){super(e,r,n),this.classes.push($b.primaryClass)}}const c6=$b;class u6 extends Vt(Ur,er){constructor(e){super(e),this.element=new c6,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","link")})),r}}const p6=u6;function n2(t){return Object.prototype.toString.call(t)==="[object Number]"}var h6=Tr((function(e,r){if(!n2(e)||!n2(r))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(eVn(r)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=r=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${d6(100,600).join("|")})$`).test(String(r))}ObjectElement(e){const r=o2.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","response")})),this.element.filter(Vy).forEach(((n,a)=>{const o=hr(a);this.fieldPatternPredicate(Et(o))&&n.setMetaProperty("http-status-code",o)})),r}}const b6=v6;class w6 extends Vt(zl,er){constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","Response"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)?this.element.setMetaProperty("referenced-element","response"):Vy(this.element)&&this.element.setMetaProperty("http-status-code","default"),r}}const E6=w6;class S6 extends Vt(Jr,er){constructor(e){super(e),this.element=new tm,this.specPath=jr(["document","objects","Operation"])}}const x6=S6;class Bb extends Ge.wE{static primaryClass="operation-tags";constructor(e,r,n){super(e,r,n),this.classes.push(Bb.primaryClass)}}const _6=Bb,O6=class extends er{constructor(e){super(e),this.element=new _6}ArrayElement(e){return this.element=this.element.concat(hr(e)),on}};class qb extends Ge.wE{static primaryClass="operation-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(qb.primaryClass),this.classes.push("parameters")}}const i2=qb;class k6 extends Vt(zs,er){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((r=>{const n=Vn(r)?["document","objects","Reference"]:["document","objects","Parameter"],a=this.toRefractedElement(n,r);Mn(a)&&a.setMetaProperty("referenced-element","parameter"),this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const s2=k6,A6=class extends s2{constructor(e){super(e),this.element=new i2}},C6=class extends zl{constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),r}};class Ub extends Ge.Sh{static primaryClass="operation-callbacks";constructor(e,r,n){super(e,r,n),this.classes.push(Ub.primaryClass)}}const j6=Ub;class P6 extends Vt(Ur,er){specPath;constructor(e){super(e),this.element=new j6,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","callback")})),r}}const N6=P6;class zb extends Ge.wE{static primaryClass="operation-security";constructor(e,r,n){super(e,r,n),this.classes.push(zb.primaryClass),this.classes.push("security")}}const l2=zb;class T6 extends Vt(zs,er){constructor(e){super(e),this.element=new l2}ArrayElement(e){return e.forEach((r=>{const n=hn(r)?["document","objects","SecurityRequirement"]:["value"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const I6=T6;class Vb extends Ge.wE{static primaryClass="operation-servers";constructor(e,r,n){super(e,r,n),this.classes.push(Vb.primaryClass),this.classes.push("servers")}}const M6=Vb,R6=class extends fb{constructor(e){super(e),this.element=new M6}};class D6 extends Vt(Jr,er){constructor(e){super(e),this.element=new nm,this.specPath=jr(["document","objects","PathItem"])}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return this.element.filter(HS).forEach(((n,a)=>{const o=hr(a);o.content=Et(o).toUpperCase(),n.setMetaProperty("http-method",o)})),Ir(this.element.$ref)&&this.element.classes.push("reference-element"),r}}const F6=D6,L6=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}};class Jb extends Ge.wE{static primaryClass="path-item-servers";constructor(e,r,n){super(e,r,n),this.classes.push(Jb.primaryClass),this.classes.push("servers")}}const $6=Jb,B6=class extends fb{constructor(e){super(e),this.element=new $6}};class Wb extends Ge.wE{static primaryClass="path-item-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(Wb.primaryClass),this.classes.push("parameters")}}const q6=Wb,U6=class extends s2{constructor(e){super(e),this.element=new q6}};class z6 extends Vt(Jr,er){constructor(e){super(e),this.element=new fm,this.specPath=jr(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const V6=z6;class J6 extends Vt(Jr,er){constructor(e){super(e),this.element=new My,this.specPath=jr(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const W6=J6;class H6 extends Vt(Jr,er){constructor(e){super(e),this.element=new Iy,this.specPath=jr(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const K6=H6;class Hb extends Ge.Sh{static primaryClass="oauth-flow-scopes";constructor(e,r,n){super(e,r,n),this.classes.push(Hb.primaryClass)}}const G6=Hb;class Y6 extends Vt(Ur,er){constructor(e){super(e),this.element=new G6,this.specPath=jr(["value"])}}const X6=Y6;class Kb extends Ge.wE{static primaryClass="tags";constructor(e,r,n){super(e,r,n),this.classes.push(Kb.primaryClass)}}const Q6=Kb;class Z6 extends Vt(zs,er){constructor(e){super(e),this.element=new Q6}ArrayElement(e){return e.forEach((r=>{const n=mP(r)?["document","objects","Tag"]:["value"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const e4=Z6,{fixedFields:Ba}=bo.visitors.document.objects.JSONSchema,pt={visitors:{value:er,document:{objects:{OpenApi:{$visitor:yP,fixedFields:{openapi:bP,info:{$ref:"#/visitors/document/objects/Info"},servers:fb,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:ON,tags:e4,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:SP,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:xP}},Contact:{$visitor:OP,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:AP,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:DP,fixedFields:{url:FP,description:{$ref:"#/visitors/value"},variables:zP}},ServerVariable:{$visitor:BP,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:AN,fixedFields:{schemas:dT,responses:gT,parameters:bT,examples:ST,requestBodies:OT,headers:CT,securitySchemes:NT,links:MT,callbacks:FT}},Paths:{$visitor:GT},PathItem:{$visitor:F6,fixedFields:{$ref:L6,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:B6,parameters:U6}},Operation:{$visitor:x6,fixedFields:{tags:O6,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:A6,requestBody:C6,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:N6,deprecated:{$ref:"#/visitors/value"},security:I6,servers:R6}},ExternalDocumentation:{$visitor:UT,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:MN,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:DN,example:{$ref:"#/visitors/value"},examples:cT,content:pT}},RequestBody:{$visitor:XT,fixedFields:{description:{$ref:"#/visitors/value"},content:ZT,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:JP,fixedFields:{schema:fN,example:{$ref:"#/visitors/value"},examples:yN,encoding:wN}},Encoding:{$visitor:VT,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:HT,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:b6,fixedFields:{default:E6}},Response:{$visitor:n6,fixedFields:{description:{$ref:"#/visitors/value"},headers:i6,content:l6,links:p6}},Callback:{$visitor:t6},Example:{$visitor:$T,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:BT}},Link:{$visitor:jP,fixedFields:{operationRef:PP,operationId:NP,parameters:MP,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:LN,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:BN,example:{$ref:"#/visitors/value"},examples:UN,content:JN}},Tag:{$visitor:jN,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:NN,fixedFields:{$ref:TN}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:HN,fixedFields:{title:Ba.title,multipleOf:Ba.multipleOf,maximum:Ba.maximum,exclusiveMaximum:Ba.exclusiveMaximum,minimum:Ba.minimum,exclusiveMinimum:Ba.exclusiveMinimum,maxLength:Ba.maxLength,minLength:Ba.minLength,pattern:Ba.pattern,maxItems:Ba.maxItems,minItems:Ba.minItems,uniqueItems:Ba.uniqueItems,maxProperties:Ba.maxProperties,minProperties:Ba.minProperties,required:Ba.required,enum:Ba.enum,type:eT,allOf:KN,anyOf:GN,oneOf:YN,not:t2,items:XN,properties:QN,additionalProperties:t2,description:Ba.description,format:Ba.format,default:Ba.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:rT,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:oT}},XML:{$visitor:sT,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:V6,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:W6,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:K6,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:X6}},SecurityRequirement:{$visitor:SN}},extension:{$visitor:wP}}}},t4=t=>{if(da(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},r4={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Bl},n4={namespace:t=>{const{base:e}=t;return e.register("callback",zf),e.register("components",Vf),e.register("contact",Jf),e.register("discriminator",Wf),e.register("encoding",Ty),e.register("example",Hf),e.register("externalDocumentation",Kf),e.register("header",Gf),e.register("info",Yf),e.register("license",Xf),e.register("link",Qf),e.register("mediaType",Zf),e.register("oAuthFlow",Iy),e.register("oAuthFlows",My),e.register("openapi",em),e.register("openApi3_0",Ry),e.register("operation",tm),e.register("parameter",rm),e.register("pathItem",nm),e.register("paths",am),e.register("reference",om),e.register("requestBody",im),e.register("response",sm),e.register("responses",lm),e.register("schema",qy),e.register("securityRequirement",dm),e.register("securityScheme",fm),e.register("server",mm),e.register("serverVariable",gm),e.register("tag",Uy),e.register("xml",zy),e}},a4=n4,o4=()=>{const t=Ac(a4);return{predicates:{...te,isElement:da,isStringElement:Ir,isArrayElement:vo,isObjectElement:hn,isMemberElement:Bs,includesClasses:Yh,hasElementSourceMap:Gh},namespace:t}},i4=(t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Ge.e)(t),a=Ru(pt),o=new(ro(e,a))({specObj:a});return Pa(n,o),ql(o.element,r,{toolboxCreator:o4,visitorOptions:{keyMap:r4,nodeTypeGetter:t4}})},On=t=>(e,r={})=>i4(e,{specPath:t,...r});zf.refract=On(["visitors","document","objects","Callback","$visitor"]),Vf.refract=On(["visitors","document","objects","Components","$visitor"]),Jf.refract=On(["visitors","document","objects","Contact","$visitor"]),Hf.refract=On(["visitors","document","objects","Example","$visitor"]),Wf.refract=On(["visitors","document","objects","Discriminator","$visitor"]),Ty.refract=On(["visitors","document","objects","Encoding","$visitor"]),Kf.refract=On(["visitors","document","objects","ExternalDocumentation","$visitor"]),Gf.refract=On(["visitors","document","objects","Header","$visitor"]),Yf.refract=On(["visitors","document","objects","Info","$visitor"]),Xf.refract=On(["visitors","document","objects","License","$visitor"]),Qf.refract=On(["visitors","document","objects","Link","$visitor"]),Zf.refract=On(["visitors","document","objects","MediaType","$visitor"]),Iy.refract=On(["visitors","document","objects","OAuthFlow","$visitor"]),My.refract=On(["visitors","document","objects","OAuthFlows","$visitor"]),em.refract=On(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Ry.refract=On(["visitors","document","objects","OpenApi","$visitor"]),tm.refract=On(["visitors","document","objects","Operation","$visitor"]),rm.refract=On(["visitors","document","objects","Parameter","$visitor"]),nm.refract=On(["visitors","document","objects","PathItem","$visitor"]),am.refract=On(["visitors","document","objects","Paths","$visitor"]),om.refract=On(["visitors","document","objects","Reference","$visitor"]),im.refract=On(["visitors","document","objects","RequestBody","$visitor"]),sm.refract=On(["visitors","document","objects","Response","$visitor"]),lm.refract=On(["visitors","document","objects","Responses","$visitor"]),qy.refract=On(["visitors","document","objects","Schema","$visitor"]),dm.refract=On(["visitors","document","objects","SecurityRequirement","$visitor"]),fm.refract=On(["visitors","document","objects","SecurityScheme","$visitor"]),mm.refract=On(["visitors","document","objects","Server","$visitor"]),gm.refract=On(["visitors","document","objects","ServerVariable","$visitor"]),Uy.refract=On(["visitors","document","objects","Tag","$visitor"]),zy.refract=On(["visitors","document","objects","XML","$visitor"]);const Hy=class extends zf{},Ky=class extends Vf{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}},Gy=class extends Jf{},Gb=class extends Wf{},Yb=class extends Ty{},Yy=class extends Hf{},Xy=class extends Kf{},Qy=class extends Gf{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Zy=class extends Yf{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class Xb extends Ge.Om{static default=new Xb("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,r,n){super(e,r,n),this.element="jsonSchemaDialect"}}const ym=Xb,ev=class extends Xf{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}},tv=class extends Qf{},rv=class extends Zf{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Qb=class extends Iy{},Zb=class extends My{},e1=class extends em{};class s4 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Lu=s4,vm=class extends tm{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}},nv=class extends rm{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},$u=class extends nm{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}},av=class extends am{};class t1 extends om{}Object.defineProperty(t1.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0}),Object.defineProperty(t1.prototype,"summary",{get(){return this.get("summary")},set(t){this.set("summary",t)},enumerable:!0});const od=t1,ov=class extends im{},iv=class extends sm{},sv=class extends lm{},bm=class extends Zh{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft6"}get idProp(){throw new Zr("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Zr("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}},wm=class extends um{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new Zr("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Zr("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new Zr("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Zr("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Zr("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Zr("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var l4=ha((function t(e,r,n){if(e.length===0)return r;var a=e[0];if(e.length>1){var o=!jy(n)&&ts(a,n)&&typeof n[a]=="object"?n[a]:Wh(e[1])?[]:{};r=t(Array.prototype.slice.call(e,1),r,o)}return(function(c,d,E){if(Wh(c)&&Dl(E)){var x=[].concat(E);return x[c]=d,x}var k={};for(var P in E)k[P]=E[P];return k[c]=d,k})(a,r,n)}));const Kt=l4;var c4=ha((function(e,r,n){var a=Array.prototype.slice.call(n,0);return a.splice(e,r),a}));const u4=c4;var p4=ha((function(e,r,n){return Kt([e],r,n)}));const h4=p4;var d4=Tr((function t(e,r){if(r==null)return r;switch(e.length){case 0:return r;case 1:return(function(p,c){if(c==null)return c;if(Wh(p)&&Dl(c))return u4(p,1,c);var d={};for(var E in c)d[E]=c[E];return delete d[p],d})(e[0],r);default:var n=e[0],a=Array.prototype.slice.call(e,1);return r[n]==null?(function(p,c){if(Wh(p)&&Dl(c))return[].concat(c);var d={};for(var E in c)d[E]=c[E];return d})(n,r):h4(n,t(a,r[n]),r)}}));const Ii=d4,c2=class extends BS{constructor(e){super(e),this.element=new bm}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const r=this.enter(e);return this.element.classes.push("boolean-json-schema"),r}handleSchemaIdentifier(e,r="$id"){return super.handleSchemaIdentifier(e,r)}},f4=class extends qS{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),on}},m4=class extends gn{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-examples"),r}},u2=class extends zS{constructor(e){super(e),this.element=new wm}},wo=mo(Kt(["visitors","document","objects","JSONSchema","$visitor"],c2),Ii(["visitors","document","objects","JSONSchema","fixedFields","id"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$id"],bo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","contains"],bo.visitors.JSONSchemaOrJSONReferenceVisitor),Kt(["visitors","document","objects","JSONSchema","fixedFields","items"],f4),Kt(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],bo.visitors.JSONSchemaOrJSONReferenceVisitor),Kt(["visitors","document","objects","JSONSchema","fixedFields","const"],bo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","examples"],m4),Kt(["visitors","document","objects","LinkDescription","$visitor"],u2),Kt(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],bo.visitors.JSONSchemaOrJSONReferenceVisitor),Ii(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],bo.visitors.JSONSchemaOrJSONReferenceVisitor),Ii(["visitors","document","objects","LinkDescription","fixedFields","method"]),Ii(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],bo.visitors.value))(bo),g4={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Bl},y4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof bm||t(n)&&e("JSONSchemaDraft6",n)&&r("object",n))),v4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof wm||t(n)&&e("linkDescription",n)&&r("object",n))),b4={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft6",bm),e.register("jSONReference",ed),e.register("media",cm),e.register("linkDescription",wm),e}},w4=b4,E4=()=>{const t=Ac(w4);return{predicates:{...ie,isStringElement:Ir},namespace:t}},S4=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=wo}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:E4,visitorOptions:{keyMap:g4,nodeTypeGetter:hm}})},p2=t=>(e,r={})=>S4(e,{specPath:t,...r});bm.refract=p2(["visitors","document","objects","JSONSchema","$visitor"]),wm.refract=p2(["visitors","document","objects","LinkDescription","$visitor"]);const Em=class extends bm{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new Zr('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Zr('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}},Sm=class extends wm{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new Zr("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Zr("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new Zr("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Zr("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}},h2=class extends c2{constructor(e){super(e),this.element=new Em}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}},d2=class extends u2{constructor(e){super(e),this.element=new Sm}},Bu=mo(Kt(["visitors","document","objects","JSONSchema","$visitor"],h2),Kt(["visitors","document","objects","JSONSchema","fixedFields","$comment"],wo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","if"],wo.visitors.JSONSchemaOrJSONReferenceVisitor),Kt(["visitors","document","objects","JSONSchema","fixedFields","then"],wo.visitors.JSONSchemaOrJSONReferenceVisitor),Kt(["visitors","document","objects","JSONSchema","fixedFields","else"],wo.visitors.JSONSchemaOrJSONReferenceVisitor),Ii(["visitors","document","objects","JSONSchema","fixedFields","media"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],wo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],wo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","$visitor"],d2),Kt(["visitors","document","objects","LinkDescription","fixedFields","anchor"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],wo.visitors.value),Ii(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Kt(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","description"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","$comment"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],wo.visitors.JSONSchemaOrJSONReferenceVisitor),Ii(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],wo.visitors.value))(wo),x4={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Bl},_4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Em||t(n)&&e("JSONSchemaDraft7",n)&&r("object",n))),O4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Sm||t(n)&&e("linkDescription",n)&&r("object",n))),k4={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft7",Em),e.register("jSONReference",ed),e.register("linkDescription",Sm),e}},A4=k4,C4=()=>{const t=Ac(A4);return{predicates:{...se,isStringElement:Ir},namespace:t}},j4=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Bu}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:C4,visitorOptions:{keyMap:x4,nodeTypeGetter:hm}})},f2=t=>(e,r={})=>j4(e,{specPath:t,...r});Em.refract=f2(["visitors","document","objects","JSONSchema","$visitor"]),Sm.refract=f2(["visitors","document","objects","LinkDescription","$visitor"]);const xm=class extends Em{constructor(e,r,n){super(e,r,n),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new Zr("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Zr("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get dependencies(){throw new Zr("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Zr("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}},_m=class extends Sm{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}},Eo=class extends h2{constructor(e){super(e),this.element=new xm}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const r=Up.prototype.ObjectElement.call(this,e);return Ir(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}},P4=class extends gn{ObjectElement(e){const r=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),r}},N4=class extends gn{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}};class T4 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=jr(["document","objects","JSONSchema"])}}const m2=T4;class I4 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const g2=I4;class M4 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const y2=M4;class R4 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const v2=R4;class D4 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=jr(["document","objects","JSONSchema"])}}const b2=D4;class F4 extends Vt(Ti,Na,gn){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),on}ArrayElement(e){return this.element=new Ge.wE,this.element.classes.push("json-schema-items"),e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),on}}const L4=F4;class $4 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-properties"),this.specPath=jr(["document","objects","JSONSchema"])}}const w2=$4;class B4 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=jr(["document","objects","JSONSchema"])}}const E2=B4,q4=class extends gn{ObjectElement(e){const r=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),r}},S2=class extends d2{constructor(e){super(e),this.element=new _m}},lv=mo(Kt(["visitors","document","objects","JSONSchema","$visitor"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],P4),Kt(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Bu.visitors.value),Ii(["visitors","document","objects","JSONReference","$visitor"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$ref"],N4),Ii(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$defs"],m2),Kt(["visitors","document","objects","JSONSchema","fixedFields","allOf"],g2),Kt(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],y2),Kt(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],v2),Kt(["visitors","document","objects","JSONSchema","fixedFields","not"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","if"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","then"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","else"],Eo),Ii(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],b2),Kt(["visitors","document","objects","JSONSchema","fixedFields","items"],L4),Kt(["visitors","document","objects","JSONSchema","fixedFields","contains"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","properties"],w2),Kt(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],E2),Kt(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],q4),Kt(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Eo),Kt(["visitors","document","objects","LinkDescription","$visitor"],S2),Kt(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Eo),Kt(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Eo),Kt(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Eo),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Eo))(Bu),U4={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Bl},z4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof xm||t(n)&&e("JSONSchema201909",n)&&r("object",n))),V4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof _m||t(n)&&e("linkDescription",n)&&r("object",n))),J4={namespace:t=>{const{base:e}=t;return e.register("jSONSchema201909",xm),e.register("linkDescription",_m),e}},W4=J4,H4=()=>{const t=Ac(W4);return{predicates:{...Te,isStringElement:Ir},namespace:t}},K4=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=lv}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:H4,visitorOptions:{keyMap:U4,nodeTypeGetter:hm}})},x2=t=>(e,r={})=>K4(e,{specPath:t,...r});xm.refract=x2(["visitors","document","objects","JSONSchema","$visitor"]),_m.refract=x2(["visitors","document","objects","LinkDescription","$visitor"]);const Om=class extends xm{constructor(e,r,n){super(e,r,n),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new Zr("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Zr("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new Zr("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Zr("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}},cv=class extends _m{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}},qa=class extends Eo{constructor(e){super(e),this.element=new Om}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class G4 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const _2=G4,Y4=class extends S2{constructor(e){super(e),this.element=new cv}},O2=mo(Kt(["visitors","document","objects","JSONSchema","$visitor"],qa),Ii(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],lv.visitors.value),Ii(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],lv.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","not"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","if"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","then"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","else"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],_2),Kt(["visitors","document","objects","JSONSchema","fixedFields","items"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","contains"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],qa),Ii(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],qa),Kt(["visitors","document","objects","LinkDescription","$visitor"],Y4),Kt(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],qa),Kt(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],qa),Kt(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],qa),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],qa))(lv),X4={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Bl},Q4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Om||t(n)&&e("JSONSchema202012",n)&&r("object",n))),Z4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cv||t(n)&&e("linkDescription",n)&&r("object",n))),eI={namespace:t=>{const{base:e}=t;return e.register("jSONSchema202012",Om),e.register("linkDescription",cv),e}},tI=eI,rI=()=>{const t=Ac(tI);return{predicates:{...he,isStringElement:Ir},namespace:t}},nI=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=O2}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:rI,visitorOptions:{keyMap:X4,nodeTypeGetter:hm}})},k2=t=>(e,r={})=>nI(e,{specPath:t,...r});Om.refract=k2(["visitors","document","objects","JSONSchema","$visitor"]),cv.refract=k2(["visitors","document","objects","LinkDescription","$visitor"]);const qu=class extends Om{constructor(e,r,n){super(e,r,n),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}},uv=class extends dm{},pv=class extends fm{},hv=class extends mm{},dv=class extends gm{},r1=class extends Uy{},n1=class extends zy{};class aI extends Vt(Jr,er){constructor(e){super(e),this.element=new Lu,this.specPath=jr(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Jr.prototype.ObjectElement.call(this,e)}}const oI=aI,iI=pt.visitors.document.objects.Info.$visitor,sI=class extends iI{constructor(e){super(e),this.element=new Zy}},lI=pt.visitors.document.objects.Contact.$visitor,cI=class extends lI{constructor(e){super(e),this.element=new Gy}},uI=pt.visitors.document.objects.License.$visitor,pI=class extends uI{constructor(e){super(e),this.element=new ev}},hI=pt.visitors.document.objects.Link.$visitor,dI=class extends hI{constructor(e){super(e),this.element=new tv}};class fI extends Vt(zs,er){StringElement(e){const r=new ym(Et(e));return this.copyMetaAndAttributes(e,r),this.element=r,on}}const mI=fI,gI=pt.visitors.document.objects.Server.$visitor,yI=class extends gI{constructor(e){super(e),this.element=new hv}},vI=pt.visitors.document.objects.ServerVariable.$visitor,bI=class extends vI{constructor(e){super(e),this.element=new dv}},wI=pt.visitors.document.objects.MediaType.$visitor,EI=class extends wI{constructor(e){super(e),this.element=new rv}},SI=pt.visitors.document.objects.SecurityRequirement.$visitor,xI=class extends SI{constructor(e){super(e),this.element=new uv}},_I=pt.visitors.document.objects.Components.$visitor,OI=class extends _I{constructor(e){super(e),this.element=new Ky}},kI=pt.visitors.document.objects.Tag.$visitor,AI=class extends kI{constructor(e){super(e),this.element=new r1}},CI=pt.visitors.document.objects.Reference.$visitor,jI=class extends CI{constructor(e){super(e),this.element=new od}},PI=pt.visitors.document.objects.Parameter.$visitor,NI=class extends PI{constructor(e){super(e),this.element=new nv}},TI=pt.visitors.document.objects.Header.$visitor,II=class extends TI{constructor(e){super(e),this.element=new Qy}},MI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Hy||t(n)&&e("callback",n)&&r("object",n))),RI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ky||t(n)&&e("components",n)&&r("object",n))),DI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Gy||t(n)&&e("contact",n)&&r("object",n))),FI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Yy||t(n)&&e("example",n)&&r("object",n))),LI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xy||t(n)&&e("externalDocumentation",n)&&r("object",n))),$I=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qy||t(n)&&e("header",n)&&r("object",n))),BI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zy||t(n)&&e("info",n)&&r("object",n))),A2=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ym||t(n)&&e("jsonSchemaDialect",n)&&r("string",n))),qI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ev||t(n)&&e("license",n)&&r("object",n))),UI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof tv||t(n)&&e("link",n)&&r("object",n))),zI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof e1||t(n)&&e("openapi",n)&&r("string",n))),C2=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>a=>a instanceof Lu||t(a)&&e("openApi3_1",a)&&r("object",a)&&n("api",a))),j2=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof vm||t(n)&&e("operation",n)&&r("object",n))),VI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof nv||t(n)&&e("parameter",n)&&r("object",n))),zp=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $u||t(n)&&e("pathItem",n)&&r("object",n))),JI=t=>{if(!zp(t)||!Ir(t.$ref))return!1;const e=Et(t.$ref);return typeof e=="string"&&e.length>0&&!e.startsWith("#")},WI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof av||t(n)&&e("paths",n)&&r("object",n))),Vp=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof od||t(n)&&e("reference",n)&&r("object",n))),HI=t=>{if(!Vp(t)||!Ir(t.$ref))return!1;const e=Et(t.$ref);return typeof e=="string"&&e.length>0&&!e.startsWith("#")},KI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ov||t(n)&&e("requestBody",n)&&r("object",n))),GI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof iv||t(n)&&e("response",n)&&r("object",n))),YI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof sv||t(n)&&e("responses",n)&&r("object",n))),Vs=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof qu||t(n)&&e("schema",n)&&r("object",n))),a1=t=>Ff(t)&&t.classes.includes("boolean-json-schema"),XI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof uv||t(n)&&e("securityRequirement",n)&&r("object",n))),QI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pv||t(n)&&e("securityScheme",n)&&r("object",n))),ZI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof hv||t(n)&&e("server",n)&&r("object",n))),e5=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof dv||t(n)&&e("serverVariable",n)&&r("object",n))),t5=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof rv||t(n)&&e("mediaType",n)&&r("object",n)));class r5 extends Vt(Jr,Na,er){constructor(e){super(e),this.element=new qu,this.specPath=jr(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=ym.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const r=Jr.prototype.ObjectElement.call(this,e);return Ir(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}BooleanElement(e){return qa.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=this.openApiSemanticElement!==void 0&&A2(this.openApiSemanticElement.jsonSchemaDialect)?Et(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&Ir(this.openApiGenericElement.get("jsonSchemaDialect"))?Et(this.openApiGenericElement.get("jsonSchemaDialect")):Et(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return qa.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return qa.prototype.handleSchemaIdentifier.call(this,e)}}const n5=r5,a5=class extends m2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},o5=class extends g2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},i5=class extends y2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},s5=class extends v2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},l5=class extends b2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},c5=class extends _2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},u5=class extends w2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},p5=class extends E2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},h5=pt.visitors.document.objects.Discriminator.$visitor,d5=class extends h5{constructor(e){super(e),this.element=new Gb,this.canSupportSpecificationExtensions=!0}},f5=pt.visitors.document.objects.XML.$visitor,m5=class extends f5{constructor(e){super(e),this.element=new n1}};class g5 extends Vt(Ur,er){constructor(e){super(e),this.element=new r2,this.specPath=jr(["document","objects","Schema"])}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Vs).forEach(((n,a)=>{n.setMetaProperty("schemaName",Et(a))})),r}}const y5=g5;class o1 extends Ge.Sh{static primaryClass="components-path-items";constructor(e,r,n){super(e,r,n),this.classes.push(o1.primaryClass)}}const v5=o1;class b5 extends Vt(Ur,er){constructor(e){super(e),this.element=new v5,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Vp).forEach((n=>{n.setMetaProperty("referenced-element","pathItem")})),r}}const w5=b5,E5=pt.visitors.document.objects.Example.$visitor,S5=class extends E5{constructor(e){super(e),this.element=new Yy}},x5=pt.visitors.document.objects.ExternalDocumentation.$visitor,_5=class extends x5{constructor(e){super(e),this.element=new Xy}},O5=pt.visitors.document.objects.Encoding.$visitor,k5=class extends O5{constructor(e){super(e),this.element=new Yb}},A5=pt.visitors.document.objects.Paths.$visitor,C5=class extends A5{constructor(e){super(e),this.element=new av}},j5=pt.visitors.document.objects.RequestBody.$visitor,P5=class extends j5{constructor(e){super(e),this.element=new ov}},P2=pt.visitors.document.objects.Callback.$visitor,N5=class extends P2{constructor(e){super(e),this.element=new Hy,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=P2.prototype.ObjectElement.call(this,e);return this.element.filter(Vp).forEach((n=>{n.setMetaProperty("referenced-element","pathItem")})),r}},T5=pt.visitors.document.objects.Response.$visitor,I5=class extends T5{constructor(e){super(e),this.element=new iv}},M5=pt.visitors.document.objects.Responses.$visitor,R5=class extends M5{constructor(e){super(e),this.element=new sv}},D5=pt.visitors.document.objects.Operation.$visitor,F5=class extends D5{constructor(e){super(e),this.element=new vm}},L5=pt.visitors.document.objects.PathItem.$visitor,$5=class extends L5{constructor(e){super(e),this.element=new $u}},B5=pt.visitors.document.objects.SecurityScheme.$visitor,q5=class extends B5{constructor(e){super(e),this.element=new pv}},U5=pt.visitors.document.objects.OAuthFlows.$visitor,z5=class extends U5{constructor(e){super(e),this.element=new Zb}},V5=pt.visitors.document.objects.OAuthFlow.$visitor,J5=class extends V5{constructor(e){super(e),this.element=new Qb}};class i1 extends Ge.Sh{static primaryClass="webhooks";constructor(e,r,n){super(e,r,n),this.classes.push(i1.primaryClass)}}const W5=i1;class H5 extends Vt(Ur,er){constructor(e){super(e),this.element=new W5,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Vp).forEach((n=>{n.setMetaProperty("referenced-element","pathItem")})),this.element.filter(zp).forEach(((n,a)=>{n.setMetaProperty("webhook-name",Et(a))})),r}}const K5=H5,{JSONSchema:G5,LinkDescription:Y5}=O2.visitors.document.objects,X5={visitors:{value:pt.visitors.value,document:{objects:{OpenApi:{$visitor:oI,fixedFields:{openapi:pt.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:mI,servers:pt.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:K5,components:{$ref:"#/visitors/document/objects/Components"},security:pt.visitors.document.objects.OpenApi.fixedFields.security,tags:pt.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:sI,fixedFields:{title:pt.visitors.document.objects.Info.fixedFields.title,description:pt.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:pt.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:pt.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:cI,fixedFields:{name:pt.visitors.document.objects.Contact.fixedFields.name,url:pt.visitors.document.objects.Contact.fixedFields.url,email:pt.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:pI,fixedFields:{name:pt.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:pt.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:yI,fixedFields:{url:pt.visitors.document.objects.Server.fixedFields.url,description:pt.visitors.document.objects.Server.fixedFields.description,variables:pt.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:bI,fixedFields:{enum:pt.visitors.document.objects.ServerVariable.fixedFields.enum,default:pt.visitors.document.objects.ServerVariable.fixedFields.default,description:pt.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:OI,fixedFields:{schemas:y5,responses:pt.visitors.document.objects.Components.fixedFields.responses,parameters:pt.visitors.document.objects.Components.fixedFields.parameters,examples:pt.visitors.document.objects.Components.fixedFields.examples,requestBodies:pt.visitors.document.objects.Components.fixedFields.requestBodies,headers:pt.visitors.document.objects.Components.fixedFields.headers,securitySchemes:pt.visitors.document.objects.Components.fixedFields.securitySchemes,links:pt.visitors.document.objects.Components.fixedFields.links,callbacks:pt.visitors.document.objects.Components.fixedFields.callbacks,pathItems:w5}},Paths:{$visitor:C5},PathItem:{$visitor:$5,fixedFields:{$ref:pt.visitors.document.objects.PathItem.fixedFields.$ref,summary:pt.visitors.document.objects.PathItem.fixedFields.summary,description:pt.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:pt.visitors.document.objects.PathItem.fixedFields.servers,parameters:pt.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:F5,fixedFields:{tags:pt.visitors.document.objects.Operation.fixedFields.tags,summary:pt.visitors.document.objects.Operation.fixedFields.summary,description:pt.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:pt.visitors.document.objects.Operation.fixedFields.operationId,parameters:pt.visitors.document.objects.Operation.fixedFields.parameters,requestBody:pt.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:pt.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:pt.visitors.document.objects.Operation.fixedFields.deprecated,security:pt.visitors.document.objects.Operation.fixedFields.security,servers:pt.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:_5,fixedFields:{description:pt.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:pt.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:NI,fixedFields:{name:pt.visitors.document.objects.Parameter.fixedFields.name,in:pt.visitors.document.objects.Parameter.fixedFields.in,description:pt.visitors.document.objects.Parameter.fixedFields.description,required:pt.visitors.document.objects.Parameter.fixedFields.required,deprecated:pt.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:pt.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:pt.visitors.document.objects.Parameter.fixedFields.style,explode:pt.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:pt.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:pt.visitors.document.objects.Parameter.fixedFields.example,examples:pt.visitors.document.objects.Parameter.fixedFields.examples,content:pt.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:P5,fixedFields:{description:pt.visitors.document.objects.RequestBody.fixedFields.description,content:pt.visitors.document.objects.RequestBody.fixedFields.content,required:pt.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:EI,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:pt.visitors.document.objects.MediaType.fixedFields.example,examples:pt.visitors.document.objects.MediaType.fixedFields.examples,encoding:pt.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:k5,fixedFields:{contentType:pt.visitors.document.objects.Encoding.fixedFields.contentType,headers:pt.visitors.document.objects.Encoding.fixedFields.headers,style:pt.visitors.document.objects.Encoding.fixedFields.style,explode:pt.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:pt.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:R5,fixedFields:{default:pt.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:I5,fixedFields:{description:pt.visitors.document.objects.Response.fixedFields.description,headers:pt.visitors.document.objects.Response.fixedFields.headers,content:pt.visitors.document.objects.Response.fixedFields.content,links:pt.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:N5},Example:{$visitor:S5,fixedFields:{summary:pt.visitors.document.objects.Example.fixedFields.summary,description:pt.visitors.document.objects.Example.fixedFields.description,value:pt.visitors.document.objects.Example.fixedFields.value,externalValue:pt.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:dI,fixedFields:{operationRef:pt.visitors.document.objects.Link.fixedFields.operationRef,operationId:pt.visitors.document.objects.Link.fixedFields.operationId,parameters:pt.visitors.document.objects.Link.fixedFields.parameters,requestBody:pt.visitors.document.objects.Link.fixedFields.requestBody,description:pt.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:II,fixedFields:{description:pt.visitors.document.objects.Header.fixedFields.description,required:pt.visitors.document.objects.Header.fixedFields.required,deprecated:pt.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:pt.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:pt.visitors.document.objects.Header.fixedFields.style,explode:pt.visitors.document.objects.Header.fixedFields.explode,allowReserved:pt.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:pt.visitors.document.objects.Header.fixedFields.example,examples:pt.visitors.document.objects.Header.fixedFields.examples,content:pt.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:AI,fixedFields:{name:pt.visitors.document.objects.Tag.fixedFields.name,description:pt.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:jI,fixedFields:{$ref:pt.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Y5},Schema:{$visitor:n5,fixedFields:{...G5.fixedFields,$defs:a5,allOf:o5,anyOf:i5,oneOf:s5,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:l5,prefixItems:c5,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:u5,patternProperties:p5,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:d5,fixedFields:{propertyName:pt.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:pt.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:m5,fixedFields:{name:pt.visitors.document.objects.XML.fixedFields.name,namespace:pt.visitors.document.objects.XML.fixedFields.namespace,prefix:pt.visitors.document.objects.XML.fixedFields.prefix,attribute:pt.visitors.document.objects.XML.fixedFields.attribute,wrapped:pt.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:q5,fixedFields:{type:pt.visitors.document.objects.SecurityScheme.fixedFields.type,description:pt.visitors.document.objects.SecurityScheme.fixedFields.description,name:pt.visitors.document.objects.SecurityScheme.fixedFields.name,in:pt.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:pt.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:pt.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:pt.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:z5,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:J5,fixedFields:{authorizationUrl:pt.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:pt.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:pt.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:pt.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:xI}},extension:{$visitor:pt.visitors.document.extension.$visitor}}}},as=t=>{if(da(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},Js={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Bl},Q5={namespace:t=>{const{base:e}=t;return e.register("callback",Hy),e.register("components",Ky),e.register("contact",Gy),e.register("discriminator",Gb),e.register("encoding",Yb),e.register("example",Yy),e.register("externalDocumentation",Xy),e.register("header",Qy),e.register("info",Zy),e.register("jsonSchemaDialect",ym),e.register("license",ev),e.register("link",tv),e.register("mediaType",rv),e.register("oAuthFlow",Qb),e.register("oAuthFlows",Zb),e.register("openapi",e1),e.register("openApi3_1",Lu),e.register("operation",vm),e.register("parameter",nv),e.register("pathItem",$u),e.register("paths",av),e.register("reference",od),e.register("requestBody",ov),e.register("response",iv),e.register("responses",sv),e.register("schema",qu),e.register("securityRequirement",uv),e.register("securityScheme",pv),e.register("server",hv),e.register("serverVariable",dv),e.register("tag",r1),e.register("xml",n1),e}},s1=Q5,Z5=t=>{const e=t.reduce(((r,n,a)=>{if(Bs(n)){const o=String(Et(n.key));r.push(o)}else if(vo(t[a-2])){const o=String(t[a-2].content.indexOf(n));r.push(o)}return r}),[]);return _S(e)},N2=()=>{const t=Ac(s1);return{predicates:{...ge,isElement:da,isStringElement:Ir,isArrayElement:vo,isObjectElement:hn,isMemberElement:Bs,isServersElement:KS,includesClasses:Yh,hasElementSourceMap:Gh},ancestorLineageToJSONPointer:Z5,namespace:t}},e8=(t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Ge.e)(t),a=Ru(X5),o=new(ro(e,a))({specObj:a});return Pa(n,o),ql(o.element,r,{toolboxCreator:N2,visitorOptions:{keyMap:Js,nodeTypeGetter:as}})},wn=t=>(e,r={})=>e8(e,{specPath:t,...r});Hy.refract=wn(["visitors","document","objects","Callback","$visitor"]),Ky.refract=wn(["visitors","document","objects","Components","$visitor"]),Gy.refract=wn(["visitors","document","objects","Contact","$visitor"]),Yy.refract=wn(["visitors","document","objects","Example","$visitor"]),Gb.refract=wn(["visitors","document","objects","Discriminator","$visitor"]),Yb.refract=wn(["visitors","document","objects","Encoding","$visitor"]),Xy.refract=wn(["visitors","document","objects","ExternalDocumentation","$visitor"]),Qy.refract=wn(["visitors","document","objects","Header","$visitor"]),Zy.refract=wn(["visitors","document","objects","Info","$visitor"]),ym.refract=wn(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),ev.refract=wn(["visitors","document","objects","License","$visitor"]),tv.refract=wn(["visitors","document","objects","Link","$visitor"]),rv.refract=wn(["visitors","document","objects","MediaType","$visitor"]),Qb.refract=wn(["visitors","document","objects","OAuthFlow","$visitor"]),Zb.refract=wn(["visitors","document","objects","OAuthFlows","$visitor"]),e1.refract=wn(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Lu.refract=wn(["visitors","document","objects","OpenApi","$visitor"]),vm.refract=wn(["visitors","document","objects","Operation","$visitor"]),nv.refract=wn(["visitors","document","objects","Parameter","$visitor"]),$u.refract=wn(["visitors","document","objects","PathItem","$visitor"]),av.refract=wn(["visitors","document","objects","Paths","$visitor"]),od.refract=wn(["visitors","document","objects","Reference","$visitor"]),ov.refract=wn(["visitors","document","objects","RequestBody","$visitor"]),iv.refract=wn(["visitors","document","objects","Response","$visitor"]),sv.refract=wn(["visitors","document","objects","Responses","$visitor"]),qu.refract=wn(["visitors","document","objects","Schema","$visitor"]),uv.refract=wn(["visitors","document","objects","SecurityRequirement","$visitor"]),pv.refract=wn(["visitors","document","objects","SecurityScheme","$visitor"]),hv.refract=wn(["visitors","document","objects","Server","$visitor"]),dv.refract=wn(["visitors","document","objects","ServerVariable","$visitor"]),r1.refract=wn(["visitors","document","objects","Tag","$visitor"]),n1.refract=wn(["visitors","document","objects","XML","$visitor"]);const l1=class extends Zr{},t8=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new l1("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new l1("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new l1("latest method in MediaTypes class is not yet implemented.")}};class c1 extends t8{filterByFormat(e="generic"){const r=e==="generic"?"openapi;version":e;return this.filter((n=>n.includes(r)))}findBy(e="3.1.0",r="generic"){const n=r==="generic"?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${r};version=${e}`;return this.find((a=>a.includes(n)))||this.unknownMediaType}latest(e="generic"){return py(this.filterByFormat(e))}}const id=new c1("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),Cc=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:r=0,refSet:n,value:a}){this.uri=e,this.value=a,this.depth=r,this.refSet=n,this.errors=[]}},sd=class{rootRef;refs;circular;constructor({refs:e=[],circular:r=!1}={}){this.refs=[],this.circular=r,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=this.rootRef===void 0?e:this.rootRef,e.refSet=this),this}merge(e){for(const r of e.values())this.add(r);return this}has(e){const r=Lp(e)?e:e.uri;return dE(this.find((n=>n.uri===r)))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach((e=>{e.refSet=void 0})),this.rootRef=void 0,this.refs.length=0}};function r8(t){return t}const T2=_r(r8),I2={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:T2,immutable:!0,dereferenceOpts:{}},bundle:{strategies:[],refSet:null,maxDepth:1/0}},n8=Tr((function(e,r){return function(n){return function(a){return yy((function(o){return r(o,a)}),n(e(a)))}}}));var M2=function(t){return{value:t,map:function(e){return M2(e(t))}}},a8=ha((function(e,r,n){return e((function(a){return M2(r(a))}))(n).value}));const o8=a8,i8=Pu(""),s8=n8(ro(["resolve","baseURI"]),Kt(["resolve","baseURI"])),l8=t=>i8(t)?P0():t,R2=(t,e)=>{const r=Py(t,e);return o8(s8,l8,r)},ld=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:r="text/plain",data:n,parseResult:a}){this.uri=e,this.mediaType=r,this.data=n,this.parseResult=a}get extension(){return Lp(this.uri)?(e=>{const r=e.lastIndexOf(".");return r>=0?e.substring(r).toLowerCase():""})(this.uri):""}toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Fs(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}},c8=class extends Mt{plugin;constructor(e,r){super(e,{cause:r.cause}),this.plugin=r.plugin}},u1=async(t,e,r)=>{const n=await Promise.all(r.map(qf([t],e)));return r.filter(((a,o)=>n[o]))},p1=async(t,e,r)=>{let n;for(const a of r)try{const o=await a[t].call(a,...e);return{plugin:a,result:o}}catch(o){n=new c8("Error while running plugin",{cause:o,plugin:a})}return Promise.reject(n)},h1=class extends Mt{},D2=class extends h1{},u8=async(t,e)=>{let r=t,n=!1;if(!iS(t)){const p=no(t);p.classes.push("result"),r=new $s([p]),n=!0}const a=new ld({uri:e.resolve.baseURI,parseResult:r,mediaType:e.parse.mediaType}),o=await u1("canDereference",[a,e],e.dereference.strategies);if(Bf(o))throw new D2(a.uri);try{const{result:p}=await p1("dereference",[a,e],o);return n?p.get(0):p}catch(p){throw new h1(`Error while dereferencing file "${a.uri}"`,{cause:p})}},d1=class extends Mt{},jc=class extends d1{},km=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:r=!0,sourceMap:n=!1,fileExtensions:a=[],mediaTypes:o=[]}){this.name=e,this.allowEmpty=r,this.sourceMap=n,this.fileExtensions=a,this.mediaTypes=o}},p8=class extends km{constructor(e){super({...e??{},name:"binary"})}canParse(e){return this.fileExtensions.length===0||this.fileExtensions.includes(e.extension)}parse(e){try{const r=unescape(encodeURIComponent(e.toString())),n=btoa(r),a=new $s;if(n.length!==0){const o=new Ge.Om(n);o.classes.push("result"),a.push(o)}return a}catch(r){throw new jc(`Error parsing "${e.uri}"`,{cause:r})}}},h8=class{name;constructor({name:e}){this.name=e}},d8=class extends h8{constructor(e){super({...e??{},name:"openapi-3-1"})}canResolve(e,r){const n=r.dereference.strategies.find((a=>a.name==="openapi-3-1"));return n!==void 0&&n.canDereference(e,r)}async resolve(e,r){const n=r.dereference.strategies.find((p=>p.name==="openapi-3-1"));if(n===void 0)throw new D2('"openapi-3-1" dereference strategy is not available.');const a=new sd,o=R2(r,{resolve:{internal:!1},dereference:{refSet:a}});return await n.dereference(e,o),a}},f8=class{name;constructor({name:e}){this.name=e}},m8=class extends f8{timeout;redirects;withCredentials;constructor(e){const{name:r="http-resolver",timeout:n=5e3,redirects:a=5,withCredentials:o=!1}=e??{};super({name:r}),this.timeout=n,this.redirects=a,this.withCredentials=o}canRead(e){return j0(e.uri)}},fv=class extends Mt{},F2=class extends fv{},{AbortController:g8,AbortSignal:y8}=globalThis;globalThis.AbortController===void 0&&(globalThis.AbortController=g8),globalThis.AbortSignal===void 0&&(globalThis.AbortSignal=y8);const v8=class extends m8{swaggerHTTPClient=Mf;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=Mf,swaggerHTTPClientConfig:r={},...n}={}){super({...n,name:"http-swagger-client"}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=r}getHttpClient(){return this.swaggerHTTPClient}async read(e){const r=this.getHttpClient(),n=new AbortController,{signal:a}=n,o=setTimeout((()=>{n.abort()}),this.timeout),p=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",c=this.redirects===0?"error":"follow",d=this.redirects>0?this.redirects:void 0;try{return(await r({url:e.uri,signal:a,userFetch:async(E,x)=>{let k=await fetch(E,x);try{k.headers.delete("Content-Type")}catch{k=new Response(k.body,{...k,headers:new Headers(k.headers)}),k.headers.delete("Content-Type")}return k},credentials:p,redirect:c,follow:d,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(E){throw new F2(`Error downloading "${e.uri}"`,{cause:E})}finally{clearTimeout(o)}}},L2=(t,e=wS)=>{if(Lp(t))try{return e.fromRefract(JSON.parse(t))}catch{}return Ls(t)&&$f("element",t)?e.fromRefract(t):e.toElement(t)},b8=class extends km{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){var r,n;const a=this.fileExtensions.length===0||Yn()(r=this.fileExtensions).call(r,e.extension),o=Yn()(n=this.mediaTypes).call(n,e.mediaType);if(!a)return!1;if(o)return!0;if(!o)try{return JSON.parse(e.toString()),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new jc("json-swagger-client parser plugin doesn't support sourceMaps option");const r=new $s,n=e.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const a=L2(JSON.parse(n));return a.classes.push("result"),r.push(a),r}catch(a){throw new jc(`Error parsing "${e.uri}"`,{cause:a})}}},w8=class extends km{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){var r,n;const a=this.fileExtensions.length===0||Yn()(r=this.fileExtensions).call(r,e.extension),o=Yn()(n=this.mediaTypes).call(n,e.mediaType);if(!a)return!1;if(o)return!0;if(!o)try{return Pe.load(e.toString(),{schema:Rt}),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new jc("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const r=new $s,n=e.toString();try{const a=Pe.load(n,{schema:Rt});if(this.allowEmpty&&a===void 0)return r;const o=L2(a);return o.classes.push("result"),r.push(o),r}catch(a){throw new jc(`Error parsing "${e.uri}"`,{cause:a})}}},E8=class extends km{detectionRegExp=/"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new c1(...id.filterByFormat("generic"),...id.filterByFormat("json")),...e})}async canParse(e){var r,n;const a=this.fileExtensions.length===0||Yn()(r=this.fileExtensions).call(r,e.extension),o=Yn()(n=this.mediaTypes).call(n,e.mediaType);if(!a)return!1;if(o)return!0;if(!o)try{const p=e.toString();return JSON.parse(p),this.detectionRegExp.test(p)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new jc("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const r=new $s,n=e.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const a=JSON.parse(n),o=Lu.refract(a,this.refractorOpts);return o.classes.push("result"),r.push(o),r}catch(a){throw new jc(`Error parsing "${e.uri}"`,{cause:a})}}},S8=class extends km{detectionRegExp=/(?^(["']?)openapi\2\s*:\s*(["']?)(?3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new c1(...id.filterByFormat("generic"),...id.filterByFormat("yaml")),...e})}async canParse(e){var r,n;const a=this.fileExtensions.length===0||Yn()(r=this.fileExtensions).call(r,e.extension),o=Yn()(n=this.mediaTypes).call(n,e.mediaType);if(!a)return!1;if(o)return!0;if(!o)try{const p=e.toString();return Pe.load(p),this.detectionRegExp.test(p)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new jc("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const r=new $s,n=e.toString();try{const a=Pe.load(n,{schema:Rt});if(this.allowEmpty&&a===void 0)return r;const o=Lu.refract(a,this.refractorOpts);return o.classes.push("result"),r.push(o),r}catch(a){throw new jc(`Error parsing "${e.uri}"`,{cause:a})}}},$2=ha((function(e,r,n){return Pu(e,Af(r,n))})),x8=class{name;constructor({name:e}){this.name=e}},_8=Tr((function(e,r){return Z0(cE(e),r)}));var O8=Be(8068);const k8=class extends xr{value;constructor(e,r){super(e,r),r!==void 0&&(this.value=r.value)}};class f1{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new O8({length:e}),this.identityMap=new WeakMap}identify(e){if(!da(e))throw new k8("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&Ir(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const r=new Ge.Om(this.generateId());return this.identityMap.set(e,r),r}forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)}generateId(){return this.uuid.randomUUID()}}new f1;const B2=ha((function(e,r,n){return Jh(e,J0(r,n))})),q2=(t,e)=>{const r=new fS({predicate:t,returnOnTrue:on});return Pa(e,r),B2(void 0,[0],r.result)},U2=class extends Mt{},A8=class extends U2{},C8=class extends U2{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},mv=t=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(t),cd=t=>{const e=EE(t);return cS("#",e)},m1=(t,e)=>{const r=(a=>{if(!mv(a))throw new C8(a);return a})(t),n=q2((a=>Vs(a)&&Et(a.$anchor)===r),e);if(Iu(n))throw new A8(`Evaluation failed on token: "${r}"`);return n},j8=(t,e)=>{const r=new fS({predicate:t});return Pa(e,r),new Ge.G6(r.result)},P8=class extends Mt{},g1=class extends P8{},z2=(t,e)=>{if(e.$ref===void 0)return;const r=EE(Et(e.$ref)),n=Et(e.meta.get("ancestorsSchemaIdentifiers"));return`${Vh(((o,p)=>go(o,by(In(p)))),t,[...n,Et(e.$ref)])}${r==="#"?"":r}`},Am=t=>{if(Am.cache.has(t))return Am.cache.get(t);const e=qu.refract(t);return Am.cache.set(t,e),e};Am.cache=new WeakMap;const qo=t=>$p(t)?Am(t):t,gv=(t,e)=>{const{cache:r}=gv,n=In(t),a=p=>Vs(p)&&p.$id!==void 0;if(!r.has(e)){const p=j8(a,e);r.set(e,Array.from(p))}const o=r.get(e).find((p=>((d,E)=>{if(E.$id===void 0)return;const x=Et(E.meta.get("ancestorsSchemaIdentifiers"));return Vh(((k,P)=>go(k,by(In(P)))),d,x)})(n,p)===n));if(Iu(o))throw new g1(`Evaluation failed on URI: "${t}"`);return mv(cd(t))?m1(cd(t),o):Us(o,rs(t))};gv.cache=new WeakMap;const ud=class extends h1{},N8=class extends fv{},V2=class extends F2{},J2="apidom-file-cache",W2=async({cacheKey:t,result:e,error:r,cacheTTL:n})=>{if(n!==0)try{const a={cachedResult:e,cachedError:r,timestamp:Date.now()},o=await caches.open(J2),p=new Response(JSON.stringify(a),{headers:{"Content-Type":"application/json"}});await o.put(t,p)}catch{console.error("CacheStorage is not available")}},T8=async(t,e)=>{const{cacheTTL:r=0}=e.resolve.resolverOpts,n=`read_${t.uri}`,{cachedResult:a,cachedError:o}=await(async({cacheKey:k,cacheTTL:P})=>{if(P===0)return{cachedResult:null,cachedError:null};try{const R=await caches.open(J2),L=await R.match(k);if(L){const{cachedResult:V,cachedError:Q,timestamp:J}=await L.json();if(Date.now()-J{const P=Object.create(k);return Object.assign(P,e.resolve.resolverOpts)})),c=await u1("canRead",[t,e],p);if(Bf(c))throw new V2(t.uri);try{const{result:k}=await p1("read",[t],c),P=new ld({...t,data:k}).toString();return await W2({cacheKey:n,result:P,error:null,cacheTTL:r}),k}catch(k){var d,E,x;throw await W2({cacheKey:n,result:null,error:(d=(E=k==null||(x=k.cause)===null||x===void 0?void 0:x.cause)!==null&&E!==void 0?E:k?.cause)!==null&&d!==void 0?d:k,cacheTTL:r}),new fv(`Error while reading file "${t.uri}"`,{cause:k})}},I8=async(t,e)=>{const r=new ld({uri:by(In(t)),mediaType:e.parse.mediaType}),n=await T8(r,e);return(async(a,o)=>{const p=o.parse.parsers.map((d=>{const E=Object.create(d);return Object.assign(E,o.parse.parserOpts)})),c=await u1("canParse",[a,o],p);if(Bf(c))throw new V2(a.uri);try{const{plugin:d,result:E}=await p1("parse",[a,o],c);return!d.allowEmpty&&E.isEmpty?Promise.reject(new d1(`Error while parsing file "${a.uri}". File is empty.`)):E}catch(d){throw new d1(`Error while parsing file "${a.uri}"`,{cause:d})}})(new ld({...r,data:n}),e)};class y1 extends Array{includesCycle(e){return this.filter((r=>r.has(e))).length>1}includes(e,r){return e instanceof Set?super.includes(e,r):this.some((n=>n.has(e)))}findItem(e){for(const r of this)for(const n of r)if(da(n)&&e(n))return n}}const yv=Pa[Symbol.for("nodejs.util.promisify.custom")],So=new f1,os=(t,e,r,n)=>{Bs(n)?n.value=t:Array.isArray(n)&&(n[r]=t)};class pd{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;errorContext;errorPropagationCache=new Map;pendingPropagations=[];constructor({reference:e,namespace:r,options:n,indirections:a=[],ancestors:o=new y1,refractCache:p=new Map,allOfDiscriminatorMapping:c=new Map,errorContext:d=[],errorPropagationCache:E=new Map,pendingPropagations:x=[]}){this.indirections=a,this.namespace=r,this.reference=e,this.options=n,this.ancestors=new y1(...o),this.refractCache=p,this.allOfDiscriminatorMapping=c,this.errorContext=d,this.errorPropagationCache=E,this.pendingPropagations=x}popErrorContext(e){if(this.errorContext[this.errorContext.length-1]===e)this.errorContext.pop();else for(let r=this.errorContext.length-1;r>=0;r-=1)if(this.errorContext[r]===e){this.errorContext.splice(r,1);break}}runPropagationPass(){let e=!1;return this.pendingPropagations.forEach((({referencingElement:r,referencedElement:n})=>{const a=this.errorPropagationCache.get(n);Array.isArray(a)&&a.length>0&&a.forEach((o=>{const p=this.errorPropagationCache.get(r);var c;p!=null&&p.includes(o)||((c=this.options.dereference.dereferenceOpts)===null||c===void 0||c.errors.push({error:o,refEl:r}),p?p.push(o):this.errorPropagationCache.set(r,[o]),e=!0)}))})),e}propagateErrors(){for(;this.runPropagationPass(););this.pendingPropagations.length=0}handleDereferenceError(e,r,n){var a;if((a=this.options.dereference.dereferenceOpts)===null||a===void 0||!a.continueOnError)throw e;{var o,p,c;const{directAncestors:x,isExternalReference:k=!1}=n??{},P=(o=(p=this.options.dereference.dereferenceOpts)===null||p===void 0?void 0:p.skipNestedExternal)!==null&&o!==void 0&&o,R=k&&P;if(x&&!R){for(const V of x){const Q=this.errorPropagationCache.get(V);Q?Q.push(e):this.errorPropagationCache.set(V,[e])}const L=[...x].find((V=>hn(V)&&V.getMetaProperty("ref-referencing-element")));var d;L&&((d=this.options.dereference.dereferenceOpts)===null||d===void 0||d.errors.push({error:e,refEl:L.getMetaProperty("ref-referencing-element")}))}if((c=this.options.dereference.dereferenceOpts)===null||c===void 0||c.errors.push({error:e,refEl:r}),!R){const L=new Set(this.errorContext);L.delete(r),this.popErrorContext(r);for(const V of L){var E;(E=this.options.dereference.dereferenceOpts)===null||E===void 0||E.errors.push({error:e,refEl:V})}}}}getNestedVisitorOptions(e){var r,n;return{...this.options,resolve:{...this.options.resolve,external:((r=this.options.dereference)===null||r===void 0||(r=r.dereferenceOpts)===null||r===void 0||!r.skipNestedExternal||!Et(e.get("$ref")).startsWith("#"))&&this.options.resolve.external},dereference:{...this.options.dereference,dereferenceOpts:{...(n=this.options.dereference)===null||n===void 0?void 0:n.dereferenceOpts,continueOnError:!1}}}}toBaseURI(e){return go(this.reference.uri,by(In(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new N8(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const r=this.toBaseURI(e),{refSet:n}=this.reference;if(n.has(r))return n.find($2(r,"uri"));const a=await I8(Fl(r),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),o=new Cc({uri:r,value:hr(a),depth:this.reference.depth+1});if(n.add(o),this.options.dereference.immutable){const p=new Cc({uri:`immutable://${r}`,value:a,depth:this.reference.depth+1});n.add(p)}return o}toAncestorLineage(e){const r=new Set(e.filter(da));return[new y1(...this.ancestors,r),r]}OpenApi3_1Element={leave:(e,r,n,a,o,p)=>{var c,d;if((c=this.options.dereference.dereferenceOpts)!==null&&c!==void 0&&c.continueOnError&&this.propagateErrors(),(d=this.options.dereference.strategyOpts["openapi-3-1"])===null||d===void 0||!d.dereferenceDiscriminatorMapping)return;const E=no(e);return E.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),p.replaceWith(E,os),n?void 0:E}};async ReferenceElement(e,r,n,a,o,p){var c,d;if(this.indirections.includes(e))return!1;const[E,x]=this.toAncestorLineage([...o,n]),k=this.toBaseURI(Et(e.$ref)),P=In(this.reference.uri)===k,R=!P;if(!this.options.resolve.internal&&P||!this.options.resolve.external&&R)return!1;let L;try{L=await this.toReference(Et(e.$ref))}catch(ce){return this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}const V=go(k,Et(e.$ref));this.indirections.push(e);const Q=rs(V);let J;try{J=Us(L.value.result,Q)}catch(ce){return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}if(J.id=So.identify(J),$p(J)){const ce=Et(e.meta.get("referenced-element")),_e=`${ce}-${Et(So.identify(J))}`;this.refractCache.has(_e)?J=this.refractCache.get(_e):Vn(J)?(J=od.refract(J),J.setMetaProperty("referenced-element",ce),this.refractCache.set(_e,J)):(J=this.namespace.getElementClass(ce).refract(J),this.refractCache.set(_e,J))}if(e===J){const ce=new Mt("Recursive Reference Object detected");return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}if(this.indirections.length>this.options.dereference.maxDepth){const ce=new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}if(E.includes(J)){if(L.refSet.circular=!0,this.options.dereference.circular==="error"){const ce=new Mt("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}if(this.options.dereference.circular==="replace"){var re,me;const ce=new Ge.sI(J.id,{type:"reference",uri:L.uri,$ref:Et(e.$ref)}),_e=((re=(me=this.options.dereference.strategyOpts["openapi-3-1"])===null||me===void 0?void 0:me.circularReplacer)!==null&&re!==void 0?re:this.options.dereference.circularReplacer)(ce);return p.replaceWith(_e,os),!n&&_e}}const le=In(L.refSet.rootRef.uri)!==L.uri,ve=["error","replace"].includes(this.options.dereference.circular);if((R||le||Vp(J)||ve)&&!E.includesCycle(J)){x.add(e),this.errorContext.push(e);const ce=new pd({reference:L,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:E,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{J=await yv(J,ce,{keyMap:Js,nodeTypeGetter:as})}catch(_e){return this.indirections.pop(),this.handleDereferenceError(_e,e,{directAncestors:x,isExternalReference:R})}x.delete(e),this.popErrorContext(e)}(c=this.options.dereference.dereferenceOpts)!==null&&c!==void 0&&c.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:J}),this.indirections.pop();const be=no(J);return be.setMetaProperty("id",So.generateId()),be.setMetaProperty("ref-fields",{$ref:Et(e.$ref),description:Et(e.description),summary:Et(e.summary)}),be.setMetaProperty("ref-origin",L.uri),be.setMetaProperty("ref-referencing-element-id",hr(So.identify(e))),(d=this.options.dereference.dereferenceOpts)!==null&&d!==void 0&&d.continueOnError&&be.setMetaProperty("ref-referencing-element",e),hn(J)&&hn(be)&&(e.hasKey("description")&&"description"in J&&(be.remove("description"),be.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in J&&(be.remove("summary"),be.set("summary",e.get("summary")))),p.replaceWith(be,os),!n&&be}async PathItemElement(e,r,n,a,o,p){var c;if(!Ir(e.$ref))return;if(this.indirections.includes(e))return!1;const[d,E]=this.toAncestorLineage([...o,n]),x=this.toBaseURI(Et(e.$ref)),k=In(this.reference.uri)===x,P=!k;if(!this.options.resolve.internal&&k||!this.options.resolve.external&&P)return;let R;try{R=await this.toReference(Et(e.$ref))}catch(be){return this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}const L=go(x,Et(e.$ref));this.indirections.push(e);const V=rs(L);let Q;try{Q=Us(R.value.result,V)}catch(be){return this.indirections.pop(),this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}if(Q.id=So.identify(Q),$p(Q)){const be=`path-item-${Et(So.identify(Q))}`;this.refractCache.has(be)?Q=this.refractCache.get(be):(Q=$u.refract(Q),this.refractCache.set(be,Q))}if(e===Q){const be=new Mt("Recursive Path Item Object reference detected");return this.indirections.pop(),this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}if(this.indirections.length>this.options.dereference.maxDepth){const be=new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}if(d.includes(Q)){if(R.refSet.circular=!0,this.options.dereference.circular==="error"){const be=new Mt("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}if(this.options.dereference.circular==="replace"){var J,re;const be=new Ge.sI(Q.id,{type:"path-item",uri:R.uri,$ref:Et(e.$ref)}),ce=((J=(re=this.options.dereference.strategyOpts["openapi-3-1"])===null||re===void 0?void 0:re.circularReplacer)!==null&&J!==void 0?J:this.options.dereference.circularReplacer)(be);return p.replaceWith(ce,os),!n&&ce}}const me=In(R.refSet.rootRef.uri)!==R.uri,le=["error","replace"].includes(this.options.dereference.circular);if((P||me||zp(Q)&&Ir(Q.$ref)||le)&&!d.includesCycle(Q)){E.add(e),this.errorContext.push(e);const be=new pd({reference:R,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:d,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{Q=await yv(Q,be,{keyMap:Js,nodeTypeGetter:as})}catch(ce){return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:E,isExternalReference:P})}E.delete(e),this.popErrorContext(e)}if((c=this.options.dereference.dereferenceOpts)!==null&&c!==void 0&&c.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:Q}),this.indirections.pop(),zp(Q)){var ve;const be=new $u([...Q.content],hr(Q.meta),hr(Q.attributes));be.setMetaProperty("id",So.generateId()),e.forEach(((ce,_e,Ae)=>{be.remove(Et(_e)),be.content.push(Ae)})),be.remove("$ref"),be.setMetaProperty("ref-fields",{$ref:Et(e.$ref)}),be.setMetaProperty("ref-origin",R.uri),be.setMetaProperty("ref-referencing-element-id",hr(So.identify(e))),(ve=this.options.dereference.dereferenceOpts)!==null&&ve!==void 0&&ve.continueOnError&&be.setMetaProperty("ref-referencing-element",e),Q=be}return p.replaceWith(Q,os),n?void 0:Q}async LinkElement(e,r,n,a,o,p){if(!Ir(e.operationRef)&&!Ir(e.operationId))return;if(Ir(e.operationRef)&&Ir(e.operationId)){const x=new Mt("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(x,e)}let c;if(Ir(e.operationRef)){var d;const x=rs(Et(e.operationRef)),k=this.toBaseURI(Et(e.operationRef)),P=In(this.reference.uri)===k,R=!P;if(!this.options.resolve.internal&&P||!this.options.resolve.external&&R)return;let L;try{L=await this.toReference(Et(e.operationRef)),c=Us(L.value.result,x)}catch(Q){return this.handleDereferenceError(Q,e,{isExternalReference:R})}if($p(c)){const Q=`operation-${Et(So.identify(c))}`;this.refractCache.has(Q)?c=this.refractCache.get(Q):(c=vm.refract(c),this.refractCache.set(Q,c))}c=no(c),c.setMetaProperty("ref-origin",L.uri);const V=no(e);return(d=V.operationRef)===null||d===void 0||d.meta.set("operation",c),p.replaceWith(V,os),n?void 0:V}if(Ir(e.operationId)){var E;const x=Et(e.operationId);let k;try{k=await this.toReference(Fl(this.reference.uri))}catch(R){return this.handleDereferenceError(R,e)}if(c=q2((R=>j2(R)&&da(R.operationId)&&R.operationId.equals(x)),k.value.result),Iu(c)){const R=new Mt(`OperationElement(operationId=${x}) not found.`);return this.handleDereferenceError(R,e)}const P=no(e);return(E=P.operationId)===null||E===void 0||E.meta.set("operation",c),p.replaceWith(P,os),n?void 0:P}}async ExampleElement(e,r,n,a,o,p){if(!Ir(e.externalValue))return;if(e.hasKey("value")&&Ir(e.externalValue)){const R=new Mt("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(R,e)}const c=this.toBaseURI(Et(e.externalValue)),d=In(this.reference.uri)===c,E=!d;if(!this.options.resolve.internal&&d||!this.options.resolve.external&&E)return;let x;try{x=await this.toReference(Et(e.externalValue))}catch(R){return this.handleDereferenceError(R,e,{isExternalReference:E})}const k=no(x.value.result);k.setMetaProperty("ref-origin",x.uri);const P=no(e);return P.value=k,p.replaceWith(P,os),n?void 0:P}async MemberElement(e,r,n,a,o,p){var c;const d=o[o.length-1];if(!hn(d)||!d.classes.contains("discriminator-mapping"))return;if((c=this.options.dereference.strategyOpts["openapi-3-1"])===null||c===void 0||!c.dereferenceDiscriminatorMapping||!Ir(e.key)||!Ir(e.value)||this.indirections.includes(e))return!1;this.indirections.push(e);const[E,x]=this.toAncestorLineage([...o,n]),k=[...x].findLast(Vs),P=hr(k.getMetaProperty("ancestorsSchemaIdentifiers")),R=Et(e.value),L=/^[a-zA-Z0-9\\.\\-_]+$/.test(R)?`#/components/schemas/${R}`:R,V=new qu({$ref:L});V.setMetaProperty("ancestorsSchemaIdentifiers",P),x.add(V);const Q=new pd({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(V),refractCache:this.refractCache,ancestors:E,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});let J;try{J=await yv(V,Q,{keyMap:Js,nodeTypeGetter:as})}catch(me){const le=!L.startsWith("#");return this.handleDereferenceError(me,V,{directAncestors:x,isExternalReference:le})}x.delete(V),this.indirections.pop();const re=no(e);return re.value.setMetaProperty("ref-schema",J),p.replaceWith(re,os),n?void 0:re}async SchemaElement(e,r,n,a,o,p){var c;if(!Ir(e.$ref))return;if(this.indirections.includes(e))return!1;const[d,E]=this.toAncestorLineage([...o,n]);let x;try{x=await this.toReference(Fl(this.reference.uri))}catch(je){return this.handleDereferenceError(je,e,{directAncestors:E})}let{uri:k}=x;const P=z2(k,e),R=In(P),L=new ld({uri:R}),V=_8((je=>je.canRead(L)),this.options.resolve.resolvers),Q=!V;let J,re=In(this.reference.uri)===P,me=!re;this.indirections.push(e);try{if(V||Q){k=this.toBaseURI(P);const je=P,G=qo(x.value.result);if(J=gv(je,G),J=qo(J),J.id=So.identify(J),!this.options.resolve.internal&&re||!this.options.resolve.external&&me)return}else{if(k=this.toBaseURI(P),re=In(this.reference.uri)===k,me=!re,!this.options.resolve.internal&&re||!this.options.resolve.external&&me)return;x=await this.toReference(Fl(P));const je=rs(P),G=qo(x.value.result);J=Us(G,je),J=qo(J),J.id=So.identify(J)}}catch(je){if(!(Q&&je instanceof g1))return this.indirections.pop(),this.handleDereferenceError(je,e,{directAncestors:E,isExternalReference:me});if(mv(cd(P))){if(re=In(this.reference.uri)===k,me=!re,!this.options.resolve.internal&&re||!this.options.resolve.external&&me)return;try{x=await this.toReference(Fl(P))}catch(Ne){return this.indirections.pop(),this.handleDereferenceError(Ne,e,{directAncestors:E,isExternalReference:me})}const G=cd(P),de=qo(x.value.result);try{J=m1(G,de)}catch(Ne){return this.indirections.pop(),this.handleDereferenceError(Ne,e,{directAncestors:E,isExternalReference:me})}J=qo(J),J.id=So.identify(J)}else{if(k=this.toBaseURI(P),re=In(this.reference.uri)===k,me=!re,!this.options.resolve.internal&&re||!this.options.resolve.external&&me)return;try{x=await this.toReference(Fl(P))}catch(Ne){return this.indirections.pop(),this.handleDereferenceError(Ne,e,{directAncestors:E,isExternalReference:me})}const G=rs(P),de=qo(x.value.result);try{J=Us(de,G)}catch(Ne){return this.indirections.pop(),this.handleDereferenceError(Ne,e,{directAncestors:E,isExternalReference:me})}J=qo(J),J.id=So.identify(J)}}if(e===J){const je=new Mt("Recursive Schema Object reference detected");return this.indirections.pop(),this.handleDereferenceError(je,e,{directAncestors:E,isExternalReference:me})}if(this.indirections.length>this.options.dereference.maxDepth){const je=new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(je,e,{directAncestors:E,isExternalReference:me})}if(d.includes(J)){if(x.refSet.circular=!0,this.options.dereference.circular==="error"){const je=new Mt("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(je,e,{directAncestors:E,isExternalReference:me})}if(this.options.dereference.circular==="replace"){var le,ve;const je=new Ge.sI(J.id,{type:"json-schema",uri:x.uri,$ref:Et(e.$ref)}),G=((le=(ve=this.options.dereference.strategyOpts["openapi-3-1"])===null||ve===void 0?void 0:ve.circularReplacer)!==null&&le!==void 0?le:this.options.dereference.circularReplacer)(je);return p.replaceWith(G,os),!n&&G}}const be=In(x.refSet.rootRef.uri)!==x.uri,ce=["error","replace"].includes(this.options.dereference.circular);if((me||be||Vs(J)&&Ir(J.$ref)||ce)&&!d.includesCycle(J)){E.add(e),this.errorContext.push(e);const je=new pd({reference:x,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:d,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{J=await yv(J,je,{keyMap:Js,nodeTypeGetter:as})}catch(G){return this.indirections.pop(),this.handleDereferenceError(G,e,{directAncestors:E,isExternalReference:me})}E.delete(e),this.popErrorContext(e)}if((c=this.options.dereference.dereferenceOpts)!==null&&c!==void 0&&c.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:J}),this.indirections.pop(),a1(J)){const je=hr(J);return je.setMetaProperty("id",So.generateId()),je.setMetaProperty("ref-fields",{$ref:Et(e.$ref),$refBaseURI:P}),je.setMetaProperty("ref-origin",x.uri),je.setMetaProperty("ref-referencing-element-id",hr(So.identify(e))),p.replaceWith(je,os),!n&&je}if(Vs(J)){var _e,Ae;const je=new qu([...J.content],hr(J.meta),hr(J.attributes));if(je.setMetaProperty("id",So.generateId()),e.forEach(((G,de,Ne)=>{je.remove(Et(de)),je.content.push(Ne)})),je.remove("$ref"),je.setMetaProperty("ref-fields",{$ref:Et(e.$ref),$refBaseURI:P}),je.setMetaProperty("ref-origin",x.uri),je.setMetaProperty("ref-referencing-element-id",hr(So.identify(e))),(_e=this.options.dereference.dereferenceOpts)!==null&&_e!==void 0&&_e.continueOnError&&je.setMetaProperty("ref-referencing-element",e),(Ae=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&Ae!==void 0&&Ae.dereferenceDiscriminatorMapping){var xe;const G=o[o.length-1],de=[...E].findLast(Vs),Ne=de?.getMetaProperty("schemaName"),Ye=Et(je.getMetaProperty("schemaName"));if(Ye&&Ne&&G!=null&&(xe=G.classes)!==null&&xe!==void 0&&xe.contains("json-schema-allOf")){var Oe;const ht=(Oe=this.allOfDiscriminatorMapping.get(Ye))!==null&&Oe!==void 0?Oe:[];ht.push(de),this.allOfDiscriminatorMapping.set(Ye,ht)}}J=je}return p.replaceWith(J,os),n?void 0:J}}const H2=pd,M8=Pa[Symbol.for("nodejs.util.promisify.custom")],R8=class extends x8{constructor(e){super({...e??{},name:"openapi-3-1"})}canDereference(e){var r;return e.mediaType!=="text/plain"?id.includes(e.mediaType):C2((r=e.parseResult)===null||r===void 0?void 0:r.result)}async dereference(e,r){var n;const a=Ac(s1),o=(n=r.dereference.refSet)!==null&&n!==void 0?n:new sd,p=new sd;let c,d=o;o.has(e.uri)?c=o.find($2(e.uri,"uri")):(c=new Cc({uri:e.uri,value:e.parseResult}),o.add(c)),r.dereference.immutable&&(o.refs.map((k=>new Cc({...k,value:hr(k.value)}))).forEach((k=>p.add(k))),c=p.find((k=>k.uri===e.uri)),d=p);const E=new H2({reference:c,namespace:a,options:r}),x=await M8(d.rootRef.value,E,{keyMap:Js,nodeTypeGetter:as});return r.dereference.immutable&&p.refs.filter((k=>k.uri.startsWith("immutable://"))).map((k=>new Cc({...k,uri:k.uri.replace(/^immutable:\/\//,"")}))).forEach((k=>o.add(k))),r.dereference.refSet===null&&o.clean(),p.clean(),x}},Ws=t=>{const e=(r=>r.slice(2))(t);return e.reduce(((r,n,a)=>{if(Bs(n)){const o=String(Et(n.key));r.push(o)}else if(vo(e[a-2])){const o=e[a-2].content.indexOf(n);r.push(o)}return r}),[])},D8=class{modelPropertyMacro;options;SchemaElement={leave:(e,r,n,a,o)=>{e.properties!==void 0&&hn(e.properties)&&e.properties.forEach((p=>{if(hn(p))try{const c=this.modelPropertyMacro(Et(p));p.set("default",c)}catch(c){const d=new Error(c,{cause:c});d.fullPath=[...Ws([...o,n,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(d)}}))}};constructor({modelPropertyMacro:e,options:r}){this.modelPropertyMacro=e,this.options=r}};var F8=(function(){function t(e,r){this.xf=r,this.pred=e,this.items=[]}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=Nf,t.prototype["@@transducer/step"]=function(e,r){return hy(this.pred,r,this.items)?e:(this.items.push(r),this.xf["@@transducer/step"](e,r))},t})();function L8(t){return function(e){return new F8(t,e)}}var $8=Tr(Nu([],L8,(function(t,e){for(var r,n=0,a=e.length,o=[];nEt(d)==="enum"?(E,x)=>{if(Yh(["json-schema-enum"],E)&&Yh(["json-schema-enum"],x)){const k=(R,L)=>!(vo(R)||vo(L)||hn(R)||hn(L))&&R.equals(Et(L)),P=no(E);return P.content=K2(k)([...E.content,...x.content]),P}return qp(E,x)}:qp});if(e.hasKey("$$ref")||c.remove("$$ref"),e.hasKey("example")){const d=c.getMember("example");d&&(d.value=e.get("example"))}if(e.hasKey("examples")){const d=c.getMember("examples");d&&(d.value=e.get("examples"))}e.content=c.content}}}};constructor({options:e}){this.options=e}},q8=class{parameterMacro;options;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,r,n,a,o)=>{const p=this.#e?Et(this.#e):null,c=Et(e);try{const d=this.parameterMacro(p,c);e.set("default",d)}catch(d){const E=new Error(d,{cause:d});E.fullPath=Ws([...o,n]),this.options.dereference.dereferenceOpts?.errors?.push?.(E)}}};constructor({parameterMacro:e,options:r}){this.parameterMacro=e,this.options=r}},vv=t=>{if(t.cause==null)return t;let{cause:e}=t;for(;e.cause!=null;)e=e.cause;return e},U8=class extends xr{},{wrapError:v1}=RE,b1=Pa[Symbol.for("nodejs.util.promisify.custom")],is=new f1,Jp=(t,e,r,n)=>{Bs(n)?n.value=t:Array.isArray(n)&&(n[r]=t)};class Cm extends H2{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:r=!1,basePath:n=null,...a}){super(a),this.allowMetaPatches=e,this.useCircularStructures=r,this.basePath=n}async ReferenceElement(e,r,n,a,o,p){try{var c,d;if(Yn()(c=this.indirections).call(c,e))return!1;const[E,x]=this.toAncestorLineage([...o,n]),k=this.toBaseURI(Et(e.$ref)),P=In(this.reference.uri)===k,R=!P;if(!this.options.resolve.internal&&P||!this.options.resolve.external&&R)return!1;const L=await this.toReference(Et(e.$ref)),V=go(k,Et(e.$ref));this.indirections.push(e);const Q=rs(V);let J=Us(L.value.result,Q);if(J.id=is.identify(J),$p(J)){const ve=Et(e.meta.get("referenced-element")),be=`${ve}-${Et(is.identify(J))}`;this.refractCache.has(be)?J=this.refractCache.get(be):Vn(J)?(J=od.refract(J),J.setMetaProperty("referenced-element",ve),this.refractCache.set(be,J)):(J=this.namespace.getElementClass(ve).refract(J),this.refractCache.set(be,J))}if(e===J)throw new Mt("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(Yn()(E).call(E,J)){if(L.refSet.circular=!0,this.options.dereference.circular==="error")throw new Mt("Circular reference detected");if(this.options.dereference.circular==="replace"){const ve=new Ge.sI(J.id,{type:"reference",uri:L.uri,$ref:Et(e.$ref),baseURI:V,referencingElement:e}),be=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(ve);return p.replaceWith(ve,Jp),!n&&be}}const re=In(L.refSet.rootRef.uri)!==L.uri,me=Yn()(d=["error","replace"]).call(d,this.options.dereference.circular);if((R||re||Vp(J)||me)&&!E.includesCycle(J)){x.add(e);const ve=new Cm({reference:L,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:E,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...Ws([...o,n,e]),"$ref"]});J=await b1(J,ve,{keyMap:Js,nodeTypeGetter:as}),x.delete(e)}this.indirections.pop();const le=no(J);if(le.setMetaProperty("ref-fields",{$ref:Et(e.$ref),description:Et(e.description),summary:Et(e.summary)}),le.setMetaProperty("ref-origin",L.uri),le.setMetaProperty("ref-referencing-element-id",hr(is.identify(e))),hn(J)&&(e.hasKey("description")&&"description"in J&&(le.remove("description"),le.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in J&&(le.remove("summary"),le.set("summary",e.get("summary")))),this.allowMetaPatches&&hn(le)&&!le.hasKey("$$ref")){const ve=go(k,V);le.set("$$ref",ve)}return p.replaceWith(le,Jp),!n&&le}catch(E){const x=vv(E),k=v1(x,{baseDoc:this.reference.uri,$ref:Et(e.$ref),pointer:rs(Et(e.$ref)),fullPath:this.basePath??[...Ws([...o,n,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(k)}}async PathItemElement(e,r,n,a,o,p){try{var c,d;if(!Ir(e.$ref))return;if(Yn()(c=this.indirections).call(c,e)||Yh(["cycle"],e.$ref))return!1;const[E,x]=this.toAncestorLineage([...o,n]),k=this.toBaseURI(Et(e.$ref)),P=In(this.reference.uri)===k,R=!P;if(!this.options.resolve.internal&&P||!this.options.resolve.external&&R)return;const L=await this.toReference(Et(e.$ref)),V=go(k,Et(e.$ref));this.indirections.push(e);const Q=rs(V);let J=Us(L.value.result,Q);if(J.id=is.identify(J),$p(J)){const le=`path-item-${Et(is.identify(J))}`;this.refractCache.has(le)?J=this.refractCache.get(le):(J=$u.refract(J),this.refractCache.set(le,J))}if(e===J)throw new Mt("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(Yn()(E).call(E,J)){if(L.refSet.circular=!0,this.options.dereference.circular==="error")throw new Mt("Circular reference detected");if(this.options.dereference.circular==="replace"){const le=new Ge.sI(J.id,{type:"path-item",uri:L.uri,$ref:Et(e.$ref),baseURI:V,referencingElement:e}),ve=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(le);return p.replaceWith(le,Jp),!n&&ve}}const re=In(L.refSet.rootRef.uri)!==L.uri,me=Yn()(d=["error","replace"]).call(d,this.options.dereference.circular);if((R||re||zp(J)&&Ir(J.$ref)||me)&&!E.includesCycle(J)){x.add(e);const le=new Cm({reference:L,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:E,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...Ws([...o,n,e]),"$ref"]});J=await b1(J,le,{keyMap:Js,nodeTypeGetter:as}),x.delete(e)}if(this.indirections.pop(),zp(J)){const le=new $u([...J.content],hr(J.meta),hr(J.attributes));if(e.forEach(((ve,be,ce)=>{le.remove(Et(be)),le.content.push(ce)})),le.remove("$ref"),le.setMetaProperty("ref-fields",{$ref:Et(e.$ref)}),le.setMetaProperty("ref-origin",L.uri),le.setMetaProperty("ref-referencing-element-id",hr(is.identify(e))),this.allowMetaPatches&&le.get("$$ref")===void 0){const ve=go(k,V);le.set("$$ref",ve)}J=le}return p.replaceWith(J,Jp),n?void 0:J}catch(E){const x=vv(E),k=v1(x,{baseDoc:this.reference.uri,$ref:Et(e.$ref),pointer:rs(Et(e.$ref)),fullPath:this.basePath??[...Ws([...o,n,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(k)}}async SchemaElement(e,r,n,a,o,p){try{var c,d;if(!Ir(e.$ref))return;if(Yn()(c=this.indirections).call(c,e))return!1;const[E,x]=this.toAncestorLineage([...o,n]);let k=await this.toReference(Fl(this.reference.uri)),{uri:P}=k;const R=z2(P,e),L=In(R),V=new ld({uri:L}),Q=!this.options.resolve.resolvers.some((ce=>ce.canRead(V))),J=!Q;let re,me=In(this.reference.uri)===R,le=!me;this.indirections.push(e);try{if(Q||J){P=this.toBaseURI(R);const ce=R,_e=qo(k.value.result);if(re=gv(ce,_e),re=qo(re),re.id=is.identify(re),!this.options.resolve.internal&&me||!this.options.resolve.external&&le)return}else{if(P=this.toBaseURI(R),me=In(this.reference.uri)===P,le=!me,!this.options.resolve.internal&&me||!this.options.resolve.external&&le)return;k=await this.toReference(Fl(R));const ce=rs(R),_e=qo(k.value.result);re=Us(_e,ce),re=qo(re),re.id=is.identify(re)}}catch(ce){if(!(J&&ce instanceof g1))throw ce;if(mv(cd(R))){if(me=In(this.reference.uri)===P,le=!me,!this.options.resolve.internal&&me||!this.options.resolve.external&&le)return;k=await this.toReference(Fl(R));const _e=cd(R),Ae=qo(k.value.result);re=m1(_e,Ae),re=qo(re),re.id=is.identify(re)}else{if(P=this.toBaseURI(Et(R)),me=In(this.reference.uri)===P,le=!me,!this.options.resolve.internal&&me||!this.options.resolve.external&&le)return;k=await this.toReference(Fl(R));const _e=rs(R),Ae=qo(k.value.result);re=Us(Ae,_e),re=qo(re),re.id=is.identify(re)}}if(e===re)throw new Mt("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(Yn()(E).call(E,re)){if(k.refSet.circular=!0,this.options.dereference.circular==="error")throw new Mt("Circular reference detected");if(this.options.dereference.circular==="replace"){const ce=new Ge.sI(re.id,{type:"json-schema",uri:k.uri,$ref:Et(e.$ref),baseURI:go(P,R),referencingElement:e}),_e=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(ce);return p.replaceWith(_e,Jp),!n&&_e}}const ve=In(k.refSet.rootRef.uri)!==k.uri,be=Yn()(d=["error","replace"]).call(d,this.options.dereference.circular);if((le||ve||Vs(re)&&Ir(re.$ref)||be)&&!E.includesCycle(re)){x.add(e);const ce=new Cm({reference:k,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:E,basePath:this.basePath??[...Ws([...o,n,e]),"$ref"]});re=await b1(re,ce,{keyMap:Js,nodeTypeGetter:as}),x.delete(e)}if(this.indirections.pop(),a1(re)){const ce=hr(re);return ce.setMetaProperty("ref-fields",{$ref:Et(e.$ref)}),ce.setMetaProperty("ref-origin",k.uri),ce.setMetaProperty("ref-referencing-element-id",hr(is.identify(e))),p.replaceWith(ce,Jp),!n&&ce}if(Vs(re)){const ce=new qu([...re.content],hr(re.meta),hr(re.attributes));if(e.forEach(((_e,Ae,xe)=>{ce.remove(Et(Ae)),ce.content.push(xe)})),ce.remove("$ref"),ce.setMetaProperty("ref-fields",{$ref:Et(e.$ref)}),ce.setMetaProperty("ref-origin",k.uri),ce.setMetaProperty("ref-referencing-element-id",hr(is.identify(e))),this.allowMetaPatches&&ce.get("$$ref")===void 0){const _e=go(P,R);ce.set("$$ref",_e)}re=ce}return p.replaceWith(re,Jp),n?void 0:re}catch(E){const x=vv(E),k=new U8(`Could not resolve reference: ${x.message}`,{baseDoc:this.reference.uri,$ref:Et(e.$ref),fullPath:this.basePath??[...Ws([...o,n,e]),"$ref"],cause:x});return void this.options.dereference.dereferenceOpts?.errors?.push?.(k)}}async LinkElement(){}async ExampleElement(e,r,n,a,o,p){try{return await super.ExampleElement(e,r,n,a,o,p)}catch(c){const d=vv(c),E=v1(d,{baseDoc:this.reference.uri,externalValue:Et(e.externalValue),fullPath:this.basePath??[...Ws([...o,n,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(E)}}}const z8=Cm,V8=Cy[Symbol.for("nodejs.util.promisify.custom")],J8=class{constructor({parameterMacro:e,modelPropertyMacro:r,mode:n,options:a,...o}){const p=[];p.push(new z8({...o,options:a})),typeof r=="function"&&p.push(new D8({modelPropertyMacro:r,options:a})),n!=="strict"&&p.push(new B8({options:a})),typeof e=="function"&&p.push(new q8({parameterMacro:e,options:a}));const c=V8(p,{nodeTypeGetter:as});Object.assign(this,c)}},W8=Pa[Symbol.for("nodejs.util.promisify.custom")],H8=class extends R8{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:r=null,modelPropertyMacro:n=null,mode:a="non-strict",ancestors:o=[],...p}={}){super({...p}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=r,this.modelPropertyMacro=n,this.mode=a,this.ancestors=[...o]}async dereference(e,r){const n=Ac(s1),a=r.dereference.refSet??new sd,o=new sd;let p,c=a;a.has(e.uri)?p=a.find((x=>x.uri===e.uri)):(p=new Cc({uri:e.uri,value:e.parseResult}),a.add(p)),r.dereference.immutable&&(a.refs.map((x=>new Cc({...x,value:hr(x.value)}))).forEach((x=>o.add(x))),p=o.find((x=>x.uri===e.uri)),c=o);const d=new J8({reference:p,namespace:n,options:r,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),E=await W8(c.rootRef.value,d,{keyMap:Js,nodeTypeGetter:as});return r.dereference.immutable&&o.refs.filter((x=>x.uri.startsWith("immutable://"))).map((x=>new Cc({...x,uri:x.uri.replace(/^immutable:\/\//,"")}))).forEach((x=>a.add(x))),r.dereference.refSet===null&&a.clean(),o.clean(),E}},K8=t=>{const e=Et(t.meta.get("baseURI")),r=t.meta.get("referencingElement");return new Ge.Sh({$ref:e},hr(r.meta),hr(r.attributes))},w1=async t=>{const{spec:e,timeout:r,redirects:n,requestInterceptor:a,responseInterceptor:o,pathDiscriminator:p=[],allowMetaPatches:c=!1,useCircularStructures:d=!1,skipNormalization:E=!1,parameterMacro:x=null,modelPropertyMacro:k=null,mode:P="non-strict",strategies:R}=t;try{const{cache:L}=w1,V=R.find((Ne=>Ne.match(e))),Q=j0(P0())?P0():Sy,J=z0(t),re=go(Q,J);let me;L.has(e)?me=L.get(e):(me=Lu.refract(e),me.classes.push("result"),L.set(e,me));const le=new $s([me]),ve=_S(p),be=ve===""?"":`#${ve}`,ce=Us(me,ve),_e=new Cc({uri:re,value:le}),Ae=new sd({refs:[_e]});ve!==""&&(Ae.rootRef=void 0);const xe=[new Set([ce])],Oe=[],je=await(async(Ne,Ye={})=>{const ht=R2(I2,Ye);return u8(Ne,ht)})(ce,{resolve:{baseURI:`${re}${be}`,resolvers:[new v8({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:a,responseInterceptor:o}},strategies:[new d8]},parse:{mediaType:id.latest(),parsers:[new E8({allowEmpty:!1,sourceMap:!1}),new S8({allowEmpty:!1,sourceMap:!1}),new b8({allowEmpty:!1,sourceMap:!1}),new w8({allowEmpty:!1,sourceMap:!1}),new p8({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new H8({allowMetaPatches:c,useCircularStructures:d,parameterMacro:x,modelPropertyMacro:k,mode:P,ancestors:xe})],refSet:Ae,dereferenceOpts:{errors:Oe},immutable:!1,circular:d?"ignore":"replace",circularReplacer:d?I2.dereference.circularReplacer:K8}}),G=((Ne,Ye,ht)=>new lj({element:ht}).transclude(Ne,Ye))(ce,je,me),de=E?G:V.normalize(G);return{spec:Et(de),errors:Oe}}catch(L){if(L instanceof Bp)return{spec:e,errors:[]};throw L}};w1.cache=new WeakMap;const G2=w1;function Y2(t,e,r){if(r||(r=new G8),(function(o){var p=typeof o;return o==null||p!="object"&&p!="function"})(t))return t;var n=function(o){var p=r.get(t);if(p)return p;for(var c in r.set(t,o),t)Object.prototype.hasOwnProperty.call(t,c)&&(o[c]=t[c]);return o};switch(Fs(t)){case"Object":return n(Object.create(Object.getPrototypeOf(t)));case"Array":return n(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return(function(o){return new RegExp(o.source,o.flags?o.flags:(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":"")+(o.dotAll?"s":""))})(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}var G8=(function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){var n=this.hash(e),a=this.map[n];a||(this.map[n]=a=[]),a.push([e,r]),this.length+=1},t.prototype.hash=function(e){var r=[];for(var n in e)r.push(Object.prototype.toString.call(e[n]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(var r in this.map)for(var n=this.map[r],a=0;at.replace(/\s/g,""),S1=t=>t.replace(/\W/gi,"_"),eM=(t,e,r)=>{const n=E1(t);return n.length>0?S1(n):((a,o)=>`${S1(E1(o.toLowerCase()))}${S1(E1(a))}`)(e,r)},tM=({storageField:t="x-normalized",operationIdNormalizer:e=eM}={})=>r=>{const{predicates:n,ancestorLineageToJSONPointer:a,namespace:o}=r,p=[],c=[],d=[];let E;return{visitor:{OpenApi3_1Element:{enter(x){E=new jm(x,t,"operation-ids")},leave(){const x=Z8((k=>Et(k.operationId)),c);Object.entries(x).forEach((([k,P])=>{Array.isArray(P)&&(P.length<=1||P.forEach(((R,L)=>{const V=`${k}${L+1}`;R.operationId=new o.elements.String(V)})))})),d.forEach((k=>{if(k.operationId===void 0)return;const P=String(Et(k.operationId)),R=c.find((L=>Et(L.meta.get("originalOperationId"))===P));R!==void 0&&(k.operationId=hr.safe(R.operationId),k.meta.set("originalOperationId",P),k.set("__originalOperationId",P))})),c.length=0,d.length=0,E=void 0}},PathItemElement:{enter(x){const k=Jh("path",Et(x.meta.get("path")));p.push(k)},leave(){p.pop()}},OperationElement:{enter(x,k,P,R,L){if(x.operationId===void 0)return;const V=a([...L,P,x]);if(E.includes(V))return;const Q=String(Et(x.operationId)),J=py(p),re=Jh("method",Et(x.meta.get("http-method"))),me=e(Q,J,re);Q!==me&&(x.operationId=new o.elements.String(me),x.set("__originalOperationId",Q),x.meta.set("originalOperationId",Q),c.push(x),E.append(V))}},LinkElement:{leave(x){n.isLinkElement(x)&&x.operationId!==void 0&&d.push(x)}}}}},rM=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e,a=(c,d)=>!!r.isParameterElement(c)&&!!r.isParameterElement(d)&&!!r.isStringElement(c.name)&&!!r.isStringElement(c.in)&&!!r.isStringElement(d.name)&&!!r.isStringElement(d.in)&&Et(c.name)===Et(d.name)&&Et(c.in)===Et(d.in),o=[];let p;return{visitor:{OpenApi3_1Element:{enter(c){p=new jm(c,t,"parameters")},leave(){p=void 0}},PathItemElement:{enter(c,d,E,x,k){if(k.some(r.isComponentsElement))return;const{parameters:P}=c;r.isArrayElement(P)?o.push([...P.content]):o.push([])},leave(){o.pop()}},OperationElement:{leave(c,d,E,x,k){const P=py(o);if(!Array.isArray(P)||P.length===0)return;const R=n([...k,E,c]);if(p.includes(R))return;const L=B2([],["parameters","content"],c),V=K2(a,[...L,...P]);c.parameters=new i2(V),p.append(R)}}}}},nM=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let a,o;return{visitor:{OpenApi3_1Element:{enter(p){o=new jm(p,t,"security-requirements"),r.isArrayElement(p.security)&&(a=p.security)},leave(){o=void 0,a=void 0}},OperationElement:{leave(p,c,d,E,x){if(x.some(r.isComponentsElement))return;const k=n([...x,d,p]);if(!o.includes(k)){var P;p.security===void 0&&a!==void 0&&(p.security=new l2((P=a)===null||P===void 0?void 0:P.content),o.append(k))}}}}}},aM=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let a;return{visitor:{OpenApi3_1Element:{enter(o){a=new jm(o,t,"parameter-examples")},leave(){a=void 0}},ParameterElement:{leave(o,p,c,d,E){var x,k;if(E.some(r.isComponentsElement)||o.schema===void 0||!r.isSchemaElement(o.schema)||((x=o.schema)===null||x===void 0?void 0:x.example)===void 0&&((k=o.schema)===null||k===void 0?void 0:k.examples)===void 0)return;const P=n([...E,c,o]);if(!a.includes(P)){if(o.examples!==void 0&&r.isObjectElement(o.examples)){const R=o.examples.map((L=>hr.safe(L.value)));return o.schema.examples!==void 0&&(o.schema.set("examples",R),a.append(P)),void(o.schema.example!==void 0&&(o.schema.set("example",R[0]),a.append(P)))}o.example!==void 0&&(o.schema.examples!==void 0&&(o.schema.set("examples",[hr(o.example)]),a.append(P)),o.schema.example!==void 0&&(o.schema.set("example",hr(o.example)),a.append(P)))}}}}}},oM=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let a;return{visitor:{OpenApi3_1Element:{enter(o){a=new jm(o,t,"header-examples")},leave(){a=void 0}},HeaderElement:{leave(o,p,c,d,E){var x,k;if(E.some(r.isComponentsElement)||o.schema===void 0||!r.isSchemaElement(o.schema)||((x=o.schema)===null||x===void 0?void 0:x.example)===void 0&&((k=o.schema)===null||k===void 0?void 0:k.examples)===void 0)return;const P=n([...E,c,o]);if(!a.includes(P)){if(o.examples!==void 0&&r.isObjectElement(o.examples)){const R=o.examples.map((L=>hr.safe(L.value)));return o.schema.examples!==void 0&&(o.schema.set("examples",R),a.append(P)),void(o.schema.example!==void 0&&(o.schema.set("example",R[0]),a.append(P)))}o.example!==void 0&&(o.schema.examples!==void 0&&(o.schema.set("examples",[hr(o.example)]),a.append(P)),o.schema.example!==void 0&&(o.schema.set("example",hr(o.example)),a.append(P)))}}}}}},X2=t=>{if(!hn(t))return t;const e=[tM({operationIdNormalizer:(r,n,a)=>Df({operationId:r},n,a,{v2OperationIdCompatibilityMode:!1})}),rM(),nM(),aM(),oM()];return ql(t,e,{toolboxCreator:N2,visitorOptions:{keyMap:Js,nodeTypeGetter:as}})},iM={name:"openapi-3-1-apidom",match:t=>Y0(t),normalize(t){if(!da(t)&&Ls(t)&&!t.$$normalized){const r=(e=X2,n=>{const a=Lu.refract(n);a.classes.push("result");const o=e(a),p=Et(o);return G2.cache.set(p,o),Et(o)})(t);return r.$$normalized=!0,r}var e;return da(t)?X2(t):t},resolve:async t=>G2(t)},Q2=iM,Z2=t=>async e=>(async r=>{const{spec:n,requestInterceptor:a,responseInterceptor:o}=r,p=z0(r),c=YE(r),d=n||await zE(c,{requestInterceptor:a,responseInterceptor:o})(p),E={...r,spec:d};return r.strategies.find((x=>x.match(d))).resolve(E)})({...t,...e}),sM=Z2({strategies:[Q0,X0,G0]}),lM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["server-url-template",Ni.charsToString(e,r,n)])}return Br.SEM_OK},cM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["server-variable",Ni.charsToString(e,r,n)])}return Br.SEM_OK},uM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["server-variable-name",Ni.charsToString(e,r,n)])}return Br.SEM_OK},pM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["literals",Ni.charsToString(e,r,n)])}return Br.SEM_OK},hM=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"DIGIT",lower:"digit",index:4,isBkr:!1},this.rules[5]={name:"HEXDIG",lower:"hexdig",index:5,isBkr:!1},this.rules[6]={name:"pct-encoded",lower:"pct-encoded",index:6,isBkr:!1},this.rules[7]={name:"ucschar",lower:"ucschar",index:7,isBkr:!1},this.rules[8]={name:"iprivate",lower:"iprivate",index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){return`; OpenAPI Server URL templating ABNF syntax +server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2 +server-variable = "{" server-variable-name "}" +server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI) + +; https://www.rfc-editor.org/rfc/rfc6570#section-2.1 +; https://www.rfc-editor.org/errata/eid6937 +literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B + / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate + / pct-encoded) + ; any Unicode character except: CTL, SP, + ; DQUOTE, "%" (aside from pct-encoded), + ; "<", ">", "\\", "^", "\`", "{", "|", "}" + +; https://www.rfc-editor.org/rfc/rfc6570#section-1.5 +DIGIT = %x30-39 ; 0-9 +HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive + +pct-encoded = "%" HEXDIG HEXDIG + +ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF + / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD + / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD + / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD + / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD + / %xD0000-DFFFD / %xE1000-EFFFD + +iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD +`}},ex=t=>{const e=new ns;return e.ast=new ib,e.ast.callbacks["server-url-template"]=lM,e.ast.callbacks["server-variable"]=cM,e.ast.callbacks["server-variable-name"]=uM,e.ast.callbacks.literals=pM,{result:e.parse(hM,"server-url-template",t),ast:e.ast}},dM=(t,{strict:e=!1}={})=>{try{const r=ex(t);if(!r.result.success)return!1;const n=[];r.ast.translate(n);const a=n.some((([o])=>o==="server-variable"));if(!e&&!a)try{return new URL(t,"https://vladimirgorej.com"),!0}catch{return!1}return!e||a}catch{return!1}},fM=t=>(e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}})(t)?t:encodeURIComponent(t).replace(/%5B/g,"[").replace(/%5D/g,"]"),mM=["literals","server-variable-name"],gM=(t,e,r={})=>{const n={encoder:fM,...r},a=ex(t);if(!a.result.success)return t;const o=[];return a.ast.translate(o),o.filter((([c])=>mM.includes(c))).map((([c,d])=>c==="server-variable-name"?Object.hasOwn(e,d)?n.encoder(e[d],d):`{${d}}`:d)).join("")};function tx(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path-segment",lower:"path-segment",index:1,isBkr:!1},this.rules[2]={name:"slash",lower:"slash",index:2,isBkr:!1},this.rules[3]={name:"path-literal",lower:"path-literal",index:3,isBkr:!1},this.rules[4]={name:"template-expression",lower:"template-expression",index:4,isBkr:!1},this.rules[5]={name:"template-expression-param-name",lower:"template-expression-param-name",index:5,isBkr:!1},this.rules[6]={name:"pchar",lower:"pchar",index:6,isBkr:!1},this.rules[7]={name:"unreserved",lower:"unreserved",index:7,isBkr:!1},this.rules[8]={name:"pct-encoded",lower:"pct-encoded",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ALPHA",lower:"alpha",index:10,isBkr:!1},this.rules[11]={name:"DIGIT",lower:"digit",index:11,isBkr:!1},this.rules[12]={name:"HEXDIG",lower:"hexdig",index:12,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:2},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:1},this.rules[0].opcodes[5]={type:4,index:2},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:1,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:4},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:7,string:[47]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:2,children:[1,2,3]},this.rules[4].opcodes[1]={type:7,string:[123]},this.rules[4].opcodes[2]={type:4,index:5},this.rules[4].opcodes[3]={type:7,string:[125]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:1,max:1/0},this.rules[5].opcodes[1]={type:1,children:[2,3,4]},this.rules[5].opcodes[2]={type:5,min:0,max:122},this.rules[5].opcodes[3]={type:6,string:[124]},this.rules[5].opcodes[4]={type:5,min:126,max:1114111},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[6].opcodes[4]={type:7,string:[58]},this.rules[6].opcodes[5]={type:7,string:[64]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[7].opcodes[1]={type:4,index:10},this.rules[7].opcodes[2]={type:4,index:11},this.rules[7].opcodes[3]={type:7,string:[45]},this.rules[7].opcodes[4]={type:7,string:[46]},this.rules[7].opcodes[5]={type:7,string:[95]},this.rules[7].opcodes[6]={type:7,string:[126]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2,3]},this.rules[8].opcodes[1]={type:7,string:[37]},this.rules[8].opcodes[2]={type:4,index:12},this.rules[8].opcodes[3]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){return`; OpenAPI Path Templating ABNF syntax +; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3 +path-template = slash *( path-segment slash ) [ path-segment ] +path-segment = 1*( path-literal / template-expression ) +slash = "/" +path-literal = 1*pchar +template-expression = "{" template-expression-param-name "}" +template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI) + +; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3 +pchar = unreserved / pct-encoded / sub-delims / ":" / "@" +unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" + ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3 +pct-encoded = "%" HEXDIG HEXDIG + ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1 +sub-delims = "!" / "$" / "&" / "'" / "(" / ")" + / "*" / "+" / "," / ";" / "=" + ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2 + +; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1 +ALPHA = %x41-5A / %x61-7A ; A-Z / a-z +DIGIT = %x30-39 ; 0-9 +HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" +`}}const yM=(t,e,r,n,a)=>(t===Br.SEM_PRE?a.push(["slash",Ni.charsToString(e,r,n)]):Br.SEM_POST,Br.SEM_OK),vM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["path-template",Ni.charsToString(e,r,n)])}return Br.SEM_OK},bM=(t,e,r,n,a)=>(t===Br.SEM_PRE?a.push(["path-literal",Ni.charsToString(e,r,n)]):Br.SEM_POST,Br.SEM_OK),wM=(t,e,r,n,a)=>(t===Br.SEM_PRE?a.push(["template-expression",Ni.charsToString(e,r,n)]):Br.SEM_POST,Br.SEM_OK),EM=(t,e,r,n,a)=>(t===Br.SEM_PRE?a.push(["template-expression-param-name",Ni.charsToString(e,r,n)]):Br.SEM_POST,Br.SEM_OK),SM=new tx,xM=t=>{const e=new ns;return e.ast=new ib,e.ast.callbacks["path-template"]=vM,e.ast.callbacks.slash=yM,e.ast.callbacks["path-literal"]=bM,e.ast.callbacks["template-expression"]=wM,e.ast.callbacks["template-expression-param-name"]=EM,{result:e.parse(SM,"path-template",t),ast:e.ast}},_M=t=>(e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}})(t)?t:encodeURIComponent(t).replace(/%5B/g,"[").replace(/%5D/g,"]"),OM=["slash","path-literal","template-expression-param-name"],x1=(t,e,r={})=>{const n={encoder:_M,...r},a=xM(t);if(!a.result.success)return t;const o=[];return a.ast.translate(o),o.filter((([c])=>OM.includes(c))).map((([c,d])=>c==="template-expression-param-name"?Object.prototype.hasOwnProperty.call(e,d)?n.encoder(e[d],d):`{${d}}`:d)).join("")};new tx,new ns;const kM={body:function({req:e,value:r}){r!==void 0&&(e.body=r)},header:function({req:e,parameter:r,value:n}){e.headers=e.headers||{},n!==void 0&&(e.headers[r.name]=n)},query:function({req:e,value:r,parameter:n}){if(e.query=e.query||{},r===!1&&n.type==="boolean"&&(r="false"),r===0&&["number","integer"].indexOf(n.type)>-1&&(r="0"),r)e.query[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&r!==void 0){const a=n.name;e.query[a]=e.query[a]||{},e.query[a].allowEmptyValue=!0}},path:function({req:e,value:r,parameter:n,baseURL:a}){if(r!==void 0){const o=e.url.replace(a,""),p=x1(o,{[n.name]:r});e.url=a+p}},formData:function({req:e,value:r,parameter:n}){if(r===!1&&n.type==="boolean"&&(r="false"),r===0&&["number","integer"].indexOf(n.type)>-1&&(r="0"),r)e.form=e.form||{},e.form[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&r!==void 0){e.form=e.form||{};const a=n.name;e.form[a]=e.form[a]||{},e.form[a].allowEmptyValue=!0}}};function bv(t,e){return Yn()(e).call(e,"application/json")?typeof t=="string"?t:(Array.isArray(t)&&(t=t.map((r=>{try{return JSON.parse(r)}catch{return r}}))),JSON.stringify(t)):String(t)}function Pm(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"lenient-cookie-string",lower:"lenient-cookie-string",index:0,isBkr:!1},this.rules[1]={name:"lenient-cookie-entry",lower:"lenient-cookie-entry",index:1,isBkr:!1},this.rules[2]={name:"lenient-cookie-pair",lower:"lenient-cookie-pair",index:2,isBkr:!1},this.rules[3]={name:"lenient-cookie-pair-invalid",lower:"lenient-cookie-pair-invalid",index:3,isBkr:!1},this.rules[4]={name:"lenient-cookie-name",lower:"lenient-cookie-name",index:4,isBkr:!1},this.rules[5]={name:"lenient-cookie-value",lower:"lenient-cookie-value",index:5,isBkr:!1},this.rules[6]={name:"lenient-quoted-value",lower:"lenient-quoted-value",index:6,isBkr:!1},this.rules[7]={name:"lenient-quoted-char",lower:"lenient-quoted-char",index:7,isBkr:!1},this.rules[8]={name:"lenient-cookie-octet",lower:"lenient-cookie-octet",index:8,isBkr:!1},this.rules[9]={name:"cookie-string",lower:"cookie-string",index:9,isBkr:!1},this.rules[10]={name:"cookie-pair",lower:"cookie-pair",index:10,isBkr:!1},this.rules[11]={name:"cookie-name",lower:"cookie-name",index:11,isBkr:!1},this.rules[12]={name:"cookie-value",lower:"cookie-value",index:12,isBkr:!1},this.rules[13]={name:"cookie-octet",lower:"cookie-octet",index:13,isBkr:!1},this.rules[14]={name:"OWS",lower:"ows",index:14,isBkr:!1},this.rules[15]={name:"token",lower:"token",index:15,isBkr:!1},this.rules[16]={name:"tchar",lower:"tchar",index:16,isBkr:!1},this.rules[17]={name:"CHAR",lower:"char",index:17,isBkr:!1},this.rules[18]={name:"CTL",lower:"ctl",index:18,isBkr:!1},this.rules[19]={name:"separators",lower:"separators",index:19,isBkr:!1},this.rules[20]={name:"SP",lower:"sp",index:20,isBkr:!1},this.rules[21]={name:"HT",lower:"ht",index:21,isBkr:!1},this.rules[22]={name:"ALPHA",lower:"alpha",index:22,isBkr:!1},this.rules[23]={name:"DIGIT",lower:"digit",index:23,isBkr:!1},this.rules[24]={name:"DQUOTE",lower:"dquote",index:24,isBkr:!1},this.rules[25]={name:"WSP",lower:"wsp",index:25,isBkr:!1},this.rules[26]={name:"HTAB",lower:"htab",index:26,isBkr:!1},this.rules[27]={name:"CRLF",lower:"crlf",index:27,isBkr:!1},this.rules[28]={name:"CR",lower:"cr",index:28,isBkr:!1},this.rules[29]={name:"LF",lower:"lf",index:29,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5,6]},this.rules[0].opcodes[4]={type:7,string:[59]},this.rules[0].opcodes[5]={type:4,index:14},this.rules[0].opcodes[6]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[2].opcodes[1]={type:4,index:14},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:14},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:14},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:14},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:16},this.rules[3].opcodes[4]={type:4,index:14},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4]},this.rules[4].opcodes[2]={type:5,min:33,max:58},this.rules[4].opcodes[3]={type:6,string:[60]},this.rules[4].opcodes[4]={type:5,min:62,max:126},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,6]},this.rules[5].opcodes[1]={type:2,children:[2,3]},this.rules[5].opcodes[2]={type:4,index:6},this.rules[5].opcodes[3]={type:3,min:0,max:1},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:4,index:8},this.rules[5].opcodes[6]={type:3,min:0,max:1/0},this.rules[5].opcodes[7]={type:4,index:8},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,4]},this.rules[6].opcodes[1]={type:4,index:24},this.rules[6].opcodes[2]={type:3,min:0,max:1/0},this.rules[6].opcodes[3]={type:4,index:7},this.rules[6].opcodes[4]={type:4,index:24},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:5,min:32,max:33},this.rules[7].opcodes[2]={type:5,min:35,max:126},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:33,max:43},this.rules[8].opcodes[2]={type:5,min:45,max:58},this.rules[8].opcodes[3]={type:5,min:60,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,5,6]},this.rules[9].opcodes[4]={type:7,string:[59]},this.rules[9].opcodes[5]={type:4,index:20},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,2,3]},this.rules[10].opcodes[1]={type:4,index:11},this.rules[10].opcodes[2]={type:7,string:[61]},this.rules[10].opcodes[3]={type:4,index:12},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:4,index:15},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,6]},this.rules[12].opcodes[1]={type:2,children:[2,3,5]},this.rules[12].opcodes[2]={type:4,index:24},this.rules[12].opcodes[3]={type:3,min:0,max:1/0},this.rules[12].opcodes[4]={type:4,index:13},this.rules[12].opcodes[5]={type:4,index:24},this.rules[12].opcodes[6]={type:3,min:0,max:1/0},this.rules[12].opcodes[7]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[13].opcodes[1]={type:6,string:[33]},this.rules[13].opcodes[2]={type:5,min:35,max:43},this.rules[13].opcodes[3]={type:5,min:45,max:58},this.rules[13].opcodes[4]={type:5,min:60,max:91},this.rules[13].opcodes[5]={type:5,min:93,max:126},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1/0},this.rules[14].opcodes[1]={type:2,children:[2,4]},this.rules[14].opcodes[2]={type:3,min:0,max:1},this.rules[14].opcodes[3]={type:4,index:27},this.rules[14].opcodes[4]={type:4,index:25},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:1,max:1/0},this.rules[15].opcodes[1]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[35]},this.rules[16].opcodes[3]={type:7,string:[36]},this.rules[16].opcodes[4]={type:7,string:[37]},this.rules[16].opcodes[5]={type:7,string:[38]},this.rules[16].opcodes[6]={type:7,string:[39]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[45]},this.rules[16].opcodes[10]={type:7,string:[46]},this.rules[16].opcodes[11]={type:7,string:[94]},this.rules[16].opcodes[12]={type:7,string:[95]},this.rules[16].opcodes[13]={type:7,string:[96]},this.rules[16].opcodes[14]={type:7,string:[124]},this.rules[16].opcodes[15]={type:7,string:[126]},this.rules[16].opcodes[16]={type:4,index:23},this.rules[16].opcodes[17]={type:4,index:22},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:1,max:127},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:0,max:31},this.rules[18].opcodes[2]={type:6,string:[127]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[19].opcodes[1]={type:7,string:[40]},this.rules[19].opcodes[2]={type:7,string:[41]},this.rules[19].opcodes[3]={type:7,string:[60]},this.rules[19].opcodes[4]={type:7,string:[62]},this.rules[19].opcodes[5]={type:7,string:[64]},this.rules[19].opcodes[6]={type:7,string:[44]},this.rules[19].opcodes[7]={type:7,string:[59]},this.rules[19].opcodes[8]={type:7,string:[58]},this.rules[19].opcodes[9]={type:7,string:[92]},this.rules[19].opcodes[10]={type:6,string:[34]},this.rules[19].opcodes[11]={type:7,string:[47]},this.rules[19].opcodes[12]={type:7,string:[91]},this.rules[19].opcodes[13]={type:7,string:[93]},this.rules[19].opcodes[14]={type:7,string:[63]},this.rules[19].opcodes[15]={type:7,string:[61]},this.rules[19].opcodes[16]={type:7,string:[123]},this.rules[19].opcodes[17]={type:7,string:[125]},this.rules[19].opcodes[18]={type:4,index:20},this.rules[19].opcodes[19]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:6,string:[32]},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:6,string:[9]},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2]},this.rules[22].opcodes[1]={type:5,min:65,max:90},this.rules[22].opcodes[2]={type:5,min:97,max:122},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:5,min:48,max:57},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:6,string:[34]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:1,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:20},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:6,string:[9]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:6,string:[13]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:6,string:[10]},this.toString=function(){return`; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1 +lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry ) +lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid +lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS +lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored +lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "=" +lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet +lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE +lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE +lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E + ; Allow all printable characters except CTLs, semicolon and SP + +; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1 +cookie-string = cookie-pair *( ";" SP cookie-pair ) + +; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1 +; https://www.rfc-editor.org/errata/eid5518 +cookie-pair = cookie-name "=" cookie-value +cookie-name = token +cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet + ; https://www.rfc-editor.org/errata/eid8242 +cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E + ; US-ASCII characters excluding CTLs, + ; whitespace, DQUOTE, comma, semicolon, + ; and backslash + +; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2 +OWS = *( [ CRLF ] WSP ) ; "optional" whitespace + +; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2 +token = 1*(tchar) +tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" + / "+" / "-" / "." / "^" / "_" / "\`" / "|" / "~" + / DIGIT / ALPHA + ; any VCHAR, except delimiters + +; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2 +CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127) +CTL = %x00-1F / %x7F ; any US-ASCII control character +separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT +SP = %x20 ; US-ASCII SP, space (32) +HT = %x09 ; US-ASCII HT, horizontal-tab (9) + +; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1 +ALPHA = %x41-5A / %x61-7A ; A-Z / a-z +DIGIT = %x30-39 ; 0-9 +DQUOTE = %x22 ; " (Double Quote) +WSP = SP / HTAB ; white space +HTAB = %x09 ; horizontal tab +CRLF = CR LF ; Internet standard newline +CR = %x0D ; carriage return +LF = %x0A ; linefeed +`}}new Pm;const AM=t=>{if(typeof t!="string"||[...t].length!==1)throw new TypeError("Input must be a single character string.");const e=t.codePointAt(0);return e<=127?`%${e.toString(16).toUpperCase().padStart(2,"0")}`:encodeURIComponent(t)},wv=t=>t.length>=2&&t.startsWith('"')&&t.endsWith('"'),rx=t=>wv(t)?t.slice(1,-1):t,nx=t=>`"${t}"`,ax=t=>t,CM=new ns,jM=new Pm,_1=(t,{strict:e=!0,quoted:r=null}={})=>{try{const n=e?"cookie-value":"lenient-cookie-value",a=CM.parse(jM,n,t);return typeof r=="boolean"?a.success&&r===wv(t):a.success}catch{return!1}},ox=t=>{const e=new TextEncoder().encode(t).reduce(((r,n)=>r+String.fromCharCode(n)),"");return btoa(e)},PM=(t,e=ox)=>{const r=String(t);if(_1(r))return r;const n=wv(r),a=e(n?rx(r):r);return n?nx(a):a},NM=t=>(e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""))(ox(t)),TM=t=>PM(t,NM),IM=new ns,MM=new Pm,ix=(t,{strict:e=!0}={})=>{try{const r=e?"cookie-name":"lenient-cookie-name";return IM.parse(MM,r,t).success}catch{return!1}},RM=t=>{if(!ix(t))throw new TypeError(`Invalid cookie name: ${t}`)},sx=t=>{if(!_1(t))throw new TypeError(`Invalid cookie value: ${t}`)},lx={encoders:{name:ax,value:TM},validators:{name:RM,value:sx}},DM=(t,e,r={})=>{const n={...r,encoders:{...lx.encoders,...r.encoders},validators:{...lx.validators,...r.validators}},a=n.encoders.name(t),o=n.encoders.value(e);return n.validators.name(a),n.validators.value(o),`${a}=${o}`},FM=(t,e={})=>(Array.isArray(t)?t:typeof t=="object"&&t!==null?Object.entries(t):[]).map((([r,n])=>DM(r,n,e))).join("; "),LM=new ns,$M=new Pm,BM=t=>{const e=String(t);if(_1(e))return e;const r=wv(e),n=r?rx(e):e;let a="";for(const o of n)a+=LM.parse($M,"cookie-octet",o).success?o:AM(o);return r?nx(a):a};new ns,new Pm;const qM=t=>{if(!ix(t,{strict:!1}))throw new TypeError(`Invalid cookie name: ${t}`)},UM=t=>BM(t).replace(/[=&]/gu,(e=>e==="="?"%3D":"%26")),O1=(t,e={})=>FM(t,Py({encoders:{name:ax,value:UM},validators:{name:qM,value:sx}},e));function zM({req:t,value:e,parameter:r,baseURL:n}){const{name:a,style:o,explode:p,content:c}=r;if(e===void 0)return;const d=t.url.replace(n,"");let E;if(c){const x=Object.keys(c)[0];E=x1(d,{[a]:e},{encoder:k=>JE(bv(k,x))})}else E=x1(d,{[a]:e},{encoder:x=>q0({key:r.name,value:x,style:o||"simple",explode:p??!1,escape:"reserved"})});t.url=n+E}function VM({req:t,value:e,parameter:r}){if(t.query=t.query||{},e!==void 0&&r.content){const n=bv(e,Object.keys(r.content)[0]);if(n)t.query[r.name]=n;else if(r.allowEmptyValue){const a=r.name;t.query[a]=t.query[a]||{},t.query[a].allowEmptyValue=!0}}else if(e===!1&&(e="false"),e===0&&(e="0"),e){const{style:n,explode:a,allowReserved:o}=r;t.query[r.name]={value:e,serializationOption:{style:n,explode:a,allowReserved:o}}}else if(r.allowEmptyValue&&e!==void 0){const n=r.name;t.query[n]=t.query[n]||{},t.query[n].allowEmptyValue=!0}}const JM=["accept","authorization","content-type"];function WM({req:t,parameter:e,value:r}){if(t.headers=t.headers||{},!(JM.indexOf(e.name.toLowerCase())>-1))if(r!==void 0&&e.content){const n=Object.keys(e.content)[0];t.headers[e.name]=bv(r,n)}else r===void 0||Array.isArray(r)&&r.length===0||(t.headers[e.name]=q0({key:e.name,value:r,style:e.style||"simple",explode:e.explode!==void 0&&e.explode,escape:!1}))}function HM({req:t,parameter:e,value:r}){const{name:n}=e;if(t.headers=t.headers||{},r!==void 0&&e.content){const a=bv(r,Object.keys(e.content)[0]);t.headers.Cookie=O1({[n]:a})}else if(r!==void 0&&(!Array.isArray(r)||r.length!==0)){const a=q0({key:e.name,value:r,escape:!1,style:e.style||"form",explode:e.explode??!1}),o=Array.isArray(r)&&e.explode?`${n}=${a}`:a;t.headers.Cookie=O1({[n]:o})}}const KM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,{btoa:GM}=KM,cx=GM;function YM(t,e){const{operation:r,requestBody:n,securities:a,spec:o,attachContentTypeForEmptyPayload:p}=t;let{requestContentType:c}=t;e=(function({request:P,securities:R={},operation:L={},spec:V}){const Q={...P},{authorized:J={}}=R,re=L.security||V.security||[],me=J&&!!Object.keys(J).length,le=V?.components?.securitySchemes||{};return Q.headers=Q.headers||{},Q.query=Q.query||{},!Object.keys(R).length||!me||!re||Array.isArray(L.security)&&!L.security.length?P:(re.forEach((ve=>{Object.keys(ve).forEach((be=>{const ce=J[be],_e=le[be];if(!ce)return;const Ae=ce.value||ce,{type:xe}=_e;if(ce){if(xe==="apiKey")_e.in==="query"&&(Q.query[_e.name]=Ae),_e.in==="header"&&(Q.headers[_e.name]=Ae),_e.in==="cookie"&&(Q.cookies[_e.name]=Ae);else if(xe==="http"){if(/^basic$/i.test(_e.scheme)){const Oe=Ae.username||"",je=Ae.password||"",G=cx(`${Oe}:${je}`);Q.headers.Authorization=`Basic ${G}`}/^bearer$/i.test(_e.scheme)&&(Q.headers.Authorization=`Bearer ${Ae}`)}else if(xe==="oauth2"||xe==="openIdConnect"){const Oe=ce.token||{},je=Oe[_e["x-tokenName"]||"access_token"];let G=Oe.token_type;G&&G.toLowerCase()!=="bearer"||(G="Bearer"),Q.headers.Authorization=`${G} ${je}`}}}))})),Q)})({request:e,securities:a,operation:r,spec:o});const d=r.requestBody||{},E=Object.keys(d.content||{}),x=c&&E.indexOf(c)>-1;if(n||p){if(c&&x)e.headers["Content-Type"]=c;else if(!c){const k=E[0];k&&(e.headers["Content-Type"]=k,c=k)}}else c&&x&&(e.headers["Content-Type"]=c);if(!t.responseContentType&&r.responses){const k=Object.entries(r.responses).filter((([P,R])=>{const L=parseInt(P,10);return L>=200&&L<300&&Ls(R.content)})).reduce(((P,[,R])=>P.concat(Object.keys(R.content))),[]);k.length>0&&(e.headers.accept=k.join(", "))}if(n)if(c){if(E.indexOf(c)>-1)if(c==="application/x-www-form-urlencoded"||c==="multipart/form-data")if(typeof n=="object"){const k=d.content[c]?.encoding??{};e.form={},Object.keys(n).forEach((P=>{let R;try{R=JSON.parse(n[P])}catch{R=n[P]}e.form[P]={value:R,encoding:k[P]||{}}}))}else if(typeof n=="string"){const k=d.content[c]?.encoding??{};try{e.form={};const P=JSON.parse(n);Object.entries(P).forEach((([R,L])=>{e.form[R]={value:L,encoding:k[R]||{}}}))}catch{e.form=n}}else e.form=n;else e.body=n}else e.body=n;return e}function XM(t,e){const{spec:r,operation:n,securities:a,requestContentType:o,responseContentType:p,attachContentTypeForEmptyPayload:c}=t;if(e=(function({request:E,securities:x={},operation:k={},spec:P}){const R={...E},{authorized:L={},specSecurity:V=[]}=x,Q=k.security||V,J=L&&!!Object.keys(L).length,re=P.securityDefinitions;return R.headers=R.headers||{},R.query=R.query||{},!Object.keys(x).length||!J||!Q||Array.isArray(k.security)&&!k.security.length?E:(Q.forEach((me=>{Object.keys(me).forEach((le=>{const ve=L[le];if(!ve)return;const{token:be}=ve,ce=ve.value||ve,_e=re[le],{type:Ae}=_e,xe=_e["x-tokenName"]||"access_token",Oe=be&&be[xe];let je=be&&be.token_type;if(ve)if(Ae==="apiKey"){const G=_e.in==="query"?"query":"headers";R[G]=R[G]||{},R[G][_e.name]=ce}else if(Ae==="basic")if(ce.header)R.headers.authorization=ce.header;else{const G=ce.username||"",de=ce.password||"";ce.base64=cx(`${G}:${de}`),R.headers.authorization=`Basic ${ce.base64}`}else Ae==="oauth2"&&Oe&&(je=je&&je.toLowerCase()!=="bearer"?je:"Bearer",R.headers.authorization=`${je} ${Oe}`)}))})),R)})({request:e,securities:a,operation:n,spec:r}),e.body||e.form||c)o?e.headers["Content-Type"]=o:Array.isArray(n.consumes)?[e.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[e.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter((d=>d.type==="file")).length?e.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter((d=>d.in==="formData")).length&&(e.headers["Content-Type"]="application/x-www-form-urlencoded");else if(o){const d=n.parameters&&n.parameters.filter((x=>x.in==="body")).length>0,E=n.parameters&&n.parameters.filter((x=>x.in==="formData")).length>0;(d||E)&&(e.headers["Content-Type"]=o)}return!p&&Array.isArray(n.produces)&&n.produces.length>0&&(e.headers.accept=n.produces.join(", ")),e}function QM(t,e){return(function(n,a,o){if(!n||typeof n!="object"||!n.paths||typeof n.paths!="object")return null;const{paths:p}=n,c=rS(n);for(const d in p){for(const x in p[d]){if(x.toUpperCase()==="PARAMETERS"||x==="additionalOperations")continue;const k=p[d][x];if(!k||typeof k!="object")continue;const P={spec:n,pathName:d,method:x.toUpperCase(),operation:k};if(a(P))return P}const{additionalOperations:E}=p[d];if(c&&E&&typeof E=="object")for(const x of Object.keys(E)){const k=E[x];if(!k||typeof k!="object")continue;const P={spec:n,pathName:d,method:x,operation:k};if(a(P))return P}}})(t,e)||null}function ux(t,e){return`${e.toLowerCase()}-${t}`}const px=t=>Array.isArray(t)?t:[],ZM=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,Nm=(t,{recurse:e=!0,depth:r=1}={})=>{var n,a;if(Ls(t)){if(t.type==="object"||t.type==="array"||Array.isArray(t.type)&&(Yn()(n=t.type).call(n,"object")||Yn()(a=t.type).call(a,"array")))return t;if(!(r>NE)&&e){const o=Array.isArray(t.oneOf)?t.oneOf.find((c=>Nm(c,{recurse:e,depth:r+1}))):void 0;if(o)return o;const p=Array.isArray(t.anyOf)?t.anyOf.find((c=>Nm(c,{recurse:e,depth:r+1}))):void 0;if(p)return p}}},hx=({value:t,silentFail:e=!1})=>{try{const r=JSON.parse(t);if(Ls(r)||Array.isArray(r))return r;if(!e)throw new Error("Expected JSON serialized object or array")}catch{if(!e)throw new Error("Could not parse parameter value string as JSON Object or JSON Array")}return t},k1=t=>{try{return new URL(t)}catch{const e=new URL(t,Sy),r=String(t).startsWith("/")?e.pathname:e.pathname.substring(1);return{hash:e.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:e.search,searchParams:e.searchParams}}};class eR extends xr{}const tR={buildRequest:dx};function rR({http:t,fetch:e,spec:r,operationId:n,pathName:a,method:o,parameters:p,securities:c,...d}){const E=t||e||Mf;a&&o&&!n&&(n=ux(a,o));const x=tR.buildRequest({spec:r,operationId:n,parameters:p,securities:c,http:E,...d});return x.body&&(Ls(x.body)||Array.isArray(x.body))&&(x.body=JSON.stringify(x.body)),E(x)}function dx(t){const{spec:e,operationId:r,responseContentType:n,scheme:a,requestInterceptor:o,responseInterceptor:p,contextUrl:c,userFetch:d,server:E,serverVariables:x,http:k,signal:P,serverVariableEncoder:R}=t;let{parameters:L,parameterBuilders:V,baseURL:Q}=t;const J=nS(e);V||(V=J?ke:kM);let re={url:"",credentials:k&&k.withCredentials?"include":"same-origin",headers:{},cookies:{}};P&&(re.signal=P),o&&(re.requestInterceptor=o),p&&(re.responseInterceptor=p),d&&(re.userFetch=d);const me=(function(Oe,je){return Oe&&Oe.paths?QM(Oe,(({pathName:G,method:de,operation:Ne})=>{if(!Ne||typeof Ne!="object")return!1;const Ye=Ne.operationId;return[Df(Ne,G,de),ux(G,de),Ye].some((ht=>ht&&ht===je))})):null})(e,r);if(!me)throw new eR(`Operation ${r} not found`);const{operation:le={},method:ve,pathName:be}=me;if(!(xe=>typeof xe=="string"&&ZM.test(xe))(ve))throw new Error("Invalid HTTP method");if(Q=Q??(function(Oe){return nS(Oe.spec)?(function({spec:de,pathName:Ne,method:Ye,operation:ht,server:Ct,contextUrl:_t,serverVariables:qt={},serverVariableEncoder:It}){let Ot,et=[],Dt="";const or=ht?.servers??de?.paths?.[Ne]?.[(Ye||"").toLowerCase()]?.servers,Ut=de?.paths?.[Ne]?.servers,pr=de?.servers;if(et=C1(or)?or:C1(Ut)?Ut:C1(pr)?pr:[YA],Ct&&(Ot=et.find((W=>W.url===Ct)),Ot&&(Dt=Ct)),Dt||([Ot]=et,Dt=Ot.url),dM(Dt,{strict:!0})){const W=Object.entries({...Ot.variables}).reduce((($e,[Je,Ft])=>($e[Je]=Ft.default,$e)),{});Dt=gM(Dt,{...W,...qt},{encoder:typeof It=="function"?It:T2})}return(function($e="",Je=""){const Ft=k1($e&&Je?go(Je,$e):$e),it=k1(Je),bt=A1(Ft.protocol)||A1(it.protocol),ut=Ft.host||it.host,Xt=Ft.pathname;let zt;return zt=bt&&ut?`${bt}://${ut+Xt}`:Xt,zt[zt.length-1]==="/"?zt.slice(0,-1):zt})(Dt,_t)})(Oe):(function({spec:de,scheme:Ne,contextUrl:Ye=""}){const ht=k1(Ye),Ct=Array.isArray(de.schemes)?de.schemes[0]:null,_t=Ne||Ct||A1(ht.protocol)||"http",qt=de.host||ht.host||"",It=de.basePath||"";let Ot;return Ot=qt?`${_t}://${qt+It}`:It,Ot[Ot.length-1]==="/"?Ot.slice(0,-1):Ot})(Oe)})({spec:e,scheme:a,contextUrl:c,server:E,serverVariables:x,pathName:be,method:ve,operation:le,serverVariableEncoder:R}),re.url+=Q,!r)return delete re.cookies,re;re.url+=be,re.method=ve,L=L||{};const ce=e.paths[be]||{};n&&(re.headers.accept=n);const _e=(xe=>{const Oe={};xe.forEach((G=>{Oe[G.in]||(Oe[G.in]={}),Oe[G.in][G.name]=G}));const je=[];return Object.keys(Oe).forEach((G=>{Object.keys(Oe[G]).forEach((de=>{je.push(Oe[G][de])}))})),je})([].concat(px(le.parameters)).concat(px(ce.parameters)));_e.forEach((xe=>{const Oe=V[xe.in];let je;if(xe.in==="body"&&xe.schema&&xe.schema.properties&&(je=L),je=xe&&xe.name&&L[xe.name],je===void 0?je=xe&&xe.name&&L[`${xe.in}.${xe.name}`]:((G,de)=>de.filter((Ne=>Ne.name===G)))(xe.name,_e).length>1&&console.warn(`Parameter '${xe.name}' is ambiguous because the defined spec has more than one parameter with the name: '${xe.name}' and the passed-in parameter values did not define an 'in' value.`),je!==null){if(xe.default!==void 0&&je===void 0&&(je=xe.default),je===void 0&&xe.required&&!xe.allowEmptyValue)throw new Error(`Required parameter ${xe.name} is not provided`);J&&typeof je=="string"&&($f("type",xe.schema)&&typeof xe.schema.type=="string"&&Nm(xe.schema,{recurse:!1})?je=hx({value:je,silentFail:!1}):($f("type",xe.schema)&&Array.isArray(xe.schema.type)&&Nm(xe.schema,{recurse:!1})||!$f("type",xe.schema)&&Nm(xe.schema,{recurse:!0}))&&(je=hx({value:je,silentFail:!0}))),Oe&&Oe({req:re,parameter:xe,value:je,operation:le,spec:e,baseURL:Q})}}));const Ae={...t,operation:le};if(re=J?YM(Ae,re):XM(Ae,re),re.cookies&&Object.keys(re.cookies).length>0){const xe=O1(re.cookies);$y(re.headers.Cookie)?re.headers.Cookie+=`; ${xe}`:re.headers.Cookie=xe}return re.cookies&&delete re.cookies,U0(re)}const A1=t=>t?t.replace(/\W/g,""):null,C1=t=>Array.isArray(t)&&t.length>0,nR=t=>async(e,r,n={})=>(async(a,o,p={})=>{const{returnEntireTree:c,baseDoc:d,requestInterceptor:E,responseInterceptor:x,parameterMacro:k,modelPropertyMacro:P,useCircularStructures:R,strategies:L}=p,V={spec:a,pathDiscriminator:o,baseDoc:d,requestInterceptor:E,responseInterceptor:x,parameterMacro:k,modelPropertyMacro:P,useCircularStructures:R,strategies:L},Q=L.find((re=>re.match(a))).normalize(a),J=await sM({spec:Q,...V,allowMetaPatches:!0,skipNormalization:!Y0(a)});return!c&&Array.isArray(o)&&o.length&&(J.spec=o.reduce(((re,me)=>re?.[me]),J.spec)||null),J})(e,r,{...t,...n}),aR=((t,e)=>(...r)=>{t(...r);const n=e.getConfigs().withCredentials;e.fn.fetch.withCredentials=n});function fx({configs:t,getConfigs:e}){return{fn:{fetch:(r=Mf,n=t.preFetch,a=t.postFetch,a=a||(o=>o),n=n||(o=>o),o=>(typeof o=="string"&&(o={url:o}),o=U0(o),o=n(o),a(r(o)))),buildRequest:dx,execute:rR,resolve:Z2({strategies:[Q2,Q0,X0,G0]}),resolveSubtree:async(o,p,c={})=>{const d=e(),E={modelPropertyMacro:d.modelPropertyMacro,parameterMacro:d.parameterMacro,requestInterceptor:d.requestInterceptor,responseInterceptor:d.responseInterceptor,strategies:[Q2,Q0,X0,G0]};return nR(E)(o,p,c)},serializeRes:GE,opId:Df},statePlugins:{configs:{wrapActions:{loaded:aR}}}};var r,n,a}function mx(){return{fn:{shallowEqualKeys:fi,sanitizeUrl:Dr}}}var gx=Be(40961),oR=(Be(78418),u.version.startsWith("19")),iR=Symbol.for(oR?"react.transitional.element":"react.element"),sR=Symbol.for("react.portal"),lR=Symbol.for("react.fragment"),cR=Symbol.for("react.strict_mode"),uR=Symbol.for("react.profiler"),pR=Symbol.for("react.consumer"),hR=Symbol.for("react.context"),yx=Symbol.for("react.forward_ref"),dR=Symbol.for("react.suspense"),fR=Symbol.for("react.suspense_list"),j1=Symbol.for("react.memo"),mR=Symbol.for("react.lazy"),gR=yx,yR=j1;function vR(t){if(typeof t=="object"&&t!==null){const{$$typeof:e}=t;switch(e){case iR:switch(t=t.type){case lR:case uR:case cR:case dR:case fR:return t;default:switch(t=t&&t.$$typeof){case hR:case yx:case mR:case j1:case pR:return t;default:return e}}case sR:return e}}}function bR(t,e,r,n,{areStatesEqual:a,areOwnPropsEqual:o,areStatePropsEqual:p}){let c,d,E,x,k,P=!1;function R(L,V){const Q=!o(V,d),J=!a(L,c,V,d);return c=L,d=V,Q&&J?(function(){return E=t(c,d),e.dependsOnOwnProps&&(x=e(n,d)),k=r(E,x,d),k})():Q?(function(){return t.dependsOnOwnProps&&(E=t(c,d)),e.dependsOnOwnProps&&(x=e(n,d)),k=r(E,x,d),k})():J?(function(){const me=t(c,d),le=!p(me,E);return E=me,le&&(k=r(E,x,d)),k})():k}return function(V,Q){return P?R(V,Q):(function(re,me){return c=re,d=me,E=t(c,d),x=e(n,d),k=r(E,x,d),P=!0,k})(V,Q)}}function P1(t){return function(r){const n=t(r);function a(){return n}return a.dependsOnOwnProps=!1,a}}function vx(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function bx(t,e){return function(n,{displayName:a}){const o=function(c,d){return o.dependsOnOwnProps?o.mapToProps(c,d):o.mapToProps(c,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(c,d){o.mapToProps=t,o.dependsOnOwnProps=vx(t);let E=o(c,d);return typeof E=="function"&&(o.mapToProps=E,o.dependsOnOwnProps=vx(E),E=o(c,d)),E},o}}function N1(t,e){return(r,n)=>{throw new Error(`Invalid value of type ${typeof t} for ${e} argument when connecting component ${n.wrappedComponentName}.`)}}function wR(t,e,r){return{...r,...t,...e}}function ER(t){t()}var wx={notify(){},get:()=>[]};function Ex(t,e){let r,n=wx,a=0,o=!1;function p(){E.onStateChange&&E.onStateChange()}function c(){a++,r||(r=e?e.addNestedSub(p):t.subscribe(p),n=(function(){let k=null,P=null;return{clear(){k=null,P=null},notify(){ER((()=>{let R=k;for(;R;)R.callback(),R=R.next}))},get(){const R=[];let L=k;for(;L;)R.push(L),L=L.next;return R},subscribe(R){let L=!0;const V=P={callback:R,next:null,prev:P};return V.prev?V.prev.next=V:k=V,function(){L&&k!==null&&(L=!1,V.next?V.next.prev=V.prev:P=V.prev,V.prev?V.prev.next=V.next:k=V.next)}}}})())}function d(){a--,r&&a===0&&(r(),r=void 0,n.clear(),n=wx)}const E={addNestedSub:function(k){c();const P=n.subscribe(k);let R=!1;return()=>{R||(R=!0,P(),d())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:p,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,c())},tryUnsubscribe:function(){o&&(o=!1,d())},getListeners:()=>n};return E}var SR=!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0),xR=typeof navigator<"u"&&navigator.product==="ReactNative",Ev=SR||xR?u.useLayoutEffect:u.useEffect;function Sx(t,e){return t===e?t!==0||e!==0||1/t==1/e:t!=t&&e!=e}function T1(t,e){if(Sx(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let a=0;a({})))})(t),P=(function(Q){return Q&&typeof Q=="object"?P1((J=>(function(me,le){const ve={};for(const be in me){const ce=me[be];typeof ce=="function"&&(ve[be]=(..._e)=>le(ce(..._e)))}return ve})(Q,J))):Q?typeof Q=="function"?bx(Q):N1(Q,"mapDispatchToProps"):P1((J=>({dispatch:J})))})(e),R=(function(Q){return Q?typeof Q=="function"?(function(re){return function(le,{displayName:ve,areMergedPropsEqual:be}){let ce,_e=!1;return function(xe,Oe,je){const G=re(xe,Oe,je);return _e?be(G,ce)||(ce=G):(_e=!0,ce=G),ce}}})(Q):N1(Q,"mergeProps"):()=>wR})(r),L=!!t;return V=>{const Q=V.displayName||V.name||"Component",J=`Connect(${Q})`,re={shouldHandleStateChanges:L,displayName:J,wrappedComponentName:Q,WrappedComponent:V,initMapStateToProps:k,initMapDispatchToProps:P,initMergeProps:R,areStatesEqual:a,areStatePropsEqual:p,areOwnPropsEqual:o,areMergedPropsEqual:c};function me(ve){const[be,ce,_e]=u.useMemo((()=>{const{reactReduxForwardedRef:$e,...Je}=ve;return[ve.context,$e,Je]}),[ve]),Ae=u.useMemo((()=>x),[be,x]),xe=u.useContext(Ae),Oe=!!ve.store&&!!ve.store.getState&&!!ve.store.dispatch,je=!!xe&&!!xe.store,G=Oe?ve.store:xe.store,de=je?xe.getServerState:G.getState,Ne=u.useMemo((()=>(function(Je,{initMapStateToProps:Ft,initMapDispatchToProps:it,initMergeProps:bt,...ut}){return bR(Ft(Je,ut),it(Je,ut),bt(Je,ut),Je,ut)})(G.dispatch,re)),[G]),[Ye,ht]=u.useMemo((()=>{if(!L)return MR;const $e=Ex(G,Oe?void 0:xe.subscription),Je=$e.notifyNestedSubs.bind($e);return[$e,Je]}),[G,Oe,xe]),Ct=u.useMemo((()=>Oe?xe:{...xe,subscription:Ye}),[Oe,xe,Ye]),_t=u.useRef(void 0),qt=u.useRef(_e),It=u.useRef(void 0),Ot=u.useRef(!1),et=u.useRef(!1),Dt=u.useRef(void 0);Ev((()=>(et.current=!0,()=>{et.current=!1})),[]);const or=u.useMemo((()=>()=>It.current&&_e===qt.current?It.current:Ne(G.getState(),_e)),[G,_e]),Ut=u.useMemo((()=>$e=>Ye?(function(Ft,it,bt,ut,Xt,zt,tr,Er,dr,qr,en){if(!Ft)return()=>{};let kn=!1,ln=null;const jt=()=>{if(kn||!Er.current)return;const We=it.getState();let Kr,Lr;try{Kr=ut(We,Xt.current)}catch(zr){Lr=zr,ln=zr}Lr||(ln=null),Kr===zt.current?tr.current||qr():(zt.current=Kr,dr.current=Kr,tr.current=!0,en())};return bt.onStateChange=jt,bt.trySubscribe(),jt(),()=>{if(kn=!0,bt.tryUnsubscribe(),bt.onStateChange=null,ln)throw ln}})(L,G,Ye,Ne,qt,_t,Ot,et,It,ht,$e):()=>{}),[Ye]);let pr;(function(Je,Ft,it){Ev((()=>Je(...Ft)),it)})(RR,[qt,_t,Ot,_e,It,ht]);try{pr=u.useSyncExternalStore(Ut,or,de?()=>Ne(de(),_e):or)}catch($e){throw Dt.current&&($e.message+=` +The error may be correlated with this previous error: +${Dt.current.stack} + +`),$e}Ev((()=>{Dt.current=void 0,It.current=void 0,_t.current=pr}));const W=u.useMemo((()=>u.createElement(V,{...pr,ref:ce})),[ce,V,pr]);return u.useMemo((()=>L?u.createElement(Ae.Provider,{value:Ct},W):W),[Ae,W,Ct])}const le=u.memo(me);if(le.WrappedComponent=V,le.displayName=me.displayName=J,d){const ve=u.forwardRef((function(ce,_e){return u.createElement(le,{...ce,reactReduxForwardedRef:_e})}));return ve.displayName=J,ve.WrappedComponent=V,I1(ve,V)}return I1(le,V)}}var LR=FR,$R=function(e){const{children:r,context:n,serverState:a,store:o}=e,p=u.useMemo((()=>{const E=Ex(o);return{store:o,subscription:E,getServerState:a?()=>a:void 0}}),[o,a]),c=u.useMemo((()=>o.getState()),[o]);Ev((()=>{const{subscription:E}=p;return E.onStateChange=E.notifyNestedSubs,E.trySubscribe(),c!==o.getState()&&E.notifyNestedSubs(),()=>{E.tryUnsubscribe(),E.onStateChange=void 0}}),[p,c]);const d=n||Ax;return u.createElement(d.Provider,{value:p},r)},BR=Be(83488),Cx=Be.n(BR);const qR=t=>e=>{const{fn:r}=t();class n extends u.Component{render(){return u.createElement(e,Yr()({},t(),this.props,this.context))}}return n.displayName=`WithSystem(${r.getDisplayName(e)})`,n},UR=(t,e)=>r=>{const{fn:n}=t();class a extends u.Component{render(){return u.createElement($R,{store:e},u.createElement(r,Yr()({},this.props,this.context)))}}return a.displayName=`WithRoot(${n.getDisplayName(r)})`,a},jx=(t,e,r)=>Wt(r?UR(t,r):Cx(),LR(((n,a)=>{const o={...a,...t()};return(e.prototype?.mapStateToProps||(c=>({state:c})))(n,o)})),qR(t))(e),Px=(t,e,r,n)=>{for(const a in e){const o=e[a];typeof o=="function"&&o(r[a],n[a],t())}},zR=(t,e,r)=>(n,a)=>{const{fn:o}=t(),p=r(n,"root");class c extends u.Component{constructor(E,x){super(E,x),Px(t,a,E,{})}UNSAFE_componentWillReceiveProps(E){Px(t,a,E,this.props)}render(){const E=Ha()(this.props,a?Object.keys(a):[]);return u.createElement(p,E)}}return c.displayName=`WithMappedContainer(${o.getDisplayName(p)})`,c},VR=(t,e,r,n)=>a=>{const o=r(t,e,n)("App","root"),{createRoot:p}=gx;p(a).render(u.createElement(o,null))},M1=(t,e,r)=>(n,a,o={})=>{if(typeof n!="string")throw new TypeError("Need a string, to fetch a component. Was given a "+typeof n);const p=r(n);return p?a?a==="root"?jx(t,p,e()):jx(t,p):p:(o.failSilently||t().log.warn("Could not find component:",n),null)},JR=t=>t.displayName||t.name||"Component",Nx=({getComponents:t,getStore:e,getSystem:r})=>{const n=(a=M1(r,e,t),fs(a,((...p)=>JSON.stringify(p))));var a;const o=(p=>gu(p,((...c)=>c)))(zR(r,0,n));return{rootInjects:{getComponent:n,makeMappedContainer:o,render:VR(r,e,M1,t)},fn:{getDisplayName:JR}}},Tx=({React:t,getSystem:e,getStore:r,getComponents:n})=>{const a={},o=parseInt(t?.version,10);return o>=16&&o<18&&(a.render=((p,c,d,E)=>x=>{const k=d(p,c,E)("App","root");gx.render(u.createElement(k,null),x)})(e,r,M1,n)),{rootInjects:a}};function Ix(t){let{fn:e}=t;const r={download:a=>({errActions:o,specSelectors:p,specActions:c,getConfigs:d})=>{let{fetch:E}=e;const x=d();function k(P){if(P instanceof Error||P.status>=400)return c.updateLoadingStatus("failed"),o.newThrownErr(Object.assign(new Error((P.message||P.statusText)+" "+a),{source:"fetch"})),void(!P.status&&P instanceof Error&&(function(){try{let L;if("URL"in Qe?L=new URL(a):(L=document.createElement("a"),L.href=a),L.protocol!=="https:"&&Qe.location.protocol==="https:"){const V=Object.assign(new Error(`Possible mixed-content issue? The page was loaded over https:// but a ${L.protocol}// URL was specified. Check that you are not attempting to load mixed content.`),{source:"fetch"});return void o.newThrownErr(V)}if(L.origin!==Qe.location.origin){const V=Object.assign(new Error(`Possible cross-origin (CORS) issue? The URL origin (${L.origin}) does not match the page (${Qe.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`),{source:"fetch"});o.newThrownErr(V)}}catch{return}})());c.updateLoadingStatus("success"),c.updateSpec(P.text),p.url()!==a&&c.updateUrl(a)}a=a||p.url(),c.updateLoadingStatus("loading"),o.clear({source:"fetch"}),E({url:a,loadSpec:!0,requestInterceptor:x.requestInterceptor||(P=>P),responseInterceptor:x.responseInterceptor||(P=>P),credentials:"same-origin",headers:{Accept:"application/json,*/*"}}).then(k,k)},updateLoadingStatus:a=>{let o=[null,"loading","failed","success","failedConfig"];return o.indexOf(a)===-1&&console.error(`Error: ${a} is not one of ${JSON.stringify(o)}`),{type:"spec_update_loading_status",payload:a}}};let n={loadingStatus:yr((a=>a||(0,H.Map)()),(a=>a.get("loadingStatus")||null))};return{statePlugins:{spec:{actions:r,reducers:{spec_update_loading_status:(a,o)=>typeof o.payload=="string"?a.set("loadingStatus",o.payload):a},selectors:n}}}}function R1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return(function(a){if(a.length===0||a.length===1)return a;var o=a.join(".");return L1[o]||(L1[o]=(function(c){var d=c.length;return d===0||d===1?c:d===2?[c[0],c[1],"".concat(c[0],".").concat(c[1]),"".concat(c[1],".").concat(c[0])]:d===3?[c[0],c[1],c[2],"".concat(c[0],".").concat(c[1]),"".concat(c[0],".").concat(c[2]),"".concat(c[1],".").concat(c[0]),"".concat(c[1],".").concat(c[2]),"".concat(c[2],".").concat(c[0]),"".concat(c[2],".").concat(c[1]),"".concat(c[0],".").concat(c[1],".").concat(c[2]),"".concat(c[0],".").concat(c[2],".").concat(c[1]),"".concat(c[1],".").concat(c[0],".").concat(c[2]),"".concat(c[1],".").concat(c[2],".").concat(c[0]),"".concat(c[2],".").concat(c[0],".").concat(c[1]),"".concat(c[2],".").concat(c[1],".").concat(c[0])]:d>=4?[c[0],c[1],c[2],c[3],"".concat(c[0],".").concat(c[1]),"".concat(c[0],".").concat(c[2]),"".concat(c[0],".").concat(c[3]),"".concat(c[1],".").concat(c[0]),"".concat(c[1],".").concat(c[2]),"".concat(c[1],".").concat(c[3]),"".concat(c[2],".").concat(c[0]),"".concat(c[2],".").concat(c[1]),"".concat(c[2],".").concat(c[3]),"".concat(c[3],".").concat(c[0]),"".concat(c[3],".").concat(c[1]),"".concat(c[3],".").concat(c[2]),"".concat(c[0],".").concat(c[1],".").concat(c[2]),"".concat(c[0],".").concat(c[1],".").concat(c[3]),"".concat(c[0],".").concat(c[2],".").concat(c[1]),"".concat(c[0],".").concat(c[2],".").concat(c[3]),"".concat(c[0],".").concat(c[3],".").concat(c[1]),"".concat(c[0],".").concat(c[3],".").concat(c[2]),"".concat(c[1],".").concat(c[0],".").concat(c[2]),"".concat(c[1],".").concat(c[0],".").concat(c[3]),"".concat(c[1],".").concat(c[2],".").concat(c[0]),"".concat(c[1],".").concat(c[2],".").concat(c[3]),"".concat(c[1],".").concat(c[3],".").concat(c[0]),"".concat(c[1],".").concat(c[3],".").concat(c[2]),"".concat(c[2],".").concat(c[0],".").concat(c[1]),"".concat(c[2],".").concat(c[0],".").concat(c[3]),"".concat(c[2],".").concat(c[1],".").concat(c[0]),"".concat(c[2],".").concat(c[1],".").concat(c[3]),"".concat(c[2],".").concat(c[3],".").concat(c[0]),"".concat(c[2],".").concat(c[3],".").concat(c[1]),"".concat(c[3],".").concat(c[0],".").concat(c[1]),"".concat(c[3],".").concat(c[0],".").concat(c[2]),"".concat(c[3],".").concat(c[1],".").concat(c[0]),"".concat(c[3],".").concat(c[1],".").concat(c[2]),"".concat(c[3],".").concat(c[2],".").concat(c[0]),"".concat(c[3],".").concat(c[2],".").concat(c[1]),"".concat(c[0],".").concat(c[1],".").concat(c[2],".").concat(c[3]),"".concat(c[0],".").concat(c[1],".").concat(c[3],".").concat(c[2]),"".concat(c[0],".").concat(c[2],".").concat(c[1],".").concat(c[3]),"".concat(c[0],".").concat(c[2],".").concat(c[3],".").concat(c[1]),"".concat(c[0],".").concat(c[3],".").concat(c[1],".").concat(c[2]),"".concat(c[0],".").concat(c[3],".").concat(c[2],".").concat(c[1]),"".concat(c[1],".").concat(c[0],".").concat(c[2],".").concat(c[3]),"".concat(c[1],".").concat(c[0],".").concat(c[3],".").concat(c[2]),"".concat(c[1],".").concat(c[2],".").concat(c[0],".").concat(c[3]),"".concat(c[1],".").concat(c[2],".").concat(c[3],".").concat(c[0]),"".concat(c[1],".").concat(c[3],".").concat(c[0],".").concat(c[2]),"".concat(c[1],".").concat(c[3],".").concat(c[2],".").concat(c[0]),"".concat(c[2],".").concat(c[0],".").concat(c[1],".").concat(c[3]),"".concat(c[2],".").concat(c[0],".").concat(c[3],".").concat(c[1]),"".concat(c[2],".").concat(c[1],".").concat(c[0],".").concat(c[3]),"".concat(c[2],".").concat(c[1],".").concat(c[3],".").concat(c[0]),"".concat(c[2],".").concat(c[3],".").concat(c[0],".").concat(c[1]),"".concat(c[2],".").concat(c[3],".").concat(c[1],".").concat(c[0]),"".concat(c[3],".").concat(c[0],".").concat(c[1],".").concat(c[2]),"".concat(c[3],".").concat(c[0],".").concat(c[2],".").concat(c[1]),"".concat(c[3],".").concat(c[1],".").concat(c[0],".").concat(c[2]),"".concat(c[3],".").concat(c[1],".").concat(c[2],".").concat(c[0]),"".concat(c[3],".").concat(c[2],".").concat(c[0],".").concat(c[1]),"".concat(c[3],".").concat(c[2],".").concat(c[1],".").concat(c[0])]:void 0})(a)),L1[o]})(t.filter((function(n){return n!=="token"}))).reduce((function(n,a){return hd(hd({},n),r[a])}),e)}function Dx(t){return t.join(" ")}function Fx(t){var e=t.node,r=t.stylesheet,n=t.style,a=n===void 0?{}:n,o=t.useInlineStyles,p=t.key,c=e.properties,d=e.type,E=e.tagName,x=e.value;if(d==="text")return x;if(E){var k,P=(function(re,me){var le=0;return function(ve){return le+=1,ve.map((function(be,ce){return Fx({node:be,stylesheet:re,useInlineStyles:me,key:"code-segment-".concat(le,"-").concat(ce)})}))}})(r,o);if(o){var R=Object.keys(r).reduce((function(J,re){return re.split(".").forEach((function(me){J.includes(me)||J.push(me)})),J}),[]),L=c.className&&c.className.includes("token")?["token"]:[],V=c.className&&L.concat(c.className.filter((function(J){return!R.includes(J)})));k=hd(hd({},c),{},{className:Dx(V)||void 0,style:HR(c.className,Object.assign({},c.style,a),r)})}else k=hd(hd({},c),{},{className:Dx(c.className)});var Q=P(e.children);return u.createElement(E,F1({key:p},k),Q)}}var KR=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Lx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),r.push.apply(r,n)}return r}function Wp(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];t.length===void 0&&(t=[t]);for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:[];return e||le.length>0?(function(be,ce){return Sv({children:be,lineNumber:ce,lineNumberStyle:c,largestLineNumber:p,showInlineLineNumbers:a,lineProps:r,className:arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],showLineNumbers:n,wrapLongLines:d,wrapLines:e})})(re,me,le):(function(be,ce){if(n&&ce&&a){var _e=Bx(c,ce,p);be.unshift($x(ce,_e))}return be})(re,me)}for(var V=function(){var me=x[R],le=me.children[0].value,ve=(function(_e){return _e.match(GR)})(le);if(ve){var be=le.split(` +`);be.forEach((function(ce,_e){var Ae=n&&k.length+o,xe={type:"text",value:"".concat(ce,` +`)};if(_e===0){var Oe=L(x.slice(P+1,R).concat(Sv({children:[xe],className:me.properties.className})),Ae);k.push(Oe)}else if(_e===be.length-1){var je=x[R+1]&&x[R+1].children&&x[R+1].children[0],G={type:"text",value:"".concat(ce)};if(je){var de=Sv({children:[G],className:me.properties.className});x.splice(R+1,0,de)}else{var Ne=L([G],Ae,me.properties.className);k.push(Ne)}}else{var Ye=L([xe],Ae,me.properties.className);k.push(Ye)}})),P=R}R++};R{Pc.registerLanguage("json",t9),Pc.registerLanguage("js",Jx),Pc.registerLanguage("xml",n9),Pc.registerLanguage("yaml",s9),Pc.registerLanguage("http",c9),Pc.registerLanguage("bash",o9),Pc.registerLanguage("powershell",p9),Pc.registerLanguage("javascript",Jx)},Wx={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#333",color:"white"},"hljs-name":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-code":{fontStyle:"italic",color:"#888"},"hljs-emphasis":{fontStyle:"italic"},"hljs-tag":{color:"#62c8f3"},"hljs-variable":{color:"#ade5fc"},"hljs-template-variable":{color:"#ade5fc"},"hljs-selector-id":{color:"#ade5fc"},"hljs-selector-class":{color:"#ade5fc"},"hljs-string":{color:"#a2fca2"},"hljs-bullet":{color:"#d36363"},"hljs-type":{color:"#ffa"},"hljs-title":{color:"#ffa"},"hljs-section":{color:"#ffa"},"hljs-attribute":{color:"#ffa"},"hljs-quote":{color:"#ffa"},"hljs-built_in":{color:"#ffa"},"hljs-builtin-name":{color:"#ffa"},"hljs-number":{color:"#d36363"},"hljs-symbol":{color:"#d36363"},"hljs-keyword":{color:"#fcc28c"},"hljs-selector-tag":{color:"#fcc28c"},"hljs-literal":{color:"#fcc28c"},"hljs-comment":{color:"#888"},"hljs-deletion":{color:"#333",backgroundColor:"#fc9b9b"},"hljs-regexp":{color:"#c6b4f0"},"hljs-link":{color:"#c6b4f0"},"hljs-meta":{color:"#fc9b9b"},"hljs-addition":{backgroundColor:"#a2fca2",color:"#333"}},d9={agate:Wx,arta:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#222",color:"#aaa"},"hljs-subst":{color:"#aaa"},"hljs-section":{color:"#fff",fontWeight:"bold"},"hljs-comment":{color:"#444"},"hljs-quote":{color:"#444"},"hljs-meta":{color:"#444"},"hljs-string":{color:"#ffcc33"},"hljs-symbol":{color:"#ffcc33"},"hljs-bullet":{color:"#ffcc33"},"hljs-regexp":{color:"#ffcc33"},"hljs-number":{color:"#00cc66"},"hljs-addition":{color:"#00cc66"},"hljs-built_in":{color:"#32aaee"},"hljs-builtin-name":{color:"#32aaee"},"hljs-literal":{color:"#32aaee"},"hljs-type":{color:"#32aaee"},"hljs-template-variable":{color:"#32aaee"},"hljs-attribute":{color:"#32aaee"},"hljs-link":{color:"#32aaee"},"hljs-keyword":{color:"#6644aa"},"hljs-selector-tag":{color:"#6644aa"},"hljs-name":{color:"#6644aa"},"hljs-selector-id":{color:"#6644aa"},"hljs-selector-class":{color:"#6644aa"},"hljs-title":{color:"#bb1166"},"hljs-variable":{color:"#bb1166"},"hljs-deletion":{color:"#bb1166"},"hljs-template-tag":{color:"#bb1166"},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},monokai:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#272822",color:"#ddd"},"hljs-tag":{color:"#f92672"},"hljs-keyword":{color:"#f92672",fontWeight:"bold"},"hljs-selector-tag":{color:"#f92672",fontWeight:"bold"},"hljs-literal":{color:"#f92672",fontWeight:"bold"},"hljs-strong":{color:"#f92672"},"hljs-name":{color:"#f92672"},"hljs-code":{color:"#66d9ef"},"hljs-class .hljs-title":{color:"white"},"hljs-attribute":{color:"#bf79db"},"hljs-symbol":{color:"#bf79db"},"hljs-regexp":{color:"#bf79db"},"hljs-link":{color:"#bf79db"},"hljs-string":{color:"#a6e22e"},"hljs-bullet":{color:"#a6e22e"},"hljs-subst":{color:"#a6e22e"},"hljs-title":{color:"#a6e22e",fontWeight:"bold"},"hljs-section":{color:"#a6e22e",fontWeight:"bold"},"hljs-emphasis":{color:"#a6e22e"},"hljs-type":{color:"#a6e22e",fontWeight:"bold"},"hljs-built_in":{color:"#a6e22e"},"hljs-builtin-name":{color:"#a6e22e"},"hljs-selector-attr":{color:"#a6e22e"},"hljs-selector-pseudo":{color:"#a6e22e"},"hljs-addition":{color:"#a6e22e"},"hljs-variable":{color:"#a6e22e"},"hljs-template-tag":{color:"#a6e22e"},"hljs-template-variable":{color:"#a6e22e"},"hljs-comment":{color:"#75715e"},"hljs-quote":{color:"#75715e"},"hljs-deletion":{color:"#75715e"},"hljs-meta":{color:"#75715e"},"hljs-doctag":{fontWeight:"bold"},"hljs-selector-id":{fontWeight:"bold"}},nord:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#2E3440",color:"#D8DEE9"},"hljs-subst":{color:"#D8DEE9"},"hljs-selector-tag":{color:"#81A1C1"},"hljs-selector-id":{color:"#8FBCBB",fontWeight:"bold"},"hljs-selector-class":{color:"#8FBCBB"},"hljs-selector-attr":{color:"#8FBCBB"},"hljs-selector-pseudo":{color:"#88C0D0"},"hljs-addition":{backgroundColor:"rgba(163, 190, 140, 0.5)"},"hljs-deletion":{backgroundColor:"rgba(191, 97, 106, 0.5)"},"hljs-built_in":{color:"#8FBCBB"},"hljs-type":{color:"#8FBCBB"},"hljs-class":{color:"#8FBCBB"},"hljs-function":{color:"#88C0D0"},"hljs-function > .hljs-title":{color:"#88C0D0"},"hljs-keyword":{color:"#81A1C1"},"hljs-literal":{color:"#81A1C1"},"hljs-symbol":{color:"#81A1C1"},"hljs-number":{color:"#B48EAD"},"hljs-regexp":{color:"#EBCB8B"},"hljs-string":{color:"#A3BE8C"},"hljs-title":{color:"#8FBCBB"},"hljs-params":{color:"#D8DEE9"},"hljs-bullet":{color:"#81A1C1"},"hljs-code":{color:"#8FBCBB"},"hljs-emphasis":{fontStyle:"italic"},"hljs-formula":{color:"#8FBCBB"},"hljs-strong":{fontWeight:"bold"},"hljs-link:hover":{textDecoration:"underline"},"hljs-quote":{color:"#4C566A"},"hljs-comment":{color:"#4C566A"},"hljs-doctag":{color:"#8FBCBB"},"hljs-meta":{color:"#5E81AC"},"hljs-meta-keyword":{color:"#5E81AC"},"hljs-meta-string":{color:"#A3BE8C"},"hljs-attr":{color:"#8FBCBB"},"hljs-attribute":{color:"#D8DEE9"},"hljs-builtin-name":{color:"#81A1C1"},"hljs-name":{color:"#81A1C1"},"hljs-section":{color:"#88C0D0"},"hljs-tag":{color:"#81A1C1"},"hljs-variable":{color:"#D8DEE9"},"hljs-template-variable":{color:"#D8DEE9"},"hljs-template-tag":{color:"#5E81AC"},"abnf .hljs-attribute":{color:"#88C0D0"},"abnf .hljs-symbol":{color:"#EBCB8B"},"apache .hljs-attribute":{color:"#88C0D0"},"apache .hljs-section":{color:"#81A1C1"},"arduino .hljs-built_in":{color:"#88C0D0"},"aspectj .hljs-meta":{color:"#D08770"},"aspectj > .hljs-title":{color:"#88C0D0"},"bnf .hljs-attribute":{color:"#8FBCBB"},"clojure .hljs-name":{color:"#88C0D0"},"clojure .hljs-symbol":{color:"#EBCB8B"},"coq .hljs-built_in":{color:"#88C0D0"},"cpp .hljs-meta-string":{color:"#8FBCBB"},"css .hljs-built_in":{color:"#88C0D0"},"css .hljs-keyword":{color:"#D08770"},"diff .hljs-meta":{color:"#8FBCBB"},"ebnf .hljs-attribute":{color:"#8FBCBB"},"glsl .hljs-built_in":{color:"#88C0D0"},"groovy .hljs-meta:not(:first-child)":{color:"#D08770"},"haxe .hljs-meta":{color:"#D08770"},"java .hljs-meta":{color:"#D08770"},"ldif .hljs-attribute":{color:"#8FBCBB"},"lisp .hljs-name":{color:"#88C0D0"},"lua .hljs-built_in":{color:"#88C0D0"},"moonscript .hljs-built_in":{color:"#88C0D0"},"nginx .hljs-attribute":{color:"#88C0D0"},"nginx .hljs-section":{color:"#5E81AC"},"pf .hljs-built_in":{color:"#88C0D0"},"processing .hljs-built_in":{color:"#88C0D0"},"scss .hljs-keyword":{color:"#81A1C1"},"stylus .hljs-keyword":{color:"#81A1C1"},"swift .hljs-meta":{color:"#D08770"},"vim .hljs-built_in":{color:"#88C0D0",fontStyle:"italic"},"yaml .hljs-meta":{color:"#D08770"}},obsidian:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#282b2e",color:"#e0e2e4"},"hljs-keyword":{color:"#93c763",fontWeight:"bold"},"hljs-selector-tag":{color:"#93c763",fontWeight:"bold"},"hljs-literal":{color:"#93c763",fontWeight:"bold"},"hljs-selector-id":{color:"#93c763"},"hljs-number":{color:"#ffcd22"},"hljs-attribute":{color:"#668bb0"},"hljs-code":{color:"white"},"hljs-class .hljs-title":{color:"white"},"hljs-section":{color:"white",fontWeight:"bold"},"hljs-regexp":{color:"#d39745"},"hljs-link":{color:"#d39745"},"hljs-meta":{color:"#557182"},"hljs-tag":{color:"#8cbbad"},"hljs-name":{color:"#8cbbad",fontWeight:"bold"},"hljs-bullet":{color:"#8cbbad"},"hljs-subst":{color:"#8cbbad"},"hljs-emphasis":{color:"#8cbbad"},"hljs-type":{color:"#8cbbad",fontWeight:"bold"},"hljs-built_in":{color:"#8cbbad"},"hljs-selector-attr":{color:"#8cbbad"},"hljs-selector-pseudo":{color:"#8cbbad"},"hljs-addition":{color:"#8cbbad"},"hljs-variable":{color:"#8cbbad"},"hljs-template-tag":{color:"#8cbbad"},"hljs-template-variable":{color:"#8cbbad"},"hljs-string":{color:"#ec7600"},"hljs-symbol":{color:"#ec7600"},"hljs-comment":{color:"#818e96"},"hljs-quote":{color:"#818e96"},"hljs-deletion":{color:"#818e96"},"hljs-selector-class":{color:"#A082BD"},"hljs-doctag":{fontWeight:"bold"},"hljs-title":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"}},"tomorrow-night":{"hljs-comment":{color:"#969896"},"hljs-quote":{color:"#969896"},"hljs-variable":{color:"#cc6666"},"hljs-template-variable":{color:"#cc6666"},"hljs-tag":{color:"#cc6666"},"hljs-name":{color:"#cc6666"},"hljs-selector-id":{color:"#cc6666"},"hljs-selector-class":{color:"#cc6666"},"hljs-regexp":{color:"#cc6666"},"hljs-deletion":{color:"#cc6666"},"hljs-number":{color:"#de935f"},"hljs-built_in":{color:"#de935f"},"hljs-builtin-name":{color:"#de935f"},"hljs-literal":{color:"#de935f"},"hljs-type":{color:"#de935f"},"hljs-params":{color:"#de935f"},"hljs-meta":{color:"#de935f"},"hljs-link":{color:"#de935f"},"hljs-attribute":{color:"#f0c674"},"hljs-string":{color:"#b5bd68"},"hljs-symbol":{color:"#b5bd68"},"hljs-bullet":{color:"#b5bd68"},"hljs-addition":{color:"#b5bd68"},"hljs-title":{color:"#81a2be"},"hljs-section":{color:"#81a2be"},"hljs-keyword":{color:"#b294bb"},"hljs-selector-tag":{color:"#b294bb"},hljs:{display:"block",overflowX:"auto",background:"#1d1f21",color:"#c5c8c6",padding:"0.5em"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},idea:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#000",background:"#fff"},"hljs-subst":{fontWeight:"normal",color:"#000"},"hljs-title":{fontWeight:"normal",color:"#000"},"hljs-comment":{color:"#808080",fontStyle:"italic"},"hljs-quote":{color:"#808080",fontStyle:"italic"},"hljs-meta":{color:"#808000"},"hljs-tag":{background:"#efefef"},"hljs-section":{fontWeight:"bold",color:"#000080"},"hljs-name":{fontWeight:"bold",color:"#000080"},"hljs-literal":{fontWeight:"bold",color:"#000080"},"hljs-keyword":{fontWeight:"bold",color:"#000080"},"hljs-selector-tag":{fontWeight:"bold",color:"#000080"},"hljs-type":{fontWeight:"bold",color:"#000080"},"hljs-selector-id":{fontWeight:"bold",color:"#000080"},"hljs-selector-class":{fontWeight:"bold",color:"#000080"},"hljs-attribute":{fontWeight:"bold",color:"#0000ff"},"hljs-number":{fontWeight:"normal",color:"#0000ff"},"hljs-regexp":{fontWeight:"normal",color:"#0000ff"},"hljs-link":{fontWeight:"normal",color:"#0000ff"},"hljs-string":{color:"#008000",fontWeight:"bold"},"hljs-symbol":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-bullet":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-formula":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-doctag":{textDecoration:"underline"},"hljs-variable":{color:"#660e7a"},"hljs-template-variable":{color:"#660e7a"},"hljs-addition":{background:"#baeeba"},"hljs-deletion":{background:"#ffc8bd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}}},f9=Wx,m9=({language:t,className:e="",getConfigs:r,syntaxHighlighting:n={},children:a=""})=>{const o=r().syntaxHighlight.theme,{styles:p,defaultStyle:c}=n,d=p?.[o]??c;return u.createElement(Pc,{language:t,className:e,style:d},a)};var g9=Be(5419),y9=Be.n(g9);const xv="Copy code to clipboard",v9=({fileName:t="response.txt",className:e,downloadable:r,getComponent:n,canCopy:a,language:o,children:p})=>{const c=(0,u.useRef)(null),d=n("SyntaxHighlighter",!0),E=x=>{const{target:k,deltaY:P}=x,{scrollHeight:R,offsetHeight:L,scrollTop:V}=k;R>L&&(V===0&&P<0||L+V>=R&&P>0)&&x.preventDefault()};return(0,u.useEffect)((()=>{const x=Array.from(c.current.childNodes).filter((k=>!!k.nodeType&&k.classList.contains("microlight")));return x.forEach((k=>k.addEventListener("mousewheel",E,{passive:!1}))),()=>{x.forEach((k=>k.removeEventListener("mousewheel",E)))}}),[p,e,o]),u.createElement("div",{className:"highlight-code",ref:c},a&&u.createElement("div",{className:"copy-to-clipboard",title:xv,"aria-label":xv},u.createElement(cu.CopyToClipboard,{text:p},u.createElement("button",{"aria-label":xv,title:xv,type:"button"}))),r?u.createElement("button",{className:"download-contents",onClick:()=>{y9()(p,t)}},"Download"):null,u.createElement(d,{language:o,className:Xr()(e,"microlight"),renderPlainText:({children:x,PlainTextViewer:k})=>u.createElement(k,{className:e},x)},p))},b9=({className:t="",children:e})=>u.createElement("pre",{className:Xr()("microlight",t)},e),w9=(t,e)=>({renderPlainText:r,children:n,...a})=>{const o=e.getConfigs().syntaxHighlight.activated,p=e.getComponent("PlainTextViewer");return o||typeof r!="function"?o?u.createElement(t,a,n):u.createElement(p,null,n):r({children:n,PlainTextViewer:p})},E9=()=>({afterLoad:h9,rootInjects:{syntaxHighlighting:{styles:d9,defaultStyle:f9}},components:{SyntaxHighlighter:m9,HighlightCode:v9,PlainTextViewer:b9}}),S9=()=>({wrapComponents:{SyntaxHighlighter:w9}}),Hx=()=>[E9,S9],x9=()=>{const{GIT_DIRTY:t,GIT_COMMIT:e,PACKAGE_VERSION:r,BUILD_TIME:n}={PACKAGE_VERSION:"5.32.14",GIT_COMMIT:"gfefb1df1",GIT_DIRTY:!0,BUILD_TIME:"Tue, 18 Aug 2026 12:11:43 GMT"};Qe.versions=Qe.versions||{},Qe.versions.swaggerUI={version:r,gitRevision:e,gitDirty:t,buildTimestamp:n}},Kx=()=>({afterLoad:x9});var _9=Be(47248),O9=Be.n(_9);const Gx=console.error,k9=t=>e=>{const{getComponent:r,fn:n}=t(),a=r("ErrorBoundary"),o=n.getDisplayName(e);class p extends u.Component{render(){return u.createElement(a,{targetName:o,getComponent:r,fn:n},u.createElement(e,Yr()({},this.props,this.context)))}}var c;return p.displayName=`WithErrorBoundary(${o})`,(c=e).prototype&&c.prototype.isReactComponent&&(p.prototype.mapStateToProps=e.prototype.mapStateToProps),p},Yx=({name:t})=>u.createElement("div",{className:"fallback"},"😱 ",u.createElement("i",null,"Could not render ",t==="t"?"this component":t,", see the console."));class A9 extends u.Component{static defaultProps={targetName:"this component",getComponent:()=>Yx,fn:{componentDidCatch:Gx},children:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}constructor(...e){super(...e),this.state={hasError:!1,error:null}}componentDidCatch(e,r){this.props.fn.componentDidCatch(e,r)}render(){const{getComponent:e,targetName:r,children:n}=this.props;if(this.state.hasError){const a=e("Fallback");return u.createElement(a,{name:r})}return n}}const C9=A9,Xx=({componentList:t=[],fullOverride:e=!1}={})=>({getSystem:r})=>{const n=e?t:["App","BaseLayout","VersionPragmaFilter","InfoContainer","ServersContainer","SchemesContainer","AuthorizeBtnContainer","FilterContainer","Operations","OperationContainer","parameters","responses","OperationServers","Models","ModelWrapper",...t],a=O9()(n,Array(n.length).fill(((o,{fn:p})=>p.withErrorBoundary(o))));return{fn:{componentDidCatch:Gx,withErrorBoundary:k9(r)},components:{ErrorBoundary:C9,Fallback:Yx},wrapComponents:a}};class j9 extends u.Component{getLayout(){const{getComponent:e,layoutSelectors:r}=this.props,n=r.current();return e(n,!0)||(()=>u.createElement("h1",null,' No layout defined for "',n,'" '))}render(){const e=this.getLayout();return u.createElement(e,null)}}const P9=j9;class N9 extends u.Component{close=()=>{let{authActions:e}=this.props;e.showDefinitions(!1)};handleEscKeydown=e=>{e.key==="Escape"&&this.close()};componentDidMount(){document.addEventListener("keydown",this.handleEscKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleEscKeydown)}render(){let{authSelectors:e,authActions:r,getComponent:n,errSelectors:a,specSelectors:o,fn:{AST:p={}}}=this.props,c=e.shownDefinitions();const d=n("auths"),E=n("CloseIcon");return u.createElement("div",{className:"dialog-ux"},u.createElement("div",{className:"backdrop-ux",onClick:this.close}),u.createElement("div",{className:"modal-ux"},u.createElement("div",{className:"modal-dialog-ux"},u.createElement("div",{className:"modal-ux-inner"},u.createElement("div",{className:"modal-ux-header"},u.createElement("h3",null,"Available authorizations"),u.createElement("button",{type:"button",className:"close-modal",onClick:this.close},u.createElement(E,null))),u.createElement("div",{className:"modal-ux-content"},c.valueSeq().map(((x,k)=>u.createElement(d,{key:k,AST:p,definitions:x,getComponent:n,errSelectors:a,authSelectors:e,authActions:r,specSelectors:o}))))))))}}class T9 extends u.Component{render(){let{isAuthorized:e,showPopup:r,onClick:n,getComponent:a}=this.props;const o=a("authorizationPopup",!0),p=a("LockAuthIcon",!0),c=a("UnlockAuthIcon",!0);return u.createElement("div",{className:"auth-wrapper"},u.createElement("button",{className:e?"btn authorize locked":"btn authorize unlocked",onClick:n},u.createElement("span",null,"Authorize"),e?u.createElement(p,null):u.createElement(c,null)),r&&u.createElement(o,null))}}class I9 extends u.Component{render(){const{authActions:e,authSelectors:r,specSelectors:n,getComponent:a}=this.props,o=n.securityDefinitions(),p=r.definitionsToAuthorize(),c=a("authorizeBtn");return o?u.createElement(c,{onClick:()=>e.showDefinitions(p),isAuthorized:!!r.authorized().size,showPopup:!!r.shownDefinitions(),getComponent:a}):null}}class M9 extends u.Component{onClick=e=>{e.stopPropagation();let{onClick:r}=this.props;r&&r()};render(){let{isAuthorized:e,getComponent:r}=this.props;const n=r("LockAuthOperationIcon",!0),a=r("UnlockAuthOperationIcon",!0);return u.createElement("button",{className:"authorization__btn","aria-label":e?"authorization button locked":"authorization button unlocked",onClick:this.onClick},e?u.createElement(n,{className:"locked"}):u.createElement(a,{className:"unlocked"}))}}class R9 extends u.Component{constructor(e,r){super(e,r),this.state={}}onAuthChange=e=>{let{name:r}=e;this.setState({[r]:e})};submitAuth=e=>{e.preventDefault();let{authActions:r}=this.props;r.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:r,definitions:n}=this.props,a=n.keySeq().toArray();this.setState(a.reduce(((o,p)=>(o[p]="",o)),{})),r.logoutWithPersistOption(a)};close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};render(){let{definitions:e,getComponent:r,authSelectors:n,errSelectors:a}=this.props;const o=r("AuthItem"),p=r("oauth2",!0),c=r("Button");let d=n.authorized(),E=e.filter(((P,R)=>!!d.get(R))),x=e.filter((P=>P.get("type")!=="oauth2")),k=e.filter((P=>P.get("type")==="oauth2"));return u.createElement("div",{className:"auth-container"},!!x.size&&u.createElement("form",{onSubmit:this.submitAuth},x.map(((P,R)=>u.createElement(o,{key:R,schema:P,name:R,getComponent:r,onAuthChange:this.onAuthChange,authorized:d,errSelectors:a,authSelectors:n}))).valueSeq().toArray(),u.createElement("div",{className:"auth-btn-wrapper"},x.size===E.size?u.createElement(c,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):u.createElement(c,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),u.createElement(c,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),k&&k.size?u.createElement("div",null,u.createElement("div",{className:"scope-def"},u.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),u.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),e.filter((P=>P.get("type")==="oauth2")).map(((P,R)=>u.createElement("div",{key:R},u.createElement(p,{authorized:d,schema:P,name:R})))).valueSeq().toArray()):null)}}class D9 extends u.Component{render(){let{schema:e,name:r,getComponent:n,onAuthChange:a,authorized:o,errSelectors:p,authSelectors:c}=this.props;const d=n("apiKeyAuth"),E=n("basicAuth");let x;const k=e.get("type");switch(k){case"apiKey":x=u.createElement(d,{key:r,schema:e,name:r,errSelectors:p,authorized:o,getComponent:n,onChange:a,authSelectors:c});break;case"basic":x=u.createElement(E,{key:r,schema:e,name:r,errSelectors:p,authorized:o,getComponent:n,onChange:a,authSelectors:c});break;default:x=u.createElement("div",{key:r},"Unknown security definition type ",k)}return u.createElement("div",{key:`${r}-jump`},x)}}class F9 extends u.Component{render(){let{error:e}=this.props,r=e.get("level"),n=e.get("message"),a=e.get("source");return u.createElement("div",{className:"errors"},u.createElement("b",null,a," ",r),u.createElement("span",null,n))}}class L9 extends u.Component{constructor(e,r){super(e,r);let{name:n,schema:a}=this.props,o=this.getValue();this.state={name:n,schema:a,value:o}}getValue(){let{name:e,authorized:r}=this.props;return r&&r.getIn([e,"value"])}onChange=e=>{let{onChange:r}=this.props,n=e.target.value,a=Object.assign({},this.state,{value:n});this.setState(a),r(a)};render(){let{schema:e,getComponent:r,errSelectors:n,name:a,authSelectors:o}=this.props;const p=r("Input"),c=r("Row"),d=r("Col"),E=r("authError"),x=r("Markdown",!0),k=r("JumpToPath",!0),P=o.selectAuthPath(a);let R=this.getValue(),L=n.allErrors().filter((V=>V.get("authId")===a));return u.createElement("div",null,u.createElement("h4",null,u.createElement("code",null,a||e.get("name"))," (apiKey)",u.createElement(k,{path:P})),R&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(x,{source:e.get("description")})),u.createElement(c,null,u.createElement("p",null,"Name: ",u.createElement("code",null,e.get("name")))),u.createElement(c,null,u.createElement("p",null,"In: ",u.createElement("code",null,e.get("in")))),u.createElement(c,null,u.createElement("label",{htmlFor:"api_key_value"},"Value:"),R?u.createElement("code",null," ****** "):u.createElement(d,null,u.createElement(p,{id:"api_key_value",type:"text",onChange:this.onChange,autoFocus:!0}))),L.valueSeq().map(((V,Q)=>u.createElement(E,{error:V,key:Q}))))}}class $9 extends u.Component{constructor(e,r){super(e,r);let{schema:n,name:a}=this.props,o=this.getValue().username;this.state={name:a,schema:n,value:o?{username:o}:{}}}getValue(){let{authorized:e,name:r}=this.props;return e&&e.getIn([r,"value"])||{}}onChange=e=>{let{onChange:r}=this.props,{value:n,name:a}=e.target,o=this.state.value;o[a]=n,this.setState({value:o}),r(this.state)};render(){let{schema:e,getComponent:r,name:n,errSelectors:a,authSelectors:o}=this.props;const p=r("Input"),c=r("Row"),d=r("Col"),E=r("authError"),x=r("JumpToPath",!0),k=r("Markdown",!0),P=o.selectAuthPath(n);let R=this.getValue().username,L=a.allErrors().filter((V=>V.get("authId")===n));return u.createElement("div",null,u.createElement("h4",null,"Basic authorization",u.createElement(x,{path:P})),R&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(k,{source:e.get("description")})),u.createElement(c,null,u.createElement("label",{htmlFor:"auth_username"},"Username:"),R?u.createElement("code",null," ",R," "):u.createElement(d,null,u.createElement(p,{id:"auth_username",type:"text",required:"required",name:"username",onChange:this.onChange,autoFocus:!0}))),u.createElement(c,null,u.createElement("label",{htmlFor:"auth_password"},"Password:"),R?u.createElement("code",null," ****** "):u.createElement(d,null,u.createElement(p,{id:"auth_password",autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),L.valueSeq().map(((V,Q)=>u.createElement(E,{error:V,key:Q}))))}}function B9(t){const{example:e,showValue:r,getComponent:n}=t,a=n("Markdown",!0),o=n("HighlightCode",!0);return e&&H.Map.isMap(e)?u.createElement("div",{className:"example"},e.get("description")?u.createElement("section",{className:"example__section"},u.createElement("div",{className:"example__section-header"},"Example Description"),u.createElement("p",null,u.createElement(a,{source:e.get("description")}))):null,r&&e.has("value")?u.createElement("section",{className:"example__section"},u.createElement("div",{className:"example__section-header"},"Example Value"),u.createElement(o,null,Gr(e.get("value")))):null):null}class q9 extends u.PureComponent{static defaultProps={examples:(0,H.Map)({}),onSelect:(...e)=>console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...e),currentExampleKey:null,showLabels:!0};_onSelect=(e,{isSyntheticChange:r=!1}={})=>{typeof this.props.onSelect=="function"&&this.props.onSelect(e,{isSyntheticChange:r})};_onDomSelect=e=>{if(typeof this.props.onSelect=="function"){const r=e.target.selectedOptions[0].getAttribute("value");this._onSelect(r,{isSyntheticChange:!1})}};getCurrentExample=()=>{const{examples:e,currentExampleKey:r}=this.props,n=e.get(r),a=e.keySeq().first(),o=e.get(a);return n||o||(0,H.Map)({})};componentDidMount(){const{onSelect:e,examples:r}=this.props;if(typeof e=="function"){const n=r.first(),a=r.keyOf(n);this._onSelect(a,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(e){const{currentExampleKey:r,examples:n}=e;if(n!==this.props.examples&&!n.has(r)){const a=n.first(),o=n.keyOf(a);this._onSelect(o,{isSyntheticChange:!0})}}render(){const{examples:e,currentExampleKey:r,isValueModified:n,isModifiedValueAvailable:a,showLabels:o}=this.props;return u.createElement("div",{className:"examples-select"},o?u.createElement("span",{className:"examples-select__section-label"},"Examples: "):null,u.createElement("select",{className:"examples-select-element",onChange:this._onDomSelect,value:a&&n?"__MODIFIED__VALUE__":r||""},a?u.createElement("option",{value:"__MODIFIED__VALUE__"},"[Modified value]"):null,e.map(((p,c)=>u.createElement("option",{key:c,value:c},H.Map.isMap(p)&&p.get("summary")||c))).valueSeq()))}}const $1=t=>H.List.isList(t)?t:Gr(t);class U9 extends u.PureComponent{static defaultProps={userHasEditedBody:!1,examples:(0,H.Map)({}),currentNamespace:"__DEFAULT__NAMESPACE__",setRetainRequestBodyValueFlag:()=>{},onSelect:(...e)=>console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...e),updateValue:(...e)=>console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...e)};constructor(e){super(e);const r=this._getCurrentExampleValue();this.state={[e.currentNamespace]:(0,H.Map)({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:r,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==r})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}_getStateForCurrentNamespace=()=>{const{currentNamespace:e}=this.props;return(this.state[e]||(0,H.Map)()).toObject()};_setStateForCurrentNamespace=e=>{const{currentNamespace:r}=this.props;return this._setStateForNamespace(r,e)};_setStateForNamespace=(e,r)=>{const n=(this.state[e]||(0,H.Map)()).merge(r);return this.setState({[e]:n})};_isCurrentUserInputSameAsExampleValue=()=>{const{currentUserInputValue:e}=this.props;return this._getCurrentExampleValue()===e};_getValueForExample=(e,r)=>{const{examples:n}=r||this.props;return $1((n||(0,H.Map)({})).getIn([e,"value"]))};_getCurrentExampleValue=e=>{const{currentKey:r}=e||this.props;return this._getValueForExample(r,e||this.props)};_onExamplesSelect=(e,{isSyntheticChange:r}={},...n)=>{const{onSelect:a,updateValue:o,currentUserInputValue:p,userHasEditedBody:c}=this.props,{lastUserEditedValue:d}=this._getStateForCurrentNamespace(),E=this._getValueForExample(e);if(e==="__MODIFIED__VALUE__")return o($1(d)),this._setStateForCurrentNamespace({isModifiedValueSelected:!0});typeof a=="function"&&a(e,{isSyntheticChange:r},...n),this._setStateForCurrentNamespace({lastDownstreamValue:E,isModifiedValueSelected:r&&c||!!p&&p!==E}),r||typeof o=="function"&&o($1(E))};UNSAFE_componentWillReceiveProps(e){const{currentUserInputValue:r,examples:n,onSelect:a,userHasEditedBody:o}=e,{lastUserEditedValue:p,lastDownstreamValue:c}=this._getStateForCurrentNamespace(),d=this._getValueForExample(e.currentKey,e),E=n.filter((x=>H.Map.isMap(x)&&(x.get("value")===r||Gr(x.get("value"))===r)));if(E.size){let x;x=E.has(e.currentKey)?e.currentKey:E.keySeq().first(),a(x,{isSyntheticChange:!0})}else r!==this.props.currentUserInputValue&&r!==p&&r!==c&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(e.currentNamespace,{lastUserEditedValue:e.currentUserInputValue,isModifiedValueSelected:o||r!==d}))}render(){const{currentUserInputValue:e,examples:r,currentKey:n,getComponent:a,userHasEditedBody:o}=this.props,{lastDownstreamValue:p,lastUserEditedValue:c,isModifiedValueSelected:d}=this._getStateForCurrentNamespace(),E=a("ExamplesSelect");return u.createElement(E,{examples:r,currentExampleKey:n,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!c&&c!==p,isValueModified:e!==void 0&&d&&e!==this._getCurrentExampleValue()||o})}}function z9({auth:t,authActions:e,errActions:r,configs:n,authConfigs:a={},currentServer:o}){let{schema:p,scopes:c,name:d,clientId:E}=t,x=p.get("flow"),k=[];switch(x){case"password":return void e.authorizePassword(t);case"application":case"clientCredentials":case"client_credentials":return void e.authorizeApplication(t);case"accessCode":case"authorizationCode":case"authorization_code":k.push("response_type=code");break;case"implicit":k.push("response_type=token")}typeof E=="string"&&k.push("client_id="+encodeURIComponent(E));let P=n.oauth2RedirectUrl;if(P===void 0)return void r.newAuthErr({authId:d,source:"validation",level:"error",message:"oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed."});k.push("redirect_uri="+encodeURIComponent(P));let R=[];if(Array.isArray(c)?R=c:H.default.List.isList(c)&&(R=c.toArray()),R.length>0){let le=a.scopeSeparator||" ";k.push("scope="+encodeURIComponent(R.join(le)))}let L=ko(new Date);if(k.push("state="+encodeURIComponent(L)),a.realm!==void 0&&k.push("realm="+encodeURIComponent(a.realm)),(x==="authorizationCode"||x==="authorization_code"||x==="accessCode")&&a.usePkceWithAuthorizationCodeGrant){const le=(function(){return Ja(Fn()(32).toString("base64"))})(),ve=(function(ce){return Ja(Vo()("sha256").update(ce).digest("base64"))})(le);k.push("code_challenge="+ve),k.push("code_challenge_method=S256"),t.codeVerifier=le}let{additionalQueryStringParams:V}=a;for(let le in V)V[le]!==void 0&&k.push([le,V[le]].map(encodeURIComponent).join("="));const Q=p.get("authorizationUrl");let J;J=o?Ao()(Dr(Q),o,!0).toString():Dr(Q);let re,me=[J,k.join("&")].join(typeof Q!="string"||Q.includes("?")?"&":"?");re=x==="implicit"?e.preAuthorizeImplicit:a.useBasicAuthenticationWithAccessCodeGrant?e.authorizeAccessCodeWithBasicAuthentication:e.authorizeAccessCodeWithFormParams,e.authPopup(me,{auth:t,state:L,redirectUrl:P,callback:re,errCb:r.newAuthErr})}class V9 extends u.Component{constructor(e,r){super(e,r);let{name:n,schema:a,authorized:o,authSelectors:p}=this.props,c=o&&o.get(n),d=p.getConfigs()||{},E=c&&c.get("username")||"",x=c&&c.get("clientId")||d.clientId||"",k=c&&c.get("clientSecret")||d.clientSecret||"",P=c&&c.get("passwordType")||"basic",R=c&&c.get("scopes")||d.scopes||[];typeof R=="string"&&(R=R.split(d.scopeSeparator||" ")),this.state={appName:d.appName,name:n,schema:a,scopes:R,clientId:x,clientSecret:k,username:E,password:"",passwordType:P}}close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};authorize=()=>{let{authActions:e,errActions:r,getConfigs:n,authSelectors:a,oas3Selectors:o}=this.props,p=n(),c=a.getConfigs();r.clear({authId:name,type:"auth",source:"auth"}),z9({auth:this.state,currentServer:o.serverEffectiveValue(o.selectedServer()),authActions:e,errActions:r,configs:p,authConfigs:c})};onScopeChange=e=>{let{target:r}=e,{checked:n}=r,a=r.dataset.value;if(n&&this.state.scopes.indexOf(a)===-1){let o=this.state.scopes.concat([a]);this.setState({scopes:o})}else!n&&this.state.scopes.indexOf(a)>-1&&this.setState({scopes:this.state.scopes.filter((o=>o!==a))})};onInputChange=e=>{let{target:{dataset:{name:r},value:n}}=e,a={[r]:n};this.setState(a)};selectScopes=e=>{e.target.dataset.all?this.setState({scopes:Array.from((this.props.schema.get("allowedScopes")||this.props.schema.get("scopes")).keys())}):this.setState({scopes:[]})};logout=e=>{e.preventDefault();let{authActions:r,errActions:n,name:a}=this.props;n.clear({authId:a,type:"auth",source:"auth"}),r.logoutWithPersistOption([a])};render(){let{schema:e,getComponent:r,authSelectors:n,errSelectors:a,name:o,specSelectors:p}=this.props;const c=r("Input"),d=r("Row"),E=r("Col"),x=r("Button"),k=r("authError"),P=r("JumpToPath",!0),R=r("Markdown",!0),L=r("InitializedInput"),{isOAS3:V}=p;let Q=V()?e.get("openIdConnectUrl"):null;const J="implicit",re="password",me=V()?Q?"authorization_code":"authorizationCode":"accessCode",le=V()?Q?"client_credentials":"clientCredentials":"application",ve=n.selectAuthPath(o);let be=!!(n.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,ce=e.get("flow"),_e=ce===me&&be?ce+" with PKCE":ce,Ae=e.get("allowedScopes")||e.get("scopes"),xe=!!n.authorized().get(o),Oe=a.allErrors().filter((de=>de.get("authId")===o)),je=!Oe.filter((de=>de.get("source")==="validation")).size,G=e.get("description");return u.createElement("div",null,u.createElement("h4",null,o," (OAuth2, ",_e,") ",u.createElement(P,{path:ve})),this.state.appName?u.createElement("h5",null,"Application: ",this.state.appName," "):null,G&&u.createElement(R,{source:e.get("description")}),xe&&u.createElement("h6",null,"Authorized"),Q&&u.createElement("p",null,"OpenID Connect URL: ",u.createElement("code",null,Q)),(ce===J||ce===me)&&u.createElement("p",null,"Authorization URL: ",u.createElement("code",null,e.get("authorizationUrl"))),(ce===re||ce===me||ce===le)&&u.createElement("p",null,"Token URL:",u.createElement("code",null," ",e.get("tokenUrl"))),u.createElement("p",{className:"flow"},"Flow: ",u.createElement("code",null,_e)),ce!==re?null:u.createElement(d,null,u.createElement(d,null,u.createElement("label",{htmlFor:"oauth_username"},"username:"),xe?u.createElement("code",null," ",this.state.username," "):u.createElement(E,{tablet:10,desktop:10},u.createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange,autoFocus:!0}))),u.createElement(d,null,u.createElement("label",{htmlFor:"oauth_password"},"password:"),xe?u.createElement("code",null," ****** "):u.createElement(E,{tablet:10,desktop:10},u.createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),u.createElement(d,null,u.createElement("label",{htmlFor:"password_type"},"Client credentials location:"),xe?u.createElement("code",null," ",this.state.passwordType," "):u.createElement(E,{tablet:10,desktop:10},u.createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},u.createElement("option",{value:"basic"},"Authorization header"),u.createElement("option",{value:"request-body"},"Request body"))))),(ce===le||ce===J||ce===me||ce===re)&&(!xe||xe&&this.state.clientId)&&u.createElement(d,null,u.createElement("label",{htmlFor:`client_id_${ce}`},"client_id:"),xe?u.createElement("code",null," ****** "):u.createElement(E,{tablet:10,desktop:10},u.createElement(L,{id:`client_id_${ce}`,type:"text",required:ce===re,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(ce===le||ce===me||ce===re)&&u.createElement(d,null,u.createElement("label",{htmlFor:`client_secret_${ce}`},"client_secret:"),xe?u.createElement("code",null," ****** "):u.createElement(E,{tablet:10,desktop:10},u.createElement(L,{id:`client_secret_${ce}`,initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!xe&&Ae&&Ae.size?u.createElement("div",{className:"scopes"},u.createElement("h2",null,"Scopes:",u.createElement("a",{onClick:this.selectScopes,"data-all":!0},"select all"),u.createElement("a",{onClick:this.selectScopes},"select none")),Ae.map(((de,Ne)=>u.createElement(d,{key:Ne},u.createElement("div",{className:"checkbox"},u.createElement(c,{"data-value":Ne,id:`${Ne}-${ce}-checkbox-${this.state.name}`,disabled:xe,checked:this.state.scopes.includes(Ne),type:"checkbox",onChange:this.onScopeChange}),u.createElement("label",{htmlFor:`${Ne}-${ce}-checkbox-${this.state.name}`},u.createElement("span",{className:"item"}),u.createElement("div",{className:"text"},u.createElement("p",{className:"name"},Ne),u.createElement("p",{className:"description"},de))))))).valueSeq().toArray()):null,Oe.valueSeq().map(((de,Ne)=>u.createElement(k,{error:de,key:Ne}))),u.createElement("div",{className:"auth-btn-wrapper"},je&&(xe?u.createElement(x,{className:"btn modal-btn auth authorize",onClick:this.logout,"aria-label":"Remove authorization"},"Logout"):u.createElement(x,{className:"btn modal-btn auth authorize",onClick:this.authorize,"aria-label":"Apply given OAuth2 credentials"},"Authorize")),u.createElement(x,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close")))}}class J9 extends u.Component{onClick=()=>{let{specActions:e,path:r,method:n}=this.props;e.clearResponse(r,n),e.clearRequest(r,n)};render(){return u.createElement("button",{className:"btn btn-clear opblock-control__btn",onClick:this.onClick},"Clear")}}const W9=({headers:t})=>u.createElement("div",null,u.createElement("h5",null,"Response headers"),u.createElement("pre",{className:"microlight"},t)),H9=({duration:t})=>u.createElement("div",null,u.createElement("h5",null,"Request duration"),u.createElement("pre",{className:"microlight"},t," ms"));class K9 extends u.Component{shouldComponentUpdate(e){return this.props.response!==e.response||this.props.path!==e.path||this.props.method!==e.method||this.props.displayRequestDuration!==e.displayRequestDuration}render(){const{response:e,getComponent:r,getConfigs:n,displayRequestDuration:a,specSelectors:o,path:p,method:c}=this.props,{showMutatedRequest:d,requestSnippetsEnabled:E}=n(),x=d?o.mutatedRequestFor(p,c):o.requestFor(p,c),k=e.get("status"),P=x.get("url"),R=e.get("headers").toJS(),L=e.get("notDocumented"),V=e.get("error"),Q=e.get("text"),J=e.get("duration"),re=Object.keys(R),me=R["content-type"]||R["Content-Type"],le=r("responseBody"),ve=re.map((xe=>{var Oe=Array.isArray(R[xe])?R[xe].join():R[xe];return u.createElement("span",{className:"headerline",key:xe}," ",xe,": ",Oe," ")})),be=ve.length!==0,ce=r("Markdown",!0),_e=r("RequestSnippets",!0),Ae=r("curl",!0);return u.createElement("div",null,x&&E?u.createElement(_e,{request:x}):u.createElement(Ae,{request:x}),P&&u.createElement("div",null,u.createElement("div",{className:"request-url"},u.createElement("h4",null,"Request URL"),u.createElement("pre",{className:"microlight"},P))),u.createElement("h4",null,"Server response"),u.createElement("table",{className:"responses-table live-responses-table"},u.createElement("thead",null,u.createElement("tr",{className:"responses-header"},u.createElement("td",{className:"col_header response-col_status"},"Code"),u.createElement("td",{className:"col_header response-col_description"},"Details"))),u.createElement("tbody",null,u.createElement("tr",{className:"response"},u.createElement("td",{className:"response-col_status"},k,L?u.createElement("div",{className:"response-undocumented"},u.createElement("i",null," Undocumented ")):null),u.createElement("td",{className:"response-col_description"},V?u.createElement(ce,{source:`${e.get("name")!==""?`${e.get("name")}: `:""}${e.get("message")}`}):null,Q?u.createElement(le,{content:Q,contentType:me,url:P,headers:R,getConfigs:n,getComponent:r}):null,be?u.createElement(W9,{headers:ve}):null,a&&J?u.createElement(H9,{duration:J}):null)))))}}class Qx extends u.Component{constructor(e,r){super(e,r);let{getConfigs:n}=e,{validatorUrl:a}=n();this.state={url:this.getDefinitionUrl(),validatorUrl:a===void 0?"https://validator.swagger.io/validator":a}}getDefinitionUrl=()=>{let{specSelectors:e}=this.props;return new(Ao())(e.url(),Qe.location).toString()};UNSAFE_componentWillReceiveProps(e){let{getConfigs:r}=e,{validatorUrl:n}=r();this.setState({url:this.getDefinitionUrl(),validatorUrl:n===void 0?"https://validator.swagger.io/validator":n})}render(){let{getConfigs:e}=this.props,{spec:r}=e(),n=Dr(this.state.validatorUrl);return typeof r=="object"&&Object.keys(r).length?null:this.state.url&&ta(this.state.validatorUrl)&&ta(this.state.url)?u.createElement("span",{className:"float-right"},u.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${n}/debug?url=${encodeURIComponent(this.state.url)}`},u.createElement(G9,{src:`${n}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class G9 extends u.Component{constructor(e){super(e),this.state={loaded:!1,error:!1}}componentDidMount(){const e=new Image;e.onload=()=>{this.setState({loaded:!0})},e.onerror=()=>{this.setState({error:!0})},e.src=this.props.src}UNSAFE_componentWillReceiveProps(e){if(e.src!==this.props.src){const r=new Image;r.onload=()=>{this.setState({loaded:!0})},r.onerror=()=>{this.setState({error:!0})},r.src=e.src}}render(){return this.state.error?u.createElement("img",{alt:"Error"}):this.state.loaded?u.createElement("img",{src:this.props.src,alt:this.props.alt}):null}}class Y9 extends u.Component{render(){let{specSelectors:e}=this.props;const r=e.taggedOperations();return r.size===0?u.createElement("h3",null," No operations defined in spec!"):u.createElement("div",null,r.map(this.renderOperationTag).valueSeq().toArray(),r.size<1?u.createElement("h3",null," No operations defined in spec! "):null)}renderOperationTag=(e,r)=>{const{specSelectors:n,getComponent:a,oas3Selectors:o,layoutSelectors:p,layoutActions:c,getConfigs:d}=this.props,E=n.validOperationMethods(),x=a("OperationContainer",!0),k=a("OperationTag"),P=e.get("operations");return u.createElement(k,{key:"operation-"+r,tagObj:e,tag:r,oas3Selectors:o,layoutSelectors:p,layoutActions:c,getConfigs:d,getComponent:a,specUrl:n.url()},u.createElement("div",{className:"operation-tag-content"},P.map((R=>{const L=R.get("path"),V=R.get("method"),Q=R.get("specPath");return E.indexOf(V)===-1?null:u.createElement(x,{key:`${L}-${V}`,specPath:Q,op:R,path:L,method:V,tag:r})})).toArray()))}}class X9 extends u.Component{static defaultProps={tagObj:H.default.fromJS({}),tag:""};render(){const{tagObj:e,tag:r,children:n,oas3Selectors:a,layoutSelectors:o,layoutActions:p,getConfigs:c,getComponent:d,specUrl:E}=this.props;let{docExpansion:x,deepLinking:k}=c();const P=d("Collapse"),R=d("Markdown",!0),L=d("DeepLink"),V=d("Link"),Q=d("ArrowUpIcon"),J=d("ArrowDownIcon");let re,me=e.getIn(["tagDetails","description"],null),le=e.getIn(["tagDetails","externalDocs","description"]),ve=e.getIn(["tagDetails","externalDocs","url"]);re=ia(a)&&ia(a.selectedServer)?ba(ve,E,{selectedServer:a.selectedServer()}):ve;let be=["operations-tag",r],ce=o.isShown(be,x==="full"||x==="list");return u.createElement("div",{className:ce?"opblock-tag-section is-open":"opblock-tag-section"},u.createElement("h3",{onClick:()=>p.show(be,!ce),className:me?"opblock-tag":"opblock-tag no-desc",id:be.map((_e=>ms(_e))).join("-"),"data-tag":r,"data-is-open":ce},u.createElement(L,{enabled:k,isShown:ce,path:Jo(r),text:r}),me?u.createElement("small",null,u.createElement(R,{source:me})):u.createElement("small",null),re?u.createElement("div",{className:"info__externaldocs"},u.createElement("small",null,u.createElement(V,{href:Dr(re),onClick:_e=>_e.stopPropagation(),target:"_blank"},le||re))):null,u.createElement("button",{"aria-expanded":ce,className:"expand-operation",title:ce?"Collapse operation":"Expand operation",onClick:()=>p.show(be,!ce)},ce?u.createElement(Q,{className:"arrow"}):u.createElement(J,{className:"arrow"}))),u.createElement(P,{isOpened:ce},n))}}class Q9 extends u.PureComponent{static defaultProps={operation:null,response:null,request:null,specPath:(0,H.List)(),summary:""};render(){let{specPath:e,response:r,request:n,toggleShown:a,onTryoutClick:o,onResetClick:p,onCancelClick:c,onExecute:d,fn:E,getComponent:x,getConfigs:k,specActions:P,specSelectors:R,authActions:L,authSelectors:V,oas3Actions:Q,oas3Selectors:J}=this.props,re=this.props.operation,{deprecated:me,isShown:le,path:ve,method:be,op:ce,tag:_e,operationId:Ae,allowTryItOut:xe,displayRequestDuration:Oe,tryItOutEnabled:je,executeInProgress:G}=re.toObject();const de=ce.get("description"),Ne=ce.get("externalDocs")?.toJS(),Ye=ce.get("schemes")?.toJS(),ht=Ne?ba(Ne.url,R.url(),{selectedServer:J.selectedServer()}):"";let Ct=re.getIn(["op"]),_t=Ct.get("responses"),qt=(function(dr,qr){if(!H.default.Iterable.isIterable(dr))return H.default.List();let en=dr.getIn(Array.isArray(qr)?qr:[qr]);return H.default.List.isList(en)?en:H.default.List()})(Ct,["parameters"]),It=R.operationScheme(ve,be),Ot=["operations",_e,Ae],et=gr(Ct);const Dt=x("responses",!0),or=x("parameters",!0),Ut=x("execute"),pr=x("clear"),W=x("Collapse"),$e=x("Markdown",!0),Je=x("schemes"),Ft=x("OperationServers"),it=x("OperationExt"),bt=x("OperationSummary"),ut=x("Link"),{showExtensions:Xt}=k();if(_t&&r&&r.size>0){let Er=!_t.get(String(r.get("status")))&&!_t.get("default");r=r.set("notDocumented",Er)}let zt=[ve,be];const tr=R.validationErrors([ve,be]);return u.createElement("div",{className:me?"opblock opblock-deprecated":le?`opblock opblock-${be} is-open`:`opblock opblock-${be}`,id:ms(Ot.join("-"))},u.createElement(bt,{operationProps:re,isShown:le,toggleShown:a,getComponent:x,authActions:L,authSelectors:V,specPath:e}),u.createElement(W,{isOpened:le},u.createElement("div",{className:"opblock-body"},Ct&&Ct.size||Ct===null?null:u.createElement(yh,{height:"32px",width:"32px",className:"opblock-loading-animation"}),me&&u.createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),de&&u.createElement("div",{className:"opblock-description-wrapper"},u.createElement("div",{className:"opblock-description"},u.createElement($e,{source:de}))),ht?u.createElement("div",{className:"opblock-external-docs-wrapper"},u.createElement("h4",{className:"opblock-title_normal"},"Find more details"),u.createElement("div",{className:"opblock-external-docs"},Ne.description&&u.createElement("span",{className:"opblock-external-docs__description"},u.createElement($e,{source:Ne.description})),u.createElement(ut,{target:"_blank",className:"opblock-external-docs__link",href:Dr(ht)},ht))):null,Ct&&Ct.size?u.createElement(or,{parameters:qt,specPath:e.push("parameters"),operation:Ct,onChangeKey:zt,onTryoutClick:o,onResetClick:p,onCancelClick:c,tryItOutEnabled:je,allowTryItOut:xe,fn:E,getComponent:x,specActions:P,specSelectors:R,pathMethod:[ve,be],getConfigs:k,oas3Actions:Q,oas3Selectors:J}):null,je?u.createElement(Ft,{getComponent:x,path:ve,method:be,operationServers:Ct.get("servers"),pathServers:R.paths().getIn([ve,"servers"]),getSelectedServer:J.selectedServer,setSelectedServer:Q.setSelectedServer,setServerVariableValue:Q.setServerVariableValue,getServerVariable:J.serverVariableValue,getEffectiveServerValue:J.serverEffectiveValue}):null,je&&xe&&Ye&&Ye.size?u.createElement("div",{className:"opblock-schemes"},u.createElement(Je,{schemes:Ye,path:ve,method:be,specActions:P,currentScheme:It})):null,!je||!xe||tr.length<=0?null:u.createElement("div",{className:"validation-errors errors-wrapper"},"Please correct the following validation errors and try again.",u.createElement("ul",null,tr.map(((Er,dr)=>u.createElement("li",{key:dr}," ",Er," "))))),u.createElement("div",{className:je&&r&&xe?"btn-group":"execute-wrapper"},je&&xe?u.createElement(Ut,{operation:Ct,specActions:P,specSelectors:R,oas3Selectors:J,oas3Actions:Q,path:ve,method:be,onExecute:d,disabled:G}):null,je&&r&&xe?u.createElement(pr,{specActions:P,path:ve,method:be}):null),G?u.createElement("div",{className:"loading-container"},u.createElement("div",{className:"loading"})):null,_t?u.createElement(Dt,{responses:_t,request:n,tryItOutResponse:r,getComponent:x,getConfigs:k,specSelectors:R,oas3Actions:Q,oas3Selectors:J,specActions:P,produces:R.producesOptionsFor([ve,be]),producesValue:R.currentProducesFor([ve,be]),specPath:e.push("responses"),path:ve,method:be,displayRequestDuration:Oe,fn:E}):null,Xt&&et.size?u.createElement(it,{extensions:et,getComponent:x}):null)))}}class Z9 extends u.PureComponent{constructor(e,r){super(e,r);const{tryItOutEnabled:n}=e.getConfigs();this.state={tryItOutEnabled:n,executeInProgress:!1}}static defaultProps={showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1};mapStateToProps(e,r){const{op:n,layoutSelectors:a,getConfigs:o}=r,{docExpansion:p,deepLinking:c,displayOperationId:d,displayRequestDuration:E,supportedSubmitMethods:x}=o(),k=a.showSummary(),P=n.getIn(["operation","__originalOperationId"])||n.getIn(["operation","operationId"])||Df(n.get("operation"),r.path,r.method)||n.get("id"),R=["operations",r.tag,P],L=x.indexOf(r.method)>=0&&(r.allowTryItOut===void 0?r.specSelectors.allowTryItOutFor(r.path,r.method):r.allowTryItOut),V=n.getIn(["operation","security"])||r.specSelectors.security();return{operationId:P,isDeepLinkingEnabled:c,showSummary:k,displayOperationId:d,displayRequestDuration:E,allowTryItOut:L,security:V,isAuthorized:r.authSelectors.isAuthorized(V),isShown:a.isShown(R,p==="full"),jumpToKey:`paths.${r.path}.${r.method}`,response:r.specSelectors.responseFor(r.path,r.method),request:r.specSelectors.requestFor(r.path,r.method)}}componentDidMount(){const{isShown:e}=this.props,r=this.getResolvedSubtree();e&&r===void 0&&this.requestResolvedSubtree()}componentDidUpdate(e){const{response:r,isShown:n}=this.props,a=this.getResolvedSubtree();r!==e.response&&this.setState({executeInProgress:!1}),n&&a===void 0&&this.requestResolvedSubtree()}toggleShown=()=>{let{layoutActions:e,tag:r,operationId:n,isShown:a}=this.props;const o=this.getResolvedSubtree();a||o!==void 0||this.requestResolvedSubtree(),e.show(["operations",r,n],!a)};onCancelClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onTryoutClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onResetClick=e=>{const r=this.props.oas3Selectors.selectDefaultRequestBodyValue(...e),n=this.props.oas3Selectors.requestContentType(...e);if(n==="application/x-www-form-urlencoded"||n==="multipart/form-data"){const a=JSON.parse(r);Object.entries(a).forEach((([o,p])=>{Array.isArray(p)?a[o]=a[o].map((c=>typeof c=="object"?JSON.stringify(c,null,2):c)):typeof p=="object"&&(a[o]=JSON.stringify(a[o],null,2))})),this.props.oas3Actions.setRequestBodyValue({value:(0,H.fromJS)(a),pathMethod:e})}else this.props.oas3Actions.setRequestBodyValue({value:r,pathMethod:e})};onExecute=()=>{this.setState({executeInProgress:!0})};getResolvedSubtree=()=>{const{specSelectors:e,path:r,method:n,specPath:a}=this.props;return a?e.specResolvedSubtree(a.toJS()):e.specResolvedSubtree(["paths",r,n])};requestResolvedSubtree=()=>{const{specActions:e,path:r,method:n,specPath:a}=this.props;return a?e.requestResolvedSubtree(a.toJS()):e.requestResolvedSubtree(["paths",r,n])};render(){let{op:e,tag:r,path:n,method:a,security:o,isAuthorized:p,operationId:c,showSummary:d,isShown:E,jumpToKey:x,allowTryItOut:k,response:P,request:R,displayOperationId:L,displayRequestDuration:V,isDeepLinkingEnabled:Q,specPath:J,specSelectors:re,specActions:me,getComponent:le,getConfigs:ve,layoutSelectors:be,layoutActions:ce,authActions:_e,authSelectors:Ae,oas3Actions:xe,oas3Selectors:Oe,fn:je}=this.props;const G=le("operation"),de=this.getResolvedSubtree()||(0,H.Map)(),Ne=(0,H.fromJS)({op:de,tag:r,path:n,summary:e.getIn(["operation","summary"])||"",deprecated:de.get("deprecated")||e.getIn(["operation","deprecated"])||!1,method:a,security:o,isAuthorized:p,operationId:c,originalOperationId:de.getIn(["operation","__originalOperationId"]),showSummary:d,isShown:E,jumpToKey:x,allowTryItOut:k,request:R,displayOperationId:L,displayRequestDuration:V,isDeepLinkingEnabled:Q,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return u.createElement(G,{operation:Ne,response:P,request:R,isShown:E,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:J,specActions:me,specSelectors:re,oas3Actions:xe,oas3Selectors:Oe,layoutActions:ce,layoutSelectors:be,authActions:_e,authSelectors:Ae,getComponent:le,getConfigs:ve,fn:je})}}var e7=Be(13222),t7=Be.n(e7);class r7 extends u.PureComponent{static defaultProps={operationProps:null,specPath:(0,H.List)(),summary:""};render(){let{isShown:e,toggleShown:r,getComponent:n,authActions:a,authSelectors:o,operationProps:p,specPath:c}=this.props,{summary:d,isAuthorized:E,method:x,op:k,showSummary:P,path:R,operationId:L,originalOperationId:V,displayOperationId:Q}=p.toObject();const J=k.get("summary"),re=p.get("security"),me=n("authorizeOperationBtn",!0),le=n("OperationSummaryMethod"),ve=n("OperationSummaryPath"),be=n("JumpToPath",!0),ce=n("CopyToClipboardBtn",!0),_e=n("ArrowUpIcon"),Ae=n("ArrowDownIcon"),xe=re&&!!re.count(),Oe=xe&&re.size===1&&re.first().isEmpty(),je=!xe||Oe;return u.createElement("div",{className:`opblock-summary opblock-summary-${x}`},u.createElement("button",{"aria-expanded":e,className:"opblock-summary-control",onClick:r},u.createElement(le,{method:x}),u.createElement("div",{className:"opblock-summary-path-description-wrapper"},u.createElement(ve,{getComponent:n,operationProps:p,specPath:c}),P?u.createElement("div",{className:"opblock-summary-description"},t7()(J||d)):null),Q&&(V||L)?u.createElement("span",{className:"opblock-summary-operation-id"},V||L):null),u.createElement(ce,{textToCopy:`${c.get(1)}`}),je?null:u.createElement(me,{isAuthorized:E,onClick:()=>{const G=o.definitionsForRequirements(re);a.showDefinitions(G)}}),u.createElement(be,{path:c}),u.createElement("button",{"aria-label":`${x} ${R.replace(/\//g,"​/")}`,className:"opblock-control-arrow","aria-expanded":e,tabIndex:"-1",onClick:r},e?u.createElement(_e,{className:"arrow"}):u.createElement(Ae,{className:"arrow"})))}}class n7 extends u.PureComponent{static defaultProps={operationProps:null};render(){let{method:e}=this.props;return u.createElement("span",{className:"opblock-summary-method"},e.toUpperCase())}}class a7 extends u.PureComponent{render(){let{getComponent:e,operationProps:r}=this.props,{deprecated:n,isShown:a,path:o,tag:p,operationId:c,isDeepLinkingEnabled:d}=r.toObject();const E=o.split(/(?=\/)/g);for(let k=1;k{let r=e("OperationExtRow");return u.createElement("div",{className:"opblock-section"},u.createElement("div",{className:"opblock-section-header"},u.createElement("h4",null,"Extensions")),u.createElement("div",{className:"table-container"},u.createElement("table",null,u.createElement("thead",null,u.createElement("tr",null,u.createElement("td",{className:"col_header"},"Field"),u.createElement("td",{className:"col_header"},"Value"))),u.createElement("tbody",null,t.entrySeq().map((([n,a])=>u.createElement(r,{key:`${n}-${a}`,xKey:n,xVal:a})))))))},i7=({xKey:t,xVal:e})=>{const r=e?e.toJS?e.toJS():e:null;return u.createElement("tr",null,u.createElement("td",null,t),u.createElement("td",null,JSON.stringify(r)))};function B1(t,e="_"){return t.replace(/[^\w-]/g,e)}class q1 extends u.Component{static defaultProps={tryItOutResponse:null,produces:(0,H.fromJS)(["application/json"]),displayRequestDuration:!1};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);onResponseContentTypeChange=({controlsAcceptHeader:e,value:r})=>{const{oas3Actions:n,path:a,method:o}=this.props;e&&n.setResponseContentType({value:r,path:a,method:o})};render(){let{responses:e,tryItOutResponse:r,getComponent:n,getConfigs:a,specSelectors:o,fn:p,producesValue:c,displayRequestDuration:d,specPath:E,path:x,method:k,oas3Selectors:P,oas3Actions:R}=this.props,L=(function(_e){let Ae=_e.keySeq();return Ae.contains(tn)?tn:Ae.filter((xe=>(xe+"")[0]==="2")).sort().first()})(e);const V=n("contentType"),Q=n("liveResponse"),J=n("response");let re=this.props.produces&&this.props.produces.size?this.props.produces:q1.defaultProps.produces;const me=o.isOAS3()?(function(_e){if(!H.default.OrderedMap.isOrderedMap(_e)||!_e.size)return null;const Ae=_e.find(((je,G)=>G.startsWith("2")&&Object.keys(je.get("content")||{}).length>0)),xe=_e.get("default")||H.default.OrderedMap(),Oe=(xe.get("content")||H.default.OrderedMap()).keySeq().toJS().length?xe:null;return Ae||Oe})(e):null,le=e.filter(((ce,_e)=>!Yt(_e))),ve=B1(`${k}${x}_responses`),be=`${ve}_select`;return le&&le.size?u.createElement("div",{className:"responses-wrapper"},u.createElement("div",{className:"opblock-section-header"},u.createElement("h4",null,"Responses"),o.isOAS3()?null:u.createElement("label",{htmlFor:be},u.createElement("span",null,"Response content type"),u.createElement(V,{value:c,ariaControls:ve,ariaLabel:"Response content type",className:"execute-content-type",contentTypes:re,controlId:be,onChange:this.onChangeProducesWrapper}))),u.createElement("div",{className:"responses-inner"},r?u.createElement("div",null,u.createElement(Q,{response:r,getComponent:n,getConfigs:a,specSelectors:o,path:this.props.path,method:this.props.method,displayRequestDuration:d}),u.createElement("h4",null,"Responses")):null,u.createElement("table",{"aria-live":"polite",className:"responses-table",id:ve,role:"region"},u.createElement("thead",null,u.createElement("tr",{className:"responses-header"},u.createElement("td",{className:"col_header response-col_status"},"Code"),u.createElement("td",{className:"col_header response-col_description"},"Description"),o.isOAS3()?u.createElement("td",{className:"col col_header response-col_links"},"Links"):null)),u.createElement("tbody",null,le.entrySeq().map((([ce,_e])=>{let Ae=r&&r.get("status")==ce?"response_current":"";return u.createElement(J,{key:ce,path:x,method:k,specPath:E.push(ce),isDefault:L===ce,fn:p,className:Ae,code:ce,response:_e,specSelectors:o,controlsAcceptHeader:_e===me,onContentTypeChange:this.onResponseContentTypeChange,contentType:c,getConfigs:a,activeExamplesKey:P.activeExamplesMember(x,k,"responses",ce),oas3Actions:R,getComponent:n})})).toArray())))):null}}function _v(t){return(function(n){try{return!!JSON.parse(n)}catch{return null}})(t)?"json":null}class s7 extends u.Component{constructor(e,r){super(e,r),this.state={responseContentType:""}}static defaultProps={response:(0,H.fromJS)({}),onContentTypeChange:()=>{}};_onContentTypeChange=e=>{const{onContentTypeChange:r,controlsAcceptHeader:n}=this.props;this.setState({responseContentType:e}),r({value:e,controlsAcceptHeader:n})};getTargetExamplesKey=()=>{const{response:e,contentType:r,activeExamplesKey:n}=this.props,a=this.state.responseContentType||r,o=e.getIn(["content",a],(0,H.Map)({})).get("examples",null).keySeq().first();return n||o};render(){let{path:e,method:r,code:n,response:a,className:o,specPath:p,fn:c,getComponent:d,getConfigs:E,specSelectors:x,contentType:k,controlsAcceptHeader:P,oas3Actions:R}=this.props,{inferSchema:L,getSampleSchema:V}=c,Q=x.isOAS3();const{showExtensions:J}=E();let re=J?gr(a):null,me=a.get("headers"),le=a.get("links");const ve=d("ResponseExtension"),be=d("headers"),ce=d("HighlightCode",!0),_e=d("modelExample"),Ae=d("Markdown",!0),xe=d("operationLink"),Oe=d("contentType"),je=d("ExamplesSelect"),G=d("Example");var de,Ne;const Ye=this.state.responseContentType||k,ht=a.getIn(["content",Ye],(0,H.Map)({})),Ct=ht.get("examples",null);if(Q){const Dt=ht.get("schema");de=Dt?L(Dt.toJS()):null,Ne=Dt?p.push("content",this.state.responseContentType,"schema"):p}else de=a.get("schema"),Ne=a.has("schema")?p.push("schema"):p;let _t,qt,It=!1,Ot={includeReadOnly:!0};if(Q)if(qt=ht.get("schema")?.toJS(),H.Map.isMap(Ct)&&!Ct.isEmpty()){const Dt=this.getTargetExamplesKey(),or=Ut=>H.Map.isMap(Ut)?Ut.get("value"):void 0;_t=or(Ct.get(Dt,(0,H.Map)({}))),_t===void 0&&(_t=or(Ct.values().next().value)),It=!0}else ht.get("example")!==void 0&&(_t=ht.get("example"),It=!0);else{qt=de,Ot={...Ot,includeWriteOnly:!0};const Dt=a.getIn(["examples",Ye]);Dt&&(_t=Dt,It=!0)}const et=((Dt,or)=>{if(Dt==null)return null;const Ut=_v(Dt)?"json":null;return u.createElement("div",null,u.createElement(or,{className:"example",language:Ut},Gr(Dt)))})(V(qt,Ye,Ot,It?_t:void 0),ce);return u.createElement("tr",{className:"response "+(o||""),"data-code":n},u.createElement("td",{className:"response-col_status"},n),u.createElement("td",{className:"response-col_description"},u.createElement("div",{className:"response-col_description__inner"},u.createElement(Ae,{source:a.get("description")})),J&&re.size?re.entrySeq().map((([Dt,or])=>u.createElement(ve,{key:`${Dt}-${or}`,xKey:Dt,xVal:or}))):null,Q&&a.get("content")?u.createElement("section",{className:"response-controls"},u.createElement("div",{className:Xr()("response-control-media-type",{"response-control-media-type--accept-controller":P})},u.createElement("small",{className:"response-control-media-type__title"},"Media type"),u.createElement(Oe,{value:this.state.responseContentType,contentTypes:a.get("content")?a.get("content").keySeq():(0,H.Seq)(),onChange:this._onContentTypeChange,ariaLabel:"Media Type"}),P?u.createElement("small",{className:"response-control-media-type__accept-message"},"Controls ",u.createElement("code",null,"Accept")," header."):null),H.Map.isMap(Ct)&&!Ct.isEmpty()?u.createElement("div",{className:"response-control-examples"},u.createElement("small",{className:"response-control-examples__title"},"Examples"),u.createElement(je,{examples:Ct,currentExampleKey:this.getTargetExamplesKey(),onSelect:Dt=>R.setActiveExamplesMember({name:Dt,pathMethod:[e,r],contextType:"responses",contextName:n}),showLabels:!1})):null):null,et||de?u.createElement(_e,{specPath:Ne,getComponent:d,getConfigs:E,specSelectors:x,schema:nn(de),example:et,includeReadOnly:!0}):null,Q&&Ct?u.createElement(G,{example:Ct.get(this.getTargetExamplesKey(),(0,H.Map)({})),getComponent:d,getConfigs:E,omitValue:!0}):null,me?u.createElement(be,{headers:me,getComponent:d}):null),Q?u.createElement("td",{className:"response-col_links"},le?le.toSeq().entrySeq().map((([Dt,or])=>u.createElement(xe,{key:Dt,name:Dt,link:or,getComponent:d}))):u.createElement("i",null,"No links")):null)}}const l7=({xKey:t,xVal:e})=>u.createElement("div",{className:"response__extension"},t,": ",String(e));var c7=Be(26657),u7=Be.n(c7),p7=Be(80218),Zx=Be.n(p7);class h7 extends u.PureComponent{state={parsedContent:null};updateParsedContent=e=>{const{content:r}=this.props;if(e!==r)if(r&&r instanceof Blob){var n=new FileReader;n.onload=()=>{this.setState({parsedContent:n.result})},n.readAsText(r)}else this.setState({parsedContent:r.toString()})};componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(e){this.updateParsedContent(e.content)}render(){let{content:e,contentType:r,url:n,headers:a={},getComponent:o}=this.props;const{parsedContent:p}=this.state,c=o("HighlightCode",!0),d="response_"+new Date().getTime();let E,x;if(n=n||"",(/^application\/octet-stream/i.test(r)||a["Content-Disposition"]&&/attachment/i.test(a["Content-Disposition"])||a["content-disposition"]&&/attachment/i.test(a["content-disposition"])||a["Content-Description"]&&/File Transfer/i.test(a["Content-Description"])||a["content-description"]&&/File Transfer/i.test(a["content-description"]))&&(e.size>0||e.length>0))if("Blob"in window){let k=r||"text/html",P=e instanceof Blob?e:new Blob([e],{type:k}),R=window.URL.createObjectURL(P),L=[k,n.substr(n.lastIndexOf("/")+1),R].join(":"),V=a["content-disposition"]||a["Content-Disposition"];if(V!==void 0){let Q=(function(re){let me;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some((le=>(me=le.exec(re),me!==null))),me!==null&&me.length>1)try{return decodeURIComponent(me[1])}catch(le){console.error(le)}return null})(V);Q!==null&&(L=Q)}x=Qe.navigator&&Qe.navigator.msSaveOrOpenBlob?u.createElement("div",null,u.createElement("a",{href:R,onClick:()=>Qe.navigator.msSaveOrOpenBlob(P,L)},"Download file")):u.createElement("div",null,u.createElement("a",{href:R,download:L},"Download file"))}else x=u.createElement("pre",{className:"microlight"},"Download headers detected but your browser does not support downloading binary via XHR (Blob).");else if(/json/i.test(r)){let k=null;_v(e)&&(k="json");try{E=JSON.stringify(JSON.parse(e),null," ")}catch{E=`can't parse JSON. Raw result: + +`+e}x=u.createElement(c,{language:k,downloadable:!0,fileName:`${d}.json`,canCopy:!0},E)}else/xml/i.test(r)?(E=u7()(e,{textNodesOnSameLine:!0,indentor:" "}),x=u.createElement(c,{downloadable:!0,fileName:`${d}.xml`,canCopy:!0},E)):x=Zx()(r)==="text/html"||/text\/plain/.test(r)?u.createElement(c,{downloadable:!0,fileName:`${d}.html`,canCopy:!0},e):Zx()(r)==="text/csv"||/text\/csv/.test(r)?u.createElement(c,{downloadable:!0,fileName:`${d}.csv`,canCopy:!0},e):/^image\//i.test(r)?r.includes("svg")?u.createElement("div",null," ",e," "):u.createElement("img",{src:window.URL.createObjectURL(e)}):/^audio\//i.test(r)?u.createElement("pre",{className:"microlight"},u.createElement("audio",{controls:!0,key:n},u.createElement("source",{src:n,type:r}))):typeof e=="string"?u.createElement(c,{downloadable:!0,fileName:`${d}.txt`,canCopy:!0},e):e.size>0?p?u.createElement("div",null,u.createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),u.createElement(c,{downloadable:!0,fileName:`${d}.txt`,canCopy:!0},p)):u.createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return x?u.createElement("div",null,u.createElement("h5",null,"Response body"),x):null}}class d7 extends u.Component{constructor(e){super(e),this.state={callbackVisible:!1,parametersVisible:!0}}static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]};onChange=(e,r,n)=>{let{specActions:{changeParamByIdentity:a},onChangeKey:o}=this.props;a(o,e,r,n)};onChangeConsumesWrapper=e=>{let{specActions:{changeConsumesValue:r},onChangeKey:n}=this.props;r(n,e)};toggleTab=e=>e==="parameters"?this.setState({parametersVisible:!0,callbackVisible:!1}):e==="callbacks"?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0;onChangeMediaType=({value:e,pathMethod:r})=>{let{specActions:n,oas3Selectors:a,oas3Actions:o}=this.props;const p=a.hasUserEditedBody(...r),c=a.shouldRetainRequestBodyValue(...r);o.setRequestContentType({value:e,pathMethod:r}),o.initRequestBodyValidateError({pathMethod:r}),p||(c||o.setRequestBodyValue({value:void 0,pathMethod:r}),n.clearResponse(...r),n.clearRequest(...r),n.clearValidateParams(r))};render(){let{onTryoutClick:e,onResetClick:r,parameters:n,allowTryItOut:a,tryItOutEnabled:o,specPath:p,fn:c,getComponent:d,getConfigs:E,specSelectors:x,specActions:k,pathMethod:P,oas3Actions:R,oas3Selectors:L,operation:V}=this.props;const Q=d("parameterRow"),J=d("TryItOutButton"),re=d("contentType"),me=d("Callbacks",!0),le=d("RequestBody",!0),ve=o&&a,be=x.isOAS3(),ce=`${B1(`${P[1]}${P[0]}_requests`)}_select`,_e=V.get("requestBody"),Ae=Object.values(n.reduce(((xe,Oe)=>{if(H.Map.isMap(Oe)){const je=Oe.get("in");xe[je]??=[],xe[je].push(Oe)}return xe}),{})).reduce(((xe,Oe)=>xe.concat(Oe)),[]);return u.createElement("div",{className:"opblock-section"},u.createElement("div",{className:"opblock-section-header"},be?u.createElement("div",{className:"tab-header"},u.createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},u.createElement("h4",{className:"opblock-title"},u.createElement("span",null,"Parameters"))),V.get("callbacks")?u.createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},u.createElement("h4",{className:"opblock-title"},u.createElement("span",null,"Callbacks"))):null):u.createElement("div",{className:"tab-header"},u.createElement("h4",{className:"opblock-title"},"Parameters")),a?u.createElement(J,{isOAS3:x.isOAS3(),hasUserEditedBody:L.hasUserEditedBody(...P),enabled:o,onCancelClick:this.props.onCancelClick,onTryoutClick:e,onResetClick:()=>r(P)}):null),this.state.parametersVisible?u.createElement("div",{className:"parameters-container"},Ae.length?u.createElement("div",{className:"table-container"},u.createElement("table",{className:"parameters"},u.createElement("thead",null,u.createElement("tr",null,u.createElement("th",{className:"col_header parameters-col_name"},"Name"),u.createElement("th",{className:"col_header parameters-col_description"},"Description"))),u.createElement("tbody",null,Ae.map(((xe,Oe)=>u.createElement(Q,{fn:c,specPath:p.push(Oe.toString()),getComponent:d,getConfigs:E,rawParam:xe,param:x.parameterWithMetaByIdentity(P,xe),key:`${xe.get("in")}.${xe.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:x,specActions:k,oas3Actions:R,oas3Selectors:L,pathMethod:P,isExecute:ve})))))):u.createElement("div",{className:"opblock-description-wrapper"},u.createElement("p",null,"No parameters"))):null,this.state.callbackVisible?u.createElement("div",{className:"callbacks-container opblock-description-wrapper"},u.createElement(me,{callbacks:(0,H.Map)(V.get("callbacks")),specPath:p.slice(0,-1).push("callbacks")})):null,be&&_e&&this.state.parametersVisible&&u.createElement("div",{className:"opblock-section opblock-section-request-body"},u.createElement("div",{className:"opblock-section-header"},u.createElement("h4",{className:`opblock-title parameter__name ${_e.get("required")&&"required"}`},"Request body"),u.createElement("label",{id:ce},u.createElement(re,{value:L.requestContentType(...P),contentTypes:_e.get("content",(0,H.List)()).keySeq(),onChange:xe=>{this.onChangeMediaType({value:xe,pathMethod:P})},className:"body-param-content-type",ariaLabel:"Request content type",controlId:ce}))),u.createElement("div",{className:"opblock-description-wrapper"},u.createElement(le,{setRetainRequestBodyValueFlag:xe=>R.setRetainRequestBodyValueFlag({value:xe,pathMethod:P}),userHasEditedBody:L.hasUserEditedBody(...P),specPath:p.slice(0,-1).push("requestBody"),requestBody:_e,requestBodyValue:L.requestBodyValue(...P),requestBodyInclusionSetting:L.requestBodyInclusionSetting(...P),requestBodyErrors:L.requestBodyErrors(...P),isExecute:ve,getConfigs:E,activeExamplesKey:L.activeExamplesMember(...P,"requestBody","requestBody"),updateActiveExamplesKey:xe=>{this.props.oas3Actions.setActiveExamplesMember({name:xe,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(xe,Oe)=>{if(Oe){const je=L.requestBodyValue(...P),G=H.Map.isMap(je)?je:(0,H.Map)();return R.setRequestBodyValue({pathMethod:P,value:G.setIn(Oe,xe)})}R.setRequestBodyValue({value:xe,pathMethod:P})},onChangeIncludeEmpty:(xe,Oe)=>{R.setRequestBodyInclusion({pathMethod:P,value:Oe,name:xe})},contentType:L.requestContentType(...P)}))))}}const f7=({xKey:t,xVal:e})=>u.createElement("div",{className:"parameter__extension"},t,": ",String(e)),m7={onChange:()=>{},isIncludedOptions:{}};class g7 extends u.Component{static defaultProps=m7;componentDidMount(){const{isIncludedOptions:e,onChange:r}=this.props,{shouldDispatchInit:n,defaultValue:a}=e;n&&r(a)}onCheckboxChange=e=>{const{onChange:r}=this.props;r(e.target.checked)};render(){let{isIncluded:e,isDisabled:r}=this.props;return u.createElement("div",null,u.createElement("label",{htmlFor:"include_empty_value",className:Xr()("parameter__empty_value_toggle",{disabled:r})},u.createElement("input",{id:"include_empty_value",type:"checkbox",disabled:r,checked:!r&&e,onChange:this.onCheckboxChange}),"Send empty value"))}}const U1=t=>{if(H.List.isList(t))return t;if(typeof t!="string")return null;try{const e=JSON.parse(t);return Array.isArray(e)?(0,H.List)(e):null}catch{return null}};class y7 extends u.Component{constructor(e,r){super(e,r),this.setDefaultValue()}UNSAFE_componentWillReceiveProps(e){let r,{specSelectors:n,pathMethod:a,rawParam:o}=e,p=n.isOAS3(),c=n.parameterWithMetaByIdentity(a,o)||new H.Map;if(c=c.isEmpty()?o:c,p){let{schema:x}=sr(c,{isOAS3:p});r=x?x.get("enum"):void 0}else r=c?c.get("enum"):void 0;let d,E=c?c.get("value"):void 0;E!==void 0?d=E:o.get("required")&&r&&r.size&&(d=r.first()),d!==void 0&&d!==E&&this.onChangeWrapper((function(k){return typeof k=="number"?k.toString():k})(d)),this.setDefaultValue()}onChangeWrapper=(e,r=!1)=>{let n,{onChange:a,rawParam:o}=this.props;return n=e===""||e&&e.size===0?null:e,a(o,n,r)};_onExampleSelect=e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})};onChangeIncludeEmpty=e=>{let{specActions:r,param:n,pathMethod:a}=this.props;const o=n.get("name"),p=n.get("in");return r.updateEmptyParamInclusion(a,o,p,e)};setDefaultValue=()=>{let{specSelectors:e,pathMethod:r,rawParam:n,oas3Selectors:a,fn:o}=this.props;const p=e.isOAS3(),c=e.parameterWithMetaByIdentity(r,n)||(0,H.Map)();let{schema:d}=sr(c,{isOAS3:p});const E=c.get("content",(0,H.Map)()).keySeq().first(),x=d?o.getSampleSchema(d.toJS(),E,{includeWriteOnly:!0}):null;if(c&&c.get("value")===void 0&&c.get("in")!=="body"){let k;if(e.isSwagger2())k=c.get("x-example")!==void 0?c.get("x-example"):c.getIn(["schema","example"])!==void 0?c.getIn(["schema","example"]):d&&d.getIn(["default"]);else if(p){d=this.composeJsonSchema(d);const V=a.activeExamplesMember(...r,"parameters",this.getParamKey());k=c.getIn(["examples",V,"value"])!==void 0?c.getIn(["examples",V,"value"]):c.getIn(["content",E,"example"])!==void 0?c.getIn(["content",E,"example"]):c.get("example")!==void 0?c.get("example"):(d&&d.get("example"))!==void 0?d&&d.get("example"):(d&&d.get("default"))!==void 0?d&&d.get("default"):c.get("default")}k===void 0||H.List.isList(k)||(k=Gr(k));const P=o.getSchemaObjectType(d),R=o.getSchemaObjectType(d?.get("items")),L=H.List.isList(d?.get("type"));if(p&&P==="array"&&!L&&k!==void 0){const V=U1(k);return void this.onChangeWrapper(V)}if(k!==void 0)this.onChangeWrapper(k);else if(P==="object"&&x&&!c.get("examples"))this.onChangeWrapper(H.List.isList(x)?x:Gr(x));else if(P==="array"&&R==="object"&&x&&!c.get("examples")){const V=U1(x);this.onChangeWrapper(V)}}};onExampleValueUpdate=e=>{const{specSelectors:r,pathMethod:n,rawParam:a,fn:o}=this.props,p=r.parameterWithMetaByIdentity(n,a)||(0,H.Map)();let{schema:c}=sr(p,{isOAS3:!0});c&&(c=this.composeJsonSchema(c));const d=o.getSchemaObjectType(c),E=H.List.isList(c?.get("type"));if(d!=="array"||E)this.onChangeWrapper(e);else{const x=U1(e);this.onChangeWrapper(x)}};getParamKey(){const{param:e}=this.props;return e?`${e.get("name")}-${e.get("in")}`:null}composeJsonSchema(e){const{fn:r}=this.props,n=e.get("oneOf")?.get(0)?.toJS(),a=e.get("anyOf")?.get(0)?.toJS();return(0,H.fromJS)(r.mergeJsonSchema(e.toJS(),n??a??{}))}render(){let{param:e,rawParam:r,getComponent:n,getConfigs:a,isExecute:o,fn:p,onChangeConsumes:c,specSelectors:d,pathMethod:E,specPath:x,oas3Selectors:k}=this.props,P=d.isOAS3();const{showExtensions:R,showCommonExtensions:L}=a();if(e||(e=r),!r)return null;const V=n("JsonSchemaForm"),Q=n("ParamBody");let J=e.get("in"),re=J!=="body"?null:u.createElement(Q,{getComponent:n,getConfigs:a,fn:p,param:e,consumes:d.consumesOptionsFor(E),consumesValue:d.contentTypeValues(E).get("requestContentType"),onChange:this.onChangeWrapper,onChangeConsumes:c,isExecute:o,specSelectors:d,pathMethod:E});const me=n("modelExample"),le=n("Markdown",!0),ve=n("ParameterExt"),be=n("ParameterIncludeEmpty"),ce=n("ExamplesSelectValueRetainer"),_e=n("Example");let{schema:Ae}=sr(e,{isOAS3:P}),xe=d.parameterWithMetaByIdentity(E,r)||(0,H.Map)();const Oe=xe.get("content",(0,H.Map)()).keySeq().first();P&&(Ae=this.composeJsonSchema(Ae));let je=Ae?Ae.get("format"):null,G=J==="formData",de="FormData"in Qe,Ne=e.get("required");const Ye=p.getSchemaObjectType(Ae),ht=p.getSchemaObjectType(Ae?.get("items")),Ct=p.getSchemaObjectTypeLabel(Ae),_t=!re&&Ye==="object",qt=!re&&ht==="object";let It,Ot,et,Dt,or=xe?xe.get("value"):"",Ut=L?mr(Ae):null,pr=R?gr(e):null,W=!1;e!==void 0&&Ae&&(It=Ae.get("items")),It!==void 0?(Ot=It.get("enum"),et=It.get("default")):Ae&&(Ot=Ae.get("enum")),Ot&&Ot.size&&Ot.size>0&&(W=!0),e!==void 0&&(Ae&&(et=Ae.get("default")),et===void 0&&(et=e.get("default")),Dt=e.get("example"),Dt===void 0&&(Dt=e.get("x-example")));const $e=re?null:u.createElement(V,{fn:p,getComponent:n,value:or,required:Ne,disabled:!o,description:e.get("name"),onChange:this.onChangeWrapper,errors:xe.get("errors"),schema:Ae});return u.createElement("tr",{"data-param-name":e.get("name"),"data-param-in":e.get("in")},u.createElement("td",{className:"parameters-col_name"},u.createElement("div",{className:Ne?"parameter__name required":"parameter__name"},e.get("name"),Ne?u.createElement("span",null," *"):null),u.createElement("div",{className:"parameter__type"},Ct,je&&u.createElement("span",{className:"prop-format"},"($",je,")")),u.createElement("div",{className:"parameter__deprecated"},P&&e.get("deprecated")?"deprecated":null),u.createElement("div",{className:"parameter__in"},"(",e.get("in"),")")),u.createElement("td",{className:"parameters-col_description"},e.get("description")?u.createElement(le,{source:e.get("description")}):null,!re&&o||!W?null:u.createElement(le,{className:"parameter__enum",source:"Available values : "+Ot.map((function(Je){return Je})).toArray().map(String).join(", ")}),!re&&o||et===void 0?null:u.createElement(le,{className:"parameter__default",source:"Default value : "+et}),!re&&o||Dt===void 0?null:u.createElement(le,{source:"Example : "+Dt}),G&&!de&&u.createElement("div",null,"Error: your browser does not support FormData"),P&&e.get("examples")?u.createElement("section",{className:"parameter-controls"},u.createElement(ce,{examples:e.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onExampleValueUpdate,getComponent:n,defaultToFirstExample:!0,currentKey:k.activeExamplesMember(...E,"parameters",this.getParamKey()),currentUserInputValue:or})):null,_t||qt?u.createElement(me,{getComponent:n,specPath:Oe?x.push("content",Oe,"schema"):x.push("schema"),getConfigs:a,isExecute:o,specSelectors:d,schema:Ae,example:$e}):$e,re&&Ae?u.createElement(me,{getComponent:n,specPath:x.push("schema"),getConfigs:a,isExecute:o,specSelectors:d,schema:Ae,example:re,includeWriteOnly:!0}):null,!re&&o&&e.get("allowEmptyValue")?u.createElement(be,{onChange:this.onChangeIncludeEmpty,isIncluded:d.parameterInclusionSettingFor(E,e.get("name"),e.get("in")),isDisabled:!Wa(or)}):null,P&&e.get("examples")?u.createElement(_e,{example:e.getIn(["examples",k.activeExamplesMember(...E,"parameters",this.getParamKey())]),getComponent:n,getConfigs:a}):null,L&&Ut.size?Ut.entrySeq().map((([Je,Ft])=>u.createElement(ve,{key:`${Je}-${Ft}`,xKey:Je,xVal:Ft}))):null,R&&pr.size?pr.entrySeq().map((([Je,Ft])=>u.createElement(ve,{key:`${Je}-${Ft}`,xKey:Je,xVal:Ft}))):null))}}class v7 extends u.Component{handleValidateParameters=()=>{let{specSelectors:e,specActions:r,path:n,method:a}=this.props;return r.validateParams([n,a]),e.validateBeforeExecute([n,a])};handleValidateRequestBody=()=>{let{path:e,method:r,specSelectors:n,oas3Selectors:a,oas3Actions:o}=this.props,p={missingBodyValue:!1,missingRequiredKeys:[]};o.clearRequestBodyValidateError({path:e,method:r});let c=n.getOAS3RequiredRequestBodyContentType([e,r]),d=a.requestBodyValue(e,r),E=a.validateBeforeExecute([e,r]),x=a.requestContentType(e,r);if(!E)return p.missingBodyValue=!0,o.setRequestBodyValidateError({path:e,method:r,validationErrors:p}),!1;if(!c)return!0;let k=a.validateShallowRequired({oas3RequiredRequestBodyContentType:c,oas3RequestContentType:x,oas3RequestBodyValue:d});return!k||k.length<1||(k.forEach((P=>{p.missingRequiredKeys.push(P)})),o.setRequestBodyValidateError({path:e,method:r,validationErrors:p}),!1)};handleValidationResultPass=()=>{let{specActions:e,operation:r,path:n,method:a}=this.props;this.props.onExecute&&this.props.onExecute(),e.execute({operation:r,path:n,method:a})};handleValidationResultFail=()=>{let{specActions:e,path:r,method:n}=this.props;e.clearValidateParams([r,n]),setTimeout((()=>{e.validateParams([r,n])}),40)};handleValidationResult=e=>{e?this.handleValidationResultPass():this.handleValidationResultFail()};onClick=()=>{let e=this.handleValidateParameters(),r=this.handleValidateRequestBody(),n=e&&r;this.handleValidationResult(n)};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);render(){const{disabled:e}=this.props;return u.createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:e},"Execute")}}class b7 extends u.Component{render(){let{headers:e,getComponent:r}=this.props;const n=r("Property"),a=r("Markdown",!0);return e&&e.size?u.createElement("div",{className:"headers-wrapper"},u.createElement("h4",{className:"headers__title"},"Headers:"),u.createElement("table",{className:"headers"},u.createElement("thead",null,u.createElement("tr",{className:"header-row"},u.createElement("th",{className:"header-col"},"Name"),u.createElement("th",{className:"header-col"},"Description"),u.createElement("th",{className:"header-col"},"Type"))),u.createElement("tbody",null,e.entrySeq().map((([o,p])=>{if(!H.default.Map.isMap(p))return null;const c=p.get("description"),d=p.getIn(["schema"])?p.getIn(["schema","type"]):p.getIn(["type"]),E=p.getIn(["schema","example"]);return u.createElement("tr",{key:o},u.createElement("td",{className:"header-col"},o),u.createElement("td",{className:"header-col"},c?u.createElement(a,{source:c}):null),u.createElement("td",{className:"header-col"},d," ",E?u.createElement(n,{propKey:"Example",propVal:E,propClass:"header-example"}):null))})).toArray()))):null}}class w7 extends u.Component{render(){let{editorActions:e,errSelectors:r,layoutSelectors:n,layoutActions:a,getComponent:o}=this.props;const p=o("Collapse");if(e&&e.jumpToLine)var c=e.jumpToLine;let d=r.allErrors().filter((k=>k.get("type")==="thrown"||k.get("level")==="error"));if(!d||d.count()<1)return null;let E=n.isShown(["errorPane"],!0),x=d.sortBy((k=>k.get("line")));return u.createElement("pre",{className:"errors-wrapper"},u.createElement("hgroup",{className:"error"},u.createElement("h4",{className:"errors__title"},"Errors"),u.createElement("button",{className:"btn errors__clear-btn",onClick:()=>a.show(["errorPane"],!E)},E?"Hide":"Show")),u.createElement(p,{isOpened:E,animated:!0},u.createElement("div",{className:"errors"},x.map(((k,P)=>{let R=k.get("type");return R==="thrown"||R==="auth"?u.createElement(E7,{key:P,error:k.get("error")||k,jumpToLine:c}):R==="spec"?u.createElement(S7,{key:P,error:k,jumpToLine:c}):void 0})))))}}const E7=({error:t,jumpToLine:e})=>{if(!t)return null;let r=t.get("line");return u.createElement("div",{className:"error-wrapper"},t?u.createElement("div",null,u.createElement("h4",null,t.get("source")&&t.get("level")?e_(t.get("source"))+" "+t.get("level"):"",t.get("path")?u.createElement("small",null," at ",t.get("path")):null),u.createElement("span",{className:"message thrown"},t.get("message")),u.createElement("div",{className:"error-line"},r&&e?u.createElement("a",{onClick:e.bind(null,r)},"Jump to line ",r):null)):null)},S7=({error:t,jumpToLine:e=null})=>{let r=null;return t.get("path")?r=H.List.isList(t.get("path"))?u.createElement("small",null,"at ",t.get("path").join(".")):u.createElement("small",null,"at ",t.get("path")):t.get("line")&&!e&&(r=u.createElement("small",null,"on line ",t.get("line"))),u.createElement("div",{className:"error-wrapper"},t?u.createElement("div",null,u.createElement("h4",null,e_(t.get("source"))+" "+t.get("level")," ",r),u.createElement("span",{className:"message"},t.get("message")),u.createElement("div",{className:"error-line"},e?u.createElement("a",{onClick:e.bind(null,t.get("line"))},"Jump to line ",t.get("line")):null)):null)};function e_(t){return(t||"").split(" ").map((e=>e[0].toUpperCase()+e.slice(1))).join(" ")}const x7=()=>{};class _7 extends u.Component{static defaultProps={onChange:x7,value:null,contentTypes:(0,H.fromJS)(["application/json"])};componentDidMount(){const{contentTypes:e,onChange:r}=this.props;e&&e.size&&r(e.first())}componentDidUpdate(){const{contentTypes:e,value:r,onChange:n}=this.props;e&&e.size&&(e.includes(r)||n(e.first()))}onChangeWrapper=e=>this.props.onChange(e.target.value);render(){let{ariaControls:e,ariaLabel:r,className:n,contentTypes:a,controlId:o,value:p}=this.props;return a&&a.size?u.createElement("div",{className:"content-type-wrapper "+(n||"")},u.createElement("select",{"aria-controls":e,"aria-label":r,className:"content-type",id:o,onChange:this.onChangeWrapper,value:p||""},a.map((c=>u.createElement("option",{key:c,value:c},c))).toArray())):null}}function Im(...t){return t.filter((e=>!!e)).join(" ").trim()}class O7 extends u.Component{render(){let{fullscreen:e,full:r,...n}=this.props;if(e)return u.createElement("section",n);let a="swagger-container"+(r?"-full":"");return u.createElement("section",Yr()({},n,{className:Im(n.className,a)}))}}const z1={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class k7 extends u.Component{render(){const{hide:e,keepContents:r,mobile:n,tablet:a,desktop:o,large:p,...c}=this.props;if(e&&!r)return u.createElement("span",null);let d=[];for(let x in z1){if(!Object.prototype.hasOwnProperty.call(z1,x))continue;let k=z1[x];if(x in this.props){let P=this.props[x];if(P<1){d.push("none"+k);continue}d.push("block"+k),d.push("col-"+P+k)}}e&&d.push("hidden");let E=Im(c.className,...d);return u.createElement("section",Yr()({},c,{className:E}))}}class A7 extends u.Component{render(){return u.createElement("div",Yr()({},this.props,{className:Im(this.props.className,"wrapper")}))}}class C7 extends u.Component{static defaultProps={className:""};render(){return u.createElement("button",Yr()({},this.props,{className:Im(this.props.className,"button")}))}}const j7=t=>u.createElement("textarea",t),P7=t=>u.createElement("input",t);class N7 extends u.Component{static defaultProps={multiple:!1,allowEmptyValue:!0};constructor(e,r){let n;super(e,r),n=e.value?e.value:e.multiple?[""]:"",this.state={value:n}}onChange=e=>{let r,{onChange:n,multiple:a}=this.props,o=[].slice.call(e.target.options);r=a?o.filter((function(p){return p.selected})).map((function(p){return p.value})):e.target.value,this.setState({value:r}),n&&n(r)};UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){let{allowedValues:e,multiple:r,allowEmptyValue:n,disabled:a}=this.props,o=this.state.value?.toJS?.()||this.state.value;return u.createElement("select",{className:this.props.className,multiple:r,value:o,onChange:this.onChange,disabled:a},n?u.createElement("option",{value:""},"--"):null,e.map((function(p,c){return u.createElement("option",{key:c,value:String(p)},String(p))})))}}class t_ extends u.Component{render(){return u.createElement("a",Yr()({},this.props,{rel:"noopener noreferrer",className:Im(this.props.className,"link")}))}}const r_=({children:t})=>u.createElement("div",{className:"no-margin"}," ",t," ");class T7 extends u.Component{static defaultProps={isOpened:!1,animated:!1};renderNotAnimated(){return this.props.isOpened?u.createElement(r_,null,this.props.children):u.createElement("noscript",null)}render(){let{animated:e,isOpened:r,children:n}=this.props;return e?(n=r?n:null,u.createElement(r_,null,n)):this.renderNotAnimated()}}class I7 extends u.Component{constructor(...e){super(...e),this.setTagShown=this._setTagShown.bind(this)}_setTagShown(e,r){this.props.layoutActions.show(e,r)}showOp(e,r){let{layoutActions:n}=this.props;n.show(e,r)}render(){let{specSelectors:e,layoutSelectors:r,layoutActions:n,getComponent:a}=this.props,o=e.taggedOperations();const p=a("Collapse");return u.createElement("div",null,u.createElement("h4",{className:"overview-title"},"Overview"),o.map(((c,d)=>{let E=c.get("operations"),x=["overview-tags",d],k=r.isShown(x,!0);return u.createElement("div",{key:"overview-"+d},u.createElement("h4",{onClick:()=>n.show(x,!k),className:"link overview-tag"}," ",k?"-":"+",d),u.createElement(p,{isOpened:k,animated:!0},E.map((P=>{let{path:R,method:L,id:V}=P.toObject(),Q="operations",J=V,re=r.isShown([Q,J]);return u.createElement(M7,{key:V,path:R,method:L,id:R+"-"+L,shown:re,showOpId:J,showOpIdPrefix:Q,href:`#operation-${J}`,onClick:n.show})})).toArray()))})).valueSeq().toArray(),o.size<1&&u.createElement("h3",null," No operations defined in spec! "))}}class M7 extends u.Component{constructor(e){super(e),this.onClick=this._onClick.bind(this)}_onClick(){let{showOpId:e,showOpIdPrefix:r,onClick:n,shown:a}=this.props;n([r,e],!a)}render(){let{id:e,method:r,shown:n,href:a}=this.props;return u.createElement(t_,{href:a,onClick:this.onClick,className:"block opblock-link "+(n?"shown":"")},u.createElement("div",null,u.createElement("small",{className:`bold-label-${r}`},r.toUpperCase()),u.createElement("span",{className:"bold-label"},e)))}}class R7 extends u.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:e,defaultValue:r,initialValue:n,...a}=this.props;return u.createElement("input",Yr()({},a,{ref:o=>this.inputRef=o}))}}class D7 extends u.Component{render(){const{host:e,basePath:r}=this.props;return u.createElement("pre",{className:"base-url"},"[ Base URL: ",e,r," ]")}}class F7 extends u.PureComponent{render(){const{url:e,getComponent:r}=this.props,n=r("Link");return u.createElement(n,{target:"_blank",href:Dr(e)},u.createElement("span",{className:"url"}," ",e))}}class L7 extends u.Component{render(){const{info:e,url:r,host:n,basePath:a,getComponent:o,externalDocs:p,selectedServer:c,url:d}=this.props,E=e.get("version"),x=e.get("description"),k=e.get("title"),P=ba(e.get("termsOfService"),d,{selectedServer:c}),R=e.get("contact"),L=e.get("license"),V=ba(p&&p.get("url"),d,{selectedServer:c}),Q=p&&p.get("description"),J=o("Markdown",!0),re=o("Link"),me=o("VersionStamp"),le=o("OpenAPIVersion"),ve=o("InfoUrl"),be=o("InfoBasePath"),ce=o("License"),_e=o("Contact");return u.createElement("div",{className:"info"},u.createElement("hgroup",{className:"main"},u.createElement("h1",{className:"title"},k,u.createElement("span",null,E&&u.createElement(me,{version:E}),u.createElement(le,{oasVersion:"2.0"}))),n||a?u.createElement(be,{host:n,basePath:a}):null,r&&u.createElement(ve,{getComponent:o,url:r})),u.createElement("div",{className:"description"},u.createElement(J,{source:x})),P&&u.createElement("div",{className:"info__tos"},u.createElement(re,{target:"_blank",href:Dr(P)},"Terms of service")),R?.size>0&&u.createElement(_e,{getComponent:o,data:R,selectedServer:c,url:r}),L?.size>0&&u.createElement(ce,{getComponent:o,license:L,selectedServer:c,url:r}),V?u.createElement(re,{className:"info__extdocs",target:"_blank",href:Dr(V)},Q||V):null)}}const $7=L7;class B7 extends u.Component{render(){const{specSelectors:e,getComponent:r,oas3Selectors:n}=this.props,a=e.info(),o=e.url(),p=e.basePath(),c=e.host(),d=e.externalDocs(),E=n.selectedServer(),x=r("info");return u.createElement("div",null,a&&a.count()?u.createElement(x,{info:a,url:o,host:c,basePath:p,externalDocs:d,getComponent:r,selectedServer:E}):null)}}class q7 extends u.Component{render(){const{data:e,getComponent:r,selectedServer:n,url:a}=this.props,o=e.get("name","the developer"),p=ba(e.get("url"),a,{selectedServer:n}),c=e.get("email"),d=r("Link");return u.createElement("div",{className:"info__contact"},p&&u.createElement("div",null,u.createElement(d,{href:Dr(p),target:"_blank"},o," - Website")),c&&u.createElement(d,{href:Dr(`mailto:${c}`)},p?`Send email to ${o}`:`Contact ${o}`))}}const U7=q7;class z7 extends u.Component{render(){const{license:e,getComponent:r,selectedServer:n,url:a}=this.props,o=e.get("name","License"),p=ba(e.get("url"),a,{selectedServer:n}),c=r("Link");return u.createElement("div",{className:"info__license"},p?u.createElement("div",{className:"info__license__url"},u.createElement(c,{target:"_blank",href:Dr(p)},o)):u.createElement("span",null,o))}}const V7=z7;class J7 extends u.Component{render(){return null}}const Ov="Copy path to clipboard";class W7 extends u.Component{render(){let{getComponent:e}=this.props;const r=e("CopyIcon");return u.createElement("div",{className:"view-line-link copy-to-clipboard",title:Ov,"aria-label":Ov},u.createElement(cu.CopyToClipboard,{text:this.props.textToCopy},u.createElement("button",{"aria-label":Ov,title:Ov,type:"button"},u.createElement(r,null))))}}class H7 extends u.Component{render(){return u.createElement("div",{className:"footer"})}}class K7 extends u.Component{onFilterChange=e=>{const{target:{value:r}}=e;this.props.layoutActions.updateFilter(r)};render(){const{specSelectors:e,layoutSelectors:r,getComponent:n}=this.props,a=n("Col"),o=e.loadingStatus()==="loading",p=e.loadingStatus()==="failed",c=r.currentFilter(),d=["operation-filter-input"];return p&&d.push("failed"),o&&d.push("loading"),u.createElement("div",null,c===!1?null:u.createElement("div",{className:"filter-container"},u.createElement(a,{className:"filter wrapper",mobile:12},u.createElement("input",{className:d.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:typeof c=="string"?c:"",disabled:o}))))}}const V1=Function.prototype;class J1 extends u.PureComponent{static defaultProp={consumes:(0,H.fromJS)(["application/json"]),param:(0,H.fromJS)({}),onChange:V1,onChangeConsumes:V1};constructor(e,r){super(e,r),this.state={isEditBox:!1,value:""}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(e){this.updateValues.call(this,e)}updateValues=e=>{let{param:r,isExecute:n,consumesValue:a=""}=e,o=/xml/i.test(a),p=/json/i.test(a),c=o?r.get("value_xml"):r.get("value");if(c!==void 0){let d=!c&&p?"{}":c;this.setState({value:d}),this.onChange(d,{isXml:o,isEditBox:n})}else o?this.onChange(this.sample("xml"),{isXml:o,isEditBox:n}):this.onChange(this.sample(),{isEditBox:n})};sample=e=>{let{param:r,fn:n}=this.props,a=n.inferSchema(r.toJS());return n.getSampleSchema(a,e,{includeWriteOnly:!0})};onChange=(e,{isEditBox:r,isXml:n})=>{this.setState({value:e,isEditBox:r}),this._onChange(e,n)};_onChange=(e,r)=>{(this.props.onChange||V1)(e,r)};handleOnChange=e=>{const{consumesValue:r}=this.props,n=/xml/i.test(r),a=e.target.value;this.onChange(a,{isXml:n,isEditBox:this.state.isEditBox})};toggleIsEditBox=()=>this.setState((e=>({isEditBox:!e.isEditBox})));render(){let{onChangeConsumes:e,param:r,isExecute:n,specSelectors:a,pathMethod:o,getComponent:p}=this.props;const c=p("Button"),d=p("TextArea"),E=p("HighlightCode",!0),x=p("contentType");let k=(a?a.parameterWithMetaByIdentity(o,r):r).get("errors",(0,H.List)()),P=a.contentTypeValues(o).get("requestContentType"),R=this.props.consumes&&this.props.consumes.size?this.props.consumes:J1.defaultProp.consumes,{value:L,isEditBox:V}=this.state,Q=null;_v(L)&&(Q="json");const J=`${B1(`${o[1]}${o[0]}_parameters`)}_select`;return u.createElement("div",{className:"body-param","data-param-name":r.get("name"),"data-param-in":r.get("in")},V&&n?u.createElement(d,{className:"body-param__text"+(k.count()?" invalid":""),value:L,onChange:this.handleOnChange}):L&&u.createElement(E,{className:"body-param__example",language:Q},L),u.createElement("div",{className:"body-param-options"},n?u.createElement("div",{className:"body-param-edit"},u.createElement(c,{className:V?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},V?"Cancel":"Edit")):null,u.createElement("label",{htmlFor:J},u.createElement("span",null,"Parameter content type"),u.createElement(x,{value:P,contentTypes:R,onChange:e,className:"body-param-content-type",ariaLabel:"Parameter content type",controlId:J}))))}}const kv="Copy cURL command to clipboard";class G7 extends u.Component{render(){const{request:e,getComponent:r}=this.props,n=mp(e),a=r("SyntaxHighlighter",!0);return u.createElement("div",{className:"curl-command"},u.createElement("h4",null,"Curl"),u.createElement("div",{className:"copy-to-clipboard",title:kv,"aria-label":kv},u.createElement(cu.CopyToClipboard,{text:n},u.createElement("button",{"aria-label":kv,title:kv,type:"button"}))),u.createElement("div",null,u.createElement(a,{language:"bash",className:"curl microlight",renderPlainText:({children:o,PlainTextViewer:p})=>u.createElement(p,{className:"curl"},o)},n)))}}const Y7=({propKey:t,propVal:e,propClass:r})=>u.createElement("span",{className:r},u.createElement("br",null),t,": ",Gr(e));class X7 extends u.Component{static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1};render(){const{onTryoutClick:e,onCancelClick:r,onResetClick:n,enabled:a,hasUserEditedBody:o,isOAS3:p}=this.props,c=p&&o;return u.createElement("div",{className:c?"try-out btn-group":"try-out"},a?u.createElement("button",{className:"btn try-out__btn cancel",onClick:r},"Cancel"):u.createElement("button",{className:"btn try-out__btn",onClick:e},"Try it out "),c&&u.createElement("button",{className:"btn try-out__btn reset",onClick:n},"Reset"))}}class Q7 extends u.PureComponent{static defaultProps={alsoShow:null,children:null,bypass:!1};render(){const{bypass:e,isSwagger2:r,isOAS3:n,alsoShow:a}=this.props;return e?u.createElement("div",null,this.props.children):r&&n?u.createElement("div",{className:"version-pragma"},a,u.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,u.createElement("code",null,"swagger")," and ",u.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),u.createElement("p",null,"Supported version fields are ",u.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",u.createElement("code",null,"openapi: 3.0.n")," (for example, ",u.createElement("code",null,"openapi: 3.0.4"),").")))):r||n?u.createElement("div",null,this.props.children):u.createElement("div",{className:"version-pragma"},a,u.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,"The provided definition does not specify a valid version field."),u.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",u.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",u.createElement("code",null,"openapi: 3.0.n")," (for example, ",u.createElement("code",null,"openapi: 3.0.4"),")."))))}}const Z7=({version:t})=>u.createElement("small",null,u.createElement("pre",{className:"version"}," ",t," ")),eD=({oasVersion:t})=>u.createElement("small",{className:"version-stamp"},u.createElement("pre",{className:"version"},"OAS ",t)),tD=({enabled:t,path:e,text:r})=>u.createElement("a",{className:"nostyle",onClick:t?n=>n.preventDefault():null,href:t?`#/${e}`:null},u.createElement("span",null,r)),rD=()=>u.createElement("div",null,u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},u.createElement("defs",null,u.createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},u.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},u.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"close"},u.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},u.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},u.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},u.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),u.createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},u.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),u.createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},u.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),u.createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},u.createElement("g",{transform:"translate(2, -1)"},u.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))))));var W1;function n_(t){return(W1=W1||document.createElement("textarea")).innerHTML="&"+t+";",W1.value}var nD=Object.prototype.hasOwnProperty;function aD(t,e){return!!t&&nD.call(t,e)}function a_(t){return[].slice.call(arguments,1).forEach((function(e){if(e){if(typeof e!="object")throw new TypeError(e+"must be object");Object.keys(e).forEach((function(r){t[r]=e[r]}))}})),t}var oD=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Mm(t){return t.indexOf("\\")<0?t:t.replace(oD,"$1")}function o_(t){return!(t>=55296&&t<=57343)&&!(t>=64976&&t<=65007)&&!!(65535&~t&&(65535&t)!=65534)&&!(t>=0&&t<=8)&&t!==11&&!(t>=14&&t<=31)&&!(t>=127&&t<=159)&&!(t>1114111)}function H1(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}var iD=/&([a-z#][a-z0-9]{1,31});/gi,sD=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function lD(t,e){var r=0,n=n_(e);return e!==n?n:e.charCodeAt(0)===35&&sD.test(e)&&o_(r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10))?H1(r):t}function Hp(t){return t.indexOf("&")<0?t:t.replace(iD,lD)}var cD=/[&<>"]/,uD=/[&<>"]/g,pD={"&":"&","<":"<",">":">",'"':"""};function hD(t){return pD[t]}function Mi(t){return cD.test(t)?t.replace(uD,hD):t}var fr={};function i_(t,e){return++e>=t.length-2?e:t[e].type==="paragraph_open"&&t[e].tight&&t[e+1].type==="inline"&&t[e+1].content.length===0&&t[e+2].type==="paragraph_close"&&t[e+2].tight?i_(t,e+2):e}fr.blockquote_open=function(){return`
+`},fr.blockquote_close=function(t,e){return"
"+Kp(t,e)},fr.code=function(t,e){return t[e].block?"
"+Mi(t[e].content)+"
"+Kp(t,e):""+Mi(t[e].content)+""},fr.fence=function(t,e,r,n,a){var o,p,c=t[e],d="",E=r.langPrefix;if(c.params){if(p=(o=c.params.split(/\s+/g)).join(" "),aD(a.rules.fence_custom,o[0]))return a.rules.fence_custom[o[0]](t,e,r,n,a);d=' class="'+E+Mi(Hp(Mm(p)))+'"'}return"
"+(r.highlight&&r.highlight.apply(r.highlight,[c.content].concat(o))||Mi(c.content))+"
"+Kp(t,e)},fr.fence_custom={},fr.heading_open=function(t,e){return""},fr.heading_close=function(t,e){return" +`},fr.hr=function(t,e,r){return(r.xhtmlOut?"
":"
")+Kp(t,e)},fr.bullet_list_open=function(){return`
    +`},fr.bullet_list_close=function(t,e){return"
"+Kp(t,e)},fr.list_item_open=function(){return"
  • "},fr.list_item_close=function(){return`
  • +`},fr.ordered_list_open=function(t,e){var r=t[e];return"1?' start="'+r.order+'"':"")+`> +`},fr.ordered_list_close=function(t,e){return""+Kp(t,e)},fr.paragraph_open=function(t,e){return t[e].tight?"":"

    "},fr.paragraph_close=function(t,e){var r=!(t[e].tight&&e&&t[e-1].type==="inline"&&!t[e-1].content);return(t[e].tight?"":"

    ")+(r?Kp(t,e):"")},fr.link_open=function(t,e,r){var n=t[e].title?' title="'+Mi(Hp(t[e].title))+'"':"",a=r.linkTarget?' target="'+r.linkTarget+'"':"";return'"},fr.link_close=function(){return""},fr.image=function(t,e,r){var n=' src="'+Mi(t[e].src)+'"',a=t[e].title?' title="'+Mi(Hp(t[e].title))+'"':"";return""},fr.table_open=function(){return` +`},fr.table_close=function(){return`
    +`},fr.thead_open=function(){return` +`},fr.thead_close=function(){return` +`},fr.tbody_open=function(){return` +`},fr.tbody_close=function(){return` +`},fr.tr_open=function(){return""},fr.tr_close=function(){return` +`},fr.th_open=function(t,e){var r=t[e];return""},fr.th_close=function(){return""},fr.td_open=function(t,e){var r=t[e];return""},fr.td_close=function(){return""},fr.strong_open=function(){return""},fr.strong_close=function(){return""},fr.em_open=function(){return""},fr.em_close=function(){return""},fr.del_open=function(){return""},fr.del_close=function(){return""},fr.ins_open=function(){return""},fr.ins_close=function(){return""},fr.mark_open=function(){return""},fr.mark_close=function(){return""},fr.sub=function(t,e){return""+Mi(t[e].content)+""},fr.sup=function(t,e){return""+Mi(t[e].content)+""},fr.hardbreak=function(t,e,r){return r.xhtmlOut?`
    +`:`
    +`},fr.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?`
    +`:`
    +`:` +`},fr.text=function(t,e){return Mi(t[e].content)},fr.htmlblock=function(t,e){return t[e].content},fr.htmltag=function(t,e){return t[e].content},fr.abbr_open=function(t,e){return''},fr.abbr_close=function(){return""},fr.footnote_ref=function(t,e){var r=Number(t[e].id+1).toString(),n="fnref"+r;return t[e].subId>0&&(n+=":"+t[e].subId),'['+r+"]"},fr.footnote_block_open=function(t,e,r){return(r.xhtmlOut?`
    +`:`
    +`)+`
    +
      +`},fr.footnote_block_close=function(){return`
    +
    +`},fr.footnote_open=function(t,e){return'
  • '},fr.footnote_close=function(){return`
  • +`},fr.footnote_anchor=function(t,e){var r="fnref"+Number(t[e].id+1).toString();return t[e].subId>0&&(r+=":"+t[e].subId),' '},fr.dl_open=function(){return`
    +`},fr.dt_open=function(){return"
    "},fr.dd_open=function(){return"
    "},fr.dl_close=function(){return`
    +`},fr.dt_close=function(){return` +`},fr.dd_close=function(){return` +`};var Kp=fr.getBreak=function(e,r){return(r=i_(e,r))1||r===41&&--n<0)break;e++}return o!==e&&(a=Mm(t.src.slice(o,e)),!!t.parser.validateLink(a)&&(t.linkContent=a,t.pos=e,!0))}function l_(t,e){var r,n=e,a=t.posMax,o=t.src.charCodeAt(e);if(o!==34&&o!==39&&o!==40)return!1;for(e++,o===40&&(o=41);e=t.length)&&!wD.test(t[e])}function dd(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}var X1=[["block",function(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}],["abbr",function(e){var r,n,a,o,p=e.tokens;if(!e.inlineMode){for(r=1,n=p.length-1;r0?c[r].count:1,a=0;a=0;r--)if((p=o[r]).type==="text"){for(E=0,c=p.content,k.lastIndex=0,x=p.level,d=[];P=k.exec(c);)k.lastIndex>E&&d.push({type:"text",content:c.slice(E,P.index+P[1].length),level:x}),d.push({type:"abbr_open",title:e.env.abbreviations[":"+P[2]],level:x++}),d.push({type:"text",content:P[2],level:x}),d.push({type:"abbr_close",level:--x}),E=k.lastIndex-P[3].length;d.length&&(E=0;p--)if(e.tokens[p].type==="inline")for(r=(o=e.tokens[p].children).length-1;r>=0;r--)(n=o[r]).type==="text"&&(a=vD(a=n.content),mD.test(a)&&(a=a.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),n.content=a)}}],["smartquotes",function(e){var r,n,a,o,p,c,d,E,x,k,P,R,L,V,Q,J,re;if(e.options.typographer){for(re=[],Q=e.tokens.length-1;Q>=0;Q--)if(e.tokens[Q].type==="inline"){for(J=e.tokens[Q].children,re.length=0,r=0;r=0&&!(re[L].level<=d);L--);re.length=L+1,p=0,c=(a=n.content).length;e:for(;p=0&&(k=re[L],!(re[L].level=(a=t.eMarks[e])||(r=t.src.charCodeAt(n++))!==42&&r!==45&&r!==43||n=a||(r=t.src.charCodeAt(n++))<48||r>57)return-1;for(;;){if(n>=a)return-1;if(!((r=t.src.charCodeAt(n++))>=48&&r<=57)){if(r===41||r===46)break;return-1}}return n=this.eMarks[e]},Yp.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;en;)if(r!==this.src.charCodeAt(--e))return e+1;return e},Yp.prototype.getLines=function(e,r,n,a){var o,p,c,d,E,x=e;if(e>=r)return"";if(x+1===r)return p=this.bMarks[x]+Math.min(this.tShift[x],n),c=a?this.eMarks[x]+1:this.eMarks[x],this.src.slice(p,c);for(d=new Array(r-e),o=0;xn&&(E=n),E<0&&(E=0),p=this.bMarks[x]+E,c=x+1]/,SD=/^<\/([a-zA-Z]{1,15})[\s>]/;function Q1(t,e){var r=t.bMarks[e]+t.blkIndent,n=t.eMarks[e];return t.src.substr(r,n-r)}function Av(t,e){var r,n,a=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return a>=o||(n=t.src.charCodeAt(a++))!==126&&n!==58||a===(r=t.skipSpaces(a))||r>=o?-1:r}var Cv=[["code",function(e,r,n){var a,o;if(e.tShift[r]-e.blkIndent<4)return!1;for(o=a=r+1;a=4))break;o=++a}return e.line=a,e.tokens.push({type:"code",content:e.getLines(r,o,4+e.blkIndent,!0),block:!0,lines:[r,e.line],level:e.level}),!0}],["fences",function(e,r,n,a){var o,p,c,d,E,x=!1,k=e.bMarks[r]+e.tShift[r],P=e.eMarks[r];if(k+3>P||(o=e.src.charCodeAt(k))!==126&&o!==96||(E=k,(p=(k=e.skipChars(k,o))-E)<3)||(c=e.src.slice(k,P).trim()).indexOf("`")>=0)return!1;if(a)return!0;for(d=r;!(++d>=n)&&!((k=E=e.bMarks[d]+e.tShift[d])<(P=e.eMarks[d])&&e.tShift[d]=4||(k=e.skipChars(k,o))-EJ||e.src.charCodeAt(Q++)!==62||e.level>=e.options.maxNesting)return!1;if(a)return!0;for(e.src.charCodeAt(Q)===32&&Q++,E=e.blkIndent,e.blkIndent=0,d=[e.bMarks[r]],e.bMarks[r]=Q,p=(Q=Q=J,c=[e.tShift[r]],e.tShift[r]=Q-e.bMarks[r],P=e.parser.ruler.getRules("blockquote"),o=r+1;o=(J=e.eMarks[o]));o++)if(e.src.charCodeAt(Q++)!==62){if(p)break;for(V=!1,R=0,L=P.length;R=J,c.push(e.tShift[o]),e.tShift[o]=Q-e.bMarks[o];for(x=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:k=[r,0],level:e.level++}),e.parser.tokenize(e,r,o),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=x,k[1]=e.line,R=0;RE||(o=e.src.charCodeAt(d++))!==42&&o!==45&&o!==95)return!1;for(p=1;d=0)Q=!0;else{if(!((P=f_(e,r))>=0))return!1;Q=!1}if(e.level>=e.options.maxNesting)return!1;if(V=e.src.charCodeAt(P-1),a)return!0;for(re=e.tokens.length,Q?(k=e.bMarks[r]+e.tShift[r],L=Number(e.src.substr(k,P-k-1)),e.tokens.push({type:"ordered_list_open",order:L,lines:le=[r,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:le=[r,0],level:e.level++}),o=r,me=!1,be=e.parser.ruler.getRules("list");!(!(o=e.eMarks[o]?1:J-P)>4&&(R=1),R<1&&(R=1),p=P-e.bMarks[o]+R,e.tokens.push({type:"list_item_open",lines:ve=[r,0],level:e.level++}),d=e.blkIndent,E=e.tight,c=e.tShift[r],x=e.parentType,e.tShift[r]=J-e.bMarks[r],e.blkIndent=p,e.tight=!0,e.parentType="list",e.parser.tokenize(e,r,n,!0),e.tight&&!me||(xe=!1),me=e.line-r>1&&e.isEmpty(e.line-1),e.blkIndent=d,e.tShift[r]=c,e.tight=E,e.parentType=x,e.tokens.push({type:"list_item_close",level:--e.level}),o=r=e.line,ve[1]=o,J=e.bMarks[r],o>=n)||e.isEmpty(o)||e.tShift[o]k||e.src.charCodeAt(x)!==91||e.src.charCodeAt(x+1)!==94||e.level>=e.options.maxNesting)return!1;for(d=x+2;d=k||e.src.charCodeAt(++d)!==58)&&(a||(d++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),E=e.src.slice(x+2,d-2),e.env.footnotes.refs[":"+E]=-1,e.tokens.push({type:"footnote_reference_open",label:E,level:e.level++}),o=e.bMarks[r],p=e.tShift[r],c=e.parentType,e.tShift[r]=e.skipSpaces(d)-d,e.bMarks[r]=d,e.blkIndent+=4,e.parentType="footnote",e.tShift[r]=E||(o=e.src.charCodeAt(d))!==35||d>=E)return!1;for(p=1,o=e.src.charCodeAt(++d);o===35&&d6||dd&&e.src.charCodeAt(c-1)===32&&(E=c),e.line=r+1,e.tokens.push({type:"heading_open",hLevel:p,lines:[r,e.line],level:e.level}),d=n)&&!(e.tShift[c]3)&&!((o=e.bMarks[c]+e.tShift[c])>=(p=e.eMarks[c]))&&((a=e.src.charCodeAt(o))===45||a===61)&&(o=e.skipChars(o,a),!((o=e.skipSpaces(o))3||d+2>=E||e.src.charCodeAt(d)!==60)return!1;if((o=e.src.charCodeAt(d+1))===33||o===63){if(a)return!0}else{if(o!==47&&!(function(P){var R=32|P;return R>=97&&R<=122})(o))return!1;if(o===47){if(!(p=e.src.slice(d,E).match(SD)))return!1}else if(!(p=e.src.slice(d,E).match(ED)))return!1;if(g_[p[1].toLowerCase()]!==!0)return!1;if(a)return!0}for(c=r+1;cn||(E=r+1,e.tShift[E]=e.eMarks[E]||(o=e.src.charCodeAt(c))!==124&&o!==45&&o!==58||(p=Q1(e,r+1),!/^[-:| ]+$/.test(p))||(x=p.split("|"))<=2)return!1;for(P=[],d=0;d=0;if(k=r+1,e.isEmpty(k)&&++k>n||e.tShift[k]=e.options.maxNesting)return!1;x=e.tokens.length,e.tokens.push({type:"dl_open",lines:E=[r,0],level:e.level++}),c=r,p=k;e:for(;;){for(re=!0,J=!1,e.tokens.push({type:"dt_open",lines:[c,c],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(c,c+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[c,c],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:d=[k,0],level:e.level++}),Q=e.tight,R=e.ddIndent,P=e.blkIndent,V=e.tShift[p],L=e.parentType,e.blkIndent=e.ddIndent=e.tShift[p]+2,e.tShift[p]=o-e.bMarks[p],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,p,n,!0),e.tight&&!J||(re=!1),J=e.line-p>1&&e.isEmpty(e.line-1),e.tShift[p]=V,e.tight=Q,e.parentType=L,e.blkIndent=P,e.ddIndent=R,e.tokens.push({type:"dd_close",level:--e.level}),d[1]=k=e.line,k>=n||e.tShift[k]=n||(c=k,e.isEmpty(c))||e.tShift[c]=n||(e.isEmpty(p)&&p++,p>=n)||e.tShift[p]3)){for(o=!1,p=0,c=d.length;p=r))&&!(t.tShift[p]=0&&(t=t.replace(xD,(function(c,d){var E;return t.charCodeAt(d)===10?(o=d+1,p=0,c):(E=" ".slice((d-o-p)%4),p=d-o+1,E)}))),a=new Yp(t,this,e,r,n),this.tokenize(a,a.line,a.lineMax)};for(var ew=[],y_=0;y_<256;y_++)ew.push(0);function v_(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function b_(t,e){var r,n,a,o=e,p=!0,c=!0,d=t.posMax,E=t.src.charCodeAt(e);for(r=e>0?t.src.charCodeAt(e-1):-1;o=d&&(p=!1),(a=o-e)>=4?p=c=!1:((n=o?@[]^_`{|}~-".split("").forEach((function(t){ew[t.charCodeAt(0)]=1}));var AD=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,CD=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,jD=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],PD=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,ND=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function jv(t,e){return t=t.source,e=e||"",function r(n,a){return n?(a=a.source||a,t=t.replace(n,a),r):new RegExp(t,e)}}var TD=jv(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),ID=jv(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",TD)(),MD=jv(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",ID)(),RD=jv(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",MD)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/|/)("processing",/<[?].*?[?]>/)("declaration",/]*>/)("cdata",//)(),DD=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,FD=/^&([a-z][a-z0-9]{1,31});/i,tw=[["text",function(e,r){for(var n=e.pos;n=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){for(var p=n-2;p>=0;p--)if(e.pending.charCodeAt(p)!==32){e.pending=e.pending.substring(0,p+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(o++;o=d||e.src.charCodeAt(E+1)!==126||e.level>=e.options.maxNesting||(p=E>0?e.src.charCodeAt(E-1):-1,c=e.src.charCodeAt(E+2),p===126)||c===126||c===32||c===10)return!1;for(a=E+2;aE+3)return e.pos+=a-E,r||(e.pending+=e.src.slice(E,a)),!0;for(e.pos=E+2,o=1;e.pos+1=d||e.src.charCodeAt(E+1)!==43||e.level>=e.options.maxNesting||(p=E>0?e.src.charCodeAt(E-1):-1,c=e.src.charCodeAt(E+2),p===43)||c===43||c===32||c===10)return!1;for(a=E+2;a=d||e.src.charCodeAt(E+1)!==61||e.level>=e.options.maxNesting||(p=E>0?e.src.charCodeAt(E-1):-1,c=e.src.charCodeAt(E+2),p===61)||c===61||c===32||c===10)return!1;for(a=E+2;a=e.options.maxNesting)return!1;for(e.pos=k+n,d=[n];e.pos=o||e.level>=e.options.maxNesting)return!1;for(e.pos=p+1;e.pos=o||e.level>=e.options.maxNesting)return!1;for(e.pos=p+1;e.pos=e.options.maxNesting||(n=L+1,(a=Rm(e,L))<0))return!1;if((d=a+1)=R)return!1;for(L=d,s_(e,d)?(p=e.linkContent,d=e.pos):p="",L=d;d=R||e.src.charCodeAt(d)!==41)return e.pos=P,!1;d++}else{if(e.linkLevel>0)return!1;for(;d=0?o=e.src.slice(L,d++):d=L-1),o||(o===void 0&&(d=a+1),o=e.src.slice(n,a)),!(E=e.env.references[c_(o)]))return e.pos=P,!1;p=E.href,c=E.title}return r||(e.pos=n,e.posMax=a,k?e.push({type:"image",src:p,title:c,alt:e.src.substr(n,a-n),level:e.level}):(e.push({type:"link_open",href:p,title:c,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=d,e.posMax=R,!0}],["footnote_inline",function(e,r){var n,a,o,p,c=e.posMax,d=e.pos;return!(d+2>=c)&&e.src.charCodeAt(d)===94&&e.src.charCodeAt(d+1)===91&&!(e.level>=e.options.maxNesting)&&(n=d+2,!((a=Rm(e,d+1))<0)&&(r||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=n,e.posMax=a,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,p=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(p)},e.linkLevel--),e.pos=a+1,e.posMax=c,!0))}],["footnote_ref",function(e,r){var n,a,o,p,c=e.posMax,d=e.pos;if(d+3>c||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(d)!==91||e.src.charCodeAt(d+1)!==94||e.level>=e.options.maxNesting)return!1;for(a=d+2;a=c)&&(a++,n=e.src.slice(d+2,a-1),e.env.footnotes.refs[":"+n]!==void 0&&(r||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+n]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:n,count:0},e.env.footnotes.refs[":"+n]=o):o=e.env.footnotes.refs[":"+n],p=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:p,level:e.level})),e.pos=a,e.posMax=c,!0))}],["autolink",function(e,r){var n,a,o,p,c,d=e.pos;return e.src.charCodeAt(d)===60&&!((n=e.src.slice(d)).indexOf(">")<0)&&((a=n.match(ND))?!(jD.indexOf(a[1].toLowerCase())<0)&&(c=G1(p=a[0].slice(1,-1)),!!e.parser.validateLink(p)&&(r||(e.push({type:"link_open",href:c,level:e.level}),e.push({type:"text",content:p,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=a[0].length,!0)):!!(o=n.match(PD))&&(c=G1("mailto:"+(p=o[0].slice(1,-1))),!!e.parser.validateLink(c)&&(r||(e.push({type:"link_open",href:c,level:e.level}),e.push({type:"text",content:p,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=o[0].length,!0)))}],["htmltag",function(e,r){var n,a,o,p=e.pos;return!!e.options.html&&(o=e.posMax,!(e.src.charCodeAt(p)!==60||p+2>=o)&&!((n=e.src.charCodeAt(p+1))!==33&&n!==63&&n!==47&&!(function(d){var E=32|d;return E>=97&&E<=122})(n))&&!!(a=e.src.slice(p).match(RD))&&(r||e.push({type:"htmltag",content:e.src.slice(p,p+a[0].length),level:e.level}),e.pos+=a[0].length,!0))}],["entity",function(e,r){var n,a,o=e.pos,p=e.posMax;if(e.src.charCodeAt(o)!==38)return!1;if(o+10)t.pos=r;else{for(e=0;e=o)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Pv.prototype.parse=function(t,e,r,n){var a=new Gp(t,this,e,r,n);this.tokenize(a)};var $D={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function w_(t,e,r){this.src=e,this.env=r,this.options=t.options,this.tokens=[],this.inlineMode=!1,this.inline=t.inline,this.block=t.block,this.renderer=t.renderer,this.typographer=t.typographer}function Nc(t,e){typeof t!="string"&&(e=t,t="default"),e&&e.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead: + +import Remarkable from 'remarkable'; +import linkify from 'remarkable/linkify'; +new Remarkable().use(linkify) +`),this.inline=new Pv,this.block=new Z1,this.core=new d_,this.renderer=new K1,this.ruler=new Ri,this.options={},this.configure($D[t]),this.set(e||{})}Nc.prototype.set=function(t){a_(this.options,t)},Nc.prototype.configure=function(t){var e=this;if(!t)throw new Error("Wrong `remarkable` preset, check name/content");t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach((function(r){t.components[r].rules&&e[r].ruler.enable(t.components[r].rules,!0)}))},Nc.prototype.use=function(t,e){return t(this,e),this},Nc.prototype.parse=function(t,e){var r=new w_(this,t,e);return this.core.process(r),r.tokens},Nc.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},Nc.prototype.parseInline=function(t,e){var r=new w_(this,t,e);return r.inlineMode=!0,this.core.process(r),r.tokens},Nc.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};function E_(t,e){if(Array.prototype.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r=0;r--)e(t[r])===!0&&t.splice(r,1)}function rw(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}var nw=(function(){function t(e){e===void 0&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return t.prototype.setTagName=function(e){return this.tagName=e,this},t.prototype.getTagName=function(){return this.tagName||""},t.prototype.setAttr=function(e,r){return this.getAttrs()[e]=r,this},t.prototype.getAttr=function(e){return this.getAttrs()[e]},t.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},t.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},t.prototype.setClass=function(e){return this.setAttr("class",e)},t.prototype.addClass=function(e){for(var r,n=this.getClass(),a=this.whitespaceRegex,o=n?n.split(a):[],p=e.split(a);r=p.shift();)E_(o,r)===-1&&o.push(r);return this.getAttrs().class=o.join(" "),this},t.prototype.removeClass=function(e){for(var r,n=this.getClass(),a=this.whitespaceRegex,o=n?n.split(a):[],p=e.split(a);o.length&&(r=p.shift());){var c=E_(o,r);c!==-1&&o.splice(c,1)}return this.getAttrs().class=o.join(" "),this},t.prototype.getClass=function(){return this.getAttrs().class||""},t.prototype.hasClass=function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},t.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},t.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},t.prototype.getInnerHTML=function(){return this.innerHTML||""},t.prototype.getInnerHtml=function(){return this.getInnerHTML()},t.prototype.toAnchorString=function(){var e=this.getTagName(),r=this.buildAttrsStr();return["<",e,r=r?" "+r:"",">",this.getInnerHtml(),""].join("")},t.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),r=[];for(var n in e)e.hasOwnProperty(n)&&r.push(n+'="'+e[n]+'"');return r.join(" ")},t})(),S_=(function(){function t(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return t.prototype.build=function(e){return new nw({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},t.prototype.createAttrs=function(e){var r={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(r.class=n),this.newWindow&&(r.target="_blank",r.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length=R)return L.host.length==c?(L.host.substr(0,c-x)+d).substr(0,R+E):P(Q,R).substr(0,R+E);var J="";if(L.path&&(J+="/"+L.path),L.query&&(J+="?"+L.query),J){if((Q+J).length>=R)return(Q+J).length==c?(Q+J).substr(0,c):(Q+P(J,R-Q.length)).substr(0,R+E);Q+=J}if(L.fragment){var re="#"+L.fragment;if((Q+re).length>=R)return(Q+re).length==c?(Q+re).substr(0,c):(Q+P(re,R-Q.length)).substr(0,R+E);Q+=re}if(L.scheme&&L.host){var me=L.scheme+"://";if((Q+me).length0&&(le=Q.substr(-1*Math.floor(R/2))),(Q.substr(0,Math.ceil(R/2))+d+le).substr(0,R+E)})(e,n):a==="middle"?(function(p,c,d){if(p.length<=c)return p;var E,x;d==null?(d="…",E=8,x=3):(E=d.length,x=d.length);var k=c-x,P="";return k>0&&(P=p.substr(-1*Math.floor(k/2))),(p.substr(0,Math.ceil(k/2))+d+P).substr(0,k+E)})(e,n):(function(p,c,d){return(function(x,k,P){var R;return x.length>k&&(P==null?(P="…",R=3):R=P.length,x=x.substring(0,k-R)+P),x})(p,c,d)})(e,n)},t})(),fd=(function(){function t(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return t.prototype.getMatchedText=function(){return this.matchedText},t.prototype.setOffset=function(e){this.offset=e},t.prototype.getOffset=function(){return this.offset},t.prototype.getCssClassSuffixes=function(){return[this.getType()]},t.prototype.buildTag=function(){return this.tagBuilder.build(this)},t})(),aw=function(t,e){return aw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},aw(t,e)};function Vl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}aw(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var fa=function(){return fa=Object.assign||function(e){for(var r,n=1,a=arguments.length;n-1},t.isValidUriScheme=function(e){var r=e.match(this.uriSchemeRegex),n=r&&r[0].toLowerCase();return n!=="javascript:"&&n!=="vbscript:"},t.urlMatchDoesNotHaveProtocolOrDot=function(e,r){return!(!e||r&&this.hasFullProtocolRegex.test(r)||e.indexOf(".")!==-1)},t.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,r){return!(!e||!r)&&!this.hasFullProtocolRegex.test(r)&&!this.hasWordCharAfterProtocolRegex.test(e)},t.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,t.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,t.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+j_+"]"),t.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,t})(),GD=(x_=new RegExp("[/?#](?:["+ma+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+ma+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,sw(2),")","|","(","(//)?",/(?:www\.)/.source,sw(6),")","|","(","(//)?",sw(10)+"\\.",T_.source,"(?![-"+zD+"])",")",")","(?::[0-9]+)?","(?:"+x_.source+")?"].join(""),"gi")),YD=new RegExp("["+ma+"]"),M_=(function(t){function e(r){var n=t.call(this,r)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=GD,n.wordCharRegExp=YD,n.stripPrefix=r.stripPrefix,n.stripTrailingSlash=r.stripTrailingSlash,n.decodePercentEncoding=r.decodePercentEncoding,n}return Vl(e,t),e.prototype.parseMatches=function(r){for(var n,a=this.matcherRegex,o=this.stripPrefix,p=this.stripTrailingSlash,c=this.decodePercentEncoding,d=this.tagBuilder,E=[],x=function(){var P=n[0],R=n[1],L=n[4],V=n[5],Q=n[9],J=n.index,re=V||Q,me=r.charAt(J-1);if(!KD.isValid(P,R)||J>0&&me==="@"||J>0&&re&&k.wordCharRegExp.test(me))return"continue";if(/\?$/.test(P)&&(P=P.substr(0,P.length-1)),k.matchHasUnbalancedClosingParen(P))P=P.substr(0,P.length-1);else{var le=k.matchHasInvalidCharAfterTld(P,R);le>-1&&(P=P.substr(0,le))}var ve=["http://","https://"].find((function(Ae){return!!R&&R.indexOf(Ae)!==-1}));if(ve){var be=P.indexOf(ve);P=P.substr(be),R=R.substr(be),J+=be}var ce=R?"scheme":L?"www":"tld",_e=!!R;E.push(new C_({tagBuilder:d,matchedText:P,offset:J,urlMatchType:ce,url:P,protocolUrlMatch:_e,protocolRelativeMatch:!!re,stripPrefix:o,stripTrailingSlash:p,decodePercentEncoding:c}))},k=this;(n=a.exec(r))!==null;)x();return E},e.prototype.matchHasUnbalancedClosingParen=function(r){var n,a=r.charAt(r.length-1);if(a===")")n="(";else if(a==="]")n="[";else{if(a!=="}")return!1;n="{"}for(var o=0,p=0,c=r.length-1;p-1&&c-d<=140){var Q=r.slice(d,c),J=new O_({tagBuilder:n,matchedText:Q,offset:d,serviceName:a,hashtag:Q.slice(1)});o.push(J)}}},e})(md),XD=["twitter","facebook","instagram","tiktok"],QD=new RegExp("".concat(/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source),"g"),F_=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.matcherRegex=QD,r}return Vl(e,t),e.prototype.parseMatches=function(r){for(var n,a=this.matcherRegex,o=this.tagBuilder,p=[];(n=a.exec(r))!==null;){var c=n[0],d=c.replace(/[^0-9,;#]/g,""),E=!(!n[1]&&!n[2]),x=n.index==0?"":r.substr(n.index-1,1),k=r.substr(n.index+c.length,1),P=!x.match(/\d/)&&!k.match(/\d/);this.testMatch(n[3])&&this.testMatch(c)&&P&&p.push(new A_({tagBuilder:o,matchedText:c,offset:n.index,number:d,plusSign:E}))}return p},e.prototype.testMatch=function(r){return qD.test(r)},e})(md),ZD=new RegExp("@[_".concat(ma,"]{1,50}(?![_").concat(ma,"])"),"g"),eF=new RegExp("@[_.".concat(ma,"]{1,30}(?![_").concat(ma,"])"),"g"),tF=new RegExp("@[-_.".concat(ma,"]{1,50}(?![-_").concat(ma,"])"),"g"),rF=new RegExp("@[_.".concat(ma,"]{1,23}[_").concat(ma,"](?![_").concat(ma,"])"),"g"),nF=new RegExp("[^"+ma+"]"),L_=(function(t){function e(r){var n=t.call(this,r)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:ZD,instagram:eF,soundcloud:tF,tiktok:rF},n.nonWordCharRegex=nF,n.serviceName=r.serviceName,n}return Vl(e,t),e.prototype.parseMatches=function(r){var n,a=this.serviceName,o=this.matcherRegexes[this.serviceName],p=this.nonWordCharRegex,c=this.tagBuilder,d=[];if(!o)return d;for(;(n=o.exec(r))!==null;){var E=n.index,x=r.charAt(E-1);if(E===0||p.test(x)){var k=n[0].replace(/\.+$/g,""),P=k.slice(1);d.push(new k_({tagBuilder:c,matchedText:k,offset:E,serviceName:a,mention:P}))}}return d},e})(md);function aF(t,e){for(var r=e.onOpenTag,n=e.onCloseTag,a=e.onText,o=e.onComment,p=e.onDoctype,c=new Jl,d=0,E=t.length,x=0,k=0,P=c;d"?(P=new Jl(fa(fa({},P),{name:Ot()})),It()):ow.test(et)||BD.test(et)||et===":"||_t()}function J(et){et===">"?_t():ow.test(et)?x=3:_t()}function re(et){Qp.test(et)||(et==="/"?x=12:et===">"?It():et==="<"?qt():et==="="||iw.test(et)||UD.test(et)?_t():x=5)}function me(et){Qp.test(et)?x=6:et==="/"?x=12:et==="="?x=7:et===">"?It():et==="<"?qt():iw.test(et)&&_t()}function le(et){Qp.test(et)||(et==="/"?x=12:et==="="?x=7:et===">"?It():et==="<"?qt():iw.test(et)?_t():x=5)}function ve(et){Qp.test(et)||(et==='"'?x=8:et==="'"?x=9:/[>=`]/.test(et)?_t():et==="<"?qt():x=10)}function be(et){et==='"'&&(x=11)}function ce(et){et==="'"&&(x=11)}function _e(et){Qp.test(et)?x=4:et===">"?It():et==="<"&&qt()}function Ae(et){Qp.test(et)?x=4:et==="/"?x=12:et===">"?It():et==="<"?qt():(x=4,(function(){d--})())}function xe(et){et===">"?(P=new Jl(fa(fa({},P),{isClosing:!0})),It()):x=4}function Oe(et){t.substr(d,2)==="--"?(d+=2,P=new Jl(fa(fa({},P),{type:"comment"})),x=14):t.substr(d,7).toUpperCase()==="DOCTYPE"?(d+=7,P=new Jl(fa(fa({},P),{type:"doctype"})),x=20):_t()}function je(et){et==="-"?x=15:et===">"?_t():x=16}function G(et){et==="-"?x=18:et===">"?_t():x=16}function de(et){et==="-"&&(x=17)}function Ne(et){x=et==="-"?18:16}function Ye(et){et===">"?It():et==="!"?x=19:et==="-"||(x=16)}function ht(et){et==="-"?x=17:et===">"?It():x=16}function Ct(et){et===">"?It():et==="<"&&qt()}function _t(){x=0,P=c}function qt(){x=1,P=new Jl({idx:d})}function It(){var et=t.slice(k,P.idx);et&&a(et,k),P.type==="comment"?o(P.idx):P.type==="doctype"?p(P.idx):(P.isOpening&&r(P.name,P.idx),P.isClosing&&n(P.name,P.idx)),_t(),k=d+1}function Ot(){var et=P.idx+(P.isClosing?2:1);return t.slice(et,d).toLowerCase()}k=0&&a++},onText:function(p,c){if(a===0){var d=(function(k,P){if(!P.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var R,L=[],V=0;R=P.exec(k);)L.push(k.substring(V,R.index)),L.push(R[0]),V=R.index+R[0].length;return L.push(k.substring(V)),L})(p,/( | |<|<|>|>|"|"|')/gi),E=c;d.forEach((function(x,k){if(k%2==0){var P=r.parseText(x,E);o.push.apply(o,P)}E+=x.length}))}},onCloseTag:function(p){n.indexOf(p)>=0&&(a=Math.max(a-1,0))},onComment:function(p){},onDoctype:function(p){}}),o=this.compactMatches(o),o=this.removeUnwantedMatches(o)},t.prototype.compactMatches=function(e){e.sort((function(d,E){return d.getOffset()-E.getOffset()}));for(var r=0;ro?r:r+1;e.splice(c,1);continue}if(e[r+1].getOffset()/g,">"));for(var r=this.parse(e),n=[],a=0,o=0,p=r.length;o\s]/i.test(t)}function cF(t){return/^<\/a\s*>/i.test(t)}function uF(){var t=[],e=new iF({stripPrefix:!1,url:!0,email:!0,replaceFn:function(r){switch(r.getType()){case"url":t.push({text:r.matchedText,url:r.getUrl()});break;case"email":t.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")})}return!1}});return{links:t,autolinker:e}}function pF(t){var e,r,n,a,o,p,c,d,E,x,k,P,R,L=t.tokens,V=null;for(r=0,n=L.length;r=0;e--)if((o=a[e]).type!=="link_close"){if(o.type==="htmltag"&&(lF(o.content)&&k>0&&k--,cF(o.content)&&k++),!(k>0)&&o.type==="text"&&sF.test(o.content)){if(V||(P=(V=uF()).links,R=V.autolinker),p=o.content,P.length=0,R.link(p),!P.length)continue;for(c=[],x=o.level,d=0;dt.length)&&(e=t.length);for(var r=0,n=Array(e);r2?n-2:0),o=2;o1?r-1:0),a=1;a"u"?null:Ta(BigInt.prototype.toString),H_=typeof Symbol>"u"?null:Ta(Symbol.prototype.toString),ao=Ta(Object.prototype.hasOwnProperty),Mv=Ta(Object.prototype.toString),oo=Ta(RegExp.prototype.test),Zp=(function(e){return function(){for(var r=arguments.length,n=new Array(r),a=0;a1?r-1:0),a=1;a2&&arguments[2]!==void 0?arguments[2]:Fm;if(q_&&q_(t,null),!Uu(e))return t;let n=e.length;for(;n--;){let a=e[n];if(typeof a=="string"){const o=r(a);o!==a&&(fF(e)||(e[n]=o),a=o)}t[a]=!0}return t}function SF(t){for(let e=0;e/g),AF=_o(/\${[\w\W]*/g),CF=_o(/^data-[\-\w.\u00B7-\uFFFF]+$/),jF=_o(/^aria-[\-\w]+$/),Q_=_o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),PF=_o(/^(?:\w+script|data):/i),NF=_o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),TF=_o(/^html$/i),IF=_o(/^[a-z][.\w]*(-[.\w]+)+$/i),Z_=_o(/<[/\w!]/g),eO=_o(/<[/\w]/g),MF=_o(/<\/no(script|embed|frames)/i),RF=_o(/\/>/i),bd=1,DF=3,tO=7,rO=8,FF=9,LF=11,$F=function(){return typeof window>"u"?null:window},zu=function(e,r,n,a){return ao(e,r)&&Uu(e[r])?dn(a.base?Uo(a.base):{},e[r],a.transform):n};var mw=(function t(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$F();const r=rr=>t(rr);if(r.version="3.4.13",r.removed=[],!e||!e.document||e.document.nodeType!==FF||!e.Element)return r.isSupported=!1,r;let n=e.document;const a=n,o=a.currentScript;e.DocumentFragment;const p=e.HTMLTemplateElement,c=e.Node,d=e.Element,E=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const k=e.DOMParser,P=e.trustedTypes,R=d.prototype,L=Hs(R,"cloneNode"),V=Hs(R,"remove"),Q=Hs(R,"nextSibling"),J=Hs(R,"childNodes"),re=Hs(R,"parentNode"),me=Hs(R,"shadowRoot"),le=Hs(R,"attributes"),ve=c&&c.prototype?Hs(c.prototype,"nodeType"):null,be=c&&c.prototype?Hs(c.prototype,"nodeName"):null,ce=c&&c.prototype?Hs(c.prototype,"ownerDocument"):null;if(typeof p=="function"){const rr=n.createElement("template");rr.content&&rr.content.ownerDocument&&(n=rr.content.ownerDocument)}let _e,Ae,xe="",Oe=!1,je=0;const G=function(){if(je>0)throw Zp('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},de=function(Ie){G(),je++;try{return _e.createHTML(Ie)}finally{je--}},Ne=function(){return Oe||(Ae=(function(dt,Ht){if(typeof dt!="object"||typeof dt.createPolicy!="function")return null;let ir=null;const Or="data-tt-policy-suffix";Ht&&Ht.hasAttribute(Or)&&(ir=Ht.getAttribute(Or));const Pr="dompurify"+(ir?"#"+ir:"");try{return dt.createPolicy(Pr,{createHTML:$r=>$r,createScriptURL:$r=>$r})}catch{return console.warn("TrustedTypes policy "+Pr+" could not be created."),null}})(P,o),Oe=!0),Ae},Ye=n,ht=Ye.implementation,Ct=Ye.createNodeIterator,_t=Ye.createDocumentFragment,qt=Ye.getElementsByTagName,It=a.importNode;let Ot={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported=typeof B_=="function"&&typeof re=="function"&&ht&&ht.createHTMLDocument!==void 0;const et=OF,Dt=kF,or=AF,Ut=CF,pr=jF,W=PF,$e=NF,Je=IF;let Ft=Q_,it=null;const bt=dn({},[...K_,...pw,...hw,...dw,...G_]);let ut=null;const Xt=dn({},[...Y_,...fw,...X_,...Rv]);let zt=Object.seal(gd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),tr=null,Er=null;const dr=Object.seal(gd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let qr=!0,en=!0,kn=!1,ln=!0,jt=!1,We=!0,Kr=!1,Lr=!1,zr=null,yn=null,En=!1,Pn=!1,Ua=!1,Dn=!1,Di=!0,vn=!1;const cn="user-content-";let hi=!0,Hl=!1,Xs={},Zo=null;const so=dn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Bk=null;const qk=dn({},["audio","video","img","source","image","track"]);let qw=null;const Uk=dn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xv="http://www.w3.org/1998/Math/MathML",Qv="http://www.w3.org/2000/svg",Kl="http://www.w3.org/1999/xhtml";let _d=Kl,Uw=!1,zw=null;const wU=dn({},[Xv,Qv,Kl],uw),zk=xo(["mi","mo","mn","ms","mtext"]);let Vw=dn({},zk);const Vk=xo(["annotation-xml"]);let Jw=dn({},Vk);const EU=dn({},["title","style","font","a","script"]);let Jm=null;const SU=["application/xhtml+xml","text/html"];let oa=null,Od=null;const xU=n.createElement("form"),Jk=function(Ie){return Ie instanceof RegExp||Ie instanceof Function},Ww=function(){let Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Od&&Od===Ie)return;Ie&&typeof Ie=="object"||(Ie={}),Ie=Uo(Ie),Jm=SU.indexOf(Ie.PARSER_MEDIA_TYPE)===-1?"text/html":Ie.PARSER_MEDIA_TYPE,oa=Jm==="application/xhtml+xml"?uw:Fm,it=zu(Ie,"ALLOWED_TAGS",bt,{transform:oa}),ut=zu(Ie,"ALLOWED_ATTR",Xt,{transform:oa}),zw=zu(Ie,"ALLOWED_NAMESPACES",wU,{transform:uw}),qw=zu(Ie,"ADD_URI_SAFE_ATTR",Uk,{transform:oa,base:Uk}),Bk=zu(Ie,"ADD_DATA_URI_TAGS",qk,{transform:oa,base:qk}),Zo=zu(Ie,"FORBID_CONTENTS",so,{transform:oa}),tr=zu(Ie,"FORBID_TAGS",Uo({}),{transform:oa}),Er=zu(Ie,"FORBID_ATTR",Uo({}),{transform:oa}),Xs=!!ao(Ie,"USE_PROFILES")&&(Ie.USE_PROFILES&&typeof Ie.USE_PROFILES=="object"?Uo(Ie.USE_PROFILES):Ie.USE_PROFILES),qr=Ie.ALLOW_ARIA_ATTR!==!1,en=Ie.ALLOW_DATA_ATTR!==!1,kn=Ie.ALLOW_UNKNOWN_PROTOCOLS||!1,ln=Ie.ALLOW_SELF_CLOSE_IN_ATTR!==!1,jt=Ie.SAFE_FOR_TEMPLATES||!1,We=Ie.SAFE_FOR_XML!==!1,Kr=Ie.WHOLE_DOCUMENT||!1,Pn=Ie.RETURN_DOM||!1,Ua=Ie.RETURN_DOM_FRAGMENT||!1,Dn=Ie.RETURN_TRUSTED_TYPE||!1,En=Ie.FORCE_BODY||!1,Di=Ie.SANITIZE_DOM!==!1,vn=Ie.SANITIZE_NAMED_PROPS||!1,hi=Ie.KEEP_CONTENT!==!1,Hl=Ie.IN_PLACE||!1,Ft=(function(ir){try{return oo(ir,""),!0}catch{return!1}})(Ie.ALLOWED_URI_REGEXP)?Ie.ALLOWED_URI_REGEXP:Q_,_d=typeof Ie.NAMESPACE=="string"?Ie.NAMESPACE:Kl,Vw=ao(Ie,"MATHML_TEXT_INTEGRATION_POINTS")&&Ie.MATHML_TEXT_INTEGRATION_POINTS&&typeof Ie.MATHML_TEXT_INTEGRATION_POINTS=="object"?Uo(Ie.MATHML_TEXT_INTEGRATION_POINTS):dn({},zk),Jw=ao(Ie,"HTML_INTEGRATION_POINTS")&&Ie.HTML_INTEGRATION_POINTS&&typeof Ie.HTML_INTEGRATION_POINTS=="object"?Uo(Ie.HTML_INTEGRATION_POINTS):dn({},Vk);const dt=ao(Ie,"CUSTOM_ELEMENT_HANDLING")&&Ie.CUSTOM_ELEMENT_HANDLING&&typeof Ie.CUSTOM_ELEMENT_HANDLING=="object"?Uo(Ie.CUSTOM_ELEMENT_HANDLING):gd(null);if(zt=gd(null),ao(dt,"tagNameCheck")&&Jk(dt.tagNameCheck)&&(zt.tagNameCheck=dt.tagNameCheck),ao(dt,"attributeNameCheck")&&Jk(dt.attributeNameCheck)&&(zt.attributeNameCheck=dt.attributeNameCheck),ao(dt,"allowCustomizedBuiltInElements")&&typeof dt.allowCustomizedBuiltInElements=="boolean"&&(zt.allowCustomizedBuiltInElements=dt.allowCustomizedBuiltInElements),_o(zt),jt&&(en=!1),Ua&&(Pn=!0),Xs&&(it=dn({},G_),ut=gd(null),Xs.html===!0&&(dn(it,K_),dn(ut,Y_)),Xs.svg===!0&&(dn(it,pw),dn(ut,fw),dn(ut,Rv)),Xs.svgFilters===!0&&(dn(it,hw),dn(ut,fw),dn(ut,Rv)),Xs.mathMl===!0&&(dn(it,dw),dn(ut,X_),dn(ut,Rv))),dr.tagCheck=null,dr.attributeCheck=null,ao(Ie,"ADD_TAGS")&&(typeof Ie.ADD_TAGS=="function"?dr.tagCheck=Ie.ADD_TAGS:Uu(Ie.ADD_TAGS)&&(it===bt&&(it=Uo(it)),dn(it,Ie.ADD_TAGS,oa))),ao(Ie,"ADD_ATTR")&&(typeof Ie.ADD_ATTR=="function"?dr.attributeCheck=Ie.ADD_ATTR:Uu(Ie.ADD_ATTR)&&(ut===Xt&&(ut=Uo(ut)),dn(ut,Ie.ADD_ATTR,oa))),ao(Ie,"ADD_URI_SAFE_ATTR")&&Uu(Ie.ADD_URI_SAFE_ATTR)&&dn(qw,Ie.ADD_URI_SAFE_ATTR,oa),ao(Ie,"FORBID_CONTENTS")&&Uu(Ie.FORBID_CONTENTS)&&(Zo===so&&(Zo=Uo(Zo)),dn(Zo,Ie.FORBID_CONTENTS,oa)),ao(Ie,"ADD_FORBID_CONTENTS")&&Uu(Ie.ADD_FORBID_CONTENTS)&&(Zo===so&&(Zo=Uo(Zo)),dn(Zo,Ie.ADD_FORBID_CONTENTS,oa)),hi&&(it["#text"]=!0),Kr&&dn(it,["html","head","body"]),it.table&&(dn(it,["tbody"]),delete tr.tbody),Ie.TRUSTED_TYPES_POLICY){if(typeof Ie.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ie.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zp('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Ht=_e;_e=Ie.TRUSTED_TYPES_POLICY;try{xe=de("")}catch(ir){throw _e=Ht,ir}}else Ie.TRUSTED_TYPES_POLICY===null?(_e=void 0,xe=""):(_e===void 0&&(_e=Ne()),_e&&typeof xe=="string"&&(xe=de("")));xo&&xo(Ie),Od=Ie},Wk=dn({},[...pw,...hw,...xF]),Hk=dn({},[...dw,..._F]),_U=function(Ie){let dt=re(Ie);dt&&dt.tagName||(dt={namespaceURI:_d,tagName:"template"});const Ht=Fm(Ie.tagName),ir=Fm(dt.tagName);return!!zw[Ie.namespaceURI]&&(Ie.namespaceURI===Qv?(function(Pr,$r,ga){return $r.namespaceURI===Kl?Pr==="svg":$r.namespaceURI===Xv?Pr==="svg"&&(ga==="annotation-xml"||Vw[ga]):!!Wk[Pr]})(Ht,dt,ir):Ie.namespaceURI===Xv?(function(Pr,$r,ga){return $r.namespaceURI===Kl?Pr==="math":$r.namespaceURI===Qv?Pr==="math"&&Jw[ga]:!!Hk[Pr]})(Ht,dt,ir):Ie.namespaceURI===Kl?(function(Pr,$r,ga){return!($r.namespaceURI===Qv&&!Jw[ga])&&!($r.namespaceURI===Xv&&!Vw[ga])&&!Hk[Pr]&&(EU[Pr]||!Wk[Pr])})(Ht,dt,ir):!(Jm!=="application/xhtml+xml"||!zw[Ie.namespaceURI]))},Ju=function(Ie){vd(r.removed,{element:Ie});try{re(Ie).removeChild(Ie)}catch{if(V(Ie),!re(Ie))throw Zp("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Zv=function(Ie){Wm(Ie);const dt=J(Ie);if(dt){const ir=[];yd(dt,(Or=>{vd(ir,Or)})),yd(ir,(Or=>{try{V(Or)}catch{}}))}const Ht=le(Ie);if(Ht)for(let ir=Ht.length-1;ir>=0;--ir){const Or=Ht[ir],Pr=Or&&Or.name;if(typeof Pr=="string")try{Ie.removeAttribute(Pr)}catch{}}},kd=function(Ie,dt){try{vd(r.removed,{attribute:dt.getAttributeNode(Ie),from:dt})}catch{vd(r.removed,{attribute:null,from:dt})}if(dt.removeAttribute(Ie),Ie==="is")if(Pn||Ua)try{Ju(dt)}catch{}else try{dt.setAttribute(Ie,"")}catch{}},OU=function(Ie){const dt=le(Ie);if(dt)for(let Ht=dt.length-1;Ht>=0;--Ht){const ir=dt[Ht],Or=ir&&ir.name;if(typeof Or=="string"&&!ut[oa(Or)])try{Ie.removeAttribute(Or)}catch{}}},Wm=function(Ie){const dt=[Ie];for(;dt.length>0;){const Ht=dt.pop();(ve?ve(Ht):Ht.nodeType)===bd&&OU(Ht);const ir=J(Ht);if(ir)for(let Or=ir.length-1;Or>=0;--Or)dt.push(ir[Or])}},Kk=function(Ie){let dt=null,Ht=null;if(En)Ie=""+Ie;else{const Pr=V_(Ie,/^[\r\n\t ]+/);Ht=Pr&&Pr[0]}Jm==="application/xhtml+xml"&&_d===Kl&&(Ie=''+Ie+"");const ir=_e?de(Ie):Ie;if(_d===Kl)try{dt=new k().parseFromString(ir,Jm)}catch{}if(!dt||!dt.documentElement){dt=ht.createDocument(_d,"template",null);try{dt.documentElement.innerHTML=Uw?xe:ir}catch{}}const Or=dt.body||dt.documentElement;return Ie&&Ht&&Or.insertBefore(n.createTextNode(Ht),Or.childNodes[0]||null),_d===Kl?qt.call(dt,Kr?"html":"body")[0]:Kr?dt.documentElement:Or},Gk=function(Ie){const dt=ce?ce(Ie):Ie.ownerDocument;return Ct.call(dt||Ie,Ie,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},e0=function(Ie){return Ie=Lm(Ie,et," "),Ie=Lm(Ie,Dt," "),Ie=Lm(Ie,or," ")},Hw=function(Ie){var dt;Ie.normalize();const Ht=ce?ce(Ie):Ie.ownerDocument,ir=Ct.call(Ht||Ie,Ie,E.SHOW_TEXT|E.SHOW_COMMENT|E.SHOW_CDATA_SECTION|E.SHOW_PROCESSING_INSTRUCTION,null);let Or=ir.nextNode();for(;Or;)Or.data=e0(Or.data),Or=ir.nextNode();const Pr=(dt=Ie.querySelectorAll)===null||dt===void 0?void 0:dt.call(Ie,"template");Pr&&yd(Pr,($r=>{Ad($r.content)&&Hw($r.content)}))},t0=function(Ie){const dt=be?be(Ie):null;return typeof dt=="string"&&oa(dt)==="form"&&(typeof Ie.nodeName!="string"||typeof Ie.textContent!="string"||typeof Ie.removeChild!="function"||Ie.attributes!==le(Ie)||typeof Ie.removeAttribute!="function"||typeof Ie.setAttribute!="function"||typeof Ie.namespaceURI!="string"||typeof Ie.insertBefore!="function"||typeof Ie.hasChildNodes!="function"||Ie.nodeType!==ve(Ie)||Ie.childNodes!==J(Ie))},Ad=function(Ie){if(!ve||typeof Ie!="object"||Ie===null)return!1;try{return ve(Ie)===LF}catch{return!1}},Hm=function(Ie){if(!ve||typeof Ie!="object"||Ie===null)return!1;try{return typeof ve(Ie)=="number"}catch{return!1}};function Gl(rr,Ie,dt){rr.length!==0&&yd(rr,(Ht=>{Ht.call(r,Ie,dt,Od)}))}const Yk=function(Ie,dt,Ht,ir){return Ie.length===0?dt:dt===Ht||dt===ir?Uo(dt):dt},Xk=function(Ie,dt){if(Gl(Ot.beforeSanitizeElements,Ie,null),Ie!==dt&&re(Ie)===null)return Hl&&Wm(Ie),!0;if(t0(Ie))return Ju(Ie),!0;const Ht=oa(be?be(Ie):Ie.nodeName);if(it=Yk(Ot.uponSanitizeElement,it,bt,zr),Gl(Ot.uponSanitizeElement,Ie,{tagName:Ht,allowedTags:it}),Ie!==dt&&re(Ie)===null)return Hl&&Wm(Ie),!0;if((function(Or,Pr){return!!(We&&Or.hasChildNodes()&&!Hm(Or.firstElementChild)&&oo(Z_,Or.textContent)&&oo(Z_,Or.innerHTML))||!(!We||Or.namespaceURI!==Kl||Pr!=="style"||!Hm(Or.firstElementChild))||Or.nodeType===tO||!(!We||Or.nodeType!==rO||!oo(eO,Or.data))})(Ie,Ht))return Ju(Ie),!0;if(tr[Ht]||!(dr.tagCheck instanceof Function&&dr.tagCheck(Ht))&&!it[Ht]){const ir=(function(Pr,$r,ga){if(!tr[$r]&&Zk($r)&&(zt.tagNameCheck instanceof RegExp&&oo(zt.tagNameCheck,$r)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck($r)))return!1;if(hi&&!Zo[$r]){const ei=re(Pr),Sn=J(Pr);if(Sn&&ei)for(let Fi=Sn.length-1;Fi>=0;--Fi){const Qn=Pr===ga?L(Sn[Fi],!0):Sn[Fi];ei.insertBefore(Qn,Q(Pr))}}return Ju(Pr),!0})(Ie,Ht,dt);return ir===!1&&Gl(Ot.afterSanitizeElements,Ie,null),ir}if((ve?ve(Ie):Ie.nodeType)===bd&&!_U(Ie)||(Ht==="noscript"||Ht==="noembed"||Ht==="noframes")&&oo(MF,Ie.innerHTML))return Ju(Ie),!0;if(jt&&Ie.nodeType===DF){const ir=e0(Ie.textContent);Ie.textContent!==ir&&(vd(r.removed,{element:Ie.cloneNode()}),Ie.textContent=ir)}return Gl(Ot.afterSanitizeElements,Ie,null),!1},Qk=function(Ie,dt,Ht){if(Er[dt]||We&&dt==="patchsrc"||We&&dt==="for"&&Ie!=="label"&&Ie!=="output"||Di&&(dt==="id"||dt==="name")&&(Ht in n||Ht in xU))return!1;const ir=ut[dt]||dr.attributeCheck instanceof Function&&dr.attributeCheck(dt,Ie);if(!(en&&oo(Ut,dt))){if(!(qr&&oo(pr,dt))){if(ir){if(!qw[dt]){if(!oo(Ft,Lm(Ht,$e,""))){if((dt!=="src"&&dt!=="xlink:href"&&dt!=="href"||Ie==="script"||J_(Ht,"data:")!==0||!Bk[Ie])&&!(kn&&!oo(W,Lm(Ht,$e,"")))){if(Ht)return!1}}}}else if(!(Zk(Ie)&&(zt.tagNameCheck instanceof RegExp&&oo(zt.tagNameCheck,Ie)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(Ie))&&(zt.attributeNameCheck instanceof RegExp&&oo(zt.attributeNameCheck,dt)||zt.attributeNameCheck instanceof Function&&zt.attributeNameCheck(dt,Ie))||dt==="is"&&zt.allowCustomizedBuiltInElements&&(zt.tagNameCheck instanceof RegExp&&oo(zt.tagNameCheck,Ht)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(Ht))))return!1}}return!0},kU=dn({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Zk=function(Ie){return!kU[Fm(Ie)]&&oo(Je,Ie)},AU=function(Ie,dt,Ht,ir){if(_e&&typeof P=="object"&&typeof P.getAttributeType=="function"&&!Ht)switch(P.getAttributeType(Ie,dt)){case"TrustedHTML":return de(ir);case"TrustedScriptURL":return(function(Pr){G(),je++;try{return _e.createScriptURL(Pr)}finally{je--}})(ir)}return ir},CU=function(Ie,dt,Ht,ir){try{Ht?Ie.setAttributeNS(Ht,dt,ir):Ie.setAttribute(dt,ir),t0(Ie)?Ju(Ie):z_(r.removed)}catch{kd(dt,Ie)}},eA=function(Ie){Gl(Ot.beforeSanitizeAttributes,Ie,null);const dt=Ie.attributes;if(!dt||t0(Ie))return;ut=Yk(Ot.uponSanitizeAttribute,ut,Xt,yn);const Ht={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ut,forceKeepAttr:void 0};let ir=dt.length;const Or=oa(Ie.nodeName);for(;ir--;){const Pr=dt[ir],$r=Pr.name,ga=Pr.namespaceURI,ei=Pr.value,Sn=oa($r),Fi=ei;let Qn=$r==="value"?Fi:bF(Fi);Ht.attrName=Sn,Ht.attrValue=Qn,Ht.keepAttr=!0,Ht.forceKeepAttr=void 0,Gl(Ot.uponSanitizeAttribute,Ie,Ht),Qn=Ht.attrValue,!vn||Sn!=="id"&&Sn!=="name"||J_(Qn,cn)===0||(kd($r,Ie),Qn=cn+Qn),We&&oo(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Qn)||Sn==="attributename"&&V_(Qn,"href")?kd($r,Ie):Ht.forceKeepAttr||(Ht.keepAttr&&(ln||!oo(RF,Qn))?(jt&&(Qn=e0(Qn)),Qk(Or,Sn,Qn)?(Qn=AU(Or,Sn,ga,Qn),Qn!==Fi&&CU(Ie,$r,ga,Qn)):kd($r,Ie)):kd($r,Ie))}Gl(Ot.afterSanitizeAttributes,Ie,null)},r0=function(Ie){let dt=null;const Ht=Gk(Ie);for(Gl(Ot.beforeSanitizeShadowDOM,Ie,null);dt=Ht.nextNode();)if(Gl(Ot.uponSanitizeShadowNode,dt,null),Xk(dt,Ie),eA(dt),Ad(dt.content)&&r0(dt.content),(ve?ve(dt):dt.nodeType)===bd){const ir=me(dt);Ad(ir)&&(Kw(ir),r0(ir))}Gl(Ot.afterSanitizeShadowDOM,Ie,null)},Kw=function(Ie){const dt=[{node:Ie,shadow:null}];for(;dt.length>0;){const Ht=dt.pop();if(Ht.shadow){r0(Ht.shadow);continue}const ir=Ht.node,Or=(ve?ve(ir):ir.nodeType)===bd,Pr=J(ir);if(Pr)for(let $r=Pr.length-1;$r>=0;--$r)dt.push({node:Pr[$r],shadow:null});if(Or){const $r=be?be(ir):null;if(typeof $r=="string"&&oa($r)==="template"){const ga=ir.content;Ad(ga)&&dt.push({node:ga,shadow:null})}}if(Or){const $r=me(ir);Ad($r)&&dt.push({node:null,shadow:$r},{node:$r,shadow:null})}}};return r.sanitize=function(rr){let Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dt=null,Ht=null,ir=null,Or=null;if(Uw=!rr,Uw&&(rr=""),typeof rr!="string"&&!Hm(rr)&&typeof(rr=(function(Sn){switch(typeof Sn){case"string":return Sn;case"number":return wF(Sn);case"boolean":return EF(Sn);case"bigint":return W_?W_(Sn):"0";case"symbol":return H_?H_(Sn):"Symbol()";case"undefined":default:return Mv(Sn);case"function":case"object":{if(Sn===null)return Mv(Sn);const Fi=Sn,Qn=Hs(Fi,"toString");if(typeof Qn=="function"){const ps=Qn(Fi);return typeof ps=="string"?ps:Mv(ps)}return Mv(Sn)}}})(rr))!="string")throw Zp("dirty is not a string, aborting");if(!r.isSupported)return rr;Lr?(it=zr,ut=yn):Ww(Ie),(Ot.uponSanitizeElement.length>0||Ot.uponSanitizeAttribute.length>0)&&(it=Uo(it)),Ot.uponSanitizeAttribute.length>0&&(ut=Uo(ut)),r.removed=[];const Pr=Hl&&typeof rr!="string"&&Hm(rr);if(Pr){(function(Fi){if(!We)return;const Qn=[Fi];for(;Qn.length>0;){const ps=Qn.pop(),Gw=ve?ve(ps):ps.nodeType;if(Gw===tO||Gw===rO&&oo(eO,ps.data)){try{V(ps)}catch{}continue}if(Gw===bd){const Qs=ps,tA=oa(be?be(ps):ps.nodeName);try{Qs.hasAttribute&&Qs.hasAttribute("patchsrc")&&Qs.removeAttribute("patchsrc"),Qs.hasAttribute&&Qs.hasAttribute("for")&&tA!=="label"&&tA!=="output"&&Qs.removeAttribute("for")}catch{}}const Yw=J(ps);if(Yw)for(let Qs=Yw.length-1;Qs>=0;--Qs)Qn.push(Yw[Qs])}})(rr);const ei=be?be(rr):rr.nodeName;if(typeof ei=="string"){const Sn=oa(ei);if(!it[Sn]||tr[Sn])throw Zv(rr),Zp("root node is forbidden and cannot be sanitized in-place")}if(t0(rr))throw Zv(rr),Zp("root node is clobbered and cannot be sanitized in-place");try{Kw(rr)}catch(Sn){throw Zv(rr),Sn}}else if(Hm(rr))dt=Kk(""),Ht=dt.ownerDocument.importNode(rr,!0),Ht.nodeType===bd&&Ht.nodeName==="BODY"||Ht.nodeName==="HTML"?dt=Ht:dt.appendChild(Ht),Kw(Ht);else{if(!Pn&&!jt&&!Kr&&rr.indexOf("<")===-1)return _e&&Dn?de(rr):rr;if(dt=Kk(rr),!dt)return Pn?null:Dn?xe:""}dt&&En&&Ju(dt.firstChild);const $r=Pr?rr:dt;try{const ei=Gk($r);for(;ir=ei.nextNode();)Xk(ir,$r),eA(ir),Ad(ir.content)&&r0(ir.content)}catch(ei){throw Pr&&(Zv(rr),yd(r.removed,(Sn=>{Sn.element&&Wm(Sn.element)}))),ei}if(Pr)return yd(r.removed,(ei=>{ei.element&&Wm(ei.element)})),jt&&Hw(rr),rr;if(Pn){if(jt&&Hw(dt),Ua)for(Or=_t.call(dt.ownerDocument);dt.firstChild;)Or.appendChild(dt.firstChild);else Or=dt;return(ut.shadowroot||ut.shadowrootmode)&&(Or=It.call(a,Or,!0)),Or}let ga=Kr?dt.outerHTML:dt.innerHTML;return Kr&&it["!doctype"]&&dt.ownerDocument&&dt.ownerDocument.doctype&&dt.ownerDocument.doctype.name&&oo(TF,dt.ownerDocument.doctype.name)&&(ga=" +`+ga),jt&&(ga=e0(ga)),_e&&Dn?de(ga):ga},r.setConfig=function(){Ww(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Lr=!0,zr=it,yn=ut},r.clearConfig=function(){Od=null,Lr=!1,zr=null,yn=null,_e=Ae,xe=""},r.isValidAttribute=function(rr,Ie,dt){Od||Ww({});const Ht=oa(rr),ir=oa(Ie);return Qk(Ht,ir,dt)},r.addHook=function(rr,Ie){typeof Ie=="function"&&ao(Ot,rr)&&vd(Ot[rr],Ie)},r.removeHook=function(rr,Ie){if(ao(Ot,rr)){if(Ie!==void 0){const dt=yF(Ot[rr],Ie);return dt===-1?void 0:vF(Ot[rr],dt,1)[0]}return z_(Ot[rr])}},r.removeHooks=function(rr){ao(Ot,rr)&&(Ot[rr]=[])},r.removeAllHooks=function(){Ot={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r})();mw.addHook&&mw.addHook("beforeSanitizeElements",(function(t){return t.href&&t.setAttribute("rel","noopener noreferrer"),t}));const BF=function({source:e,className:r="",getConfigs:n=()=>({useUnsafeMarkdown:!1})}){if(typeof e!="string")return null;const a=new Nc({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(hF);a.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:o}=n(),p=a.render(e),c=$m(p,{useUnsafeMarkdown:o});return e&&p&&c?u.createElement("div",{className:Xr()(r,"markdown"),dangerouslySetInnerHTML:{__html:c}}):null};function $m(t,{useUnsafeMarkdown:e=!1}={}){const r=e,n=e?[]:["style","class"];return e&&!$m.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),$m.hasWarnedAboutDeprecation=!0),mw.sanitize(t,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:r,FORBID_ATTR:n})}$m.hasWarnedAboutDeprecation=!1;class qF extends u.Component{render(){const{errSelectors:e,specSelectors:r,getComponent:n}=this.props,a=n("SvgAssets"),o=n("InfoContainer",!0),p=n("VersionPragmaFilter"),c=n("operations",!0),d=n("Models",!0),E=n("Webhooks",!0),x=n("Row"),k=n("Col"),P=n("errors",!0),R=n("ServersContainer",!0),L=n("SchemesContainer",!0),V=n("AuthorizeBtnContainer",!0),Q=n("FilterContainer",!0),J=r.isSwagger2(),re=r.isOAS3(),me=r.isOAS31(),le=r.isOAS32(),ve=!r.specStr(),be=r.loadingStatus();let ce=null;if(be==="loading"&&(ce=u.createElement("div",{className:"info"},u.createElement("div",{className:"loading-container"},u.createElement("div",{className:"loading"})))),be==="failed"&&(ce=u.createElement("div",{className:"info"},u.createElement("div",{className:"loading-container"},u.createElement("h4",{className:"title"},"Failed to load API definition."),u.createElement(P,null)))),be==="failedConfig"){const G=e.lastError(),de=G?G.get("message"):"";ce=u.createElement("div",{className:"info failed-config"},u.createElement("div",{className:"loading-container"},u.createElement("h4",{className:"title"},"Failed to load remote configuration."),u.createElement("p",null,de)))}if(!ce&&ve&&(ce=u.createElement("h4",null,"No API definition provided.")),ce)return u.createElement("div",{className:"swagger-ui"},u.createElement("div",{className:"loading-container"},ce));const _e=r.servers(),Ae=r.schemes(),xe=_e&&_e.size,Oe=Ae&&Ae.size,je=!!r.securityDefinitions();return u.createElement("div",{className:"swagger-ui"},u.createElement(a,null),u.createElement(p,{isSwagger2:J,isOAS3:re,isOAS31:me,isOAS32:le,alsoShow:u.createElement(P,null)},u.createElement(P,null),u.createElement(x,{className:"information-container"},u.createElement(k,{mobile:12},u.createElement(o,null))),xe||Oe||je?u.createElement("div",{className:"scheme-container"},u.createElement(k,{className:"schemes wrapper",mobile:12},xe||Oe?u.createElement("div",{className:"schemes-server-container"},xe?u.createElement(R,null):null,Oe?u.createElement(L,null):null):null,je?u.createElement(V,null):null)):null,u.createElement(Q,null),u.createElement("main",{id:"operations",tabIndex:"-1",style:{outline:"none"}},u.createElement(x,null,u.createElement(k,{mobile:12,desktop:12},u.createElement(c,null))),me&&u.createElement(x,{className:"webhooks-container"},u.createElement(k,{mobile:12,desktop:12},u.createElement(E,null))),u.createElement(x,null,u.createElement(k,{mobile:12,desktop:12},u.createElement(d,null))))))}}const UF=()=>({components:{App:P9,authorizationPopup:N9,authorizeBtn:T9,AuthorizeBtnContainer:I9,authorizeOperationBtn:M9,auths:R9,AuthItem:D9,authError:F9,oauth2:V9,apiKeyAuth:L9,basicAuth:$9,clear:J9,liveResponse:K9,InitializedInput:R7,info:$7,InfoContainer:B7,InfoUrl:F7,InfoBasePath:D7,Contact:U7,License:V7,JumpToPath:J7,CopyToClipboardBtn:W7,onlineValidatorBadge:Qx,operations:Y9,operation:Q9,OperationSummary:r7,OperationSummaryMethod:n7,OperationSummaryPath:a7,responses:q1,response:s7,ResponseExtension:l7,responseBody:h7,parameters:d7,parameterRow:y7,execute:v7,headers:b7,errors:w7,contentType:_7,overview:I7,footer:H7,FilterContainer:K7,ParamBody:J1,curl:G7,Property:Y7,TryItOutButton:X7,Markdown:BF,BaseLayout:qF,VersionPragmaFilter:Q7,VersionStamp:Z7,OperationExt:o7,OperationExtRow:i7,ParameterExt:f7,ParameterIncludeEmpty:g7,OperationTag:X9,OperationContainer:Z9,OpenAPIVersion:eD,DeepLink:tD,SvgAssets:rD,Example:B9,ExamplesSelect:q9,ExamplesSelectValueRetainer:U9}}),zF=()=>({components:{...Ve}}),nO=()=>[Zl,Nd,mx,uh,Nx,Tx,ey,sh,pp,Fd,Yd,Ah,UF,zF,fx,Ss,Ix,up,Id,Ld,Ol,Hx,Kx,Xx()],VF=(0,H.Map)();function Bm(t){return(e,r)=>(...n)=>{if(r.getSystem().specSelectors.isOAS3()){const a=t(...n);return typeof a=="function"?a(r):a}return e(...n)}}const qm=Bm(vu()(null)),JF=Bm(((t,e)=>r=>r.getSystem().specSelectors.findSchema(e))),WF=Bm((()=>t=>{const e=t.getSystem().specSelectors.specJson().getIn(["components","schemas"]);return H.Map.isMap(e)?e:VF})),HF=Bm((()=>t=>t.getSystem().specSelectors.specJson().hasIn(["servers",0]))),KF=Bm(yr(li,(t=>t.getIn(["components","securitySchemes"])||null))),GF=(t,e)=>(r,...n)=>e.specSelectors.isOAS3()?e.oas3Selectors.validOperationMethods():t(...n),YF=qm,XF=qm,QF=qm,ZF=qm,eL=qm,tL=(function(e){return(r,n)=>(...a)=>{if(n.getSystem().specSelectors.isOAS3()){let o=n.getState().getIn(["spec","resolvedSubtrees","components","securitySchemes"]);return e(n,o,...a)}return r(...a)}})(yr((t=>t),(({specSelectors:t})=>t.securityDefinitions()),((t,e)=>{let r=(0,H.List)();return e&&e.entrySeq().forEach((([n,a])=>{const o=a?.get("type");if(o==="oauth2"&&a.get("flows").entrySeq().forEach((([p,c])=>{let d=(0,H.fromJS)({flow:p,authorizationUrl:c.get("authorizationUrl"),tokenUrl:c.get("tokenUrl"),scopes:c.get("scopes"),type:a.get("type"),description:a.get("description")});r=r.push(new H.Map({[n]:d.filter((E=>E!==void 0))}))})),o!=="http"&&o!=="apiKey"||(r=r.push(new H.Map({[n]:a}))),o==="openIdConnect"&&a.get("openIdConnectData")){let p=a.get("openIdConnectData");(p.get("grant_types_supported")||["authorization_code","implicit"]).forEach((c=>{let d=p.get("scopes_supported")&&p.get("scopes_supported").reduce(((x,k)=>x.set(k,"")),new H.Map),E=(0,H.fromJS)({flow:c,authorizationUrl:p.get("authorization_endpoint"),tokenUrl:p.get("token_endpoint"),scopes:d,type:"oauth2",openIdConnectUrl:a.get("openIdConnectUrl")});r=r.push(new H.Map({[n]:E.filter((x=>x!==void 0))}))}))}})),r})));function Um(t){return(e,r)=>n=>typeof r.specSelectors?.isOAS3=="function"?r.specSelectors.isOAS3()?u.createElement(t,Yr()({},n,r,{Ori:e})):u.createElement(e,n):(console.warn("OAS3 wrapper: couldn't get spec"),null)}const rL=(0,H.Map)(),nL=()=>t=>(function(r){const n=r.get("swagger");return typeof n=="string"&&n==="2.0"})(t.getSystem().specSelectors.specJson()),aL=()=>t=>(function(r){const n=r.get("openapi");return typeof n=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(n)})(t.getSystem().specSelectors.specJson()),oL=()=>t=>t.getSystem().specSelectors.isOAS30();function aO(t){return(e,...r)=>n=>{if(n.specSelectors.isOAS3()){const a=t(e,...r);return typeof a=="function"?a(n):a}return null}}const iL=aO((()=>t=>t.specSelectors.specJson().get("servers",rL))),sL=(t,e)=>{const r=t.getIn(["resolvedSubtrees","components","schemas",e],null),n=t.getIn(["json","components","schemas",e],null);return r||n||null},lL=aO(((t,{callbacks:e,specPath:r})=>n=>{const a=n.specSelectors.validOperationMethods();return H.Map.isMap(e)?e.reduce(((o,p,c)=>{if(!H.Map.isMap(p))return o;const d=p.reduce(((E,x,k)=>{if(!H.Map.isMap(x))return E;const P=x.entrySeq().filter((([R])=>a.includes(R))).map((([R,L])=>({operation:(0,H.Map)({operation:L}),method:R,path:k,callbackName:c,specPath:r.concat([c,k,R])})));return E.concat(P)}),(0,H.List)());return o.concat(d)}),(0,H.List)()).groupBy((o=>o.callbackName)).map((o=>o.toArray())).toObject():{}})),cL=({callbacks:t,specPath:e,specSelectors:r,getComponent:n})=>{const a=r.callbacksOperations({callbacks:t,specPath:e}),o=Object.keys(a),p=n("OperationContainer",!0);return o.length===0?u.createElement("span",null,"No callbacks"):u.createElement("div",null,o.map((c=>u.createElement("div",{key:`${c}`},u.createElement("h2",null,c),a[c].map((d=>u.createElement(p,{key:`${c}-${d.path}-${d.method}`,op:d.operation,tag:"callbacks",method:d.method,path:d.path,specPath:d.specPath,allowTryItOut:!1})))))))},Dv=(t,e,r,n)=>{const a=t.getIn(["content",e])??(0,H.OrderedMap)(),o=a.get("schema",(0,H.OrderedMap)()),p=a.get("examples")!==void 0,c=a.get("example"),d=p?a.getIn(["examples",r,"value"]):c;return Gr(n.getSampleSchema(o,e,{includeWriteOnly:!0},d))},uL=({userHasEditedBody:t,requestBody:e,requestBodyValue:r,requestBodyInclusionSetting:n,requestBodyErrors:a,getComponent:o,getConfigs:p,specSelectors:c,fn:d,contentType:E,isExecute:x,specPath:k,onChange:P,onChangeIncludeEmpty:R,activeExamplesKey:L,updateActiveExamplesKey:V,setRetainRequestBodyValueFlag:Q})=>{const J=qt=>{P(qt.target.files[0])},re=qt=>{let It={key:qt,shouldDispatchInit:!1,defaultValue:!0};return n.get(qt,"no value")==="no value"&&(It.shouldDispatchInit=!0),It},me=o("Markdown",!0),le=o("modelExample"),ve=o("RequestBodyEditor"),be=o("HighlightCode",!0),ce=o("ExamplesSelectValueRetainer"),_e=o("Example"),Ae=o("ParameterIncludeEmpty"),{showCommonExtensions:xe}=p(),Oe=e?.get("description")??null,je=e?.get("content")??new H.OrderedMap;E=E||je.keySeq().first()||"";const G=je.get(E)??(0,H.OrderedMap)(),de=G.get("schema",(0,H.OrderedMap)()),Ne=G.get("examples",null),Ye=Ne?.map(((qt,It)=>{const Ot=qt?.get("value",null);return Ot&&(qt=qt.set("value",Dv(e,E,It,d),Ot)),qt}));if(a=H.List.isList(a)?a:(0,H.List)(),d.isFileUploadIntended(G?.get("schema"),E)){const qt=o("Input");return x?u.createElement(qt,{type:"file",onChange:J}):u.createElement("i",null,"Example values are not available for ",u.createElement("code",null,E)," media types.")}if(!G.size)return null;if(d.hasSchemaType(G.get("schema"),"object")&&(E==="application/x-www-form-urlencoded"||E.indexOf("multipart/")===0)&&de.get("properties",(0,H.OrderedMap)()).size>0){const qt=o("JsonSchemaForm"),It=o("ParameterExt"),Ot=de.get("properties",(0,H.OrderedMap)());return r=H.Map.isMap(r)?r:(0,H.OrderedMap)(),u.createElement("div",{className:"table-container"},Oe&&u.createElement(me,{source:Oe}),u.createElement("table",null,u.createElement("tbody",null,H.Map.isMap(Ot)&&Ot.entrySeq().map((([et,Dt])=>{if(Dt.get("readOnly"))return;const or=Dt.get("oneOf")?.get(0)?.toJS(),Ut=Dt.get("anyOf")?.get(0)?.toJS();Dt=(0,H.fromJS)(d.mergeJsonSchema(Dt.toJS(),or??Ut??{}));let pr=xe?mr(Dt):null;const W=de.get("required",(0,H.List)()).includes(et),$e=d.getSchemaObjectType(Dt),Je=d.getSchemaObjectTypeLabel(Dt),Ft=d.getSchemaObjectType(Dt?.get("items")),it=Dt.get("format"),bt=Dt.get("description"),ut=r.getIn([et,"value"]),Xt=r.getIn([et,"errors"])||a,zt=n.get(et)||!1;let tr=d.getSampleSchema(Dt,!1,{includeWriteOnly:!0});tr===!1&&(tr="false"),tr===0&&(tr="0"),typeof tr!="string"&&$e==="object"&&(tr=Gr(tr)),typeof tr=="string"&&$e==="array"&&(tr=JSON.parse(tr));const Er=d.isFileUploadIntended(Dt),dr=u.createElement(qt,{fn:d,dispatchInitialValue:!Er,schema:Dt,description:et,getComponent:o,value:ut===void 0?tr:ut,required:W,errors:Xt,onChange:qr=>{P(qr,[et])}});return u.createElement("tr",{key:et,className:"parameters","data-property-name":et},u.createElement("td",{className:"parameters-col_name"},u.createElement("div",{className:W?"parameter__name required":"parameter__name"},et,W?u.createElement("span",null," *"):null),u.createElement("div",{className:"parameter__type"},Je,it&&u.createElement("span",{className:"prop-format"},"($",it,")"),xe&&pr.size?pr.entrySeq().map((([qr,en])=>u.createElement(It,{key:`${qr}-${en}`,xKey:qr,xVal:en}))):null),u.createElement("div",{className:"parameter__deprecated"},Dt.get("deprecated")?"deprecated":null)),u.createElement("td",{className:"parameters-col_description"},u.createElement(me,{source:bt}),x?u.createElement("div",null,$e==="object"||Ft==="object"?u.createElement(le,{getComponent:o,specPath:k.push("schema"),getConfigs:p,isExecute:x,specSelectors:c,schema:Dt,example:dr}):dr,W?null:u.createElement(Ae,{onChange:qr=>R(et,qr),isIncluded:zt,isIncludedOptions:re(et),isDisabled:Array.isArray(ut)?ut.length!==0:!Wa(ut)})):null))})))))}const ht=Dv(e,E,L,d);let Ct=null;_v(ht)&&(Ct="json");const _t=x?u.createElement(ve,{value:r,errors:a,defaultValue:ht,onChange:P,getComponent:o}):u.createElement(be,{className:"body-param__example",language:Ct},Gr(r)||ht);return u.createElement("div",null,Oe&&u.createElement(me,{source:Oe}),Ye?u.createElement(ce,{userHasEditedBody:t,examples:Ye,currentKey:L,currentUserInputValue:r,onSelect:qt=>{V(qt)},updateValue:P,defaultToFirstExample:!0,getComponent:o,setRetainRequestBodyValueFlag:Q}):null,u.createElement(le,{getComponent:o,getConfigs:p,specSelectors:c,expandDepth:1,isExecute:x,schema:G.get("schema"),specPath:k.push("content",E,"schema"),example:_t,includeWriteOnly:!0}),Ye?u.createElement(_e,{example:Ye.get(L),getComponent:o,getConfigs:p}):null)};class pL extends u.Component{render(){const{link:e,name:r,getComponent:n}=this.props,a=n("Markdown",!0);let o=e.get("operationId")||e.get("operationRef"),p=e.get("parameters")&&e.get("parameters").toJS(),c=e.get("description");return u.createElement("div",{className:"operation-link"},u.createElement("div",{className:"description"},u.createElement("b",null,u.createElement("code",null,r)),c?u.createElement(a,{source:c}):null),u.createElement("pre",null,"Operation `",o,"`",u.createElement("br",null),u.createElement("br",null),"Parameters ",(function(E,x){return typeof x!="string"?"":x.split(` +`).map(((k,P)=>P>0?Array(E+1).join(" ")+k:k)).join(` +`)})(0,JSON.stringify(p,null,2))||"{}",u.createElement("br",null)))}}const hL=pL,dL=({servers:t,currentServer:e,setSelectedServer:r,setServerVariableValue:n,getServerVariable:a,getEffectiveServerValue:o})=>{const p=(t.find((x=>x.get("url")===e))||(0,H.OrderedMap)()).get("variables")||(0,H.OrderedMap)(),c=p.size!==0;(0,u.useEffect)((()=>{e||r(t.first()?.get("url"))}),[]),(0,u.useEffect)((()=>{const x=t.find((k=>k.get("url")===e));if(!x)return void r(t.first().get("url"));(x.get("variables")||(0,H.OrderedMap)()).map(((k,P)=>{n({server:e,key:P,val:k.get("default")||""})}))}),[e,t]);const d=(0,u.useCallback)((x=>{r(x.target.value)}),[r]),E=(0,u.useCallback)((x=>{const k=x.target.getAttribute("data-variable"),P=x.target.value;n({server:e,key:k,val:P})}),[n,e]);return u.createElement("div",{className:"servers"},u.createElement("label",{htmlFor:"servers"},u.createElement("select",{onChange:d,value:e,id:"servers"},t.valueSeq().map((x=>u.createElement("option",{value:x.get("url"),key:x.get("url")},x.get("url"),x.get("description")&&` - ${x.get("description")}`))).toArray())),c&&u.createElement("div",null,u.createElement("div",{className:"computed-url"},"Computed URL:",u.createElement("code",null,o(e))),u.createElement("h4",null,"Server variables"),u.createElement("table",null,u.createElement("tbody",null,p.entrySeq().map((([x,k])=>u.createElement("tr",{key:x},u.createElement("td",null,x),u.createElement("td",null,k.get("enum")?u.createElement("select",{"data-variable":x,onChange:E},k.get("enum").map((P=>u.createElement("option",{selected:P===a(e,x),key:P,value:P},P)))):u.createElement("input",{type:"text",value:a(e,x)||"",onChange:E,"data-variable":x})))))))))};class fL extends u.Component{render(){const{specSelectors:e,oas3Selectors:r,oas3Actions:n,getComponent:a}=this.props,o=e.servers(),p=a("Servers");return o&&o.size?u.createElement("div",null,u.createElement("span",{className:"servers-title"},"Servers"),u.createElement(p,{servers:o,currentServer:r.selectedServer(),setSelectedServer:n.setSelectedServer,setServerVariableValue:n.setServerVariableValue,getServerVariable:r.serverVariableValue,getEffectiveServerValue:r.serverEffectiveValue})):null}}const mL=Function.prototype;class gL extends u.PureComponent{static defaultProps={onChange:mL,userHasEditedBody:!1};constructor(e,r){super(e,r),this.state={value:Gr(e.value)||e.defaultValue},e.onChange(e.value)}applyDefaultValue=e=>{const{onChange:r,defaultValue:n}=e||this.props;return this.setState({value:n}),r(n)};onChange=e=>{this.props.onChange(Gr(e))};onDomChange=e=>{const r=e.target.value;this.setState({value:r},(()=>this.onChange(r)))};UNSAFE_componentWillReceiveProps(e){this.props.value!==e.value&&e.value!==this.state.value&&this.setState({value:Gr(e.value)}),!e.value&&e.defaultValue&&this.state.value&&this.applyDefaultValue(e)}render(){let{getComponent:e,errors:r}=this.props,{value:n}=this.state,a=r.size>0;const o=e("TextArea");return u.createElement("div",{className:"body-param"},u.createElement(o,{className:Xr()("body-param__text",{invalid:a}),title:r.size?r.join(", "):"",value:n,onChange:this.onDomChange}))}}class yL extends u.Component{constructor(e,r){super(e,r);let{name:n,schema:a}=this.props,o=this.getValue();this.state={name:n,schema:a,value:o}}getValue(){let{name:e,authorized:r}=this.props;return r&&r.getIn([e,"value"])}onChange=e=>{let{onChange:r}=this.props,{value:n,name:a}=e.target,o=Object.assign({},this.state.value);a?o[a]=n:o=n,this.setState({value:o},(()=>r(this.state)))};render(){let{schema:e,getComponent:r,errSelectors:n,name:a,authSelectors:o}=this.props;const p=r("Input"),c=r("Row"),d=r("Col"),E=r("authError"),x=r("Markdown",!0),k=r("JumpToPath",!0),P=(e.get("scheme")||"").toLowerCase(),R=o.selectAuthPath(a);let L=this.getValue(),V=n.allErrors().filter((Q=>Q.get("authId")===a));if(P==="basic"){let Q=L?L.get("username"):null;return u.createElement("div",null,u.createElement("h4",null,u.createElement("code",null,a),"  (http, Basic)",u.createElement(k,{path:R})),Q&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(x,{source:e.get("description")})),u.createElement(c,null,u.createElement("label",{htmlFor:"auth-basic-username"},"Username:"),Q?u.createElement("code",null," ",Q," "):u.createElement(d,null,u.createElement(p,{id:"auth-basic-username",type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),u.createElement(c,null,u.createElement("label",{htmlFor:"auth-basic-password"},"Password:"),Q?u.createElement("code",null," ****** "):u.createElement(d,null,u.createElement(p,{id:"auth-basic-password",autoComplete:"new-password",name:"password",type:"password","aria-label":"auth-basic-password",onChange:this.onChange}))),V.valueSeq().map(((J,re)=>u.createElement(E,{error:J,key:re}))))}return P==="bearer"?u.createElement("div",null,u.createElement("h4",null,u.createElement("code",null,a),"  (http, Bearer)",u.createElement(k,{path:R})),L&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(x,{source:e.get("description")})),u.createElement(c,null,u.createElement("label",{htmlFor:"auth-bearer-value"},"Value:"),L?u.createElement("code",null," ****** "):u.createElement(d,null,u.createElement(p,{id:"auth-bearer-value",type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),V.valueSeq().map(((Q,J)=>u.createElement(E,{error:Q,key:J})))):u.createElement("div",null,u.createElement("em",null,u.createElement("b",null,a)," HTTP authentication: unsupported scheme ",`'${P}'`))}}class vL extends u.Component{setSelectedServer=e=>{const{path:r,method:n}=this.props;return this.forceUpdate(),this.props.setSelectedServer(e,`${r}:${n}`)};setServerVariableValue=e=>{const{path:r,method:n}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...e,namespace:`${r}:${n}`})};getSelectedServer=()=>{const{path:e,method:r}=this.props;return this.props.getSelectedServer(`${e}:${r}`)};getServerVariable=(e,r)=>{const{path:n,method:a}=this.props;return this.props.getServerVariable({namespace:`${n}:${a}`,server:e},r)};getEffectiveServerValue=e=>{const{path:r,method:n}=this.props;return this.props.getEffectiveServerValue({server:e,namespace:`${r}:${n}`})};render(){const{operationServers:e,pathServers:r,getComponent:n}=this.props;if(!e&&!r)return null;const a=n("Servers"),o=e||r,p=e?"operation":"path";return u.createElement("div",{className:"opblock-section operation-servers"},u.createElement("div",{className:"opblock-section-header"},u.createElement("div",{className:"tab-header"},u.createElement("h4",{className:"opblock-title"},"Servers"))),u.createElement("div",{className:"opblock-description-wrapper"},u.createElement("h4",{className:"message"},"These ",p,"-level options override the global server options."),u.createElement(a,{servers:o,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}const bL={Callbacks:cL,HttpAuth:yL,RequestBody:uL,Servers:dL,ServersContainer:fL,RequestBodyEditor:gL,OperationServers:vL,operationLink:hL},gw=new Nc("commonmark");gw.block.ruler.enable(["table"]),gw.set({linkTarget:"_blank"});const wL=Um((({source:t,className:e="",getConfigs:r=()=>({useUnsafeMarkdown:!1})})=>{if(typeof t!="string")return null;if(t){const{useUnsafeMarkdown:n}=r(),a=$m(gw.render(t),{useUnsafeMarkdown:n});let o;return typeof a=="string"&&(o=a.trim()),u.createElement("div",{dangerouslySetInnerHTML:{__html:o},className:Xr()(e,"renderedMarkdown")})}return null})),EL=Um((({Ori:t,...e})=>{const{schema:r,getComponent:n,errSelectors:a,authorized:o,onAuthChange:p,name:c,authSelectors:d}=e,E=n("HttpAuth");return r.get("type")==="http"?u.createElement(E,{key:c,schema:r,name:c,errSelectors:a,authorized:o,getComponent:n,onChange:p,authSelectors:d}):u.createElement(t,e)})),SL=Um(Qx);class xL extends u.Component{render(){let{getConfigs:e,schema:r,Ori:n}=this.props,a=["model-box"],o=null;return r.get("deprecated")===!0&&(a.push("deprecated"),o=u.createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),u.createElement("div",{className:a.join(" ")},o,u.createElement(n,Yr()({},this.props,{getConfigs:e,depth:1,expandDepth:this.props.expandDepth||0})))}}const _L=Um(xL),OL=Um((({Ori:t,...e})=>{const{schema:r,getComponent:n,errors:a,onChange:o,fn:p}=e,c=p.isFileUploadIntended(r),d=n("Input");return c?u.createElement(d,{type:"file",className:a.length?"invalid":"",title:a.length?a:"",onChange:E=>{o(E.target.files[0])},disabled:t.isDisabled}):u.createElement(t,e)})),kL={Markdown:wL,AuthItem:EL,OpenAPIVersion:(function(e){return(r,n)=>a=>typeof n.specSelectors?.isOAS30=="function"?n.specSelectors.isOAS30()?u.createElement(e,Yr()({},a,n,{Ori:r})):u.createElement(r,a):(console.warn("OAS30 wrapper: couldn't get spec"),null)})((t=>{const{Ori:e}=t;return u.createElement(e,{oasVersion:"3.0"})})),JsonSchema_string:OL,model:_L,onlineValidatorBadge:SL},yw="oas3_set_servers",vw="oas3_set_request_body_value",bw="oas3_set_request_body_retain_flag",ww="oas3_set_request_body_inclusion",Ew="oas3_set_active_examples_member",Sw="oas3_set_request_content_type",xw="oas3_set_response_content_type",_w="oas3_set_server_variable_value",Ow="oas3_set_request_body_validate_error",Fv="oas3_clear_request_body_validate_error",kw="oas3_clear_request_body_value";function AL(t,e){return{type:yw,payload:{selectedServerUrl:t,namespace:e}}}function CL({value:t,pathMethod:e}){return{type:vw,payload:{value:t,pathMethod:e}}}const jL=({value:t,pathMethod:e})=>({type:bw,payload:{value:t,pathMethod:e}});function PL({value:t,pathMethod:e,name:r}){return{type:ww,payload:{value:t,pathMethod:e,name:r}}}function NL({name:t,pathMethod:e,contextType:r,contextName:n}){return{type:Ew,payload:{name:t,pathMethod:e,contextType:r,contextName:n}}}function TL({value:t,pathMethod:e}){return{type:Sw,payload:{value:t,pathMethod:e}}}function IL({value:t,path:e,method:r}){return{type:xw,payload:{value:t,path:e,method:r}}}function ML({server:t,namespace:e,key:r,val:n}){return{type:_w,payload:{server:t,namespace:e,key:r,val:n}}}const RL=({path:t,method:e,validationErrors:r})=>({type:Ow,payload:{path:t,method:e,validationErrors:r}}),DL=({path:t,method:e})=>({type:Fv,payload:{path:t,method:e}}),FL=({pathMethod:t})=>({type:Fv,payload:{path:t[0],method:t[1]}}),LL=({pathMethod:t})=>({type:kw,payload:{pathMethod:t}});var $L=Be(60680),BL=Be.n($L);const ss=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS3()){const a=t(e,...r);return typeof a=="function"?a(n):a}return null},qL=ss(((t,e)=>{const r=e?[e,"selectedServer"]:["selectedServer"];return t.getIn(r)||""})),UL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"bodyValue"])||null)),zL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"retainBodyValue"])||!1)),VL=(t,e,r)=>n=>{const{oas3Selectors:a,specSelectors:o,fn:p}=n.getSystem();if(o.isOAS3()){const c=a.requestContentType(e,r);if(c)return Dv(o.specResolvedSubtree(["paths",e,r,"requestBody"]),c,a.activeExamplesMember(e,r,"requestBody","requestBody"),p)}return null},JL=ss(((t,e,r)=>n=>{const{oas3Selectors:a,specSelectors:o,fn:p}=n;let c=!1;const d=a.requestContentType(e,r);let E=a.requestBodyValue(e,r);const x=o.specResolvedSubtree(["paths",e,r,"requestBody"]);if(!x)return!1;if(H.Map.isMap(E)&&(E=Gr(E.mapEntries((k=>H.Map.isMap(k[1])?[k[0],k[1].get("value")]:k)).toJS())),H.List.isList(E)&&(E=Gr(E)),d){const k=Dv(x,d,a.activeExamplesMember(e,r,"requestBody","requestBody"),p);c=!!E&&E!==k}return c})),WL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"bodyInclusion"])||(0,H.Map)())),HL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"errors"])||null)),KL=ss(((t,e,r,n,a)=>t.getIn(["examples",e,r,n,a,"activeExample"])||null)),GL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"requestContentType"])||null)),YL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"responseContentType"])||null)),XL=ss(((t,e,r)=>{let n;if(typeof e!="string"){const{server:a,namespace:o}=e;n=o?[o,"serverVariableValues",a,r]:["serverVariableValues",a,r]}else n=["serverVariableValues",e,r];return t.getIn(n)||null})),QL=ss(((t,e)=>{let r;if(typeof e!="string"){const{server:n,namespace:a}=e;r=a?[a,"serverVariableValues",n]:["serverVariableValues",n]}else r=["serverVariableValues",e];return t.getIn(r)||(0,H.OrderedMap)()})),ZL=ss(((t,e)=>{var r,n;if(typeof e!="string"){const{server:o,namespace:p}=e;n=o,r=p?t.getIn([p,"serverVariableValues",n]):t.getIn(["serverVariableValues",n])}else n=e,r=t.getIn(["serverVariableValues",n]);r=r||(0,H.OrderedMap)();let a=n;return r.map(((o,p)=>{a=a.replace(new RegExp(`{${BL()(p)}}`,"g"),o)})),a})),e$=(function(e){return(...r)=>n=>{const a=n.getSystem().specSelectors.specJson();let o=[...r][1]||[];return!a.getIn(["paths",...o,"requestBody","required"])||e(...r)}})(((t,e)=>((r,n)=>(n=n||[],!!r.getIn(["requestData",...n,"bodyValue"])))(t,e))),t$=(t,{oas3RequiredRequestBodyContentType:e,oas3RequestContentType:r,oas3RequestBodyValue:n})=>{let a=[];if(!H.Map.isMap(n))return a;let o=[];return Object.keys(e.requestContentType).forEach((p=>{p===r&&e.requestContentType[p].forEach((c=>{o.indexOf(c)<0&&o.push(c)}))})),o.forEach((p=>{n.getIn([p,"value"])||a.push(p)})),a},r$=vu()(["get","put","post","delete","options","head","patch","trace"]),n$={[yw]:(t,{payload:{selectedServerUrl:e,namespace:r}})=>{const n=r?[r,"selectedServer"]:["selectedServer"];return t.setIn(n,e)},[vw]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,a]=r;if(!H.Map.isMap(e))return t.setIn(["requestData",n,a,"bodyValue"],e);let o=t.getIn(["requestData",n,a,"bodyValue"])||(0,H.Map)();H.Map.isMap(o)||(o=(0,H.Map)());let p=o;const[...c]=e.keys();return c.forEach((d=>{let E=e.getIn([d]);p.has(d)&&H.Map.isMap(E)||(p=p.setIn([d,"value"],E))})),t.setIn(["requestData",n,a,"bodyValue"],p)},[bw]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,a]=r;return t.setIn(["requestData",n,a,"retainBodyValue"],e)},[ww]:(t,{payload:{value:e,pathMethod:r,name:n}})=>{let[a,o]=r;return t.setIn(["requestData",a,o,"bodyInclusion",n],e)},[Ew]:(t,{payload:{name:e,pathMethod:r,contextType:n,contextName:a}})=>{let[o,p]=r;return t.setIn(["examples",o,p,n,a,"activeExample"],e)},[Sw]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,a]=r;return t.setIn(["requestData",n,a,"requestContentType"],e)},[xw]:(t,{payload:{value:e,path:r,method:n}})=>t.setIn(["requestData",r,n,"responseContentType"],e),[_w]:(t,{payload:{server:e,namespace:r,key:n,val:a}})=>{const o=r?[r,"serverVariableValues",e,n]:["serverVariableValues",e,n];return t.setIn(o,a)},[Ow]:(t,{payload:{path:e,method:r,validationErrors:n}})=>{let a=[];if(a.push("Required field is not provided"),n.missingBodyValue)return t.setIn(["requestData",e,r,"errors"],(0,H.fromJS)(a));if(n.missingRequiredKeys&&n.missingRequiredKeys.length>0){const{missingRequiredKeys:o}=n;return t.updateIn(["requestData",e,r,"bodyValue"],(0,H.fromJS)({}),(p=>o.reduce(((c,d)=>c.setIn([d,"errors"],(0,H.fromJS)(a))),p)))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),t},[Fv]:(t,{payload:{path:e,method:r}})=>{const n=t.getIn(["requestData",e,r,"bodyValue"]);if(!H.Map.isMap(n))return t.setIn(["requestData",e,r,"errors"],(0,H.fromJS)([]));const[...a]=n.keys();return a?t.updateIn(["requestData",e,r,"bodyValue"],(0,H.fromJS)({}),(o=>a.reduce(((p,c)=>p.setIn([c,"errors"],(0,H.fromJS)([]))),o))):t},[kw]:(t,{payload:{pathMethod:e}})=>{let[r,n]=e;const a=t.getIn(["requestData",r,n,"bodyValue"]);return a?H.Map.isMap(a)?t.setIn(["requestData",r,n,"bodyValue"],(0,H.Map)()):t.setIn(["requestData",r,n,"bodyValue"],""):t}};function Aw({getSystem:t}){const e=(r=>(n,a=null)=>{const{getConfigs:o,fn:p}=r(),{fileUploadMediaTypes:c}=o();if(typeof a=="string"&&c.some((x=>a.startsWith(x))))return!0;const d=H.Map.isMap(n);if(!d&&!Ai()(n))return!1;const E=d?n.get("format"):n.format;return p.hasSchemaType(n,"string")&&["binary","byte"].includes(E)})(t);return{components:bL,wrapComponents:kL,statePlugins:{spec:{wrapSelectors:He,selectors:nt},auth:{wrapSelectors:qe},oas3:{actions:{...gt},reducers:n$,selectors:{...Re}}},fn:{isFileUploadIntended:e,isFileUploadIntendedOAS30:e}}}const a$=({specSelectors:t,getComponent:e})=>{const r=t.selectWebhooksOperations();if(!r)return null;const n=Object.keys(r),a=e("OperationContainer",!0);return n.length===0?null:u.createElement("div",{className:"webhooks"},u.createElement("h2",null,"Webhooks"),n.map((o=>u.createElement("div",{key:`${o}-webhook`},r[o].map((p=>u.createElement(a,{key:`${o}-${p.method}-webhook`,op:p.operation,tag:"webhooks",method:p.method,path:o,specPath:(0,H.List)(p.specPath),allowTryItOut:!1})))))))},o$=({getComponent:t,specSelectors:e})=>{const r=e.selectLicenseNameField(),n=e.selectLicenseUrl(),a=t("Link");return u.createElement("div",{className:"info__license"},n?u.createElement("div",{className:"info__license__url"},u.createElement(a,{target:"_blank",href:Dr(n)},r)):u.createElement("span",null,r))},i$=({getComponent:t,specSelectors:e})=>{const r=e.selectContactNameField(),n=e.selectContactUrl(),a=e.selectContactEmailField(),o=t("Link");return u.createElement("div",{className:"info__contact"},n&&u.createElement("div",null,u.createElement(o,{href:Dr(n),target:"_blank"},r," - Website")),a&&u.createElement(o,{href:Dr(`mailto:${a}`)},n?`Send email to ${r}`:`Contact ${r}`))},s$=({getComponent:t,specSelectors:e})=>{const r=e.version(),n=e.url(),a=e.basePath(),o=e.host(),p=e.selectInfoSummaryField(),c=e.selectInfoDescriptionField(),d=e.selectInfoTitleField(),E=e.selectInfoTermsOfServiceUrl(),x=e.selectExternalDocsUrl(),k=e.selectExternalDocsDescriptionField(),P=e.contact(),R=e.license(),L=t("Markdown",!0),V=t("Link"),Q=t("VersionStamp"),J=t("OpenAPIVersion"),re=t("InfoUrl"),me=t("InfoBasePath"),le=t("License",!0),ve=t("Contact",!0),be=t("JsonSchemaDialect",!0);return u.createElement("div",{className:"info"},u.createElement("hgroup",{className:"main"},u.createElement("h1",{className:"title"},d,u.createElement("span",null,r&&u.createElement(Q,{version:r}),u.createElement(J,{oasVersion:"3.1"}))),(o||a)&&u.createElement(me,{host:o,basePath:a}),n&&u.createElement(re,{getComponent:t,url:n})),p&&u.createElement("p",{className:"info__summary"},p),u.createElement("div",{className:"info__description description"},u.createElement(L,{source:c})),E&&u.createElement("div",{className:"info__tos"},u.createElement(V,{target:"_blank",href:Dr(E)},"Terms of service")),P.size>0&&u.createElement(ve,null),R.size>0&&u.createElement(le,null),x&&u.createElement(V,{className:"info__extdocs",target:"_blank",href:Dr(x)},k||x),u.createElement(be,null))},l$=({getComponent:t,specSelectors:e})=>{const r=e.selectJsonSchemaDialectField(),n=e.selectJsonSchemaDialectDefault(),a=t("Link");return u.createElement(u.Fragment,null,r&&r===n&&u.createElement("p",{className:"info__jsonschemadialect"},"JSON Schema dialect:"," ",u.createElement(a,{target:"_blank",href:Dr(r)},r)),r&&r!==n&&u.createElement("div",{className:"error-wrapper"},u.createElement("div",{className:"no-margin"},u.createElement("div",{className:"errors"},u.createElement("div",{className:"errors-wrapper"},u.createElement("h4",{className:"center"},"Warning"),u.createElement("p",{className:"message"},u.createElement("strong",null,"OpenAPI.jsonSchemaDialect")," field contains a value different from the default value of"," ",u.createElement(a,{target:"_blank",href:n},n),". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value."))))))},c$=({bypass:t,isSwagger2:e,isOAS3:r,isOAS31:n,alsoShow:a,children:o})=>t?u.createElement("div",null,o):e&&(r||n)?u.createElement("div",{className:"version-pragma"},a,u.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,u.createElement("code",null,"swagger")," and ",u.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),u.createElement("p",null,"Supported version fields are ",u.createElement("code",null,'swagger: "2.0"'),","," ",u.createElement("code",null,"openapi: 3.0.x"),", or ",u.createElement("code",null,"openapi: 3.1.x")," (for example, ",u.createElement("code",null,"openapi: 3.1.0"),").")))):e||r||n?u.createElement("div",null,o):u.createElement("div",{className:"version-pragma"},a,u.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,"The provided definition does not specify a valid version field."),u.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",u.createElement("code",null,'swagger: "2.0"'),","," ",u.createElement("code",null,"openapi: 3.0.x"),", or ",u.createElement("code",null,"openapi: 3.1.x")," (for example, ",u.createElement("code",null,"openapi: 3.1.0"),").")))),u$=t=>typeof t=="string"&&t.includes("#/components/schemas/")?(e=>{const r=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(r)}catch{return r}})(t.replace(/^.*#\/components\/schemas\//,"")):null,p$=(0,u.forwardRef)((({schema:t,getComponent:e,onToggle:r=()=>{},specPath:n},a)=>{const o=e("JSONSchema202012"),p=u$(t.get("$$ref")),c=(0,u.useCallback)(((d,E)=>{r(p,E)}),[p,r]);return u.createElement(o,{name:p,schema:t.toJS(),ref:a,onExpand:c,identifier:n.toJS().join("_")})})),h$=p$,d$=({specActions:t,specSelectors:e,layoutSelectors:r,layoutActions:n,getComponent:a,getConfigs:o,fn:p})=>{const c=e.selectSchemas(),d=Object.keys(c).length>0,E=["components","schemas"],{docExpansion:x,defaultModelsExpandDepth:k}=o(),P=k>0&&x!=="none",R=r.isShown(E,P),L=a("Collapse"),V=a("JSONSchema202012"),Q=a("ArrowUpIcon"),J=a("ArrowDownIcon"),{getTitle:re}=p.jsonSchema202012.useFn();(0,u.useEffect)((()=>{const ce=Object.entries(c).some((([xe])=>r.isShown([...E,xe],!1))),_e=R&&(k>1||ce),Ae=e.specResolvedSubtree(E)!=null;_e&&!Ae&&t.requestResolvedSubtree(E)}),[R,k]);const me=(0,u.useCallback)((()=>{n.show(E,!R)}),[R]),le=(0,u.useCallback)((ce=>{ce!==null&&n.readyToScroll(E,ce)}),[]),ve=ce=>_e=>{_e!==null&&n.readyToScroll([...E,ce],_e)},be=ce=>(_e,Ae)=>{const xe=[...E,ce];Ae?(e.specResolvedSubtree(xe)!=null||t.requestResolvedSubtree([...E,ce]),n.show(xe,!0)):n.show(xe,!1)};return!d||k<0?null:u.createElement("section",{className:Xr()("models",{"is-open":R}),ref:le},u.createElement("h4",null,u.createElement("button",{"aria-expanded":R,className:"models-control",onClick:me},u.createElement("span",null,"Schemas"),R?u.createElement(Q,null):u.createElement(J,null))),u.createElement(L,{isOpened:R},Object.entries(c).map((([ce,_e])=>{const Ae=re(_e,{lookup:"basic"})||ce;return u.createElement(V,{key:ce,ref:ve(ce),schema:_e,name:Ae,onExpand:be(ce)})}))))},f$=({schema:t,getComponent:e,name:r,authSelectors:n})=>{const a=e("JumpToPath",!0),o=n.selectAuthPath(r);return u.createElement("div",null,u.createElement("h4",null,r," (mutualTLS) ",u.createElement(a,{path:o})),u.createElement("p",null,"Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser."),u.createElement("p",null,t.get("description")))};class m$ extends u.Component{constructor(e,r){super(e,r),this.state={}}onAuthChange=e=>{let{name:r}=e;this.setState({[r]:e})};submitAuth=e=>{e.preventDefault();let{authActions:r}=this.props;r.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:r,definitions:n}=this.props,a=n.keySeq().toArray();this.setState(a.reduce(((o,p)=>(o[p]="",o)),{})),r.logoutWithPersistOption(a)};close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};render(){let{definitions:e,getComponent:r,authSelectors:n,errSelectors:a}=this.props;const o=r("AuthItem"),p=r("oauth2",!0),c=r("Button"),d=n.authorized(),E=e.filter(((R,L)=>!!d.get(L))),x=e.filter((R=>R.get("type")!=="oauth2"&&R.get("type")!=="mutualTLS")),k=e.filter((R=>R.get("type")==="oauth2")),P=e.filter((R=>R.get("type")==="mutualTLS"));return u.createElement("div",{className:"auth-container"},x.size>0&&u.createElement("form",{onSubmit:this.submitAuth},x.map(((R,L)=>u.createElement(o,{key:L,schema:R,name:L,getComponent:r,onAuthChange:this.onAuthChange,authorized:d,errSelectors:a,authSelectors:n}))).valueSeq().toArray(),u.createElement("div",{className:"auth-btn-wrapper"},x.size===E.size?u.createElement(c,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):u.createElement(c,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),u.createElement(c,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),k.size>0?u.createElement("div",null,u.createElement("div",{className:"scope-def"},u.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),u.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),e.filter((R=>R.get("type")==="oauth2")).map(((R,L)=>u.createElement("div",{key:L},u.createElement(p,{authorized:d,schema:R,name:L})))).valueSeq().toArray()):null,P.size>0&&u.createElement("div",null,P.map(((R,L)=>u.createElement(o,{key:L,schema:R,name:L,getComponent:r,onAuthChange:this.onAuthChange,authorized:d,errSelectors:a,authSelectors:n}))).valueSeq().toArray()))}}const g$=m$,oO=t=>{const e=t.get("openapi");return typeof e=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(e)},iO=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS31()){const a=t(e,...r);return typeof a=="function"?a(n):a}return null},sO=t=>(e,r)=>(n,...a)=>{if(r.getSystem().specSelectors.isOAS31()){const o=t(n,...a);return typeof o=="function"?o(e,r):o}return e(...a)},lO=t=>(e,...r)=>n=>{const a=t(e,n,...r);return typeof a=="function"?a(n):a},Wl=t=>(e,r)=>n=>r.specSelectors.isOAS31()?u.createElement(t,Yr()({},n,{originalComponent:e,getSystem:r.getSystem})):u.createElement(e,n),Cw=(t,e)=>{const{fn:r,specSelectors:n}=e;return Object.fromEntries(Object.entries(t).map((([a,o])=>{const p=r[a];return[a,(...c)=>n.isOAS31()?o(...c):typeof p=="function"?p(...c):void 0]})))},y$=Wl((({getSystem:t})=>{const e=t().getComponent("OAS31License",!0);return u.createElement(e,null)})),v$=Wl((({getSystem:t})=>{const e=t().getComponent("OAS31Contact",!0);return u.createElement(e,null)})),b$=Wl((({getSystem:t})=>{const e=t().getComponent("OAS31Info",!0);return u.createElement(e,null)})),w$=(t,{includeReadOnly:e,includeWriteOnly:r})=>{if(!t?.properties)return{};const n=Object.entries(t.properties).filter((([,a])=>(a?.readOnly!==!0||e)&&(a?.writeOnly!==!0||r)));return Object.fromEntries(n)},cO=t=>{if(typeof t!="function")return null;const e=t();return()=>[...e,"discriminator","xml","externalDocs","example","$$ref"]},Tc=Wl((({getSystem:t,...e})=>{const r=t(),{getComponent:n,fn:a,getConfigs:o}=r,p=o(),c=window?.location?.pathname??"/";if(Tc.ModelWithJSONSchemaContext&&Tc.pathname===c)return u.createElement(Tc.ModelWithJSONSchemaContext,e);const d=n("OAS31Model"),E=n("withJSONSchema202012SystemContext");return Tc.ModelWithJSONSchemaContext=E(d,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:p.defaultModelExpandDepth,includeReadOnly:e.includeReadOnly,includeWriteOnly:e.includeWriteOnly},fn:{getProperties:a.jsonSchema202012.getProperties,isExpandable:a.jsonSchema202012.isExpandable,getSchemaKeywords:cO(a.jsonSchema202012.getSchemaKeywords)}}),Tc.pathname=c,u.createElement(Tc.ModelWithJSONSchemaContext,e)}));Tc.ModelWithJSONSchemaContext=null,Tc.pathname=null;const E$=Tc,Ic=Wl((({getSystem:t})=>{const{getComponent:e,fn:r,getConfigs:n}=t(),a=n(),o=window?.location?.pathname??"/";if(Ic.ModelsWithJSONSchemaContext&&Ic.pathname===o)return u.createElement(Ic.ModelsWithJSONSchemaContext,null);const p=e("OAS31Models",!0),c=e("withJSONSchema202012SystemContext");return Ic.ModelsWithJSONSchemaContext=c(p,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:a.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:cO(r.jsonSchema202012.getSchemaKeywords)}}),Ic.pathname=o,u.createElement(Ic.ModelsWithJSONSchemaContext,null)}));Ic.ModelsWithJSONSchemaContext=null,Ic.pathname=null;const S$=Ic,x$=(t,e)=>r=>{const n=e.specSelectors.isOAS31(),a=e.getComponent("OAS31VersionPragmaFilter");return u.createElement(a,Yr()({isOAS31:n},r))},_$=Wl((({originalComponent:t,...e})=>{const{getComponent:r,schema:n,name:a}=e,o=r("MutualTLSAuth",!0);return n.get("type")==="mutualTLS"?u.createElement(o,{schema:n,name:a}):u.createElement(t,e)})),O$=_$,k$=Wl((({getSystem:t,...e})=>{const r=t().getComponent("OAS31Auths",!0);return u.createElement(r,e)})),jw=(0,H.Map)(),A$=yr(((t,e)=>e.specSelectors.specJson()),oO),C$=()=>t=>{const e=t.specSelectors.specJson().get("webhooks");return H.Map.isMap(e)?e:jw},j$=yr([(t,e)=>e.specSelectors.webhooks(),(t,e)=>e.specSelectors.validOperationMethods(),(t,e)=>e.specSelectors.specResolvedSubtree(["webhooks"])],((t,e)=>t.reduce(((r,n,a)=>{if(!H.Map.isMap(n))return r;const o=n.entrySeq().filter((([p])=>e.includes(p))).map((([p,c])=>({operation:(0,H.Map)({operation:c}),method:p,path:a,specPath:["webhooks",a,p]})));return r.concat(o)}),(0,H.List)()).groupBy((r=>r.path)).map((r=>r.toArray())).toObject())),P$=()=>t=>{const e=t.specSelectors.info().get("license");return H.Map.isMap(e)?e:jw},N$=()=>t=>t.specSelectors.license().get("name","License"),T$=()=>t=>t.specSelectors.license().get("url"),I$=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),M$=()=>t=>t.specSelectors.license().get("identifier"),R$=()=>t=>{const e=t.specSelectors.info().get("contact");return H.Map.isMap(e)?e:jw},D$=()=>t=>t.specSelectors.contact().get("name","the developer"),F$=()=>t=>t.specSelectors.contact().get("email"),L$=()=>t=>t.specSelectors.contact().get("url"),$$=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectContactUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),B$=()=>t=>t.specSelectors.info().get("title"),q$=()=>t=>t.specSelectors.info().get("summary"),U$=()=>t=>t.specSelectors.info().get("description"),z$=()=>t=>t.specSelectors.info().get("termsOfService"),V$=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectInfoTermsOfServiceField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),J$=()=>t=>t.specSelectors.externalDocs().get("description"),W$=()=>t=>t.specSelectors.externalDocs().get("url"),H$=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectExternalDocsUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),K$=()=>t=>t.specSelectors.specJson().get("jsonSchemaDialect"),G$=()=>"https://spec.openapis.org/oas/3.1/dialect/base",Y$=yr(((t,e)=>e.specSelectors.definitions()),((t,e)=>e.specSelectors.specResolvedSubtree(["components","schemas"])),((t,e)=>H.Map.isMap(t)?H.Map.isMap(e)?Object.entries(t.toJS()).reduce(((r,[n,a])=>{const o=e.get(n);return r[n]=o?.toJS()||a,r}),{}):t.toJS():{})),X$=(t,e)=>(r,...n)=>e.specSelectors.isOAS31()||t(...n),Q$=sO((()=>(t,e)=>e.oas31Selectors.selectLicenseUrl())),Z$=sO((()=>(t,e)=>{const r=e.specSelectors.securityDefinitions();let n=t();return r&&r.entrySeq().forEach((([a,o])=>{o?.get("type")==="mutualTLS"&&(n=n.push(new H.Map({[a]:o})))})),n})),eB=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField(),(t,e)=>e.specSelectors.selectLicenseIdentifierField()],((t,e,r,n)=>r?ba(r,t,{selectedServer:e}):n?`https://spdx.org/licenses/${n}.html`:void 0)),tB=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{hasKeyword:a}=r.jsonSchema202012.useFn(),o=n("JSONSchema202012JSONViewer");return a(t,"example")?u.createElement(o,{name:"Example",value:t.example,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--example"}):null},rB=({schema:t,getSystem:e})=>{const r=t?.xml||{},{fn:n,getComponent:a,getConfigs:o}=e(),{showExtensions:p}=o(),{useComponent:c,useIsExpanded:d,usePath:E,useLevel:x}=n.jsonSchema202012,{path:k}=E("xml"),{isExpanded:P,setExpanded:R,setCollapsed:L}=d("xml"),[V,Q]=x(),J=p?gr(r):[],re=!!(r.name||r.namespace||r.prefix||J.length>0),me=c("Accordion"),le=c("ExpandDeepButton"),ve=a("OpenAPI31Extensions"),be=a("JSONSchema202012PathContext")(),ce=a("JSONSchema202012LevelContext")(),_e=(0,u.useCallback)((()=>{P?L():R()}),[P,R,L]),Ae=(0,u.useCallback)(((xe,Oe)=>{Oe?R({deep:!0}):L({deep:!0})}),[R,L]);return Object.keys(r).length===0?null:u.createElement(be.Provider,{value:k},u.createElement(ce.Provider,{value:Q},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--xml","data-json-schema-level":V},re?u.createElement(u.Fragment,null,u.createElement(me,{expanded:P,onChange:_e},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),u.createElement(le,{expanded:P,onClick:Ae})):u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML"),r.attribute===!0&&u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"attribute"),r.wrapped===!0&&u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"wrapped"),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!P})},P&&u.createElement(u.Fragment,null,r.name&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"name"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.name))),r.namespace&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"namespace"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.namespace))),r.prefix&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"prefix"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.prefix)))),J.length>0&&u.createElement(ve,{openAPISpecObj:r,openAPIExtensions:J,getSystem:e})))))},nB=({discriminator:t})=>{const e=t?.mapping||{};return Object.keys(e).length===0?null:Object.entries(e).map((([r,n])=>u.createElement("div",{key:`${r}-${n}`,className:"json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},r),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},n))))},aB=({schema:t,getSystem:e})=>{const r=t?.discriminator||{},{fn:n,getComponent:a,getConfigs:o}=e(),{showExtensions:p}=o(),{useComponent:c,useIsExpanded:d,usePath:E,useLevel:x}=n.jsonSchema202012,k="discriminator",{path:P}=E(k),{isExpanded:R,setExpanded:L,setCollapsed:V}=d(k),[Q,J]=x(),re=p?gr(r):[],me=!!(r.mapping||re.length>0),le=c("Accordion"),ve=c("ExpandDeepButton"),be=a("OpenAPI31Extensions"),ce=a("JSONSchema202012PathContext")(),_e=a("JSONSchema202012LevelContext")(),Ae=(0,u.useCallback)((()=>{R?V():L()}),[R,L,V]),xe=(0,u.useCallback)(((Oe,je)=>{je?L({deep:!0}):V({deep:!0})}),[L,V]);return Object.keys(r).length===0?null:u.createElement(ce.Provider,{value:P},u.createElement(_e.Provider,{value:J},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator","data-json-schema-level":Q},me?u.createElement(u.Fragment,null,u.createElement(le,{expanded:R,onChange:Ae},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator")),u.createElement(ve,{expanded:R,onClick:xe})):u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator"),r.propertyName&&u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},r.propertyName),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!R})},R&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement(nB,{discriminator:r})),re.length>0&&u.createElement(be,{openAPISpecObj:r,openAPIExtensions:re,getSystem:e})))))},oB=({openAPISpecObj:t,getSystem:e,openAPIExtensions:r})=>{const{fn:n}=e(),{useComponent:a}=n.jsonSchema202012,o=a("JSONViewer");return r.map((p=>u.createElement(o,{key:p,name:p,value:t[p],className:"json-schema-2020-12-json-viewer-extension-keyword"})))},iB=({schema:t,getSystem:e})=>{const r=t?.externalDocs||{},{fn:n,getComponent:a,getConfigs:o}=e(),{showExtensions:p}=o(),{useComponent:c,useIsExpanded:d,usePath:E,useLevel:x}=n.jsonSchema202012,k="externalDocs",{path:P}=E(k),{isExpanded:R,setExpanded:L,setCollapsed:V}=d(k),[Q,J]=x(),re=p?gr(r):[],me=!!(r.description||r.url||re.length>0),le=c("Accordion"),ve=c("ExpandDeepButton"),be=a("JSONSchema202012KeywordDescription"),ce=a("Link"),_e=a("OpenAPI31Extensions"),Ae=a("JSONSchema202012PathContext")(),xe=a("JSONSchema202012LevelContext")(),Oe=(0,u.useCallback)((()=>{R?V():L()}),[R,L,V]),je=(0,u.useCallback)(((G,de)=>{de?L({deep:!0}):V({deep:!0})}),[L,V]);return Object.keys(r).length===0?null:u.createElement(Ae.Provider,{value:P},u.createElement(xe.Provider,{value:J},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs","data-json-schema-level":Q},me?u.createElement(u.Fragment,null,u.createElement(le,{expanded:R,onChange:Oe},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),u.createElement(ve,{expanded:R,onClick:je})):u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation"),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!R})},R&&u.createElement(u.Fragment,null,r.description&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement(be,{schema:r,getSystem:e})),r.url&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"url"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},u.createElement(ce,{target:"_blank",href:Dr(r.url)},r.url))))),re.length>0&&u.createElement(_e,{openAPISpecObj:r,openAPIExtensions:re,getSystem:e})))))},sB=({schema:t,getSystem:e})=>{if(!t?.description)return null;const{getComponent:r}=e(),n=r("Markdown");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},u.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},u.createElement(n,{source:t.description})))},lB=Wl(sB),cB=Wl((({schema:t,getSystem:e,originalComponent:r})=>{const{getComponent:n}=e(),a=n("JSONSchema202012KeywordDiscriminator"),o=n("JSONSchema202012KeywordXml"),p=n("JSONSchema202012KeywordExample"),c=n("JSONSchema202012KeywordExternalDocs");return u.createElement(u.Fragment,null,u.createElement(r,{schema:t}),u.createElement(a,{schema:t,getSystem:e}),u.createElement(o,{schema:t,getSystem:e}),u.createElement(c,{schema:t,getSystem:e}),u.createElement(p,{schema:t,getSystem:e}))})),uB=cB,pB=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{useComponent:a,usePath:o}=r.jsonSchema202012,{getDependentRequired:p,getProperties:c}=r.jsonSchema202012.useFn(),d=r.jsonSchema202012.useConfig(),E=Array.isArray(t?.required)?t.required:[],{path:x}=o("properties"),k=a("JSONSchema"),P=n("JSONSchema202012PathContext")(),R=c(t,d);return Object.keys(R).length===0?null:u.createElement(P.Provider,{value:x},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},u.createElement("ul",null,Object.entries(R).map((([L,V])=>{const Q=E.includes(L),J=p(L,t);return u.createElement("li",{key:L,className:Xr()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":Q})},u.createElement(k,{name:L,schema:V,dependentRequired:J}))})))))},hB=Wl(pB),dB=function({fn:e,getSystem:r}){if(e.jsonSchema202012){const o=((p,c)=>{const{fn:d}=c();if(typeof p!="function")return null;const{hasKeyword:E}=d.jsonSchema202012;return x=>p(x)||E(x,"example")||x?.xml||x?.discriminator||x?.externalDocs})(e.jsonSchema202012.isExpandable,r);Object.assign(this.fn.jsonSchema202012,{isExpandable:o,getProperties:w$})}if(typeof e.sampleFromSchema=="function"&&e.jsonSchema202012){const o=Cw({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:p=>e.jsonSchema202012.getType(Mr(p)),getSchemaObjectType:p=>e.jsonSchema202012.foldType(Mr(p)?.type)},r());Object.assign(this.fn,o)}const n=(o=>(p,c=null)=>{const{fn:d}=o();if(d.isFileUploadIntendedOAS30(p,c))return!0;const E=H.Map.isMap(p);if(!E&&!Ai()(p))return!1;const x=E?p.get("contentMediaType"):p.contentMediaType,k=E?p.get("contentEncoding"):p.contentEncoding;return typeof x=="string"&&x!==""||typeof k=="string"&&k!==""})(r),{isFileUploadIntended:a}=Cw({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=a,this.fn.isFileUploadIntendedOAS31=n,e.jsonSchema202012){const{hasSchemaType:o}=Cw({hasSchemaType:e.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=o}},fB=({fn:t})=>{const e=t.createSystemSelector||lO,r=t.createOnlyOAS31Selector||iO;return{afterLoad:dB,fn:{isOAS31:oO,createSystemSelector:lO,createOnlyOAS31Selector:iO},components:{Webhooks:a$,JsonSchemaDialect:l$,MutualTLSAuth:f$,OAS31Info:s$,OAS31License:o$,OAS31Contact:i$,OAS31VersionPragmaFilter:c$,OAS31Model:h$,OAS31Models:d$,OAS31Auths:g$,JSONSchema202012KeywordExample:tB,JSONSchema202012KeywordXml:rB,JSONSchema202012KeywordDiscriminator:aB,JSONSchema202012KeywordExternalDocs:iB,OpenAPI31Extensions:oB},wrapComponents:{InfoContainer:b$,License:y$,Contact:v$,VersionPragmaFilter:x$,Model:E$,Models:S$,AuthItem:O$,auths:k$,JSONSchema202012KeywordDescription:lB,JSONSchema202012KeywordExamples:uB,JSONSchema202012KeywordProperties:hB},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:Z$}},spec:{selectors:{isOAS31:e(A$),license:P$,selectLicenseNameField:N$,selectLicenseUrlField:T$,selectLicenseIdentifierField:r(M$),selectLicenseUrl:e(I$),contact:R$,selectContactNameField:D$,selectContactEmailField:F$,selectContactUrlField:L$,selectContactUrl:e($$),selectInfoTitleField:B$,selectInfoSummaryField:r(q$),selectInfoDescriptionField:U$,selectInfoTermsOfServiceField:z$,selectInfoTermsOfServiceUrl:e(V$),selectExternalDocsDescriptionField:J$,selectExternalDocsUrlField:W$,selectExternalDocsUrl:e(H$),webhooks:r(C$),selectWebhooksOperations:r(e(j$)),selectJsonSchemaDialectField:K$,selectJsonSchemaDialectDefault:G$,selectSchemas:e(Y$)},wrapSelectors:{isOAS3:X$,selectLicenseUrl:Q$}},oas31:{selectors:{selectLicenseUrl:r(e(eB))}}}}},mB=({bypass:t,isSwagger2:e,isOAS3:r,isOAS31:n,isOAS32:a,alsoShow:o,children:p})=>t?u.createElement("div",null,p):e&&(r||n||a)?u.createElement("div",{className:"version-pragma"},o,u.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,u.createElement("code",null,"swagger")," and ",u.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),u.createElement("p",null,"Supported version fields are ",u.createElement("code",null,'swagger: "2.0"')," ","and ",u.createElement("code",null,"openapi: 3.0.x"),", ",u.createElement("code",null,"openapi: 3.1.x"),", or"," ",u.createElement("code",null,"openapi: 3.2.x")," (for example,"," ",u.createElement("code",null,"openapi: 3.2.0"),").")))):e||r||n||a?u.createElement("div",null,p):u.createElement("div",{className:"version-pragma"},o,u.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,"The provided definition does not specify a valid version field."),u.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",u.createElement("code",null,'swagger: "2.0"')," ","and ",u.createElement("code",null,"openapi: 3.0.x"),", ",u.createElement("code",null,"openapi: 3.1.x"),", or"," ",u.createElement("code",null,"openapi: 3.2.x")," (for example,"," ",u.createElement("code",null,"openapi: 3.2.0"),").")))),uO=t=>{const e=t.get("openapi");return typeof e=="string"&&/^3\.2\.(?:[1-9]\d*|0)$/.test(e)},gB=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS32()){const a=t(e,...r);return typeof a=="function"?a(n):a}return null},pO=t=>(e,...r)=>n=>{const a=t(e,n,...r);return typeof a=="function"?a(n):a},Mc=t=>(e,r)=>n=>r.specSelectors.isOAS32()?u.createElement(t,Yr()({},n,{originalComponent:e,getSystem:r.getSystem})):u.createElement(e,n),Pw=(t,e)=>{const{fn:r,specSelectors:n}=e;return Object.fromEntries(Object.entries(t).map((([a,o])=>{const p=r[a];return[a,(...c)=>n.isOAS32()?o(...c):typeof p=="function"?p(...c):void 0]})))},yB=Mc((t=>{const{getSystem:e}=t,r=e().getComponent("OAS31Contact",!0);return u.createElement(r,t)})),vB=Mc((({getSystem:t})=>{const e=t().getComponent("OAS31Info",!0);return u.createElement(e,null)})),bB=Mc((t=>{const{getSystem:e}=t,r=e().getComponent("OAS31License",!0);return u.createElement(r,t)})),hO=t=>{if(typeof t!="function")return null;const e=t();return()=>[...e,"discriminator","xml","externalDocs","example","$$ref"]},Rc=Mc((({getSystem:t,...e})=>{const r=t(),{getComponent:n,fn:a,getConfigs:o}=r,p=o(),c=window?.location?.pathname??"/";if(Rc.ModelWithJSONSchemaContext&&Rc.pathname===c)return u.createElement(Rc.ModelWithJSONSchemaContext,e);const d=n("OAS31Model"),E=n("withJSONSchema202012SystemContext");return Rc.ModelWithJSONSchemaContext=E(d,{config:{default$schema:"https://spec.openapis.org/oas/3.2/schema/2025-09-17",defaultExpandedLevels:p.defaultModelExpandDepth,includeReadOnly:e.includeReadOnly,includeWriteOnly:e.includeWriteOnly},fn:{getProperties:a.jsonSchema202012.getProperties,isExpandable:a.jsonSchema202012.isExpandable,getSchemaKeywords:hO(a.jsonSchema202012.getSchemaKeywords)}}),Rc.pathname=c,u.createElement(Rc.ModelWithJSONSchemaContext,e)}));Rc.ModelWithJSONSchemaContext=null,Rc.pathname=null;const wB=Rc,Dc=Mc((({getSystem:t})=>{const{getComponent:e,fn:r,getConfigs:n}=t(),a=n(),o=window?.location?.pathname??"/";if(Dc.ModelsWithJSONSchemaContext&&Dc.pathname===o)return u.createElement(Dc.ModelsWithJSONSchemaContext,null);const p=e("OAS31Models",!0),c=e("withJSONSchema202012SystemContext");return Dc.ModelsWithJSONSchemaContext=c(p,{config:{default$schema:"https://spec.openapis.org/oas/3.2/schema/2025-09-17",defaultExpandedLevels:a.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:hO(r.jsonSchema202012.getSchemaKeywords)}}),Dc.pathname=o,u.createElement(Dc.ModelsWithJSONSchemaContext,null)}));Dc.ModelsWithJSONSchemaContext=null,Dc.pathname=null;const EB=Dc,SB=Mc((t=>{const{originalComponent:e}=t;return u.createElement(e,{oasVersion:"3.2"})})),xB=(t,e)=>r=>{const n=e.specSelectors.isOAS32(),a=e.getComponent("OAS32VersionPragmaFilter");return u.createElement(a,Yr()({isOAS32:n},r))},_B=({schema:t,getSystem:e})=>{if(!t?.description)return null;const{getComponent:r}=e(),n=r("Markdown");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},u.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},u.createElement(n,{source:t.description})))},OB=Mc(_B),kB=Mc((({schema:t,getSystem:e,originalComponent:r})=>{const{getComponent:n}=e(),a=n("JSONSchema202012KeywordDiscriminator"),o=n("JSONSchema202012KeywordXml"),p=n("JSONSchema202012KeywordExample"),c=n("JSONSchema202012KeywordExternalDocs");return u.createElement(u.Fragment,null,u.createElement(r,{schema:t}),u.createElement(a,{schema:t,getSystem:e}),u.createElement(o,{schema:t,getSystem:e}),u.createElement(c,{schema:t,getSystem:e}),u.createElement(p,{schema:t,getSystem:e}))})),AB=kB,CB=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{useComponent:a,usePath:o}=r.jsonSchema202012,{getDependentRequired:p,getProperties:c}=r.jsonSchema202012.useFn(),d=r.jsonSchema202012.useConfig(),E=Array.isArray(t?.required)?t.required:[],{path:x}=o("properties"),k=a("JSONSchema"),P=n("JSONSchema202012PathContext")(),R=c(t,d);return Object.keys(R).length===0?null:u.createElement(P.Provider,{value:x},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},u.createElement("ul",null,Object.entries(R).map((([L,V])=>{const Q=E.includes(L),J=p(L,t);return u.createElement("li",{key:L,className:Xr()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":Q})},u.createElement(k,{name:L,schema:V,dependentRequired:J}))})))))},jB=Mc(CB),PB=vu()(["get","put","post","delete","options","head","patch","trace","query"]),NB=(t,e)=>(r,...n)=>e.specSelectors.isOAS32()||t(...n),TB=(dO=()=>(t,e)=>e.oas32Selectors.validOperationMethods(),(t,e)=>(r,...n)=>{if(e.getSystem().specSelectors.isOAS32()){const a=dO(r,...n);return typeof a=="function"?a(t,e):a}return t(...n)});var dO;const fO=(0,H.Map)(),IB=(t,e)=>()=>{const r=e.specSelectors.specJson();return uO(r)},MB=()=>t=>{const e=t.specSelectors.info().get("license");return H.Map.isMap(e)?e:fO},RB=()=>t=>t.specSelectors.license().get("name","License"),DB=()=>t=>t.specSelectors.license().get("url"),FB=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),LB=()=>t=>t.specSelectors.license().get("identifier"),$B=()=>t=>{const e=t.specSelectors.info().get("contact");return H.Map.isMap(e)?e:fO},BB=()=>t=>t.specSelectors.contact().get("name","the developer"),qB=()=>t=>t.specSelectors.contact().get("email"),UB=()=>t=>t.specSelectors.contact().get("url"),zB=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectContactUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),VB=()=>t=>t.specSelectors.info().get("summary"),JB=function({fn:e,getSystem:r}){if(typeof e.sampleFromSchema=="function"&&e.jsonSchema202012){const o=Pw({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:p=>e.jsonSchema202012.getType(Mr(p)),getSchemaObjectType:p=>e.jsonSchema202012.foldType(Mr(p)?.type)},r());Object.assign(this.fn,o)}const n=(o=>(p,c=null)=>{const{fn:d}=o();if(d.isFileUploadIntendedOAS30(p,c))return!0;const E=H.Map.isMap(p);if(!E&&!Ai()(p))return!1;const x=E?p.get("contentMediaType"):p.contentMediaType,k=E?p.get("contentEncoding"):p.contentEncoding;return typeof x=="string"&&x!==""||typeof k=="string"&&k!==""})(r),{isFileUploadIntended:a}=Pw({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=a,this.fn.isFileUploadIntendedOAS32=n,e.jsonSchema202012){const{hasSchemaType:o}=Pw({hasSchemaType:e.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=o}},WB=({fn:t})=>{const e=t.createSystemSelector||pO;return{afterLoad:JB,fn:{isOAS32:uO,createSystemSelector:pO,createOnlyOAS32Selector:gB},components:{OAS32VersionPragmaFilter:mB},wrapComponents:{Contact:yB,InfoContainer:vB,License:bB,Model:wB,Models:EB,OpenAPIVersion:SB,VersionPragmaFilter:xB,JSONSchema202012KeywordDescription:OB,JSONSchema202012KeywordExamples:AB,JSONSchema202012KeywordProperties:jB},statePlugins:{spec:{selectors:{isOAS32:e(IB),selectInfoSummaryField:VB,license:MB,selectLicenseNameField:RB,selectLicenseUrlField:DB,selectLicenseIdentifierField:LB,selectLicenseUrl:e(FB),contact:$B,selectContactNameField:BB,selectContactEmailField:qB,selectContactUrlField:UB,selectContactUrl:e(zB)},wrapSelectors:{isOAS3:NB,validOperationMethods:TB}},oas32:{selectors:{validOperationMethods:PB}}}}},HB=va().object,KB=va().bool,eh=(va().oneOfType([HB,KB]),(0,u.createContext)(null));eh.displayName="JSONSchemaContext";const ls=(0,u.createContext)(0);ls.displayName="JSONSchemaLevelContext";const Nw=(0,u.createContext)(new Set),pi=(0,u.createContext)([]);class Ks{static Collapsed="collapsed";static Expanded="expanded";static DeeplyExpanded="deeply-expanded"}const Tw=()=>{const{config:t}=(0,u.useContext)(eh);return t},Jt=t=>{const{components:e}=(0,u.useContext)(eh);return e[t]||null},Rn=(t=void 0)=>{const{fn:e}=(0,u.useContext)(eh);return t!==void 0?e[t]:e},mO=()=>{const[,t]=(0,u.useState)(null),{state:e}=(0,u.useContext)(eh);return{state:e,setState:r=>{r(e),t({})}}},cs=()=>{const t=(0,u.useContext)(ls);return[t,t+1]},Qo=t=>{const e=(0,u.useContext)(pi),{setState:r}=mO(),n=typeof t=="string"?[...e,t]:e;return{path:n,pathMutator:(a,o={deep:!1})=>{const p=n.toString(),c=E=>{E.paths[p]=a,a===Ks.Collapsed&&Object.keys(E.paths).forEach((x=>{x.startsWith(p)&&E.paths[x]===Ks.DeeplyExpanded&&(E.paths[x]=Ks.Expanded)}))},d=E=>{Object.keys(E.paths).forEach((x=>{x.startsWith(p)&&(E.paths[x]=a)}))};o.deep?r(d):r(c)}}},Gs=t=>{const[e]=cs(),{defaultExpandedLevels:r}=Tw(),{path:n,pathMutator:a}=Qo(t),{path:o}=Qo(),{state:p}=mO(),c=p.paths[n.toString()],d=p.paths[o.toString()]??p.paths[o.slice(0,-1).toString()],E=c??(r-e>0?Ks.Expanded:Ks.Collapsed),x=E!==Ks.Collapsed;return(0,u.useEffect)((()=>{a(d===Ks.DeeplyExpanded?Ks.DeeplyExpanded:E)}),[d]),{isExpanded:x,setExpanded:(0,u.useCallback)(((k={deep:!1})=>{a(k.deep?Ks.DeeplyExpanded:Ks.Expanded)}),[]),setCollapsed:(0,u.useCallback)(((k={deep:!1})=>{a(Ks.Collapsed,k)}),[])}},gO=(t=void 0)=>{if(t===void 0)return(0,u.useContext)(Nw);const e=(0,u.useContext)(Nw);return new Set([...e,t])},GB=(0,u.forwardRef)((({schema:t,name:e="",dependentRequired:r=[],onExpand:n=()=>{},identifier:a=""},o)=>{const p=Rn(),c=a||t?.$id||e,{path:d}=Qo(c),{isExpanded:E,setExpanded:x,setCollapsed:k}=Gs(c),[P,R]=cs(),L=(()=>{const[Lr]=cs();return Lr>0})(),V=p.isExpandable(t)||r.length>0,Q=(Lr=>gO().has(Lr))(t),J=gO(t),re=p.stringifyConstraints(t),me=Jt("Accordion"),le=Jt("Keyword$schema"),ve=Jt("Keyword$vocabulary"),be=Jt("Keyword$id"),ce=Jt("Keyword$anchor"),_e=Jt("Keyword$dynamicAnchor"),Ae=Jt("Keyword$ref"),xe=Jt("Keyword$dynamicRef"),Oe=Jt("Keyword$defs"),je=Jt("Keyword$comment"),G=Jt("KeywordAllOf"),de=Jt("KeywordAnyOf"),Ne=Jt("KeywordOneOf"),Ye=Jt("KeywordNot"),ht=Jt("KeywordIf"),Ct=Jt("KeywordThen"),_t=Jt("KeywordElse"),qt=Jt("KeywordDependentSchemas"),It=Jt("KeywordPrefixItems"),Ot=Jt("KeywordItems"),et=Jt("KeywordContains"),Dt=Jt("KeywordProperties"),or=Jt("KeywordPatternProperties"),Ut=Jt("KeywordAdditionalProperties"),pr=Jt("KeywordPropertyNames"),W=Jt("KeywordUnevaluatedItems"),$e=Jt("KeywordUnevaluatedProperties"),Je=Jt("KeywordType"),Ft=Jt("KeywordEnum"),it=Jt("KeywordConst"),bt=Jt("KeywordConstraint"),ut=Jt("KeywordDependentRequired"),Xt=Jt("KeywordContentSchema"),zt=Jt("KeywordTitle"),tr=Jt("KeywordDescription"),Er=Jt("KeywordDefault"),dr=Jt("KeywordDeprecated"),qr=Jt("KeywordReadOnly"),en=Jt("KeywordWriteOnly"),kn=Jt("KeywordExamples"),ln=Jt("ExtensionKeywords"),jt=Jt("ExpandDeepButton"),We=(0,u.useCallback)(((Lr,zr)=>{zr?x():k(),n(Lr,zr,!1)}),[n,x,k]),Kr=(0,u.useCallback)(((Lr,zr)=>{zr?x({deep:!0}):k({deep:!0}),n(Lr,zr,!0)}),[n,x,k]);return u.createElement(pi.Provider,{value:d},u.createElement(ls.Provider,{value:R},u.createElement(Nw.Provider,{value:J},u.createElement("article",{ref:o,"data-json-schema-level":P,className:Xr()("json-schema-2020-12",{"json-schema-2020-12--embedded":L,"json-schema-2020-12--circular":Q})},u.createElement("div",{className:"json-schema-2020-12-head"},V&&!Q?u.createElement(u.Fragment,null,u.createElement(me,{expanded:E,onChange:We},u.createElement(zt,{title:e,schema:t})),u.createElement(jt,{expanded:E,onClick:Kr})):u.createElement(zt,{title:e,schema:t}),u.createElement(dr,{schema:t}),u.createElement(qr,{schema:t}),u.createElement(en,{schema:t}),u.createElement(Je,{schema:t,isCircular:Q}),re.length>0&&re.map((Lr=>u.createElement(bt,{key:`${Lr.scope}-${Lr.value}`,constraint:Lr})))),u.createElement("div",{className:Xr()("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!E})},E&&u.createElement(u.Fragment,null,u.createElement(tr,{schema:t}),!Q&&V&&u.createElement(u.Fragment,null,u.createElement(Dt,{schema:t}),u.createElement(or,{schema:t}),u.createElement(Ut,{schema:t}),u.createElement($e,{schema:t}),u.createElement(pr,{schema:t}),u.createElement(G,{schema:t}),u.createElement(de,{schema:t}),u.createElement(Ne,{schema:t}),u.createElement(Ye,{schema:t}),u.createElement(ht,{schema:t}),u.createElement(Ct,{schema:t}),u.createElement(_t,{schema:t}),u.createElement(qt,{schema:t}),u.createElement(It,{schema:t}),u.createElement(Ot,{schema:t}),u.createElement(W,{schema:t}),u.createElement(et,{schema:t}),u.createElement(Xt,{schema:t})),u.createElement(Ft,{schema:t}),u.createElement(it,{schema:t}),u.createElement(ut,{schema:t,dependentRequired:r}),u.createElement(Er,{schema:t}),u.createElement(kn,{schema:t}),u.createElement(le,{schema:t}),u.createElement(ve,{schema:t}),u.createElement(be,{schema:t}),u.createElement(ce,{schema:t}),u.createElement(_e,{schema:t}),u.createElement(Ae,{schema:t}),!Q&&V&&u.createElement(Oe,{schema:t}),u.createElement(xe,{schema:t}),u.createElement(je,{schema:t}),u.createElement(ln,{schema:t})))))))})),yO=GB,vO=({schema:t})=>t?.$schema?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$schema"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$schema)):null,bO=({schema:t})=>{const e="$vocabulary",{path:r}=Qo(e),{isExpanded:n,setExpanded:a,setCollapsed:o}=Gs(e),p=Jt("Accordion"),c=(0,u.useCallback)((()=>{n?o():a()}),[n,a,o]);return t?.$vocabulary?typeof t.$vocabulary!="object"?null:u.createElement(pi.Provider,{value:r},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary"},u.createElement(p,{expanded:n,onChange:c},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$vocabulary")),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",null,n&&Object.entries(t.$vocabulary).map((([d,E])=>u.createElement("li",{key:d,className:Xr()("json-schema-2020-12-$vocabulary-uri",{"json-schema-2020-12-$vocabulary-uri--disabled":!E})},u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},d))))))):null},wO=({schema:t})=>t?.$id?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$id"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$id"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$id)):null,EO=({schema:t})=>t?.$anchor?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$anchor"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$anchor)):null,SO=({schema:t})=>t?.$dynamicAnchor?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicAnchor"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicAnchor)):null,xO=({schema:t})=>t?.$ref?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$ref"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$ref)):null,_O=({schema:t})=>t?.$dynamicRef?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicRef"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicRef)):null,OO=({schema:t})=>{const e=t?.$defs||{},r="$defs",{path:n}=Qo(r),{isExpanded:a,setExpanded:o,setCollapsed:p}=Gs(r),[c,d]=cs(),E=Jt("Accordion"),x=Jt("ExpandDeepButton"),k=Jt("JSONSchema"),P=(0,u.useCallback)((()=>{a?p():o()}),[a,o,p]),R=(0,u.useCallback)(((L,V)=>{V?o({deep:!0}):p({deep:!0})}),[o,p]);return Object.keys(e).length===0?null:u.createElement(pi.Provider,{value:n},u.createElement(ls.Provider,{value:d},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs","data-json-schema-level":c},u.createElement(E,{expanded:a,onChange:P},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$defs")),u.createElement(x,{expanded:a,onClick:R}),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&u.createElement(u.Fragment,null,Object.entries(e).map((([L,V])=>u.createElement("li",{key:L,className:"json-schema-2020-12-property"},u.createElement(k,{name:L,schema:V})))))))))},kO=({schema:t})=>t?.$comment?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$comment"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$comment)):null,AO=({schema:t})=>{const e=t?.allOf||[],r=Rn(),n="allOf",{path:a}=Qo(n),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(n),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=Jt("JSONSchema"),R=Jt("KeywordType"),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return Array.isArray(e)&&e.length!==0?u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf","data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"All of")),u.createElement(k,{expanded:o,onClick:V}),u.createElement(R,{schema:{allOf:e}}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(P,{name:`#${J} ${r.getTitle(Q)}`,schema:Q}))))))))):null},CO=({schema:t})=>{const e=t?.anyOf||[],r=Rn(),n="anyOf",{path:a}=Qo(n),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(n),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=Jt("JSONSchema"),R=Jt("KeywordType"),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return Array.isArray(e)&&e.length!==0?u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf","data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Any of")),u.createElement(k,{expanded:o,onClick:V}),u.createElement(R,{schema:{anyOf:e}}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(P,{name:`#${J} ${r.getTitle(Q)}`,schema:Q}))))))))):null},jO=({schema:t})=>{const e=t?.oneOf||[],r=Rn(),n="oneOf",{path:a}=Qo(n),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(n),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=Jt("JSONSchema"),R=Jt("KeywordType"),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return Array.isArray(e)&&e.length!==0?u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf","data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"One of")),u.createElement(k,{expanded:o,onClick:V}),u.createElement(R,{schema:{oneOf:e}}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(P,{name:`#${J} ${r.getTitle(Q)}`,schema:Q}))))))))):null},PO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"not"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Not");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--not"},u.createElement(r,{name:n,schema:t.not,identifier:"not"}))},NO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"if"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"If");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},u.createElement(r,{name:n,schema:t.if,identifier:"if"}))},TO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"then"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Then");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--then"},u.createElement(r,{name:n,schema:t.then,identifier:"then"}))},IO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"else"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Else");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},u.createElement(r,{name:n,schema:t.else,identifier:"else"}))},MO=({schema:t})=>{const e=t?.dependentSchemas||[],r="dependentSchemas",{path:n}=Qo(r),{isExpanded:a,setExpanded:o,setCollapsed:p}=Gs(r),[c,d]=cs(),E=Jt("Accordion"),x=Jt("ExpandDeepButton"),k=Jt("JSONSchema"),P=(0,u.useCallback)((()=>{a?p():o()}),[a,o,p]),R=(0,u.useCallback)(((L,V)=>{V?o({deep:!0}):p({deep:!0})}),[o,p]);return typeof e!="object"||Object.keys(e).length===0?null:u.createElement(pi.Provider,{value:n},u.createElement(ls.Provider,{value:d},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas","data-json-schema-level":c},u.createElement(E,{expanded:a,onChange:P},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Dependent schemas")),u.createElement(x,{expanded:a,onClick:R}),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&u.createElement(u.Fragment,null,Object.entries(e).map((([L,V])=>u.createElement("li",{key:L,className:"json-schema-2020-12-property"},u.createElement(k,{name:L,schema:V})))))))))},RO=({schema:t})=>{const e=t?.prefixItems||[],r=Rn(),n="prefixItems",{path:a}=Qo(n),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(n),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=Jt("JSONSchema"),R=Jt("KeywordType"),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return Array.isArray(e)&&e.length!==0?u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems","data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Prefix items")),u.createElement(k,{expanded:o,onClick:V}),u.createElement(R,{schema:{prefixItems:e}}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(P,{name:`#${J} ${r.getTitle(Q)}`,schema:Q}))))))))):null},DO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"items"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Items");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--items"},u.createElement(r,{name:n,schema:t.items,identifier:"items"}))},FO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"contains"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Contains");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contains"},u.createElement(r,{name:n,schema:t.contains,identifier:"contains"}))},LO=({schema:t})=>{const e=Rn(),r=t?.properties||{},n=Array.isArray(t?.required)?t.required:[],a=Jt("JSONSchema"),{path:o}=Qo("properties");return Object.keys(r).length===0?null:u.createElement(pi.Provider,{value:o},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},u.createElement("ul",null,Object.entries(r).map((([p,c])=>{const d=n.includes(p),E=e.getDependentRequired(p,t);return u.createElement("li",{key:p,className:Xr()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":d})},u.createElement(a,{name:p,schema:c,dependentRequired:E}))})))))},$O=({schema:t})=>{const e=t?.patternProperties||{},r=Jt("JSONSchema"),{path:n}=Qo("patternProperties");return Object.keys(e).length===0?null:u.createElement(pi.Provider,{value:n},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties"},u.createElement("ul",null,Object.entries(e).map((([a,o])=>u.createElement("li",{key:a,className:"json-schema-2020-12-property"},u.createElement(r,{name:a,schema:o})))))))},BO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"additionalProperties"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Additional properties");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties"},t.additionalProperties===!0?u.createElement(u.Fragment,null,n,u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"allowed")):t.additionalProperties===!1?u.createElement(u.Fragment,null,n,u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"forbidden")):u.createElement(r,{name:n,schema:t.additionalProperties,identifier:"additionalProperties"}))},qO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema"),n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Property names");return e.hasKeyword(t,"propertyNames")?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames"},u.createElement(r,{name:n,schema:t.propertyNames,identifier:"propertyNames"})):null},UO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"unevaluatedItems"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated items");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems"},u.createElement(r,{name:n,schema:t.unevaluatedItems,identifier:"unevaluatedItems"}))},zO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"unevaluatedProperties"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated properties");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties"},u.createElement(r,{name:n,schema:t.unevaluatedProperties,identifier:"unevaluatedProperties"}))},VO=({schema:t,isCircular:e=!1})=>{const r=Rn().getType(t),n=e?" [circular]":"";return u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${r}${n}`)},JO=({schema:t})=>{const e=Jt("JSONViewer");return Array.isArray(t?.enum)?u.createElement(e,{name:"Enum",value:t.enum,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--enum"}):null},WO=({schema:t})=>{const e=Rn(),r=Jt("JSONViewer");return e.hasKeyword(t,"const")?u.createElement(r,{name:"Const",value:t.const,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--const"}):null},HO=t=>typeof t=="string"?`${t.charAt(0).toUpperCase()}${t.slice(1)}`:t,KO=t=>(e,{lookup:r="extended"}={})=>{const n=t();if(e?.title!=null)return n.upperFirst(String(e.title));if(r==="extended"){if(e?.$anchor!=null)return n.upperFirst(String(e.$anchor));if(e?.$id!=null)return String(e.$id)}return""},GO=t=>{const e=(r,n=new WeakSet)=>{const a=t();if(r==null)return"any";if(a.isBooleanJSONSchema(r))return r?"any":"never";if(typeof r!="object"||n.has(r))return"any";n.add(r);const{type:o,prefixItems:p,items:c}=r,d=()=>{if(Array.isArray(p)){const k=p.map((R=>e(R,n))),P=c?e(c,n):"any";return`array<[${k.join(", ")}], ${P}>`}return c?`array<${e(c,n)}>`:"array"};if(r.not&&e(r.not)==="any")return"never";const E=(k,P)=>Array.isArray(r[k])?`(${r[k].map((R=>e(R,n))).join(P)})`:null,x=[Array.isArray(o)?o.map((k=>k==="array"?d():k)).join(" | "):o==="array"?d():["null","boolean","object","array","number","integer","string"].includes(o)?o:(()=>{if(Object.hasOwn(r,"prefixItems")||Object.hasOwn(r,"items")||Object.hasOwn(r,"contains"))return d();if(Object.hasOwn(r,"properties")||Object.hasOwn(r,"additionalProperties")||Object.hasOwn(r,"patternProperties"))return"object";if(["int32","int64"].includes(r.format))return"integer";if(["float","double"].includes(r.format))return"number";if(Object.hasOwn(r,"minimum")||Object.hasOwn(r,"maximum")||Object.hasOwn(r,"exclusiveMinimum")||Object.hasOwn(r,"exclusiveMaximum")||Object.hasOwn(r,"multipleOf"))return"number | integer";if(Object.hasOwn(r,"pattern")||Object.hasOwn(r,"format")||Object.hasOwn(r,"minLength")||Object.hasOwn(r,"maxLength")||Object.hasOwn(r,"contentEncoding")||Object.hasOwn(r,"contentMediaType"))return"string";if(r.const!==void 0){if(r.const===null)return"null";if(typeof r.const=="boolean")return"boolean";if(typeof r.const=="number")return Number.isInteger(r.const)?"integer":"number";if(typeof r.const=="string")return"string";if(Array.isArray(r.const))return"array";if(typeof r.const=="object")return"object"}return null})(),E("oneOf"," | "),E("anyOf"," | "),E("allOf"," & ")].filter(Boolean).join(" | ");return n.delete(r),x||"any"};return e},YO=t=>typeof t=="boolean",XO=(t,e)=>t!==null&&typeof t=="object"&&Object.hasOwn(t,e),QO=t=>e=>{const r=t();return e?.$schema||e?.$vocabulary||e?.$id||e?.$anchor||e?.$dynamicAnchor||e?.$ref||e?.$dynamicRef||e?.$defs||e?.$comment||e?.allOf||e?.anyOf||e?.oneOf||r.hasKeyword(e,"not")||r.hasKeyword(e,"if")||r.hasKeyword(e,"then")||r.hasKeyword(e,"else")||e?.dependentSchemas||e?.prefixItems||r.hasKeyword(e,"items")||r.hasKeyword(e,"contains")||e?.properties||e?.patternProperties||r.hasKeyword(e,"additionalProperties")||r.hasKeyword(e,"propertyNames")||r.hasKeyword(e,"unevaluatedItems")||r.hasKeyword(e,"unevaluatedProperties")||e?.description||e?.enum||r.hasKeyword(e,"const")||r.hasKeyword(e,"contentSchema")||r.hasKeyword(e,"default")||e?.examples||r.getExtensionKeywords(e).length>0},ZO=t=>t===null||["number","bigint","boolean"].includes(typeof t)?String(t):Array.isArray(t)?`[${t.map(ZO).join(", ")}]`:JSON.stringify(t),Lv=(t,e,r)=>{const n=typeof e=="number",a=typeof r=="number";return n&&a?e===r?`${e} ${t}`:`[${e}, ${r}] ${t}`:n?`≥ ${e} ${t}`:a?`≤ ${r} ${t}`:null},YB=t=>{const e=[],r=(d=>{if(typeof d?.multipleOf!="number"||d.multipleOf<=0||d.multipleOf===1)return null;const{multipleOf:E}=d;if(Number.isInteger(E))return`multiple of ${E}`;const x=10**E.toString().split(".")[1].length;return`multiple of ${E*x}/${x}`})(t);r!==null&&e.push({scope:"number",value:r});const n=(d=>{const E=d?.minimum,x=d?.maximum,k=d?.exclusiveMinimum,P=d?.exclusiveMaximum,R=typeof E=="number",L=typeof x=="number",V=typeof k=="number",Q=typeof P=="number",J=V&&(!R||EP);return(R||V)&&(L||Q)?`${J?"(":"["}${J?k:E}, ${re?P:x}${re?")":"]"}`:R||V?`${J?">":"≥"} ${J?k:E}`:L||Q?`${re?"<":"≤"} ${re?P:x}`:null})(t);n!==null&&e.push({scope:"number",value:n}),t?.format&&e.push({scope:"string",value:t.format});const a=Lv("characters",t?.minLength,t?.maxLength);a!==null&&e.push({scope:"string",value:a}),t?.pattern&&e.push({scope:"string",value:`matches ${t?.pattern}`}),t?.contentMediaType&&e.push({scope:"string",value:`media type: ${t.contentMediaType}`}),t?.contentEncoding&&e.push({scope:"string",value:`encoding: ${t.contentEncoding}`});const o=Lv(t?.uniqueItems?"unique items":"items",t?.minItems,t?.maxItems);o!==null&&e.push({scope:"array",value:o}),t?.uniqueItems&&!o&&e.push({scope:"array",value:"unique"});const p=Lv("contained items",t?.minContains,t?.maxContains);p!==null&&e.push({scope:"array",value:p});const c=Lv("properties",t?.minProperties,t?.maxProperties);return c!==null&&e.push({scope:"object",value:c}),e},XB=(t,e)=>e?.dependentRequired?Array.from(Object.entries(e.dependentRequired).reduce(((r,[n,a])=>(Array.isArray(a)&&a.includes(t)&&r.add(n),r)),new Set)):[],$v=t=>typeof t=="object"&&t!==null&&!Array.isArray(t)&&(Object.getPrototypeOf(t)===null||Object.getPrototypeOf(t)===Object.prototype),ek=()=>["$schema","$vocabulary","$id","$anchor","$dynamicAnchor","$dynamicRef","$ref","$defs","$comment","allOf","anyOf","oneOf","not","if","then","else","dependentSchemas","prefixItems","items","contains","properties","patternProperties","additionalProperties","propertyNames","unevaluatedItems","unevaluatedProperties","type","enum","const","multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","maxContains","minContains","maxProperties","minProperties","required","dependentRequired","title","description","default","deprecated","readOnly","writeOnly","examples","format","contentEncoding","contentMediaType","contentSchema"],tk=t=>e=>{const r=t().getSchemaKeywords();return $v(e)?((n,a)=>{const o=new Set(a);return n.filter((p=>!o.has(p)))})(Object.keys(e),r):[]},QB=(t,e)=>{const r=H.Map.isMap(t);if(!r&&!$v(t))return!1;const n=o=>e===o||Array.isArray(e)&&e.includes(o),a=r?t.get("type"):t.type;return H.List.isList(a)||Array.isArray(a)?a.some((o=>n(o))):n(a)},ZB=({constraint:t})=>$v(t)&&typeof t.scope=="string"&&typeof t.value=="string"?u.createElement("span",{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${t.scope}`},t.value):null,rk=u.memo(ZB),nk=({dependentRequired:t})=>Array.isArray(t)&&t.length!==0?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Required when defined"),u.createElement("ul",null,t.map((e=>u.createElement("li",{key:e},u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning"},e)))))):null,ak=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"contentSchema"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Content schema");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema"},u.createElement(r,{name:n,schema:t.contentSchema,identifier:"contentSchema"}))},ok=({title:t="",schema:e})=>{const r=Rn(),n=t||r.getTitle(e);return n?u.createElement("strong",{className:"json-schema-2020-12__title"},n):null},ik=({schema:t})=>t?.description?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},u.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},t.description)):null,sk=({schema:t})=>{const e=Rn(),r=Jt("JSONViewer");return e.hasKeyword(t,"default")?u.createElement(r,{name:"Default",value:t.default,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--default"}):null},lk=({schema:t})=>t?.deprecated!==!0?null:u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--warning"},"deprecated"),ck=({schema:t})=>t?.readOnly!==!0?null:u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"read-only"),uk=({schema:t})=>t?.writeOnly!==!0?null:u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"write-only"),pk=({schema:t})=>{const e=t?.examples||[],r=Jt("JSONViewer");return Array.isArray(e)&&e.length!==0?u.createElement(r,{name:"Examples",value:t.examples,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--examples"}):null},hk=({schema:t})=>{const e=Rn(),r="ExtensionKeywords",{path:n}=Qo(r),{isExpanded:a,setExpanded:o,setCollapsed:p}=Gs(r),[c,d]=cs(),E=Jt("Accordion"),x=Jt("ExpandDeepButton"),k=Jt("JSONViewer"),{showExtensionKeywords:P}=Tw(),R=e.getExtensionKeywords(t),L=(0,u.useCallback)((()=>{a?p():o()}),[a,o,p]),V=(0,u.useCallback)(((Q,J)=>{J?o({deep:!0}):p({deep:!0})}),[o,p]);return P&&R.length!==0?u.createElement(pi.Provider,{value:n},u.createElement(ls.Provider,{value:d},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--extension-keywords","data-json-schema-level":c},u.createElement(E,{expanded:a,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--extension"},"Extension Keywords")),u.createElement(x,{expanded:a,onClick:V}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&u.createElement(u.Fragment,null,R.map((Q=>u.createElement(k,{key:Q,name:Q,value:t[Q],className:"json-schema-2020-12-json-viewer-extension-keyword"})))))))):null},Iw=({name:t,value:e,className:r})=>{const n=Rn(),{path:a}=Qo(t),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(t),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=typeof e=="string"||typeof e=="number"||typeof e=="bigint"||typeof e=="boolean"||typeof e=="symbol"||e==null,R=(Q=>$v(Q)&&Object.keys(Q).length===0)(e)||(Q=>Array.isArray(Q)&&Q.length===0)(e),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return P?u.createElement("div",{className:Xr()("json-schema-2020-12-json-viewer",r)},u.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t),u.createElement("span",{className:"json-schema-2020-12-json-viewer__value json-schema-2020-12-json-viewer__value--secondary"},n.stringify(e))):R?u.createElement("div",{className:Xr()("json-schema-2020-12-json-viewer",r)},u.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(e)?"empty array":"empty object")):u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:Xr()("json-schema-2020-12-json-viewer",r),"data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t)),u.createElement(k,{expanded:o,onClick:V}),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(e)?"array":"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-json-viewer__children",{"json-schema-2020-12-json-viewer__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,Array.isArray(e)?e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(Iw,{name:`#${J}`,value:Q,className:r})))):Object.entries(e).map((([Q,J])=>u.createElement("li",{key:Q,className:"json-schema-2020-12-property"},u.createElement(Iw,{name:Q,value:J,className:r})))))))))},dk=Iw,fk=({expanded:t=!1,children:e,onChange:r})=>{const n=Jt("ChevronRightIcon"),a=(0,u.useCallback)((o=>{r(o,!t)}),[t,r]);return u.createElement("button",{type:"button",className:"json-schema-2020-12-accordion",onClick:a},u.createElement("div",{className:"json-schema-2020-12-accordion__children"},e),u.createElement("span",{className:Xr()("json-schema-2020-12-accordion__icon",{"json-schema-2020-12-accordion__icon--expanded":t,"json-schema-2020-12-accordion__icon--collapsed":!t})},u.createElement(n,null)))},mk=({expanded:t,onClick:e})=>{const r=(0,u.useCallback)((n=>{e(n,!t)}),[t,e]);return u.createElement("button",{type:"button",className:"json-schema-2020-12-expand-deep-button",onClick:r},t?"Collapse all":"Expand all")},gk=()=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},u.createElement("path",{fill:"currentColor",d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),yk=(t,e={})=>{const r={components:{JSONSchema:yO,Keyword$schema:vO,Keyword$vocabulary:bO,Keyword$id:wO,Keyword$anchor:EO,Keyword$dynamicAnchor:SO,Keyword$ref:xO,Keyword$dynamicRef:_O,Keyword$defs:OO,Keyword$comment:kO,KeywordAllOf:AO,KeywordAnyOf:CO,KeywordOneOf:jO,KeywordNot:PO,KeywordIf:NO,KeywordThen:TO,KeywordElse:IO,KeywordDependentSchemas:MO,KeywordPrefixItems:RO,KeywordItems:DO,KeywordContains:FO,KeywordProperties:LO,KeywordPatternProperties:$O,KeywordAdditionalProperties:BO,KeywordPropertyNames:qO,KeywordUnevaluatedItems:UO,KeywordUnevaluatedProperties:zO,KeywordType:VO,KeywordEnum:JO,KeywordConst:WO,KeywordConstraint:rk,KeywordDependentRequired:nk,KeywordContentSchema:ak,KeywordTitle:ok,KeywordDescription:ik,KeywordDefault:sk,KeywordDeprecated:lk,KeywordReadOnly:ck,KeywordWriteOnly:uk,KeywordExamples:pk,ExtensionKeywords:hk,JSONViewer:dk,Accordion:fk,ExpandDeepButton:mk,ChevronRightIcon:gk,...e.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,showExtensionKeywords:!0,...e.config},fn:{upperFirst:HO,getTitle:KO(Rn),getType:GO(Rn),isBooleanJSONSchema:YO,hasKeyword:XO,isExpandable:QO(Rn),stringify:ZO,stringifyConstraints:YB,getDependentRequired:XB,getSchemaKeywords:ek,getExtensionKeywords:tk(Rn),...e.fn},state:{paths:{}}},n=a=>u.createElement(eh.Provider,{value:r},u.createElement(t,a));return n.contexts={JSONSchemaContext:eh},n.displayName=t.displayName,n},eq=({getSystem:t})=>(e,r={})=>{const{getComponent:n,getConfigs:a}=t(),o=a(),p=n("JSONSchema202012"),c=n("JSONSchema202012Keyword$schema"),d=n("JSONSchema202012Keyword$vocabulary"),E=n("JSONSchema202012Keyword$id"),x=n("JSONSchema202012Keyword$anchor"),k=n("JSONSchema202012Keyword$dynamicAnchor"),P=n("JSONSchema202012Keyword$ref"),R=n("JSONSchema202012Keyword$dynamicRef"),L=n("JSONSchema202012Keyword$defs"),V=n("JSONSchema202012Keyword$comment"),Q=n("JSONSchema202012KeywordAllOf"),J=n("JSONSchema202012KeywordAnyOf"),re=n("JSONSchema202012KeywordOneOf"),me=n("JSONSchema202012KeywordNot"),le=n("JSONSchema202012KeywordIf"),ve=n("JSONSchema202012KeywordThen"),be=n("JSONSchema202012KeywordElse"),ce=n("JSONSchema202012KeywordDependentSchemas"),_e=n("JSONSchema202012KeywordPrefixItems"),Ae=n("JSONSchema202012KeywordItems"),xe=n("JSONSchema202012KeywordContains"),Oe=n("JSONSchema202012KeywordProperties"),je=n("JSONSchema202012KeywordPatternProperties"),G=n("JSONSchema202012KeywordAdditionalProperties"),de=n("JSONSchema202012KeywordPropertyNames"),Ne=n("JSONSchema202012KeywordUnevaluatedItems"),Ye=n("JSONSchema202012KeywordUnevaluatedProperties"),ht=n("JSONSchema202012KeywordType"),Ct=n("JSONSchema202012KeywordEnum"),_t=n("JSONSchema202012KeywordConst"),qt=n("JSONSchema202012KeywordConstraint"),It=n("JSONSchema202012KeywordDependentRequired"),Ot=n("JSONSchema202012KeywordContentSchema"),et=n("JSONSchema202012KeywordTitle"),Dt=n("JSONSchema202012KeywordDescription"),or=n("JSONSchema202012KeywordDefault"),Ut=n("JSONSchema202012KeywordDeprecated"),pr=n("JSONSchema202012KeywordReadOnly"),W=n("JSONSchema202012KeywordWriteOnly"),$e=n("JSONSchema202012KeywordExamples"),Je=n("JSONSchema202012ExtensionKeywords"),Ft=n("JSONSchema202012JSONViewer"),it=n("JSONSchema202012Accordion"),bt=n("JSONSchema202012ExpandDeepButton"),ut=n("JSONSchema202012ChevronRightIcon");return yk(e,{components:{JSONSchema:p,Keyword$schema:c,Keyword$vocabulary:d,Keyword$id:E,Keyword$anchor:x,Keyword$dynamicAnchor:k,Keyword$ref:P,Keyword$dynamicRef:R,Keyword$defs:L,Keyword$comment:V,KeywordAllOf:Q,KeywordAnyOf:J,KeywordOneOf:re,KeywordNot:me,KeywordIf:le,KeywordThen:ve,KeywordElse:be,KeywordDependentSchemas:ce,KeywordPrefixItems:_e,KeywordItems:Ae,KeywordContains:xe,KeywordProperties:Oe,KeywordPatternProperties:je,KeywordAdditionalProperties:G,KeywordPropertyNames:de,KeywordUnevaluatedItems:Ne,KeywordUnevaluatedProperties:Ye,KeywordType:ht,KeywordEnum:Ct,KeywordConst:_t,KeywordConstraint:qt,KeywordDependentRequired:It,KeywordContentSchema:Ot,KeywordTitle:et,KeywordDescription:Dt,KeywordDefault:or,KeywordDeprecated:Ut,KeywordReadOnly:pr,KeywordWriteOnly:W,KeywordExamples:$e,ExtensionKeywords:Je,JSONViewer:Ft,Accordion:it,ExpandDeepButton:bt,ChevronRightIcon:ut,...r.components},config:{showExtensionKeywords:o.showExtensions,...r.config},fn:{...r.fn}})},vk=({getSystem:t,fn:e})=>{const r=()=>({upperFirst:e.upperFirst,...e.jsonSchema202012});return{components:{JSONSchema202012:yO,JSONSchema202012Keyword$schema:vO,JSONSchema202012Keyword$vocabulary:bO,JSONSchema202012Keyword$id:wO,JSONSchema202012Keyword$anchor:EO,JSONSchema202012Keyword$dynamicAnchor:SO,JSONSchema202012Keyword$ref:xO,JSONSchema202012Keyword$dynamicRef:_O,JSONSchema202012Keyword$defs:OO,JSONSchema202012Keyword$comment:kO,JSONSchema202012KeywordAllOf:AO,JSONSchema202012KeywordAnyOf:CO,JSONSchema202012KeywordOneOf:jO,JSONSchema202012KeywordNot:PO,JSONSchema202012KeywordIf:NO,JSONSchema202012KeywordThen:TO,JSONSchema202012KeywordElse:IO,JSONSchema202012KeywordDependentSchemas:MO,JSONSchema202012KeywordPrefixItems:RO,JSONSchema202012KeywordItems:DO,JSONSchema202012KeywordContains:FO,JSONSchema202012KeywordProperties:LO,JSONSchema202012KeywordPatternProperties:$O,JSONSchema202012KeywordAdditionalProperties:BO,JSONSchema202012KeywordPropertyNames:qO,JSONSchema202012KeywordUnevaluatedItems:UO,JSONSchema202012KeywordUnevaluatedProperties:zO,JSONSchema202012KeywordType:VO,JSONSchema202012KeywordEnum:JO,JSONSchema202012KeywordConst:WO,JSONSchema202012KeywordConstraint:rk,JSONSchema202012KeywordDependentRequired:nk,JSONSchema202012KeywordContentSchema:ak,JSONSchema202012KeywordTitle:ok,JSONSchema202012KeywordDescription:ik,JSONSchema202012KeywordDefault:sk,JSONSchema202012KeywordDeprecated:lk,JSONSchema202012KeywordReadOnly:ck,JSONSchema202012KeywordWriteOnly:uk,JSONSchema202012KeywordExamples:pk,JSONSchema202012ExtensionKeywords:hk,JSONSchema202012JSONViewer:dk,JSONSchema202012Accordion:fk,JSONSchema202012ExpandDeepButton:mk,JSONSchema202012ChevronRightIcon:gk,withJSONSchema202012Context:yk,withJSONSchema202012SystemContext:eq(t()),JSONSchema202012PathContext:()=>pi,JSONSchema202012LevelContext:()=>ls},fn:{upperFirst:HO,jsonSchema202012:{getTitle:KO(r),getType:GO(r),isExpandable:QO(r),isBooleanJSONSchema:YO,hasKeyword:XO,useFn:Rn,useConfig:Tw,useComponent:Jt,useIsExpanded:Gs,usePath:Qo,useLevel:cs,getSchemaKeywords:ek,getExtensionKeywords:tk(r),hasSchemaType:QB}}}},tq=(t,{sample:e=[]}={})=>((r,n={})=>{const{minItems:a,maxItems:o,uniqueItems:p}=n,{contains:c,minContains:d,maxContains:E}=n;let x=[...r];if(c!=null&&typeof c=="object"&&Number.isInteger(d)&&d>1){const k=x.at(0);for(let P=1;P0&&(x=r.slice(0,o)),Number.isInteger(a)&&a>0)for(let k=0;x.length{throw new Error("Not implemented")},Bv=t=>Fn()(t),qv=t=>t.at(0),th=t=>typeof t=="boolean",Ys=t=>Ai()(t),Fc=t=>th(t)||Ys(t),Uv=class{data={};register(e,r){this.data[e]=r}unregister(e){e===void 0?this.data={}:delete this.data[e]}get(e){return this.data[e]}},bk=()=>0,wk=()=>0,nq=()=>.1,aq=()=>.1,oq=()=>"user@example.com",iq=()=>"실례@example.com",sq=()=>"example.com",lq=()=>"실례.com",cq=()=>"198.51.100.42",uq=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",pq=()=>"https://example.com/",hq=()=>"path/index.html",dq=()=>"https://실례.com/",fq=()=>"path/실례.html",mq=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",gq=()=>"https://example.com/dictionary/{term:1}/{term}",yq=()=>"/a/b/c",vq=()=>"1/0",bq=()=>new Date().toISOString(),wq=()=>new Date().toISOString().substring(0,10),Eq=()=>new Date().toISOString().substring(11),Sq=()=>"P3D",xq=()=>"********",_q=()=>"^[a-z]+$",zv=new class extends Uv{#e={int32:bk,int64:wk,float:nq,double:aq,email:oq,"idn-email":iq,hostname:sq,"idn-hostname":lq,ipv4:cq,ipv6:uq,uri:pq,"uri-reference":hq,iri:dq,"iri-reference":fq,uuid:mq,"uri-template":gq,"json-pointer":yq,"relative-json-pointer":vq,"date-time":bq,date:wq,time:Eq,duration:Sq,password:xq,regex:_q};data={...this.#e};get defaults(){return{...this.#e}}},Ek=(t,e)=>typeof e=="function"?zv.register(t,e):e===null?zv.unregister(t):zv.get(t);Ek.getDefaults=()=>zv.defaults;const Vv=Ek;var Oq=Be(48287).Buffer;const kq=t=>Oq.from(t).toString("ascii");var Aq=Be(48287).Buffer;const Cq=t=>Aq.from(t).toString("utf8");var jq=Be(48287).Buffer;const Pq=t=>jq.from(t).toString("binary"),Nq=t=>{let e="";for(let r=0;r=33&&n<=60||n>=62&&n<=126||n===9||n===32)e+=t.charAt(r);else if(n===13||n===10)e+=`\r +`;else if(n>126){const a=unescape(encodeURIComponent(t.charAt(r)));for(let o=0;oTq.from(t).toString("hex");var Mq=Be(48287).Buffer;const Rq=t=>{const e=Mq.from(t).toString("utf8"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let n=0,a="",o=0,p=0;for(let c=0;c=5;)a+=r.charAt(o>>>p-5&31),p-=5;p>0&&(a+=r.charAt(o<<5-p&31),n=(8-8*e.length%5)%5);for(let c=0;cDq.from(t).toString("base64");var Lq=Be(48287).Buffer;const $q=t=>Lq.from(t).toString("base64url"),Jv=new class extends Uv{#e={"7bit":kq,"8bit":Cq,binary:Pq,"quoted-printable":Nq,base16:Iq,base32:Rq,base64:Fq,base64url:$q};data={...this.#e};get defaults(){return{...this.#e}}},Sk=(t,e)=>typeof e=="function"?Jv.register(t,e):e===null?Jv.unregister(t):Jv.get(t);Sk.getDefaults=()=>Jv.defaults;const xk=Sk,Bq={"text/plain":()=>"string","text/css":()=>".selector { border: 1px solid red }","text/csv":()=>"value1,value2,value3","text/html":()=>"

    content

    ","text/calendar":()=>"BEGIN:VCALENDAR","text/javascript":()=>"console.dir('Hello world!');","text/xml":()=>'John Doe',"text/*":()=>"string"},qq={"image/*":()=>Bv(25).toString("binary")},Uq={"audio/*":()=>Bv(25).toString("binary")},zq={"video/*":()=>Bv(25).toString("binary")},Vq={"application/json":()=>'{"key":"value"}',"application/ld+json":()=>'{"name": "John Doe"}',"application/x-httpd-php":()=>"Hello World!

    '; ?>","application/rtf":()=>String.raw`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,"application/x-sh":()=>'echo "Hello World!"',"application/xhtml+xml":()=>"

    content

    ","application/*":()=>Bv(25).toString("binary")},wd=new class extends Uv{#e={...Bq,...qq,...Uq,...zq,...Vq};data={...this.#e};get defaults(){return{...this.#e}}},_k=(t,e)=>{if(typeof e=="function")return wd.register(t,e);if(e===null)return wd.unregister(t);const r=t.split(";").at(0),n=`${r.split("/").at(0)}/*`;return wd.get(t)||wd.get(r)||wd.get(n)};_k.getDefaults=()=>wd.defaults;const Ok=_k,Mw=(t,e={})=>{const{maxLength:r,minLength:n}=e;let a=t;if(Number.isInteger(r)&&r>0&&(a=a.slice(0,r)),Number.isInteger(n)&&n>0){let o=0;for(;a.length{const{contentEncoding:r,contentMediaType:n,contentSchema:a}=t,{pattern:o,format:p}=t,c=xk(r)||Cx();let d;return d=typeof o=="string"?Mw((E=>{try{const x=new RegExp("(?<=(?{const{format:x}=E,k=Vv(x);return typeof k=="function"?k(E):"string"})(t):Fc(a)&&typeof n=="string"&&e!==void 0?Array.isArray(e)||typeof e=="object"?JSON.stringify(e):Mw(String(e),t):typeof n=="string"?(E=>{const{contentMediaType:x}=E,k=Ok(x);return typeof k=="function"?k(E):"string"})(t):Mw("string",t),c(d)},kk=(t,e={})=>{const{minimum:r,maximum:n,exclusiveMinimum:a,exclusiveMaximum:o}=e,{multipleOf:p}=e,c=Number.isInteger(t)?1:Number.EPSILON;let d=typeof r=="number"?r:null,E=typeof n=="number"?n:null,x=t;if(typeof a=="number"&&(d=d!==null?Math.max(d,a+c):a+c),typeof o=="number"&&(E=E!==null?Math.min(E,o-c):o-c),x=d>E&&t||d||E||x,typeof p=="number"&&p>0){const k=x%p;x=k===0?x:x+p-k}return x},Wq=t=>{const{format:e}=t;let r;return r=typeof e=="string"?(n=>{const{format:a}=n,o=Vv(a);return typeof o=="function"?o(n):0})(t):0,kk(r,t)},Hq=t=>{const{format:e}=t;let r;return r=typeof e=="string"?(n=>{const{format:a}=n,o=Vv(a);if(typeof o=="function")return o(n);switch(a){case"int32":return bk();case"int64":return wk()}return 0})(t):0,kk(r,t)},Kq=t=>typeof t.default!="boolean"||t.default,Wv=new Proxy({array:tq,object:rq,string:Jq,number:Wq,integer:Hq,boolean:Kq,null:()=>null},{get:(t,e)=>typeof e=="string"&&Object.hasOwn(t,e)?t[e]:()=>`Unknown Type: ${e}`}),Ak=["array","object","number","integer","string","boolean","null"],zm=t=>{if(!Ys(t))return!1;const{examples:e,example:r,default:n}=t;return!!(Array.isArray(e)&&e.length>=1)||n!==void 0||r!==void 0},Rw=t=>{if(!Ys(t))return null;const{examples:e,example:r,default:n}=t;return Array.isArray(e)&&e.length>=1?e.at(0):n!==void 0?n:r!==void 0?r:void 0},Hv={array:["items","prefixItems","contains","maxContains","minContains","maxItems","minItems","uniqueItems","unevaluatedItems"],object:["properties","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","required","dependentSchemas","dependentRequired","unevaluatedProperties"],string:["pattern","format","minLength","maxLength","contentEncoding","contentMediaType","contentSchema"],integer:["minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf"]};Hv.number=Hv.integer;const Dw="string",Ck=t=>t===void 0?null:t===null?"null":Array.isArray(t)?"array":Number.isInteger(t)?"integer":typeof t,Kv=t=>{if(Array.isArray(t)&&t.length>=1){if(t.includes("array"))return"array";if(t.includes("object"))return"object";{const e=t.filter((n=>n!=="null")),r=qv(e.length>0?e:t);if(Ak.includes(r))return r}}return Ak.includes(t)?t:null},Fw=(t,e=new WeakSet)=>{if(!Ys(t)||e.has(t))return Dw;e.add(t);let{type:r,const:n}=t;if(r=Kv(r),typeof r!="string"){const a=Object.keys(Hv);e:for(let o=0;o{if(Array.isArray(t[E])){const x=t[E].map((k=>Fw(k,e)));return Kv(x)}return null},o=a("allOf"),p=a("anyOf"),c=a("oneOf"),d=t.not?Fw(t.not,e):null;(o||p||c||d)&&(r=Kv([o,p,c,d].filter(Boolean)))}if(typeof r!="string"&&zm(t)){const a=Rw(t),o=Ck(a);r=typeof o=="string"?o:r}return e.delete(t),r||Dw},jk=t=>Fw(t),Lw=t=>th(t)?(e=>e===!1?{not:{}}:{})(t):Ys(t)?t:{},Vm=(t,e,r={})=>{if(th(t)&&t===!0)return!0;if(th(t)&&t===!1)return!1;if(th(e)&&e===!0)return!0;if(th(e)&&e===!1)return!1;if(!Fc(t))return e;if(!Fc(e))return t;const n={...e,...t};if(e.type&&t.type&&Array.isArray(e.type)&&typeof e.type=="string"){const a=fn(e.type).concat(t.type);n.type=Array.from(new Set(a))}if(Array.isArray(e.required)&&Array.isArray(t.required)&&(n.required=[...new Set([...t.required,...e.required])]),e.properties&&t.properties){const a=new Set([...Object.keys(e.properties),...Object.keys(t.properties)]);n.properties={};for(const o of a){const p=e.properties[o]||{},c=t.properties[o]||{};p.readOnly&&!r.includeReadOnly||p.writeOnly&&!r.includeWriteOnly?n.required=(n.required||[]).filter((d=>d!==o)):n.properties[o]=Vm(c,p,r)}}return Fc(e.items)&&Fc(t.items)&&(n.items=Vm(t.items,e.items,r)),Fc(e.contains)&&Fc(t.contains)&&(n.contains=Vm(t.contains,e.contains,r)),Fc(e.contentSchema)&&Fc(t.contentSchema)&&(n.contentSchema=Vm(t.contentSchema,e.contentSchema,r)),n},Ed=Vm,io=(t,e={},r=void 0,n=!1)=>{if(t==null&&r===void 0)return;typeof t?.toJS=="function"&&(t=t.toJS()),t=Lw(t);let a=r!==void 0||zm(t);const o=!a&&Array.isArray(t.oneOf)&&t.oneOf.length>0,p=!a&&Array.isArray(t.anyOf)&&t.anyOf.length>0;if(!a&&(o||p)){const Oe=Lw(qv(o?t.oneOf:t.anyOf));!(t=Ed(t,Oe,e)).xml&&Oe.xml&&(t.xml=Oe.xml),zm(t)&&zm(Oe)&&(a=!0)}const c={};let{xml:d,properties:E,additionalProperties:x,items:k,contains:P}=t||{},R=jk(t),{includeReadOnly:L,includeWriteOnly:V}=e;d=d||{};let Q,{name:J,prefix:re,namespace:me}=d,le={};Object.hasOwn(t,"type")||(t.type=R),n&&(J=J||"notagname",Q=(re?`${re}:`:"")+J,me)&&(c[re?`xmlns:${re}`:"xmlns"]=me),n&&(le[Q]=[]);const ve=Nn(E);let be,ce=0;const _e=()=>Number.isInteger(t.maxProperties)&&t.maxProperties>0&&ce>=t.maxProperties,Ae=Oe=>!(Number.isInteger(t.maxProperties)&&t.maxProperties>0)||!_e()&&(!(je=>!Array.isArray(t.required)||t.required.length===0||!t.required.includes(je))(Oe)||t.maxProperties-ce-(()=>{if(!Array.isArray(t.required)||t.required.length===0)return 0;let je=0;return n?t.required.forEach((G=>je+=le[G]===void 0?0:1)):t.required.forEach((G=>{je+=le[Q]?.find((de=>de[G]!==void 0))===void 0?0:1})),t.required.length-je})()>0);if(be=n?(Oe,je=void 0)=>{if(t&&ve[Oe]){if(ve[Oe].xml=ve[Oe].xml||{},ve[Oe].xml.attribute){const de=Array.isArray(ve[Oe].enum)?qv(ve[Oe].enum):void 0;if(zm(ve[Oe]))c[ve[Oe].xml.name||Oe]=Rw(ve[Oe]);else if(de!==void 0)c[ve[Oe].xml.name||Oe]=de;else{const Ne=Lw(ve[Oe]),Ye=jk(Ne),ht=ve[Oe].xml.name||Oe;if(Ye==="array"){const Ct=io(ve[Oe],e,je,!1);c[ht]=Ct.map((_t=>Ai()(_t)?"UnknownTypeObject":Array.isArray(_t)?"UnknownTypeArray":_t)).join(" ")}else c[ht]=Ye==="object"?"UnknownTypeObject":Wv[Ye](Ne)}return}ve[Oe].xml.name=ve[Oe].xml.name||Oe}else ve[Oe]||x===!1||(ve[Oe]={xml:{name:Oe}});let G=io(ve[Oe],e,je,n);Ae(Oe)&&(ce++,Array.isArray(G)?le[Q]=le[Q].concat(G):le[Q].push(G))}:(Oe,je)=>{if(Ae(Oe)){if(Ai()(t.discriminator?.mapping)&&t.discriminator.propertyName===Oe&&typeof t.$$ref=="string"){for(const G in t.discriminator.mapping)if(t.$$ref.search(t.discriminator.mapping[G])!==-1){le[Oe]=G;break}}else le[Oe]=io(ve[Oe],e,je,n);ce++}},a){let Oe;if(Oe=r!==void 0?r:Rw(t),!n){if(typeof Oe=="number"&&R==="string")return`${Oe}`;if(typeof Oe!="string"||R==="string")return Oe;try{return JSON.parse(Oe)}catch{return Oe}}if(R==="array"){if(!Array.isArray(Oe)){if(typeof Oe=="string")return Oe;Oe=[Oe]}let je=[];return Ys(k)&&(k.xml=k.xml||d||{},k.xml.name=k.xml.name||d.name,je=Oe.map((G=>io(k,e,G,n)))),Ys(P)&&(P.xml=P.xml||d||{},P.xml.name=P.xml.name||d.name,je=[io(P,e,void 0,n),...je]),je=Wv.array(t,{sample:je}),d.wrapped?(le[Q]=je,Ci()(c)||le[Q].push({_attr:c})):le=je,le}if(R==="object"){if(typeof Oe=="string")return Oe;for(const je in Oe)Object.hasOwn(Oe,je)&&(ve[je]?.readOnly&&!L||ve[je]?.writeOnly&&!V||(ve[je]?.xml?.attribute?c[ve[je].xml.name||je]=Oe[je]:be(je,Oe[je])));return Ci()(c)||le[Q].push({_attr:c}),le}return le[Q]=Ci()(c)?Oe:[{_attr:c},Oe],le}if(R==="array"){let Oe=[];if(Ys(P))if(n&&(P.xml=P.xml||t.xml||{},P.xml.name=P.xml.name||d.name),Array.isArray(P.anyOf)){const{anyOf:je,...G}=k;Oe.push(...P.anyOf.map((de=>io(Ed(de,G,e),e,void 0,n))))}else if(Array.isArray(P.oneOf)){const{oneOf:je,...G}=k;Oe.push(...P.oneOf.map((de=>io(Ed(de,G,e),e,void 0,n))))}else{if(!(!n||n&&d.wrapped))return io(P,e,void 0,n);Oe.push(io(P,e,void 0,n))}if(Ys(k))if(n&&(k.xml=k.xml||t.xml||{},k.xml.name=k.xml.name||d.name),Array.isArray(k.anyOf)){const{anyOf:je,...G}=k;Oe.push(...k.anyOf.map((de=>io(Ed(de,G,e),e,void 0,n))))}else if(Array.isArray(k.oneOf)){const{oneOf:je,...G}=k;Oe.push(...k.oneOf.map((de=>io(Ed(de,G,e),e,void 0,n))))}else{if(!(!n||n&&d.wrapped))return io(k,e,void 0,n);Oe.push(io(k,e,void 0,n))}return Oe=Wv.array(t,{sample:Oe}),n&&d.wrapped?(le[Q]=Oe,Ci()(c)||le[Q].push({_attr:c}),le):Oe}if(R==="object"){for(let Oe in ve)Object.hasOwn(ve,Oe)&&(ve[Oe]?.deprecated||ve[Oe]?.readOnly&&!L||ve[Oe]?.writeOnly&&!V||be(Oe));if(n&&c&&le[Q].push({_attr:c}),_e())return le;if(th(x)&&x)n?le[Q].push({additionalProp:"Anything can be here"}):le.additionalProp1={},ce++;else if(Ys(x)){const Oe=x,je=io(Oe,e,void 0,n);if(n&&typeof Oe?.xml?.name=="string"&&Oe?.xml?.name!=="notagname")le[Q].push(je);else{const G=Oe?.["x-additionalPropertiesName"]||"additionalProp",de=Number.isInteger(t.minProperties)&&t.minProperties>0&&ce{const n=io(t,e,r,!0);if(n)return typeof n=="string"?n:xp()(n,{declaration:!0,indent:" "})},Nk=(t,e,r)=>io(t,e,r,!1),Tk=(t,e,r)=>[t,JSON.stringify(e),JSON.stringify(r)],Gq=gu(Pk,Tk),Yq=gu(Nk,Tk),Ik=new class extends Uv{#e={};data={...this.#e};get defaults(){return{...this.#e}}},Xq=(t,e)=>(e!==void 0&&Ik.register(t,e),Ik.get(t)),Qq=[{when:/json/,shouldStringifyTypes:["string"]}],Zq=["object"],eU=t=>(e,r,n,a)=>{const{fn:o}=t(),p=o.jsonSchema202012.memoizedSampleFromSchema(e,r,a),c=typeof p,d=Qq.reduce(((E,x)=>x.when.test(n)?[...E,...x.shouldStringifyTypes]:E),Zq);return Wr()(d,(E=>E===c))?JSON.stringify(p,null,2):p},tU=t=>(e,r,n,a)=>{const{fn:o}=t(),p=o.jsonSchema202012.getJsonSampleSchema(e,r,n,a);let c;try{c=Pe.dump(Pe.load(p),{lineWidth:-1},{schema:Rt}),c[c.length-1]===` +`&&(c=c.slice(0,c.length-1))}catch(d){return console.error(d),"error: could not generate yaml example"}return c.replace(/\t/g," ")},rU=t=>(e,r,n)=>{const{fn:a}=t();if(e&&!e.xml&&(e.xml={}),e&&!e.xml.name){if(!e.$$ref&&(e.type||e.items||e.properties||e.additionalProperties))return` +`;if(e.$$ref){let o=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=o[1]}}return a.jsonSchema202012.memoizedCreateXMLExample(e,r,n)},nU=t=>(e,r="",n={},a=void 0)=>{const{fn:o}=t();return typeof e?.toJS=="function"&&(e=e.toJS()),typeof a?.toJS=="function"&&(a=a.toJS()),/xml/.test(r)?o.jsonSchema202012.getXmlSampleSchema(e,n,a):/(yaml|yml)/.test(r)?o.jsonSchema202012.getYamlSampleSchema(e,n,r,a):o.jsonSchema202012.getJsonSampleSchema(e,n,r,a)},Mk=({getSystem:t})=>{const e=eU(t),r=tU(t),n=rU(t),a=nU(t);return{fn:{jsonSchema202012:{sampleFromSchema:Nk,sampleFromSchemaGeneric:io,sampleOptionAPI:Xq,sampleEncoderAPI:xk,sampleFormatAPI:Vv,sampleMediaTypeAPI:Ok,createXMLExample:Pk,memoizedSampleFromSchema:Yq,memoizedCreateXMLExample:Gq,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:a,mergeJsonSchema:Ed,foldType:Kv}}}};function Rk(){return[nO,Aw,vk,Mk,fB,WB]}const aU=t=>()=>({fn:t.fn,components:t.components}),oU=t=>{const e=ct()({layout:{layout:t.layout,filter:t.filter},spec:{spec:"",url:t.url},requestSnippets:t.requestSnippets},t.initialState);if(t.initialState)for(const[r,n]of Object.entries(t.initialState))n===void 0&&delete e[r];return{system:{configs:t.configs},plugins:t.presets,state:e}},iU=()=>t=>{const e=t.queryConfigEnabled?(()=>{const r=new URLSearchParams(Qe.location.search);return Object.fromEntries(r)})():{};return Object.entries(e).reduce(((r,[n,a])=>(n==="config"?r.configUrl=a:n==="urls.primaryName"?r[n]=a:r=pn()(r,n,a),r)),{})},sU=({url:t,system:e})=>async r=>{if(!t)return{};if(typeof e.configsActions?.getConfigByUrl!="function")return{};const n=(()=>{const a={};return a.promise=new Promise(((o,p)=>{a.resolve=o,a.reject=p})),a})();return e.configsActions.getConfigByUrl({url:t,loadRemoteConfig:!0,requestInterceptor:r.requestInterceptor,responseInterceptor:r.responseInterceptor},(a=>{n.resolve(a)})),n.promise},lU=()=>()=>{const t={};return globalThis.location&&(t.oauth2RedirectUrl=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname.substring(0,globalThis.location.pathname.lastIndexOf("/"))}/oauth2-redirect.html`),t},Xn=Object.freeze({dom_id:null,domNode:null,spec:{},url:"",urls:null,configUrl:null,layout:"BaseLayout",docExpansion:"list",maxDisplayedTags:-1,filter:!1,validatorUrl:"https://validator.swagger.io/validator",oauth2RedirectUrl:void 0,persistAuthorization:!1,configs:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:t=>(t.curlOptions=[],t),responseInterceptor:t=>t,showMutatedRequest:!0,defaultModelRendering:"example",defaultModelExpandDepth:1,defaultModelsExpandDepth:1,showExtensions:!1,showCommonExtensions:!1,withCredentials:!1,requestSnippetsEnabled:!1,requestSnippets:{generators:{curl_bash:{title:"cURL (bash)",syntax:"bash"},curl_powershell:{title:"cURL (PowerShell)",syntax:"powershell"},curl_cmd:{title:"cURL (CMD)",syntax:"bash"}},defaultExpanded:!0,languages:null},supportedSubmitMethods:["get","put","post","delete","options","head","patch","trace"],queryConfigEnabled:!1,presets:[Rk],plugins:[],initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"},operationsSorter:null,tagsSorter:null,onComplete:null,modelPropertyMacro:null,parameterMacro:null,fileUploadMediaTypes:["application/octet-stream","image/","audio/","video/"],uncaughtExceptionHandler:null});var cU=Be(61448),uU=Be.n(cU),pU=Be(77731),hU=Be.n(pU);const Gv=(t,e=[])=>Array.isArray(t)?t:e,us=(t,e=!1)=>t===!0||t==="true"||t===1||t==="1"||t!==!1&&t!=="false"&&t!==0&&t!=="0"&&e,dU=t=>t===null||t==="null"?null:t,fU=t=>{const e=String(t);return us(t,e)},Dk=(t,e)=>typeof t=="function"?t:e,mU=t=>Array.isArray(t)?t:null,Yv=t=>typeof t=="function"?t:null,$w=t=>t===null||t==="null"?null:String(t),Bw=(t,e=-1)=>{const r=parseInt(t,10);return Number.isNaN(r)?e:r},Sd=(t,e={})=>Ai()(t)?t:e,Fk=t=>typeof t=="function"||typeof t=="string"?t:null,xd=t=>String(t),gU=(t,e)=>Ai()(t)?t:t===!1||t==="false"||t===0||t==="0"?{activated:!1}:e,yU=t=>t===void 0||t==="undefined"?void 0:String(t),Lk={components:{typeCaster:Sd},configs:{typeCaster:Sd},configUrl:{typeCaster:$w},deepLinking:{typeCaster:us,defaultValue:Xn.deepLinking},defaultModelExpandDepth:{typeCaster:Bw,defaultValue:Xn.defaultModelExpandDepth},defaultModelRendering:{typeCaster:xd},defaultModelsExpandDepth:{typeCaster:Bw,defaultValue:Xn.defaultModelsExpandDepth},displayOperationId:{typeCaster:us,defaultValue:Xn.displayOperationId},displayRequestDuration:{typeCaster:us,defaultValue:Xn.displayRequestDuration},docExpansion:{typeCaster:xd},dom_id:{typeCaster:$w},domNode:{typeCaster:dU},fileUploadMediaTypes:{typeCaster:Gv,defaultValue:Xn.fileUploadMediaTypes},filter:{typeCaster:fU},fn:{typeCaster:Sd},initialState:{typeCaster:Sd},layout:{typeCaster:xd},maxDisplayedTags:{typeCaster:Bw,defaultValue:Xn.maxDisplayedTags},modelPropertyMacro:{typeCaster:Yv},oauth2RedirectUrl:{typeCaster:yU},onComplete:{typeCaster:Yv},operationsSorter:{typeCaster:Fk},paramaterMacro:{typeCaster:Yv},persistAuthorization:{typeCaster:us,defaultValue:Xn.persistAuthorization},plugins:{typeCaster:Gv,defaultValue:Xn.plugins},presets:{typeCaster:Gv,defaultValue:Xn.presets},requestInterceptor:{typeCaster:Dk,defaultValue:Xn.requestInterceptor},requestSnippets:{typeCaster:Sd,defaultValue:Xn.requestSnippets},requestSnippetsEnabled:{typeCaster:us,defaultValue:Xn.requestSnippetsEnabled},responseInterceptor:{typeCaster:Dk,defaultValue:Xn.responseInterceptor},showCommonExtensions:{typeCaster:us,defaultValue:Xn.showCommonExtensions},showExtensions:{typeCaster:us,defaultValue:Xn.showExtensions},showMutatedRequest:{typeCaster:us,defaultValue:Xn.showMutatedRequest},spec:{typeCaster:Sd,defaultValue:Xn.spec},supportedSubmitMethods:{typeCaster:Gv,defaultValue:Xn.supportedSubmitMethods},syntaxHighlight:{typeCaster:gU,defaultValue:Xn.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:us,defaultValue:Xn.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:xd},tagsSorter:{typeCaster:Fk},tryItOutEnabled:{typeCaster:us,defaultValue:Xn.tryItOutEnabled},url:{typeCaster:xd},urls:{typeCaster:mU},"urls.primaryName":{typeCaster:xd},validatorUrl:{typeCaster:$w},withCredentials:{typeCaster:us,defaultValue:Xn.withCredentials},uncaughtExceptionHandler:{typeCaster:Yv}},$k=t=>Object.entries(Lk).reduce(((e,[r,{typeCaster:n,defaultValue:a}])=>{if(uU()(e,r)){const o=n(Cn()(e,r),a);e=hU()(r,o,e)}return e}),{...t}),vU=(t,...e)=>{let r=Symbol.for("domNode"),n=Symbol.for("primaryName");const a=[];for(const p of e){const c={...p};Object.hasOwn(c,"domNode")&&(r=c.domNode,delete c.domNode),Object.hasOwn(c,"urls.primaryName")?(n=c["urls.primaryName"],delete c["urls.primaryName"]):Array.isArray(c.urls)&&Object.hasOwn(c.urls,"primaryName")&&(n=c.urls.primaryName,delete c.urls.primaryName),a.push(c)}const o=ct()(t,...a);return r!==Symbol.for("domNode")&&(o.domNode=r),n!==Symbol.for("primaryName")&&Array.isArray(o.urls)&&(o.urls.primaryName=n),$k(o)};function Vu(t){const e=iU()(t),r=lU()(),n=Vu.config.merge({},Vu.config.defaults,r,t,e),a=oU(n),o=aU(n),p=new Xl(a);p.register([n.plugins,o]);const c=p.getSystem(),d=k=>{p.setConfigs(k),c.configsActions.loaded()},E=k=>{!e.url&&typeof k.spec=="object"&&Object.keys(k.spec).length>0?(c.specActions.updateUrl(""),c.specActions.updateLoadingStatus("success"),c.specActions.updateSpec(JSON.stringify(k.spec))):typeof c.specActions.download=="function"&&k.url&&!k.urls&&(c.specActions.updateUrl(k.url),c.specActions.download(k.url))},x=k=>{if(k.domNode)c.render(k.domNode,"App");else if(k.dom_id){const P=document.querySelector(k.dom_id);c.render(P,"App")}else k.dom_id===null||k.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified")};return n.configUrl?((async()=>{const{configUrl:k}=n,P=await sU({url:k,system:c})(n),R=Vu.config.merge({},n,P,e);d(R),P!==null&&E(R),x(R)})(),c):(d(n),E(n),x(n),c)}Vu.System=Xl,Vu.config={defaults:Xn,merge:vU,typeCast:$k,typeCastMappings:Lk},Vu.presets={base:nO,apis:Rk},Vu.plugins={Accessibility:Zl,Auth:Ss,Configs:Nd,DeepLining:up,Err:sh,Filter:Id,Icons:pp,JSONSchema5:Yd,JSONSchema5Samples:Ah,JSONSchema202012:vk,JSONSchema202012Samples:Mk,Layout:Fd,Logs:uh,OpenAPI30:Aw,OpenAPI31:Aw,OnComplete:Ld,RequestSnippets:Ol,Spec:ey,SwaggerClient:fx,Util:mx,View:Nx,ViewLegacy:Tx,DownloadUrl:Ix,SyntaxHighlighting:Hx,Versions:Kx,SafeRender:Xx};const bU=Vu})(),Qw.exports=Cd.default})()),Qw.exports}var qU=BU();const UU=$U(qU),zU={class:"openapi-head"},VU={style:{margin:"0","font-size":"19px"}},JU={class:"hint",style:{margin:"0"}},WU={key:0,class:"card empty",style:{"margin-top":"14px"}},HU={style:{"font-weight":"600",color:"var(--c-text)"}},KU={class:"hint",style:{"max-width":"460px",margin:"0 auto"}},Zw="swagger-ui-container",GU=jU({__name:"OpenApiView",setup(eE){const{t:hs}=PU(),Be=rA("loading"),Cd=rA(!1),w=nA(()=>Cd.value?hs("openapi.sourceEmbedded"):Xw()||"/docs/openapi.yaml");NU(()=>{try{let s;oA?(Cd.value=!0,s=URL.createObjectURL(new Blob([oA],{type:"application/yaml"}))):s=Xw()||"/docs/openapi.yaml",UU({dom_id:`#${Zw}`,url:s,deepLinking:!0,docExpansion:"list",tryItOutEnabled:!0,onComplete:()=>Be.value="ok",onFailure:()=>Be.value="error"}),setTimeout(()=>{if(Be.value==="loading"){const h=document.querySelector(`#${Zw} .opblock`);Be.value=h?"ok":"error"}},6e3)}catch{Be.value="error"}});const N=nA(()=>Be.value==="ok"?hs("openapi.statusOk"):Be.value==="error"?hs("openapi.statusError"):hs("openapi.statusLoading"));return(s,h)=>(aA(),TU(LU,null,{default:IU(()=>[Lc("div",zU,[Lc("h2",VU,Km(Gm(hs)("openapi.title")),1),Lc("span",{class:MU(["badge",Be.value==="ok"?"badge-success":Be.value==="error"?"badge-danger":"badge-muted"])},Km(N.value),3),Lc("span",JU,Km(Gm(hs)("openapi.source",{source:w.value})),1)]),Be.value==="error"?(aA(),RU("div",WU,[h[0]||(h[0]=Lc("div",{class:"empty-icon"},"🧾",-1)),Lc("p",HU,Km(Gm(hs)("openapi.notAvailable")),1),Lc("p",KU,Km(Gm(hs)("openapi.notAvailableHint",{url:Gm(Xw)()||"/docs/openapi.yaml"})),1)])):DU("",!0),Lc("div",{class:"card openapi-wrap",style:{padding:"0",overflow:"hidden"}},[Lc("div",{id:Zw})])]),_:1}))}}),oH=FU(GU,[["__scopeId","data-v-0a44808c"]]);export{oH as default}; diff --git a/server/web/dist/assets/OpenApiView-DRBb-4nZ.js b/server/web/dist/assets/OpenApiView-DRBb-4nZ.js new file mode 100644 index 0000000..343eff6 --- /dev/null +++ b/server/web/dist/assets/OpenApiView-DRBb-4nZ.js @@ -0,0 +1,267 @@ +import{d as jU,u as PU,I as NU,ax as Xw,z as TU,A as IU,j as rA,b as Lc,t as Km,f as Gm,e as MU,c as RU,g as DU,h as nA,o as aA,_ as FU}from"./index-QLbKGtH7.js";import{P as LU}from"./PageShell-D1DY7qw8.js";import{g as $U}from"./swagger-CqkleIqs.js";import{e as oA}from"./docsSource-sXvNoXdF.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-8XmHL8P7.js";var Qw={exports:{}};var iA;function BU(){return iA||(iA=1,(()=>{var eE={67526(w,N){N.byteLength=function(_){var T=m(_),I=T[0],j=T[1];return 3*(I+j)/4-j},N.toByteArray=function(_){var T,I,j=m(_),M=j[0],z=j[1],K=new v((function(te,ie,se){return 3*(ie+se)/4-se})(0,M,z)),Y=0,B=z>0?M-4:M;for(I=0;I>16&255,K[Y++]=T>>8&255,K[Y++]=255&T;return z===2&&(T=h[_.charCodeAt(I)]<<2|h[_.charCodeAt(I+1)]>>4,K[Y++]=255&T),z===1&&(T=h[_.charCodeAt(I)]<<10|h[_.charCodeAt(I+1)]<<4|h[_.charCodeAt(I+2)]>>2,K[Y++]=T>>8&255,K[Y++]=255&T),K},N.fromByteArray=function(_){for(var T,I=_.length,j=I%3,M=[],z=16383,K=0,Y=I-j;KY?Y:K+z));return j===1?(T=_[I-1],M.push(s[T>>2]+s[T<<4&63]+"==")):j===2&&(T=(_[I-2]<<8)+_[I-1],M.push(s[T>>10]+s[T>>4&63]+s[T<<2&63]+"=")),M.join("")};for(var s=[],h=[],v=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0;y<64;++y)s[y]=f[y],h[f.charCodeAt(y)]=y;function m(S){var _=S.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=S.indexOf("=");return T===-1&&(T=_),[T,T===_?0:4-T%4]}function g(S,_,T){for(var I,j,M=[],z=_;z>18&63]+s[j>>12&63]+s[j>>6&63]+s[63&j]);return M.join("")}h[45]=62,h[95]=63},48287(w,N,s){const h=s(67526),v=s(251),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;N.Buffer=g,N.SlowBuffer=function(U){return+U!=U&&(U=0),g.alloc(+U)},N.INSPECT_MAX_BYTES=50;const y=2147483647;function m(pe){if(pe>y)throw new RangeError('The value "'+pe+'" is invalid for option "size"');const U=new Uint8Array(pe);return Object.setPrototypeOf(U,g.prototype),U}function g(pe,U,Z){if(typeof pe=="number"){if(typeof U=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return T(pe)}return S(pe,U,Z)}function S(pe,U,Z){if(typeof pe=="string")return(function(Fe,St){if(typeof St=="string"&&St!==""||(St="utf8"),!g.isEncoding(St))throw new TypeError("Unknown encoding: "+St);const Bt=0|z(Fe,St);let Qe=m(Bt);const $t=Qe.write(Fe,St);return $t!==Bt&&(Qe=Qe.slice(0,$t)),Qe})(pe,U);if(ArrayBuffer.isView(pe))return(function(Fe){if(Gt(Fe,Uint8Array)){const St=new Uint8Array(Fe);return j(St.buffer,St.byteOffset,St.byteLength)}return I(Fe)})(pe);if(pe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof pe);if(Gt(pe,ArrayBuffer)||pe&&Gt(pe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Gt(pe,SharedArrayBuffer)||pe&&Gt(pe.buffer,SharedArrayBuffer)))return j(pe,U,Z);if(typeof pe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ne=pe.valueOf&&pe.valueOf();if(ne!=null&&ne!==pe)return g.from(ne,U,Z);const ye=(function(Fe){if(g.isBuffer(Fe)){const St=0|M(Fe.length),Bt=m(St);return Bt.length===0||Fe.copy(Bt,0,0,St),Bt}if(Fe.length!==void 0)return typeof Fe.length!="number"||Sr(Fe.length)?m(0):I(Fe);if(Fe.type==="Buffer"&&Array.isArray(Fe.data))return I(Fe.data)})(pe);if(ye)return ye;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof pe[Symbol.toPrimitive]=="function")return g.from(pe[Symbol.toPrimitive]("string"),U,Z);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof pe)}function _(pe){if(typeof pe!="number")throw new TypeError('"size" argument must be of type number');if(pe<0)throw new RangeError('The value "'+pe+'" is invalid for option "size"')}function T(pe){return _(pe),m(pe<0?0:0|M(pe))}function I(pe){const U=pe.length<0?0:0|M(pe.length),Z=m(U);for(let ne=0;ne=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return 0|pe}function z(pe,U){if(g.isBuffer(pe))return pe.length;if(ArrayBuffer.isView(pe)||Gt(pe,ArrayBuffer))return pe.byteLength;if(typeof pe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof pe);const Z=pe.length,ne=arguments.length>2&&arguments[2]===!0;if(!ne&&Z===0)return 0;let ye=!1;for(;;)switch(U){case"ascii":case"latin1":case"binary":return Z;case"utf8":case"utf-8":return ur(pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Z;case"hex":return Z>>>1;case"base64":return ar(pe).length;default:if(ye)return ne?-1:ur(pe).length;U=(""+U).toLowerCase(),ye=!0}}function K(pe,U,Z){let ne=!1;if((U===void 0||U<0)&&(U=0),U>this.length||((Z===void 0||Z>this.length)&&(Z=this.length),Z<=0)||(Z>>>=0)<=(U>>>=0))return"";for(pe||(pe="utf8");;)switch(pe){case"hex":return nt(this,U,Z);case"utf8":case"utf-8":return ke(this,U,Z);case"ascii":return He(this,U,Z);case"latin1":case"binary":return qe(this,U,Z);case"base64":return ge(this,U,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,U,Z);default:if(ne)throw new TypeError("Unknown encoding: "+pe);pe=(pe+"").toLowerCase(),ne=!0}}function Y(pe,U,Z){const ne=pe[U];pe[U]=pe[Z],pe[Z]=ne}function B(pe,U,Z,ne,ye){if(pe.length===0)return-1;if(typeof Z=="string"?(ne=Z,Z=0):Z>2147483647?Z=2147483647:Z<-2147483648&&(Z=-2147483648),Sr(Z=+Z)&&(Z=ye?0:pe.length-1),Z<0&&(Z=pe.length+Z),Z>=pe.length){if(ye)return-1;Z=pe.length-1}else if(Z<0){if(!ye)return-1;Z=0}if(typeof U=="string"&&(U=g.from(U,ne)),g.isBuffer(U))return U.length===0?-1:X(pe,U,Z,ne,ye);if(typeof U=="number")return U&=255,typeof Uint8Array.prototype.indexOf=="function"?ye?Uint8Array.prototype.indexOf.call(pe,U,Z):Uint8Array.prototype.lastIndexOf.call(pe,U,Z):X(pe,[U],Z,ne,ye);throw new TypeError("val must be string, number or Buffer")}function X(pe,U,Z,ne,ye){let Ee,Fe=1,St=pe.length,Bt=U.length;if(ne!==void 0&&((ne=String(ne).toLowerCase())==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(pe.length<2||U.length<2)return-1;Fe=2,St/=2,Bt/=2,Z/=2}function Qe($t,Pt){return Fe===1?$t[Pt]:$t.readUInt16BE(Pt*Fe)}if(ye){let $t=-1;for(Ee=Z;EeSt&&(Z=St-Bt),Ee=Z;Ee>=0;Ee--){let $t=!0;for(let Pt=0;Ptye&&(ne=ye):ne=ye;const Ee=U.length;let Fe;for(ne>Ee/2&&(ne=Ee/2),Fe=0;Fe>8,Qe=St%256,$t.push(Qe),$t.push(Bt);return $t})(U,pe.length-Z),pe,Z,ne)}function ge(pe,U,Z){return U===0&&Z===pe.length?h.fromByteArray(pe):h.fromByteArray(pe.slice(U,Z))}function ke(pe,U,Z){Z=Math.min(pe.length,Z);const ne=[];let ye=U;for(;ye239?4:Ee>223?3:Ee>191?2:1;if(ye+St<=Z){let Bt,Qe,$t,Pt;switch(St){case 1:Ee<128&&(Fe=Ee);break;case 2:Bt=pe[ye+1],(192&Bt)==128&&(Pt=(31&Ee)<<6|63&Bt,Pt>127&&(Fe=Pt));break;case 3:Bt=pe[ye+1],Qe=pe[ye+2],(192&Bt)==128&&(192&Qe)==128&&(Pt=(15&Ee)<<12|(63&Bt)<<6|63&Qe,Pt>2047&&(Pt<55296||Pt>57343)&&(Fe=Pt));break;case 4:Bt=pe[ye+1],Qe=pe[ye+2],$t=pe[ye+3],(192&Bt)==128&&(192&Qe)==128&&(192&$t)==128&&(Pt=(15&Ee)<<18|(63&Bt)<<12|(63&Qe)<<6|63&$t,Pt>65535&&Pt<1114112&&(Fe=Pt))}}Fe===null?(Fe=65533,St=1):Fe>65535&&(Fe-=65536,ne.push(Fe>>>10&1023|55296),Fe=56320|1023&Fe),ne.push(Fe),ye+=St}return(function(Fe){const St=Fe.length;if(St<=Ve)return String.fromCharCode.apply(String,Fe);let Bt="",Qe=0;for(;Qe"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}}),g.poolSize=8192,g.from=function(pe,U,Z){return S(pe,U,Z)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),g.alloc=function(pe,U,Z){return(function(ye,Ee,Fe){return _(ye),ye<=0?m(ye):Ee!==void 0?typeof Fe=="string"?m(ye).fill(Ee,Fe):m(ye).fill(Ee):m(ye)})(pe,U,Z)},g.allocUnsafe=function(pe){return T(pe)},g.allocUnsafeSlow=function(pe){return T(pe)},g.isBuffer=function(U){return U!=null&&U._isBuffer===!0&&U!==g.prototype},g.compare=function(U,Z){if(Gt(U,Uint8Array)&&(U=g.from(U,U.offset,U.byteLength)),Gt(Z,Uint8Array)&&(Z=g.from(Z,Z.offset,Z.byteLength)),!g.isBuffer(U)||!g.isBuffer(Z))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(U===Z)return 0;let ne=U.length,ye=Z.length;for(let Ee=0,Fe=Math.min(ne,ye);Eeye.length?(g.isBuffer(Fe)||(Fe=g.from(Fe)),Fe.copy(ye,Ee)):Uint8Array.prototype.set.call(ye,Fe,Ee);else{if(!g.isBuffer(Fe))throw new TypeError('"list" argument must be an Array of Buffers');Fe.copy(ye,Ee)}Ee+=Fe.length}return ye},g.byteLength=z,g.prototype._isBuffer=!0,g.prototype.swap16=function(){const U=this.length;if(U%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Z=0;ZZ&&(U+=" ... "),""},f&&(g.prototype[f]=g.prototype.inspect),g.prototype.compare=function(U,Z,ne,ye,Ee){if(Gt(U,Uint8Array)&&(U=g.from(U,U.offset,U.byteLength)),!g.isBuffer(U))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof U);if(Z===void 0&&(Z=0),ne===void 0&&(ne=U?U.length:0),ye===void 0&&(ye=0),Ee===void 0&&(Ee=this.length),Z<0||ne>U.length||ye<0||Ee>this.length)throw new RangeError("out of range index");if(ye>=Ee&&Z>=ne)return 0;if(ye>=Ee)return-1;if(Z>=ne)return 1;if(this===U)return 0;let Fe=(Ee>>>=0)-(ye>>>=0),St=(ne>>>=0)-(Z>>>=0);const Bt=Math.min(Fe,St),Qe=this.slice(ye,Ee),$t=U.slice(Z,ne);for(let Pt=0;Pt>>=0,isFinite(ne)?(ne>>>=0,ye===void 0&&(ye="utf8")):(ye=ne,ne=void 0)}const Ee=this.length-Z;if((ne===void 0||ne>Ee)&&(ne=Ee),U.length>0&&(ne<0||Z<0)||Z>this.length)throw new RangeError("Attempt to write outside buffer bounds");ye||(ye="utf8");let Fe=!1;for(;;)switch(ye){case"hex":return te(this,U,Z,ne);case"utf8":case"utf-8":return ie(this,U,Z,ne);case"ascii":case"latin1":case"binary":return se(this,U,Z,ne);case"base64":return Te(this,U,Z,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,U,Z,ne);default:if(Fe)throw new TypeError("Unknown encoding: "+ye);ye=(""+ye).toLowerCase(),Fe=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const Ve=4096;function He(pe,U,Z){let ne="";Z=Math.min(pe.length,Z);for(let ye=U;yene)&&(Z=ne);let ye="";for(let Ee=U;EeZ)throw new RangeError("Trying to access beyond buffer length")}function u(pe,U,Z,ne,ye,Ee){if(!g.isBuffer(pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(U>ye||Upe.length)throw new RangeError("Index out of range")}function at(pe,U,Z,ne,ye){H(U,ne,ye,pe,Z,7);let Ee=Number(U&BigInt(4294967295));pe[Z++]=Ee,Ee>>=8,pe[Z++]=Ee,Ee>>=8,pe[Z++]=Ee,Ee>>=8,pe[Z++]=Ee;let Fe=Number(U>>BigInt(32)&BigInt(4294967295));return pe[Z++]=Fe,Fe>>=8,pe[Z++]=Fe,Fe>>=8,pe[Z++]=Fe,Fe>>=8,pe[Z++]=Fe,Z}function Xe(pe,U,Z,ne,ye){H(U,ne,ye,pe,Z,7);let Ee=Number(U&BigInt(4294967295));pe[Z+7]=Ee,Ee>>=8,pe[Z+6]=Ee,Ee>>=8,pe[Z+5]=Ee,Ee>>=8,pe[Z+4]=Ee;let Fe=Number(U>>BigInt(32)&BigInt(4294967295));return pe[Z+3]=Fe,Fe>>=8,pe[Z+2]=Fe,Fe>>=8,pe[Z+1]=Fe,Fe>>=8,pe[Z]=Fe,Z+8}function Se(pe,U,Z,ne,ye,Ee){if(Z+ne>pe.length)throw new RangeError("Index out of range");if(Z<0)throw new RangeError("Index out of range")}function De(pe,U,Z,ne,ye){return U=+U,Z>>>=0,ye||Se(pe,0,Z,4),v.write(pe,U,Z,ne,23,4),Z+4}function Ke(pe,U,Z,ne,ye){return U=+U,Z>>>=0,ye||Se(pe,0,Z,8),v.write(pe,U,Z,ne,52,8),Z+8}g.prototype.slice=function(U,Z){const ne=this.length;(U=~~U)<0?(U+=ne)<0&&(U=0):U>ne&&(U=ne),(Z=Z===void 0?ne:~~Z)<0?(Z+=ne)<0&&(Z=0):Z>ne&&(Z=ne),Z>>=0,Z>>>=0,ne||Re(U,Z,this.length);let ye=this[U],Ee=1,Fe=0;for(;++Fe>>=0,Z>>>=0,ne||Re(U,Z,this.length);let ye=this[U+--Z],Ee=1;for(;Z>0&&(Ee*=256);)ye+=this[U+--Z]*Ee;return ye},g.prototype.readUint8=g.prototype.readUInt8=function(U,Z){return U>>>=0,Z||Re(U,1,this.length),this[U]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(U,Z){return U>>>=0,Z||Re(U,2,this.length),this[U]|this[U+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(U,Z){return U>>>=0,Z||Re(U,2,this.length),this[U]<<8|this[U+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),(this[U]|this[U+1]<<8|this[U+2]<<16)+16777216*this[U+3]},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),16777216*this[U]+(this[U+1]<<16|this[U+2]<<8|this[U+3])},g.prototype.readBigUInt64LE=yt((function(U){we(U>>>=0,"offset");const Z=this[U],ne=this[U+7];Z!==void 0&&ne!==void 0||ct(U,this.length-8);const ye=Z+256*this[++U]+65536*this[++U]+this[++U]*2**24,Ee=this[++U]+256*this[++U]+65536*this[++U]+ne*2**24;return BigInt(ye)+(BigInt(Ee)<>>=0,"offset");const Z=this[U],ne=this[U+7];Z!==void 0&&ne!==void 0||ct(U,this.length-8);const ye=Z*2**24+65536*this[++U]+256*this[++U]+this[++U],Ee=this[++U]*2**24+65536*this[++U]+256*this[++U]+ne;return(BigInt(ye)<>>=0,Z>>>=0,ne||Re(U,Z,this.length);let ye=this[U],Ee=1,Fe=0;for(;++Fe=Ee&&(ye-=Math.pow(2,8*Z)),ye},g.prototype.readIntBE=function(U,Z,ne){U>>>=0,Z>>>=0,ne||Re(U,Z,this.length);let ye=Z,Ee=1,Fe=this[U+--ye];for(;ye>0&&(Ee*=256);)Fe+=this[U+--ye]*Ee;return Ee*=128,Fe>=Ee&&(Fe-=Math.pow(2,8*Z)),Fe},g.prototype.readInt8=function(U,Z){return U>>>=0,Z||Re(U,1,this.length),128&this[U]?-1*(255-this[U]+1):this[U]},g.prototype.readInt16LE=function(U,Z){U>>>=0,Z||Re(U,2,this.length);const ne=this[U]|this[U+1]<<8;return 32768&ne?4294901760|ne:ne},g.prototype.readInt16BE=function(U,Z){U>>>=0,Z||Re(U,2,this.length);const ne=this[U+1]|this[U]<<8;return 32768&ne?4294901760|ne:ne},g.prototype.readInt32LE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),this[U]|this[U+1]<<8|this[U+2]<<16|this[U+3]<<24},g.prototype.readInt32BE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),this[U]<<24|this[U+1]<<16|this[U+2]<<8|this[U+3]},g.prototype.readBigInt64LE=yt((function(U){we(U>>>=0,"offset");const Z=this[U],ne=this[U+7];Z!==void 0&&ne!==void 0||ct(U,this.length-8);const ye=this[U+4]+256*this[U+5]+65536*this[U+6]+(ne<<24);return(BigInt(ye)<>>=0,"offset");const Z=this[U],ne=this[U+7];Z!==void 0&&ne!==void 0||ct(U,this.length-8);const ye=(Z<<24)+65536*this[++U]+256*this[++U]+this[++U];return(BigInt(ye)<>>=0,Z||Re(U,4,this.length),v.read(this,U,!0,23,4)},g.prototype.readFloatBE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),v.read(this,U,!1,23,4)},g.prototype.readDoubleLE=function(U,Z){return U>>>=0,Z||Re(U,8,this.length),v.read(this,U,!0,52,8)},g.prototype.readDoubleBE=function(U,Z){return U>>>=0,Z||Re(U,8,this.length),v.read(this,U,!1,52,8)},g.prototype.writeUintLE=g.prototype.writeUIntLE=function(U,Z,ne,ye){U=+U,Z>>>=0,ne>>>=0,!ye&&u(this,U,Z,ne,Math.pow(2,8*ne)-1,0);let Ee=1,Fe=0;for(this[Z]=255&U;++Fe>>=0,ne>>>=0,!ye&&u(this,U,Z,ne,Math.pow(2,8*ne)-1,0);let Ee=ne-1,Fe=1;for(this[Z+Ee]=255&U;--Ee>=0&&(Fe*=256);)this[Z+Ee]=U/Fe&255;return Z+ne},g.prototype.writeUint8=g.prototype.writeUInt8=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,1,255,0),this[Z]=255&U,Z+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,2,65535,0),this[Z]=255&U,this[Z+1]=U>>>8,Z+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,2,65535,0),this[Z]=U>>>8,this[Z+1]=255&U,Z+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,4,4294967295,0),this[Z+3]=U>>>24,this[Z+2]=U>>>16,this[Z+1]=U>>>8,this[Z]=255&U,Z+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,4,4294967295,0),this[Z]=U>>>24,this[Z+1]=U>>>16,this[Z+2]=U>>>8,this[Z+3]=255&U,Z+4},g.prototype.writeBigUInt64LE=yt((function(U,Z=0){return at(this,U,Z,BigInt(0),BigInt("0xffffffffffffffff"))})),g.prototype.writeBigUInt64BE=yt((function(U,Z=0){return Xe(this,U,Z,BigInt(0),BigInt("0xffffffffffffffff"))})),g.prototype.writeIntLE=function(U,Z,ne,ye){if(U=+U,Z>>>=0,!ye){const Bt=Math.pow(2,8*ne-1);u(this,U,Z,ne,Bt-1,-Bt)}let Ee=0,Fe=1,St=0;for(this[Z]=255&U;++Ee>>=0,!ye){const Bt=Math.pow(2,8*ne-1);u(this,U,Z,ne,Bt-1,-Bt)}let Ee=ne-1,Fe=1,St=0;for(this[Z+Ee]=255&U;--Ee>=0&&(Fe*=256);)U<0&&St===0&&this[Z+Ee+1]!==0&&(St=1),this[Z+Ee]=(U/Fe|0)-St&255;return Z+ne},g.prototype.writeInt8=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,1,127,-128),U<0&&(U=255+U+1),this[Z]=255&U,Z+1},g.prototype.writeInt16LE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,2,32767,-32768),this[Z]=255&U,this[Z+1]=U>>>8,Z+2},g.prototype.writeInt16BE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,2,32767,-32768),this[Z]=U>>>8,this[Z+1]=255&U,Z+2},g.prototype.writeInt32LE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,4,2147483647,-2147483648),this[Z]=255&U,this[Z+1]=U>>>8,this[Z+2]=U>>>16,this[Z+3]=U>>>24,Z+4},g.prototype.writeInt32BE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,4,2147483647,-2147483648),U<0&&(U=4294967295+U+1),this[Z]=U>>>24,this[Z+1]=U>>>16,this[Z+2]=U>>>8,this[Z+3]=255&U,Z+4},g.prototype.writeBigInt64LE=yt((function(U,Z=0){return at(this,U,Z,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),g.prototype.writeBigInt64BE=yt((function(U,Z=0){return Xe(this,U,Z,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),g.prototype.writeFloatLE=function(U,Z,ne){return De(this,U,Z,!0,ne)},g.prototype.writeFloatBE=function(U,Z,ne){return De(this,U,Z,!1,ne)},g.prototype.writeDoubleLE=function(U,Z,ne){return Ke(this,U,Z,!0,ne)},g.prototype.writeDoubleBE=function(U,Z,ne){return Ke(this,U,Z,!1,ne)},g.prototype.copy=function(U,Z,ne,ye){if(!g.isBuffer(U))throw new TypeError("argument should be a Buffer");if(ne||(ne=0),ye||ye===0||(ye=this.length),Z>=U.length&&(Z=U.length),Z||(Z=0),ye>0&&ye=this.length)throw new RangeError("Index out of range");if(ye<0)throw new RangeError("sourceEnd out of bounds");ye>this.length&&(ye=this.length),U.length-Z>>=0,ne=ne===void 0?this.length:ne>>>0,U||(U=0),typeof U=="number")for(Ee=Z;Ee=ne+4;Z-=3)U=`_${pe.slice(Z-3,Z)}${U}`;return`${pe.slice(0,Z)}${U}`}function H(pe,U,Z,ne,ye,Ee){if(pe>Z||pe= 0${Fe} and < 2${Fe} ** ${8*(Ee+1)}${Fe}`:`>= -(2${Fe} ** ${8*(Ee+1)-1}${Fe}) and < 2 ** ${8*(Ee+1)-1}${Fe}`,new ft.ERR_OUT_OF_RANGE("value",St,pe)}(function(St,Bt,Qe){we(Bt,"offset"),St[Bt]!==void 0&&St[Bt+Qe]!==void 0||ct(Bt,St.length-(Qe+1))})(ne,ye,Ee)}function we(pe,U){if(typeof pe!="number")throw new ft.ERR_INVALID_ARG_TYPE(U,"number",pe)}function ct(pe,U,Z){throw Math.floor(pe)!==pe?(we(pe,Z),new ft.ERR_OUT_OF_RANGE("offset","an integer",pe)):U<0?new ft.ERR_BUFFER_OUT_OF_BOUNDS:new ft.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${U}`,pe)}Nt("ERR_BUFFER_OUT_OF_BOUNDS",(function(pe){return pe?`${pe} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),Nt("ERR_INVALID_ARG_TYPE",(function(pe,U){return`The "${pe}" argument must be of type number. Received type ${typeof U}`}),TypeError),Nt("ERR_OUT_OF_RANGE",(function(pe,U,Z){let ne=`The value of "${pe}" is out of range.`,ye=Z;return Number.isInteger(Z)&&Math.abs(Z)>4294967296?ye=Wt(String(Z)):typeof Z=="bigint"&&(ye=String(Z),(Z>BigInt(2)**BigInt(32)||Z<-(BigInt(2)**BigInt(32)))&&(ye=Wt(ye)),ye+="n"),ne+=` It must be ${U}. Received ${ye}`,ne}),RangeError);const mt=/[^+/0-9A-Za-z-_]/g;function ur(pe,U){let Z;U=U||1/0;const ne=pe.length;let ye=null;const Ee=[];for(let Fe=0;Fe55295&&Z<57344){if(!ye){if(Z>56319){(U-=3)>-1&&Ee.push(239,191,189);continue}if(Fe+1===ne){(U-=3)>-1&&Ee.push(239,191,189);continue}ye=Z;continue}if(Z<56320){(U-=3)>-1&&Ee.push(239,191,189),ye=Z;continue}Z=65536+(ye-55296<<10|Z-56320)}else ye&&(U-=3)>-1&&Ee.push(239,191,189);if(ye=null,Z<128){if((U-=1)<0)break;Ee.push(Z)}else if(Z<2048){if((U-=2)<0)break;Ee.push(Z>>6|192,63&Z|128)}else if(Z<65536){if((U-=3)<0)break;Ee.push(Z>>12|224,Z>>6&63|128,63&Z|128)}else{if(!(Z<1114112))throw new Error("Invalid code point");if((U-=4)<0)break;Ee.push(Z>>18|240,Z>>12&63|128,Z>>6&63|128,63&Z|128)}}return Ee}function ar(pe){return h.toByteArray((function(Z){if((Z=(Z=Z.split("=")[0]).trim().replace(mt,"")).length<2)return"";for(;Z.length%4!=0;)Z+="=";return Z})(pe))}function Tt(pe,U,Z,ne){let ye;for(ye=0;ye=U.length||ye>=pe.length);++ye)U[ye+Z]=pe[ye];return ye}function Gt(pe,U){return pe instanceof U||pe!=null&&pe.constructor!=null&&pe.constructor.name!=null&&pe.constructor.name===U.name}function Sr(pe){return pe!=pe}const kt=(function(){const pe="0123456789abcdef",U=new Array(256);for(let Z=0;Z<16;++Z){const ne=16*Z;for(let ye=0;ye<16;++ye)U[ne+ye]=pe[Z]+pe[ye]}return U})();function yt(pe){return typeof BigInt>"u"?Zt:pe}function Zt(){throw new Error("BigInt not supported")}},13144(w,N,s){var h=s(66743),v=s(11002),f=s(10076),y=s(47119);w.exports=y||h.call(f,v)},12205(w,N,s){var h=s(66743),v=s(11002),f=s(13144);w.exports=function(){return f(h,v,arguments)}},11002(w){w.exports=Function.prototype.apply},10076(w){w.exports=Function.prototype.call},73126(w,N,s){var h=s(66743),v=s(69675),f=s(10076),y=s(13144);w.exports=function(g){if(g.length<1||typeof g[0]!="function")throw new v("a function is required");return y(h,f,g)}},47119(w){w.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},10487(w,N,s){var h=s(96897),v=s(30655),f=s(73126),y=s(12205);w.exports=function(g){var S=f(arguments),_=g.length-(arguments.length-1);return h(S,1+(_>0?_:0),!0)},v?v(w.exports,"apply",{value:y}):w.exports.apply=y},36556(w,N,s){var h=s(70453),v=s(73126),f=v([h("%String.prototype.indexOf%")]);w.exports=function(m,g){var S=h(m,!!g);return typeof S=="function"&&f(m,".prototype.")>-1?v([S]):S}},17965(w,N,s){var h=s(16426),v={"text/plain":"Text","text/html":"Url",default:"Text"};w.exports=function(y,m){var g,S,_,T,I,j,M=!1;m||(m={}),g=m.debug||!1;try{if(_=h(),T=document.createRange(),I=document.getSelection(),(j=document.createElement("span")).textContent=y,j.ariaHidden="true",j.style.all="unset",j.style.position="fixed",j.style.top=0,j.style.clip="rect(0, 0, 0, 0)",j.style.whiteSpace="pre",j.style.webkitUserSelect="text",j.style.MozUserSelect="text",j.style.msUserSelect="text",j.style.userSelect="text",j.addEventListener("copy",(function(z){if(z.stopPropagation(),m.format)if(z.preventDefault(),z.clipboardData===void 0){g&&console.warn("unable to use e.clipboardData"),g&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var K=v[m.format]||v.default;window.clipboardData.setData(K,y)}else z.clipboardData.clearData(),z.clipboardData.setData(m.format,y);m.onCopy&&(z.preventDefault(),m.onCopy(z.clipboardData))})),document.body.appendChild(j),T.selectNodeContents(j),I.addRange(T),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");M=!0}catch(z){g&&console.error("unable to copy using execCommand: ",z),g&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(m.format||"text",y),m.onCopy&&m.onCopy(window.clipboardData),M=!0}catch(K){g&&console.error("unable to copy using clipboardData: ",K),g&&console.error("falling back to prompt"),S=(function(B){var X=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return B.replace(/#{\s*key\s*}/g,X)})("message"in m?m.message:"Copy to clipboard: #{key}, Enter"),window.prompt(S,y)}}finally{I&&(typeof I.removeRange=="function"?I.removeRange(T):I.removeAllRanges()),j&&document.body.removeChild(j),_()}return M}},2205(w,N,s){var h;h=s.g!==void 0?s.g:this,w.exports=(function(v){if(v.CSS&&v.CSS.escape)return v.CSS.escape;var f=function(y){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var m,g=String(y),S=g.length,_=-1,T="",I=g.charCodeAt(0);++_=1&&m<=31||m==127||_==0&&m>=48&&m<=57||_==1&&m>=48&&m<=57&&I==45?"\\"+m.toString(16)+" ":_==0&&S==1&&m==45||!(m>=128||m==45||m==95||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122)?"\\"+g.charAt(_):g.charAt(_):T+="�";return T};return v.CSS||(v.CSS={}),v.CSS.escape=f,f})(h)},81919(w,N,s){var h=s(48287).Buffer;function v(S){return S instanceof h||S instanceof Date||S instanceof RegExp}function f(S){if(S instanceof h){var _=h.alloc?h.alloc(S.length):new h(S.length);return S.copy(_),_}if(S instanceof Date)return new Date(S.getTime());if(S instanceof RegExp)return new RegExp(S);throw new Error("Unexpected situation")}function y(S){var _=[];return S.forEach((function(T,I){typeof T=="object"&&T!==null?Array.isArray(T)?_[I]=y(T):v(T)?_[I]=f(T):_[I]=g({},T):_[I]=T})),_}function m(S,_){return _==="__proto__"?void 0:S[_]}var g=w.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var S,_,T=arguments[0];return Array.prototype.slice.call(arguments,1).forEach((function(I){typeof I!="object"||I===null||Array.isArray(I)||Object.keys(I).forEach((function(j){return _=m(T,j),(S=m(I,j))===T?void 0:typeof S!="object"||S===null?void(T[j]=S):Array.isArray(S)?void(T[j]=y(S)):v(S)?void(T[j]=f(S)):typeof _!="object"||_===null||Array.isArray(_)?void(T[j]=g({},S)):void(T[j]=g(_,S))}))})),T}},14744(w){var N=function(T){return(function(j){return!!j&&typeof j=="object"})(T)&&!(function(j){var M=Object.prototype.toString.call(j);return M==="[object RegExp]"||M==="[object Date]"||(function(K){return K.$$typeof===s})(j)})(T)},s=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function h(_,T){return T.clone!==!1&&T.isMergeableObject(_)?g((function(j){return Array.isArray(j)?[]:{}})(_),_,T):_}function v(_,T,I){return _.concat(T).map((function(j){return h(j,I)}))}function f(_){return Object.keys(_).concat((function(I){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(I).filter((function(j){return Object.propertyIsEnumerable.call(I,j)})):[]})(_))}function y(_,T){try{return T in _}catch{return!1}}function m(_,T,I){var j={};return I.isMergeableObject(_)&&f(_).forEach((function(M){j[M]=h(_[M],I)})),f(T).forEach((function(M){(function(K,Y){return y(K,Y)&&!(Object.hasOwnProperty.call(K,Y)&&Object.propertyIsEnumerable.call(K,Y))})(_,M)||(y(_,M)&&I.isMergeableObject(T[M])?j[M]=(function(K,Y){if(!Y.customMerge)return g;var B=Y.customMerge(K);return typeof B=="function"?B:g})(M,I)(_[M],T[M],I):j[M]=h(T[M],I))})),j}function g(_,T,I){(I=I||{}).arrayMerge=I.arrayMerge||v,I.isMergeableObject=I.isMergeableObject||N,I.cloneUnlessOtherwiseSpecified=h;var j=Array.isArray(T);return j===Array.isArray(_)?j?I.arrayMerge(_,T,I):m(_,T,I):h(T,I)}g.all=function(T,I){if(!Array.isArray(T))throw new Error("first argument should be an array");return T.reduce((function(j,M){return g(j,M,I)}),{})};var S=g;w.exports=S},30041(w,N,s){var h=s(30655),v=s(58068),f=s(69675),y=s(75795);w.exports=function(g,S,_){if(!g||typeof g!="object"&&typeof g!="function")throw new f("`obj` must be an object or a function`");if(typeof S!="string"&&typeof S!="symbol")throw new f("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new f("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new f("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new f("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new f("`loose`, if provided, must be a boolean");var T=arguments.length>3?arguments[3]:null,I=arguments.length>4?arguments[4]:null,j=arguments.length>5?arguments[5]:null,M=arguments.length>6&&arguments[6],z=!!y&&y(g,S);if(h)h(g,S,{configurable:j===null&&z?z.configurable:!j,enumerable:T===null&&z?z.enumerable:!T,value:_,writable:I===null&&z?z.writable:!I});else{if(!M&&(T||I||j))throw new v("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");g[S]=_}}},78004(w){class N{constructor(v,f){this.low=v,this.high=f,this.length=1+f-v}overlaps(v){return!(this.highv.high)}touches(v){return!(this.high+1v.high)}add(v){return new N(Math.min(this.low,v.low),Math.max(this.high,v.high))}subtract(v){return v.low<=this.low&&v.high>=this.high?[]:v.low>this.low&&v.highv+f.length),0)}add(v,f){var y=m=>{for(var g=0;g{for(var g=0;g{for(var S=0;S{for(var y=f.low;y<=f.high;)v.push(y),y++;return v}),[])}subranges(){return this.ranges.map((v=>({low:v.low,high:v.high,length:1+v.high-v.low})))}}w.exports=s},7176(w,N,s){var h,v=s(73126),f=s(75795);try{h=[].__proto__===Array.prototype}catch(S){if(!S||typeof S!="object"||!("code"in S)||S.code!=="ERR_PROTO_ACCESS")throw S}var y=!!h&&f&&f(Object.prototype,"__proto__"),m=Object,g=m.getPrototypeOf;w.exports=y&&typeof y.get=="function"?v([y.get]):typeof g=="function"&&function(_){return g(_==null?_:m(_))}},30655(w){var N=Object.defineProperty||!1;if(N)try{N({},"a",{value:1})}catch{N=!1}w.exports=N},41237(w){w.exports=EvalError},69383(w){w.exports=Error},79290(w){w.exports=RangeError},79538(w){w.exports=ReferenceError},58068(w){w.exports=SyntaxError},69675(w){w.exports=TypeError},35345(w){w.exports=URIError},79612(w){w.exports=Object},37007(w){var N,s=typeof Reflect=="object"?Reflect:null,h=s&&typeof s.apply=="function"?s.apply:function(Y,B,X){return Function.prototype.apply.call(Y,B,X)};N=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(Y){return Object.getOwnPropertyNames(Y).concat(Object.getOwnPropertySymbols(Y))}:function(Y){return Object.getOwnPropertyNames(Y)};var v=Number.isNaN||function(Y){return Y!=Y};function f(){f.init.call(this)}w.exports=f,w.exports.once=function(Y,B){return new Promise((function(X,te){function ie(Te){Y.removeListener(B,se),te(Te)}function se(){typeof Y.removeListener=="function"&&Y.removeListener("error",ie),X([].slice.call(arguments))}z(Y,B,se,{once:!0}),B!=="error"&&(function(he,ge,ke){typeof he.on=="function"&&z(he,"error",ge,ke)})(Y,ie,{once:!0})}))},f.EventEmitter=f,f.prototype._events=void 0,f.prototype._eventsCount=0,f.prototype._maxListeners=void 0;var y=10;function m(K){if(typeof K!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof K)}function g(K){return K._maxListeners===void 0?f.defaultMaxListeners:K._maxListeners}function S(K,Y,B,X){var te,ie,se;if(m(B),(ie=K._events)===void 0?(ie=K._events=Object.create(null),K._eventsCount=0):(ie.newListener!==void 0&&(K.emit("newListener",Y,B.listener?B.listener:B),ie=K._events),se=ie[Y]),se===void 0)se=ie[Y]=B,++K._eventsCount;else if(typeof se=="function"?se=ie[Y]=X?[B,se]:[se,B]:X?se.unshift(B):se.push(B),(te=g(K))>0&&se.length>te&&!se.warned){se.warned=!0;var Te=new Error("Possible EventEmitter memory leak detected. "+se.length+" "+String(Y)+" listeners added. Use emitter.setMaxListeners() to increase limit");Te.name="MaxListenersExceededWarning",Te.emitter=K,Te.type=Y,Te.count=se.length,(function(ge){console&&console.warn&&console.warn(ge)})(Te)}return K}function _(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function T(K,Y,B){var X={fired:!1,wrapFn:void 0,target:K,type:Y,listener:B},te=_.bind(X);return te.listener=B,X.wrapFn=te,te}function I(K,Y,B){var X=K._events;if(X===void 0)return[];var te=X[Y];return te===void 0?[]:typeof te=="function"?B?[te.listener||te]:[te]:B?(function(se){for(var Te=new Array(se.length),he=0;he0&&(se=B[0]),se instanceof Error)throw se;var Te=new Error("Unhandled error."+(se?" ("+se.message+")":""));throw Te.context=se,Te}var he=ie[Y];if(he===void 0)return!1;if(typeof he=="function")h(he,this,B);else{var ge=he.length,ke=M(he,ge);for(X=0;X=0;se--)if(X[se]===B||X[se].listener===B){Te=X[se].listener,ie=se;break}if(ie<0)return this;ie===0?X.shift():(function(ge,ke){for(;ke+1=0;te--)this.removeListener(Y,B[te]);return this},f.prototype.listeners=function(Y){return I(this,Y,!0)},f.prototype.rawListeners=function(Y){return I(this,Y,!1)},f.listenerCount=function(K,Y){return typeof K.listenerCount=="function"?K.listenerCount(Y):j.call(K,Y)},f.prototype.listenerCount=j,f.prototype.eventNames=function(){return this._eventsCount>0?N(this._events):[]}},85587(w,N,s){var h=s(26311),v=f(Error);function f(y){return m.displayName=y.displayName||y.name,m;function m(g){return g&&(g=h.apply(null,arguments)),new y(g)}}w.exports=v,v.eval=f(EvalError),v.range=f(RangeError),v.reference=f(ReferenceError),v.syntax=f(SyntaxError),v.type=f(TypeError),v.uri=f(URIError),v.create=f},82682(w,N,s){var h=s(69600),v=Object.prototype.toString,f=Object.prototype.hasOwnProperty;w.exports=function(m,g,S){if(!h(g))throw new TypeError("iterator must be a function");var _;arguments.length>=3&&(_=S),(function(I){return v.call(I)==="[object Array]"})(m)?(function(I,j,M){for(var z=0,K=I.length;z0?parseInt(Y):null};_"u"?h:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?h:ArrayBuffer,"%ArrayIteratorPrototype%":ge&&ke?ke([][Symbol.iterator]()):h,"%AsyncFromSyncIteratorPrototype%":h,"%AsyncFunction%":gt,"%AsyncGenerator%":gt,"%AsyncGeneratorFunction%":gt,"%AsyncIteratorPrototype%":gt,"%Atomics%":typeof Atomics>"u"?h:Atomics,"%BigInt%":typeof BigInt>"u"?h:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?h:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?h:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?h:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":f,"%eval%":eval,"%EvalError%":y,"%Float32Array%":typeof Float32Array>"u"?h:Float32Array,"%Float64Array%":typeof Float64Array>"u"?h:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?h:FinalizationRegistry,"%Function%":X,"%GeneratorFunction%":gt,"%Int8Array%":typeof Int8Array>"u"?h:Int8Array,"%Int16Array%":typeof Int16Array>"u"?h:Int16Array,"%Int32Array%":typeof Int32Array>"u"?h:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ge&&ke?ke(ke([][Symbol.iterator]())):h,"%JSON%":typeof JSON=="object"?JSON:h,"%Map%":typeof Map>"u"?h:Map,"%MapIteratorPrototype%":typeof Map<"u"&&ge&&ke?ke(new Map()[Symbol.iterator]()):h,"%Math%":Math,"%Number%":Number,"%Object%":v,"%Object.getOwnPropertyDescriptor%":ie,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?h:Promise,"%Proxy%":typeof Proxy>"u"?h:Proxy,"%RangeError%":m,"%ReferenceError%":g,"%Reflect%":typeof Reflect>"u"?h:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?h:Set,"%SetIteratorPrototype%":typeof Set<"u"&&ge&&ke?ke(new Set()[Symbol.iterator]()):h,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?h:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ge&&ke?ke(""[Symbol.iterator]()):h,"%Symbol%":ge?Symbol:h,"%SyntaxError%":S,"%ThrowTypeError%":he,"%TypedArray%":Re,"%TypeError%":_,"%Uint8Array%":typeof Uint8Array>"u"?h:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?h:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?h:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?h:Uint32Array,"%URIError%":T,"%WeakMap%":typeof WeakMap>"u"?h:WeakMap,"%WeakRef%":typeof WeakRef>"u"?h:WeakRef,"%WeakSet%":typeof WeakSet>"u"?h:WeakSet,"%Function.prototype.call%":nt,"%Function.prototype.apply%":qe,"%Object.defineProperty%":se,"%Object.getPrototypeOf%":Ve,"%Math.abs%":I,"%Math.floor%":j,"%Math.max%":M,"%Math.min%":z,"%Math.pow%":K,"%Math.round%":Y,"%Math.sign%":B,"%Reflect.getPrototypeOf%":He};if(ke)try{null.error}catch(ar){var at=ke(ke(ar));u["%Error.prototype%"]=at}var Xe=function ar(Tt){var Gt;if(Tt==="%AsyncFunction%")Gt=te("async function () {}");else if(Tt==="%GeneratorFunction%")Gt=te("function* () {}");else if(Tt==="%AsyncGeneratorFunction%")Gt=te("async function* () {}");else if(Tt==="%AsyncGenerator%"){var Sr=ar("%AsyncGeneratorFunction%");Sr&&(Gt=Sr.prototype)}else if(Tt==="%AsyncIteratorPrototype%"){var kt=ar("%AsyncGenerator%");kt&&ke&&(Gt=ke(kt.prototype))}return u[Tt]=Gt,Gt},Se={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},De=s(66743),Ke=s(9957),ft=De.call(nt,Array.prototype.concat),Nt=De.call(qe,Array.prototype.splice),Wt=De.call(nt,String.prototype.replace),H=De.call(nt,String.prototype.slice),we=De.call(nt,RegExp.prototype.exec),ct=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mt=/\\(\\)?/g,ur=function(Tt,Gt){var Sr,kt=Tt;if(Ke(Se,kt)&&(kt="%"+(Sr=Se[kt])[0]+"%"),Ke(u,kt)){var yt=u[kt];if(yt===gt&&(yt=Xe(kt)),yt===void 0&&!Gt)throw new _("intrinsic "+Tt+" exists, but is not available. Please file an issue!");return{alias:Sr,name:kt,value:yt}}throw new S("intrinsic "+Tt+" does not exist!")};w.exports=function(Tt,Gt){if(typeof Tt!="string"||Tt.length===0)throw new _("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Gt!="boolean")throw new _('"allowMissing" argument must be a boolean');if(we(/^%?[^%]*%?$/,Tt)===null)throw new S("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Sr=(function($t){var Pt=H($t,0,1),rn=H($t,-1);if(Pt==="%"&&rn!=="%")throw new S("invalid intrinsic syntax, expected closing `%`");if(rn==="%"&&Pt!=="%")throw new S("invalid intrinsic syntax, expected opening `%`");var kr=[];return Wt($t,ct,(function(An,Wr,Jn,Ea){kr[kr.length]=Jn?Wt(Ea,mt,"$1"):Wr||An})),kr})(Tt),kt=Sr.length>0?Sr[0]:"",yt=ur("%"+kt+"%",Gt),Zt=yt.name,pe=yt.value,U=!1,Z=yt.alias;Z&&(kt=Z[0],Nt(Sr,ft([0,1],Z)));for(var ne=1,ye=!0;ne=Sr.length){var Bt=ie(pe,Ee);pe=(ye=!!Bt)&&"get"in Bt&&!("originalValue"in Bt.get)?Bt.get:pe[Ee]}else ye=Ke(pe,Ee),pe=pe[Ee];ye&&!U&&(u[Zt]=pe)}}return pe}},71064(w,N,s){var h=s(79612);w.exports=h.getPrototypeOf||null},48648(w){w.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},93628(w,N,s){var h=s(48648),v=s(71064),f=s(7176);w.exports=h?function(m){return h(m)}:v?function(m){if(!m||typeof m!="object"&&typeof m!="function")throw new TypeError("getProto: not an object");return v(m)}:f?function(m){return f(m)}:null},6549(w){w.exports=Object.getOwnPropertyDescriptor},75795(w,N,s){var h=s(6549);if(h)try{h([],"length")}catch{h=null}w.exports=h},30592(w,N,s){var h=s(30655),v=function(){return!!h};v.hasArrayLengthDefineBug=function(){if(!h)return null;try{return h([],"length",{value:1}).length!==1}catch{return!0}},w.exports=v},64039(w,N,s){var h=typeof Symbol<"u"&&Symbol,v=s(41333);w.exports=function(){return typeof h=="function"&&typeof Symbol=="function"&&typeof h("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&v()}},41333(w){w.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},h=Symbol("test"),v=Object(h);if(typeof h=="string"||Object.prototype.toString.call(h)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;for(var f in s[h]=42,s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var y=Object.getOwnPropertySymbols(s);if(y.length!==1||y[0]!==h||!Object.prototype.propertyIsEnumerable.call(s,h))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var m=Object.getOwnPropertyDescriptor(s,h);if(m.value!==42||m.enumerable!==!0)return!1}return!0}},49092(w,N,s){var h=s(41333);w.exports=function(){return h()&&!!Symbol.toStringTag}},9957(w,N,s){var h=Function.prototype.call,v=Object.prototype.hasOwnProperty,f=s(66743);w.exports=f.call(h,v)},45981(w){function N(ne){return ne instanceof Map?ne.clear=ne.delete=ne.set=function(){throw new Error("map is read-only")}:ne instanceof Set&&(ne.add=ne.clear=ne.delete=function(){throw new Error("set is read-only")}),Object.freeze(ne),Object.getOwnPropertyNames(ne).forEach((function(ye){var Ee=ne[ye];typeof Ee!="object"||Object.isFrozen(Ee)||N(Ee)})),ne}var s=N,h=N;s.default=h;class v{constructor(ye){ye.data===void 0&&(ye.data={}),this.data=ye.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function f(ne){return ne.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function y(ne,...ye){const Ee=Object.create(null);for(const Fe in ne)Ee[Fe]=ne[Fe];return ye.forEach((function(Fe){for(const St in Fe)Ee[St]=Fe[St]})),Ee}const m=ne=>!!ne.kind;class g{constructor(ye,Ee){this.buffer="",this.classPrefix=Ee.classPrefix,ye.walk(this)}addText(ye){this.buffer+=f(ye)}openNode(ye){if(!m(ye))return;let Ee=ye.kind;ye.sublanguage||(Ee=`${this.classPrefix}${Ee}`),this.span(Ee)}closeNode(ye){m(ye)&&(this.buffer+="
    ")}value(){return this.buffer}span(ye){this.buffer+=``}}class S{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ye){this.top.children.push(ye)}openNode(ye){const Ee={kind:ye,children:[]};this.add(Ee),this.stack.push(Ee)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ye){return this.constructor._walk(ye,this.rootNode)}static _walk(ye,Ee){return typeof Ee=="string"?ye.addText(Ee):Ee.children&&(ye.openNode(Ee),Ee.children.forEach((Fe=>this._walk(ye,Fe))),ye.closeNode(Ee)),ye}static _collapse(ye){typeof ye!="string"&&ye.children&&(ye.children.every((Ee=>typeof Ee=="string"))?ye.children=[ye.children.join("")]:ye.children.forEach((Ee=>{S._collapse(Ee)})))}}class _ extends S{constructor(ye){super(),this.options=ye}addKeyword(ye,Ee){ye!==""&&(this.openNode(Ee),this.addText(ye),this.closeNode())}addText(ye){ye!==""&&this.add(ye)}addSublanguage(ye,Ee){const Fe=ye.root;Fe.kind=Ee,Fe.sublanguage=!0,this.add(Fe)}toHTML(){return new g(this,this.options).value()}finalize(){return!0}}function T(ne){return ne?typeof ne=="string"?ne:ne.source:null}const I=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,j="[a-zA-Z]\\w*",M="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",K="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Y="\\b(0b[01]+)",B={begin:"\\\\[\\s\\S]",relevance:0},X={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[B]},te={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[B]},ie={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},se=function(ne,ye,Ee={}){const Fe=y({className:"comment",begin:ne,end:ye,contains:[]},Ee);return Fe.contains.push(ie),Fe.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),Fe},Te=se("//","$"),he=se("/\\*","\\*/"),ge=se("#","$"),ke={className:"number",begin:z,relevance:0},Ve={className:"number",begin:K,relevance:0},He={className:"number",begin:Y,relevance:0},qe={className:"number",begin:z+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},nt={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[B,{begin:/\[/,end:/\]/,relevance:0,contains:[B]}]}]},gt={className:"title",begin:j,relevance:0},Re={className:"title",begin:M,relevance:0},u={begin:"\\.\\s*"+M,relevance:0};var at=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:j,UNDERSCORE_IDENT_RE:M,NUMBER_RE:z,C_NUMBER_RE:K,BINARY_NUMBER_RE:Y,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(ne={})=>{const ye=/^#![ ]*\//;return ne.binary&&(ne.begin=(function(...Fe){return Fe.map((St=>T(St))).join("")})(ye,/.*\b/,ne.binary,/\b.*/)),y({className:"meta",begin:ye,end:/$/,relevance:0,"on:begin":(Ee,Fe)=>{Ee.index!==0&&Fe.ignoreMatch()}},ne)},BACKSLASH_ESCAPE:B,APOS_STRING_MODE:X,QUOTE_STRING_MODE:te,PHRASAL_WORDS_MODE:ie,COMMENT:se,C_LINE_COMMENT_MODE:Te,C_BLOCK_COMMENT_MODE:he,HASH_COMMENT_MODE:ge,NUMBER_MODE:ke,C_NUMBER_MODE:Ve,BINARY_NUMBER_MODE:He,CSS_NUMBER_MODE:qe,REGEXP_MODE:nt,TITLE_MODE:gt,UNDERSCORE_TITLE_MODE:Re,METHOD_GUARD:u,END_SAME_AS_BEGIN:function(ne){return Object.assign(ne,{"on:begin":(ye,Ee)=>{Ee.data._beginMatch=ye[1]},"on:end":(ye,Ee)=>{Ee.data._beginMatch!==ye[1]&&Ee.ignoreMatch()}})}});function Xe(ne,ye){ne.input[ne.index-1]==="."&&ye.ignoreMatch()}function Se(ne,ye){ye&&ne.beginKeywords&&(ne.begin="\\b("+ne.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ne.__beforeBegin=Xe,ne.keywords=ne.keywords||ne.beginKeywords,delete ne.beginKeywords,ne.relevance===void 0&&(ne.relevance=0))}function De(ne,ye){Array.isArray(ne.illegal)&&(ne.illegal=(function(...Fe){return"("+Fe.map((St=>T(St))).join("|")+")"})(...ne.illegal))}function Ke(ne,ye){if(ne.match){if(ne.begin||ne.end)throw new Error("begin & end are not supported with match");ne.begin=ne.match,delete ne.match}}function ft(ne,ye){ne.relevance===void 0&&(ne.relevance=1)}const Nt=["of","and","for","in","not","or","if","then","parent","list","value"];function Wt(ne,ye,Ee="keyword"){const Fe={};return typeof ne=="string"?St(Ee,ne.split(" ")):Array.isArray(ne)?St(Ee,ne):Object.keys(ne).forEach((function(Bt){Object.assign(Fe,Wt(ne[Bt],ye,Bt))})),Fe;function St(Bt,Qe){ye&&(Qe=Qe.map(($t=>$t.toLowerCase()))),Qe.forEach((function($t){const Pt=$t.split("|");Fe[Pt[0]]=[Bt,H(Pt[0],Pt[1])]}))}}function H(ne,ye){return ye?Number(ye):(function(Fe){return Nt.includes(Fe.toLowerCase())})(ne)?0:1}function we(ne,{plugins:ye}){function Ee(Bt,Qe){return new RegExp(T(Bt),"m"+(ne.case_insensitive?"i":"")+(Qe?"g":""))}class Fe{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Qe,$t){$t.position=this.position++,this.matchIndexes[this.matchAt]=$t,this.regexes.push([$t,Qe]),this.matchAt+=(function(rn){return new RegExp(rn.toString()+"|").exec("").length-1})(Qe)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Qe=this.regexes.map(($t=>$t[1]));this.matcherRe=Ee((function(Pt,rn="|"){let kr=0;return Pt.map((An=>{kr+=1;const Wr=kr;let Jn=T(An),Ea="";for(;Jn.length>0;){const Zn=I.exec(Jn);if(!Zn){Ea+=Jn;break}Ea+=Jn.substring(0,Zn.index),Jn=Jn.substring(Zn.index+Zn[0].length),Zn[0][0]==="\\"&&Zn[1]?Ea+="\\"+String(Number(Zn[1])+Wr):(Ea+=Zn[0],Zn[0]==="("&&kr++)}return Ea})).map((An=>`(${An})`)).join(rn)})(Qe),!0),this.lastIndex=0}exec(Qe){this.matcherRe.lastIndex=this.lastIndex;const $t=this.matcherRe.exec(Qe);if(!$t)return null;const Pt=$t.findIndex(((kr,An)=>An>0&&kr!==void 0)),rn=this.matchIndexes[Pt];return $t.splice(0,Pt),Object.assign($t,rn)}}class St{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Qe){if(this.multiRegexes[Qe])return this.multiRegexes[Qe];const $t=new Fe;return this.rules.slice(Qe).forEach((([Pt,rn])=>$t.addRule(Pt,rn))),$t.compile(),this.multiRegexes[Qe]=$t,$t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Qe,$t){this.rules.push([Qe,$t]),$t.type==="begin"&&this.count++}exec(Qe){const $t=this.getMatcher(this.regexIndex);$t.lastIndex=this.lastIndex;let Pt=$t.exec(Qe);if(this.resumingScanAtSamePosition()&&!(Pt&&Pt.index===this.lastIndex)){const rn=this.getMatcher(0);rn.lastIndex=this.lastIndex+1,Pt=rn.exec(Qe)}return Pt&&(this.regexIndex+=Pt.position+1,this.regexIndex===this.count&&this.considerAll()),Pt}}if(ne.compilerExtensions||(ne.compilerExtensions=[]),ne.contains&&ne.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return ne.classNameAliases=y(ne.classNameAliases||{}),(function Bt(Qe,$t){const Pt=Qe;if(Qe.isCompiled)return Pt;[Ke].forEach((kr=>kr(Qe,$t))),ne.compilerExtensions.forEach((kr=>kr(Qe,$t))),Qe.__beforeBegin=null,[Se,De,ft].forEach((kr=>kr(Qe,$t))),Qe.isCompiled=!0;let rn=null;if(typeof Qe.keywords=="object"&&(rn=Qe.keywords.$pattern,delete Qe.keywords.$pattern),Qe.keywords&&(Qe.keywords=Wt(Qe.keywords,ne.case_insensitive)),Qe.lexemes&&rn)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return rn=rn||Qe.lexemes||/\w+/,Pt.keywordPatternRe=Ee(rn,!0),$t&&(Qe.begin||(Qe.begin=/\B|\b/),Pt.beginRe=Ee(Qe.begin),Qe.endSameAsBegin&&(Qe.end=Qe.begin),Qe.end||Qe.endsWithParent||(Qe.end=/\B|\b/),Qe.end&&(Pt.endRe=Ee(Qe.end)),Pt.terminatorEnd=T(Qe.end)||"",Qe.endsWithParent&&$t.terminatorEnd&&(Pt.terminatorEnd+=(Qe.end?"|":"")+$t.terminatorEnd)),Qe.illegal&&(Pt.illegalRe=Ee(Qe.illegal)),Qe.contains||(Qe.contains=[]),Qe.contains=[].concat(...Qe.contains.map((function(kr){return(function(Wr){return Wr.variants&&!Wr.cachedVariants&&(Wr.cachedVariants=Wr.variants.map((function(Jn){return y(Wr,{variants:null},Jn)}))),Wr.cachedVariants?Wr.cachedVariants:ct(Wr)?y(Wr,{starts:Wr.starts?y(Wr.starts):null}):Object.isFrozen(Wr)?y(Wr):Wr})(kr==="self"?Qe:kr)}))),Qe.contains.forEach((function(kr){Bt(kr,Pt)})),Qe.starts&&Bt(Qe.starts,$t),Pt.matcher=(function(An){const Wr=new St;return An.contains.forEach((Jn=>Wr.addRule(Jn.begin,{rule:Jn,type:"begin"}))),An.terminatorEnd&&Wr.addRule(An.terminatorEnd,{type:"end"}),An.illegal&&Wr.addRule(An.illegal,{type:"illegal"}),Wr})(Pt),Pt})(ne)}function ct(ne){return!!ne&&(ne.endsWithParent||ct(ne.starts))}function mt(ne){const ye={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!ne.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,f(this.code);let Ee={};return this.autoDetect?(Ee=ne.highlightAuto(this.code),this.detectedLanguage=Ee.language):(Ee=ne.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),Ee.value},autoDetect(){return!this.language||(function(Fe){return!!(Fe||Fe==="")})(this.autodetect)},ignoreIllegals:()=>!0},render(Ee){return Ee("pre",{},[Ee("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:ye,VuePlugin:{install(Ee){Ee.component("highlightjs",ye)}}}}const ur={"after:highlightElement":({el:ne,result:ye,text:Ee})=>{const Fe=Tt(ne);if(!Fe.length)return;const St=document.createElement("div");St.innerHTML=ye.value,ye.value=(function(Qe,$t,Pt){let rn=0,kr="";const An=[];function Wr(){return Qe.length&&$t.length?Qe[0].offset!==$t[0].offset?Qe[0].offset<$t[0].offset?Qe:$t:$t[0].event==="start"?Qe:$t:Qe.length?Qe:$t}function Jn(un){function ti(Oo){return" "+Oo.nodeName+'="'+f(Oo.value)+'"'}kr+="<"+ar(un)+[].map.call(un.attributes,ti).join("")+">"}function Ea(un){kr+=""}function Zn(un){(un.event==="start"?Jn:Ea)(un.node)}for(;Qe.length||$t.length;){let un=Wr();if(kr+=f(Pt.substring(rn,un[0].offset)),rn=un[0].offset,un===Qe){An.reverse().forEach(Ea);do Zn(un.splice(0,1)[0]),un=Wr();while(un===Qe&&un.length&&un[0].offset===rn);An.reverse().forEach(Jn)}else un[0].event==="start"?An.push(un[0].node):An.pop(),Zn(un.splice(0,1)[0])}return kr+f(Pt.substr(rn))})(Fe,Tt(St),Ee)}};function ar(ne){return ne.nodeName.toLowerCase()}function Tt(ne){const ye=[];return(function Ee(Fe,St){for(let Bt=Fe.firstChild;Bt;Bt=Bt.nextSibling)Bt.nodeType===3?St+=Bt.nodeValue.length:Bt.nodeType===1&&(ye.push({event:"start",offset:St,node:Bt}),St=Ee(Bt,St),ar(Bt).match(/br|hr|img|input/)||ye.push({event:"stop",offset:St,node:Bt}));return St})(ne,0),ye}const Gt={},Sr=ne=>{console.error(ne)},kt=(ne,...ye)=>{console.log(`WARN: ${ne}`,...ye)},yt=(ne,ye)=>{Gt[`${ne}/${ye}`]||(console.log(`Deprecated as of ${ne}. ${ye}`),Gt[`${ne}/${ye}`]=!0)},Zt=f,pe=y,U=Symbol("nomatch");var Z=(function(ne){const ye=Object.create(null),Ee=Object.create(null),Fe=[];let St=!0;const Bt=/(^(<[^>]+>|\t|)+|\n)/gm,Qe="Could not find the language '{}', did you forget to load/include a language module?",$t={disableAutodetect:!0,name:"Plain text",contains:[]};let Pt={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:_};function rn(sr){return Pt.noHighlightRe.test(sr)}function kr(sr,br,tn,Cr){let Mr="",Nn="";typeof br=="object"?(Mr=sr,tn=br.ignoreIllegals,Nn=br.language,Cr=void 0):(yt("10.7.0","highlight(lang, code, ...args) has been deprecated."),yt("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),Nn=sr,Mr=br);const nn={code:Mr,language:Nn};ds("before:highlight",nn);const fn=nn.result?nn.result:An(nn.language,nn.code,tn,Cr);return fn.code=nn.code,ds("after:highlight",fn),fn}function An(sr,br,tn,Cr){function Mr(Yt,gr){const mr=ea.case_insensitive?gr[0].toLowerCase():gr[0];return Object.prototype.hasOwnProperty.call(Yt.keywords,mr)&&Yt.keywords[mr]}function Nn(){Rr.subLanguage!=null?(function(){if(xn==="")return;let gr=null;if(typeof Rr.subLanguage=="string"){if(!ye[Rr.subLanguage])return void Nr.addText(xn);gr=An(Rr.subLanguage,xn,!0,ko[Rr.subLanguage]),ko[Rr.subLanguage]=gr.top}else gr=Wr(xn,Rr.subLanguage.length?Rr.subLanguage:null);Rr.relevance>0&&(fi+=gr.relevance),Nr.addSublanguage(gr.emitter,gr.language)})():(function(){if(!Rr.keywords)return void Nr.addText(xn);let gr=0;Rr.keywordPatternRe.lastIndex=0;let mr=Rr.keywordPatternRe.exec(xn),Vr="";for(;mr;){Vr+=xn.substring(gr,mr.index);const Gr=Mr(Rr,mr);if(Gr){const[sa,Sa]=Gr;if(Nr.addText(Vr),Vr="",fi+=Sa,sa.startsWith("_"))Vr+=mr[0];else{const Ja=ea.classNameAliases[sa]||sa;Nr.addKeyword(mr[0],Ja)}}else Vr+=mr[0];gr=Rr.keywordPatternRe.lastIndex,mr=Rr.keywordPatternRe.exec(xn)}Vr+=xn.substr(gr),Nr.addText(Vr)})(),xn=""}function nn(Yt){return Yt.className&&Nr.openNode(ea.classNameAliases[Yt.className]||Yt.className),Rr=Object.create(Yt,{parent:{value:Rr}}),Rr}function fn(Yt,gr,mr){let Vr=(function(sa,Sa){const Ja=sa&&sa.exec(Sa);return Ja&&Ja.index===0})(Yt.endRe,mr);if(Vr){if(Yt["on:end"]){const Gr=new v(Yt);Yt["on:end"](gr,Gr),Gr.isMatchIgnored&&(Vr=!1)}if(Vr){for(;Yt.endsParent&&Yt.parent;)Yt=Yt.parent;return Yt}}if(Yt.endsWithParent)return fn(Yt.parent,gr,mr)}function Ln(Yt){return Rr.matcher.regexIndex===0?(xn+=Yt[0],1):(ms=!0,0)}function Hr(Yt){const gr=Yt[0],mr=Yt.rule,Vr=new v(mr),Gr=[mr.__beforeBegin,mr["on:begin"]];for(const sa of Gr)if(sa&&(sa(Yt,Vr),Vr.isMatchIgnored))return Ln(gr);return mr&&mr.endSameAsBegin&&(mr.endRe=(function(Sa){return new RegExp(Sa.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")})(gr)),mr.skip?xn+=gr:(mr.excludeBegin&&(xn+=gr),Nn(),mr.returnBegin||mr.excludeBegin||(xn=gr)),nn(mr),mr.returnBegin?0:gr.length}function ia(Yt){const gr=Yt[0],mr=br.substr(Yt.index),Vr=fn(Rr,Yt,mr);if(!Vr)return U;const Gr=Rr;Gr.skip?xn+=gr:(Gr.returnEnd||Gr.excludeEnd||(xn+=gr),Nn(),Gr.excludeEnd&&(xn=gr));do Rr.className&&Nr.closeNode(),Rr.skip||Rr.subLanguage||(fi+=Rr.relevance),Rr=Rr.parent;while(Rr!==Vr.parent);return Vr.starts&&(Vr.endSameAsBegin&&(Vr.starts.endRe=Vr.endRe),nn(Vr.starts)),Gr.returnEnd?0:gr.length}let za={};function fs(Yt,gr){const mr=gr&&gr[0];if(xn+=Yt,mr==null)return Nn(),0;if(za.type==="begin"&&gr.type==="end"&&za.index===gr.index&&mr===""){if(xn+=br.slice(gr.index,gr.index+1),!St){const Vr=new Error("0 width match regex");throw Vr.languageName=sr,Vr.badRule=za.rule,Vr}return 1}if(za=gr,gr.type==="begin")return Hr(gr);if(gr.type==="illegal"&&!tn){const Vr=new Error('Illegal lexeme "'+mr+'" for mode "'+(Rr.className||"")+'"');throw Vr.mode=Rr,Vr}if(gr.type==="end"){const Vr=ia(gr);if(Vr!==U)return Vr}if(gr.type==="illegal"&&mr==="")return 1;if(Jo>1e5&&Jo>3*gr.index)throw new Error("potential infinite loop, way more iterations than matches");return xn+=mr,mr.length}const ea=Fn(sr);if(!ea)throw Sr(Qe.replace("{}",sr)),new Error('Unknown language: "'+sr+'"');const di=we(ea,{plugins:Fe});let Va="",Rr=Cr||di;const ko={},Nr=new Pt.__emitter(Pt);(function(){const gr=[];for(let mr=Rr;mr!==ea;mr=mr.parent)mr.className&&gr.unshift(mr.className);gr.forEach((mr=>Nr.openNode(mr)))})();let xn="",fi=0,ta=0,Jo=0,ms=!1;try{for(Rr.matcher.considerAll();;){Jo++,ms?ms=!1:Rr.matcher.considerAll(),Rr.matcher.lastIndex=ta;const Yt=Rr.matcher.exec(br);if(!Yt)break;const gr=fs(br.substring(ta,Yt.index),Yt);ta=Yt.index+gr}return fs(br.substr(ta)),Nr.closeAllNodes(),Nr.finalize(),Va=Nr.toHTML(),{relevance:Math.floor(fi),value:Va,language:sr,illegal:!1,emitter:Nr,top:Rr}}catch(Yt){if(Yt.message&&Yt.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:Yt.message,context:br.slice(ta-100,ta+100),mode:Yt.mode},sofar:Va,relevance:0,value:Zt(br),emitter:Nr};if(St)return{illegal:!1,relevance:0,value:Zt(br),emitter:Nr,language:sr,top:Rr,errorRaised:Yt};throw Yt}}function Wr(sr,br){br=br||Pt.languages||Object.keys(ye);const tn=(function(Hr){const ia={relevance:0,emitter:new Pt.__emitter(Pt),value:Zt(Hr),illegal:!1,top:$t};return ia.emitter.addText(Hr),ia})(sr),Cr=br.filter(Fn).filter(Vo).map((Ln=>An(Ln,sr,!1)));Cr.unshift(tn);const Mr=Cr.sort(((Ln,Hr)=>{if(Ln.relevance!==Hr.relevance)return Hr.relevance-Ln.relevance;if(Ln.language&&Hr.language){if(Fn(Ln.language).supersetOf===Hr.language)return 1;if(Fn(Hr.language).supersetOf===Ln.language)return-1}return 0})),[Nn,nn]=Mr,fn=Nn;return fn.second_best=nn,fn}const Jn={"before:highlightElement":({el:sr})=>{Pt.useBR&&(sr.innerHTML=sr.innerHTML.replace(/\n/g,"").replace(//g,` +`))},"after:highlightElement":({result:sr})=>{Pt.useBR&&(sr.value=sr.value.replace(/\n/g,"
    "))}},Ea=/^(<[^>]+>|\t)+/gm,Zn={"after:highlightElement":({result:sr})=>{Pt.tabReplace&&(sr.value=sr.value.replace(Ea,(br=>br.replace(/\t/g,Pt.tabReplace))))}};function un(sr){let br=null;const tn=(function(nn){let fn=nn.className+" ";fn+=nn.parentNode?nn.parentNode.className:"";const Ln=Pt.languageDetectRe.exec(fn);if(Ln){const Hr=Fn(Ln[1]);return Hr||(kt(Qe.replace("{}",Ln[1])),kt("Falling back to no-highlight mode for this block.",nn)),Hr?Ln[1]:"no-highlight"}return fn.split(/\s+/).find((Hr=>rn(Hr)||Fn(Hr)))})(sr);if(rn(tn))return;ds("before:highlightElement",{el:sr,language:tn}),br=sr;const Cr=br.textContent,Mr=tn?kr(Cr,{language:tn,ignoreIllegals:!0}):Wr(Cr);ds("after:highlightElement",{el:sr,result:Mr,text:Cr}),sr.innerHTML=Mr.value,(function(nn,fn,Ln){const Hr=fn?Ee[fn]:Ln;nn.classList.add("hljs"),Hr&&nn.classList.add(Hr)})(sr,tn,Mr.language),sr.result={language:Mr.language,re:Mr.relevance,relavance:Mr.relevance},Mr.second_best&&(sr.second_best={language:Mr.second_best.language,re:Mr.second_best.relevance,relavance:Mr.second_best.relevance})}const ti=()=>{ti.called||(ti.called=!0,yt("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(un))};let Oo=!1;function Li(){if(document.readyState==="loading")return void(Oo=!0);document.querySelectorAll("pre code").forEach(un)}function Fn(sr){return sr=(sr||"").toLowerCase(),ye[sr]||ye[Ee[sr]]}function zo(sr,{languageName:br}){typeof sr=="string"&&(sr=[sr]),sr.forEach((tn=>{Ee[tn.toLowerCase()]=br}))}function Vo(sr){const br=Fn(sr);return br&&!br.disableAutodetect}function ds(sr,br){const tn=sr;Fe.forEach((function(Cr){Cr[tn]&&Cr[tn](br)}))}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){Oo&&Li()}),!1),Object.assign(ne,{highlight:kr,highlightAuto:Wr,highlightAll:Li,fixMarkup:function(br){return yt("10.2.0","fixMarkup will be removed entirely in v11.0"),yt("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),(function(Cr){return Pt.tabReplace||Pt.useBR?Cr.replace(Bt,(Mr=>Mr===` +`?Pt.useBR?"
    ":Mr:Pt.tabReplace?Mr.replace(/\t/g,Pt.tabReplace):Mr)):Cr})(br)},highlightElement:un,highlightBlock:function(br){return yt("10.7.0","highlightBlock will be removed entirely in v12.0"),yt("10.7.0","Please use highlightElement now."),un(br)},configure:function(br){br.useBR&&(yt("10.3.0","'useBR' will be removed entirely in v11.0"),yt("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Pt=pe(Pt,br)},initHighlighting:ti,initHighlightingOnLoad:function(){yt("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),Oo=!0},registerLanguage:function(br,tn){let Cr=null;try{Cr=tn(ne)}catch(Mr){if(Sr("Language definition for '{}' could not be registered.".replace("{}",br)),!St)throw Mr;Sr(Mr),Cr=$t}Cr.name||(Cr.name=br),ye[br]=Cr,Cr.rawDefinition=tn.bind(null,ne),Cr.aliases&&zo(Cr.aliases,{languageName:br})},unregisterLanguage:function(br){delete ye[br];for(const tn of Object.keys(Ee))Ee[tn]===br&&delete Ee[tn]},listLanguages:function(){return Object.keys(ye)},getLanguage:Fn,registerAliases:zo,requireLanguage:function(br){yt("10.4.0","requireLanguage will be removed entirely in v11."),yt("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const tn=Fn(br);if(tn)return tn;throw new Error("The '{}' language is required, but not loaded.".replace("{}",br))},autoDetection:Vo,inherit:pe,addPlugin:function(br){(function(Cr){Cr["before:highlightBlock"]&&!Cr["before:highlightElement"]&&(Cr["before:highlightElement"]=Mr=>{Cr["before:highlightBlock"](Object.assign({block:Mr.el},Mr))}),Cr["after:highlightBlock"]&&!Cr["after:highlightElement"]&&(Cr["after:highlightElement"]=Mr=>{Cr["after:highlightBlock"](Object.assign({block:Mr.el},Mr))})})(br),Fe.push(br)},vuePlugin:mt(ne).VuePlugin}),ne.debugMode=function(){St=!1},ne.safeMode=function(){St=!0},ne.versionString="10.7.3";for(const sr in at)typeof at[sr]=="object"&&s(at[sr]);return Object.assign(ne,at),ne.addPlugin(Jn),ne.addPlugin(ur),ne.addPlugin(Zn),ne})({});w.exports=Z},35344(w){function N(...s){return s.map((h=>(function(f){return f?typeof f=="string"?f:f.source:null})(h))).join("")}w.exports=function(h){const v={},f={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[v]}]};Object.assign(v,{className:"variable",variants:[{begin:N(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},f]});const y={className:"subst",begin:/\$\(/,end:/\)/,contains:[h.BACKSLASH_ESCAPE]},m={begin:/<<-?\s*(?=\w+)/,starts:{contains:[h.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[h.BACKSLASH_ESCAPE,v,y]};y.contains.push(g);const S={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},h.NUMBER_MODE,v]},_=h.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),T={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[h.inherit(h.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[_,h.SHEBANG(),T,S,h.HASH_COMMENT_MODE,m,g,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},v]}}},73402(w){function N(...s){return s.map((h=>(function(f){return f?typeof f=="string"?f:f.source:null})(h))).join("")}w.exports=function(h){const v="HTTP/(2|1\\.[01])",f={className:"attribute",begin:N("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},y=[f,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+v+" \\d{3})",end:/$/,contains:[{className:"meta",begin:v},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:y}},{begin:"(?=^[A-Z]+ (.*?) "+v+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:v},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:y}},h.inherit(f,{relevance:0})]}}},95089(w){const N="[A-Za-z$_][0-9A-Za-z$_]*",s=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],h=["true","false","null","undefined","NaN","Infinity"],v=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function f(m){return y("(?=",m,")")}function y(...m){return m.map((g=>(function(_){return _?typeof _=="string"?_:_.source:null})(g))).join("")}w.exports=function(g){const S=N,_="<>",T="",I={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Ve,He)=>{const qe=Ve[0].length+Ve.index,nt=Ve.input[qe];nt!=="<"?nt===">"&&(((gt,{after:Re})=>{const u="",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:g.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:j,contains:ge}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:_,end:T},{begin:I.begin,"on:begin":I.isTrulyOpeningTag,end:I.end}],subLanguage:"xml",contains:[{begin:I.begin,end:I.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:j,contains:["self",g.inherit(g.TITLE_MODE,{begin:S}),ke],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:g.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[ke,g.inherit(g.TITLE_MODE,{begin:S})]},{variants:[{begin:"\\."+S},{begin:"\\$"+S}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},g.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[g.inherit(g.TITLE_MODE,{begin:S}),"self",ke]},{begin:"(get|set)\\s+(?="+S+"\\()",end:/\{/,keywords:"get set",contains:[g.inherit(g.TITLE_MODE,{begin:S}),{begin:/\(\)/},ke]},{begin:/\$[(.]/}]}}},65772(w){w.exports=function(s){const h={literal:"true false null"},v=[s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE],f=[s.QUOTE_STRING_MODE,s.C_NUMBER_MODE],y={end:",",endsWithParent:!0,excludeEnd:!0,contains:f,keywords:h},m={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[s.BACKSLASH_ESCAPE],illegal:"\\n"},s.inherit(y,{begin:/:/})].concat(v),illegal:"\\S"},g={begin:"\\[",end:"\\]",contains:[s.inherit(y)],illegal:"\\S"};return f.push(m,g),v.forEach((function(S){f.push(S)})),{name:"JSON",contains:f,keywords:h,illegal:"\\S"}}},26571(w){w.exports=function(s){const h={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},v={begin:"`[\\s\\S]",relevance:0},f={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},y={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[v,f,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},m={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},g=s.inherit(s.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),S={className:"built_in",variants:[{begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+")}]},_={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[s.TITLE_MODE]},T={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[f]}]},I={begin:/using\s/,end:/$/,returnBegin:!0,contains:[y,m,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},j={variants:[{className:"operator",begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},M={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(h.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},s.inherit(s.TITLE_MODE,{endsParent:!0})]},z=[M,g,v,s.NUMBER_MODE,y,m,S,f,{className:"literal",begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0}],K={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",z,{begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return M.contains.unshift(K),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:h,contains:z.concat(_,T,I,j,K)}}},17285(w){function N(f){return f?typeof f=="string"?f:f.source:null}function s(f){return h("(?=",f,")")}function h(...f){return f.map((y=>N(y))).join("")}function v(...f){return"("+f.map((y=>N(y))).join("|")+")"}w.exports=function(y){const m=h(/[A-Z_]/,(function(z){return h("(",z,")?")})(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),g={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},S={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},_=y.inherit(S,{begin:/\(/,end:/\)/}),T=y.inherit(y.APOS_STRING_MODE,{className:"meta-string"}),I=y.inherit(y.QUOTE_STRING_MODE,{className:"meta-string"}),j={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[S,I,T,_,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[S,_,I,T]}]}]},y.COMMENT(//,{relevance:10}),{begin://,relevance:10},g,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[j],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[j],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:h(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:m,relevance:0,starts:j}]},{className:"tag",begin:h(/<\//,s(h(m,/>/))),contains:[{className:"name",begin:m,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}},17533(w){w.exports=function(s){var h="true false yes no null",v="[\\w#;/?:@&=+$,.~*'()[\\]]+",f={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[s.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},y=s.inherit(f,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),m={className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},g={end:",",endsWithParent:!0,excludeEnd:!0,keywords:h,relevance:0},S={begin:/\{/,end:/\}/,contains:[g],illegal:"\\n",relevance:0},_={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},T=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+v},{className:"type",begin:"!<"+v+">"},{className:"type",begin:"!"+v},{className:"type",begin:"!!"+v},{className:"meta",begin:"&"+s.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+s.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},s.HASH_COMMENT_MODE,{beginKeywords:h,keywords:{literal:h}},m,{className:"number",begin:s.C_NUMBER_RE+"\\b",relevance:0},S,_,f],I=[...T];return I.pop(),I.push(y),g.contains=I,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:T}}},251(w,N){N.read=function(s,h,v,f,y){var m,g,S=8*y-f-1,_=(1<>1,I=-7,j=v?y-1:0,M=v?-1:1,z=s[h+j];for(j+=M,m=z&(1<<-I)-1,z>>=-I,I+=S;I>0;m=256*m+s[h+j],j+=M,I-=8);for(g=m&(1<<-I)-1,m>>=-I,I+=f;I>0;g=256*g+s[h+j],j+=M,I-=8);if(m===0)m=1-T;else{if(m===_)return g?NaN:1/0*(z?-1:1);g+=Math.pow(2,f),m-=T}return(z?-1:1)*g*Math.pow(2,m-f)},N.write=function(s,h,v,f,y,m){var g,S,_,T=8*m-y-1,I=(1<>1,M=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,z=f?0:m-1,K=f?1:-1,Y=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(S=isNaN(h)?1:0,g=I):(g=Math.floor(Math.log(h)/Math.LN2),h*(_=Math.pow(2,-g))<1&&(g--,_*=2),(h+=g+j>=1?M/_:M*Math.pow(2,1-j))*_>=2&&(g++,_/=2),g+j>=I?(S=0,g=I):g+j>=1?(S=(h*_-1)*Math.pow(2,y),g+=j):(S=h*Math.pow(2,j-1)*Math.pow(2,y),g=0));y>=8;s[v+z]=255&S,z+=K,S/=256,y-=8);for(g=g<0;s[v+z]=255&g,z+=K,g/=256,T-=8);s[v+z-K]|=128*Y}},49568(w,N,s){s.r(N),s.d(N,{Collection:()=>he,Iterable:()=>ip,List:()=>Wo,Map:()=>vi,OrderedMap:()=>Ra,OrderedSet:()=>Da,PairSorting:()=>cc,Range:()=>zi,Record:()=>jn,Repeat:()=>vl,Seq:()=>ar,Set:()=>No,Stack:()=>ul,default:()=>sp,fromJS:()=>Zc,get:()=>Ia,getIn:()=>lc,has:()=>Wa,hasIn:()=>ml,hash:()=>kr,is:()=>Qe,isAssociative:()=>Te,isCollection:()=>B,isImmutable:()=>Re,isIndexed:()=>se,isKeyed:()=>te,isList:()=>Bi,isMap:()=>Fe,isOrdered:()=>at,isOrderedMap:()=>St,isOrderedSet:()=>pl,isPlainObject:()=>sa,isRecord:()=>gt,isSeq:()=>qe,isSet:()=>Ui,isStack:()=>cl,isValueObject:()=>Bt,merge:()=>nc,mergeDeep:()=>Ku,mergeDeepWith:()=>$c,mergeWith:()=>Hu,remove:()=>gs,removeIn:()=>Zl,set:()=>ys,setIn:()=>Wu,update:()=>Ao,updateIn:()=>lo,version:()=>tu});var h="delete",v=32,f=31,y={};function m(A){A&&(A.value=!0)}function g(){}function S(A){return A.size===void 0&&(A.size=A.__iterate(T)),A.size}function _(A,O){if(typeof O!="number"){var D=O>>>0;if(""+D!==O||D===4294967295)return NaN;O=D}return O<0?S(A)+O:O}function T(){return!0}function I(A,O,D){return(A===0&&!K(A)||D!==void 0&&A<=-D)&&(O===void 0||D!==void 0&&O>=D)}function j(A,O){return z(A,O,0)}function M(A,O){return z(A,O,O)}function z(A,O,D){return A===void 0?D:K(A)?O===1/0?O:0|Math.max(0,O+A):O===void 0||O===A?A:0|Math.min(O,A)}function K(A){return A<0||A===0&&1/A==-1/0}var Y="@@__IMMUTABLE_ITERABLE__@@";function B(A){return!!(A&&A[Y])}var X="@@__IMMUTABLE_KEYED__@@";function te(A){return!!(A&&A[X])}var ie="@@__IMMUTABLE_INDEXED__@@";function se(A){return!!(A&&A[ie])}function Te(A){return te(A)||se(A)}var he=function(O){return B(O)?O:ar(O)},ge=(function(A){function O(D){return te(D)?D:Tt(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O})(he),ke=(function(A){function O(D){return se(D)?D:Gt(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O})(he),Ve=(function(A){function O(D){return B(D)&&!Te(D)?D:Sr(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O})(he);he.Keyed=ge,he.Indexed=ke,he.Set=Ve;var He="@@__IMMUTABLE_SEQ__@@";function qe(A){return!!(A&&A[He])}var nt="@@__IMMUTABLE_RECORD__@@";function gt(A){return!!(A&&A[nt])}function Re(A){return B(A)||gt(A)}var u="@@__IMMUTABLE_ORDERED__@@";function at(A){return!!(A&&A[u])}var Xe=typeof Symbol=="function"&&Symbol.iterator,Se="@@iterator",De=Xe||Se,Ke=function(O){this.next=O};function ft(A,O,D,F){var q=A===0?O:A===1?D:[O,D];return F?F.value=q:F={value:q,done:!1},F}function Nt(){return{value:void 0,done:!0}}function Wt(A){return!!Array.isArray(A)||!!ct(A)}function H(A){return A&&typeof A.next=="function"}function we(A){var O=ct(A);return O&&O.call(A)}function ct(A){var O=A&&(Xe&&A[Xe]||A[Se]);if(typeof O=="function")return O}Ke.prototype.toString=function(){return"[Iterator]"},Ke.KEYS=0,Ke.VALUES=1,Ke.ENTRIES=2,Ke.prototype.inspect=Ke.prototype.toSource=function(){return this.toString()},Ke.prototype[De]=function(){return this};var mt=Object.prototype.hasOwnProperty;function ur(A){return!(!Array.isArray(A)&&typeof A!="string")||A&&typeof A=="object"&&Number.isInteger(A.length)&&A.length>=0&&(A.length===0?Object.keys(A).length===1:A.hasOwnProperty(A.length-1))}var ar=(function(A){function O(D){return D==null?U():Re(D)?D.toSeq():(function(q){var ae=ye(q);if(ae)return(function(fe){var Pe=ct(fe);return Pe&&Pe===fe.entries})(q)?ae.fromEntrySeq():(function(fe){var Pe=ct(fe);return Pe&&Pe===fe.keys})(q)?ae.toSetSeq():ae;if(typeof q=="object")return new yt(q);throw new TypeError("Expected Array or collection object of values, or keyed object: "+q)})(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.toSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq {","}")},O.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},O.prototype.__iterate=function(F,q){var ae=this._cache;if(ae){for(var oe=ae.length,fe=0;fe!==oe;){var Pe=ae[q?oe-++fe:fe++];if(F(Pe[1],Pe[0],this)===!1)break}return fe}return this.__iterateUncached(F,q)},O.prototype.__iterator=function(F,q){var ae=this._cache;if(ae){var oe=ae.length,fe=0;return new Ke((function(){if(fe===oe)return{value:void 0,done:!0};var Pe=ae[q?oe-++fe:fe++];return ft(F,Pe[0],Pe[1])}))}return this.__iteratorUncached(F,q)},O})(he),Tt=(function(A){function O(D){return D==null?U().toKeyedSeq():B(D)?te(D)?D.toSeq():D.fromEntrySeq():gt(D)?D.toSeq():Z(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.toKeyedSeq=function(){return this},O})(ar),Gt=(function(A){function O(D){return D==null?U():B(D)?te(D)?D.entrySeq():D.toIndexedSeq():gt(D)?D.toSeq().entrySeq():ne(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return O(arguments)},O.prototype.toIndexedSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq [","]")},O})(ar),Sr=(function(A){function O(D){return(B(D)&&!Te(D)?D:Gt(D)).toSetSeq()}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return O(arguments)},O.prototype.toSetSeq=function(){return this},O})(ar);ar.isSeq=qe,ar.Keyed=Tt,ar.Set=Sr,ar.Indexed=Gt,ar.prototype[He]=!0;var kt=(function(A){function O(D){this._array=D,this.size=D.length}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.get=function(F,q){return this.has(F)?this._array[_(this,F)]:q},O.prototype.__iterate=function(F,q){for(var ae=this._array,oe=ae.length,fe=0;fe!==oe;){var Pe=q?oe-++fe:fe++;if(F(ae[Pe],Pe,this)===!1)break}return fe},O.prototype.__iterator=function(F,q){var ae=this._array,oe=ae.length,fe=0;return new Ke((function(){if(fe===oe)return{value:void 0,done:!0};var Pe=q?oe-++fe:fe++;return ft(F,Pe,ae[Pe])}))},O})(Gt),yt=(function(A){function O(D){var F=Object.keys(D).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(D):[]);this._object=D,this._keys=F,this.size=F.length}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.get=function(F,q){return q===void 0||this.has(F)?this._object[F]:q},O.prototype.has=function(F){return mt.call(this._object,F)},O.prototype.__iterate=function(F,q){for(var ae=this._object,oe=this._keys,fe=oe.length,Pe=0;Pe!==fe;){var ze=oe[q?fe-++Pe:Pe++];if(F(ae[ze],ze,this)===!1)break}return Pe},O.prototype.__iterator=function(F,q){var ae=this._object,oe=this._keys,fe=oe.length,Pe=0;return new Ke((function(){if(Pe===fe)return{value:void 0,done:!0};var ze=oe[q?fe-++Pe:Pe++];return ft(F,ze,ae[ze])}))},O})(Tt);yt.prototype[u]=!0;var Zt,pe=(function(A){function O(D){this._collection=D,this.size=D.length||D.size}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.__iterateUncached=function(F,q){if(q)return this.cacheResult().__iterate(F,q);var ae=we(this._collection),oe=0;if(H(ae))for(var fe;!(fe=ae.next()).done&&F(fe.value,oe++,this)!==!1;);return oe},O.prototype.__iteratorUncached=function(F,q){if(q)return this.cacheResult().__iterator(F,q);var ae=we(this._collection);if(!H(ae))return new Ke(Nt);var oe=0;return new Ke((function(){var fe=ae.next();return fe.done?fe:ft(F,oe++,fe.value)}))},O})(Gt);function U(){return Zt||(Zt=new kt([]))}function Z(A){var O=ye(A);if(O)return O.fromEntrySeq();if(typeof A=="object")return new yt(A);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+A)}function ne(A){var O=ye(A);if(O)return O;throw new TypeError("Expected Array or collection object of values: "+A)}function ye(A){return ur(A)?new kt(A):Wt(A)?new pe(A):void 0}var Ee="@@__IMMUTABLE_MAP__@@";function Fe(A){return!!(A&&A[Ee])}function St(A){return Fe(A)&&at(A)}function Bt(A){return!!(A&&typeof A.equals=="function"&&typeof A.hashCode=="function")}function Qe(A,O){if(A===O||A!=A&&O!=O)return!0;if(!A||!O)return!1;if(typeof A.valueOf=="function"&&typeof O.valueOf=="function"){if((A=A.valueOf())===(O=O.valueOf())||A!=A&&O!=O)return!0;if(!A||!O)return!1}return!!(Bt(A)&&Bt(O)&&A.equals(O))}var $t=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(O,D){var F=65535&(O|=0),q=65535&(D|=0);return F*q+((O>>>16)*q+F*(D>>>16)<<16>>>0)|0};function Pt(A){return A>>>1&1073741824|3221225471&A}var rn=Object.prototype.valueOf;function kr(A){if(A==null)return An(A);if(typeof A.hashCode=="function")return Pt(A.hashCode(A));var O=(function(F){return F.valueOf!==rn&&typeof F.valueOf=="function"?F.valueOf(F):F})(A);if(O==null)return An(O);switch(typeof O){case"boolean":return O?1108378657:1108378656;case"number":return(function(F){if(F!=F||F===1/0)return 0;var q=0|F;for(q!==F&&(q^=4294967295*F);F>4294967295;)q^=F/=4294967295;return Pt(q)})(O);case"string":return O.length>ds?(function(F){var q=tn[F];return q===void 0&&(q=Wr(F),br===sr&&(br=0,tn={}),br++,tn[F]=q),q})(O):Wr(O);case"object":case"function":return(function(F){var q;if(Li&&(q=Oo.get(F))!==void 0||(q=F[Vo])!==void 0||!un&&((q=F.propertyIsEnumerable&&F.propertyIsEnumerable[Vo])!==void 0||(q=(function(oe){if(oe&&oe.nodeType>0)switch(oe.nodeType){case 1:return oe.uniqueID;case 9:return oe.documentElement&&oe.documentElement.uniqueID}})(F))!==void 0))return q;if(q=ti(),Li)Oo.set(F,q);else{if(Zn!==void 0&&Zn(F)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(un)Object.defineProperty(F,Vo,{enumerable:!1,configurable:!1,writable:!1,value:q});else if(F.propertyIsEnumerable!==void 0&&F.propertyIsEnumerable===F.constructor.prototype.propertyIsEnumerable)F.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},F.propertyIsEnumerable[Vo]=q;else{if(F.nodeType===void 0)throw new Error("Unable to set a non-enumerable property on object.");F[Vo]=q}}return q})(O);case"symbol":return(function(F){var q=Fn[F];return q!==void 0||(q=ti(),Fn[F]=q),q})(O);default:if(typeof O.toString=="function")return Wr(O.toString());throw new Error("Value type "+typeof O+" cannot be hashed.")}}function An(A){return A===null?1108378658:1108378659}function Wr(A){for(var O=0,D=0;D=0&&(Pe.get=function(ze,tt){return(ze=_(this,ze))>=0&&zeae)return{value:void 0,done:!0};var vr=At.next();return F||ze===1||vr.done?vr:ft(ze,lr-1,ze===0?void 0:vr.value[1],vr)}))},Pe}function fs(A,O,D,F){var q=ta(A);return q.__iterateUncached=function(ae,oe){var fe=this;if(oe)return this.cacheResult().__iterate(ae,oe);var Pe=!0,ze=0;return A.__iterate((function(tt,At,Rt){if(!Pe||!(Pe=O.call(D,tt,At,Rt)))return ze++,ae(tt,F?At:ze-1,fe)})),ze},q.__iteratorUncached=function(ae,oe){var fe=this;if(oe)return this.cacheResult().__iterator(ae,oe);var Pe=A.__iterator(2,oe),ze=!0,tt=0;return new Ke((function(){var At,Rt,lr;do{if((At=Pe.next()).done)return F||ae===1?At:ft(ae,tt++,ae===0?void 0:At.value[1],At);var vr=At.value;Rt=vr[0],lr=vr[1],ze&&(ze=O.call(D,lr,Rt,fe))}while(ze);return ae===2?At:ft(ae,Rt,lr,At)}))},q}function ea(A,O,D){var F=ta(A);return F.__iterateUncached=function(q,ae){if(ae)return this.cacheResult().__iterate(q,ae);var oe=0,fe=!1;return(function Pe(ze,tt){ze.__iterate((function(At,Rt){return(!O||tt0}function ko(A,O,D,F){var q=ta(A),ae=new kt(D).map((function(oe){return oe.size}));return q.size=F?ae.max():ae.min(),q.__iterate=function(oe,fe){for(var Pe,ze=this.__iterator(1,fe),tt=0;!(Pe=ze.next()).done&&oe(Pe.value,tt++,this)!==!1;);return tt},q.__iteratorUncached=function(oe,fe){var Pe=D.map((function(At){return At=he(At),we(fe?At.reverse():At)})),ze=0,tt=!1;return new Ke((function(){var At;return tt||(At=Pe.map((function(Rt){return Rt.next()})),tt=F?At.every((function(Rt){return Rt.done})):At.some((function(Rt){return Rt.done}))),tt?{value:void 0,done:!0}:ft(oe,ze++,O.apply(null,At.map((function(Rt){return Rt.value}))))}))},q}function Nr(A,O){return A===O?A:qe(A)?O:A.constructor(O)}function xn(A){if(A!==Object(A))throw new TypeError("Expected [K, V] tuple: "+A)}function fi(A){return te(A)?ge:se(A)?ke:Ve}function ta(A){return Object.create((te(A)?Tt:se(A)?Gt:Sr).prototype)}function Jo(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ar.prototype.cacheResult.call(this)}function ms(A,O){return A===void 0&&O===void 0?0:A===void 0?1:O===void 0?-1:A>O?1:A0;)O[D]=arguments[D+1];if(typeof A!="function")throw new TypeError("Invalid merger function: "+A);return Zs(this,O,A)}function Zs(A,O,D){for(var F=[],q=0;q0;)O[D]=arguments[D+1];return Co(A,O)}function Hu(A,O){for(var D=[],F=arguments.length-2;F-- >0;)D[F]=arguments[F+2];return Co(O,D,A)}function Ku(A){for(var O=[],D=arguments.length-1;D-- >0;)O[D]=arguments[D+1];return $i(A,O)}function $c(A,O){for(var D=[],F=arguments.length-2;F-- >0;)D[F]=arguments[F+2];return $i(O,D,A)}function $i(A,O,D){return Co(A,O,(function(q){function ae(oe,fe,Pe){return Sa(oe)&&Sa(fe)&&(function(tt,At){var Rt=ar(tt),lr=ar(At);return se(Rt)===se(lr)&&te(Rt)===te(lr)})(oe,fe)?Co(oe,[fe],ae):q?q(oe,fe,Pe):fe}return ae})(D))}function Co(A,O,D){if(!Sa(A))throw new TypeError("Cannot merge into non-data-structure value: "+A);if(Re(A))return typeof D=="function"&&A.mergeWith?A.mergeWith.apply(A,[D].concat(O)):A.merge?A.merge.apply(A,O):A.concat.apply(A,O);for(var F=Array.isArray(A),q=A,ae=F?ke:ge,oe=F?function(Pe){q===A&&(q=Xl(q)),q.push(Pe)}:function(Pe,ze){if(!Yl(ze)){var tt=mt.call(q,ze),At=tt&&D?D(q[ze],Pe,ze):Pe;tt&&At===q[ze]||(q===A&&(q=Xl(q)),q[ze]=At)}},fe=0;fe0;)O[D]=arguments[D+1];return $i(this,O,A)}function bs(A){for(var O=[],D=arguments.length-1;D-- >0;)O[D]=arguments[D+1];return lo(this,A,co(),(function(F){return Co(F,O)}))}function ws(A){for(var O=[],D=arguments.length-1;D-- >0;)O[D]=arguments[D+1];return lo(this,A,co(),(function(F){return $i(F,O)}))}function jo(A){var O=this.asMutable();return A(O),O.wasAltered()?O.__ensureOwner(this.__ownerID):this}function ac(){return this.__ownerID?this:this.__ensureOwner(new g)}function el(){return this.__ensureOwner()}function Es(){return this.__altered}var vi=(function(A){function O(D){return D==null?co():Fe(D)&&!at(D)?D:co().withMutations((function(F){var q=A(D);mr(q.size),q.forEach((function(ae,oe){return F.set(oe,ae)}))}))}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){for(var F=[],q=arguments.length;q--;)F[q]=arguments[q];return co().withMutations((function(ae){for(var oe=0;oe=F.length)throw new Error("Missing value for key: "+F[oe]);ae.set(F[oe],F[oe+1])}}))},O.prototype.toString=function(){return this.__toString("Map {","}")},O.prototype.get=function(F,q){return this._root?this._root.get(0,void 0,F,q):q},O.prototype.set=function(F,q){return nl(this,F,q)},O.prototype.remove=function(F){return nl(this,F,y)},O.prototype.deleteAll=function(F){var q=he(F);return q.size===0?this:this.withMutations((function(ae){q.forEach((function(oe){return ae.remove(oe)}))}))},O.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):co()},O.prototype.sort=function(F){return Ra(di(this,F))},O.prototype.sortBy=function(F,q){return Ra(di(this,q,F))},O.prototype.map=function(F,q){var ae=this;return this.withMutations((function(oe){oe.forEach((function(fe,Pe){oe.set(Pe,F.call(q,fe,Pe,ae))}))}))},O.prototype.__iterator=function(F,q){return new jd(this,F,q)},O.prototype.__iterate=function(F,q){var ae=this,oe=0;return this._root&&this._root.iterate((function(fe){return oe++,F(fe[1],fe[0],ae)}),q),oe},O.prototype.__ensureOwner=function(F){return F===this.__ownerID?this:F?yr(this.size,this._root,F,this.__hash):this.size===0?co():(this.__ownerID=F,this.__altered=!1,this)},O})(ge);vi.isMap=Fe;var bn=vi.prototype;bn[Ee]=!0,bn[h]=bn.remove,bn.removeAll=bn.deleteAll,bn.setIn=Ql,bn.removeIn=bn.deleteIn=ec,bn.update=vs,bn.updateIn=an,bn.merge=bn.concat=tc,bn.mergeWith=rc,bn.mergeDeep=gi,bn.mergeDeepWith=yi,bn.mergeIn=bs,bn.mergeDeepIn=ws,bn.withMutations=jo,bn.wasAltered=Es,bn.asImmutable=el,bn["@@transducer/init"]=bn.asMutable=ac,bn["@@transducer/step"]=function(A,O){return A.set(O[0],O[1])},bn["@@transducer/result"]=function(A){return A.asImmutable()};var tl=function(O,D){this.ownerID=O,this.entries=D};tl.prototype.get=function(O,D,F,q){for(var ae=this.entries,oe=0,fe=ae.length;oe=zc)return(function(_n,ya,Fa,ai){_n||(_n=new g);for(var Tn=new Ma(_n,kr(Fa),[Fa,ai]),Hn=0;Hn>>O)&f),oe=this.bitmap;return oe&ae?this.nodes[Gu(oe&ae-1)].get(O+5,D,F,q):q},rl.prototype.update=function(O,D,F,q,ae,oe,fe){F===void 0&&(F=kr(q));var Pe=(D===0?F:F>>>D)&f,ze=1<=rh)return(function(Tn,Hn,na,aa,Bn){for(var Ga=0,Ya=new Array(v),po=0;na!==0;po++,na>>>=1)Ya[po]=1&na?Hn[Ga++]:void 0;return Ya[aa]=Bn,new bi(Tn,Ga+1,Ya)})(O,lr,tt,Pe,Ar);if(At&&!Ar&&lr.length===2&&Uc(lr[1^Rt]))return lr[1^Rt];if(At&&Ar&&lr.length===1&&Uc(Ar))return Ar;var _n=O&&O===this.ownerID,ya=At?Ar?tt:tt^ze:tt|ze,Fa=At?Ar?ic(lr,Rt,Ar,_n):(function(Tn,Hn,na){var aa=Tn.length-1;if(na&&Hn===aa)return Tn.pop(),Tn;for(var Bn=new Array(aa),Ga=0,Ya=0;Ya>>O)&f,oe=this.nodes[ae];return oe?oe.get(O+5,D,F,q):q},bi.prototype.update=function(O,D,F,q,ae,oe,fe){F===void 0&&(F=kr(q));var Pe=(D===0?F:F>>>D)&f,ze=ae===y,tt=this.nodes,At=tt[Pe];if(ze&&!At)return this;var Rt=wi(At,O,D+5,F,q,ae,oe,fe);if(Rt===At)return this;var lr=this.count;if(At){if(!Rt&&--lr=Yu&&(q=this._buildIndex()),q!==void 0){var ae=q[Ea(O)];if(ae!==void 0)for(var oe=0;oe>>D)&f,fe=(D===0?F:F>>>D)&f,Pe=oe===fe?[al(A,O,D+5,F,q)]:(ae=new Ma(O,F,q),oe>1&1431655765))+(A>>2&858993459))+(A>>4)&252645135,A+=A>>8,127&(A+=A>>16)}function ic(A,O,D,F){var q=F?A:Yt(A);return q[O]=D,q}var zc=8,rh=16,uo=8,Yu=16,Vc="@@__IMMUTABLE_LIST__@@";function Bi(A){return!!(A&&A[Vc])}var Wo=(function(A){function O(D){var F=Ss();if(D==null)return F;if(Bi(D))return D;var q=A(D),ae=q.size;return ae===0?F:(mr(ae),ae>0&&ae=0&&F=oe.size||fe<0)return oe.withMutations((function(Rt){fe<0?ri(Rt,fe).set(0,Pe):ri(Rt,0,fe+1).set(fe,Pe)}));fe+=oe._origin;var ze=oe._tail,tt=oe._root,At={value:!1};return fe>=sl(oe._capacity)?ze=Qu(ze,oe.__ownerID,0,fe,Pe,At):tt=Qu(tt,oe.__ownerID,oe._level,fe,Pe,At),At.value?oe.__ownerID?(oe._root=tt,oe._tail=ze,oe.__hash=void 0,oe.__altered=!0,oe):ol(oe._origin,oe._capacity,oe._level,tt,ze):oe})(this,F,q)},O.prototype.remove=function(F){return this.has(F)?F===0?this.shift():F===this.size-1?this.pop():this.splice(F,1):this},O.prototype.insert=function(F,q){return this.splice(F,0,q)},O.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Ss()},O.prototype.push=function(){var F=arguments,q=this.size;return this.withMutations((function(ae){ri(ae,0,q+F.length);for(var oe=0;oe>>D&f;if(q>=this.array.length)return new Ha([],O);var ae,oe=q===0;if(D>0){var fe=this.array[q];if((ae=fe&&fe.removeBefore(O,D-5,F))===fe&&oe)return this}if(oe&&!ae)return this;var Pe=il(this,O);if(!oe)for(var ze=0;ze>>D&f;if(ae>=this.array.length)return this;if(D>0){var oe=this.array[ae];if((q=oe&&oe.removeAfter(O,D-5,F))===oe&&ae===this.array.length-1)return this}var fe=il(this,O);return fe.array.splice(ae+1),q&&(fe.array[ae]=q),fe};var nh,Ei={};function Xu(A,O){var D=A._origin,F=A._capacity,q=sl(F),ae=A._tail;return oe(A._root,A._level,0);function oe(fe,Pe,ze){return Pe===0?(function(At,Rt){var lr=Rt===q?ae&&ae.array:At&&At.array,vr=Rt>D?0:D-Rt,Ar=F-Rt;return Ar>v&&(Ar=v),function(){if(vr===Ar)return Ei;var _n=O?--Ar:vr++;return lr&&lr[_n]}})(fe,ze):(function(At,Rt,lr){var vr,Ar=At&&At.array,_n=lr>D?0:D-lr>>Rt,ya=1+(F-lr>>Rt);return ya>v&&(ya=v),function(){for(;;){if(vr){var Fa=vr();if(Fa!==Ei)return Fa;vr=null}if(_n===ya)return Ei;var ai=O?--ya:_n++;vr=oe(Ar&&Ar[ai],Rt-5,lr+(ai<>>D&f,Pe=A&&fe0){var ze=A&&A.array[fe],tt=Qu(ze,O,D-5,F,q,ae);return tt===ze?A:((oe=il(A,O)).array[fe]=tt,oe)}return Pe&&A.array[fe]===q?A:(ae&&m(ae),oe=il(A,O),q===void 0&&fe===oe.array.length-1?oe.array.pop():oe.array[fe]=q,oe)}function il(A,O){return O&&A&&O===A.ownerID?A:new Ha(A?A.array.slice():[],O)}function ah(A,O){if(O>=sl(A._capacity))return A._tail;if(O<1<0;)D=D.array[O>>>F&f],F-=5;return D}}function ri(A,O,D){(function(Tn,Hn,na){var aa=Tn._origin+(Hn===void 0?0:Hn),Bn=na===void 0?Tn._capacity:na<0?Tn._capacity+na:Tn._origin+na;if(Number.isFinite(Bn)&&Bn>sc||Number.isFinite(aa)&&aa<-sc||Number.isFinite(Bn)&&Number.isFinite(aa)&&Bn-aa>sc)throw new RangeError("Invalid List size: a List cannot hold more than "+sc+" (2 ** 30) values.")})(A,O,D),O!==void 0&&(O|=0),D!==void 0&&(D|=0);var F=A.__ownerID||new g,q=A._origin,ae=A._capacity,oe=q+O,fe=D===void 0?ae:D<0?ae+D:q+D;if(oe===q&&fe===ae)return A;if(oe>=fe)return A.clear();for(var Pe=A._level,ze=A._root,tt=0;oe+tt<0;)ze=new Ha(ze&&ze.array.length?[void 0,ze]:[],F),tt+=Jc(Pe+=5);tt&&(oe+=tt,q+=tt,fe+=tt,ae+=tt);for(var At=sl(ae),Rt=sl(fe);Rt>=Jc(Pe+5);)ze=new Ha(ze&&ze.array.length?[ze]:[],F),Pe+=5;var lr=A._tail,vr=RtAt?new Ha([],F):lr;if(lr&&Rt>At&&oe5;_n-=5){var ya=At>>>_n&f;Ar=Ar.array[ya]=il(Ar.array[ya],F)}Ar.array[At>>>5&f]=lr}if(fe=Rt)oe-=Rt,fe-=Rt,Pe=5,ze=null,vr=vr&&vr.removeBefore(F,0,oe);else if(oe>q||Rt>>Pe&f;if(Fa!==Rt>>>Pe&f)break;Fa&&(tt+=(1<q&&(ze=ze.removeBefore(F,Pe,oe-tt)),ze&&Rt>>5<<5}var sc=Math.pow(2,30);function Jc(A){return A<31?1<=v&&oe.size>=2*ae.size?(F=(q=oe.filter((function(ze,tt){return ze!==void 0&&fe!==tt}))).toKeyedSeq().map((function(ze){return ze[0]})).flip().toMap(),A.__ownerID&&(F.__ownerID=q.__ownerID=A.__ownerID)):(F=ae.remove(O),q=fe===oe.size-1?oe.pop():oe.set(fe,void 0))}else if(Pe){if(D===oe.get(fe)[1])return A;F=ae,q=oe.set(fe,[O,D])}else F=ae.set(O,oe.size),q=oe.set(oe.size,[O,D]);return A.__ownerID?(A.size=F.size,A._map=F,A._list=q,A.__hash=void 0,A.__altered=!0,A):Wc(F,q)}Ra.isOrderedMap=St,Ra.prototype[u]=!0,Ra.prototype[h]=Ra.prototype.remove;var ep="@@__IMMUTABLE_STACK__@@";function cl(A){return!!(A&&A[ep])}var ul=(function(A){function O(D){return D==null?Si():cl(D)?D:Si().pushAll(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return this(arguments)},O.prototype.toString=function(){return this.__toString("Stack [","]")},O.prototype.get=function(F,q){var ae=this._head;for(F=_(this,F);ae&&F--;)ae=ae.next;return ae?ae.value:q},O.prototype.peek=function(){return this._head&&this._head.value},O.prototype.push=function(){var F=arguments;if(arguments.length===0)return this;for(var q=this.size+arguments.length,ae=this._head,oe=arguments.length-1;oe>=0;oe--)ae={value:F[oe],next:ae};return this.__ownerID?(this.size=q,this._head=ae,this.__hash=void 0,this.__altered=!0,this):qi(q,ae)},O.prototype.pushAll=function(F){if((F=A(F)).size===0)return this;if(this.size===0&&cl(F))return F;mr(F.size);var q=this.size,ae=this._head;return F.__iterate((function(oe){q++,ae={value:oe,next:ae}}),!0),this.__ownerID?(this.size=q,this._head=ae,this.__hash=void 0,this.__altered=!0,this):qi(q,ae)},O.prototype.pop=function(){return this.slice(1)},O.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Si()},O.prototype.slice=function(F,q){if(I(F,q,this.size))return this;var ae=j(F,this.size);if(M(q,this.size)!==this.size)return A.prototype.slice.call(this,F,q);for(var oe=this.size-ae,fe=this._head;ae--;)fe=fe.next;return this.__ownerID?(this.size=oe,this._head=fe,this.__hash=void 0,this.__altered=!0,this):qi(oe,fe)},O.prototype.__ensureOwner=function(F){return F===this.__ownerID?this:F?qi(this.size,this._head,F,this.__hash):this.size===0?Si():(this.__ownerID=F,this.__altered=!1,this)},O.prototype.__iterate=function(F,q){var ae=this;if(q)return new kt(this.toArray()).__iterate((function(Pe,ze){return F(Pe,ze,ae)}),q);for(var oe=0,fe=this._head;fe&&F(fe.value,oe++,this)!==!1;)fe=fe.next;return oe},O.prototype.__iterator=function(F,q){if(q)return new kt(this.toArray()).__iterator(F,q);var ae=0,oe=this._head;return new Ke((function(){if(oe){var fe=oe.value;return oe=oe.next,ft(F,ae++,fe)}return{value:void 0,done:!0}}))},O})(ke);ul.isStack=cl;var tp,xa=ul.prototype;function qi(A,O,D,F){var q=Object.create(xa);return q.size=A,q._head=O,q.__ownerID=D,q.__hash=F,q.__altered=!1,q}function Si(){return tp||(tp=qi(0))}xa[ep]=!0,xa.shift=xa.pop,xa.unshift=xa.push,xa.unshiftAll=xa.pushAll,xa.withMutations=jo,xa.wasAltered=Es,xa.asImmutable=el,xa["@@transducer/init"]=xa.asMutable=ac,xa["@@transducer/step"]=function(A,O){return A.unshift(O)},xa["@@transducer/result"]=function(A){return A.asImmutable()};var rp="@@__IMMUTABLE_SET__@@";function Ui(A){return!!(A&&A[rp])}function pl(A){return Ui(A)&&at(A)}function hl(A,O){if(A===O)return!0;if(!B(O)||A.size!==void 0&&O.size!==void 0&&A.size!==O.size||A.__hash!==void 0&&O.__hash!==void 0&&A.__hash!==O.__hash||te(A)!==te(O)||se(A)!==se(O)||at(A)!==at(O))return!1;if(A.size===0&&O.size===0)return!0;var D=!Te(A);if(at(A)){var F=A.entries();return O.every((function(Pe,ze){var tt=F.next().value;return tt&&Qe(tt[1],Pe)&&(D||Qe(tt[0],ze))}))&&F.next().done}var q=!1;if(A.size===void 0)if(O.size===void 0)typeof A.cacheResult=="function"&&A.cacheResult();else{q=!0;var ae=A;A=O,O=ae}var oe=!0,fe=O.__iterate((function(Pe,ze){if(D?!A.has(Pe):q?!Qe(Pe,A.get(ze,y)):!Qe(A.get(ze,y),Pe))return oe=!1,!1}));return oe&&A.size===fe}function xi(A,O){var D=function(F){A.prototype[F]=O[F]};return Object.keys(O).forEach(D),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(O).forEach(D),A}function xs(A){if(!A||typeof A!="object")return A;if(!B(A)){if(!Sa(A))return A;A=ar(A)}if(te(A)){var O={};return A.__iterate((function(F,q){Yl(q)||(O[q]=xs(F))})),O}var D=[];return A.__iterate((function(F){D.push(xs(F))})),D}var No=(function(A){function O(D){return D==null?ni():Ui(D)&&!at(D)?D:ni().withMutations((function(F){var q=A(D);mr(q.size),q.forEach((function(ae){return F.add(ae)}))}))}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return this(arguments)},O.fromKeys=function(F){return this(ge(F).keySeq())},O.intersect=function(F){return(F=he(F).toArray()).length?ra.intersect.apply(O(F.pop()),F):ni()},O.union=function(F){return(F=he(F).toArray()).length?ra.union.apply(O(F.pop()),F):ni()},O.prototype.toString=function(){return this.__toString("Set {","}")},O.prototype.has=function(F){return this._map.has(F)},O.prototype.add=function(F){return dl(this,this._map.set(F,F))},O.prototype.remove=function(F){return dl(this,this._map.remove(F))},O.prototype.clear=function(){return dl(this,this._map.clear())},O.prototype.map=function(F,q){var ae=this,oe=!1,fe=dl(this,this._map.mapEntries((function(Pe){var ze=Pe[1],tt=F.call(q,ze,ze,ae);return tt!==ze&&(oe=!0),[tt,tt]}),q));return oe?fe:this},O.prototype.union=function(){for(var F=[],q=arguments.length;q--;)F[q]=arguments[q];return(F=F.filter((function(ae){return ae.size!==0}))).length===0?this:this.size!==0||this.__ownerID||F.length!==1?this.withMutations((function(ae){for(var oe=0;oe=0&&q=0&&ae>>-15,461845907),Pe=$t(Pe<<13|Pe>>>-13,5),Pe=Pe+3864292196^fe,Pe=$t(Pe^Pe>>>16,2246822507),Pe=$t(Pe^Pe>>>13,3266489909),Pe=Pt(Pe^Pe>>>16),Pe})(D.__iterate(q?F?function(oe,fe){ae=31*ae+yl(kr(oe),kr(fe))|0}:function(oe,fe){ae=ae+yl(kr(oe),kr(fe))|0}:F?function(oe){ae=31*ae+kr(oe)|0}:function(oe){ae=ae+kr(oe)|0}),ae)})(this))}});var la=he.prototype;la[Y]=!0,la[De]=la.values,la.toJSON=la.toArray,la.__toStringMapper=Ja,la.inspect=la.toSource=function(){return this.toString()},la.chain=la.flatMap,la.contains=la.includes,xi(ge,{flip:function(){return Nr(this,fn(this))},mapEntries:function(O,D){var F=this,q=0;return Nr(this,this.toSeq().map((function(ae,oe){return O.call(D,[oe,ae],q++,F)})).fromEntrySeq())},mapKeys:function(O,D){var F=this;return Nr(this,this.toSeq().flip().map((function(q,ae){return O.call(D,q,ae,F)})).flip())}});var Vi=ge.prototype;Vi[X]=!0,Vi[De]=la.entries,Vi.toJSON=gl,Vi.__toStringMapper=function(A,O){return Ja(O)+": "+Ja(A)},xi(ke,{toKeyedSeq:function(){return new Cr(this,!1)},filter:function(O,D){return Nr(this,ia(this,O,D,!1))},findIndex:function(O,D){var F=this.findEntry(O,D);return F?F[0]:-1},indexOf:function(O){var D=this.keyOf(O);return D===void 0?-1:D},lastIndexOf:function(O){var D=this.lastKeyOf(O);return D===void 0?-1:D},reverse:function(){return Nr(this,Hr(this,!1))},slice:function(O,D){return Nr(this,za(this,O,D,!1))},splice:function(O,D){var F=arguments.length;if(D=Math.max(D||0,0),F===0||F===2&&!D)return this;O=j(O,O<0?this.count():this.size);var q=this.slice(0,O);return Nr(this,F===1?q:q.concat(Yt(arguments,2),this.slice(O+D)))},findLastIndex:function(O,D){var F=this.findLastEntry(O,D);return F?F[0]:-1},first:function(O){return this.get(0,O)},flatten:function(O){return Nr(this,ea(this,O,!1))},get:function(O,D){return(O=_(this,O))<0||this.size===1/0||this.size!==void 0&&O>this.size?D:this.find((function(F,q){return q===O}),void 0,D)},has:function(O){return(O=_(this,O))>=0&&(this.size!==void 0?this.size===1/0||OO?-1:0}function yl(A,O){return A^O+2654435769+(A<<6)+(A>>2)}Wi.has=la.includes,Wi.contains=Wi.includes,Wi.keys=Wi.values,xi(Tt,Vi),xi(Gt,Ji),xi(Sr,Wi);var Da=(function(A){function O(D){return D==null?_i():pl(D)?D:_i().withMutations((function(F){var q=Ve(D);mr(q.size),q.forEach((function(ae){return F.add(ae)}))}))}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return this(arguments)},O.fromKeys=function(F){return this(ge(F).keySeq())},O.prototype.toString=function(){return this.__toString("OrderedSet {","}")},O})(No);Da.isOrderedSet=pl;var Hi,Ho=Da.prototype;function _a(A,O){var D=Object.create(Ho);return D.size=A?A.size:0,D._map=A,D.__ownerID=O,D}function _i(){return Hi||(Hi=_a(ll()))}Ho[u]=!0,Ho.zip=Ji.zip,Ho.zipWith=Ji.zipWith,Ho.zipAll=Ji.zipAll,Ho.__empty=_i,Ho.__make=_a;var cc={LeftThenRight:-1,RightThenLeft:1},jn=function(O,D){var F;(function(fe){if(gt(fe))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Re(fe))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(fe===null||typeof fe!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")})(O);var q=function(fe){var Pe=this;if(fe instanceof q)return fe;if(!(this instanceof q))return new q(fe);if(!F){F=!0;var ze=Object.keys(O),tt=ae._indices={};ae._name=D,ae._keys=ze,ae._defaultValues=O;for(var At=0;At2?[]:void 0,{"":A})}function eu(A,O,D,F,q,ae){if(typeof D!="string"&&!Re(D)&&(ur(D)||Wt(D)||sa(D))){if(~A.indexOf(D))throw new TypeError("Cannot convert circular structure to Immutable");A.push(D),q&&F!==""&&q.push(F);var oe=O.call(ae,F,ar(D).map((function(fe,Pe){return eu(A,O,fe,Pe,q,D)})),q&&q.slice());return A.pop(),q&&q.pop(),oe}return D}function op(A,O){return se(O)?O.toList():te(O)?O.toMap():O.toSet()}var tu="4.3.9",ip=he;const sp={version:tu,Collection:he,Iterable:he,Seq:ar,Map:vi,OrderedMap:Ra,List:Wo,Stack:ul,Set:No,OrderedSet:Da,PairSorting:cc,Record:jn,Range:zi,Repeat:vl,is:Qe,fromJS:Zc,hash:kr,isImmutable:Re,isCollection:B,isKeyed:te,isIndexed:se,isAssociative:Te,isOrdered:at,isValueObject:Bt,isPlainObject:sa,isSeq:qe,isList:Bi,isMap:Fe,isOrderedMap:St,isStack:cl,isSet:Ui,isOrderedSet:pl,isRecord:gt,get:Ia,getIn:lc,has:Wa,hasIn:ml,merge:nc,mergeDeep:Ku,mergeWith:Hu,mergeDeepWith:$c,remove:gs,removeIn:Zl,set:ys,setIn:Wu,update:Ao,updateIn:lo}},56698(w){typeof Object.create=="function"?w.exports=function(s,h){h&&(s.super_=h,s.prototype=Object.create(h.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:w.exports=function(s,h){if(h){s.super_=h;var v=function(){};v.prototype=h.prototype,s.prototype=new v,s.prototype.constructor=s}}},69600(w){var N,s,h=Function.prototype.toString,v=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof v=="function"&&typeof Object.defineProperty=="function")try{N=Object.defineProperty({},"length",{get:function(){throw s}}),s={},v((function(){throw 42}),null,N)}catch(j){j!==s&&(v=null)}else v=null;var f=/^\s*class\b/,y=function(M){try{var z=h.call(M);return f.test(z)}catch{return!1}},m=function(M){try{return!y(M)&&(h.call(M),!0)}catch{return!1}},g=Object.prototype.toString,S=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),T=function(){return!1};if(typeof document=="object"){var I=document.all;g.call(I)===g.call(document.all)&&(T=function(M){if((_||!M)&&(M===void 0||typeof M=="object"))try{var z=g.call(M);return(z==="[object HTMLAllCollection]"||z==="[object HTML document.all class]"||z==="[object HTMLCollection]"||z==="[object Object]")&&M("")==null}catch{}return!1})}w.exports=v?function(M){if(T(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;try{v(M,null,N)}catch(z){if(z!==s)return!1}return!y(M)&&m(M)}:function(M){if(T(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;if(S)return m(M);if(y(M))return!1;var z=g.call(M);return!(z!=="[object Function]"&&z!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(z))&&m(M)}},35680(w,N,s){var h=s(25767);w.exports=function(f){return!!h(f)}},64634(w){var N={}.toString;w.exports=Array.isArray||function(s){return N.call(s)=="[object Array]"}},5419(w){w.exports=function(N,s,h,v){var f=new Blob(v!==void 0?[v,N]:[N],{type:h||"application/octet-stream"});if(window.navigator.msSaveBlob!==void 0)window.navigator.msSaveBlob(f,s);else{var y=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(f):window.webkitURL.createObjectURL(f),m=document.createElement("a");m.style.display="none",m.href=y,m.setAttribute("download",s),m.download===void 0&&m.setAttribute("target","_blank"),document.body.appendChild(m),m.click(),setTimeout((function(){document.body.removeChild(m),window.URL.revokeObjectURL(y)}),200)}}},20181(w,N,s){var h=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,y=/^0o[0-7]+$/i,m=parseInt,g=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g,S=typeof self=="object"&&self&&self.Object===Object&&self,_=g||S||Function("return this")(),T=Object.prototype.toString,I=Math.max,j=Math.min,M=function(){return _.Date.now()};function z(Y){var B=typeof Y;return!!Y&&(B=="object"||B=="function")}function K(Y){if(typeof Y=="number")return Y;if((function(ie){return typeof ie=="symbol"||(function(Te){return!!Te&&typeof Te=="object"})(ie)&&T.call(ie)=="[object Symbol]"})(Y))return NaN;if(z(Y)){var B=typeof Y.valueOf=="function"?Y.valueOf():Y;Y=z(B)?B+"":B}if(typeof Y!="string")return Y===0?Y:+Y;Y=Y.replace(h,"");var X=f.test(Y);return X||y.test(Y)?m(Y.slice(2),X?2:8):v.test(Y)?NaN:+Y}w.exports=function(B,X,te){var ie,se,Te,he,ge,ke,Ve=0,He=!1,qe=!1,nt=!0;if(typeof B!="function")throw new TypeError("Expected a function");function gt(Se){var De=ie,Ke=se;return ie=se=void 0,Ve=Se,he=B.apply(Ke,De)}function Re(Se){var De=Se-ke;return ke===void 0||De>=X||De<0||qe&&Se-Ve>=Te}function u(){var Se=M();if(Re(Se))return at(Se);ge=setTimeout(u,(function(Ke){var ft=X-(Ke-ke);return qe?j(ft,Te-(Ke-Ve)):ft})(Se))}function at(Se){return ge=void 0,nt&&ie?gt(Se):(ie=se=void 0,he)}function Xe(){var Se=M(),De=Re(Se);if(ie=arguments,se=this,ke=Se,De){if(ge===void 0)return(function(ft){return Ve=ft,ge=setTimeout(u,X),He?gt(ft):he})(ke);if(qe)return ge=setTimeout(u,X),gt(ke)}return ge===void 0&&(ge=setTimeout(u,X)),he}return X=K(X)||0,z(te)&&(He=!!te.leading,Te=(qe="maxWait"in te)?I(K(te.maxWait)||0,X):Te,nt="trailing"in te?!!te.trailing:nt),Xe.cancel=function(){ge!==void 0&&clearTimeout(ge),Ve=0,ie=ke=se=ge=void 0},Xe.flush=function(){return ge===void 0?he:at(M())},Xe}},55580(w,N,s){var h=s(56110)(s(9325),"DataView");w.exports=h},21549(w,N,s){var h=s(22032),v=s(63862),f=s(66721),y=s(12749),m=s(35749);function g(S){var _=-1,T=S==null?0:S.length;for(this.clear();++_-1}},70695(w,N,s){var h=s(78096),v=s(72428),f=s(56449),y=s(3656),m=s(30361),g=s(37167),S=Object.prototype.hasOwnProperty;w.exports=function(T,I){var j=f(T),M=!j&&v(T),z=!j&&!M&&y(T),K=!j&&!M&&!z&&g(T),Y=j||M||z||K,B=Y?h(T.length,String):[],X=B.length;for(var te in T)!I&&!S.call(T,te)||Y&&(te=="length"||z&&(te=="offset"||te=="parent")||K&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||m(te,X))||B.push(te);return B}},34932(w){w.exports=function(s,h){for(var v=-1,f=s==null?0:s.length,y=Array(f);++v0&&g(j)?m>1?f(j,m-1,g,S,_):h(_,j):S||(_[_.length]=j)}return _}},86649(w,N,s){var h=s(83221)();w.exports=h},30641(w,N,s){var h=s(86649),v=s(95950);w.exports=function(y,m){return y&&h(y,m,v)}},47422(w,N,s){var h=s(31769),v=s(77797);w.exports=function(y,m){for(var g=0,S=(m=h(m,y)).length;y!=null&&gy?0:y+h),(v=v>y?y:v)<0&&(v+=y),y=h>v?0:v-h>>>0,h>>>=0;for(var m=Array(y);++f=g?f:h(f,y,m)}},49653(w,N,s){var h=s(37828);w.exports=function(f){var y=new f.constructor(f.byteLength);return new h(y).set(new h(f)),y}},93290(w,N,s){w=s.nmd(w);var h=s(9325),v=N&&!N.nodeType&&N,f=v&&w&&!w.nodeType&&w,y=f&&f.exports===v?h.Buffer:void 0,m=y?y.allocUnsafe:void 0;w.exports=function(S,_){if(_)return S.slice();var T=S.length,I=m?m(T):new S.constructor(T);return S.copy(I),I}},76169(w,N,s){var h=s(49653);w.exports=function(f,y){var m=y?h(f.buffer):f.buffer;return new f.constructor(m,f.byteOffset,f.byteLength)}},73201(w){var N=/\w*$/;w.exports=function(h){var v=new h.constructor(h.source,N.exec(h));return v.lastIndex=h.lastIndex,v}},93736(w,N,s){var h=s(51873),v=h?h.prototype:void 0,f=v?v.valueOf:void 0;w.exports=function(m){return f?Object(f.call(m)):{}}},71961(w,N,s){var h=s(49653);w.exports=function(f,y){var m=y?h(f.buffer):f.buffer;return new f.constructor(m,f.byteOffset,f.length)}},91596(w){var N=Math.max;w.exports=function(h,v,f,y){for(var m=-1,g=h.length,S=f.length,_=-1,T=v.length,I=N(g-S,0),j=Array(T+I),M=!y;++_1?g[_-1]:void 0,I=_>2?g[2]:void 0;for(T=y.length>3&&typeof T=="function"?(_--,T):void 0,I&&v(g[0],g[1],I)&&(T=_<3?void 0:T,_=1),m=Object(m);++S<_;){var j=g[S];j&&y(m,j,S,T)}return m}))}},38329(w,N,s){var h=s(64894);w.exports=function(f,y){return function(m,g){if(m==null)return m;if(!h(m))return f(m,g);for(var S=m.length,_=y?S:-1,T=Object(m);(y?_--:++_-1?T[I?g[j]:j]:void 0}}},37471(w,N,s){var h=s(91596),v=s(53320),f=s(58523),y=s(82819),m=s(18073),g=s(11287),S=s(68294),_=s(36306),T=s(9325);w.exports=function I(j,M,z,K,Y,B,X,te,ie,se){var Te=128&M,he=1&M,ge=2&M,ke=24&M,Ve=512&M,He=ge?void 0:y(j);return function qe(){for(var nt=arguments.length,gt=Array(nt),Re=nt;Re--;)gt[Re]=arguments[Re];if(ke)var u=g(qe),at=f(gt,u);if(K&&(gt=h(gt,K,Y,ke)),B&&(gt=v(gt,B,X,ke)),nt-=at,ke&&nt1&>.reverse(),Te&&ieM))return!1;var K=I.get(m),Y=I.get(g);if(K&&Y)return K==g&&Y==m;var B=-1,X=!0,te=2&S?new h:void 0;for(I.set(m,g),I.set(g,m);++B1?"& ":"")+v[y],v=v.join(f>2?", ":" "),h.replace(N,`{ +/* [wrapped with `+v+`] */ +`)}},45891(w,N,s){var h=s(51873),v=s(72428),f=s(56449),y=h?h.isConcatSpreadable:void 0;w.exports=function(g){return f(g)||v(g)||!!(y&&g&&g[y])}},30361(w){var N=/^(?:0|[1-9]\d*)$/;w.exports=function(h,v){var f=typeof h;return!!(v=v??9007199254740991)&&(f=="number"||f!="symbol"&&N.test(h))&&h>-1&&h%1==0&&h-1}},31175(w,N,s){var h=s(26025);w.exports=function(f,y){var m=this.__data__,g=h(m,f);return g<0?(++this.size,m.push([f,y])):m[g][1]=y,this}},63040(w,N,s){var h=s(21549),v=s(80079),f=s(68223);w.exports=function(){this.size=0,this.__data__={hash:new h,map:new(f||v),string:new h}}},17670(w,N,s){var h=s(12651);w.exports=function(f){var y=h(this,f).delete(f);return this.size-=y?1:0,y}},90289(w,N,s){var h=s(12651);w.exports=function(f){return h(this,f).get(f)}},4509(w,N,s){var h=s(12651);w.exports=function(f){return h(this,f).has(f)}},72949(w,N,s){var h=s(12651);w.exports=function(f,y){var m=h(this,f),g=m.size;return m.set(f,y),this.size+=m.size==g?0:1,this}},20317(w){w.exports=function(s){var h=-1,v=Array(s.size);return s.forEach((function(f,y){v[++h]=[y,f]})),v}},67197(w){w.exports=function(s,h){return function(v){return v!=null&&v[s]===h&&(h!==void 0||s in Object(v))}}},62224(w,N,s){var h=s(50104);w.exports=function(f){var y=h(f,(function(g){return m.size===500&&m.clear(),g})),m=y.cache;return y}},3209(w,N,s){var h=s(91596),v=s(53320),f=s(36306),y="__lodash_placeholder__",m=128,g=Math.min;w.exports=function(_,T){var I=_[1],j=T[1],M=I|j,z=M<131,K=j==m&&I==8||j==m&&I==256&&_[7].length<=T[8]||j==384&&T[7].length<=T[8]&&I==8;if(!z&&!K)return _;1&j&&(_[2]=T[2],M|=1&I?0:4);var Y=T[3];if(Y){var B=_[3];_[3]=B?h(B,Y,T[4]):Y,_[4]=B?f(_[3],y):T[4]}return(Y=T[5])&&(B=_[5],_[5]=B?v(B,Y,T[6]):Y,_[6]=B?f(_[5],y):T[6]),(Y=T[7])&&(_[7]=Y),j&m&&(_[8]=_[8]==null?T[8]:g(_[8],T[8])),_[9]==null&&(_[9]=T[9]),_[0]=T[0],_[1]=M,_}},48152(w,N,s){var h=s(28303),v=h&&new h;w.exports=v},81042(w,N,s){var h=s(56110)(Object,"create");w.exports=h},3650(w,N,s){var h=s(74335)(Object.keys,Object);w.exports=h},90181(w){w.exports=function(s){var h=[];if(s!=null)for(var v in Object(s))h.push(v);return h}},86009(w,N,s){w=s.nmd(w);var h=s(34840),v=N&&!N.nodeType&&N,f=v&&w&&!w.nodeType&&w,y=f&&f.exports===v&&h.process,m=(function(){try{var g=f&&f.require&&f.require("util").types;return g||y&&y.binding&&y.binding("util")}catch{}})();w.exports=m},59350(w){var N=Object.prototype.toString;w.exports=function(h){return N.call(h)}},74335(w){w.exports=function(s,h){return function(v){return s(h(v))}}},56757(w,N,s){var h=s(91033),v=Math.max;w.exports=function(y,m,g){return m=v(m===void 0?y.length-1:m,0),function(){for(var S=arguments,_=-1,T=v(S.length-m,0),I=Array(T);++_0){if(++v>=800)return arguments[0]}else v=0;return h.apply(void 0,arguments)}}},51420(w,N,s){var h=s(80079);w.exports=function(){this.__data__=new h,this.size=0}},90938(w){w.exports=function(s){var h=this.__data__,v=h.delete(s);return this.size=h.size,v}},63605(w){w.exports=function(s){return this.__data__.get(s)}},29817(w){w.exports=function(s){return this.__data__.has(s)}},80945(w,N,s){var h=s(80079),v=s(68223),f=s(53661);w.exports=function(m,g){var S=this.__data__;if(S instanceof h){var _=S.__data__;if(!v||_.length<199)return _.push([m,g]),this.size=++S.size,this;S=this.__data__=new f(_)}return S.set(m,g),this.size=S.size,this}},76959(w){w.exports=function(s,h,v){for(var f=v-1,y=s.length;++f=_||He<0||te&&Ve-B>=M}function he(){var Ve=v();if(Te(Ve))return ge(Ve);K=setTimeout(he,(function(qe){var nt=_-(qe-Y);return te?m(nt,M-(qe-B)):nt})(Ve))}function ge(Ve){return K=void 0,ie&&I?se(Ve):(I=j=void 0,z)}function ke(){var Ve=v(),He=Te(Ve);if(I=arguments,j=this,Y=Ve,He){if(K===void 0)return(function(nt){return B=nt,K=setTimeout(he,_),X?se(nt):z})(Y);if(te)return clearTimeout(K),K=setTimeout(he,_),se(Y)}return K===void 0&&(K=setTimeout(he,_)),z}return _=f(_)||0,h(T)&&(X=!!T.leading,M=(te="maxWait"in T)?y(f(T.maxWait)||0,_):M,ie="trailing"in T?!!T.trailing:ie),ke.cancel=function(){K!==void 0&&clearTimeout(K),B=0,I=Y=j=K=void 0},ke.flush=function(){return K===void 0?z:ge(v())},ke}},50828(w,N,s){var h=s(24647),v=s(13222),f=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,y=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");w.exports=function(g){return(g=v(g))&&g.replace(f,h).replace(y,"")}},75288(w){w.exports=function(s,h){return s===h||s!=s&&h!=h}},60680(w,N,s){var h=s(13222),v=/[\\^$.*+?()[\]{}|]/g,f=RegExp(v.source);w.exports=function(m){return(m=h(m))&&f.test(m)?m.replace(v,"\\$&"):m}},7309(w,N,s){var h=s(62006)(s(24713));w.exports=h},24713(w,N,s){var h=s(2523),v=s(15389),f=s(61489),y=Math.max;w.exports=function(g,S,_){var T=g==null?0:g.length;if(!T)return-1;var I=_==null?0:f(_);return I<0&&(I=y(T+I,0)),h(g,v(S,3),I)}},35970(w,N,s){var h=s(83120);w.exports=function(f){return f!=null&&f.length?h(f,1):[]}},73424(w,N,s){var h=s(16962),v=s(2874),f=Array.prototype.push;function y(S,_){return _==2?function(T,I){return S(T,I)}:function(T){return S(T)}}function m(S){for(var _=S?S.length:0,T=Array(_);_--;)T[_]=S[_];return T}function g(S,_){return function(){var T=arguments.length;if(T){for(var I=Array(T);T--;)I[T]=arguments[T];var j=I[0]=_.apply(void 0,I);return S.apply(void 0,I),j}}}w.exports=function S(_,T,I,j){var M=typeof T=="function",z=T===Object(T);if(z&&(j=I,I=T,T=void 0),I==null)throw new TypeError;j||(j={});var K=!("cap"in j)||j.cap,Y=!("curry"in j)||j.curry,B=!("fixed"in j)||j.fixed,X=!("immutable"in j)||j.immutable,te=!("rearg"in j)||j.rearg,ie=M?I:v,se="curry"in j&&j.curry,Te="fixed"in j&&j.fixed,he="rearg"in j&&j.rearg,ge=M?I.runInContext():void 0,ke=M?I:{ary:_.ary,assign:_.assign,clone:_.clone,curry:_.curry,forEach:_.forEach,isArray:_.isArray,isError:_.isError,isFunction:_.isFunction,isWeakMap:_.isWeakMap,iteratee:_.iteratee,keys:_.keys,rearg:_.rearg,toInteger:_.toInteger,toPath:_.toPath},Ve=ke.ary,He=ke.assign,qe=ke.clone,nt=ke.curry,gt=ke.forEach,Re=ke.isArray,u=ke.isError,at=ke.isFunction,Xe=ke.isWeakMap,Se=ke.keys,De=ke.rearg,Ke=ke.toInteger,ft=ke.toPath,Nt=Se(h.aryMethod),Wt={castArray:function(kt){return function(){var yt=arguments[0];return Re(yt)?kt(m(yt)):kt.apply(void 0,arguments)}},iteratee:function(kt){return function(){var yt=arguments[1],Zt=kt(arguments[0],yt),pe=Zt.length;return K&&typeof yt=="number"?(yt=yt>2?yt-2:1,pe&&pe<=yt?Zt:y(Zt,yt)):Zt}},mixin:function(kt){return function(yt){var Zt=this;if(!at(Zt))return kt(Zt,Object(yt));var pe=[];return gt(Se(yt),(function(U){at(yt[U])&&pe.push([U,Zt.prototype[U]])})),kt(Zt,Object(yt)),gt(pe,(function(U){var Z=U[1];at(Z)?Zt.prototype[U[0]]=Z:delete Zt.prototype[U[0]]})),Zt}},nthArg:function(kt){return function(yt){var Zt=yt<0?1:Ke(yt)+1;return nt(kt(yt),Zt)}},rearg:function(kt){return function(yt,Zt){var pe=Zt?Zt.length:0;return nt(kt(yt,Zt),pe)}},runInContext:function(kt){return function(yt){return S(_,kt(yt),j)}}};function H(kt,yt){if(K){var Zt=h.iterateeRearg[kt];if(Zt)return(function(Z,ne){return ar(Z,(function(ye){var Ee=ne.length;return(function(St,Bt){return Bt==2?function(Qe,$t){return St.apply(void 0,arguments)}:function(Qe){return St.apply(void 0,arguments)}})(De(y(ye,Ee),ne),Ee)}))})(yt,Zt);var pe=!M&&h.iterateeAry[kt];if(pe)return(function(Z,ne){return ar(Z,(function(ye){return typeof ye=="function"?y(ye,ne):ye}))})(yt,pe)}return yt}function we(kt,yt,Zt){if(B&&(Te||!h.skipFixed[kt])){var pe=h.methodSpread[kt],U=pe&&pe.start;return U===void 0?Ve(yt,Zt):(function(ne,ye){return function(){for(var Ee=arguments.length,Fe=Ee-1,St=Array(Ee);Ee--;)St[Ee]=arguments[Ee];var Bt=St[ye],Qe=St.slice(0,ye);return Bt&&f.apply(Qe,Bt),ye!=Fe&&f.apply(Qe,St.slice(ye+1)),ne.apply(this,Qe)}})(yt,U)}return yt}function ct(kt,yt,Zt){return te&&Zt>1&&(he||!h.skipRearg[kt])?De(yt,h.methodRearg[kt]||h.aryRearg[Zt]):yt}function mt(kt,yt){for(var Zt=-1,pe=(yt=ft(yt)).length,U=pe-1,Z=qe(Object(kt)),ne=Z;ne!=null&&++Zt1?nt($t,Pt):$t})(0,pe=H(U,pe),ye),!1}})),!pe})),pe||(pe=Z),pe==yt&&(pe=se?nt(pe,1):function(){return yt.apply(this,arguments)}),pe.convert=ur(U,yt),pe.placeholder=yt.placeholder=Zt,pe}if(!z)return Tt(T,I,ie);var Gt=I,Sr=[];return gt(Nt,(function(kt){gt(h.aryMethod[kt],(function(yt){var Zt=Gt[h.remap[yt]||yt];Zt&&Sr.push([yt,Tt(yt,Zt,Gt)])}))})),gt(Se(Gt),(function(kt){var yt=Gt[kt];if(typeof yt=="function"){for(var Zt=Sr.length;Zt--;)if(Sr[Zt][0]==kt)return;yt.convert=ur(kt,yt),Sr.push([kt,yt])}})),gt(Sr,(function(kt){Gt[kt[0]]=kt[1]})),Gt.convert=function(yt){return Gt.runInContext.convert(yt)(void 0)},Gt.placeholder=Gt,gt(Se(Gt),(function(kt){gt(h.realToAlias[kt]||[],(function(yt){Gt[yt]=Gt[kt]}))})),Gt}},16962(w,N){N.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},N.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},N.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},N.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},N.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},N.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},N.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},N.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},N.realToAlias=(function(){var s=Object.prototype.hasOwnProperty,h=N.aliasToReal,v={};for(var f in h){var y=h[f];s.call(v,y)?v[y].push(f):v[y]=[f]}return v})(),N.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},N.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},N.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},47934(w,N,s){w.exports={ary:s(64626),assign:s(74733),clone:s(32629),curry:s(49747),forEach:s(83729),isArray:s(56449),isError:s(23546),isFunction:s(1882),isWeakMap:s(47886),iteratee:s(33855),keys:s(88984),rearg:s(84195),toInteger:s(61489),toPath:s(42072)}},56367(w,N,s){w.exports=s(77731)},79920(w,N,s){var h=s(73424),v=s(47934);w.exports=function(y,m,g){return h(v,y,m,g)}},2874(w){w.exports={}},77731(w,N,s){var h=s(79920)("set",s(63560));h.placeholder=s(2874),w.exports=h},58156(w,N,s){var h=s(47422);w.exports=function(f,y,m){var g=f==null?void 0:h(f,y);return g===void 0?m:g}},61448(w,N,s){var h=s(20426),v=s(49326);w.exports=function(y,m){return y!=null&&v(y,m,h)}},80631(w,N,s){var h=s(28077),v=s(49326);w.exports=function(y,m){return y!=null&&v(y,m,h)}},83488(w){w.exports=function(s){return s}},72428(w,N,s){var h=s(27534),v=s(40346),f=Object.prototype,y=f.hasOwnProperty,m=f.propertyIsEnumerable,g=h((function(){return arguments})())?h:function(S){return v(S)&&y.call(S,"callee")&&!m.call(S,"callee")};w.exports=g},56449(w){var N=Array.isArray;w.exports=N},64894(w,N,s){var h=s(1882),v=s(30294);w.exports=function(y){return y!=null&&v(y.length)&&!h(y)}},83693(w,N,s){var h=s(64894),v=s(40346);w.exports=function(y){return v(y)&&h(y)}},53812(w,N,s){var h=s(72552),v=s(40346);w.exports=function(y){return y===!0||y===!1||v(y)&&h(y)=="[object Boolean]"}},3656(w,N,s){w=s.nmd(w);var h=s(9325),v=s(89935),f=N&&!N.nodeType&&N,y=f&&w&&!w.nodeType&&w,m=y&&y.exports===f?h.Buffer:void 0,g=(m?m.isBuffer:void 0)||v;w.exports=g},62193(w,N,s){var h=s(88984),v=s(5861),f=s(72428),y=s(56449),m=s(64894),g=s(3656),S=s(55527),_=s(37167),T=Object.prototype.hasOwnProperty;w.exports=function(j){if(j==null)return!0;if(m(j)&&(y(j)||typeof j=="string"||typeof j.splice=="function"||g(j)||_(j)||f(j)))return!j.length;var M=v(j);if(M=="[object Map]"||M=="[object Set]")return!j.size;if(S(j))return!h(j).length;for(var z in j)if(T.call(j,z))return!1;return!0}},2404(w,N,s){var h=s(60270);w.exports=function(f,y){return h(f,y)}},23546(w,N,s){var h=s(72552),v=s(40346),f=s(11331);w.exports=function(m){if(!v(m))return!1;var g=h(m);return g=="[object Error]"||g=="[object DOMException]"||typeof m.message=="string"&&typeof m.name=="string"&&!f(m)}},1882(w,N,s){var h=s(72552),v=s(23805);w.exports=function(y){if(!v(y))return!1;var m=h(y);return m=="[object Function]"||m=="[object GeneratorFunction]"||m=="[object AsyncFunction]"||m=="[object Proxy]"}},30294(w){w.exports=function(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=9007199254740991}},87730(w,N,s){var h=s(29172),v=s(27301),f=s(86009),y=f&&f.isMap,m=y?v(y):h;w.exports=m},5187(w){w.exports=function(s){return s===null}},98023(w,N,s){var h=s(72552),v=s(40346);w.exports=function(y){return typeof y=="number"||v(y)&&h(y)=="[object Number]"}},23805(w){w.exports=function(s){var h=typeof s;return s!=null&&(h=="object"||h=="function")}},40346(w){w.exports=function(s){return s!=null&&typeof s=="object"}},11331(w,N,s){var h=s(72552),v=s(28879),f=s(40346),y=Function.prototype,m=Object.prototype,g=y.toString,S=m.hasOwnProperty,_=g.call(Object);w.exports=function(I){if(!f(I)||h(I)!="[object Object]")return!1;var j=v(I);if(j===null)return!0;var M=S.call(j,"constructor")&&j.constructor;return typeof M=="function"&&M instanceof M&&g.call(M)==_}},38440(w,N,s){var h=s(16038),v=s(27301),f=s(86009),y=f&&f.isSet,m=y?v(y):h;w.exports=m},85015(w,N,s){var h=s(72552),v=s(56449),f=s(40346);w.exports=function(m){return typeof m=="string"||!v(m)&&f(m)&&h(m)=="[object String]"}},44394(w,N,s){var h=s(72552),v=s(40346);w.exports=function(y){return typeof y=="symbol"||v(y)&&h(y)=="[object Symbol]"}},37167(w,N,s){var h=s(4901),v=s(27301),f=s(86009),y=f&&f.isTypedArray,m=y?v(y):h;w.exports=m},47886(w,N,s){var h=s(5861),v=s(40346);w.exports=function(y){return v(y)&&h(y)=="[object WeakMap]"}},33855(w,N,s){var h=s(9999),v=s(15389);w.exports=function(y){return v(typeof y=="function"?y:h(y,1))}},95950(w,N,s){var h=s(70695),v=s(88984),f=s(64894);w.exports=function(m){return f(m)?h(m):v(m)}},37241(w,N,s){var h=s(70695),v=s(72903),f=s(64894);w.exports=function(m){return f(m)?h(m,!0):v(m)}},68090(w){w.exports=function(s){var h=s==null?0:s.length;return h?s[h-1]:void 0}},50104(w,N,s){var h=s(53661);function v(f,y){if(typeof f!="function"||y!=null&&typeof y!="function")throw new TypeError("Expected a function");var m=function(){var g=arguments,S=y?y.apply(this,g):g[0],_=m.cache;if(_.has(S))return _.get(S);var T=f.apply(this,g);return m.cache=_.set(S,T)||_,T};return m.cache=new(v.Cache||h),m}v.Cache=h,w.exports=v},55364(w,N,s){var h=s(85250),v=s(20999)((function(f,y,m){h(f,y,m)}));w.exports=v},6048(w){w.exports=function(s){if(typeof s!="function")throw new TypeError("Expected a function");return function(){var h=arguments;switch(h.length){case 0:return!s.call(this);case 1:return!s.call(this,h[0]);case 2:return!s.call(this,h[0],h[1]);case 3:return!s.call(this,h[0],h[1],h[2])}return!s.apply(this,h)}}},63950(w){w.exports=function(){}},10124(w,N,s){var h=s(9325);w.exports=function(){return h.Date.now()}},90179(w,N,s){var h=s(34932),v=s(9999),f=s(19931),y=s(31769),m=s(21791),g=s(53138),S=s(38816),_=s(83349),T=S((function(I,j){var M={};if(I==null)return M;var z=!1;j=h(j,(function(Y){return Y=y(Y,I),z||(z=Y.length>1),Y})),m(I,_(I),M),z&&(M=v(M,7,g));for(var K=j.length;K--;)f(M,j[K]);return M}));w.exports=T},50583(w,N,s){var h=s(47237),v=s(17255),f=s(28586),y=s(77797);w.exports=function(g){return f(g)?h(y(g)):v(g)}},84195(w,N,s){var h=s(66977),v=s(38816),f=v((function(y,m){return h(y,256,void 0,void 0,void 0,m)}));w.exports=f},40860(w,N,s){var h=s(40882),v=s(80909),f=s(15389),y=s(85558),m=s(56449);w.exports=function(S,_,T){var I=m(S)?h:y,j=arguments.length<3;return I(S,f(_,4),T,j,v)}},63560(w,N,s){var h=s(73170);w.exports=function(f,y,m){return f==null?f:h(f,y,m)}},42426(w,N,s){var h=s(14248),v=s(15389),f=s(90916),y=s(56449),m=s(36800);w.exports=function(S,_,T){var I=y(S)?h:f;return T&&m(S,_,T)&&(_=void 0),I(S,v(_,3))}},63345(w){w.exports=function(){return[]}},89935(w){w.exports=function(){return!1}},17400(w,N,s){var h=s(99374),v=1/0;w.exports=function(y){return y?(y=h(y))===v||y===-1/0?17976931348623157e292*(y<0?-1:1):y==y?y:0:y===0?y:0}},61489(w,N,s){var h=s(17400);w.exports=function(f){var y=h(f),m=y%1;return y==y?m?y-m:y:0}},80218(w,N,s){var h=s(13222);w.exports=function(f){return h(f).toLowerCase()}},99374(w,N,s){var h=s(54128),v=s(23805),f=s(44394),y=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,g=/^0o[0-7]+$/i,S=parseInt;w.exports=function(T){if(typeof T=="number")return T;if(f(T))return NaN;if(v(T)){var I=typeof T.valueOf=="function"?T.valueOf():T;T=v(I)?I+"":I}if(typeof T!="string")return T===0?T:+T;T=h(T);var j=m.test(T);return j||g.test(T)?S(T.slice(2),j?2:8):y.test(T)?NaN:+T}},42072(w,N,s){var h=s(34932),v=s(23007),f=s(56449),y=s(44394),m=s(61802),g=s(77797),S=s(13222);w.exports=function(T){return f(T)?h(T,g):y(T)?[T]:v(m(S(T)))}},69884(w,N,s){var h=s(21791),v=s(37241);w.exports=function(y){return h(y,v(y))}},13222(w,N,s){var h=s(77556);w.exports=function(f){return f==null?"":h(f)}},55808(w,N,s){var h=s(12507)("toUpperCase");w.exports=h},66645(w,N,s){var h=s(1733),v=s(45434),f=s(13222),y=s(22225);w.exports=function(g,S,_){return g=f(g),(S=_?void 0:S)===void 0?v(g)?y(g):h(g):g.match(S)||[]}},53758(w,N,s){var h=s(30980),v=s(56017),f=s(94033),y=s(56449),m=s(40346),g=s(80257),S=Object.prototype.hasOwnProperty;function _(T){if(m(T)&&!y(T)&&!(T instanceof h)){if(T instanceof v)return T;if(S.call(T,"__wrapped__"))return g(T)}return new v(T)}_.prototype=f.prototype,_.prototype.constructor=_,w.exports=_},47248(w,N,s){var h=s(16547),v=s(51234);w.exports=function(y,m){return v(y||[],m||[],h)}},43768(w,N,s){var h=s(45981),v=s(85587);N.highlight=y,N.highlightAuto=function(_,T){var I,j,M,z,K=T||{},Y=K.subset||h.listLanguages();K.prefix;var B=Y.length,X=-1;if(typeof _!="string")throw v("Expected `string` for value, got `%s`",_);for(j={relevance:0,language:null,value:[]},I={relevance:0,language:null,value:[]};++Xj.relevance&&(j=M),M.relevance>I.relevance&&(j=I,I=M));return j.language&&(I.secondBest=j),I},N.registerLanguage=function(_,T){h.registerLanguage(_,T)},N.listLanguages=function(){return h.listLanguages()},N.registerAlias=function(_,T){var I,j=_;T&&((j={})[_]=T);for(I in j)h.registerAliases(j[I],{languageName:I})},m.prototype.addText=function(_){var T,I,j=this.stack;_!==""&&(T=j[j.length-1],(I=T.children[T.children.length-1])&&I.type==="text"?I.value+=_:T.children.push({type:"text",value:_}))},m.prototype.addKeyword=function(_,T){this.openNode(T),this.addText(_),this.closeNode()},m.prototype.addSublanguage=function(_,T){var I=this.stack,j=I[I.length-1],M=_.rootNode.children,z=T?{type:"element",tagName:"span",properties:{className:[T]},children:M}:M;j.children=j.children.concat(z)},m.prototype.openNode=function(_){var T=this.stack,I=this.options.classPrefix+_,j=T[T.length-1],M={type:"element",tagName:"span",properties:{className:[I]},children:[]};j.children.push(M),T.push(M)},m.prototype.closeNode=function(){this.stack.pop()},m.prototype.closeAllNodes=g,m.prototype.finalize=g,m.prototype.toHTML=function(){return""};var f="hljs-";function y(S,_,T){var I,j=h.configure({}),M=(T||{}).prefix;if(typeof S!="string")throw v("Expected `string` for name, got `%s`",S);if(!h.getLanguage(S))throw v("Unknown language: `%s` is not registered",S);if(typeof _!="string")throw v("Expected `string` for value, got `%s`",_);if(M==null&&(M=f),h.configure({__emitter:m,classPrefix:M}),I=h.highlight(_,{language:S,ignoreIllegals:!0}),h.configure(j||{}),I.errorRaised)throw I.errorRaised;return{relevance:I.relevance,language:I.language,value:I.emitter.rootNode.children}}function m(S){this.options=S,this.rootNode={children:[]},this.stack=[this.rootNode]}function g(){}},71514(w){w.exports=Math.abs},58968(w){w.exports=Math.floor},94459(w){w.exports=Number.isNaN||function(s){return s!=s}},6188(w){w.exports=Math.max},68002(w){w.exports=Math.min},75880(w){w.exports=Math.pow},70414(w){w.exports=Math.round},73093(w,N,s){var h=s(94459);w.exports=function(f){return h(f)||f===0?f:f<0?-1:1}},92340(w,N,s){const h=s(6048);function v(y){return typeof y=="string"?m=>m.element===y:y.constructor&&y.extend?m=>m instanceof y:y}class f{constructor(m){this.elements=m||[]}toValue(){return this.elements.map((m=>m.toValue()))}map(m,g){return this.elements.map(m,g)}flatMap(m,g){return this.map(m,g).reduce(((S,_)=>S.concat(_)),[])}compactMap(m,g){const S=[];return this.forEach((_=>{const T=m.bind(g)(_);T&&S.push(T)})),S}filter(m,g){return m=v(m),new f(this.elements.filter(m,g))}reject(m,g){return m=v(m),new f(this.elements.filter(h(m),g))}find(m,g){return m=v(m),this.elements.find(m,g)}forEach(m,g){this.elements.forEach(m,g)}reduce(m,g){return this.elements.reduce(m,g)}includes(m){return this.elements.some((g=>g.equals(m)))}shift(){return this.elements.shift()}unshift(m){this.elements.unshift(this.refract(m))}push(m){return this.elements.push(this.refract(m)),this}add(m){this.push(m)}get(m){return this.elements[m]}getValue(m){const g=this.elements[m];if(g)return g.toValue()}get length(){return this.elements.length}get isEmpty(){return this.elements.length===0}get first(){return this.elements[0]}}typeof Symbol<"u"&&(f.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),w.exports=f},55973(w){class N{constructor(h,v){this.key=h,this.value=v}clone(){const h=new N;return this.key&&(h.key=this.key.clone()),this.value&&(h.value=this.value.clone()),h}}w.exports=N},3110(w,N,s){const h=s(5187),v=s(85015),f=s(98023),y=s(53812),m=s(23805),g=s(85105),S=s(86804);class _{constructor(I){this.elementMap={},this.elementDetection=[],this.Element=S.Element,this.KeyValuePair=S.KeyValuePair,I&&I.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(I){return I.namespace&&I.namespace({base:this}),I.load&&I.load({base:this}),this}useDefault(){return this.register("null",S.NullElement).register("string",S.StringElement).register("number",S.NumberElement).register("boolean",S.BooleanElement).register("array",S.ArrayElement).register("object",S.ObjectElement).register("member",S.MemberElement).register("ref",S.RefElement).register("link",S.LinkElement),this.detect(h,S.NullElement,!1).detect(v,S.StringElement,!1).detect(f,S.NumberElement,!1).detect(y,S.BooleanElement,!1).detect(Array.isArray,S.ArrayElement,!1).detect(m,S.ObjectElement,!1),this}register(I,j){return this._elements=void 0,this.elementMap[I]=j,this}unregister(I){return this._elements=void 0,delete this.elementMap[I],this}detect(I,j,M){return M===void 0||M?this.elementDetection.unshift([I,j]):this.elementDetection.push([I,j]),this}toElement(I){if(I instanceof this.Element)return I;let j;for(let M=0;M{const j=I[0].toUpperCase()+I.substr(1);this._elements[j]=this.elementMap[I]}))),this._elements}get serialiser(){return new g(this)}}g.prototype.Namespace=_,w.exports=_},10866(w,N,s){const h=s(6048),v=s(92340);class f extends v{map(m,g){return this.elements.map((S=>m.bind(g)(S.value,S.key,S)))}filter(m,g){return new f(this.elements.filter((S=>m.bind(g)(S.value,S.key,S))))}reject(m,g){return this.filter(h(m.bind(g)))}forEach(m,g){return this.elements.forEach(((S,_)=>{m.bind(g)(S.value,S.key,S,_)}))}keys(){return this.map(((m,g)=>g.toValue()))}values(){return this.map((m=>m.toValue()))}}w.exports=f},86804(w,N,s){const h=s(10316),v=s(41067),f=s(71167),y=s(40239),m=s(12242),g=s(6233),S=s(87726),_=s(61045),T=s(86303),I=s(14540),j=s(92340),M=s(10866),z=s(55973);function K(Y){return Y instanceof h?Y:typeof Y=="string"?new f(Y):typeof Y=="number"?new y(Y):typeof Y=="boolean"?new m(Y):Y===null?new v:Array.isArray(Y)?new g(Y.map(K)):typeof Y=="object"?new _(Y):Y}h.prototype.ObjectElement=_,h.prototype.RefElement=I,h.prototype.MemberElement=S,h.prototype.refract=K,j.prototype.refract=K,w.exports={Element:h,NullElement:v,StringElement:f,NumberElement:y,BooleanElement:m,ArrayElement:g,MemberElement:S,ObjectElement:_,LinkElement:T,RefElement:I,refract:K,ArraySlice:j,ObjectSlice:M,KeyValuePair:z}},86303(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f||[],y,m),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(f){this.attributes.set("relation",f)}get href(){return this.attributes.get("href")}set href(f){this.attributes.set("href",f)}}},14540(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f||[],y,m),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(f){this.attributes.set("path",f)}}},34035(w,N,s){const h=s(3110),v=s(86804);N.g$=h,N.KeyValuePair=s(55973),N.G6=v.ArraySlice,N.ot=v.ObjectSlice,N.Hg=v.Element,N.Om=v.StringElement,N.kT=v.NumberElement,N.bd=v.BooleanElement,N.Os=v.NullElement,N.wE=v.ArrayElement,N.Sh=v.ObjectElement,N.Pr=v.MemberElement,N.sI=v.RefElement,N.Ft=v.LinkElement,N.e=v.refract,s(85105),s(75147)},6233(w,N,s){const h=s(6048),v=s(10316),f=s(92340);class y extends v{constructor(g,S,_){super(g||[],S,_),this.element="array"}primitive(){return"array"}get(g){return this.content[g]}getValue(g){const S=this.get(g);if(S)return S.toValue()}getIndex(g){return this.content[g]}set(g,S){return this.content[g]=this.refract(S),this}remove(g){const S=this.content.splice(g,1);return S.length?S[0]:null}map(g,S){return this.content.map(g,S)}flatMap(g,S){return this.map(g,S).reduce(((_,T)=>_.concat(T)),[])}compactMap(g,S){const _=[];return this.forEach((T=>{const I=g.bind(S)(T);I&&_.push(I)})),_}filter(g,S){return new f(this.content.filter(g,S))}reject(g,S){return this.filter(h(g),S)}reduce(g,S){let _,T;S!==void 0?(_=0,T=this.refract(S)):(_=1,T=this.primitive()==="object"?this.first.value:this.first);for(let I=_;I{g.bind(S)(_,this.refract(T))}))}shift(){return this.content.shift()}unshift(g){this.content.unshift(this.refract(g))}push(g){return this.content.push(this.refract(g)),this}add(g){this.push(g)}findElements(g,S){const _=S||{},T=!!_.recursive,I=_.results===void 0?[]:_.results;return this.forEach(((j,M,z)=>{T&&j.findElements!==void 0&&j.findElements(g,{results:I,recursive:T}),g(j,M,z)&&I.push(j)})),I}find(g){return new f(this.findElements(g,{recursive:!0}))}findByElement(g){return this.find((S=>S.element===g))}findByClass(g){return this.find((S=>S.classes.includes(g)))}getById(g){return this.find((S=>S.id.toValue()===g)).first}includes(g){return this.content.some((S=>S.equals(g)))}contains(g){return this.includes(g)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(g){return new this.constructor(this.content.concat(g.content))}"fantasy-land/concat"(g){return this.concat(g)}"fantasy-land/map"(g){return new this.constructor(this.map(g))}"fantasy-land/chain"(g){return this.map((S=>g(S)),this).reduce(((S,_)=>S.concat(_)),this.empty())}"fantasy-land/filter"(g){return new this.constructor(this.content.filter(g))}"fantasy-land/reduce"(g,S){return this.content.reduce(g,S)}get length(){return this.content.length}get isEmpty(){return this.content.length===0}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}y.empty=function(){return new this},y["fantasy-land/empty"]=y.empty,typeof Symbol<"u"&&(y.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),w.exports=y},12242(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f,y,m),this.element="boolean"}primitive(){return"boolean"}}},10316(w,N,s){const h=s(2404),v=s(55973),f=s(92340);class y{constructor(g,S,_){S&&(this.meta=S),_&&(this.attributes=_),this.content=g}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((g=>{g.parent=this,g.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const g=new this.constructor;return g.element=this.element,this.meta.length&&(g._meta=this.meta.clone()),this.attributes.length&&(g._attributes=this.attributes.clone()),this.content?this.content.clone?g.content=this.content.clone():Array.isArray(this.content)?g.content=this.content.map((S=>S.clone())):g.content=this.content:g.content=this.content,g}toValue(){return this.content instanceof y?this.content.toValue():this.content instanceof v?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((g=>g.toValue()),this):this.content}toRef(g){if(this.id.toValue()==="")throw Error("Cannot create reference to an element that does not contain an ID");const S=new this.RefElement(this.id.toValue());return g&&(S.path=g),S}findRecursive(...g){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const S=g.pop();let _=new f;const T=(j,M)=>(j.push(M),j),I=(j,M)=>{M.element===S&&j.push(M);const z=M.findRecursive(S);return z&&z.reduce(T,j),M.content instanceof v&&(M.content.key&&I(j,M.content.key),M.content.value&&I(j,M.content.value)),j};return this.content&&(this.content.element&&I(_,this.content),Array.isArray(this.content)&&this.content.reduce(I,_)),g.isEmpty||(_=_.filter((j=>{let M=j.parents.map((z=>z.element));for(const z in g){const K=g[z],Y=M.indexOf(K);if(Y===-1)return!1;M=M.splice(0,Y)}return!0}))),_}set(g){return this.content=g,this}equals(g){return h(this.toValue(),g)}getMetaProperty(g,S){if(!this.meta.hasKey(g)){if(this.isFrozen){const _=this.refract(S);return _.freeze(),_}this.meta.set(g,S)}return this.meta.get(g)}setMetaProperty(g,S){this.meta.set(g,S)}get element(){return this._storedElement||"element"}set element(g){this._storedElement=g}get content(){return this._content}set content(g){if(g instanceof y)this._content=g;else if(g instanceof f)this.content=g.elements;else if(typeof g=="string"||typeof g=="number"||typeof g=="boolean"||g==="null"||g==null)this._content=g;else if(g instanceof v)this._content=g;else if(Array.isArray(g))this._content=g.map(this.refract);else{if(typeof g!="object")throw new Error("Cannot set content to given value");this._content=Object.keys(g).map((S=>new this.MemberElement(S,g[S])))}}get meta(){if(!this._meta){if(this.isFrozen){const g=new this.ObjectElement;return g.freeze(),g}this._meta=new this.ObjectElement}return this._meta}set meta(g){g instanceof this.ObjectElement?this._meta=g:this.meta.set(g||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const g=new this.ObjectElement;return g.freeze(),g}this._attributes=new this.ObjectElement}return this._attributes}set attributes(g){g instanceof this.ObjectElement?this._attributes=g:this.attributes.set(g||{})}get id(){return this.getMetaProperty("id","")}set id(g){this.setMetaProperty("id",g)}get classes(){return this.getMetaProperty("classes",[])}set classes(g){this.setMetaProperty("classes",g)}get title(){return this.getMetaProperty("title","")}set title(g){this.setMetaProperty("title",g)}get description(){return this.getMetaProperty("description","")}set description(g){this.setMetaProperty("description",g)}get links(){return this.getMetaProperty("links",[])}set links(g){this.setMetaProperty("links",g)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:g}=this;const S=new f;for(;g;)S.push(g),g=g.parent;return S}get children(){if(Array.isArray(this.content))return new f(this.content);if(this.content instanceof v){const g=new f([this.content.key]);return this.content.value&&g.push(this.content.value),g}return this.content instanceof y?new f([this.content]):new f}get recursiveChildren(){const g=new f;return this.children.forEach((S=>{g.push(S),S.recursiveChildren.forEach((_=>{g.push(_)}))})),g}}w.exports=y},87726(w,N,s){const h=s(55973),v=s(10316);w.exports=class extends v{constructor(y,m,g,S){super(new h,g,S),this.element="member",this.key=y,this.value=m}get key(){return this.content.key}set key(y){this.content.key=this.refract(y)}get value(){return this.content.value}set value(y){this.content.value=this.refract(y)}}},41067(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f||null,y,m),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},40239(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f,y,m),this.element="number"}primitive(){return"number"}}},61045(w,N,s){const h=s(6048),v=s(23805),f=s(6233),y=s(87726),m=s(10866);w.exports=class extends f{constructor(S,_,T){super(S||[],_,T),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((S,_)=>(S[_.key.toValue()]=_.value?_.value.toValue():void 0,S)),{})}get(S){const _=this.getMember(S);if(_)return _.value}getMember(S){if(S!==void 0)return this.content.find((_=>_.key.toValue()===S))}remove(S){let _=null;return this.content=this.content.filter((T=>T.key.toValue()!==S||(_=T,!1))),_}getKey(S){const _=this.getMember(S);if(_)return _.key}set(S,_){if(v(S))return Object.keys(S).forEach((j=>{this.set(j,S[j])})),this;const T=S,I=this.getMember(T);return I?I.value=_:this.content.push(new y(T,_)),this}keys(){return this.content.map((S=>S.key.toValue()))}values(){return this.content.map((S=>S.value.toValue()))}hasKey(S){return this.content.some((_=>_.key.equals(S)))}items(){return this.content.map((S=>[S.key.toValue(),S.value.toValue()]))}map(S,_){return this.content.map((T=>S.bind(_)(T.value,T.key,T)))}compactMap(S,_){const T=[];return this.forEach(((I,j,M)=>{const z=S.bind(_)(I,j,M);z&&T.push(z)})),T}filter(S,_){return new m(this.content).filter(S,_)}reject(S,_){return this.filter(h(S),_)}forEach(S,_){return this.content.forEach((T=>S.bind(_)(T.value,T.key,T)))}}},71167(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f,y,m),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},75147(w,N,s){const h=s(85105);w.exports=class extends h{serialise(f){if(!(f instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${f}\` is not an Element instance`);let y;f._attributes&&f.attributes.get("variable")&&(y=f.attributes.get("variable"));const m={element:f.element};f._meta&&f._meta.length>0&&(m.meta=this.serialiseObject(f.meta));const g=f.element==="enum"||f.attributes.keys().indexOf("enumerations")!==-1;if(g){const S=this.enumSerialiseAttributes(f);S&&(m.attributes=S)}else if(f._attributes&&f._attributes.length>0){let{attributes:S}=f;S.get("metadata")&&(S=S.clone(),S.set("meta",S.get("metadata")),S.remove("metadata")),f.element==="member"&&y&&(S=S.clone(),S.remove("variable")),S.length>0&&(m.attributes=this.serialiseObject(S))}if(g)m.content=this.enumSerialiseContent(f,m);else if(this[`${f.element}SerialiseContent`])m.content=this[`${f.element}SerialiseContent`](f,m);else if(f.content!==void 0){let S;y&&f.content.key?(S=f.content.clone(),S.key.attributes.set("variable",y),S=this.serialiseContent(S)):S=this.serialiseContent(f.content),this.shouldSerialiseContent(f,S)&&(m.content=S)}else this.shouldSerialiseContent(f,f.content)&&f instanceof this.namespace.elements.Array&&(m.content=[]);return m}shouldSerialiseContent(f,y){return f.element==="parseResult"||f.element==="httpRequest"||f.element==="httpResponse"||f.element==="category"||f.element==="link"||y!==void 0&&(!Array.isArray(y)||y.length!==0)}refSerialiseContent(f,y){return delete y.attributes,{href:f.toValue(),path:f.path.toValue()}}sourceMapSerialiseContent(f){return f.toValue()}dataStructureSerialiseContent(f){return[this.serialiseContent(f.content)]}enumSerialiseAttributes(f){const y=f.attributes.clone(),m=y.remove("enumerations")||new this.namespace.elements.Array([]),g=y.get("default");let S=y.get("samples")||new this.namespace.elements.Array([]);if(g&&g.content&&(g.content.attributes&&g.content.attributes.remove("typeAttributes"),y.set("default",new this.namespace.elements.Array([g.content]))),S.forEach((_=>{_.content&&_.content.element&&_.content.attributes.remove("typeAttributes")})),f.content&&m.length!==0&&S.unshift(f.content),S=S.map((_=>_ instanceof this.namespace.elements.Array?[_]:new this.namespace.elements.Array([_.content]))),S.length&&y.set("samples",S),y.length>0)return this.serialiseObject(y)}enumSerialiseContent(f){if(f._attributes){const y=f.attributes.get("enumerations");if(y&&y.length>0)return y.content.map((m=>{const g=m.clone();return g.attributes.remove("typeAttributes"),this.serialise(g)}))}if(f.content){const y=f.content.clone();return y.attributes.remove("typeAttributes"),[this.serialise(y)]}return[]}deserialise(f){if(typeof f=="string")return new this.namespace.elements.String(f);if(typeof f=="number")return new this.namespace.elements.Number(f);if(typeof f=="boolean")return new this.namespace.elements.Boolean(f);if(f===null)return new this.namespace.elements.Null;if(Array.isArray(f))return new this.namespace.elements.Array(f.map(this.deserialise,this));const y=this.namespace.getElementClass(f.element),m=new y;m.element!==f.element&&(m.element=f.element),f.meta&&this.deserialiseObject(f.meta,m.meta),f.attributes&&this.deserialiseObject(f.attributes,m.attributes);const g=this.deserialiseContent(f.content);if(g===void 0&&m.content!==null||(m.content=g),m.element==="enum"){m.content&&m.attributes.set("enumerations",m.content);let S=m.attributes.get("samples");if(m.attributes.remove("samples"),S){const T=S;S=new this.namespace.elements.Array,T.forEach((j=>{j.forEach((M=>{const z=new y(M);z.element=m.element,S.push(z)}))}));const I=S.shift();m.content=I?I.content:void 0,m.attributes.set("samples",S)}else m.content=void 0;let _=m.attributes.get("default");if(_&&_.length>0){_=_.get(0);const T=new y(_);T.element=m.element,m.attributes.set("default",T)}}else if(m.element==="dataStructure"&&Array.isArray(m.content))[m.content]=m.content;else if(m.element==="category"){const S=m.attributes.get("meta");S&&(m.attributes.set("metadata",S),m.attributes.remove("meta"))}else m.element==="member"&&m.key&&m.key._attributes&&m.key._attributes.getValue("variable")&&(m.attributes.set("variable",m.key.attributes.get("variable")),m.key.attributes.remove("variable"));return m}serialiseContent(f){if(f instanceof this.namespace.elements.Element)return this.serialise(f);if(f instanceof this.namespace.KeyValuePair){const y={key:this.serialise(f.key)};return f.value&&(y.value=this.serialise(f.value)),y}return f&&f.map?f.map(this.serialise,this):f}deserialiseContent(f){if(f){if(f.element)return this.deserialise(f);if(f.key){const y=new this.namespace.KeyValuePair(this.deserialise(f.key));return f.value&&(y.value=this.deserialise(f.value)),y}if(f.map)return f.map(this.deserialise,this)}return f}shouldRefract(f){return!!(f._attributes&&f.attributes.keys().length||f._meta&&f.meta.keys().length)||f.element!=="enum"&&(f.element!==f.primitive()||f.element==="member")}convertKeyToRefract(f,y){return this.shouldRefract(y)?this.serialise(y):y.element==="enum"?this.serialiseEnum(y):y.element==="array"?y.map((m=>this.shouldRefract(m)||f==="default"?this.serialise(m):m.element==="array"||m.element==="object"||m.element==="enum"?m.children.map((g=>this.serialise(g))):m.toValue())):y.element==="object"?(y.content||[]).map(this.serialise,this):y.toValue()}serialiseEnum(f){return f.children.map((y=>this.serialise(y)))}serialiseObject(f){const y={};return f.forEach(((m,g)=>{if(m){const S=g.toValue();y[S]=this.convertKeyToRefract(S,m)}})),y}deserialiseObject(f,y){Object.keys(f).forEach((m=>{y.set(m,this.deserialise(f[m]))}))}}},85105(w){w.exports=class{constructor(s){this.namespace=s||new this.Namespace}serialise(s){if(!(s instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${s}\` is not an Element instance`);const h={element:s.element};s._meta&&s._meta.length>0&&(h.meta=this.serialiseObject(s.meta)),s._attributes&&s._attributes.length>0&&(h.attributes=this.serialiseObject(s.attributes));const v=this.serialiseContent(s.content);return v!==void 0&&(h.content=v),h}deserialise(s){if(!s.element)throw new Error("Given value is not an object containing an element name");const h=new(this.namespace.getElementClass(s.element));h.element!==s.element&&(h.element=s.element),s.meta&&this.deserialiseObject(s.meta,h.meta),s.attributes&&this.deserialiseObject(s.attributes,h.attributes);const v=this.deserialiseContent(s.content);return v===void 0&&h.content!==null||(h.content=v),h}serialiseContent(s){if(s instanceof this.namespace.elements.Element)return this.serialise(s);if(s instanceof this.namespace.KeyValuePair){const h={key:this.serialise(s.key)};return s.value&&(h.value=this.serialise(s.value)),h}return s&&s.map?s.length===0?void 0:s.map(this.serialise,this):s}deserialiseContent(s){if(s){if(s.element)return this.deserialise(s);if(s.key){const h=new this.namespace.KeyValuePair(this.deserialise(s.key));return s.value&&(h.value=this.deserialise(s.value)),h}if(s.map)return s.map(this.deserialise,this)}return s}serialiseObject(s){const h={};if(s.forEach(((v,f)=>{v&&(h[f.toValue()]=this.serialise(v))})),Object.keys(h).length!==0)return h}deserialiseObject(s,h){Object.keys(s).forEach((v=>{h.set(v,this.deserialise(s[v]))}))}}},76578(w){w.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},65606(w){var N,s,h=w.exports={};function v(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}function y(z){if(N===setTimeout)return setTimeout(z,0);if((N===v||!N)&&setTimeout)return N=setTimeout,setTimeout(z,0);try{return N(z,0)}catch{try{return N.call(null,z,0)}catch{return N.call(this,z,0)}}}(function(){try{N=typeof setTimeout=="function"?setTimeout:v}catch{N=v}try{s=typeof clearTimeout=="function"?clearTimeout:f}catch{s=f}})();var m,g=[],S=!1,_=-1;function T(){S&&m&&(S=!1,m.length?g=m.concat(g):_=-1,g.length&&I())}function I(){if(!S){var z=y(T);S=!0;for(var K=g.length;K;){for(m=g,g=[];++_1)for(var Y=1;Yf)throw new RangeError("requested too many random bytes");var T=y.allocUnsafe(S);if(S>0)if(S>v)for(var I=0;I=0||(qe[Ve]=ge[Ve]);return qe})(B,X);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(B);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(B,te)&&(se[te]=B[te])}return se}function S(B,X){var te=Object.keys(B);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(B);X&&(ie=ie.filter((function(se){return Object.getOwnPropertyDescriptor(B,se).enumerable}))),te.push.apply(te,ie)}return te}function _(B){for(var X=1;X"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var ie,se=z(B);if(X){var Te=z(this).constructor;ie=Reflect.construct(se,arguments,Te)}else ie=se.apply(this,arguments);return(function(ge,ke){if(ke&&(h(ke)==="object"||typeof ke=="function"))return ke;if(ke!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M(ge)})(this,ie)}}function M(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function z(B){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(te){return te.__proto__||Object.getPrototypeOf(te)},z(B)}function K(B,X,te){return X in B?Object.defineProperty(B,X,{value:te,enumerable:!0,configurable:!0,writable:!0}):B[X]=te,B}var Y=(function(B){(function(se,Te){if(typeof Te!="function"&&Te!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(Te&&Te.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),Te&&I(se,Te)})(te,B);var X=j(te);function te(ie){var se;(function(ge,ke){if(!(ge instanceof ke))throw new TypeError("Cannot call a class as a function")})(this,te),K(M(se=X.call(this,ie)),"onChange",(function(he){he.persist();var ge=se.state.value,ke=se.props.minLength;se.setState({value:he.target.value},(function(){var Ve=se.state.value;Ve.length>=ke?se.notify(he):ge.length>Ve.length&&se.notify(_(_({},he),{},{target:_(_({},he.target),{},{value:""})}))}))})),K(M(se),"onKeyDown",(function(he){he.key==="Enter"&&se.forceNotify(he);var ge=se.props.onKeyDown;ge&&(he.persist(),ge(he))})),K(M(se),"onBlur",(function(he){se.forceNotify(he);var ge=se.props.onBlur;ge&&(he.persist(),ge(he))})),K(M(se),"createNotifier",(function(he){if(he<0)se.notify=function(){return null};else if(he===0)se.notify=se.doNotify;else{var ge=(0,f.default)((function(ke){se.isDebouncing=!1,se.doNotify(ke)}),he);se.notify=function(ke){se.isDebouncing=!0,ge(ke)},se.flush=function(){return ge.flush()},se.cancel=function(){se.isDebouncing=!1,ge.cancel()}}})),K(M(se),"doNotify",(function(){se.props.onChange.apply(void 0,arguments)})),K(M(se),"forceNotify",(function(he){var ge=se.props.debounceTimeout;if(se.isDebouncing||!(ge>0)){se.cancel&&se.cancel();var ke=se.state.value,Ve=se.props.minLength;ke.length>=Ve?se.doNotify(he):se.doNotify(_(_({},he),{},{target:_(_({},he.target),{},{value:ke})}))}})),se.isDebouncing=!1,se.state={value:ie.value===void 0||ie.value===null?"":ie.value};var Te=se.props.debounceTimeout;return se.createNotifier(Te),se}return(function(se,Te,he){return Te&&T(se.prototype,Te),Object.defineProperty(se,"prototype",{writable:!1}),se})(te,[{key:"componentDidUpdate",value:function(se){if(!this.isDebouncing){var Te=this.props,he=Te.value,ge=Te.debounceTimeout,ke=se.debounceTimeout,Ve=se.value,He=this.state.value;he!==void 0&&Ve!==he&&He!==he&&this.setState({value:he}),ge!==ke&&this.createNotifier(ge)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var se,Te,he=this.props,ge=he.element,ke=(he.onChange,he.value,he.minLength,he.debounceTimeout,he.forceNotifyByEnter),Ve=he.forceNotifyOnBlur,He=he.onKeyDown,qe=he.onBlur,nt=he.inputRef,gt=g(he,y),Re=this.state.value;se=ke?{onKeyDown:this.onKeyDown}:He?{onKeyDown:He}:{},Te=Ve?{onBlur:this.onBlur}:qe?{onBlur:qe}:{};var u=nt?{ref:nt}:{};return v.default.createElement(ge,_(_(_(_({},gt),{},{onChange:this.onChange,value:Re},se),Te),u))}}]),te})(v.default.PureComponent);N.DebounceInput=Y,K(Y,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0})},24677(w,N,s){var h=s(81214).DebounceInput;h.DebounceInput=h,w.exports=h},22551(w,N,s){var h=s(96540),v=s(69982);function f(i){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+i,b=1;b"u"||window.document===void 0||window.document.createElement===void 0),T=Object.prototype.hasOwnProperty,I=/^[: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]*$/,j={},M={};function z(i,l,b,C,$,ee,ue){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=C,this.attributeNamespace=$,this.mustUseProperty=b,this.propertyName=i,this.type=l,this.sanitizeURL=ee,this.removeEmptyString=ue}var K={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(i){K[i]=new z(i,0,!1,i,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(i){var l=i[0];K[l]=new z(l,1,!1,i[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(i){K[i]=new z(i,2,!1,i.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(i){K[i]=new z(i,2,!1,i,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(i){K[i]=new z(i,3,!1,i.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(i){K[i]=new z(i,3,!0,i,null,!1,!1)})),["capture","download"].forEach((function(i){K[i]=new z(i,4,!1,i,null,!1,!1)})),["cols","rows","size","span"].forEach((function(i){K[i]=new z(i,6,!1,i,null,!1,!1)})),["rowSpan","start"].forEach((function(i){K[i]=new z(i,5,!1,i.toLowerCase(),null,!1,!1)}));var Y=/[\-:]([a-z])/g;function B(i){return i[1].toUpperCase()}function X(i,l,b,C){var $=K.hasOwnProperty(l)?K[l]:null;($!==null?$.type!==0:C||!(2Ce}return!1})(l,b,$,C)&&(b=null),C||$===null?(function(ue){return!!T.call(M,ue)||!T.call(j,ue)&&(I.test(ue)?M[ue]=!0:(j[ue]=!0,!1))})(l)&&(b===null?i.removeAttribute(l):i.setAttribute(l,""+b)):$.mustUseProperty?i[$.propertyName]=b===null?$.type!==3&&"":b:(l=$.attributeName,C=$.attributeNamespace,b===null?i.removeAttribute(l):(b=($=$.type)===3||$===4&&b===!0?"":""+b,C?i.setAttributeNS(C,l,b):i.setAttribute(l,b))))}"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(i){var l=i.replace(Y,B);K[l]=new z(l,1,!1,i,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(i){var l=i.replace(Y,B);K[l]=new z(l,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(i){var l=i.replace(Y,B);K[l]=new z(l,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(i){K[i]=new z(i,1,!1,i.toLowerCase(),null,!1,!1)})),K.xlinkHref=new z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(i){K[i]=new z(i,1,!1,i.toLowerCase(),null,!0,!0)}));var te=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ie=Symbol.for("react.element"),se=Symbol.for("react.portal"),Te=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),ge=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),Ve=Symbol.for("react.context"),He=Symbol.for("react.forward_ref"),qe=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),gt=Symbol.for("react.memo"),Re=Symbol.for("react.lazy"),u=Symbol.for("react.offscreen"),at=Symbol.iterator;function Xe(i){return i===null||typeof i!="object"?null:typeof(i=at&&i[at]||i["@@iterator"])=="function"?i:null}var Se,De=Object.assign;function Ke(i){if(Se===void 0)try{throw Error()}catch(b){var l=b.stack.trim().match(/\n( *(at )?)/);Se=l&&l[1]||""}return` +`+Se+i}var ft=!1;function Nt(i,l){if(!i||ft)return"";ft=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(Ue){var C=Ue}Reflect.construct(i,[],l)}else{try{l.call()}catch(Ue){C=Ue}i.call(l.prototype)}else{try{throw Error()}catch(Ue){C=Ue}i()}}catch(Ue){if(Ue&&C&&typeof Ue.stack=="string"){for(var $=Ue.stack.split(` +`),ee=C.stack.split(` +`),ue=$.length-1,Ce=ee.length-1;1<=ue&&0<=Ce&&$[ue]!==ee[Ce];)Ce--;for(;1<=ue&&0<=Ce;ue--,Ce--)if($[ue]!==ee[Ce]){if(ue!==1||Ce!==1)do if(ue--,0>--Ce||$[ue]!==ee[Ce]){var Me=` +`+$[ue].replace(" at new "," at ");return i.displayName&&Me.includes("")&&(Me=Me.replace("",i.displayName)),Me}while(1<=ue&&0<=Ce);break}}}finally{ft=!1,Error.prepareStackTrace=b}return(i=i?i.displayName||i.name:"")?Ke(i):""}function Wt(i){switch(i.tag){case 5:return Ke(i.type);case 16:return Ke("Lazy");case 13:return Ke("Suspense");case 19:return Ke("SuspenseList");case 0:case 2:case 15:return i=Nt(i.type,!1);case 11:return i=Nt(i.type.render,!1);case 1:return i=Nt(i.type,!0);default:return""}}function H(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case Te:return"Fragment";case se:return"Portal";case ge:return"Profiler";case he:return"StrictMode";case qe:return"Suspense";case nt:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case Ve:return(i.displayName||"Context")+".Consumer";case ke:return(i._context.displayName||"Context")+".Provider";case He:var l=i.render;return(i=i.displayName)||(i=(i=l.displayName||l.name||"")!==""?"ForwardRef("+i+")":"ForwardRef"),i;case gt:return(l=i.displayName||null)!==null?l:H(i.type)||"Memo";case Re:l=i._payload,i=i._init;try{return H(i(l))}catch{}}return null}function we(i){var l=i.type;switch(i.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=(i=l.render).displayName||i.name||"",l.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(l);case 8:return l===he?"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 l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function ct(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":case"object":return i;default:return""}}function mt(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function ur(i){i._valueTracker||(i._valueTracker=(function(b){var C=mt(b)?"checked":"value",$=Object.getOwnPropertyDescriptor(b.constructor.prototype,C),ee=""+b[C];if(!b.hasOwnProperty(C)&&$!==void 0&&typeof $.get=="function"&&typeof $.set=="function"){var ue=$.get,Ce=$.set;return Object.defineProperty(b,C,{configurable:!0,get:function(){return ue.call(this)},set:function(Me){ee=""+Me,Ce.call(this,Me)}}),Object.defineProperty(b,C,{enumerable:$.enumerable}),{getValue:function(){return ee},setValue:function(Me){ee=""+Me},stopTracking:function(){b._valueTracker=null,delete b[C]}}}})(i))}function ar(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var b=l.getValue(),C="";return i&&(C=mt(i)?i.checked?"true":"false":i.value),(i=C)!==b&&(l.setValue(i),!0)}function Tt(i){if((i=i||(typeof document<"u"?document:void 0))===void 0)return null;try{return i.activeElement||i.body}catch{return i.body}}function Gt(i,l){var b=l.checked;return De({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:b??i._wrapperState.initialChecked})}function Sr(i,l){var b=l.defaultValue==null?"":l.defaultValue,C=l.checked!=null?l.checked:l.defaultChecked;b=ct(l.value!=null?l.value:b),i._wrapperState={initialChecked:C,initialValue:b,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function kt(i,l){(l=l.checked)!=null&&X(i,"checked",l,!1)}function yt(i,l){kt(i,l);var b=ct(l.value),C=l.type;if(b!=null)C==="number"?(b===0&&i.value===""||i.value!=b)&&(i.value=""+b):i.value!==""+b&&(i.value=""+b);else if(C==="submit"||C==="reset")return void i.removeAttribute("value");l.hasOwnProperty("value")?pe(i,l.type,b):l.hasOwnProperty("defaultValue")&&pe(i,l.type,ct(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(i.defaultChecked=!!l.defaultChecked)}function Zt(i,l,b){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var C=l.type;if(!(C!=="submit"&&C!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+i._wrapperState.initialValue,b||l===i.value||(i.value=l),i.defaultValue=l}(b=i.name)!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,b!==""&&(i.name=b)}function pe(i,l,b){l==="number"&&Tt(i.ownerDocument)===i||(b==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+b&&(i.defaultValue=""+b))}var U=Array.isArray;function Z(i,l,b,C){if(i=i.options,l){l={};for(var $=0;$"+l.valueOf().toString()+"",l=Qe.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,b,C){MSApp.execUnsafeLocalFunction((function(){return $t(i,l)}))}:$t);function rn(i,l){if(l){var b=i.firstChild;if(b&&b===i.lastChild&&b.nodeType===3)return void(b.nodeValue=l)}i.textContent=l}var kr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},An=["Webkit","ms","Moz","O"];function Wr(i,l,b){return l==null||typeof l=="boolean"||l===""?"":b||typeof l!="number"||l===0||kr.hasOwnProperty(i)&&kr[i]?(""+l).trim():l+"px"}function Jn(i,l){for(var b in i=i.style,l)if(l.hasOwnProperty(b)){var C=b.indexOf("--")===0,$=Wr(b,l[b],C);b==="float"&&(b="cssFloat"),C?i.setProperty(b,$):i[b]=$}}Object.keys(kr).forEach((function(i){An.forEach((function(l){l=l+i.charAt(0).toUpperCase()+i.substring(1),kr[l]=kr[i]}))}));var Ea=De({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Zn(i,l){if(l){if(Ea[i]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(f(137,i));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(f(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(f(61))}if(l.style!=null&&typeof l.style!="object")throw Error(f(62))}}function un(i,l){if(i.indexOf("-")===-1)return typeof l.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ti=null;function Oo(i){return(i=i.target||i.srcElement||window).correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Li=null,Fn=null,zo=null;function Vo(i){if(i=cp(i)){if(typeof Li!="function")throw Error(f(280));var l=i.stateNode;l&&(l=up(l),Li(i.stateNode,i.type,l))}}function ds(i){Fn?zo?zo.push(i):zo=[i]:Fn=i}function sr(){if(Fn){var i=Fn,l=zo;if(zo=Fn=null,Vo(i),l)for(i=0;i>>=0,l===0?32:31-(Yl(l)/Xl|0)|0},Yl=Math.log,Xl=Math.LN2,gs=64,ys=4194304;function lo(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&i;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&i;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function mi(i,l){var b=i.pendingLanes;if(b===0)return 0;var C=0,$=i.suspendedLanes,ee=i.pingedLanes,ue=268435455&b;if(ue!==0){var Ce=ue&~$;Ce!==0?C=lo(Ce):(ee&=ue)!==0&&(C=lo(ee))}else(ue=b&~$)!==0?C=lo(ue):ee!==0&&(C=lo(ee));if(C===0)return 0;if(l!==0&&l!==C&&!(l&$)&&(($=C&-C)>=(ee=l&-l)||$===16&&4194240&ee))return l;if(4&C&&(C|=16&b),(l=i.entangledLanes)!==0)for(i=i.entanglements,l&=C;0b;b++)l.push(i);return l}function Ao(i,l,b){i.pendingLanes|=l,l!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),(i=i.eventTimes)[l=31-Ia(l)]=b}function vs(i,l){var b=i.entangledLanes|=l;for(i=i.entanglements;b;){var C=31-Ia(b),$=1<=Si),pl=" ",hl=!1;function xi(i,l){switch(i){case"keyup":return xa.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xs(i){return typeof(i=i.detail)=="object"&&"data"in i?i.data:null}var No=!1,Kc={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ra(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l==="input"?!!Kc[i.type]:l==="textarea"}function dl(i,l,b,C){ds(C),0<(l=vr(l,"onChange")).length&&(b=new $n("onChange","change",null,b,C),i.push({event:b,listeners:l}))}var fl=null,ni=null;function Gc(i){oe(i,0)}function zi(i){if(ar(ru(i)))return i}function lc(i,l){if(i==="change")return l}var Yc=!1;if(_){var ml;if(_){var gl="oninput"in document;if(!gl){var la=document.createElement("div");la.setAttribute("oninput","return;"),gl=typeof la.oninput=="function"}ml=gl}else ml=!1;Yc=ml&&(!document.documentMode||9=l)return{node:C,offset:l-i};i=b}e:{for(;C;){if(C.nextSibling){C=C.nextSibling;break e}C=C.parentNode}C=void 0}C=Xc(C)}}function yl(i,l){return!(!i||!l)&&(i===l||(!i||i.nodeType!==3)&&(l&&l.nodeType===3?yl(i,l.parentNode):"contains"in i?i.contains(l):!!i.compareDocumentPosition&&!!(16&i.compareDocumentPosition(l))))}function Da(){for(var i=window,l=Tt();l instanceof i.HTMLIFrameElement;){try{var b=typeof l.contentWindow.location.href=="string"}catch{b=!1}if(!b)break;l=Tt((i=l.contentWindow).document)}return l}function Hi(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}function Ho(i){var l=Da(),b=i.focusedElem,C=i.selectionRange;if(l!==b&&b&&b.ownerDocument&&yl(b.ownerDocument.documentElement,b)){if(C!==null&&Hi(b)){if(l=C.start,(i=C.end)===void 0&&(i=l),"selectionStart"in b)b.selectionStart=l,b.selectionEnd=Math.min(i,b.value.length);else if((i=(l=b.ownerDocument||document)&&l.defaultView||window).getSelection){i=i.getSelection();var $=b.textContent.length,ee=Math.min(C.start,$);C=C.end===void 0?ee:Math.min(C.end,$),!i.extend&&ee>C&&($=C,C=ee,ee=$),$=ca(b,ee);var ue=ca(b,C);$&&ue&&(i.rangeCount!==1||i.anchorNode!==$.node||i.anchorOffset!==$.offset||i.focusNode!==ue.node||i.focusOffset!==ue.offset)&&((l=l.createRange()).setStart($.node,$.offset),i.removeAllRanges(),ee>C?(i.addRange(l),i.extend(ue.node,ue.offset)):(l.setEnd(ue.node,ue.offset),i.addRange(l)))}}for(l=[],i=b;i=i.parentNode;)i.nodeType===1&&l.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b=document.documentMode,_i=null,cc=null,jn=null,mn=!1;function uc(i,l,b){var C=b.window===b?b.document:b.nodeType===9?b:b.ownerDocument;mn||_i==null||_i!==Tt(C)||("selectionStart"in(C=_i)&&Hi(C)?C={start:C.selectionStart,end:C.selectionEnd}:C={anchorNode:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset},jn&&_s(jn,C)||(jn=C,0<(C=vr(cc,"onSelect")).length&&(l=new $n("onSelect","select",null,l,b),i.push({event:l,listeners:C}),l.target=_i)))}function Os(i,l){var b={};return b[i.toLowerCase()]=l.toLowerCase(),b["Webkit"+i]="webkit"+l,b["Moz"+i]="moz"+l,b}var To={animationend:Os("Animation","AnimationEnd"),animationiteration:Os("Animation","AnimationIteration"),animationstart:Os("Animation","AnimationStart"),transitionend:Os("Transition","TransitionEnd")},Qc={},pc={};function vl(i){if(Qc[i])return Qc[i];if(!To[i])return i;var l,b=To[i];for(l in b)if(b.hasOwnProperty(l)&&l in pc)return Qc[i]=b[l];return i}_&&(pc=document.createElement("div").style,"AnimationEvent"in window||(delete To.animationend.animation,delete To.animationiteration.animation,delete To.animationstart.animation),"TransitionEvent"in window||delete To.transitionend.transition);var Zc=vl("animationend"),eu=vl("animationiteration"),op=vl("animationstart"),tu=vl("transitionend"),ip=new Map,sp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function A(i,l){ip.set(i,l),g(l,[i])}for(var O=0;Onu||(i.current=Td[nu],Td[nu]=null,nu--)}function Cn(i,l){nu++,Td[nu]=i.current,i.current=l}var xl={},Xa=Sl(xl),Oa=Sl(!1),ks=xl;function hc(i,l){var b=i.type.contextTypes;if(!b)return xl;var C=i.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===l)return C.__reactInternalMemoizedMaskedChildContext;var $,ee={};for($ in b)ee[$]=l[$];return C&&((i=i.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,i.__reactInternalMemoizedMaskedChildContext=ee),ee}function Ko(i){return(i=i.childContextTypes)!=null}function sh(){qn(Oa),qn(Xa)}function Xm(i,l,b){if(Xa.current!==xl)throw Error(f(168));Cn(Xa,l),Cn(Oa,b)}function Id(i,l,b){var C=i.stateNode;if(l=l.childContextTypes,typeof C.getChildContext!="function")return b;for(var $ in C=C.getChildContext())if(!($ in l))throw Error(f(108,we(i)||"Unknown",$));return De({},b,C)}function lh(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||xl,ks=Xa.current,Cn(Xa,i),Cn(Oa,Oa.current),!0}function Yr(i,l,b){var C=i.stateNode;if(!C)throw Error(f(169));b?(i=Id(i,l,ks),C.__reactInternalMemoizedMergedChildContext=i,qn(Oa),qn(Xa),Cn(Xa,i)):qn(Oa),Cn(Oa,b)}var As=null,ch=!1,Md=!1;function Qm(i){As===null?As=[i]:As.push(i)}function _l(){if(!Md&&As!==null){Md=!0;var i=0,l=an;try{var b=As;for(an=1;i>=ue,$-=ue,Yi=1<<32-Ia(l)+$|b<<$|C,js=ee+i}else Yi=1<xr?(Qr=Mt,Mt=null):Qr=Mt.sibling;var sn=lt(Ze,Mt,rt[xr],wt);if(sn===null){Mt===null&&(Mt=Qr);break}i&&Mt&&sn.alternate===null&&l(Ze,Mt),Le=ee(sn,Le,xr),Fr===null?nr=sn:Fr.sibling=sn,Fr=sn,Mt=Qr}if(xr===rt.length)return b(Ze,Mt),Un&&dc(Ze,xr),nr;if(Mt===null){for(;xrxr?(Qr=Mt,Mt=null):Qr=Mt.sibling;var wr=lt(Ze,Mt,sn.value,wt);if(wr===null){Mt===null&&(Mt=Qr);break}i&&Mt&&wr.alternate===null&&l(Ze,Mt),Le=ee(wr,Le,xr),Fr===null?nr=wr:Fr.sibling=wr,Fr=wr,Mt=Qr}if(sn.done)return b(Ze,Mt),Un&&dc(Ze,xr),nr;if(Mt===null){for(;!sn.done;xr++,sn=rt.next())(sn=st(Ze,sn.value,wt))!==null&&(Le=ee(sn,Le,xr),Fr===null?nr=sn:Fr.sibling=sn,Fr=sn);return Un&&dc(Ze,xr),nr}for(Mt=C(Ze,Mt);!sn.done;xr++,sn=rt.next())(sn=vt(Mt,Ze,xr,sn.value,wt))!==null&&(i&&sn.alternate!==null&&Mt.delete(sn.key===null?xr:sn.key),Le=ee(sn,Le,xr),Fr===null?nr=sn:Fr.sibling=sn,Fr=sn);return i&&Mt.forEach((function(_r){return l(Ze,_r)})),Un&&dc(Ze,xr),nr}return function Ze(Le,rt,wt,nr){if(typeof wt=="object"&&wt!==null&&wt.type===Te&&wt.key===null&&(wt=wt.props.children),typeof wt=="object"&&wt!==null){switch(wt.$$typeof){case ie:e:{for(var Fr=wt.key,Mt=rt;Mt!==null;){if(Mt.key===Fr){if((Fr=wt.type)===Te){if(Mt.tag===7){b(Le,Mt.sibling),(rt=$(Mt,wt.props.children)).return=Le,Le=rt;break e}}else if(Mt.elementType===Fr||typeof Fr=="object"&&Fr!==null&&Fr.$$typeof===Re&&rg(Fr)===Mt.type){b(Le,Mt.sibling),(rt=$(Mt,wt.props)).ref=fp(Le,Mt,wt),rt.return=Le,Le=rt;break e}b(Le,Mt);break}l(Le,Mt),Mt=Mt.sibling}wt.type===Te?((rt=Xo(wt.props.children,Le.mode,nr,wt.key)).return=Le,Le=rt):((nr=ku(wt.type,wt.key,wt.props,null,Le.mode,nr)).ref=fp(Le,rt,wt),nr.return=Le,Le=nr)}return ue(Le);case se:e:{for(Mt=wt.key;rt!==null;){if(rt.key===Mt){if(rt.tag===4&&rt.stateNode.containerInfo===wt.containerInfo&&rt.stateNode.implementation===wt.implementation){b(Le,rt.sibling),(rt=$(rt,wt.children||[])).return=Le,Le=rt;break e}b(Le,rt);break}l(Le,rt),rt=rt.sibling}(rt=qh(wt,Le.mode,nr)).return=Le,Le=rt}return ue(Le);case Re:return Ze(Le,rt,(Mt=wt._init)(wt._payload),nr)}if(U(wt))return Lt(Le,rt,wt,nr);if(Xe(wt))return xt(Le,rt,wt,nr);mp(Le,wt)}return typeof wt=="string"&&wt!==""||typeof wt=="number"?(wt=""+wt,rt!==null&&rt.tag===6?(b(Le,rt.sibling),(rt=$(rt,wt)).return=Le,Le=rt):(b(Le,rt),(rt=Tp(wt,Le.mode,nr)).return=Le,Le=rt),ue(Le)):b(Le,rt)}}var fc=ph(!0),ng=ph(!1),hh=Sl(null),dh=null,lu=null,Xr=null;function cu(){Xr=lu=dh=null}function uu(i){var l=hh.current;qn(hh),i._currentValue=l}function qd(i,l,b){for(;i!==null;){var C=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,C!==null&&(C.childLanes|=l)):C!==null&&(C.childLanes&l)!==l&&(C.childLanes|=l),i===b)break;i=i.return}}function pu(i,l){dh=i,Xr=lu=null,(i=i.dependencies)!==null&&i.firstContext!==null&&(i.lanes&l&&(Do=!0),i.firstContext=null)}function oi(i){var l=i._currentValue;if(Xr!==i)if(i={context:i,memoizedValue:l,next:null},lu===null){if(dh===null)throw Error(f(308));lu=i,dh.dependencies={lanes:0,firstContext:i}}else lu=lu.next=i;return l}var Ol=null;function gp(i){Ol===null?Ol=[i]:Ol.push(i)}function ag(i,l,b,C){var $=l.interleaved;return $===null?(b.next=b,gp(l)):(b.next=$.next,$.next=b),l.interleaved=b,Ps(i,C)}function Ps(i,l){i.lanes|=l;var b=i.alternate;for(b!==null&&(b.lanes|=l),b=i,i=i.return;i!==null;)i.childLanes|=l,(b=i.alternate)!==null&&(b.childLanes|=l),b=i,i=i.return;return b.tag===3?b.stateNode:null}var kl=!1;function yp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function og(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Ns(i,l){return{eventTime:i,lane:l,tag:0,payload:null,callback:null,next:null}}function Ts(i,l,b){var C=i.updateQueue;if(C===null)return null;if(C=C.shared,2&pn){var $=C.pending;return $===null?l.next=l:(l.next=$.next,$.next=l),C.pending=l,Ps(i,b)}return($=C.interleaved)===null?(l.next=l,gp(C)):(l.next=$.next,$.next=l),C.interleaved=l,Ps(i,b)}function hu(i,l,b){if((l=l.updateQueue)!==null&&(l=l.shared,4194240&b)){var C=l.lanes;b|=C&=i.pendingLanes,l.lanes=b,vs(i,b)}}function fh(i,l){var b=i.updateQueue,C=i.alternate;if(C!==null&&b===(C=C.updateQueue)){var $=null,ee=null;if((b=b.firstBaseUpdate)!==null){do{var ue={eventTime:b.eventTime,lane:b.lane,tag:b.tag,payload:b.payload,callback:b.callback,next:null};ee===null?$=ee=ue:ee=ee.next=ue,b=b.next}while(b!==null);ee===null?$=ee=l:ee=ee.next=l}else $=ee=l;return b={baseState:C.baseState,firstBaseUpdate:$,lastBaseUpdate:ee,shared:C.shared,effects:C.effects},void(i.updateQueue=b)}(i=b.lastBaseUpdate)===null?b.firstBaseUpdate=l:i.next=l,b.lastBaseUpdate=l}function mh(i,l,b,C){var $=i.updateQueue;kl=!1;var ee=$.firstBaseUpdate,ue=$.lastBaseUpdate,Ce=$.shared.pending;if(Ce!==null){$.shared.pending=null;var Me=Ce,Ue=Me.next;Me.next=null,ue===null?ee=Ue:ue.next=Ue,ue=Me;var ot=i.alternate;ot!==null&&(Ce=(ot=ot.updateQueue).lastBaseUpdate)!==ue&&(Ce===null?ot.firstBaseUpdate=Ue:Ce.next=Ue,ot.lastBaseUpdate=Me)}if(ee!==null){var st=$.baseState;for(ue=0,ot=Ue=Me=null,Ce=ee;;){var lt=Ce.lane,vt=Ce.eventTime;if((C<)===lt){ot!==null&&(ot=ot.next={eventTime:vt,lane:0,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null});e:{var Lt=i,xt=Ce;switch(lt=l,vt=b,xt.tag){case 1:if(typeof(Lt=xt.payload)=="function"){st=Lt.call(vt,st,lt);break e}st=Lt;break e;case 3:Lt.flags=-65537&Lt.flags|128;case 0:if((lt=typeof(Lt=xt.payload)=="function"?Lt.call(vt,st,lt):Lt)==null)break e;st=De({},st,lt);break e;case 2:kl=!0}}Ce.callback!==null&&Ce.lane!==0&&(i.flags|=64,(lt=$.effects)===null?$.effects=[Ce]:lt.push(Ce))}else vt={eventTime:vt,lane:lt,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null},ot===null?(Ue=ot=vt,Me=st):ot=ot.next=vt,ue|=lt;if((Ce=Ce.next)===null){if((Ce=$.shared.pending)===null)break;Ce=(lt=Ce).next,lt.next=null,$.lastBaseUpdate=lt,$.shared.pending=null}}if(ot===null&&(Me=st),$.baseState=Me,$.firstBaseUpdate=Ue,$.lastBaseUpdate=ot,(l=$.shared.interleaved)!==null){$=l;do ue|=$.lane,$=$.next;while($!==l)}else ee===null&&($.shared.lanes=0);Ds|=ue,i.lanes=ue,i.memoizedState=st}}function Ud(i,l,b){if(i=l.effects,l.effects=null,i!==null)for(l=0;lb?b:4,i(!0);var C=Wd.transition;Wd.transition={};try{i(!1),l()}finally{an=b,Wd.transition=C}}function ef(){return ii().memoizedState}function fg(i,l,b){var C=Tl(i);b={lane:C,action:b,hasEagerState:!1,eagerState:null,next:null},gg(i)?gc(l,b):(b=ag(i,l,b,C))!==null&&(Lo(b,i,C,to()),Yo(b,l,C))}function mg(i,l,b){var C=Tl(i),$={lane:C,action:b,hasEagerState:!1,eagerState:null,next:null};if(gg(i))gc(l,$);else{var ee=i.alternate;if(i.lanes===0&&(ee===null||ee.lanes===0)&&(ee=l.lastRenderedReducer)!==null)try{var ue=l.lastRenderedState,Ce=ee(ue,b);if($.hasEagerState=!0,$.eagerState=Ce,Ka(Ce,ue)){var Me=l.interleaved;return Me===null?($.next=$,gp(l)):($.next=Me.next,Me.next=$),void(l.interleaved=$)}}catch{}(b=ag(i,l,$,C))!==null&&(Lo(b,i,C,$=to()),Yo(b,l,C))}}function gg(i){var l=i.alternate;return i===Dr||l!==null&&l===Dr}function gc(i,l){wp=mc=!0;var b=i.pending;b===null?l.next=l:(l.next=b.next,b.next=l),i.pending=l}function Yo(i,l,b){if(4194240&b){var C=l.lanes;b|=C&=i.pendingLanes,l.lanes=b,vs(i,b)}}var _p={readContext:oi,useCallback:Qa,useContext:Qa,useEffect:Qa,useImperativeHandle:Qa,useInsertionEffect:Qa,useLayoutEffect:Qa,useMemo:Qa,useReducer:Qa,useRef:Qa,useState:Qa,useDebugValue:Qa,useDeferredValue:Qa,useTransition:Qa,useMutableSource:Qa,useSyncExternalStore:Qa,useId:Qa,unstable_isNewReconciler:!1},tf={readContext:oi,useCallback:function(i,l){return Xi().memoizedState=[i,l===void 0?null:l],i},useContext:oi,useEffect:pg,useImperativeHandle:function(i,l,b){return b=b!=null?b.concat([i]):null,Sh(4194308,4,_h.bind(null,l,i),b)},useLayoutEffect:function(i,l){return Sh(4194308,4,i,l)},useInsertionEffect:function(i,l){return Sh(4,2,i,l)},useMemo:function(i,l){var b=Xi();return l=l===void 0?null:l,i=i(),b.memoizedState=[i,l],i},useReducer:function(i,l,b){var C=Xi();return l=b!==void 0?b(l):l,C.memoizedState=C.baseState=l,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:l},C.queue=i,i=i.dispatch=fg.bind(null,Dr,i),[C.memoizedState,i]},useRef:function(i){return i={current:i},Xi().memoizedState=i},useState:Gd,useDebugValue:Xd,useDeferredValue:function(i){return Xi().memoizedState=i},useTransition:function(){var i=Gd(!1),l=i[0];return i=l0.bind(null,i[1]),Xi().memoizedState=i,[l,i]},useMutableSource:function(){},useSyncExternalStore:function(i,l,b){var C=Dr,$=Xi();if(Un){if(b===void 0)throw Error(f(407));b=b()}else{if(b=l(),Ca===null)throw Error(f(349));30&ba||Eh(C,l,b)}$.memoizedState=b;var ee={value:b,getSnapshot:l};return $.queue=ee,pg(cg.bind(null,C,ee,i),[i]),C.flags|=2048,Sp(9,lg.bind(null,C,ee,b,l),void 0,null),b},useId:function(){var i=Xi(),l=Ca.identifierPrefix;if(Un){var b=js;l=":"+l+"R"+(b=(Yi&~(1<<32-Ia(Yi)-1)).toString(32)+b),0<(b=Ep++)&&(l+="H"+b.toString(32)),l+=":"}else l=":"+l+"r"+(b=s0++).toString(32)+":";return i.memoizedState=l},unstable_isNewReconciler:!1},rf={readContext:oi,useCallback:gu,useContext:oi,useEffect:xh,useImperativeHandle:dg,useInsertionEffect:hg,useLayoutEffect:Ci,useMemo:Qd,useReducer:wh,useRef:Yd,useState:function(){return wh(mu)},useDebugValue:Xd,useDeferredValue:function(i){return Zd(ii(),ka.memoizedState,i)},useTransition:function(){return[wh(mu)[0],ii().memoizedState]},useMutableSource:ig,useSyncExternalStore:sg,useId:ef,unstable_isNewReconciler:!1},yg={readContext:oi,useCallback:gu,useContext:oi,useEffect:xh,useImperativeHandle:dg,useInsertionEffect:hg,useLayoutEffect:Ci,useMemo:Qd,useReducer:Kd,useRef:Yd,useState:function(){return Kd(mu)},useDebugValue:Xd,useDeferredValue:function(i){var l=ii();return ka===null?l.memoizedState=i:Zd(l,ka.memoizedState,i)},useTransition:function(){return[Kd(mu)[0],ii().memoizedState]},useMutableSource:ig,useSyncExternalStore:sg,useId:ef,unstable_isNewReconciler:!1};function si(i,l){if(i&&i.defaultProps){for(var b in l=De({},l),i=i.defaultProps)l[b]===void 0&&(l[b]=i[b]);return l}return l}function Oh(i,l,b,C){b=(b=b(C,l=i.memoizedState))==null?l:De({},l,b),i.memoizedState=b,i.lanes===0&&(i.updateQueue.baseState=b)}var kh={isMounted:function(i){return!!(i=i._reactInternals)&&Va(i)===i},enqueueSetState:function(i,l,b){i=i._reactInternals;var C=to(),$=Tl(i),ee=Ns(C,$);ee.payload=l,b!=null&&(ee.callback=b),(l=Ts(i,ee,$))!==null&&(Lo(l,i,$,C),hu(l,i,$))},enqueueReplaceState:function(i,l,b){i=i._reactInternals;var C=to(),$=Tl(i),ee=Ns(C,$);ee.tag=1,ee.payload=l,b!=null&&(ee.callback=b),(l=Ts(i,ee,$))!==null&&(Lo(l,i,$,C),hu(l,i,$))},enqueueForceUpdate:function(i,l){i=i._reactInternals;var b=to(),C=Tl(i),$=Ns(b,C);$.tag=2,l!=null&&($.callback=l),(l=Ts(i,$,C))!==null&&(Lo(l,i,C,b),hu(l,i,C))}};function vg(i,l,b,C,$,ee,ue){return typeof(i=i.stateNode).shouldComponentUpdate=="function"?i.shouldComponentUpdate(C,ee,ue):!l.prototype||!l.prototype.isPureReactComponent||!_s(b,C)||!_s($,ee)}function bg(i,l,b){var C=!1,$=xl,ee=l.contextType;return typeof ee=="object"&&ee!==null?ee=oi(ee):($=Ko(l)?ks:Xa.current,ee=(C=(C=l.contextTypes)!=null)?hc(i,$):xl),l=new l(b,ee),i.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=kh,i.stateNode=l,l._reactInternals=i,C&&((i=i.stateNode).__reactInternalMemoizedUnmaskedChildContext=$,i.__reactInternalMemoizedMaskedChildContext=ee),l}function wg(i,l,b,C){i=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(b,C),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(b,C),l.state!==i&&kh.enqueueReplaceState(l,l.state,null)}function nf(i,l,b,C){var $=i.stateNode;$.props=b,$.state=i.memoizedState,$.refs={},yp(i);var ee=l.contextType;typeof ee=="object"&&ee!==null?$.context=oi(ee):(ee=Ko(l)?ks:Xa.current,$.context=hc(i,ee)),$.state=i.memoizedState,typeof(ee=l.getDerivedStateFromProps)=="function"&&(Oh(i,l,ee,b),$.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(l=$.state,typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount(),l!==$.state&&kh.enqueueReplaceState($,$.state,null),mh(i,b,$,C),$.state=i.memoizedState),typeof $.componentDidMount=="function"&&(i.flags|=4194308)}function yu(i,l){try{var b="",C=l;do b+=Wt(C),C=C.return;while(C);var $=b}catch(ee){$=` +Error generating stack: `+ee.message+` +`+ee.stack}return{value:i,source:l,stack:$,digest:null}}function af(i,l,b){return{value:i,source:null,stack:b??null,digest:l??null}}function Ah(i,l){try{console.error(l.value)}catch(b){setTimeout((function(){throw b}))}}var c0=typeof WeakMap=="function"?WeakMap:Map;function vu(i,l,b){(b=Ns(-1,b)).tag=3,b.payload={element:null};var C=l.value;return b.callback=function(){bc||(bc=!0,Cp=C),Ah(0,l)},b}function Eg(i,l,b){(b=Ns(-1,b)).tag=3;var C=i.type.getDerivedStateFromError;if(typeof C=="function"){var $=l.value;b.payload=function(){return C($)},b.callback=function(){Ah(0,l)}}var ee=i.stateNode;return ee!==null&&typeof ee.componentDidCatch=="function"&&(b.callback=function(){Ah(0,l),typeof C!="function"&&(Pi===null?Pi=new Set([this]):Pi.add(this));var ue=l.stack;this.componentDidCatch(l.value,{componentStack:ue!==null?ue:""})}),b}function ji(i,l,b){var C=i.pingCache;if(C===null){C=i.pingCache=new c0;var $=new Set;C.set(l,$)}else($=C.get(l))===void 0&&($=new Set,C.set(l,$));$.has(b)||($.add(b),i=f0.bind(null,i,l,b),l.then(i,i))}function Sg(i){do{var l;if((l=i.tag===13)&&(l=(l=i.memoizedState)===null||l.dehydrated!==null),l)return i;i=i.return}while(i!==null);return null}function xg(i,l,b,C,$){return 1&i.mode?(i.flags|=65536,i.lanes=$,i):(i===l?i.flags|=65536:(i.flags|=128,b.flags|=131072,b.flags&=-52805,b.tag===1&&(b.alternate===null?b.tag=17:((l=Ns(-1,1)).tag=2,Ts(b,l,1))),b.lanes|=1),i)}var u0=te.ReactCurrentOwner,Do=!1;function Za(i,l,b,C){l.child=i===null?ng(l,null,b,C):fc(l,i.child,b,C)}function _g(i,l,b,C,$){b=b.render;var ee=l.ref;return pu(l,$),C=Is(i,l,b,C,ee,$),b=Hd(),i===null||Do?(Un&&b&&Rd(l),l.flags|=1,Za(i,l,C,$),l.child):(l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~$,Ms(i,l,$))}function Og(i,l,b,C,$){if(i===null){var ee=b.type;return typeof ee!="function"||Pp(ee)||ee.defaultProps!==void 0||b.compare!==null||b.defaultProps!==void 0?((i=ku(b.type,null,C,l,l.mode,$)).ref=l.ref,i.return=l,l.child=i):(l.tag=15,l.type=ee,kg(i,l,ee,C,$))}if(ee=i.child,!(i.lanes&$)){var ue=ee.memoizedProps;if((b=(b=b.compare)!==null?b:_s)(ue,C)&&i.ref===l.ref)return Ms(i,l,$)}return l.flags|=1,(i=pa(ee,C)).ref=l.ref,i.return=l,l.child=i}function kg(i,l,b,C,$){if(i!==null){var ee=i.memoizedProps;if(_s(ee,C)&&i.ref===l.ref){if(Do=!1,l.pendingProps=C=ee,!(i.lanes&$))return l.lanes=i.lanes,Ms(i,l,$);131072&i.flags&&(Do=!0)}}return eo(i,l,b,C,$)}function of(i,l,b){var C=l.pendingProps,$=C.children,ee=i!==null?i.memoizedState:null;if(C.mode==="hidden")if(1&l.mode){if(!(1073741824&b))return i=ee!==null?ee.baseLanes|b:b,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:i,cachePool:null,transitions:null},l.updateQueue=null,Cn(jl,fo),fo|=i,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=ee!==null?ee.baseLanes:b,Cn(jl,fo),fo|=C}else l.memoizedState={baseLanes:0,cachePool:null,transitions:null},Cn(jl,fo),fo|=b;else ee!==null?(C=ee.baseLanes|b,l.memoizedState=null):C=b,Cn(jl,fo),fo|=C;return Za(i,l,$,b),l.child}function li(i,l){var b=l.ref;(i===null&&b!==null||i!==null&&i.ref!==b)&&(l.flags|=512,l.flags|=2097152)}function eo(i,l,b,C,$){var ee=Ko(b)?ks:Xa.current;return ee=hc(l,ee),pu(l,$),b=Is(i,l,b,C,ee,$),C=Hd(),i===null||Do?(Un&&C&&Rd(l),l.flags|=1,Za(i,l,b,$),l.child):(l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~$,Ms(i,l,$))}function Ag(i,l,b,C,$){if(Ko(b)){var ee=!0;lh(l)}else ee=!1;if(pu(l,$),l.stateNode===null)Th(i,l),bg(l,b,C),nf(l,b,C,$),C=!0;else if(i===null){var ue=l.stateNode,Ce=l.memoizedProps;ue.props=Ce;var Me=ue.context,Ue=b.contextType;typeof Ue=="object"&&Ue!==null?Ue=oi(Ue):Ue=hc(l,Ue=Ko(b)?ks:Xa.current);var ot=b.getDerivedStateFromProps,st=typeof ot=="function"||typeof ue.getSnapshotBeforeUpdate=="function";st||typeof ue.UNSAFE_componentWillReceiveProps!="function"&&typeof ue.componentWillReceiveProps!="function"||(Ce!==C||Me!==Ue)&&wg(l,ue,C,Ue),kl=!1;var lt=l.memoizedState;ue.state=lt,mh(l,C,ue,$),Me=l.memoizedState,Ce!==C||lt!==Me||Oa.current||kl?(typeof ot=="function"&&(Oh(l,b,ot,C),Me=l.memoizedState),(Ce=kl||vg(l,b,Ce,C,lt,Me,Ue))?(st||typeof ue.UNSAFE_componentWillMount!="function"&&typeof ue.componentWillMount!="function"||(typeof ue.componentWillMount=="function"&&ue.componentWillMount(),typeof ue.UNSAFE_componentWillMount=="function"&&ue.UNSAFE_componentWillMount()),typeof ue.componentDidMount=="function"&&(l.flags|=4194308)):(typeof ue.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=C,l.memoizedState=Me),ue.props=C,ue.state=Me,ue.context=Ue,C=Ce):(typeof ue.componentDidMount=="function"&&(l.flags|=4194308),C=!1)}else{ue=l.stateNode,og(i,l),Ce=l.memoizedProps,Ue=l.type===l.elementType?Ce:si(l.type,Ce),ue.props=Ue,st=l.pendingProps,lt=ue.context,typeof(Me=b.contextType)=="object"&&Me!==null?Me=oi(Me):Me=hc(l,Me=Ko(b)?ks:Xa.current);var vt=b.getDerivedStateFromProps;(ot=typeof vt=="function"||typeof ue.getSnapshotBeforeUpdate=="function")||typeof ue.UNSAFE_componentWillReceiveProps!="function"&&typeof ue.componentWillReceiveProps!="function"||(Ce!==st||lt!==Me)&&wg(l,ue,C,Me),kl=!1,lt=l.memoizedState,ue.state=lt,mh(l,C,ue,$);var Lt=l.memoizedState;Ce!==st||lt!==Lt||Oa.current||kl?(typeof vt=="function"&&(Oh(l,b,vt,C),Lt=l.memoizedState),(Ue=kl||vg(l,b,Ue,C,lt,Lt,Me)||!1)?(ot||typeof ue.UNSAFE_componentWillUpdate!="function"&&typeof ue.componentWillUpdate!="function"||(typeof ue.componentWillUpdate=="function"&&ue.componentWillUpdate(C,Lt,Me),typeof ue.UNSAFE_componentWillUpdate=="function"&&ue.UNSAFE_componentWillUpdate(C,Lt,Me)),typeof ue.componentDidUpdate=="function"&&(l.flags|=4),typeof ue.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof ue.componentDidUpdate!="function"||Ce===i.memoizedProps&<===i.memoizedState||(l.flags|=4),typeof ue.getSnapshotBeforeUpdate!="function"||Ce===i.memoizedProps&<===i.memoizedState||(l.flags|=1024),l.memoizedProps=C,l.memoizedState=Lt),ue.props=C,ue.state=Lt,ue.context=Me,C=Ue):(typeof ue.componentDidUpdate!="function"||Ce===i.memoizedProps&<===i.memoizedState||(l.flags|=4),typeof ue.getSnapshotBeforeUpdate!="function"||Ce===i.memoizedProps&<===i.memoizedState||(l.flags|=1024),C=!1)}return Ch(i,l,b,C,ee,$)}function Ch(i,l,b,C,$,ee){li(i,l);var ue=!!(128&l.flags);if(!C&&!ue)return $&&Yr(l,b,!1),Ms(i,l,ee);C=l.stateNode,u0.current=l;var Ce=ue&&typeof b.getDerivedStateFromError!="function"?null:C.render();return l.flags|=1,i!==null&&ue?(l.child=fc(l,i.child,null,ee),l.child=fc(l,null,Ce,ee)):Za(i,l,Ce,ee),l.memoizedState=C.state,$&&Yr(l,b,!0),l.child}function Cg(i){var l=i.stateNode;l.pendingContext?Xm(0,l.pendingContext,l.pendingContext!==l.context):l.context&&Xm(0,l.context,!1),zd(i,l.containerInfo)}function sf(i,l,b,C,$){return su(),$d($),l.flags|=256,Za(i,l,b,C),l.child}var jg,lf,Pg,jh={dehydrated:null,treeContext:null,retryLane:0};function Ph(i){return{baseLanes:i,cachePool:null,transitions:null}}function cf(i,l,b){var C,$=l.pendingProps,ee=Wn.current,ue=!1,Ce=!!(128&l.flags);if((C=Ce)||(C=(i===null||i.memoizedState!==null)&&!!(2&ee)),C?(ue=!0,l.flags&=-129):i!==null&&i.memoizedState===null||(ee|=1),Cn(Wn,1&ee),i===null)return hp(l),(i=l.memoizedState)!==null&&(i=i.dehydrated)!==null?(1&l.mode?i.data==="$!"?l.lanes=8:l.lanes=1073741824:l.lanes=1,null):(Ce=$.children,i=$.fallback,ue?($=l.mode,ue=l.child,Ce={mode:"hidden",children:Ce},1&$||ue===null?ue=Np(Ce,$,0,null):(ue.childLanes=0,ue.pendingProps=Ce),i=Xo(i,$,b,null),ue.return=l,i.return=l,ue.sibling=i,l.child=ue,l.child.memoizedState=Ph(b),l.memoizedState=jh,i):uf(l,Ce));if((ee=i.memoizedState)!==null&&(C=ee.dehydrated)!==null)return(function(ot,st,lt,vt,Lt,xt,Ze){if(lt)return 256&st.flags?(st.flags&=-257,Nh(ot,st,Ze,vt=af(Error(f(422))))):st.memoizedState!==null?(st.child=ot.child,st.flags|=128,null):(xt=vt.fallback,Lt=st.mode,vt=Np({mode:"visible",children:vt.children},Lt,0,null),(xt=Xo(xt,Lt,Ze,null)).flags|=2,vt.return=st,xt.return=st,vt.sibling=xt,st.child=vt,1&st.mode&&fc(st,ot.child,null,Ze),st.child.memoizedState=Ph(Ze),st.memoizedState=jh,xt);if(!(1&st.mode))return Nh(ot,st,Ze,null);if(Lt.data==="$!"){if(vt=Lt.nextSibling&&Lt.nextSibling.dataset)var Le=vt.dgst;return vt=Le,Nh(ot,st,Ze,vt=af(xt=Error(f(419)),vt,void 0))}if(Le=!!(Ze&ot.childLanes),Do||Le){if((vt=Ca)!==null){switch(Ze&-Ze){case 4:Lt=2;break;case 16:Lt=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:Lt=32;break;case 536870912:Lt=268435456;break;default:Lt=0}(Lt=Lt&(vt.suspendedLanes|Ze)?0:Lt)!==0&&Lt!==xt.retryLane&&(xt.retryLane=Lt,Ps(ot,Lt),Lo(vt,ot,Lt,-1))}return xf(),Nh(ot,st,Ze,vt=af(Error(f(421))))}return Lt.data==="$?"?(st.flags|=128,st.child=ot.child,st=m0.bind(null,ot),Lt._reactRetry=st,null):(ot=xt.treeContext,Ro=bl(Lt.nextSibling),Go=st,Un=!0,Oi=null,ot!==null&&(Io[Mo++]=Yi,Io[Mo++]=js,Io[Mo++]=Cs,Yi=ot.id,js=ot.overflow,Cs=st),st=uf(st,vt.children),st.flags|=4096,st)})(i,l,Ce,$,C,ee,b);if(ue){ue=$.fallback,Ce=l.mode,C=(ee=i.child).sibling;var Me={mode:"hidden",children:$.children};return 1&Ce||l.child===ee?($=pa(ee,Me)).subtreeFlags=14680064&ee.subtreeFlags:(($=l.child).childLanes=0,$.pendingProps=Me,l.deletions=null),C!==null?ue=pa(C,ue):(ue=Xo(ue,Ce,b,null)).flags|=2,ue.return=l,$.return=l,$.sibling=ue,l.child=$,$=ue,ue=l.child,Ce=(Ce=i.child.memoizedState)===null?Ph(b):{baseLanes:Ce.baseLanes|b,cachePool:null,transitions:Ce.transitions},ue.memoizedState=Ce,ue.childLanes=i.childLanes&~b,l.memoizedState=jh,$}return i=(ue=i.child).sibling,$=pa(ue,{mode:"visible",children:$.children}),!(1&l.mode)&&($.lanes=b),$.return=l,$.sibling=null,i!==null&&((b=l.deletions)===null?(l.deletions=[i],l.flags|=16):b.push(i)),l.child=$,l.memoizedState=null,$}function uf(i,l){return(l=Np({mode:"visible",children:l},i.mode,0,null)).return=i,i.child=l}function Nh(i,l,b,C){return C!==null&&$d(C),fc(l,i.child,null,b),(i=uf(l,l.pendingProps.children)).flags|=2,l.memoizedState=null,i}function Ng(i,l,b){i.lanes|=l;var C=i.alternate;C!==null&&(C.lanes|=l),qd(i.return,l,b)}function pf(i,l,b,C,$){var ee=i.memoizedState;ee===null?i.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:C,tail:b,tailMode:$}:(ee.isBackwards=l,ee.rendering=null,ee.renderingStartTime=0,ee.last=C,ee.tail=b,ee.tailMode=$)}function Tg(i,l,b){var C=l.pendingProps,$=C.revealOrder,ee=C.tail;if(Za(i,l,C.children,b),2&(C=Wn.current))C=1&C|2,l.flags|=128;else{if(i!==null&&128&i.flags)e:for(i=l.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Ng(i,b,l);else if(i.tag===19)Ng(i,b,l);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break e;for(;i.sibling===null;){if(i.return===null||i.return===l)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}C&=1}if(Cn(Wn,C),1&l.mode)switch($){case"forwards":for(b=l.child,$=null;b!==null;)(i=b.alternate)!==null&&vh(i)===null&&($=b),b=b.sibling;(b=$)===null?($=l.child,l.child=null):($=b.sibling,b.sibling=null),pf(l,!1,$,b,ee);break;case"backwards":for(b=null,$=l.child,l.child=null;$!==null;){if((i=$.alternate)!==null&&vh(i)===null){l.child=$;break}i=$.sibling,$.sibling=b,b=$,$=i}pf(l,!0,b,null,ee);break;case"together":pf(l,!1,null,null,void 0);break;default:l.memoizedState=null}else l.memoizedState=null;return l.child}function Th(i,l){!(1&l.mode)&&i!==null&&(i.alternate=null,l.alternate=null,l.flags|=2)}function Ms(i,l,b){if(i!==null&&(l.dependencies=i.dependencies),Ds|=l.lanes,!(b&l.childLanes))return null;if(i!==null&&l.child!==i.child)throw Error(f(153));if(l.child!==null){for(b=pa(i=l.child,i.pendingProps),l.child=b,b.return=l;i.sibling!==null;)i=i.sibling,(b=b.sibling=pa(i,i.pendingProps)).return=l;b.sibling=null}return l.child}function bu(i,l){if(!Un)switch(i.tailMode){case"hidden":l=i.tail;for(var b=null;l!==null;)l.alternate!==null&&(b=l),l=l.sibling;b===null?i.tail=null:b.sibling=null;break;case"collapsed":b=i.tail;for(var C=null;b!==null;)b.alternate!==null&&(C=b),b=b.sibling;C===null?l||i.tail===null?i.tail=null:i.tail.sibling=null:C.sibling=null}}function La(i){var l=i.alternate!==null&&i.alternate.child===i.child,b=0,C=0;if(l)for(var $=i.child;$!==null;)b|=$.lanes|$.childLanes,C|=14680064&$.subtreeFlags,C|=14680064&$.flags,$.return=i,$=$.sibling;else for($=i.child;$!==null;)b|=$.lanes|$.childLanes,C|=$.subtreeFlags,C|=$.flags,$.return=i,$=$.sibling;return i.subtreeFlags|=C,i.childLanes=b,l}function Ig(i,l,b){var C=l.pendingProps;switch(Dd(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return La(l),null;case 1:case 17:return Ko(l.type)&&sh(),La(l),null;case 3:return C=l.stateNode,va(),qn(Oa),qn(Xa),Jd(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),i!==null&&i.child!==null||(dp(l)?l.flags|=4:i===null||i.memoizedState.isDehydrated&&!(256&l.flags)||(l.flags|=1024,Oi!==null&&(wf(Oi),Oi=null))),La(l),null;case 5:yh(l);var $=Al(bp.current);if(b=l.type,i!==null&&l.stateNode!=null)lf(i,l,b,C),i.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!C){if(l.stateNode===null)throw Error(f(166));return La(l),null}if(i=Al(ki.current),dp(l)){C=l.stateNode,b=l.type;var ee=l.memoizedProps;switch(C[Ki]=l,C[lp]=ee,i=!!(1&l.mode),b){case"dialog":fe("cancel",C),fe("close",C);break;case"iframe":case"object":case"embed":fe("load",C);break;case"video":case"audio":for($=0;$<\/script>",i=i.removeChild(i.firstChild)):typeof C.is=="string"?i=ue.createElement(b,{is:C.is}):(i=ue.createElement(b),b==="select"&&(ue=i,C.multiple?ue.multiple=!0:C.size&&(ue.size=C.size))):i=ue.createElementNS(i,b),i[Ki]=l,i[lp]=C,jg(i,l),l.stateNode=i;e:{switch(ue=un(b,C),b){case"dialog":fe("cancel",i),fe("close",i),$=C;break;case"iframe":case"object":case"embed":fe("load",i),$=C;break;case"video":case"audio":for($=0;$Pl&&(l.flags|=128,C=!0,bu(ee,!1),l.lanes=4194304)}else{if(!C)if((i=vh(ue))!==null){if(l.flags|=128,C=!0,(b=i.updateQueue)!==null&&(l.updateQueue=b,l.flags|=4),bu(ee,!0),ee.tail===null&&ee.tailMode==="hidden"&&!ue.alternate&&!Un)return La(l),null}else 2*Yt()-ee.renderingStartTime>Pl&&b!==1073741824&&(l.flags|=128,C=!0,bu(ee,!1),l.lanes=4194304);ee.isBackwards?(ue.sibling=l.child,l.child=ue):((b=ee.last)!==null?b.sibling=ue:l.child=ue,ee.last=ue)}return ee.tail!==null?(l=ee.tail,ee.rendering=l,ee.tail=l.sibling,ee.renderingStartTime=Yt(),l.sibling=null,b=Wn.current,Cn(Wn,C?1&b|2:1&b),l):(La(l),null);case 22:case 23:return Sf(),C=l.memoizedState!==null,i!==null&&i.memoizedState!==null!==C&&(l.flags|=8192),C&&1&l.mode?1073741824&fo&&(La(l),6&l.subtreeFlags&&(l.flags|=8192)):La(l),null;case 24:case 25:return null}throw Error(f(156,l.tag))}function Mg(i,l){switch(Dd(l),l.tag){case 1:return Ko(l.type)&&sh(),65536&(i=l.flags)?(l.flags=-65537&i|128,l):null;case 3:return va(),qn(Oa),qn(Xa),Jd(),65536&(i=l.flags)&&!(128&i)?(l.flags=-65537&i|128,l):null;case 5:return yh(l),null;case 13:if(qn(Wn),(i=l.memoizedState)!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(f(340));su()}return 65536&(i=l.flags)?(l.flags=-65537&i|128,l):null;case 19:return qn(Wn),null;case 4:return va(),null;case 10:return uu(l.type._context),null;case 22:case 23:return Sf(),null;default:return null}}jg=function(i,l){for(var b=l.child;b!==null;){if(b.tag===5||b.tag===6)i.appendChild(b.stateNode);else if(b.tag!==4&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===l)break;for(;b.sibling===null;){if(b.return===null||b.return===l)return;b=b.return}b.sibling.return=b.return,b=b.sibling}},lf=function(i,l,b,C){var $=i.memoizedProps;if($!==C){i=l.stateNode,Al(ki.current);var ee,ue=null;switch(b){case"input":$=Gt(i,$),C=Gt(i,C),ue=[];break;case"select":$=De({},$,{value:void 0}),C=De({},C,{value:void 0}),ue=[];break;case"textarea":$=ne(i,$),C=ne(i,C),ue=[];break;default:typeof $.onClick!="function"&&typeof C.onClick=="function"&&(i.onclick=Hn)}for(Ue in Zn(b,C),b=null,$)if(!C.hasOwnProperty(Ue)&&$.hasOwnProperty(Ue)&&$[Ue]!=null)if(Ue==="style"){var Ce=$[Ue];for(ee in Ce)Ce.hasOwnProperty(ee)&&(b||(b={}),b[ee]="")}else Ue!=="dangerouslySetInnerHTML"&&Ue!=="children"&&Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&Ue!=="autoFocus"&&(m.hasOwnProperty(Ue)?ue||(ue=[]):(ue=ue||[]).push(Ue,null));for(Ue in C){var Me=C[Ue];if(Ce=$?.[Ue],C.hasOwnProperty(Ue)&&Me!==Ce&&(Me!=null||Ce!=null))if(Ue==="style")if(Ce){for(ee in Ce)!Ce.hasOwnProperty(ee)||Me&&Me.hasOwnProperty(ee)||(b||(b={}),b[ee]="");for(ee in Me)Me.hasOwnProperty(ee)&&Ce[ee]!==Me[ee]&&(b||(b={}),b[ee]=Me[ee])}else b||(ue||(ue=[]),ue.push(Ue,b)),b=Me;else Ue==="dangerouslySetInnerHTML"?(Me=Me?Me.__html:void 0,Ce=Ce?Ce.__html:void 0,Me!=null&&Ce!==Me&&(ue=ue||[]).push(Ue,Me)):Ue==="children"?typeof Me!="string"&&typeof Me!="number"||(ue=ue||[]).push(Ue,""+Me):Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&(m.hasOwnProperty(Ue)?(Me!=null&&Ue==="onScroll"&&fe("scroll",i),ue||Ce===Me||(ue=[])):(ue=ue||[]).push(Ue,Me))}b&&(ue=ue||[]).push("style",b);var Ue=ue;(l.updateQueue=Ue)&&(l.flags|=4)}},Pg=function(i,l,b,C){b!==C&&(l.flags|=4)};var Ih=!1,$a=!1,Rg=typeof WeakSet=="function"?WeakSet:Set,cr=null;function wu(i,l){var b=i.ref;if(b!==null)if(typeof b=="function")try{b(null)}catch(C){Gn(i,l,C)}else b.current=null}function Dg(i,l,b){try{b()}catch(C){Gn(i,l,C)}}var Fg=!1;function Op(i,l,b){var C=l.updateQueue;if((C=C!==null?C.lastEffect:null)!==null){var $=C=C.next;do{if(($.tag&i)===i){var ee=$.destroy;$.destroy=void 0,ee!==void 0&&Dg(l,b,ee)}$=$.next}while($!==C)}}function Eu(i,l){if((l=(l=l.updateQueue)!==null?l.lastEffect:null)!==null){var b=l=l.next;do{if((b.tag&i)===i){var C=b.create;b.destroy=C()}b=b.next}while(b!==l)}}function Mh(i){var l=i.ref;if(l!==null){var b=i.stateNode;i.tag,i=b,typeof l=="function"?l(i):l.current=i}}function Lg(i){var l=i.alternate;l!==null&&(i.alternate=null,Lg(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode)!==null&&(delete l[Ki],delete l[lp],delete l[ih],delete l[o0],delete l[i0]),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function hf(i){return i.tag===5||i.tag===3||i.tag===4}function $g(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||hf(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(2&i.flags||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(2&i.flags))return i.stateNode}}function df(i,l,b){var C=i.tag;if(C===5||C===6)i=i.stateNode,l?b.nodeType===8?b.parentNode.insertBefore(i,l):b.insertBefore(i,l):(b.nodeType===8?(l=b.parentNode).insertBefore(i,b):(l=b).appendChild(i),(b=b._reactRootContainer)!=null||l.onclick!==null||(l.onclick=Hn));else if(C!==4&&(i=i.child)!==null)for(df(i,l,b),i=i.sibling;i!==null;)df(i,l,b),i=i.sibling}function Rh(i,l,b){var C=i.tag;if(C===5||C===6)i=i.stateNode,l?b.insertBefore(i,l):b.appendChild(i);else if(C!==4&&(i=i.child)!==null)for(Rh(i,l,b),i=i.sibling;i!==null;)Rh(i,l,b),i=i.sibling}var ho=null,ci=!1;function Cl(i,l,b){for(b=b.child;b!==null;)ff(i,l,b),b=b.sibling}function ff(i,l,b){if(Wa&&typeof Wa.onCommitFiberUnmount=="function")try{Wa.onCommitFiberUnmount(Ja,b)}catch{}switch(b.tag){case 5:$a||wu(b,l);case 6:var C=ho,$=ci;ho=null,Cl(i,l,b),ci=$,(ho=C)!==null&&(ci?(i=ho,b=b.stateNode,i.nodeType===8?i.parentNode.removeChild(b):i.removeChild(b)):ho.removeChild(b.stateNode));break;case 18:ho!==null&&(ci?(i=ho,b=b.stateNode,i.nodeType===8?Pd(i.parentNode,b):i.nodeType===1&&Pd(i,b),Po(i)):Pd(ho,b.stateNode));break;case 4:C=ho,$=ci,ho=b.stateNode.containerInfo,ci=!0,Cl(i,l,b),ho=C,ci=$;break;case 0:case 11:case 14:case 15:if(!$a&&(C=b.updateQueue)!==null&&(C=C.lastEffect)!==null){$=C=C.next;do{var ee=$,ue=ee.destroy;ee=ee.tag,ue!==void 0&&(2&ee||4&ee)&&Dg(b,l,ue),$=$.next}while($!==C)}Cl(i,l,b);break;case 1:if(!$a&&(wu(b,l),typeof(C=b.stateNode).componentWillUnmount=="function"))try{C.props=b.memoizedProps,C.state=b.memoizedState,C.componentWillUnmount()}catch(Ce){Gn(b,l,Ce)}Cl(i,l,b);break;case 21:Cl(i,l,b);break;case 22:1&b.mode?($a=(C=$a)||b.memoizedState!==null,Cl(i,l,b),$a=C):Cl(i,l,b);break;default:Cl(i,l,b)}}function Bg(i){var l=i.updateQueue;if(l!==null){i.updateQueue=null;var b=i.stateNode;b===null&&(b=i.stateNode=new Rg),l.forEach((function(C){var $=ey.bind(null,i,C);b.has(C)||(b.add(C),C.then($,$))}))}}function Qi(i,l){var b=l.deletions;if(b!==null)for(var C=0;C$&&($=ue),C&=~ee}if(C=$,10<(C=(120>(C=Yt()-C)?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*p0(C/1960))-C)){i.timeoutHandle=Ga(_u.bind(null,i,Fo,Zi),C);break}_u(i,Fo,Zi);break;default:throw Error(f(329))}}}return $o(i,Yt()),i.callbackNode===b?Wg.bind(null,i):null}function bf(i,l){var b=vc;return i.current.memoizedState.isDehydrated&&(Ec(i,l).flags|=256),(i=Bh(i,l))!==2&&(l=Fo,Fo=b,l!==null&&wf(l)),i}function wf(i){Fo===null?Fo=i:Fo.push.apply(Fo,i)}function Il(i,l){for(l&=~kp,l&=~Su,i.suspendedLanes|=l,i.pingedLanes&=~l,i=i.expirationTimes;0i?16:i,Nl===null)var C=!1;else{if(i=Nl,Nl=null,Fh=0,6&pn)throw Error(f(331));var $=pn;for(pn|=4,cr=i.current;cr!==null;){var ee=cr,ue=ee.child;if(16&cr.flags){var Ce=ee.deletions;if(Ce!==null){for(var Me=0;MeYt()-Ap?Ec(i,0):kp|=b),$o(i,l)}function Zg(i,l){l===0&&(1&i.mode?(l=ys,!(130023424&(ys<<=1))&&(ys=4194304)):l=1);var b=to();(i=Ps(i,l))!==null&&(Ao(i,l,b),$o(i,b))}function m0(i){var l=i.memoizedState,b=0;l!==null&&(b=l.retryLane),Zg(i,b)}function ey(i,l){var b=0;switch(i.tag){case 13:var C=i.stateNode,$=i.memoizedState;$!==null&&(b=$.retryLane);break;case 19:C=i.stateNode;break;default:throw Error(f(314))}C!==null&&C.delete(l),Zg(i,b)}function ty(i,l){return fi(i,l)}function g0(i,l,b,C){this.tag=i,this.key=b,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bo(i,l,b,C){return new g0(i,l,b,C)}function Pp(i){return!(!(i=i.prototype)||!i.isReactComponent)}function pa(i,l){var b=i.alternate;return b===null?((b=Bo(i.tag,l,i.key,i.mode)).elementType=i.elementType,b.type=i.type,b.stateNode=i.stateNode,b.alternate=i,i.alternate=b):(b.pendingProps=l,b.type=i.type,b.flags=0,b.subtreeFlags=0,b.deletions=null),b.flags=14680064&i.flags,b.childLanes=i.childLanes,b.lanes=i.lanes,b.child=i.child,b.memoizedProps=i.memoizedProps,b.memoizedState=i.memoizedState,b.updateQueue=i.updateQueue,l=i.dependencies,b.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},b.sibling=i.sibling,b.index=i.index,b.ref=i.ref,b}function ku(i,l,b,C,$,ee){var ue=2;if(C=i,typeof i=="function")Pp(i)&&(ue=1);else if(typeof i=="string")ue=5;else e:switch(i){case Te:return Xo(b.children,$,ee,l);case he:ue=8,$|=8;break;case ge:return(i=Bo(12,b,l,2|$)).elementType=ge,i.lanes=ee,i;case qe:return(i=Bo(13,b,l,$)).elementType=qe,i.lanes=ee,i;case nt:return(i=Bo(19,b,l,$)).elementType=nt,i.lanes=ee,i;case u:return Np(b,$,ee,l);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case ke:ue=10;break e;case Ve:ue=9;break e;case He:ue=11;break e;case gt:ue=14;break e;case Re:ue=16,C=null;break e}throw Error(f(130,i==null?i:typeof i,""))}return(l=Bo(ue,b,l,$)).elementType=i,l.type=C,l.lanes=ee,l}function Xo(i,l,b,C){return(i=Bo(7,i,C,l)).lanes=b,i}function Np(i,l,b,C){return(i=Bo(22,i,C,l)).elementType=u,i.lanes=b,i.stateNode={isHidden:!1},i}function Tp(i,l,b){return(i=Bo(6,i,null,l)).lanes=b,i}function qh(i,l,b){return(l=Bo(4,i.children!==null?i.children:[],i.key,l)).lanes=b,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}function ry(i,l,b,C,$){this.tag=l,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ec(0),this.expirationTimes=ec(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ec(0),this.identifierPrefix=C,this.onRecoverableError=$,this.mutableSourceEagerHydrationData=null}function zn(i,l,b,C,$,ee,ue,Ce,Me){return i=new ry(i,l,b,Ce,Me),l===1?(l=1,ee===!0&&(l|=8)):l=0,ee=Bo(3,null,null,l),i.current=ee,ee.stateNode=i,ee.memoizedState={element:C,isDehydrated:b,cache:null,transitions:null,pendingSuspenseBoundaries:null},yp(ee),i}function ny(i){if(!i)return xl;e:{if(Va(i=i._reactInternals)!==i||i.tag!==1)throw Error(f(170));var l=i;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(Ko(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(f(171))}if(i.tag===1){var b=i.type;if(Ko(b))return Id(i,b,l)}return l}function Sc(i,l,b,C,$,ee,ue,Ce,Me){return(i=zn(b,C,!0,i,0,ee,0,Ce,Me)).context=ny(null),b=i.current,(ee=Ns(C=to(),$=Tl(b))).callback=l??null,Ts(b,ee,$),i.current.lanes=$,Ao(i,$,C),$o(i,C),i}function Uh(i,l,b,C){var $=l.current,ee=to(),ue=Tl($);return b=ny(b),l.context===null?l.context=b:l.pendingContext=b,(l=Ns(ee,ue)).payload={element:i},(C=C===void 0?null:C)!==null&&(l.callback=C),(i=Ts($,l,ue))!==null&&(Lo(i,$,ue,ee),hu(i,$,ue)),ue}function Ml(i){return(i=i.current).child?(i.child.tag,i.child.stateNode):null}function Rl(i,l){if((i=i.memoizedState)!==null&&i.dehydrated!==null){var b=i.retryLane;i.retryLane=b!==0&&b6?X-6:0),ie=6;ie>",M[z]!=null?_.apply(void 0,[M,z,K,Y,B].concat(te)):j?new Error("Required "+Y+" `"+B+"` was not specified in `"+K+"`."):void 0}var I=T.bind(null,!1);return I.isRequired=T.bind(null,!0),I}function S(_,T){return(function(j,M){return g((function(K,Y,B,X,te){var ie=K[Y];if(!M(ie)){var se=m(ie);return new Error("Invalid "+X+" `"+te+"` of type `"+se+"` supplied to `"+B+"`, expected `"+j+"`.")}return null}))})("Iterable."+_,(function(I){return v.Iterable.isIterable(I)&&T(I)}))}(h={listOf:y,mapOf:y,orderedMapOf:y,setOf:y,orderedSetOf:y,stackOf:y,iterableOf:y,recordOf:y,shape:y,contains:y,mapContains:y,orderedMapContains:y,list:f,map:f,orderedMap:f,set:f,orderedSet:f,stack:f,seq:f,record:f,iterable:f}).iterable.indexed=S("Indexed",v.Iterable.isIndexed),h.iterable.keyed=S("Keyed",v.Iterable.isKeyed),w.exports=h},15287(w,N){var s=Symbol.for("react.element"),h=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),g=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),T=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),j=Symbol.iterator,M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,K={};function Y(Se,De,Ke){this.props=Se,this.context=De,this.refs=K,this.updater=Ke||M}function B(){}function X(Se,De,Ke){this.props=Se,this.context=De,this.refs=K,this.updater=Ke||M}Y.prototype.isReactComponent={},Y.prototype.setState=function(Se,De){if(typeof Se!="object"&&typeof Se!="function"&&Se!=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,Se,De,"setState")},Y.prototype.forceUpdate=function(Se){this.updater.enqueueForceUpdate(this,Se,"forceUpdate")},B.prototype=Y.prototype;var te=X.prototype=new B;te.constructor=X,z(te,Y.prototype),te.isPureReactComponent=!0;var ie=Array.isArray,se=Object.prototype.hasOwnProperty,Te={current:null},he={key:!0,ref:!0,__self:!0,__source:!0};function ge(Se,De,Ke){var ft,Nt={},Wt=null,H=null;if(De!=null)for(ft in De.ref!==void 0&&(H=De.ref),De.key!==void 0&&(Wt=""+De.key),De)se.call(De,ft)&&!he.hasOwnProperty(ft)&&(Nt[ft]=De[ft]);var we=arguments.length-2;if(we===1)Nt.children=Ke;else if(12?"one of ".concat(f," ").concat(v.slice(0,y-1).join(", "),", or ")+v[y-1]:y===2?"one of ".concat(f," ").concat(v[0]," or ").concat(v[1]):"of ".concat(f," ").concat(v[0])}return"of ".concat(f," ").concat(String(v))}s("ERR_INVALID_OPT_VALUE",(function(v,f){return'The value "'+f+'" is invalid for option "'+v+'"'}),TypeError),s("ERR_INVALID_ARG_TYPE",(function(v,f,y){var m,g;if(typeof f=="string"&&(function(T,I,j){return T.substr(0,I.length)===I})(f,"not ")?(m="must not be",f=f.replace(/^not /,"")):m="must be",(function(T,I,j){return(j===void 0||j>T.length)&&(j=T.length),T.substring(j-I.length,j)===I})(v," argument"))g="The ".concat(v," ").concat(m," ").concat(h(f,"type"));else{var S=(function(T,I,j){return typeof j!="number"&&(j=0),!(j+I.length>T.length)&&T.indexOf(I,j)!==-1})(v,".")?"property":"argument";g='The "'.concat(v,'" ').concat(S," ").concat(m," ").concat(h(f,"type"))}return g+=". Received type ".concat(typeof y)}),TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",(function(v){return"The "+v+" method is not implemented"})),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",(function(v){return"Cannot call "+v+" after a stream was destroyed"})),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",(function(v){return"Unknown encoding: "+v}),TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),w.exports.F=N},25382(w,N,s){var h=s(65606),v=Object.keys||function(j){var M=[];for(var z in j)M.push(z);return M};w.exports=_;var f=s(45412),y=s(16708);s(56698)(_,f);for(var m=v(y.prototype),g=0;g0)if(typeof we=="string"||Tt.objectMode||Object.getPrototypeOf(we)===m.prototype||(we=(function(Sr){return m.from(Sr)})(we)),mt)Tt.endEmitted?se(H,new ie):Ve(H,Tt,we,!0);else if(Tt.ended)se(H,new X);else{if(Tt.destroyed)return!1;Tt.reading=!1,Tt.decoder&&!ct?(we=Tt.decoder.write(we),Tt.objectMode||we.length!==0?Ve(H,Tt,we,!1):Re(H,Tt)):Ve(H,Tt,we,!1)}else mt||(Tt.reading=!1,Re(H,Tt));return!Tt.ended&&(Tt.lengthwe.highWaterMark&&(we.highWaterMark=(function(mt){return mt>=He?mt=He:(mt--,mt|=mt>>>1,mt|=mt>>>2,mt|=mt>>>4,mt|=mt>>>8,mt|=mt>>>16,mt++),mt})(H)),H<=we.length?H:we.ended?we.length:(we.needReadable=!0,0))}function nt(H){var we=H._readableState;S("emitReadable",we.needReadable,we.emittedReadable),we.needReadable=!1,we.emittedReadable||(S("emitReadable",we.flowing),we.emittedReadable=!0,v.nextTick(gt,H))}function gt(H){var we=H._readableState;S("emitReadable_",we.destroyed,we.length,we.ended),we.destroyed||!we.length&&!we.ended||(H.emit("readable"),we.emittedReadable=!1),we.needReadable=!we.flowing&&!we.ended&&we.length<=we.highWaterMark,De(H)}function Re(H,we){we.readingMore||(we.readingMore=!0,v.nextTick(u,H,we))}function u(H,we){for(;!we.reading&&!we.ended&&(we.length0,we.resumeScheduled&&!we.paused?we.flowing=!0:H.listenerCount("data")>0&&H.resume()}function Xe(H){S("readable nexttick read 0"),H.read(0)}function Se(H,we){S("resume",we.reading),we.reading||H.read(0),we.resumeScheduled=!1,H.emit("resume"),De(H),we.flowing&&!we.reading&&H.read(0)}function De(H){var we=H._readableState;for(S("flow",we.flowing);we.flowing&&H.read()!==null;);}function Ke(H,we){return we.length===0?null:(we.objectMode?ct=we.buffer.shift():!H||H>=we.length?(ct=we.decoder?we.buffer.join(""):we.buffer.length===1?we.buffer.first():we.buffer.concat(we.length),we.buffer.clear()):ct=we.buffer.consume(H,we.decoder),ct);var ct}function ft(H){var we=H._readableState;S("endReadable",we.endEmitted),we.endEmitted||(we.ended=!0,v.nextTick(Nt,we,H))}function Nt(H,we){if(S("endReadableNT",H.endEmitted,H.length),!H.endEmitted&&H.length===0&&(H.endEmitted=!0,we.readable=!1,we.emit("end"),H.autoDestroy)){var ct=we._writableState;(!ct||ct.autoDestroy&&ct.finished)&&we.destroy()}}function Wt(H,we){for(var ct=0,mt=H.length;ct=we.highWaterMark:we.length>0)||we.ended))return S("read: emitReadable",we.length,we.ended),we.length===0&&we.ended?ft(this):nt(this),null;if((H=qe(H,we))===0&&we.ended)return we.length===0&&ft(this),null;var mt,ur=we.needReadable;return S("need readable",ur),(we.length===0||we.length-H0?Ke(H,we):null)===null?(we.needReadable=we.length<=we.highWaterMark,H=0):(we.length-=H,we.awaitDrain=0),we.length===0&&(we.ended||(we.needReadable=!0),ct!==H&&we.ended&&ft(this)),mt!==null&&this.emit("data",mt),mt},ge.prototype._read=function(H){se(this,new te("_read()"))},ge.prototype.pipe=function(H,we){var ct=this,mt=this._readableState;switch(mt.pipesCount){case 0:mt.pipes=H;break;case 1:mt.pipes=[mt.pipes,H];break;default:mt.pipes.push(H)}mt.pipesCount+=1,S("pipe count=%d opts=%j",mt.pipesCount,we);var ur=(!we||we.end!==!1)&&H!==v.stdout&&H!==v.stderr?Tt:U;function ar(Z,ne){S("onunpipe"),Z===ct&&ne&&ne.hasUnpiped===!1&&(ne.hasUnpiped=!0,(function(){S("cleanup"),H.removeListener("close",Zt),H.removeListener("finish",pe),H.removeListener("drain",Gt),H.removeListener("error",yt),H.removeListener("unpipe",ar),ct.removeListener("end",Tt),ct.removeListener("end",U),ct.removeListener("data",kt),Sr=!0,!mt.awaitDrain||H._writableState&&!H._writableState.needDrain||Gt()})())}function Tt(){S("onend"),H.end()}mt.endEmitted?v.nextTick(ur):ct.once("end",ur),H.on("unpipe",ar);var Gt=(function(ne){return function(){var Ee=ne._readableState;S("pipeOnDrain",Ee.awaitDrain),Ee.awaitDrain&&Ee.awaitDrain--,Ee.awaitDrain===0&&f(ne,"data")&&(Ee.flowing=!0,De(ne))}})(ct);H.on("drain",Gt);var Sr=!1;function kt(Z){S("ondata");var ne=H.write(Z);S("dest.write",ne),ne===!1&&((mt.pipesCount===1&&mt.pipes===H||mt.pipesCount>1&&Wt(mt.pipes,H)!==-1)&&!Sr&&(S("false write response, pause",mt.awaitDrain),mt.awaitDrain++),ct.pause())}function yt(Z){S("onerror",Z),U(),H.removeListener("error",yt),f(H,"error")===0&&se(H,Z)}function Zt(){H.removeListener("finish",pe),U()}function pe(){S("onfinish"),H.removeListener("close",Zt),U()}function U(){S("unpipe"),ct.unpipe(H)}return ct.on("data",kt),(function(ne,ye,Ee){if(typeof ne.prependListener=="function")return ne.prependListener(ye,Ee);ne._events&&ne._events[ye]?Array.isArray(ne._events[ye])?ne._events[ye].unshift(Ee):ne._events[ye]=[Ee,ne._events[ye]]:ne.on(ye,Ee)})(H,"error",yt),H.once("close",Zt),H.once("finish",pe),H.emit("pipe",ct),mt.flowing||(S("pipe resume"),ct.resume()),H},ge.prototype.unpipe=function(H){var we=this._readableState,ct={hasUnpiped:!1};if(we.pipesCount===0)return this;if(we.pipesCount===1)return H&&H!==we.pipes||(H||(H=we.pipes),we.pipes=null,we.pipesCount=0,we.flowing=!1,H&&H.emit("unpipe",this,ct)),this;if(!H){var mt=we.pipes,ur=we.pipesCount;we.pipes=null,we.pipesCount=0,we.flowing=!1;for(var ar=0;ar0,mt.flowing!==!1&&this.resume()):H==="readable"&&(mt.endEmitted||mt.readableListening||(mt.readableListening=mt.needReadable=!0,mt.flowing=!1,mt.emittedReadable=!1,S("on readable",mt.length,mt.reading),mt.length?nt(this):mt.reading||v.nextTick(Xe,this))),ct},ge.prototype.addListener=ge.prototype.on,ge.prototype.removeListener=function(H,we){var ct=y.prototype.removeListener.call(this,H,we);return H==="readable"&&v.nextTick(at,this),ct},ge.prototype.removeAllListeners=function(H){var we=y.prototype.removeAllListeners.apply(this,arguments);return H!=="readable"&&H!==void 0||v.nextTick(at,this),we},ge.prototype.resume=function(){var H=this._readableState;return H.flowing||(S("resume"),H.flowing=!H.readableListening,(function(ct,mt){mt.resumeScheduled||(mt.resumeScheduled=!0,v.nextTick(Se,ct,mt))})(this,H)),H.paused=!1,this},ge.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},ge.prototype.wrap=function(H){var we=this,ct=this._readableState,mt=!1;for(var ur in H.on("end",(function(){if(S("wrapped end"),ct.decoder&&!ct.ended){var Tt=ct.decoder.end();Tt&&Tt.length&&we.push(Tt)}we.push(null)})),H.on("data",(function(Tt){S("wrapped data"),ct.decoder&&(Tt=ct.decoder.write(Tt)),ct.objectMode&&Tt==null||(ct.objectMode||Tt&&Tt.length)&&(we.push(Tt)||(mt=!0,H.pause()))})),H)this[ur]===void 0&&typeof H[ur]=="function"&&(this[ur]=(function(Gt){return function(){return H[Gt].apply(H,arguments)}})(ur));for(var ar=0;ar-1))throw new ie(u);return this._writableState.defaultEncoding=u,this},Object.defineProperty(ge.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ge.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ge.prototype._write=function(Re,u,at){at(new z("_write()"))},ge.prototype._writev=null,ge.prototype.end=function(Re,u,at){var Xe=this._writableState;return typeof Re=="function"?(at=Re,Re=null,u=null):typeof u=="function"&&(at=u,u=null),Re!=null&&this.write(Re,u),Xe.corked&&(Xe.corked=1,this.uncork()),Xe.ending||(function(De,Ke,ft){Ke.ending=!0,gt(De,Ke),ft&&(Ke.finished?v.nextTick(ft):De.once("finish",ft)),Ke.ended=!0,De.writable=!1})(this,Xe,at),this},Object.defineProperty(ge.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ge.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(u){this._writableState&&(this._writableState.destroyed=u)}}),ge.prototype.destroy=T.destroy,ge.prototype._undestroy=T.undestroy,ge.prototype._destroy=function(Re,u){u(Re)}},2955(w,N,s){var h,v=s(65606);function f(X,te,ie){return(te=(function(Te){var he=(function(ke,Ve){if(typeof ke!="object"||ke===null)return ke;var He=ke[Symbol.toPrimitive];if(He!==void 0){var qe=He.call(ke,Ve);if(typeof qe!="object")return qe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ve==="string"?String:Number)(ke)})(Te,"string");return typeof he=="symbol"?he:String(he)})(te))in X?Object.defineProperty(X,te,{value:ie,enumerable:!0,configurable:!0,writable:!0}):X[te]=ie,X}var y=s(86238),m=Symbol("lastResolve"),g=Symbol("lastReject"),S=Symbol("error"),_=Symbol("ended"),T=Symbol("lastPromise"),I=Symbol("handlePromise"),j=Symbol("stream");function M(X,te){return{value:X,done:te}}function z(X){var te=X[m];if(te!==null){var ie=X[j].read();ie!==null&&(X[T]=null,X[m]=null,X[g]=null,te(M(ie,!1)))}}function K(X){v.nextTick(z,X)}var Y=Object.getPrototypeOf((function(){})),B=Object.setPrototypeOf((f(h={get stream(){return this[j]},next:function(){var te=this,ie=this[S];if(ie!==null)return Promise.reject(ie);if(this[_])return Promise.resolve(M(void 0,!0));if(this[j].destroyed)return new Promise((function(ge,ke){v.nextTick((function(){te[S]?ke(te[S]):ge(M(void 0,!0))}))}));var se,Te=this[T];if(Te)se=new Promise((function(ke,Ve){return function(He,qe){ke.then((function(){Ve[_]?He(M(void 0,!0)):Ve[I](He,qe)}),qe)}})(Te,this));else{var he=this[j].read();if(he!==null)return Promise.resolve(M(he,!1));se=new Promise(this[I])}return this[T]=se,se}},Symbol.asyncIterator,(function(){return this})),f(h,"return",(function(){var te=this;return new Promise((function(ie,se){te[j].destroy(null,(function(Te){Te?se(Te):ie(M(void 0,!0))}))}))})),h),Y);w.exports=function(te){var ie,se=Object.create(B,(f(ie={},j,{value:te,writable:!0}),f(ie,m,{value:null,writable:!0}),f(ie,g,{value:null,writable:!0}),f(ie,S,{value:null,writable:!0}),f(ie,_,{value:te._readableState.endEmitted,writable:!0}),f(ie,I,{value:function(he,ge){var ke=se[j].read();ke?(se[T]=null,se[m]=null,se[g]=null,he(M(ke,!1))):(se[m]=he,se[g]=ge)},writable:!0}),ie));return se[T]=null,y(te,(function(Te){if(Te&&Te.code!=="ERR_STREAM_PREMATURE_CLOSE"){var he=se[g];return he!==null&&(se[T]=null,se[m]=null,se[g]=null,he(Te)),void(se[S]=Te)}var ge=se[m];ge!==null&&(se[T]=null,se[m]=null,se[g]=null,ge(M(void 0,!0))),se[_]=!0})),te.on("readable",K.bind(null,se)),se}},80345(w,N,s){function h(T,I){var j=Object.keys(T);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(T);I&&(M=M.filter((function(z){return Object.getOwnPropertyDescriptor(T,z).enumerable}))),j.push.apply(j,M)}return j}function v(T){for(var I=1;I0?this.tail.next=M:this.head=M,this.tail=M,++this.length}},{key:"unshift",value:function(j){var M={data:j,next:this.head};this.length===0&&(this.tail=M),this.head=M,++this.length}},{key:"shift",value:function(){if(this.length!==0){var j=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,j}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(j){if(this.length===0)return"";for(var M=this.head,z=""+M.data;M=M.next;)z+=j+M.data;return z}},{key:"concat",value:function(j){if(this.length===0)return g.alloc(0);for(var M,z,K,Y=g.allocUnsafe(j>>>0),B=this.head,X=0;B;)M=B.data,z=Y,K=X,g.prototype.copy.call(M,z,K),X+=B.data.length,B=B.next;return Y}},{key:"consume",value:function(j,M){var z;return jY.length?Y.length:j;if(B===Y.length?K+=Y:K+=Y.slice(0,j),(j-=B)===0){B===Y.length?(++z,M.next?this.head=M.next:this.head=this.tail=null):(this.head=M,M.data=Y.slice(B));break}++z}return this.length-=z,K}},{key:"_getBuffer",value:function(j){var M=g.allocUnsafe(j),z=this.head,K=1;for(z.data.copy(M),j-=z.data.length;z=z.next;){var Y=z.data,B=j>Y.length?Y.length:j;if(Y.copy(M,M.length-j,0,B),(j-=B)===0){B===Y.length?(++K,z.next?this.head=z.next:this.head=this.tail=null):(this.head=z,z.data=Y.slice(B));break}++K}return this.length-=K,M}},{key:_,value:function(j,M){return S(this,v(v({},M),{},{depth:0,customInspect:!1}))}}]),T})()},75896(w,N,s){var h=s(65606);function v(m,g){y(m,g),f(m)}function f(m){m._writableState&&!m._writableState.emitClose||m._readableState&&!m._readableState.emitClose||m.emit("close")}function y(m,g){m.emit("error",g)}w.exports={destroy:function(g,S){var _=this,T=this._readableState&&this._readableState.destroyed,I=this._writableState&&this._writableState.destroyed;return T||I?(S?S(g):g&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,h.nextTick(y,this,g)):h.nextTick(y,this,g)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,(function(j){!S&&j?_._writableState?_._writableState.errorEmitted?h.nextTick(f,_):(_._writableState.errorEmitted=!0,h.nextTick(v,_,j)):h.nextTick(v,_,j):S?(h.nextTick(f,_),S(j)):h.nextTick(f,_)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(g,S){var _=g._readableState,T=g._writableState;_&&_.autoDestroy||T&&T.autoDestroy?g.destroy(S):g.emit("error",S)}}},86238(w,N,s){var h=s(86048).F.ERR_STREAM_PREMATURE_CLOSE;function v(){}w.exports=function f(y,m,g){if(typeof m=="function")return f(y,null,m);m||(m={}),g=(function(te){var ie=!1;return function(){if(!ie){ie=!0;for(var se=arguments.length,Te=new Array(se),he=0;he0,(function(te){M||(M=te),te&&K.forEach(g),X||(K.forEach(g),z(M))}))}));return I.reduce(S)}},65291(w,N,s){var h=s(86048).F.ERR_INVALID_OPT_VALUE;w.exports={getHighWaterMark:function(f,y,m,g){var S=(function(T,I,j){return T.highWaterMark!=null?T.highWaterMark:I?T[j]:null})(y,g,m);if(S!=null){if(!isFinite(S)||Math.floor(S)!==S||S<0)throw new h(g?m:"highWaterMark",S);return Math.floor(S)}return f.objectMode?16:16384}}},40345(w,N,s){w.exports=s(37007).EventEmitter},84977(w,N,s){Object.defineProperty(N,"__esModule",{value:!0});var h=(function(y){return y&&y.__esModule?y:{default:y}})(s(49568)),v=s(55674);N.default=function(f){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.Map,m=Object.keys(f);return function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y(),S=arguments[1];return g.withMutations((function(_){m.forEach((function(T){var I=(0,f[T])(_.get(T),S);(0,v.validateNextState)(I,T,S),_.set(T,I)}))}))}},w.exports=N.default},89593(w,N,s){N.H=void 0;var h=(function(f){return f&&f.__esModule?f:{default:f}})(s(84977));N.H=h.default},48590(w,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=function(s){return s&&s.type==="@@redux/INIT"?"initialState argument passed to createStore":"previous state received by the reducer"},w.exports=N.default},82261(w,N,s){Object.defineProperty(N,"__esModule",{value:!0});var h=f(s(49568)),v=f(s(48590));function f(y){return y&&y.__esModule?y:{default:y}}N.default=function(y,m,g){var S=Object.keys(m);if(!S.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";var _=(0,v.default)(g);if(h.default.isImmutable?!h.default.isImmutable(y):!h.default.Iterable.isIterable(y))return"The "+_+' is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "'+S.join('", "')+'".';var T=y.toSeq().keySeq().toArray().filter((function(I){return!m.hasOwnProperty(I)}));return T.length>0?"Unexpected "+(T.length===1?"property":"properties")+' "'+T.join('", "')+'" found in '+_+'. Expected to find one of the known reducer property names instead: "'+S.join('", "')+'". Unexpected properties will be ignored.':null},w.exports=N.default},55674(w,N,s){Object.defineProperty(N,"__esModule",{value:!0}),N.validateNextState=N.getUnexpectedInvocationParameterMessage=N.getStateName=void 0;var h=y(s(48590)),v=y(s(82261)),f=y(s(27374));function y(m){return m&&m.__esModule?m:{default:m}}N.getStateName=h.default,N.getUnexpectedInvocationParameterMessage=v.default,N.validateNextState=f.default},27374(w,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=function(s,h,v){if(s===void 0)throw new Error('Reducer "'+h+'" returned undefined when handling "'+v.type+'" action. To ignore an action, you must explicitly return the previous state.')},w.exports=N.default},75208(w){var N,s="";w.exports=function(v,f){if(typeof v!="string")throw new TypeError("expected a string");if(f===1)return v;if(f===2)return v+v;var y=v.length*f;if(N!==v||N===void 0)N=v,s="";else if(s.length>=y)return s.substr(0,y);for(;y>s.length&&f>1;)1&f&&(s+=v),f>>=1,v+=v;return s=(s+=v).substr(0,y)}},92063(w){w.exports=function(s,h){if(h=h.split(":")[0],!(s=+s))return!1;switch(h){case"http":case"ws":return s!==80;case"https":case"wss":return s!==443;case"ftp":return s!==21;case"gopher":return s!==70;case"file":return!1}return s!==0}},27096(w,N,s){const h=s(87586),v=s(6205),f=s(10023),y=s(8048);w.exports=m=>{var g,S,_=0,T={type:v.ROOT,stack:[]},I=T,j=T.stack,M=[],z=he=>{h.error(m,"Nothing to repeat at column "+(he-1))},K=h.strToChars(m);for(g=K.length;_({type:h.POSITION,value:"b"}),N.nonWordBoundary=()=>({type:h.POSITION,value:"B"}),N.begin=()=>({type:h.POSITION,value:"^"}),N.end=()=>({type:h.POSITION,value:"$"})},10023(w,N,s){const h=s(6205),v=()=>[{type:h.RANGE,from:48,to:57}],f=()=>[{type:h.CHAR,value:95},{type:h.RANGE,from:97,to:122},{type:h.RANGE,from:65,to:90}].concat(v()),y=()=>[{type:h.CHAR,value:9},{type:h.CHAR,value:10},{type:h.CHAR,value:11},{type:h.CHAR,value:12},{type:h.CHAR,value:13},{type:h.CHAR,value:32},{type:h.CHAR,value:160},{type:h.CHAR,value:5760},{type:h.RANGE,from:8192,to:8202},{type:h.CHAR,value:8232},{type:h.CHAR,value:8233},{type:h.CHAR,value:8239},{type:h.CHAR,value:8287},{type:h.CHAR,value:12288},{type:h.CHAR,value:65279}];N.words=()=>({type:h.SET,set:f(),not:!1}),N.notWords=()=>({type:h.SET,set:f(),not:!0}),N.ints=()=>({type:h.SET,set:v(),not:!1}),N.notInts=()=>({type:h.SET,set:v(),not:!0}),N.whitespace=()=>({type:h.SET,set:y(),not:!1}),N.notWhitespace=()=>({type:h.SET,set:y(),not:!0}),N.anyChar=()=>({type:h.SET,set:[{type:h.CHAR,value:10},{type:h.CHAR,value:13},{type:h.CHAR,value:8232},{type:h.CHAR,value:8233}],not:!0})},6205(w){w.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},87586(w,N,s){const h=s(6205),v=s(10023),f={0:0,t:9,n:10,v:11,f:12,r:13};N.strToChars=function(y){return y=y.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,(function(m,g,S,_,T,I,j,M){if(S)return m;var z=g?8:_?parseInt(_,16):T?parseInt(T,16):I?parseInt(I,8):j?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(j):f[M],K=String.fromCharCode(z);return/[[\]{}^$.|?*+()]/.test(K)&&(K="\\"+K),K}))},N.tokenizeClass=(y,m)=>{for(var g,S,_=[],T=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;(g=T.exec(y))!=null;)if(g[1])_.push(v.words());else if(g[2])_.push(v.ints());else if(g[3])_.push(v.whitespace());else if(g[4])_.push(v.notWords());else if(g[5])_.push(v.notInts());else if(g[6])_.push(v.notWhitespace());else if(g[7])_.push({type:h.RANGE,from:(g[8]||g[9]).charCodeAt(0),to:g[10].charCodeAt(0)});else{if(!(S=g[12]))return[_,T.lastIndex];_.push({type:h.CHAR,value:S.charCodeAt(0)})}N.error(m,"Unterminated character class")},N.error=(y,m)=>{throw new SyntaxError("Invalid regular expression: /"+y+"/: "+m)}},92861(w,N,s){var h=s(48287),v=h.Buffer;function f(m,g){for(var S in m)g[S]=m[S]}function y(m,g,S){return v(m,g,S)}v.from&&v.alloc&&v.allocUnsafe&&v.allocUnsafeSlow?w.exports=h:(f(h,N),N.Buffer=y),y.prototype=Object.create(v.prototype),f(v,y),y.from=function(m,g,S){if(typeof m=="number")throw new TypeError("Argument must not be a number");return v(m,g,S)},y.alloc=function(m,g,S){if(typeof m!="number")throw new TypeError("Argument must be a number");var _=v(m);return g!==void 0?typeof S=="string"?_.fill(g,S):_.fill(g):_.fill(0),_},y.allocUnsafe=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return v(m)},y.allocUnsafeSlow=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return h.SlowBuffer(m)}},29844(w,N){function s(Xe,Se){var De=Xe.length;Xe.push(Se);e:for(;0>>1,ft=Xe[Ke];if(!(0>>1;Kef(H,De))wef(ct,H)?(Xe[Ke]=ct,Xe[we]=De,Ke=we):(Xe[Ke]=H,Xe[Wt]=De,Ke=Wt);else{if(!(wef(ct,De)))break e;Xe[Ke]=ct,Xe[we]=De,Ke=we}}}return Se}function f(Xe,Se){var De=Xe.sortIndex-Se.sortIndex;return De!==0?De:Xe.id-Se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var y=performance;N.unstable_now=function(){return y.now()}}else{var m=Date,g=m.now();N.unstable_now=function(){return m.now()-g}}var S=[],_=[],T=1,I=null,j=3,M=!1,z=!1,K=!1,Y=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function te(Xe){for(var Se=h(_);Se!==null;){if(Se.callback===null)v(_);else{if(!(Se.startTime<=Xe))break;v(_),Se.sortIndex=Se.expirationTime,s(S,Se)}Se=h(_)}}function ie(Xe){if(K=!1,te(Xe),!z)if(h(S)!==null)z=!0,u(se);else{var Se=h(_);Se!==null&&at(ie,Se.startTime-Xe)}}function se(Xe,Se){z=!1,K&&(K=!1,B(ke),ke=-1),M=!0;var De=j;try{for(te(Se),I=h(S);I!==null&&(!(I.expirationTime>Se)||Xe&&!qe());){var Ke=I.callback;if(typeof Ke=="function"){I.callback=null,j=I.priorityLevel;var ft=Ke(I.expirationTime<=Se);Se=N.unstable_now(),typeof ft=="function"?I.callback=ft:I===h(S)&&v(S),te(Se)}else v(S);I=h(S)}if(I!==null)var Nt=!0;else{var Wt=h(_);Wt!==null&&at(ie,Wt.startTime-Se),Nt=!1}return Nt}finally{I=null,j=De,M=!1}}typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var Te,he=!1,ge=null,ke=-1,Ve=5,He=-1;function qe(){return!(N.unstable_now()-HeXe||125Ke?(Xe.sortIndex=De,s(_,Xe),h(S)===null&&Xe===h(_)&&(K?(B(ke),ke=-1):K=!0,at(ie,De-Ke))):(Xe.sortIndex=ft,s(S,Xe),z||M||(z=!0,u(se))),Xe},N.unstable_shouldYield=qe,N.unstable_wrapCallback=function(Xe){var Se=j;return function(){var De=j;j=Se;try{return Xe.apply(this,arguments)}finally{j=De}}}},69982(w,N,s){w.exports=s(29844)},20334(w,N,s){var h=s(48287).Buffer;class v extends Error{constructor(S){super(v._prepareSuperMessage(S)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,v)}static _prepareSuperMessage(S){try{return JSON.stringify(S)}catch{return String(S)}}}const f=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],y=Symbol(".toJSON called"),m=({from:g,seen:S,to_:_,forceEnumerable:T,maxDepth:I,depth:j})=>{const M=_||(Array.isArray(g)?[]:{});if(S.push(g),j>=I)return M;if(typeof g.toJSON=="function"&&g[y]!==!0)return(z=>{z[y]=!0;const K=z.toJSON();return delete z[y],K})(g);for(const[z,K]of Object.entries(g))typeof h=="function"&&h.isBuffer(K)?M[z]="[object Buffer]":typeof K!="function"&&(K&&typeof K=="object"?S.includes(g[z])?M[z]="[Circular]":(j++,M[z]=m({from:g[z],seen:S.slice(),forceEnumerable:T,maxDepth:I,depth:j})):M[z]=K);for(const{property:z,enumerable:K}of f)typeof g[z]=="string"&&Object.defineProperty(M,z,{value:g[z],enumerable:!!T||K,configurable:!0,writable:!0});return M};w.exports={serializeError:(g,S={})=>{const{maxDepth:_=Number.POSITIVE_INFINITY}=S;return typeof g=="object"&&g!==null?m({from:g,seen:[],forceEnumerable:!0,maxDepth:_,depth:0}):typeof g=="function"?`[Function: ${g.name||"anonymous"}]`:g},deserializeError:(g,S={})=>{const{maxDepth:_=Number.POSITIVE_INFINITY}=S;if(g instanceof Error)return g;if(typeof g=="object"&&g!==null&&!Array.isArray(g)){const T=new Error;return m({from:g,seen:[],to_:T,maxDepth:_,depth:0}),T}return new v(g)}}},96897(w,N,s){var h=s(70453),v=s(30041),f=s(30592)(),y=s(75795),m=s(69675),g=h("%Math.floor%");w.exports=function(_,T){if(typeof _!="function")throw new m("`fn` is not a function");if(typeof T!="number"||T<0||T>4294967295||g(T)!==T)throw new m("`length` must be a positive 32-bit integer");var I=arguments.length>2&&!!arguments[2],j=!0,M=!0;if("length"in _&&y){var z=y(_,"length");z&&!z.configurable&&(j=!1),z&&!z.writable&&(M=!1)}return(j||M||!I)&&(f?v(_,"length",T,!0,!0):v(_,"length",T)),_}},90392(w,N,s){var h=s(92861).Buffer,v=s(15377);function f(y,m){this._block=h.alloc(y),this._finalSize=m,this._blockSize=y,this._len=0}f.prototype.update=function(y,m){y=v(y,m||"utf8");for(var g=this._block,S=this._blockSize,_=y.length,T=this._len,I=0;I<_;){for(var j=T%S,M=Math.min(_-I,S-j),z=0;z=this._finalSize&&(this._update(this._block),this._block.fill(0));var g=8*this._len;if(g<=4294967295)this._block.writeUInt32BE(g,this._blockSize-4);else{var S=(4294967295&g)>>>0,_=(g-S)/4294967296;this._block.writeUInt32BE(_,this._blockSize-8),this._block.writeUInt32BE(S,this._blockSize-4)}this._update(this._block);var T=this._hash();return y?T.toString(y):T},f.prototype._update=function(){throw new Error("_update must be implemented by subclass")},w.exports=f},62802(w,N,s){w.exports=function(v){var f=v.toLowerCase(),y=w.exports[f];if(!y)throw new Error(f+" is not supported (we accept pull requests)");return new y},w.exports.sha=s(27816),w.exports.sha1=s(63737),w.exports.sha224=s(26710),w.exports.sha256=s(24107),w.exports.sha384=s(32827),w.exports.sha512=s(82890)},27816(w,N,s){var h=s(56698),v=s(90392),f=s(92861).Buffer,y=[1518500249,1859775393,-1894007588,-899497514],m=new Array(80);function g(){this.init(),this._w=m,v.call(this,64,56)}function S(T){return T<<30|T>>>2}function _(T,I,j,M){return T===0?I&j|~I&M:T===2?I&j|I&M|j&M:I^j^M}h(g,v),g.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},g.prototype._update=function(T){for(var I,j=this._w,M=0|this._a,z=0|this._b,K=0|this._c,Y=0|this._d,B=0|this._e,X=0;X<16;++X)j[X]=T.readInt32BE(4*X);for(;X<80;++X)j[X]=j[X-3]^j[X-8]^j[X-14]^j[X-16];for(var te=0;te<80;++te){var ie=~~(te/20),se=0|((I=M)<<5|I>>>27)+_(ie,z,K,Y)+B+j[te]+y[ie];B=Y,Y=K,K=S(z),z=M,M=se}this._a=M+this._a|0,this._b=z+this._b|0,this._c=K+this._c|0,this._d=Y+this._d|0,this._e=B+this._e|0},g.prototype._hash=function(){var T=f.allocUnsafe(20);return T.writeInt32BE(0|this._a,0),T.writeInt32BE(0|this._b,4),T.writeInt32BE(0|this._c,8),T.writeInt32BE(0|this._d,12),T.writeInt32BE(0|this._e,16),T},w.exports=g},63737(w,N,s){var h=s(56698),v=s(90392),f=s(92861).Buffer,y=[1518500249,1859775393,-1894007588,-899497514],m=new Array(80);function g(){this.init(),this._w=m,v.call(this,64,56)}function S(I){return I<<5|I>>>27}function _(I){return I<<30|I>>>2}function T(I,j,M,z){return I===0?j&M|~j&z:I===2?j&M|j&z|M&z:j^M^z}h(g,v),g.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},g.prototype._update=function(I){for(var j,M=this._w,z=0|this._a,K=0|this._b,Y=0|this._c,B=0|this._d,X=0|this._e,te=0;te<16;++te)M[te]=I.readInt32BE(4*te);for(;te<80;++te)M[te]=(j=M[te-3]^M[te-8]^M[te-14]^M[te-16])<<1|j>>>31;for(var ie=0;ie<80;++ie){var se=~~(ie/20),Te=S(z)+T(se,K,Y,B)+X+M[ie]+y[se]|0;X=B,B=Y,Y=_(K),K=z,z=Te}this._a=z+this._a|0,this._b=K+this._b|0,this._c=Y+this._c|0,this._d=B+this._d|0,this._e=X+this._e|0},g.prototype._hash=function(){var I=f.allocUnsafe(20);return I.writeInt32BE(0|this._a,0),I.writeInt32BE(0|this._b,4),I.writeInt32BE(0|this._c,8),I.writeInt32BE(0|this._d,12),I.writeInt32BE(0|this._e,16),I},w.exports=g},26710(w,N,s){var h=s(56698),v=s(24107),f=s(90392),y=s(92861).Buffer,m=new Array(64);function g(){this.init(),this._w=m,f.call(this,64,56)}h(g,v),g.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},g.prototype._hash=function(){var S=y.allocUnsafe(28);return S.writeInt32BE(this._a,0),S.writeInt32BE(this._b,4),S.writeInt32BE(this._c,8),S.writeInt32BE(this._d,12),S.writeInt32BE(this._e,16),S.writeInt32BE(this._f,20),S.writeInt32BE(this._g,24),S},w.exports=g},24107(w,N,s){var h=s(56698),v=s(90392),f=s(92861).Buffer,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],m=new Array(64);function g(){this.init(),this._w=m,v.call(this,64,56)}function S(M,z,K){return K^M&(z^K)}function _(M,z,K){return M&z|K&(M|z)}function T(M){return(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10)}function I(M){return(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7)}function j(M){return(M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3}h(g,v),g.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},g.prototype._update=function(M){for(var z,K=this._w,Y=0|this._a,B=0|this._b,X=0|this._c,te=0|this._d,ie=0|this._e,se=0|this._f,Te=0|this._g,he=0|this._h,ge=0;ge<16;++ge)K[ge]=M.readInt32BE(4*ge);for(;ge<64;++ge)K[ge]=0|(((z=K[ge-2])>>>17|z<<15)^(z>>>19|z<<13)^z>>>10)+K[ge-7]+j(K[ge-15])+K[ge-16];for(var ke=0;ke<64;++ke){var Ve=he+I(ie)+S(ie,se,Te)+y[ke]+K[ke]|0,He=T(Y)+_(Y,B,X)|0;he=Te,Te=se,se=ie,ie=te+Ve|0,te=X,X=B,B=Y,Y=Ve+He|0}this._a=Y+this._a|0,this._b=B+this._b|0,this._c=X+this._c|0,this._d=te+this._d|0,this._e=ie+this._e|0,this._f=se+this._f|0,this._g=Te+this._g|0,this._h=he+this._h|0},g.prototype._hash=function(){var M=f.allocUnsafe(32);return M.writeInt32BE(this._a,0),M.writeInt32BE(this._b,4),M.writeInt32BE(this._c,8),M.writeInt32BE(this._d,12),M.writeInt32BE(this._e,16),M.writeInt32BE(this._f,20),M.writeInt32BE(this._g,24),M.writeInt32BE(this._h,28),M},w.exports=g},32827(w,N,s){var h=s(56698),v=s(82890),f=s(90392),y=s(92861).Buffer,m=new Array(160);function g(){this.init(),this._w=m,f.call(this,128,112)}h(g,v),g.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},g.prototype._hash=function(){var S=y.allocUnsafe(48);function _(T,I,j){S.writeInt32BE(T,j),S.writeInt32BE(I,j+4)}return _(this._ah,this._al,0),_(this._bh,this._bl,8),_(this._ch,this._cl,16),_(this._dh,this._dl,24),_(this._eh,this._el,32),_(this._fh,this._fl,40),S},w.exports=g},82890(w,N,s){var h=s(56698),v=s(90392),f=s(92861).Buffer,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],m=new Array(160);function g(){this.init(),this._w=m,v.call(this,128,112)}function S(B,X,te){return te^B&(X^te)}function _(B,X,te){return B&X|te&(B|X)}function T(B,X){return(B>>>28|X<<4)^(X>>>2|B<<30)^(X>>>7|B<<25)}function I(B,X){return(B>>>14|X<<18)^(B>>>18|X<<14)^(X>>>9|B<<23)}function j(B,X){return(B>>>1|X<<31)^(B>>>8|X<<24)^B>>>7}function M(B,X){return(B>>>1|X<<31)^(B>>>8|X<<24)^(B>>>7|X<<25)}function z(B,X){return(B>>>19|X<<13)^(X>>>29|B<<3)^B>>>6}function K(B,X){return(B>>>19|X<<13)^(X>>>29|B<<3)^(B>>>6|X<<26)}function Y(B,X){return B>>>0>>0?1:0}h(g,v),g.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},g.prototype._update=function(B){for(var X=this._w,te=0|this._ah,ie=0|this._bh,se=0|this._ch,Te=0|this._dh,he=0|this._eh,ge=0|this._fh,ke=0|this._gh,Ve=0|this._hh,He=0|this._al,qe=0|this._bl,nt=0|this._cl,gt=0|this._dl,Re=0|this._el,u=0|this._fl,at=0|this._gl,Xe=0|this._hl,Se=0;Se<32;Se+=2)X[Se]=B.readInt32BE(4*Se),X[Se+1]=B.readInt32BE(4*Se+4);for(;Se<160;Se+=2){var De=X[Se-30],Ke=X[Se-30+1],ft=j(De,Ke),Nt=M(Ke,De),Wt=z(De=X[Se-4],Ke=X[Se-4+1]),H=K(Ke,De),we=X[Se-14],ct=X[Se-14+1],mt=X[Se-32],ur=X[Se-32+1],ar=Nt+ct|0,Tt=ft+we+Y(ar,Nt)|0;Tt=(Tt=Tt+Wt+Y(ar=ar+H|0,H)|0)+mt+Y(ar=ar+ur|0,ur)|0,X[Se]=Tt,X[Se+1]=ar}for(var Gt=0;Gt<160;Gt+=2){Tt=X[Gt],ar=X[Gt+1];var Sr=_(te,ie,se),kt=_(He,qe,nt),yt=T(te,He),Zt=T(He,te),pe=I(he,Re),U=I(Re,he),Z=y[Gt],ne=y[Gt+1],ye=S(he,ge,ke),Ee=S(Re,u,at),Fe=Xe+U|0,St=Ve+pe+Y(Fe,Xe)|0;St=(St=(St=St+ye+Y(Fe=Fe+Ee|0,Ee)|0)+Z+Y(Fe=Fe+ne|0,ne)|0)+Tt+Y(Fe=Fe+ar|0,ar)|0;var Bt=Zt+kt|0,Qe=yt+Sr+Y(Bt,Zt)|0;Ve=ke,Xe=at,ke=ge,at=u,ge=he,u=Re,he=Te+St+Y(Re=gt+Fe|0,gt)|0,Te=se,gt=nt,se=ie,nt=qe,ie=te,qe=He,te=St+Qe+Y(He=Fe+Bt|0,Fe)|0}this._al=this._al+He|0,this._bl=this._bl+qe|0,this._cl=this._cl+nt|0,this._dl=this._dl+gt|0,this._el=this._el+Re|0,this._fl=this._fl+u|0,this._gl=this._gl+at|0,this._hl=this._hl+Xe|0,this._ah=this._ah+te+Y(this._al,He)|0,this._bh=this._bh+ie+Y(this._bl,qe)|0,this._ch=this._ch+se+Y(this._cl,nt)|0,this._dh=this._dh+Te+Y(this._dl,gt)|0,this._eh=this._eh+he+Y(this._el,Re)|0,this._fh=this._fh+ge+Y(this._fl,u)|0,this._gh=this._gh+ke+Y(this._gl,at)|0,this._hh=this._hh+Ve+Y(this._hl,Xe)|0},g.prototype._hash=function(){var B=f.allocUnsafe(64);function X(te,ie,se){B.writeInt32BE(te,se),B.writeInt32BE(ie,se+4)}return X(this._ah,this._al,0),X(this._bh,this._bl,8),X(this._ch,this._cl,16),X(this._dh,this._dl,24),X(this._eh,this._el,32),X(this._fh,this._fl,40),X(this._gh,this._gl,48),X(this._hh,this._hl,56),B},w.exports=g},8068(w){var N=(()=>{var s=Object.defineProperty,h=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=(Y,B,X)=>B in Y?s(Y,B,{enumerable:!0,configurable:!0,writable:!0,value:X}):Y[B]=X,S=(Y,B)=>{for(var X in B||(B={}))y.call(B,X)&&g(Y,X,B[X]);if(f)for(var X of f(B))m.call(B,X)&&g(Y,X,B[X]);return Y},_=(Y,B,X)=>g(Y,typeof B!="symbol"?B+"":B,X),T={};((Y,B)=>{for(var X in B)s(Y,X,{get:B[X],enumerable:!0})})(T,{DEFAULT_OPTIONS:()=>j,DEFAULT_UUID_LENGTH:()=>I,default:()=>K});var I=6,j={dictionary:"alphanum",shuffle:!0,debug:!1,length:I,counter:0},M=class{constructor(B={}){_(this,"counter"),_(this,"debug"),_(this,"dict"),_(this,"version"),_(this,"dictIndex",0),_(this,"dictRange",[]),_(this,"lowerBound",0),_(this,"upperBound",0),_(this,"dictLength",0),_(this,"uuidLength"),_(this,"_digit_first_ascii",48),_(this,"_digit_last_ascii",58),_(this,"_alpha_lower_first_ascii",97),_(this,"_alpha_lower_last_ascii",123),_(this,"_hex_last_ascii",103),_(this,"_alpha_upper_first_ascii",65),_(this,"_alpha_upper_last_ascii",91),_(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),_(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),_(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),_(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),_(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),_(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),_(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),_(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),_(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),_(this,"log",((...he)=>{const ge=[...he];ge[0]="[short-unique-id] ".concat(he[0]),this.debug!==!0||typeof console>"u"||console===null||console.log(...ge)})),_(this,"_normalizeDictionary",((he,ge)=>{let ke;if(he&&Array.isArray(he)&&he.length>1)ke=he;else{ke=[],this.dictIndex=0;const Ve="_".concat(he,"_dict_ranges"),He=this._dict_ranges[Ve];let qe=0;for(const[,gt]of Object.entries(He)){const[Re,u]=gt;qe+=Math.abs(u-Re)}ke=new Array(qe);let nt=0;for(const[,gt]of Object.entries(He)){this.dictRange=gt,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const Re=this.lowerBound<=this.upperBound,u=this.lowerBound,at=this.upperBound;if(Re)for(let Xe=u;Xeat;Xe--)ke[nt++]=String.fromCharCode(Xe),this.dictIndex=Xe}ke.length=nt}if(ge)for(let Ve=ke.length-1;Ve>0;Ve--){const He=Math.floor(Math.random()*(Ve+1));[ke[Ve],ke[He]]=[ke[He],ke[Ve]]}return ke})),_(this,"setDictionary",((he,ge)=>{this.dict=this._normalizeDictionary(he,ge),this.dictLength=this.dict.length,this.setCounter(0)})),_(this,"seq",(()=>this.sequentialUUID())),_(this,"sequentialUUID",(()=>{const he=this.dictLength,ge=this.dict;let ke=this.counter;const Ve=[];do{const qe=ke%he;ke=Math.trunc(ke/he),Ve.push(ge[qe])}while(ke!==0);const He=Ve.join("");return this.counter+=1,He})),_(this,"rnd",((he=this.uuidLength||I)=>this.randomUUID(he))),_(this,"randomUUID",((he=this.uuidLength||I)=>{if(he==null||he<1)throw new Error("Invalid UUID Length Provided");const ge=new Array(he),ke=this.dictLength,Ve=this.dict;for(let He=0;Hethis.formattedUUID(he,ge))),_(this,"formattedUUID",((he,ge)=>{const ke={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return he.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(Ve=>{const He=Ve.slice(0,2),qe=Number.parseInt(Ve.slice(2),10);return He==="$s"?ke[He]().padStart(qe,"0"):He==="$t"&&ge?ke[He](qe,ge):ke[He](qe)}))})),_(this,"availableUUIDs",((he=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**he).toFixed(0)))),_(this,"_collisionCache",new Map),_(this,"approxMaxBeforeCollision",((he=this.availableUUIDs(this.uuidLength))=>{const ge=he,ke=this._collisionCache.get(ge);if(ke!==void 0)return ke;const Ve=Number.parseFloat(Math.sqrt(Math.PI/2*he).toFixed(20));return this._collisionCache.set(ge,Ve),Ve})),_(this,"collisionProbability",((he=this.availableUUIDs(this.uuidLength),ge=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(he)/this.availableUUIDs(ge)).toFixed(20)))),_(this,"uniqueness",((he=this.availableUUIDs(this.uuidLength))=>{const ge=Number.parseFloat((1-this.approxMaxBeforeCollision(he)/he).toFixed(20));return ge>1?1:ge<0?0:ge})),_(this,"getVersion",(()=>this.version)),_(this,"stamp",((he,ge)=>{const ke=Math.floor(+(ge||new Date)/1e3).toString(16);if(typeof he=="number"&&he===0)return ke;if(typeof he!="number"||he<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join(` +`));const Ve=he-9,He=Math.round(Math.random()*(Ve>15?15:Ve)),qe=this.randomUUID(Ve);return"".concat(qe.substring(0,He)).concat(ke).concat(qe.substring(He)).concat(He.toString(16))})),_(this,"parseStamp",((he,ge)=>{if(ge&&!/t0|t[1-9]\d{1,}/.test(ge))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const ke=ge?ge.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(He=>{const qe={$r:Re=>[...Array(Re)].map((()=>"r")).join(""),$s:Re=>[...Array(Re)].map((()=>"s")).join(""),$t:Re=>[...Array(Re)].map((()=>"t")).join("")},nt=He.slice(0,2),gt=Number.parseInt(He.slice(2),10);return qe[nt](gt)})).replace(/^(.*?)(t{8,})(.*)$/g,((He,qe,nt)=>he.substring(qe.length,qe.length+nt.length))):he;if(ke.length===8)return new Date(1e3*Number.parseInt(ke,16));if(ke.length<10)throw new Error("Stamp length invalid");const Ve=Number.parseInt(ke.substring(ke.length-1),16);return new Date(1e3*Number.parseInt(ke.substring(Ve,Ve+8),16))})),_(this,"setCounter",(he=>{this.counter=he})),_(this,"validate",((he,ge)=>{const ke=ge?this._normalizeDictionary(ge):this.dict;return he.split("").every((Ve=>ke.includes(Ve)))}));const X=S(S({},j),B);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";const{dictionary:te,shuffle:ie,length:se,counter:Te}=X;this.uuidLength=se,this.setDictionary(te,ie),this.setCounter(Te),this.debug=X.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(this.counter)),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};_(M,"default",M);var z,K=M;return z=T,((Y,B,X,te)=>{if(B&&typeof B=="object"||typeof B=="function")for(let ie of v(B))y.call(Y,ie)||ie===X||s(Y,ie,{get:()=>B[ie],enumerable:!(te=h(B,ie))||te.enumerable});return Y})(s({},"__esModule",{value:!0}),z)})();w.exports=N.default,typeof window<"u"&&(N=N.default)},88310(w,N,s){w.exports=v;var h=s(37007).EventEmitter;function v(){h.call(this)}s(56698)(v,h),v.Readable=s(45412),v.Writable=s(16708),v.Duplex=s(25382),v.Transform=s(74610),v.PassThrough=s(63600),v.finished=s(86238),v.pipeline=s(57758),v.Stream=v,v.prototype.pipe=function(f,y){var m=this;function g(z){f.writable&&f.write(z)===!1&&m.pause&&m.pause()}function S(){m.readable&&m.resume&&m.resume()}m.on("data",g),f.on("drain",S),f._isStdio||y&&y.end===!1||(m.on("end",T),m.on("close",I));var _=!1;function T(){_||(_=!0,f.end())}function I(){_||(_=!0,typeof f.destroy=="function"&&f.destroy())}function j(z){if(M(),h.listenerCount(this,"error")===0)throw z}function M(){m.removeListener("data",g),f.removeListener("drain",S),m.removeListener("end",T),m.removeListener("close",I),m.removeListener("error",j),f.removeListener("error",j),m.removeListener("end",M),m.removeListener("close",M),f.removeListener("close",M)}return m.on("error",j),f.on("error",j),m.on("end",M),m.on("close",M),f.on("close",M),f.emit("pipe",m),f}},83141(w,N,s){var h=s(92861).Buffer,v=h.isEncoding||function(M){switch((M=""+M)&&M.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function f(M){var z;switch(this.encoding=(function(Y){var B=(function(te){if(!te)return"utf8";for(var ie;;)switch(te){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return te;default:if(ie)return;te=(""+te).toLowerCase(),ie=!0}})(Y);if(typeof B!="string"&&(h.isEncoding===v||!v(Y)))throw new Error("Unknown encoding: "+Y);return B||Y})(M),this.encoding){case"utf16le":this.text=g,this.end=S,z=4;break;case"utf8":this.fillLast=m,z=4;break;case"base64":this.text=_,this.end=T,z=3;break;default:return this.write=I,void(this.end=j)}this.lastNeed=0,this.lastTotal=0,this.lastChar=h.allocUnsafe(z)}function y(M){return M<=127?0:M>>5==6?2:M>>4==14?3:M>>3==30?4:M>>6==2?-1:-2}function m(M){var z=this.lastTotal-this.lastNeed,K=(function(B,X,te){if((192&X[0])!=128)return B.lastNeed=0,"�";if(B.lastNeed>1&&X.length>1){if((192&X[1])!=128)return B.lastNeed=1,"�";if(B.lastNeed>2&&X.length>2&&(192&X[2])!=128)return B.lastNeed=2,"�"}})(this,M);return K!==void 0?K:this.lastNeed<=M.length?(M.copy(this.lastChar,z,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(M.copy(this.lastChar,z,0,M.length),void(this.lastNeed-=M.length))}function g(M,z){if((M.length-z)%2==0){var K=M.toString("utf16le",z);if(K){var Y=K.charCodeAt(K.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=M[M.length-2],this.lastChar[1]=M[M.length-1],K.slice(0,-1)}return K}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=M[M.length-1],M.toString("utf16le",z,M.length-1)}function S(M){var z=M&&M.length?this.write(M):"";if(this.lastNeed){var K=this.lastTotal-this.lastNeed;return z+this.lastChar.toString("utf16le",0,K)}return z}function _(M,z){var K=(M.length-z)%3;return K===0?M.toString("base64",z):(this.lastNeed=3-K,this.lastTotal=3,K===1?this.lastChar[0]=M[M.length-1]:(this.lastChar[0]=M[M.length-2],this.lastChar[1]=M[M.length-1]),M.toString("base64",z,M.length-K))}function T(M){var z=M&&M.length?this.write(M):"";return this.lastNeed?z+this.lastChar.toString("base64",0,3-this.lastNeed):z}function I(M){return M.toString(this.encoding)}function j(M){return M&&M.length?this.write(M):""}N.I=f,f.prototype.write=function(M){if(M.length===0)return"";var z,K;if(this.lastNeed){if((z=this.fillLast(M))===void 0)return"";K=this.lastNeed,this.lastNeed=0}else K=0;return K=0?(he>0&&(te.lastNeed=he-1),he):--Te=0?(he>0&&(te.lastNeed=he-2),he):--Te=0?(he>0&&(he===2?he=0:te.lastNeed=he-3),he):0))})(this,z,K);if(!this.lastNeed)return z.toString("utf8",K);this.lastTotal=Y;var B=z.length-(Y-this.lastNeed);return z.copy(this.lastChar,0,B),z.toString("utf8",K,B)},f.prototype.fillLast=function(M){if(this.lastNeed<=M.length)return M.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);M.copy(this.lastChar,this.lastTotal-this.lastNeed,0,M.length),this.lastNeed-=M.length}},15377(w,N,s){var h=s(92861).Buffer,v=s(64634),f=s(74372),y=ArrayBuffer.isView||function(T){try{return f(T),!0}catch{return!1}},m=typeof Uint8Array<"u",g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",S=g&&(h.prototype instanceof Uint8Array||h.TYPED_ARRAY_SUPPORT);w.exports=function(T,I){if(T instanceof h)return T;if(typeof T=="string")return h.from(T,I);if(g&&y(T)){if(T.byteLength===0)return h.alloc(0);if(S){var j=h.from(T.buffer,T.byteOffset,T.byteLength);if(j.byteLength===T.byteLength)return j}var M=T instanceof Uint8Array?T:new Uint8Array(T.buffer,T.byteOffset,T.byteLength),z=h.from(M);if(z.length===T.byteLength)return z}if(m&&T instanceof Uint8Array)return h.from(T);var K=v(T);if(K)for(var Y=0;Y255||~~B!==B)throw new RangeError("Array items must be numbers in the range 0-255.")}if(K||h.isBuffer(T)&&T.constructor&&typeof T.constructor.isBuffer=="function"&&T.constructor.isBuffer(T))return h.from(T);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},16426(w){w.exports=function(){var N=document.getSelection();if(!N.rangeCount)return function(){};for(var s=document.activeElement,h=[],v=0;v=2&&(te=te.slice(2)):z(se)?te=ie[4]:se?Te&&(te=te.slice(2)):ge>=2&&z(X.protocol)&&(te=ie[4]),{protocol:se,slashes:Te||z(se),slashesCount:ge,rest:te}}function Y(B,X,te){if(B=(B=T(B)).replace(y,""),!(this instanceof Y))return new Y(B,X,te);var ie,se,Te,he,ge,ke,Ve=I.slice(),He=typeof X,qe=this,nt=0;for(He!=="object"&&He!=="string"&&(te=X,X=null),te&&typeof te!="function"&&(te=v.parse),ie=!(se=K(B||"",X=M(X))).protocol&&!se.slashes,qe.slashes=se.slashes||ie&&X.slashes,qe.protocol=se.protocol||X.protocol||"",B=se.rest,(se.protocol==="file:"&&(se.slashesCount!==2||_.test(B))||!se.slashes&&(se.protocol||se.slashesCount<2||!z(qe.protocol)))&&(Ve[3]=[/(.*)/,"pathname"]);nt"u"?s.g:globalThis,T=v(),I=y("String.prototype.slice"),j=Object.getPrototypeOf,M=y("Array.prototype.indexOf",!0)||function(Y,B){for(var X=0;X-1?B:B==="Object"&&(function(te){var ie=!1;return h(z,(function(se,Te){if(!ie)try{se(te),ie=I(Te,1)}catch{}})),ie})(Y)}return m?(function(te){var ie=!1;return h(z,(function(se,Te){if(!ie)try{"$"+se(te)===Te&&(ie=I(Te,1))}catch{}})),ie})(Y):null}},26657(w,N,s){var h=s(75208),v=function(g){return/<\/+[^>]+>/.test(g)},f=function(g){return/<[^>]+\/>/.test(g)};function y(m){return v(m)?"ClosingTag":(function(S){return(function(T){return/<[^>!]+>/.test(T)})(S)&&!v(S)&&!f(S)})(m)?"OpeningTag":f(m)?"SelfClosingTag":"Text"}w.exports=function(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=g.indentor,_=g.textNodesOnSameLine,T=0,I=[];S=S||" ";var j=(function(z){return(function(Y){return Y.split(/(<\/?[^>]+>)/g).filter((function(B){return B.trim()!==""}))})(z).map((function(K){return{value:K,type:y(K)}}))})(m).map((function(M,z,K){var Y=M.value,B=M.type;B==="ClosingTag"&&T--;var X=h(S,T),te=X+Y;if(B==="OpeningTag"&&T++,_){var ie=K[z-1],se=K[z-2];B==="ClosingTag"&&ie.type==="Text"&&se.type==="OpeningTag"&&(te=""+X+se.value+ie.value+Y,I.push(z-2,z-1))}return te}));return I.forEach((function(M){return j[M]=null})),j.filter((function(M){return!!M})).join(` +`)}},31499(w){var N={"&":"&",'"':""","'":"'","<":"<",">":">"};w.exports=function(h){return h&&h.replace?h.replace(/([&"<>'])/g,(function(v,f){return N[f]})):h}},19123(w,N,s){var h=s(65606),v=s(31499),f=s(88310).Stream;function y(g,S,_){var T,I=(function(X,te){return new Array(te||0).join(X||"")})(S,_=_||0),j=g;if(typeof g=="object"&&(j=g[T=Object.keys(g)[0]])&&j._elem)return j._elem.name=T,j._elem.icount=_,j._elem.indent=S,j._elem.indents=I,j._elem.interrupt=j,j._elem;var M,z=[],K=[];function Y(B){Object.keys(B).forEach((function(X){z.push((function(ie,se){return ie+'="'+v(se)+'"'})(X,B[X]))}))}switch(typeof j){case"object":if(j===null)break;j._attr&&Y(j._attr),j._cdata&&K.push(("/g,"]]]]>")+"]]>"),j.forEach&&(M=!1,K.push(""),j.forEach((function(B){typeof B=="object"?Object.keys(B)[0]=="_attr"?Y(B._attr):K.push(y(B,S,_+1)):(K.pop(),M=!0,K.push(v(B)))})),M||K.push(""));break;default:K.push(v(j))}return{name:T,interrupt:!1,attributes:z,content:K,icount:_,indents:I,indent:S}}function m(g,S,_){if(typeof S!="object")return g(!1,S);var T=S.interrupt?1:S.content.length;function I(){for(;S.content.length;){var M=S.content.shift();if(M!==void 0){if(j(M))return;m(g,M)}}g(!1,(T>1?S.indents:"")+(S.name?"":"")+(S.indent&&!_?` +`:"")),_&&_()}function j(M){return!!M.interrupt&&(M.interrupt.append=g,M.interrupt.end=I,M.interrupt=!1,g(!0),!0)}if(g(!1,S.indents+(S.name?"<"+S.name:"")+(S.attributes.length?" "+S.attributes.join(" "):"")+(T?S.name?">":"":S.name?"/>":"")+(S.indent&&T>1?` +`:"")),!T)return g(!1,S.indent?` +`:"");j(S)||I()}w.exports=function(S,_){typeof _!="object"&&(_={indent:_});var T=_.stream?new f:null,I="",j=!1,M=_.indent?_.indent===!0?" ":_.indent:"",z=!0;function K(te){z?h.nextTick(te):te()}function Y(te,ie){if(ie!==void 0&&(I+=ie),te&&!j&&(T=T||new f,j=!0),te&&j){var se=I;K((function(){T.emit("data",se)})),I=""}}function B(te,ie){m(Y,y(te,M,M?1:0),ie)}function X(){if(T){var te=I;K((function(){T.emit("data",te),T.emit("end"),T.readable=!1,T.emit("close")}))}}return K((function(){z=!1})),_.declaration&&(function(ie){var se={version:"1.0",encoding:ie.encoding||"UTF-8"};ie.standalone&&(se.standalone=ie.standalone),B({"?xml":{_attr:se}}),I=I.replace("/>","?>")})(_.declaration),S&&S.forEach?S.forEach((function(te,ie){var se;ie+1===S.length&&(se=X),B(te,se)})):B(S,X),T?(T.readable=!0,T):I},w.exports.element=w.exports.Element=function(){var S={_elem:y(Array.prototype.slice.call(arguments)),push:function(_){if(!this.append)throw new Error("not assigned to a parent!");var T=this,I=this._elem.indent;m(this.append,y(_,I,this._elem.icount+(I?1:0)),(function(){T.append(!0)}))},close:function(_){_!==void 0&&this.push(_),this.end&&this.end()}};return S}},86215(w,N){var s,h,v;h=[],s=(function(){var f=function(j){return j&&"getComputedStyle"in window&&window.getComputedStyle(j)["scroll-behavior"]==="smooth"};if(typeof window>"u"||!("document"in window))return{};var y=function(j,M,z){var K;M=M||999,z||z===0||(z=9);var Y=function(he){K=he},B=function(){clearTimeout(K),Y(0)},X=function(he){return Math.max(0,j.getTopOf(he)-z)},te=function(he,ge,ke){if(B(),ge===0||ge&&ge<0||f(j.body))j.toY(he),ke&&ke();else{var Ve=j.getY(),He=Math.max(0,he)-Ve,qe=new Date().getTime();ge=ge||Math.min(Math.abs(He),M),(function nt(){Y(setTimeout((function(){var gt=Math.min(1,(new Date().getTime()-qe)/ge),Re=Math.max(0,Math.floor(Ve+He*(gt<.5?2*gt*gt:gt*(4-2*gt)-1)));j.toY(Re),gt<1&&j.getHeight()+Reqe?ie(he,ge,ke):He+z>gt?te(He-qe+z,ge,ke):ke&&ke()},Te=function(he,ge,ke,Ve){te(Math.max(0,j.getTopOf(he)-j.getHeight()/2+(ke||he.getBoundingClientRect().height/2)),ge,Ve)};return{setup:function(he,ge){return(he===0||he)&&(M=he),(ge===0||ge)&&(z=ge),{defaultDuration:M,edgeOffset:z}},to:ie,toY:te,intoView:se,center:Te,stop:B,moving:function(){return!!K},getY:j.getY,getTopOf:j.getTopOf}},m=document.documentElement,g=function(){return window.scrollY||m.scrollTop},S=y({body:document.scrollingElement||document.body,toY:function(j){window.scrollTo(0,j)},getY:g,getHeight:function(){return window.innerHeight||m.clientHeight},getTopOf:function(j){return j.getBoundingClientRect().top+g()-m.offsetTop}});if(S.createScroller=function(j,M,z){return y({body:j,toY:function(K){j.scrollTop=K},getY:function(){return j.scrollTop},getHeight:function(){return Math.min(j.clientHeight,window.innerHeight||m.clientHeight)},getTopOf:function(K){return K.offsetTop}},M,z)},"addEventListener"in window&&!window.noZensmooth&&!f(document.body)){var _="history"in window&&"pushState"in history,T=_&&"scrollRestoration"in history;T&&(history.scrollRestoration="auto"),window.addEventListener("load",(function(){T&&(setTimeout((function(){history.scrollRestoration="manual"}),9),window.addEventListener("popstate",(function(j){j.state&&"zenscrollY"in j.state&&S.toY(j.state.zenscrollY)}),!1)),window.location.hash&&setTimeout((function(){var j=S.setup().edgeOffset;if(j){var M=document.getElementById(window.location.href.split("#")[1]);if(M){var z=Math.max(0,S.getTopOf(M)-j),K=S.getY()-z;0<=K&&K<9&&window.scrollTo(0,z)}}}),9)}),!1);var I=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",(function(j){for(var M=j.target;M&&M.tagName!=="A";)M=M.parentNode;if(!(!M||j.which!==1||j.shiftKey||j.metaKey||j.ctrlKey||j.altKey)){if(T){var z=history.state&&typeof history.state=="object"?history.state:{};z.zenscrollY=S.getY();try{history.replaceState(z,"")}catch{}}var K=M.getAttribute("href")||"";if(K.indexOf("#")===0&&!I.test(M.className)){var Y=0,B=document.getElementById(K.substring(1));if(K!=="#"){if(!B)return;Y=S.getTopOf(B)}j.preventDefault();var X=function(){window.location=K},te=S.setup().edgeOffset;te&&(Y=Math.max(0,Y-te),_&&(X=function(){history.pushState({},"",K)})),S.toY(Y,null,X)}}}),!1)}return S})(),(v=typeof s=="function"?s.apply(N,h):s)===void 0||(w.exports=v)},15340(){},79838(){},8628(w,N,s){w.exports=s(76343)},48675(w,N,s){w.exports=s(20850)},7666(w,N,s){var h=s(84851),v=s(953);function f(){var y;return w.exports=f=h?v(y=h).call(y):function(m){for(var g=1;g"u"?s.g:globalThis;w.exports=function(){for(var y=[],m=0;mM;)if((j=T[M++])!=j)return!0}else for(;I>M;M++)if((m||M in T)&&T[M]===S)return m||M||0;return!m&&-1}};w.exports={includes:y(!0),indexOf:y(!1)}},93427(w,N,s){var h=s(1907);w.exports=h([].slice)},45807(w,N,s){var h=s(1907),v=h({}.toString),f=h("".slice);w.exports=function(y){return f(v(y),8,-1)}},73948(w,N,s){var h=s(52623),v=s(62250),f=s(45807),y=s(76264)("toStringTag"),m=Object,g=f((function(){return arguments})())==="Arguments";w.exports=h?f:function(S){var _,T,I;return S===void 0?"Undefined":S===null?"Null":typeof(T=(function(j,M){try{return j[M]}catch{}})(_=m(S),y))=="string"?T:g?f(_):(I=f(_))==="Object"&&v(_.callee)?"Arguments":I}},19595(w,N,s){var h=s(49724),v=s(11042),f=s(13846),y=s(74284);w.exports=function(m,g,S){for(var _=v(g),T=y.f,I=f.f,j=0;j<_.length;j++){var M=_[j];h(m,M)||S&&h(S,M)||T(m,M,I(g,M))}}},25735(w,N,s){var h=s(76264)("match");w.exports=function(v){var f=/./;try{"/./"[v](f)}catch{try{return f[h]=!1,"/./"[v](f)}catch{}}return!1}},57382(w,N,s){var h=s(98828);w.exports=!h((function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}))},59550(w){w.exports=function(N,s){return{value:N,done:s}}},61626(w,N,s){var h=s(39447),v=s(74284),f=s(75817);w.exports=h?function(y,m,g){return v.f(y,m,f(1,g))}:function(y,m,g){return y[m]=g,y}},75817(w){w.exports=function(N,s){return{enumerable:!(1&N),configurable:!(2&N),writable:!(4&N),value:s}}},68055(w,N,s){var h=s(61626);w.exports=function(v,f,y,m){return m&&m.enumerable?v[f]=y:h(v,f,y),v}},2532(w,N,s){var h=s(45951),v=Object.defineProperty;w.exports=function(f,y){try{v(h,f,{value:y,configurable:!0,writable:!0})}catch{h[f]=y}return y}},39447(w,N,s){var h=s(98828);w.exports=!h((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},49552(w,N,s){var h=s(45951),v=s(46285),f=h.document,y=v(f)&&v(f.createElement);w.exports=function(m){return y?f.createElement(m):{}}},19287(w){w.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},80376(w){w.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},96794(w,N,s){var h=s(45951).navigator,v=h&&h.userAgent;w.exports=v?String(v):""},20798(w,N,s){var h,v,f=s(45951),y=s(96794),m=f.process,g=f.Deno,S=m&&m.versions||g&&g.version,_=S&&S.v8;_&&(v=(h=_.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!v&&y&&(!(h=y.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=y.match(/Chrome\/(\d+)/))&&(v=+h[1]),w.exports=v},85762(w,N,s){var h=s(1907),v=Error,f=h("".replace),y=String(new v("zxcasd").stack),m=/\n\s*at [^:]*:[^\n]*/,g=m.test(y);w.exports=function(S,_){if(g&&typeof S=="string"&&!v.prepareStackTrace)for(;_--;)S=f(S,m,"");return S}},85884(w,N,s){var h=s(61626),v=s(85762),f=s(23888),y=Error.captureStackTrace;w.exports=function(m,g,S,_){f&&(y?y(m,g):h(m,"stack",v(S,_)))}},23888(w,N,s){var h=s(98828),v=s(75817);w.exports=!h((function(){var f=new Error("a");return!("stack"in f)||(Object.defineProperty(f,"stack",v(1,7)),f.stack!==7)}))},11091(w,N,s){var h=s(45951),v=s(76024),f=s(92361),y=s(62250),m=s(13846).f,g=s(7463),S=s(92046),_=s(28311),T=s(61626),I=s(49724);s(36128);var j=function(M){var z=function(K,Y,B){if(this instanceof z){switch(arguments.length){case 0:return new M;case 1:return new M(K);case 2:return new M(K,Y)}return new M(K,Y,B)}return v(M,this,arguments)};return z.prototype=M.prototype,z};w.exports=function(M,z){var K,Y,B,X,te,ie,se,Te,he,ge=M.target,ke=M.global,Ve=M.stat,He=M.proto,qe=ke?h:Ve?h[ge]:h[ge]&&h[ge].prototype,nt=ke?S:S[ge]||T(S,ge,{})[ge],gt=nt.prototype;for(X in z)Y=!(K=g(ke?X:ge+(Ve?".":"#")+X,M.forced))&&qe&&I(qe,X),ie=nt[X],Y&&(se=M.dontCallGetSet?(he=m(qe,X))&&he.value:qe[X]),te=Y&&se?se:z[X],(K||He||typeof ie!=typeof te)&&(Te=M.bind&&Y?_(te,h):M.wrap&&Y?j(te):He&&y(te)?f(te):te,(M.sham||te&&te.sham||ie&&ie.sham)&&T(Te,"sham",!0),T(nt,X,Te),He&&(I(S,B=ge+"Prototype")||T(S,B,{}),T(S[B],X,te),M.real&>&&(K||!gt[X])&&T(gt,X,te)))}},98828(w){w.exports=function(N){try{return!!N()}catch{return!0}}},76024(w,N,s){var h=s(41505),v=Function.prototype,f=v.apply,y=v.call;w.exports=typeof Reflect=="object"&&Reflect.apply||(h?y.bind(f):function(){return y.apply(f,arguments)})},28311(w,N,s){var h=s(92361),v=s(82159),f=s(41505),y=h(h.bind);w.exports=function(m,g){return v(m),g===void 0?m:f?y(m,g):function(){return m.apply(g,arguments)}}},41505(w,N,s){var h=s(98828);w.exports=!h((function(){var v=(function(){}).bind();return typeof v!="function"||v.hasOwnProperty("prototype")}))},44673(w,N,s){var h=s(1907),v=s(82159),f=s(46285),y=s(49724),m=s(93427),g=s(41505),S=Function,_=h([].concat),T=h([].join),I={};w.exports=g?S.bind:function(M){var z=v(this),K=z.prototype,Y=m(arguments,1),B=function(){var te=_(Y,m(arguments));return this instanceof B?(function(ie,se,Te){if(!y(I,se)){for(var he=[],ge=0;geie;ie++)if((Te=u(K[ie]))&&S(z,Te))return Te;return new M(!1)}X=_(K,te)}for(he=He?K.next:X.next;!(ge=v(he,X)).done;){try{Te=u(ge.value)}catch(at){I(X,"throw",at)}if(typeof Te=="object"&&Te&&S(z,Te))return Te}return new M(!1)}},40154(w,N,s){var h=s(13930),v=s(36624),f=s(29367);w.exports=function(y,m,g){var S,_;v(y);try{if(!(S=f(y,"return"))){if(m==="throw")throw g;return g}S=h(S,y)}catch(T){_=!0,S=T}if(m==="throw")throw g;if(_)throw S;return v(S),g}},47181(w,N,s){var h=s(95116).IteratorPrototype,v=s(58075),f=s(75817),y=s(14840),m=s(93742),g=function(){return this};w.exports=function(S,_,T,I){var j=_+" Iterator";return S.prototype=v(h,{next:f(+!I,T)}),y(S,j,!1,!0),m[j]=g,S}},60183(w,N,s){var h=s(11091),v=s(13930),f=s(7376),y=s(36833),m=s(62250),g=s(47181),S=s(15972),_=s(79192),T=s(14840),I=s(61626),j=s(68055),M=s(76264),z=s(93742),K=s(95116),Y=y.PROPER,B=y.CONFIGURABLE,X=K.IteratorPrototype,te=K.BUGGY_SAFARI_ITERATORS,ie=M("iterator"),se="keys",Te="values",he="entries",ge=function(){return this};w.exports=function(ke,Ve,He,qe,nt,gt,Re){g(He,Ve,qe);var u,at,Xe,Se=function(we){if(we===nt&&Wt)return Wt;if(!te&&we&&we in ft)return ft[we];switch(we){case se:return function(){return new He(this,we)};case Te:return function(){return new He(this,we)};case he:return function(){return new He(this,we)}}return function(){return new He(this)}},De=Ve+" Iterator",Ke=!1,ft=ke.prototype,Nt=ft[ie]||ft["@@iterator"]||nt&&ft[nt],Wt=!te&&Nt||Se(nt),H=Ve==="Array"&&ft.entries||Nt;if(H&&(u=S(H.call(new ke)))!==Object.prototype&&u.next&&(f||S(u)===X||(_?_(u,X):m(u[ie])||j(u,ie,ge)),T(u,De,!0,!0),f&&(z[De]=ge)),Y&&nt===Te&&Nt&&Nt.name!==Te&&(!f&&B?I(ft,"name",Te):(Ke=!0,Wt=function(){return v(Nt,this)})),nt)if(at={values:Se(Te),keys:gt?Wt:Se(se),entries:Se(he)},Re)for(Xe in at)(te||Ke||!(Xe in ft))&&j(ft,Xe,at[Xe]);else h({target:Ve,proto:!0,forced:te||Ke},at);return f&&!Re||ft[ie]===Wt||j(ft,ie,Wt,{name:nt}),z[Ve]=Wt,at}},95116(w,N,s){var h,v,f,y=s(98828),m=s(62250),g=s(46285),S=s(58075),_=s(15972),T=s(68055),I=s(76264),j=s(7376),M=I("iterator"),z=!1;[].keys&&("next"in(f=[].keys())?(v=_(_(f)))!==Object.prototype&&(h=v):z=!0),!g(h)||y((function(){var K={};return h[M].call(K)!==K}))?h={}:j&&(h=S(h)),m(h[M])||T(h,M,(function(){return this})),w.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:z}},93742(w){w.exports={}},20575(w,N,s){var h=s(3121);w.exports=function(v){return h(v.length)}},41176(w){var N=Math.ceil,s=Math.floor;w.exports=Math.trunc||function(v){var f=+v;return(f>0?s:N)(f)}},32096(w,N,s){var h=s(90160);w.exports=function(v,f){return v===void 0?arguments.length<2?"":f:h(v)}},12074(w,N,s){var h=s(72087),v=TypeError;w.exports=function(f){if(h(f))throw new v("The method doesn't accept regular expressions");return f}},29538(w,N,s){var h=s(39447),v=s(1907),f=s(13930),y=s(98828),m=s(2875),g=s(87170),S=s(22574),_=s(39298),T=s(16946),I=Object.assign,j=Object.defineProperty,M=v([].concat);w.exports=!I||y((function(){if(h&&I({b:1},I(j({},"a",{enumerable:!0,get:function(){j(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var z={},K={},Y=Symbol("assign detection"),B="abcdefghijklmnopqrst";return z[Y]=7,B.split("").forEach((function(X){K[X]=X})),I({},z)[Y]!==7||m(I({},K)).join("")!==B}))?function(K,Y){for(var B=_(K),X=arguments.length,te=1,ie=g.f,se=S.f;X>te;)for(var Te,he=T(arguments[te++]),ge=ie?M(m(he),ie(he)):m(he),ke=ge.length,Ve=0;ke>Ve;)Te=ge[Ve++],h&&!f(se,he,Te)||(B[Te]=he[Te]);return B}:I},58075(w,N,s){var h,v=s(36624),f=s(42220),y=s(80376),m=s(38530),g=s(62416),S=s(49552),_=s(92522),T="prototype",I="script",j=_("IE_PROTO"),M=function(){},z=function(B){return"<"+I+">"+B+""},K=function(B){B.write(z("")),B.close();var X=B.parentWindow.Object;return B=null,X},Y=function(){try{h=new ActiveXObject("htmlfile")}catch{}var B,X,te;Y=typeof document<"u"?document.domain&&h?K(h):(X=S("iframe"),te="java"+I+":",X.style.display="none",g.appendChild(X),X.src=String(te),(B=X.contentWindow.document).open(),B.write(z("document.F=Object")),B.close(),B.F):K(h);for(var ie=y.length;ie--;)delete Y[T][y[ie]];return Y()};m[j]=!0,w.exports=Object.create||function(X,te){var ie;return X!==null?(M[T]=v(X),ie=new M,M[T]=null,ie[j]=X):ie=Y(),te===void 0?ie:f.f(ie,te)}},42220(w,N,s){var h=s(39447),v=s(58661),f=s(74284),y=s(36624),m=s(4993),g=s(2875);N.f=h&&!v?Object.defineProperties:function(_,T){y(_);for(var I,j=m(T),M=g(T),z=M.length,K=0;z>K;)f.f(_,I=M[K++],j[I]);return _}},74284(w,N,s){var h=s(39447),v=s(73648),f=s(58661),y=s(36624),m=s(70470),g=TypeError,S=Object.defineProperty,_=Object.getOwnPropertyDescriptor,T="enumerable",I="configurable",j="writable";N.f=h?f?function(z,K,Y){if(y(z),K=m(K),y(Y),typeof z=="function"&&K==="prototype"&&"value"in Y&&j in Y&&!Y[j]){var B=_(z,K);B&&B[j]&&(z[K]=Y.value,Y={configurable:I in Y?Y[I]:B[I],enumerable:T in Y?Y[T]:B[T],writable:!1})}return S(z,K,Y)}:S:function(z,K,Y){if(y(z),K=m(K),y(Y),v)try{return S(z,K,Y)}catch{}if("get"in Y||"set"in Y)throw new g("Accessors not supported");return"value"in Y&&(z[K]=Y.value),z}},13846(w,N,s){var h=s(39447),v=s(13930),f=s(22574),y=s(75817),m=s(4993),g=s(70470),S=s(49724),_=s(73648),T=Object.getOwnPropertyDescriptor;N.f=h?T:function(j,M){if(j=m(j),M=g(M),_)try{return T(j,M)}catch{}if(S(j,M))return y(!v(f.f,j,M),j[M])}},24443(w,N,s){var h=s(23045),v=s(80376).concat("length","prototype");N.f=Object.getOwnPropertyNames||function(y){return h(y,v)}},87170(w,N){N.f=Object.getOwnPropertySymbols},15972(w,N,s){var h=s(49724),v=s(62250),f=s(39298),y=s(92522),m=s(57382),g=y("IE_PROTO"),S=Object,_=S.prototype;w.exports=m?S.getPrototypeOf:function(T){var I=f(T);if(h(I,g))return I[g];var j=I.constructor;return v(j)&&I instanceof j?j.prototype:I instanceof S?_:null}},88280(w,N,s){var h=s(1907);w.exports=h({}.isPrototypeOf)},23045(w,N,s){var h=s(1907),v=s(49724),f=s(4993),y=s(74436).indexOf,m=s(38530),g=h([].push);w.exports=function(S,_){var T,I=f(S),j=0,M=[];for(T in I)!v(m,T)&&v(I,T)&&g(M,T);for(;_.length>j;)v(I,T=_[j++])&&(~y(M,T)||g(M,T));return M}},2875(w,N,s){var h=s(23045),v=s(80376);w.exports=Object.keys||function(y){return h(y,v)}},22574(w,N){var s={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,v=h&&!s.call({1:2},1);N.f=v?function(y){var m=h(this,y);return!!m&&m.enumerable}:s},79192(w,N,s){var h=s(51871),v=s(46285),f=s(74239),y=s(10043);w.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var m,g=!1,S={};try{(m=h(Object.prototype,"__proto__","set"))(S,[]),g=S instanceof Array}catch{}return function(T,I){return f(T),y(I),v(T)&&(g?m(T,I):T.__proto__=I),T}})():void 0)},54878(w,N,s){var h=s(52623),v=s(73948);w.exports=h?{}.toString:function(){return"[object "+v(this)+"]"}},60581(w,N,s){var h=s(13930),v=s(62250),f=s(46285),y=TypeError;w.exports=function(m,g){var S,_;if(g==="string"&&v(S=m.toString)&&!f(_=h(S,m))||v(S=m.valueOf)&&!f(_=h(S,m))||g!=="string"&&v(S=m.toString)&&!f(_=h(S,m)))return _;throw new y("Can't convert object to primitive value")}},11042(w,N,s){var h=s(85582),v=s(1907),f=s(24443),y=s(87170),m=s(36624),g=v([].concat);w.exports=h("Reflect","ownKeys")||function(_){var T=f.f(m(_)),I=y.f;return I?g(T,I(_)):T}},92046(w){w.exports={}},54829(w,N,s){var h=s(74284).f;w.exports=function(v,f,y){y in v||h(v,y,{configurable:!0,get:function(){return f[y]},set:function(m){f[y]=m}})}},74239(w,N,s){var h=s(87136),v=TypeError;w.exports=function(f){if(h(f))throw new v("Can't call method on "+f);return f}},14840(w,N,s){var h=s(52623),v=s(74284).f,f=s(61626),y=s(49724),m=s(54878),g=s(76264)("toStringTag");w.exports=function(S,_,T,I){var j=T?S:S&&S.prototype;j&&(y(j,g)||v(j,g,{configurable:!0,value:_}),I&&!h&&f(j,"toString",m))}},92522(w,N,s){var h=s(85816),v=s(6499),f=h("keys");w.exports=function(y){return f[y]||(f[y]=v(y))}},36128(w,N,s){var h=s(7376),v=s(45951),f=s(2532),y="__core-js_shared__",m=w.exports=v[y]||f(y,{});(m.versions||(m.versions=[])).push({version:"3.40.0",mode:h?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})},85816(w,N,s){var h=s(36128);w.exports=function(v,f){return h[v]||(h[v]=f||{})}},11470(w,N,s){var h=s(1907),v=s(65482),f=s(90160),y=s(74239),m=h("".charAt),g=h("".charCodeAt),S=h("".slice),_=function(T){return function(I,j){var M,z,K=f(y(I)),Y=v(j),B=K.length;return Y<0||Y>=B?T?"":void 0:(M=g(K,Y))<55296||M>56319||Y+1===B||(z=g(K,Y+1))<56320||z>57343?T?m(K,Y):M:T?S(K,Y,Y+2):z-56320+(M-55296<<10)+65536}};w.exports={codeAt:_(!1),charAt:_(!0)}},19846(w,N,s){var h=s(20798),v=s(98828),f=s(45951).String;w.exports=!!Object.getOwnPropertySymbols&&!v((function(){var y=Symbol("symbol detection");return!f(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&h&&h<41}))},34849(w,N,s){var h=s(65482),v=Math.max,f=Math.min;w.exports=function(y,m){var g=h(y);return g<0?v(g+m,0):f(g,m)}},4993(w,N,s){var h=s(16946),v=s(74239);w.exports=function(f){return h(v(f))}},65482(w,N,s){var h=s(41176);w.exports=function(v){var f=+v;return f!=f||f===0?0:h(f)}},3121(w,N,s){var h=s(65482),v=Math.min;w.exports=function(f){var y=h(f);return y>0?v(y,9007199254740991):0}},39298(w,N,s){var h=s(74239),v=Object;w.exports=function(f){return v(h(f))}},46028(w,N,s){var h=s(13930),v=s(46285),f=s(25594),y=s(29367),m=s(60581),g=s(76264),S=TypeError,_=g("toPrimitive");w.exports=function(T,I){if(!v(T)||f(T))return T;var j,M=y(T,_);if(M){if(I===void 0&&(I="default"),j=h(M,T,I),!v(j)||f(j))return j;throw new S("Can't convert object to primitive value")}return I===void 0&&(I="number"),m(T,I)}},70470(w,N,s){var h=s(46028),v=s(25594);w.exports=function(f){var y=h(f,"string");return v(y)?y:y+""}},52623(w,N,s){var h={};h[s(76264)("toStringTag")]="z",w.exports=String(h)==="[object z]"},90160(w,N,s){var h=s(73948),v=String;w.exports=function(f){if(h(f)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return v(f)}},4640(w){var N=String;w.exports=function(s){try{return N(s)}catch{return"Object"}}},6499(w,N,s){var h=s(1907),v=0,f=Math.random(),y=h(1 .toString);w.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+y(++v+f,36)}},51175(w,N,s){var h=s(19846);w.exports=h&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},58661(w,N,s){var h=s(39447),v=s(98828);w.exports=h&&v((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype!==42}))},40551(w,N,s){var h=s(45951),v=s(62250),f=h.WeakMap;w.exports=v(f)&&/native code/.test(String(f))},76264(w,N,s){var h=s(45951),v=s(85816),f=s(49724),y=s(6499),m=s(19846),g=s(51175),S=h.Symbol,_=v("wks"),T=g?S.for||S:S&&S.withoutSetter||y;w.exports=function(I){return f(_,I)||(_[I]=m&&f(S,I)?S[I]:T("Symbol."+I)),_[I]}},19358(w,N,s){var h=s(85582),v=s(49724),f=s(61626),y=s(88280),m=s(79192),g=s(19595),S=s(54829),_=s(34084),T=s(32096),I=s(39259),j=s(85884),M=s(39447),z=s(7376);w.exports=function(K,Y,B,X){var te="stackTraceLimit",ie=X?2:1,se=K.split("."),Te=se[se.length-1],he=h.apply(null,se);if(he){var ge=he.prototype;if(!z&&v(ge,"cause")&&delete ge.cause,!B)return he;var ke=h("Error"),Ve=Y((function(He,qe){var nt=T(X?qe:He,void 0),gt=X?new he(He):new he;return nt!==void 0&&f(gt,"message",nt),j(gt,Ve,gt.stack,2),this&&y(ge,this)&&_(gt,this,Ve),arguments.length>ie&&I(gt,arguments[ie]),gt}));if(Ve.prototype=ge,Te!=="Error"?m?m(Ve,ke):g(Ve,ke,{name:!0}):M&&te in he&&(S(Ve,he,te),S(Ve,he,"prepareStackTrace")),g(Ve,he),!z)try{ge.name!==Te&&f(ge,"name",Te),ge.constructor=Ve}catch{}return Ve}}},36371(w,N,s){var h=s(11091),v=s(85582),f=s(76024),y=s(98828),m=s(19358),g="AggregateError",S=v(g),_=!y((function(){return S([1]).errors[0]!==1}))&&y((function(){return S([1],g,{cause:7}).cause!==7}));h({global:!0,constructor:!0,arity:2,forced:_},{AggregateError:m(g,(function(T){return function(j,M){return f(T,this,arguments)}}),_,!0)})},82048(w,N,s){var h=s(11091),v=s(88280),f=s(15972),y=s(79192),m=s(19595),g=s(58075),S=s(61626),_=s(75817),T=s(39259),I=s(85884),j=s(24823),M=s(32096),z=s(76264)("toStringTag"),K=Error,Y=[].push,B=function(ie,se){var Te,he=v(X,this);y?Te=y(new K,he?f(this):X):(Te=he?this:g(X),S(Te,z,"Error")),se!==void 0&&S(Te,"message",M(se)),I(Te,B,Te.stack,1),arguments.length>2&&T(Te,arguments[2]);var ge=[];return j(ie,Y,{that:ge}),S(Te,"errors",ge),Te};y?y(B,K):m(B,K,{name:!0});var X=B.prototype=g(K.prototype,{constructor:_(1,B),message:_(1,""),name:_(1,"AggregateError")});h({global:!0,constructor:!0,arity:2},{AggregateError:B})},64502(w,N,s){s(82048)},19748(w,N,s){var h=s(11091),v=s(74436).includes,f=s(98828),y=s(42156);h({target:"Array",proto:!0,forced:f((function(){return!Array(1).includes()}))},{includes:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),y("includes")},99363(w,N,s){var h=s(4993),v=s(42156),f=s(93742),y=s(64932),m=s(74284).f,g=s(60183),S=s(59550),_=s(7376),T=s(39447),I="Array Iterator",j=y.set,M=y.getterFor(I);w.exports=g(Array,"Array",(function(K,Y){j(this,{type:I,target:h(K),index:0,kind:Y})}),(function(){var K=M(this),Y=K.target,B=K.index++;if(!Y||B>=Y.length)return K.target=null,S(void 0,!0);switch(K.kind){case"keys":return S(B,!1);case"values":return S(Y[B],!1)}return S([B,Y[B]],!1)}),"values");var z=f.Arguments=f.Array;if(v("keys"),v("values"),v("entries"),!_&&T&&z.name!=="values")try{m(z,"name",{value:"values"})}catch{}},96605(w,N,s){var h=s(11091),v=s(45951),f=s(76024),y=s(19358),m="WebAssembly",g=v[m],S=new Error("e",{cause:7}).cause!==7,_=function(I,j){var M={};M[I]=y(I,j,S),h({global:!0,constructor:!0,arity:1,forced:S},M)},T=function(I,j){if(g&&g[I]){var M={};M[I]=y(m+"."+I,j,S),h({target:m,stat:!0,constructor:!0,arity:1,forced:S},M)}};_("Error",(function(I){return function(M){return f(I,this,arguments)}})),_("EvalError",(function(I){return function(M){return f(I,this,arguments)}})),_("RangeError",(function(I){return function(M){return f(I,this,arguments)}})),_("ReferenceError",(function(I){return function(M){return f(I,this,arguments)}})),_("SyntaxError",(function(I){return function(M){return f(I,this,arguments)}})),_("TypeError",(function(I){return function(M){return f(I,this,arguments)}})),_("URIError",(function(I){return function(M){return f(I,this,arguments)}})),T("CompileError",(function(I){return function(M){return f(I,this,arguments)}})),T("LinkError",(function(I){return function(M){return f(I,this,arguments)}})),T("RuntimeError",(function(I){return function(M){return f(I,this,arguments)}}))},79307(w,N,s){var h=s(11091),v=s(44673);h({target:"Function",proto:!0,forced:Function.bind!==v},{bind:v})},71340(w,N,s){var h=s(11091),v=s(29538);h({target:"Object",stat:!0,arity:2,forced:Object.assign!==v},{assign:v})},19770(w,N,s){var h=s(11091),v=s(1907),f=s(12074),y=s(74239),m=s(90160),g=s(25735),S=v("".indexOf);h({target:"String",proto:!0,forced:!g("includes")},{includes:function(T){return!!~S(m(y(this)),m(f(T)),arguments.length>1?arguments[1]:void 0)}})},7057(w,N,s){var h=s(11470).charAt,v=s(90160),f=s(64932),y=s(60183),m=s(59550),g="String Iterator",S=f.set,_=f.getterFor(g);y(String,"String",(function(T){S(this,{type:g,string:v(T),index:0})}),(function(){var I,j=_(this),M=j.string,z=j.index;return z>=M.length?m(void 0,!0):(I=h(M,z),j.index+=I.length,m(I,!1))}))},91599(w,N,s){s(64502)},12560(w,N,s){s(99363);var h=s(19287),v=s(45951),f=s(14840),y=s(93742);for(var m in h)f(v[m],m),y[m]=y.Array},694(w,N,s){s(91599);var h=s(37257);s(12560),w.exports=h},19709(w,N,s){var h=s(23034);w.exports=h},76343(w,N,s){var h=s(36880);w.exports=h},40975(w,N,s){var h=s(9748);w.exports=h}},hs={};function Be(w){var N=hs[w];if(N!==void 0)return N.exports;var s=hs[w]={id:w,loaded:!1,exports:{}};return eE[w].call(s.exports,s,s.exports,Be),s.loaded=!0,s.exports}Be.n=w=>{var N=w&&w.__esModule?()=>w.default:()=>w;return Be.d(N,{a:N}),N},Be.d=(w,N)=>{for(var s in N)Be.o(N,s)&&!Be.o(w,s)&&Object.defineProperty(w,s,{enumerable:!0,get:N[s]})},Be.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),Be.o=(w,N)=>Object.prototype.hasOwnProperty.call(w,N),Be.r=w=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(w,"__esModule",{value:!0})},Be.nmd=w=>(w.paths=[],w.children||(w.children=[]),w);var Cd={};(()=>{Be.d(Cd,{default:()=>bU});var w={};Be.r(w),Be.d(w,{CLEAR:()=>pe,CLEAR_BY:()=>U,NEW_AUTH_ERR:()=>Zt,NEW_SPEC_ERR:()=>kt,NEW_SPEC_ERR_BATCH:()=>yt,NEW_THROWN_ERR:()=>Gt,NEW_THROWN_ERR_BATCH:()=>Sr,clear:()=>St,clearBy:()=>Bt,newAuthErr:()=>Fe,newSpecErr:()=>ye,newSpecErrBatch:()=>Ee,newThrownErr:()=>Z,newThrownErrBatch:()=>ne});var N={};Be.r(N),Be.d(N,{AUTHORIZE:()=>an,AUTHORIZE_OAUTH2:()=>rc,CONFIGURE_AUTH:()=>Zs,LOGOUT:()=>tc,RESTORE_AUTHORIZATION:()=>nc,SHOW_AUTH_POPUP:()=>vs,authPopup:()=>rl,authorize:()=>Ku,authorizeAccessCodeWithBasicAuthentication:()=>el,authorizeAccessCodeWithFormParams:()=>ac,authorizeApplication:()=>jo,authorizeOauth2:()=>yi,authorizeOauth2WithPersistOption:()=>bs,authorizePassword:()=>ws,authorizeRequest:()=>Es,authorizeWithPersistOption:()=>$c,configureAuth:()=>vi,logout:()=>$i,logoutWithPersistOption:()=>Co,persistAuthorizationIfNeeded:()=>tl,preAuthorizeImplicit:()=>gi,restoreAuthorization:()=>bn,showDefinitions:()=>Hu});var s={};Be.r(s),Be.d(s,{authorized:()=>zc,definitionsForRequirements:()=>ic,definitionsToAuthorize:()=>Uc,getConfigs:()=>uo,getDefinitionsByNames:()=>Gu,isAuthorized:()=>rh,selectAuthPath:()=>al,shownDefinitions:()=>wi});var h={};Be.r(h),Be.d(h,{TOGGLE_CONFIGS:()=>Bn,UPDATE_CONFIGS:()=>aa,downloadConfig:()=>n0,getConfigByUrl:()=>a0,loaded:()=>po,toggle:()=>Ya,update:()=>Ga});var v={};Be.r(v),Be.d(v,{get:()=>Pd});var f={};Be.r(f),Be.d(f,{transform:()=>Sl});var y={};Be.r(y),Be.d(y,{transform:()=>xl});var m={};Be.r(m),Be.d(m,{allErrors:()=>hc,lastError:()=>Ko});var g={};Be.r(g),Be.d(g,{SHOW:()=>Cs,UPDATE_FILTER:()=>Io,UPDATE_LAYOUT:()=>iu,UPDATE_MODE:()=>Mo,changeMode:()=>Zm,show:()=>dc,updateFilter:()=>js,updateLayout:()=>Yi});var S={};Be.r(S),Be.d(S,{current:()=>Dd,currentFilter:()=>Go,isShown:()=>Ro,showSummary:()=>Oi,whatMode:()=>Un});var _={};Be.r(_),Be.d(_,{taggedOperations:()=>eg});var T={};Be.r(T),Be.d(T,{getActiveLanguage:()=>hh,getDefaultExpanded:()=>dh,getGenerators:()=>fc,getSnippetGenerators:()=>ng});var I={};Be.r(I),Be.d(I,{JsonSchemaArrayItemFile:()=>wh,JsonSchemaArrayItemText:()=>mu,JsonSchemaForm:()=>Hd,JsonSchema_array:()=>ii,JsonSchema_boolean:()=>Kd,JsonSchema_object:()=>sg,JsonSchema_string:()=>Xi});var j={};Be.r(j),Be.d(j,{allowTryItOutFor:()=>Op,basePath:()=>Tg,canExecuteScheme:()=>Rs,consumes:()=>Ph,consumesOptionsFor:()=>Qi,contentTypeValues:()=>Cl,currentProducesFor:()=>ff,definitions:()=>pf,externalDocs:()=>Cg,findDefinition:()=>Ng,getOAS3RequiredRequestBodyContentType:()=>zg,getParameter:()=>$g,hasHost:()=>df,host:()=>Th,info:()=>Ch,isMediaTypeSchemaPropertiesEqual:()=>Vg,isOAS3:()=>Ag,lastError:()=>Sg,mutatedRequestFor:()=>Fg,mutatedRequests:()=>cr,operationScheme:()=>mf,operationWithMeta:()=>hf,operations:()=>jh,operationsWithRootInherited:()=>bu,operationsWithTags:()=>Mg,parameterInclusionSettingFor:()=>Mh,parameterValues:()=>Rh,parameterWithMeta:()=>Lg,parameterWithMetaByIdentity:()=>Eu,parametersIncludeIn:()=>ho,parametersIncludeType:()=>ci,paths:()=>lf,produces:()=>cf,producesOptionsFor:()=>Bg,requestFor:()=>Dg,requests:()=>Rg,responseFor:()=>wu,responses:()=>$a,schemes:()=>Ms,security:()=>uf,securityDefinitions:()=>Nh,semver:()=>jg,spec:()=>eo,specJS:()=>_g,specJson:()=>Za,specJsonWithResolvedSubtrees:()=>li,specResolved:()=>Og,specResolvedSubtree:()=>kg,specSource:()=>Do,specStr:()=>u0,tagDetails:()=>Ig,taggedOperations:()=>Ih,tags:()=>La,url:()=>xg,validOperationMethods:()=>Pg,validateBeforeExecute:()=>Ug,validationErrors:()=>qg,version:()=>sf});var M={};Be.r(M),Be.d(M,{CLEAR_REQUEST:()=>Pl,CLEAR_RESPONSE:()=>Ap,CLEAR_VALIDATE_PARAMS:()=>Zi,LOG_REQUEST:()=>Fo,SET_MUTATED_REQUEST:()=>vc,SET_REQUEST:()=>kp,SET_RESPONSE:()=>Su,SET_SCHEME:()=>xu,UPDATE_EMPTY_PARAM_INCLUSION:()=>yc,UPDATE_JSON:()=>jl,UPDATE_OPERATION_META_VALUE:()=>bc,UPDATE_PARAM:()=>Kn,UPDATE_RESOLVED:()=>Cp,UPDATE_RESOLVED_SUBTREE:()=>Pi,UPDATE_SPEC:()=>wa,UPDATE_URL:()=>fo,VALIDATE_PARAMS:()=>Ds,changeConsumesValue:()=>Ec,changeParam:()=>bf,changeParamByIdentity:()=>wf,changeProducesValue:()=>Kg,clearRequest:()=>_u,clearResponse:()=>Xg,clearValidateParams:()=>Sf,execute:()=>Yg,executeRequest:()=>d0,invalidateResolvedSubtreeCache:()=>Hg,logRequest:()=>h0,parseToJson:()=>$h,requestResolvedSubtree:()=>Wg,resolveSpec:()=>Tl,setMutatedRequest:()=>Bh,setRequest:()=>xf,setResponse:()=>Gg,setScheme:()=>Ou,updateEmptyParamInclusion:()=>wc,updateJsonSpec:()=>Lh,updateResolved:()=>jp,updateResolvedSubtree:()=>Il,updateSpec:()=>Fh,updateUrl:()=>vf,validateParams:()=>Ef});var z={};Be.r(z),Be.d(z,{executeRequest:()=>Zg,updateJsonSpec:()=>f0,updateSpec:()=>Gn,validateParams:()=>m0});var K={};Be.r(K),Be.d(K,{JsonPatchError:()=>zn,_areEquals:()=>xc,applyOperation:()=>Rl,applyPatch:()=>es,applyReducer:()=>ay,deepClone:()=>ny,getValueByPointer:()=>Ml,validate:()=>Ip,validator:()=>Au});var Y={};Be.r(Y),Be.d(Y,{compare:()=>i,generate:()=>_f,observe:()=>Mp,unobserve:()=>y0});var B={};Be.r(B),Be.d(B,{hasElementSourceMap:()=>Gh,includesClasses:()=>Yh,includesSymbols:()=>FC,isAnnotationElement:()=>RC,isArrayElement:()=>vo,isBooleanElement:()=>Ff,isCommentElement:()=>DC,isElement:()=>da,isLinkElement:()=>aS,isMemberElement:()=>Bs,isNullElement:()=>tb,isNumberElement:()=>eb,isObjectElement:()=>hn,isParseResultElement:()=>iS,isPrimitiveElement:()=>$p,isRefElement:()=>oS,isStringElement:()=>Ir});var X={};Be.r(X),Be.d(X,{isJSONReferenceElement:()=>cb,isJSONSchemaElement:()=>LS,isLinkDescriptionElement:()=>p3,isMediaElement:()=>$S});var te={};Be.r(te),Be.d(te,{isBooleanJsonSchemaElement:()=>sN,isCallbackElement:()=>WP,isComponentsElement:()=>HP,isContactElement:()=>KP,isDiscriminatorElement:()=>hN,isExampleElement:()=>GP,isExternalDocumentationElement:()=>YP,isHeaderElement:()=>ad,isInfoElement:()=>XP,isLicenseElement:()=>QP,isLinkElement:()=>ZP,isMediaTypeElement:()=>Jy,isOpenApi3_0Element:()=>tN,isOpenapiElement:()=>eN,isOperationElement:()=>HS,isParameterElement:()=>rN,isPathItemElement:()=>gb,isPathsElement:()=>nN,isReferenceElement:()=>Mn,isRequestBodyElement:()=>aN,isResponseElement:()=>Vy,isResponsesElement:()=>oN,isSchemaElement:()=>iN,isSecurityRequirementElement:()=>lN,isSecuritySchemeElement:()=>cN,isServerElement:()=>uN,isServerVariableElement:()=>pN,isServersElement:()=>KS});var ie={};Be.r(ie),Be.d(ie,{isJSONReferenceElement:()=>cb,isJSONSchemaElement:()=>y4,isLinkDescriptionElement:()=>v4,isMediaElement:()=>$S});var se={};Be.r(se),Be.d(se,{isJSONReferenceElement:()=>cb,isJSONSchemaElement:()=>_4,isLinkDescriptionElement:()=>O4});var Te={};Be.r(Te),Be.d(Te,{isJSONSchemaElement:()=>z4,isLinkDescriptionElement:()=>V4});var he={};Be.r(he),Be.d(he,{isJSONSchemaElement:()=>Q4,isLinkDescriptionElement:()=>Z4});var ge={};Be.r(ge),Be.d(ge,{isBooleanJsonSchemaElement:()=>a1,isCallbackElement:()=>MI,isComponentsElement:()=>RI,isContactElement:()=>DI,isExampleElement:()=>FI,isExternalDocumentationElement:()=>LI,isHeaderElement:()=>$I,isInfoElement:()=>BI,isJsonSchemaDialectElement:()=>A2,isLicenseElement:()=>qI,isLinkElement:()=>UI,isMediaTypeElement:()=>t5,isOpenApi3_1Element:()=>C2,isOpenapiElement:()=>zI,isOperationElement:()=>j2,isParameterElement:()=>VI,isPathItemElement:()=>zp,isPathItemElementExternal:()=>JI,isPathsElement:()=>WI,isReferenceElement:()=>Vp,isReferenceElementExternal:()=>HI,isRequestBodyElement:()=>KI,isResponseElement:()=>GI,isResponsesElement:()=>YI,isSchemaElement:()=>Vs,isSecurityRequirementElement:()=>XI,isSecuritySchemeElement:()=>QI,isServerElement:()=>ZI,isServerVariableElement:()=>e5});var ke={};Be.r(ke),Be.d(ke,{cookie:()=>HM,header:()=>WM,path:()=>zM,query:()=>VM});var Ve={};Be.r(Ve),Be.d(Ve,{Button:()=>C7,Col:()=>k7,Collapse:()=>T7,Container:()=>O7,Input:()=>P7,Link:()=>t_,Row:()=>A7,Select:()=>N7,TextArea:()=>j7});var He={};Be.r(He),Be.d(He,{basePath:()=>XF,consumes:()=>QF,definitions:()=>WF,findDefinition:()=>JF,hasHost:()=>HF,host:()=>YF,produces:()=>ZF,schemes:()=>eL,securityDefinitions:()=>KF,validOperationMethods:()=>GF});var qe={};Be.r(qe),Be.d(qe,{definitionsToAuthorize:()=>tL});var nt={};Be.r(nt),Be.d(nt,{callbacksOperations:()=>lL,findSchema:()=>sL,isOAS3:()=>oL,isOAS30:()=>aL,isSwagger2:()=>nL,servers:()=>iL});var gt={};Be.r(gt),Be.d(gt,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:()=>Fv,CLEAR_REQUEST_BODY_VALUE:()=>kw,SET_REQUEST_BODY_VALIDATE_ERROR:()=>Ow,UPDATE_ACTIVE_EXAMPLES_MEMBER:()=>Ew,UPDATE_REQUEST_BODY_INCLUSION:()=>ww,UPDATE_REQUEST_BODY_VALUE:()=>vw,UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:()=>bw,UPDATE_REQUEST_CONTENT_TYPE:()=>Sw,UPDATE_RESPONSE_CONTENT_TYPE:()=>xw,UPDATE_SELECTED_SERVER:()=>yw,UPDATE_SERVER_VARIABLE_VALUE:()=>_w,clearRequestBodyValidateError:()=>DL,clearRequestBodyValue:()=>LL,initRequestBodyValidateError:()=>FL,setActiveExamplesMember:()=>NL,setRequestBodyInclusion:()=>PL,setRequestBodyValidateError:()=>RL,setRequestBodyValue:()=>CL,setRequestContentType:()=>TL,setResponseContentType:()=>IL,setRetainRequestBodyValueFlag:()=>jL,setSelectedServer:()=>AL,setServerVariableValue:()=>ML});var Re={};Be.r(Re),Be.d(Re,{activeExamplesMember:()=>KL,hasUserEditedBody:()=>JL,requestBodyErrors:()=>HL,requestBodyInclusionSetting:()=>WL,requestBodyValue:()=>UL,requestContentType:()=>GL,responseContentType:()=>YL,selectDefaultRequestBodyValue:()=>VL,selectedServer:()=>qL,serverEffectiveValue:()=>ZL,serverVariableValue:()=>XL,serverVariables:()=>QL,shouldRetainRequestBodyValue:()=>zL,validOperationMethods:()=>r$,validateBeforeExecute:()=>e$,validateShallowRequired:()=>t$});var u=Be(96540);function at(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Xe=typeof Symbol=="function"&&Symbol.observable||"@@observable",Se=()=>Math.random().toString(36).substring(7).split("").join("."),De={INIT:`@@redux/INIT${Se()}`,REPLACE:`@@redux/REPLACE${Se()}`};function Ke(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function ft(t,e,r){if(typeof t!="function")throw new Error(at(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(at(0));if(typeof e=="function"&&r===void 0&&(r=e,e=void 0),r!==void 0){if(typeof r!="function")throw new Error(at(1));return r(ft)(t,e)}let n=t,a=e,o=new Map,p=o,c=0,d=!1;function E(){p===o&&(p=new Map,o.forEach(((R,L)=>{p.set(L,R)})))}function x(){if(d)throw new Error(at(3));return a}function k(R){if(typeof R!="function")throw new Error(at(4));if(d)throw new Error(at(5));let L=!0;E();const V=c++;return p.set(V,R),function(){if(L){if(d)throw new Error(at(6));L=!1,E(),p.delete(V),o=null}}}function P(R){if(!Ke(R))throw new Error(at(7));if(R.type===void 0)throw new Error(at(8));if(typeof R.type!="string")throw new Error(at(17));if(d)throw new Error(at(9));try{d=!0,a=n(a,R)}finally{d=!1}return(o=p).forEach((L=>{L()})),R}return P({type:De.INIT}),{dispatch:P,subscribe:k,getState:x,replaceReducer:function(L){if(typeof L!="function")throw new Error(at(10));n=L,P({type:De.REPLACE})},[Xe]:function(){const L=k;return{subscribe(V){if(typeof V!="object"||V===null)throw new Error(at(11));function Q(){const J=V;J.next&&J.next(x())}return Q(),{unsubscribe:L(Q)}},[Xe](){return this}}}}}function Nt(t,e){return function(...r){return e(t.apply(this,r))}}function Wt(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce(((e,r)=>(...n)=>e(r(...n))))}var H=Be(49568),we=Be(81919),ct=Be.n(we),mt=Be(89593),ur=Be(20334),ar=Be(55364),Tt=Be.n(ar);const Gt="err_new_thrown_err",Sr="err_new_thrown_err_batch",kt="err_new_spec_err",yt="err_new_spec_err_batch",Zt="err_new_auth_err",pe="err_clear",U="err_clear_by";function Z(t){return{type:Gt,payload:(0,ur.serializeError)(t)}}function ne(t){return{type:Sr,payload:t}}function ye(t){return{type:kt,payload:t}}function Ee(t){return{type:yt,payload:t}}function Fe(t){return{type:Zt,payload:t}}function St(t={}){return{type:pe,payload:t}}function Bt(t=()=>!0){return{type:U,payload:t}}const Qe=(function(){var e={location:{},history:{},open:()=>{},close:()=>{},File:function(){},FormData:function(){}};if(typeof window>"u")return e;try{e=window;for(var r of["File","Blob","FormData"])r in window&&(e[r]=window[r])}catch(n){console.error(n)}return e})();Be(84058),Be(55808);var $t=Be(50104),Pt=Be.n($t),rn=Be(7309),kr=Be.n(rn),An=Be(42426),Wr=Be.n(An),Jn=Be(75288),Ea=Be.n(Jn),Zn=Be(1882),un=Be.n(Zn),ti=Be(2205),Oo=Be.n(ti),Li=Be(53209),Fn=Be.n(Li),zo=Be(62802),Vo=Be.n(zo);const ds=H.default.Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function sr(t,{isOAS3:e}={}){if(!H.default.Map.isMap(t))return{schema:H.default.Map(),parameterContentMediaType:null};if(!e)return t.get("in")==="body"?{schema:t.get("schema",H.default.Map()),parameterContentMediaType:null}:{schema:t.filter(((r,n)=>ds.includes(n))),parameterContentMediaType:null};if(t.get("content")){const r=t.get("content",H.default.Map({})).keySeq().first();return{schema:t.getIn(["content",r,"schema"],H.default.Map()),parameterContentMediaType:r}}return{schema:t.get("schema")?t.get("schema",H.default.Map()):H.default.Map(),parameterContentMediaType:null}}var br=Be(48287).Buffer;const tn="default",Cr=t=>H.default.Iterable.isIterable(t),Mr=t=>Cr(t)?t.toJS():t;function Nn(t){return Hr(t)?Mr(t):{}}function nn(t){if(Cr(t)||t instanceof Qe.File||!Hr(t))return t;if(Array.isArray(t))return H.default.Seq(t).map(nn).toList();if(un()(t.entries)){const e=(function(n){if(!un()(n.entries))return n;const a={},o="_**[]",p={};for(let c of n.entries())a[c[0]]||p[c[0]]&&p[c[0]].containsMultiple?(p[c[0]]||(p[c[0]]={containsMultiple:!0,length:1},a[`${c[0]}${o}${p[c[0]].length}`]=a[c[0]],delete a[c[0]]),p[c[0]].length+=1,a[`${c[0]}${o}${p[c[0]].length}`]=c[1]):a[c[0]]=c[1];return a})(t);return H.default.OrderedMap(e).map(nn)}return H.default.OrderedMap(t).map(nn)}function fn(t){return Array.isArray(t)?t:[t]}function Ln(t){return typeof t=="function"}function Hr(t){return!!t&&typeof t=="object"}function ia(t){return typeof t=="function"}function za(t){return Array.isArray(t)}const fs=Pt();function ea(t,e){return Object.keys(t).reduce(((r,n)=>(r[n]=e(t[n],n),r)),{})}function di(t,e){return Object.keys(t).reduce(((r,n)=>{let a=e(t[n],n);return a&&typeof a=="object"&&Object.assign(r,a),r}),{})}function Va(t){return({dispatch:e,getState:r})=>n=>a=>typeof a=="function"?a(t()):n(a)}function Rr(t,e,r,n,a,o){if(!e)return[];let p=[],c=e.get("nullable"),d=e.get("required"),E=e.get("maximum"),x=e.get("minimum"),k=e.get("type"),P=e.get("format"),R=e.get("maxLength"),L=e.get("minLength"),V=e.get("uniqueItems"),Q=e.get("maxItems"),J=e.get("minItems"),re=e.get("pattern");const me=r||d===!0,le=t!=null,ve=me||le&&k==="array"||!(!me&&!le),be=c&&t===null;if(me&&!le&&!be&&!n&&!k)return p.push("Required field is not provided"),p;if(be||!k||!ve)return[];let ce=k==="string"&&t,_e=k==="array"&&Array.isArray(t)&&t.length,Ae=k==="array"&&H.default.List.isList(t)&&t.count(),xe=k==="array"&&typeof t=="string"&&t;const Oe=[ce,_e,Ae,k==="file"&&t instanceof Qe.File,k==="boolean"&&(t||t===!1),k==="number"&&(t||t===0),k==="integer"&&(t||t===0),k==="object"&&typeof t=="object"&&t!==null,k==="object"&&typeof t=="string"&&t],je=(o?Oe:Oe.concat(xe)).some((G=>!!G));if(me&&!je&&!n)return p.push("Required field is not provided"),p;if(k==="object"&&(a===null||a==="application/json")){let G=t;if(typeof t=="string")try{G=JSON.parse(t)}catch{return p.push("Parameter string value must be valid JSON"),p}e&&e.has("required")&&ia(d.isList)&&d.isList()&&d.forEach((de=>{G[de]===void 0&&p.push({propKey:de,error:"Required property not found"})})),e&&e.has("properties")&&e.get("properties").forEach(((de,Ne)=>{const Ye=Rr(G[Ne],de,!1,n,a,o);p.push(...Ye.map((ht=>({propKey:Ne,error:ht}))))}))}if(re){let G=((de,Ne)=>{if(!new RegExp(Ne).test(de))return"Value must follow pattern "+Ne})(t,re);G&&p.push(G)}if(J&&k==="array"){let G=((de,Ne)=>{if(!de&&Ne>=1||de&&de.length{if(de&&de.length>Ne)return`Array must not contain more then ${Ne} item${Ne===1?"":"s"}`})(t,Q);G&&p.push({needRemove:!0,error:G})}if(V&&k==="array"){let G=((de,Ne)=>{if(de&&(Ne==="true"||Ne===!0)){const Ye=(0,H.fromJS)(de),ht=Ye.toSet();if(de.length>ht.size){let Ct=(0,H.Set)();if(Ye.forEach(((_t,qt)=>{Ye.filter((It=>ia(It.equals)?It.equals(_t):It===_t)).size>1&&(Ct=Ct.add(qt))})),Ct.size!==0)return Ct.map((_t=>({index:_t,error:"No duplicates allowed."}))).toArray()}}})(t,V);G&&p.push(...G)}if(R||R===0){let G=((de,Ne)=>{if(de.length>Ne)return`Value must be no longer than ${Ne} character${Ne!==1?"s":""}`})(t,R);G&&p.push(G)}if(L){let G=((de,Ne)=>{if(de.length{if(de>Ne)return`Value must be less than or equal to ${Ne}`})(t,E);G&&p.push(G)}if(x||x===0){let G=((de,Ne)=>{if(de{if(isNaN(Date.parse(de)))return"Value must be a DateTime"})(t):P==="uuid"?(de=>{if(de=de.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(de))return"Value must be a Guid"})(t):(de=>{if(de&&typeof de!="string")return"Value must be a string"})(t),!G)return p;p.push(G)}else if(k==="boolean"){let G=(de=>{if(de!=="true"&&de!=="false"&&de!==!0&&de!==!1)return"Value must be a boolean"})(t);if(!G)return p;p.push(G)}else if(k==="number"){let G=(de=>{if(!/^-?\d+(\.?\d+)?$/.test(de))return"Value must be a number"})(t);if(!G)return p;p.push(G)}else if(k==="integer"){let G=(de=>{if(!/^-?\d+$/.test(de))return"Value must be an integer"})(t);if(!G)return p;p.push(G)}else if(k==="array"){if(!_e&&!Ae)return p;t&&t.forEach(((G,de)=>{const Ne=Rr(G,e.get("items"),!1,n,a,o);p.push(...Ne.map((Ye=>({index:de,error:Ye}))))}))}else if(k==="file"){let G=(de=>{if(de&&!(de instanceof Qe.File))return"Value must be a file"})(t);if(!G)return p;p.push(G)}return p}const ko=t=>{let e;return e=t instanceof br?t:br.from(t.toString(),"utf-8"),e.toString("base64")},Nr={operationsSorter:{alpha:(t,e)=>t.get("path").localeCompare(e.get("path")),method:(t,e)=>t.get("method").localeCompare(e.get("method"))},tagsSorter:{alpha:(t,e)=>t.localeCompare(e)}},xn=t=>{let e=[];for(let r in t){let n=t[r];n!==void 0&&n!==""&&e.push([r,"=",encodeURIComponent(n).replace(/%20/g,"+")].join(""))}return e.join("&")},fi=(t,e,r)=>!!kr()(r,(n=>Ea()(t[n],e[n])));function ta(t){return!(!t||t.indexOf("localhost")>=0||t.indexOf("127.0.0.1")>=0||t==="none")}const Jo=t=>typeof t=="string"||t instanceof String?t.trim().replace(/\s/g,"%20"):"",ms=t=>Oo()(Jo(t).replace(/%20/g,"_")),Yt=t=>/^x-/.test(t),gr=t=>H.Map.isMap(t)?t.filter(((e,r)=>Yt(r))):Object.keys(t).filter((e=>Yt(e))),mr=t=>t.filter(((e,r)=>/^pattern|maxLength|minLength|maximum|minimum/.test(r)));function Vr(t,e,r=()=>!0){if(typeof t!="object"||Array.isArray(t)||t===null||!e)return t;const n=Object.assign({},t);return Object.keys(n).forEach((a=>{a===e&&r(n[a],a)?delete n[a]:n[a]=Vr(n[a],e,r)})),n}function Gr(t){if(typeof t=="string")return t;if(t&&t.toJS&&(t=t.toJS()),typeof t=="object"&&t!==null)try{return JSON.stringify(t,null,2)}catch{return String(t)}return t==null?"":t.toString()}function sa(t,{returnAll:e=!1,allowHashes:r=!0}={}){if(!H.default.Map.isMap(t))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");const n=t.get("name"),a=t.get("in");let o=[];return t&&t.hashCode&&a&&n&&r&&o.push(`${a}.${n}.hash-${t.hashCode()}`),a&&n&&o.push(`${a}.${n}`),o.push(n),e?o:o[0]||""}function Sa(t,e){return sa(t,{returnAll:!0}).map((r=>e[r])).filter((r=>r!==void 0))[0]}function Ja(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const Wa=t=>!t||!(!Cr(t)||!t.isEmpty()),Ia=t=>t;function Yl(t,e,r){let n=[Va(r)];return ft(t,e,(Qe.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Wt)((function(...o){return p=>(c,d)=>{const E=p(c,d);let x=()=>{throw new Error(at(15))};const k={getState:E.getState,dispatch:(R,...L)=>x(R,...L)},P=o.map((R=>R(k)));return x=Wt(...P)(E.dispatch),{...E,dispatch:x}}})(...n)))}class Xl{constructor(e={}){ct()(this,{state:{},plugins:[],system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},e),this.getSystem=this._getSystem.bind(this),this.store=(function(n,a,o){return Yl(n,a,o)})(Ia,(0,H.fromJS)(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(e,r=!0){var n=gs(e,this.getSystem());lo(this.system,n),r&&this.buildSystem(),ys.call(this.system,e,this.getSystem())&&this.buildSystem()}buildSystem(e=!0){let r=this.getStore().dispatch,n=this.getStore().getState;this.boundSystem=Object.assign({},this.getRootInjects(),this.getWrappedAndBoundActions(r),this.getWrappedAndBoundSelectors(n,this.getSystem),this.getStateThunks(n),this.getFn(),this.getConfigs()),e&&this.rebuildReducer()}_getSystem(){return this.boundSystem}getRootInjects(){return Object.assign({getSystem:this.getSystem,getStore:this.getStore.bind(this),getComponents:this.getComponents.bind(this),getState:this.getStore().getState,getConfigs:this._getConfigs.bind(this),Im:H.default,React:u},this.system.rootInjects||{})}_getConfigs(){return this.system.configs}getConfigs(){return{configs:this.system.configs}}setConfigs(e){this.system.configs=e}rebuildReducer(){this.store.replaceReducer((function(r,n){return(function(o,p){let c=Object.keys(o).reduce(((d,E)=>(d[E]=(function(k,P){return(R=new H.Map,L)=>{if(!k)return R;let V=k[L.type];if(V){const Q=mi(V,P)(R,L);return Q===null?R:Q}return R}})(o[E],p),d)),{});return Object.keys(c).length?(0,mt.H)(c):Ia})(ea(r,(a=>a.reducers)),n)})(this.system.statePlugins,this.getSystem))}getType(e){let r=e[0].toUpperCase()+e.slice(1);return di(this.system.statePlugins,((n,a)=>{let o=n[e];if(o)return{[a+r]:o}}))}getSelectors(){return this.getType("selectors")}getActions(){return ea(this.getType("actions"),(e=>di(e,((r,n)=>{if(Ln(r))return{[n]:r}}))))}getWrappedAndBoundActions(e){return ea(this.getBoundActions(e),((r,n)=>{let a=this.system.statePlugins[n.slice(0,-7)].wrapActions;return a?ea(r,((o,p)=>{let c=a[p];return c?(Array.isArray(c)||(c=[c]),c.reduce(((d,E)=>{let x=(...k)=>E(d,this.getSystem())(...k);if(!Ln(x))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return mi(x,this.getSystem)}),o||Function.prototype)):o})):r}))}getWrappedAndBoundSelectors(e,r){return ea(this.getBoundSelectors(e,r),((n,a)=>{let o=[a.slice(0,-9)],p=this.system.statePlugins[o].wrapSelectors;return p?ea(n,((c,d)=>{let E=p[d];return E?(Array.isArray(E)||(E=[E]),E.reduce(((x,k)=>{let P=(...R)=>k(x,this.getSystem())(e().getIn(o),...R);if(!Ln(P))throw new TypeError("wrapSelector needs to return a function that returns a new function (ie the wrapped action)");return P}),c||Function.prototype)):c})):n}))}getStates(e){return Object.keys(this.system.statePlugins).reduce(((r,n)=>(r[n]=e.get(n),r)),{})}getStateThunks(e){return Object.keys(this.system.statePlugins).reduce(((r,n)=>(r[n]=()=>e().get(n),r)),{})}getFn(){return{fn:this.system.fn}}getComponents(e){const r=this.system.components[e];return Array.isArray(r)?r.reduce(((n,a)=>a(n,this.getSystem()))):e!==void 0?this.system.components[e]:this.system.components}getBoundSelectors(e,r){return ea(this.getSelectors(),((n,a)=>{let o=[a.slice(0,-9)];return ea(n,(p=>(...c)=>{let d=mi(p,this.getSystem).apply(null,[e().getIn(o),...c]);return typeof d=="function"&&(d=mi(d,this.getSystem)(r())),d}))}))}getBoundActions(e){e=e||this.getStore().dispatch;const r=this.getActions(),n=a=>typeof a!="function"?ea(a,(o=>n(o))):(...o)=>{var p=null;try{p=a(...o)}catch(c){p={type:Gt,error:!0,payload:(0,ur.serializeError)(c)}}finally{return p}};return ea(r,(a=>(function(p,c){if(typeof p=="function")return Nt(p,c);if(typeof p!="object"||p===null)throw new Error(at(16));const d={};for(const E in p){const x=p[E];typeof x=="function"&&(d[E]=Nt(x,c))}return d})(n(a),e)))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(e){return r=>ct()({},this.getWrappedAndBoundActions(r),this.getFn(),e)}}function gs(t,e){return Hr(t)&&!za(t)?Tt()({},t):ia(t)?gs(t(e),e):za(t)?t.map((r=>gs(r,e))).reduce(lo,{components:e.getComponents()}):{}}function ys(t,e,{hasLoaded:r}={}){let n=r;return Hr(t)&&!za(t)&&typeof t.afterLoad=="function"&&(n=!0,mi(t.afterLoad,e.getSystem).call(this,e)),ia(t)?ys.call(this,t(e),e,{hasLoaded:n}):za(t)?t.map((a=>ys.call(this,a,e,{hasLoaded:n}))):n}function lo(t={},e={}){if(!Hr(t))return{};if(!Hr(e))return t;e.wrapComponents&&(ea(e.wrapComponents,((n,a)=>{const o=t.components&&t.components[a];o&&Array.isArray(o)?(t.components[a]=o.concat([n]),delete e.wrapComponents[a]):o&&(t.components[a]=[o,n],delete e.wrapComponents[a])})),Object.keys(e.wrapComponents).length||delete e.wrapComponents);const{statePlugins:r}=t;if(Hr(r))for(let n in r){const a=r[n];if(!Hr(a))continue;const{wrapActions:o,wrapSelectors:p}=a;if(Hr(o))for(let c in o){let d=o[c];Array.isArray(d)||(d=[d],o[c]=d),e&&e.statePlugins&&e.statePlugins[n]&&e.statePlugins[n].wrapActions&&e.statePlugins[n].wrapActions[c]&&(e.statePlugins[n].wrapActions[c]=o[c].concat(e.statePlugins[n].wrapActions[c]))}if(Hr(p))for(let c in p){let d=p[c];Array.isArray(d)||(d=[d],p[c]=d),e&&e.statePlugins&&e.statePlugins[n]&&e.statePlugins[n].wrapSelectors&&e.statePlugins[n].wrapSelectors[c]&&(e.statePlugins[n].wrapSelectors[c]=p[c].concat(e.statePlugins[n].wrapSelectors[c]))}}return ct()(t,e)}function mi(t,e,{logErrors:r=!0}={}){return typeof t!="function"?t:function(...n){try{return t.call(this,...n)}catch(a){if(r){const{uncaughtExceptionHandler:o}=e().getConfigs();typeof o=="function"?o(a):console.error(a)}return null}}}const Wu=t=>{t.preventDefault();const e=t.currentTarget.closest(".swagger-ui")?.querySelector("#operations");e&&(e.focus(),e.scrollIntoView())},Ql=()=>u.createElement("a",{href:"#operations",className:"swagger-ui__skip-link",onClick:Wu},"Skip to operations"),Zl=()=>({components:{SkipToOperations:Ql}});var ec=Be(61160),Ao=Be.n(ec);const vs="show_popup",an="authorize",tc="logout",rc="authorize_oauth2",Zs="configure_auth",nc="restore_authorization";function Hu(t){return{type:vs,payload:t}}function Ku(t){return{type:an,payload:t}}const $c=t=>({authActions:e})=>{e.authorize(t),e.persistAuthorizationIfNeeded()};function $i(t){return{type:tc,payload:t}}const Co=t=>({authActions:e})=>{e.logout(t),e.persistAuthorizationIfNeeded()},gi=t=>({authActions:e,errActions:r})=>{let{auth:n,token:a,isValid:o}=t,{schema:p,name:c}=n,d=p.get("flow");delete Qe.swaggerUIRedirectOauth2,d==="accessCode"||o||r.newAuthErr({authId:c,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),a.error?r.newAuthErr({authId:c,source:"auth",level:"error",message:JSON.stringify(a)}):e.authorizeOauth2WithPersistOption({auth:n,token:a})};function yi(t){return{type:rc,payload:t}}const bs=t=>({authActions:e})=>{e.authorizeOauth2(t),e.persistAuthorizationIfNeeded()},ws=t=>({authActions:e})=>{let{schema:r,name:n,username:a,password:o,passwordType:p,clientId:c,clientSecret:d}=t,E={grant_type:"password",scope:t.scopes.join(" "),username:a,password:o},x={};switch(p){case"request-body":(function(P,R,L){R&&Object.assign(P,{client_id:R}),L&&Object.assign(P,{client_secret:L})})(E,c,d);break;case"basic":x.Authorization="Basic "+ko(c+":"+d);break;default:console.warn(`Warning: invalid passwordType ${p} was passed, not including client id and secret`)}return e.authorizeRequest({body:xn(E),url:r.get("tokenUrl"),name:n,headers:x,query:{},auth:t})},jo=t=>({authActions:e})=>{let{schema:r,scopes:n,name:a,clientId:o,clientSecret:p}=t,c={Authorization:"Basic "+ko(o+":"+p)},d={grant_type:"client_credentials",scope:n.join(" ")};return e.authorizeRequest({body:xn(d),name:a,url:r.get("tokenUrl"),auth:t,headers:c})},ac=({auth:t,redirectUrl:e})=>({authActions:r})=>{let{schema:n,name:a,clientId:o,clientSecret:p,codeVerifier:c}=t,d={grant_type:"authorization_code",code:t.code,client_id:o,client_secret:p,redirect_uri:e,code_verifier:c};return r.authorizeRequest({body:xn(d),name:a,url:n.get("tokenUrl"),auth:t})},el=({auth:t,redirectUrl:e})=>({authActions:r})=>{let{schema:n,name:a,clientId:o,clientSecret:p,codeVerifier:c}=t,d={Authorization:"Basic "+ko(o+":"+p)},E={grant_type:"authorization_code",code:t.code,client_id:o,redirect_uri:e,code_verifier:c};return r.authorizeRequest({body:xn(E),name:a,url:n.get("tokenUrl"),auth:t,headers:d})},Es=t=>({fn:e,getConfigs:r,authActions:n,errActions:a,oas3Selectors:o,specSelectors:p,authSelectors:c})=>{let d,{body:E,query:x={},headers:k={},name:P,url:R,auth:L}=t,{additionalQueryStringParams:V}=c.getConfigs()||{};if(p.isOAS3()){let re=o.serverEffectiveValue(o.selectedServer());d=Ao()(R,re,!0)}else d=Ao()(R,p.url(),!0);typeof V=="object"&&(d.query=Object.assign({},d.query,V));const Q=d.toString();let J=Object.assign({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},k);e.fetch({url:Q,method:"post",headers:J,query:x,body:E,requestInterceptor:r().requestInterceptor,responseInterceptor:r().responseInterceptor}).then((function(re){let me=JSON.parse(re.data),le=me&&(me.error||""),ve=me&&(me.parseError||"");re.ok?le||ve?a.newAuthErr({authId:P,level:"error",source:"auth",message:JSON.stringify(me)}):n.authorizeOauth2WithPersistOption({auth:L,token:me}):a.newAuthErr({authId:P,level:"error",source:"auth",message:re.statusText})})).catch((re=>{let me=new Error(re).message;if(re.response&&re.response.data){const le=re.response.data;try{const ve=typeof le=="string"?JSON.parse(le):le;ve.error&&(me+=`, error: ${ve.error}`),ve.error_description&&(me+=`, description: ${ve.error_description}`)}catch{}}a.newAuthErr({authId:P,level:"error",source:"auth",message:me})}))};function vi(t){return{type:Zs,payload:t}}function bn(t){return{type:nc,payload:t}}const tl=()=>({authSelectors:t,getConfigs:e})=>{if(!e().persistAuthorization)return;const r=t.authorized().toJS();localStorage.setItem("authorized",JSON.stringify(r))},rl=(t,e)=>()=>{Qe.swaggerUIRedirectOauth2=e,Qe.open(t)},bi={[vs]:(t,{payload:e})=>t.set("showDefinitions",e),[an]:(t,{payload:e})=>{let r=(0,H.fromJS)(e),n=t.get("authorized")||(0,H.Map)();return r.entrySeq().forEach((([a,o])=>{if(!ia(o.getIn))return t.set("authorized",n);let p=o.getIn(["schema","type"]);if(p==="apiKey"||p==="http")n=n.set(a,o);else if(p==="basic"){let c=o.getIn(["value","username"]),d=o.getIn(["value","password"]);n=n.setIn([a,"value"],{username:c,header:"Basic "+ko(c+":"+d)}),n=n.setIn([a,"schema"],o.get("schema"))}})),t.set("authorized",n)},[rc]:(t,{payload:e})=>{let r,{auth:n,token:a}=e;n.token=Object.assign({},a),r=(0,H.fromJS)(n);let o=t.get("authorized")||(0,H.Map)();return o=o.set(r.get("name"),r),t.set("authorized",o)},[tc]:(t,{payload:e})=>{let r=t.get("authorized").withMutations((n=>{e.forEach((a=>{n.delete(a)}))}));return t.set("authorized",r)},[Zs]:(t,{payload:e})=>t.set("configs",e),[nc]:(t,{payload:e})=>t.set("authorized",(0,H.fromJS)(e.authorized))};function Po(t,e="expected a function, instead received "+typeof t){if(typeof t!="function")throw new TypeError(e)}var Ma=t=>Array.isArray(t)?t:[t];function oc(t){const e=Array.isArray(t[0])?t[0]:t;return(function(n,a="expected all items to be functions, instead received the following types: "){if(!n.every((o=>typeof o=="function"))){const o=n.map((p=>typeof p=="function"?`function ${p.name||"unnamed"}()`:typeof p)).join(", ");throw new TypeError(`${a}[${o}]`)}})(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}var jd=typeof WeakRef<"u"?WeakRef:class{constructor(t){this.value=t}deref(){return this.value}};function Bc(t,e={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=e;let a,o=0;function p(){let c=r;const{length:d}=arguments;for(let k=0,P=d;k{r={s:0,v:void 0,o:null,p:null},p.resetResultsCount()},p.resultsCount=()=>o,p.resetResultsCount=()=>{o=0},p}function qc(t,...e){const r=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,n=(...a)=>{let o,p=0,c=0,d={},E=a.pop();typeof E=="object"&&(d=E,E=a.pop()),Po(E,`createSelector expects an output function after the inputs, but received: [${typeof E}]`);const x={...r,...d},{memoize:k,memoizeOptions:P=[],argsMemoize:R=Bc,argsMemoizeOptions:L=[]}=x,V=Ma(P),Q=Ma(L),J=oc(a),re=k((function(){return p++,E.apply(null,arguments)}),...V),me=R((function(){c++;const ve=(function(ce,_e){const Ae=[],{length:xe}=ce;for(let Oe=0;Oec,resetDependencyRecomputations:()=>{c=0},lastResult:()=>o,recomputations:()=>p,resetRecomputations:()=>{p=0},memoize:k,argsMemoize:R})};return Object.assign(n,{withTypes:()=>n}),n}var yr=qc(Bc),co=Object.assign(((t,e=yr)=>{(function(a,o="expected an object, instead received "+typeof a){if(typeof a!="object")throw new TypeError(o)})(t,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof t);const r=Object.keys(t);return e(r.map((n=>t[n])),((...n)=>n.reduce(((a,o,p)=>(a[r[p]]=o,a)),{})))}),{withTypes:()=>co});const nl=t=>t,wi=yr(nl,(t=>t.get("showDefinitions"))),Uc=yr(nl,(()=>({specSelectors:t})=>{let e=t.securityDefinitions()||(0,H.Map)({}),r=(0,H.List)();return e.entrySeq().forEach((([n,a])=>{let o=(0,H.Map)();o=o.set(n,a),r=r.push(o)})),r})),al=(t,e)=>({specSelectors:r})=>(0,H.List)(r.isOAS3()?["components","securitySchemes",e]:["securityDefinitions",e]),Gu=(t,e)=>({specSelectors:r})=>{console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");let n=r.securityDefinitions(),a=(0,H.List)();return e.valueSeq().forEach((o=>{let p=(0,H.Map)();o.entrySeq().forEach((([c,d])=>{let E,x=n.get(c);x.get("type")==="oauth2"&&d.size&&(E=x.get("scopes"),E.keySeq().forEach((k=>{d.contains(k)||(E=E.delete(k))})),x=x.set("allowedScopes",E)),p=p.set(c,x)})),a=a.push(p)})),a},ic=(t,e=(0,H.List)())=>({authSelectors:r})=>{const n=r.definitionsToAuthorize()||(0,H.List)();let a=(0,H.List)();return n.forEach((o=>{let p=e.find((c=>c.get(o.keySeq().first())));p&&(o.forEach(((c,d)=>{if(c.get("type")==="oauth2"){const E=p.get(d);let x=c.get("scopes");H.List.isList(E)&&H.Map.isMap(x)&&(x.keySeq().forEach((k=>{E.contains(k)||(x=x.delete(k))})),o=o.set(d,c.set("scopes",x)))}})),a=a.push(o))})),a},zc=yr(nl,(t=>t.get("authorized")||(0,H.Map)())),rh=(t,e)=>({authSelectors:r})=>{let n=r.authorized();return H.List.isList(e)?!!e.toJS().filter((a=>Object.keys(a).map((o=>!!n.get(o))).indexOf(!1)===-1)).length:null},uo=yr(nl,(t=>t.get("configs"))),Yu=(t,{authSelectors:e,specSelectors:r})=>({path:n,method:a,operation:o,extras:p})=>{let c={authorized:e.authorized()&&e.authorized().toJS(),definitions:r.securityDefinitions()&&r.securityDefinitions().toJS(),specSecurity:r.security()&&r.security().toJS()};return t({path:n,method:a,operation:o,securities:c,...p})},Vc=(t,e)=>r=>{const{getConfigs:n,authActions:a}=e,o=n();if(t(r),o.persistAuthorization){const p=localStorage.getItem("authorized");p&&a.restoreAuthorization({authorized:JSON.parse(p)})}},Bi=(t,e)=>r=>{if(t(r),e.getConfigs().persistAuthorization)try{const[{schema:n,value:a}]=Object.values(r),o=(0,H.fromJS)(n),p=o.get("type")==="apiKey",c=o.get("in")==="cookie";p&&c&&(document.cookie=`${o.get("name")}=${a}; SameSite=None; Secure`)}catch(n){console.error("Error persisting cookie based apiKey in document.cookie.",n)}},Wo=(t,e)=>r=>{const n=e.getConfigs(),a=e.authSelectors.authorized();try{n.persistAuthorization&&Array.isArray(r)&&r.forEach((o=>{const p=a.get(o,{}),c=p.getIn(["schema","type"])==="apiKey",d=p.getIn(["schema","in"])==="cookie";if(c&&d){const E=p.getIn(["schema","name"]);document.cookie=`${E}=; Max-Age=-99999999`}}))}catch(o){console.error("Error deleting cookie based apiKey from document.cookie.",o)}t(r)};var $n=Be(90179),Ha=Be.n($n);class nh extends u.Component{mapStateToProps(e,r){return{state:e,ownProps:Ha()(r,Object.keys(r.getSystem()))}}render(){const{getComponent:e,ownProps:r}=this.props,n=e("LockIcon");return u.createElement(n,r)}}const Ei=nh;class Xu extends u.Component{mapStateToProps(e,r){return{state:e,ownProps:Ha()(r,Object.keys(r.getSystem()))}}render(){const{getComponent:e,ownProps:r}=this.props,n=e("UnlockIcon");return u.createElement(n,r)}}const ol=Xu;function Ss(){return{afterLoad(t){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=t.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=il.bind(null,t),this.rootInjects.preauthorizeBasic=Qu.bind(null,t)},components:{LockAuthIcon:Ei,UnlockAuthIcon:ol,LockAuthOperationIcon:Ei,UnlockAuthOperationIcon:ol},statePlugins:{auth:{reducers:bi,actions:N,selectors:s,wrapActions:{authorize:Bi,logout:Wo}},configs:{wrapActions:{loaded:Vc}},spec:{wrapActions:{execute:Yu}}}}}function Qu(t,e,r,n){const{authActions:{authorize:a},specSelectors:{specJson:o,isOAS3:p}}=t,c=p()?["components","securitySchemes"]:["securityDefinitions"],d=o().getIn([...c,e]);return d?a({[e]:{value:{username:r,password:n},schema:d.toJS()}}):null}function il(t,e,r){const{authActions:{authorize:n},specSelectors:{specJson:a,isOAS3:o}}=t,p=o()?["components","securitySchemes"]:["securityDefinitions"],c=a().getIn([...p,e]);return c?n({[e]:{value:r,schema:c.toJS()}}):null}function ah(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ri,sl,sc,Jc,Zu,Ra,Wc,ll,Hc,ep,cl,ul,tp,xa,qi,Si,rp,Ui,pl,hl,xi,xs,No,Kc,ra,dl,fl,ni,Gc,zi,lc,Yc,ml,gl,la,Vi,Ji,Wi,np,ap,oh,Ka,_s,Xc,ca={},yl={},Da={};function Hi(){if(ri)return Da;function t(e){return e==null}return ri=1,Da.isNothing=t,Da.isObject=function(r){return typeof r=="object"&&r!==null},Da.toArray=function(r){return Array.isArray(r)?r:t(r)?[]:[r]},Da.repeat=function(r,n){let a="";for(let o=0;o=48&&o<=55}function n(o){return o>=48&&o<=57}function a(o){let p=o,c=1,d=p[0];if(d!=="-"&&d!=="+"||(d==="-"&&(c=-1),p=p.slice(1),d=p[0]),p==="0")return 0;if(d==="0"){if(p[1]==="b")return c*parseInt(p.slice(2),2);if(p[1]==="x")return c*parseInt(p.slice(2),16);if(p[1]==="o")return c*parseInt(p.slice(2),8)}return c*parseInt(p,10)}return xs=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(p){if(p===null)return!1;const c=p.length;let d=0,E=!1;if(!c)return!1;let x=p[d];if(x!=="-"&&x!=="+"||(x=p[++d]),x==="0"){if(d+1===c)return!0;if(x=p[++d],x==="b"){for(d++;d=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102))return!1;E=!0}return E&&isFinite(a(p))}if(x==="o"){for(d++;d=0?"0b"+o.toString(2):"-0b"+o.toString(2).slice(1)},octal:function(o){return o>=0?"0o"+o.toString(8):"-0o"+o.toString(8).slice(1)},decimal:function(o){return o.toString(10)},hexadecimal:function(o){return o>=0?"0x"+o.toString(16).toUpperCase():"-0x"+o.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),xs}function pc(){if(ra)return Kc;ra=1;const t=Hi(),e=_a(),r=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),n=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=/^[-+]?[0-9]+e/;return Kc=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(p){return p!==null&&!!r.test(p)&&(!!isFinite(parseFloat(p,10))||n.test(p))},construct:function(p){let c=p.toLowerCase();const d=c[0]==="-"?-1:1;return"+-".indexOf(c[0])>=0&&(c=c.slice(1)),c===".inf"?d===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:c===".nan"?NaN:d*parseFloat(c,10)},predicate:function(p){return Object.prototype.toString.call(p)==="[object Number]"&&(p%1!=0||t.isNegativeZero(p))},represent:function(p,c){if(isNaN(p))switch(c){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===p)switch(c){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===p)switch(c){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(p))return"-0.0";const d=p.toString(10);return a.test(d)?d.replace("e",".e"):d},defaultStyle:"lowercase"}),Kc}function vl(){return fl?dl:(fl=1,dl=uc().extend({implicit:[Os(),To(),Qc(),pc()]}))}function Zc(){return Gc?ni:(Gc=1,ni=vl())}function eu(){if(lc)return zi;lc=1;const t=_a(),e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return zi=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(a){return a!==null&&(e.exec(a)!==null||r.exec(a)!==null)},construct:function(a){let o=0,p=null,c=e.exec(a);if(c===null&&(c=r.exec(a)),c===null)throw new Error("Date resolve error");const d=+c[1],E=+c[2]-1,x=+c[3];if(!c[4])return new Date(Date.UTC(d,E,x));const k=+c[4],P=+c[5],R=+c[6];if(c[7]){for(o=c[7].slice(0,3);o.length<3;)o+="0";o=+o}c[9]&&(p=6e4*(60*+c[10]+ +(c[11]||0)),c[9]==="-"&&(p=-p));const L=new Date(Date.UTC(d,E,x,k,P,R,o));return p&&L.setTime(L.getTime()-p),L},instanceOf:Date,represent:function(a){return a.toISOString()}}),zi}function op(){if(ml)return Yc;ml=1;const t=_a();return Yc=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(r){return r==="<<"||r===null}})}function tu(){if(la)return gl;la=1;const t=_a(),e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;return gl=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(n){if(n===null)return!1;let a=0;const o=n.length,p=e;for(let c=0;c64)){if(d<0)return!1;a+=6}}return a%8==0},construct:function(n){const a=n.replace(/[\r\n=]/g,""),o=a.length,p=e;let c=0;const d=[];for(let x=0;x>16&255),d.push(c>>8&255),d.push(255&c)),c=c<<6|p.indexOf(a.charAt(x));const E=o%4*6;return E===0?(d.push(c>>16&255),d.push(c>>8&255),d.push(255&c)):E===18?(d.push(c>>10&255),d.push(c>>2&255)):E===12&&d.push(c>>4&255),new Uint8Array(d)},predicate:function(n){return Object.prototype.toString.call(n)==="[object Uint8Array]"},represent:function(n){let a="",o=0;const p=n.length,c=e;for(let E=0;E>18&63],a+=c[o>>12&63],a+=c[o>>6&63],a+=c[63&o]),o=(o<<8)+n[E];const d=p%3;return d===0?(a+=c[o>>18&63],a+=c[o>>12&63],a+=c[o>>6&63],a+=c[63&o]):d===2?(a+=c[o>>10&63],a+=c[o>>4&63],a+=c[o<<2&63],a+=c[64]):d===1&&(a+=c[o>>2&63],a+=c[o<<4&63],a+=c[64],a+=c[64]),a}}),gl}function ip(){if(Ji)return Vi;Ji=1;const t=_a(),e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;return Vi=new t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(a){if(a===null)return!0;const o={},p=a;for(let c=0,d=p.length;cdr&&(tr=" ... ",bt=Xt-dr+tr.length),ut-Xt>dr&&(Er=" ...",ut=Xt+dr-Er.length),{str:tr+it.slice(bt,ut).replace(/\t/g,"→")+Er,pos:Xt-bt+tr.length}}function Ft(it,bt){return $e.repeat(" ",bt-it.length)+it}return Jc=function(bt,ut){if(ut=Object.create(ut||null),!bt.buffer)return null;ut.maxLength||(ut.maxLength=79),typeof ut.indent!="number"&&(ut.indent=1),typeof ut.linesBefore!="number"&&(ut.linesBefore=3),typeof ut.linesAfter!="number"&&(ut.linesAfter=2);const Xt=/\r?\n|\r|\0/g,zt=[0],tr=[];let Er,dr=-1;for(;Er=Xt.exec(bt.buffer);)tr.push(Er.index),zt.push(Er.index+Er[0].length),bt.position<=Er.index&&dr<0&&(dr=zt.length-2);dr<0&&(dr=zt.length-1);let qr="";const en=Math.min(bt.line+ut.linesAfter,tr.length).toString().length,kn=ut.maxLength-(ut.indent+en+3);for(let jt=1;jt<=ut.linesBefore&&!(dr-jt<0);jt++){const We=Je(bt.buffer,zt[dr-jt],tr[dr-jt],bt.position-(zt[dr]-zt[dr-jt]),kn);qr=$e.repeat(" ",ut.indent)+Ft((bt.line-jt+1).toString(),en)+" | "+We.str+` +`+qr}const ln=Je(bt.buffer,zt[dr],tr[dr],bt.position,kn);qr+=$e.repeat(" ",ut.indent)+Ft((bt.line+1).toString(),en)+" | "+ln.str+` +`,qr+=$e.repeat("-",ut.indent+en+3+ln.pos)+`^ +`;for(let jt=1;jt<=ut.linesAfter&&!(dr+jt>=tr.length);jt++){const We=Je(bt.buffer,zt[dr+jt],tr[dr+jt],bt.position-(zt[dr]-zt[dr+jt]),kn);qr+=$e.repeat(" ",ut.indent)+Ft((bt.line+jt+1).toString(),en)+" | "+We.str+` +`}return qr.replace(/\n$/,"")},Jc})(),n=O(),a=Object.prototype.hasOwnProperty,o=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/[\x85\u2028\u2029]/,c=/[,\[\]{}]/,d=/^(?:!|!!|![0-9A-Za-z-]+!)$/,E=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function x(W){return Object.prototype.toString.call(W)}function k(W){return W===10||W===13}function P(W){return W===9||W===32}function R(W){return W===9||W===32||W===10||W===13}function L(W){return W===44||W===91||W===93||W===123||W===125}function V(W){if(W>=48&&W<=57)return W-48;const $e=32|W;return $e>=97&&$e<=102?$e-97+10:-1}function Q(W){switch(W){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:case 9:return" ";case 110:return` +`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function J(W){return W<=65535?String.fromCharCode(W):String.fromCharCode(55296+(W-65536>>10),56320+(W-65536&1023))}function re(W,$e,Je){$e==="__proto__"?Object.defineProperty(W,$e,{configurable:!0,enumerable:!0,writable:!0,value:Je}):W[$e]=Je}const me=new Array(256),le=new Array(256);for(let W=0;W<256;W++)me[W]=Q(W)?1:0,le[W]=Q(W);function ve(W,$e){this.input=W,this.filename=$e.filename||null,this.schema=$e.schema||n,this.onWarning=$e.onWarning||null,this.legacy=$e.legacy||!1,this.json=$e.json||!1,this.listener=$e.listener||null,this.maxDepth=typeof $e.maxDepth=="number"?$e.maxDepth:100,this.maxTotalMergeKeys=typeof $e.maxTotalMergeKeys=="number"?$e.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=W.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function be(W,$e){const Je={name:W.filename,buffer:W.input.slice(0,-1),position:W.position,line:W.line,column:W.position-W.lineStart};return Je.snippet=r(Je),new e($e,Je)}function ce(W,$e){throw be(W,$e)}function _e(W,$e){W.onWarning&&W.onWarning.call(null,be(W,$e))}function Ae(W,$e,Je){const Ft=W.anchorMapTransactions;if(Ft.length!==0){const it=Ft[Ft.length-1];a.call(it,$e)||(it[$e]={existed:a.call(W.anchorMap,$e),value:W.anchorMap[$e]})}W.anchorMap[$e]=Je}function xe(W){return{position:W.position,line:W.line,lineStart:W.lineStart,lineIndent:W.lineIndent,firstTabInLine:W.firstTabInLine,tag:W.tag,anchor:W.anchor,kind:W.kind,result:W.result}}function Oe(W,$e){W.position=$e.position,W.line=$e.line,W.lineStart=$e.lineStart,W.lineIndent=$e.lineIndent,W.firstTabInLine=$e.firstTabInLine,W.tag=$e.tag,W.anchor=$e.anchor,W.kind=$e.kind,W.result=$e.result}const je={YAML:function($e,Je,Ft){$e.version!==null&&ce($e,"duplication of %YAML directive"),Ft.length!==1&&ce($e,"YAML directive accepts exactly one argument");const it=/^([0-9]+)\.([0-9]+)$/.exec(Ft[0]);it===null&&ce($e,"ill-formed argument of the YAML directive");const bt=parseInt(it[1],10),ut=parseInt(it[2],10);bt!==1&&ce($e,"unacceptable YAML version of the document"),$e.version=Ft[0],$e.checkLineBreaks=ut<2,ut!==1&&ut!==2&&_e($e,"unsupported YAML version of the document")},TAG:function($e,Je,Ft){let it;Ft.length!==2&&ce($e,"TAG directive accepts exactly two arguments");const bt=Ft[0];it=Ft[1],d.test(bt)||ce($e,"ill-formed tag handle (first argument) of the TAG directive"),a.call($e.tagMap,bt)&&ce($e,'there is a previously declared suffix for "'+bt+'" tag handle'),E.test(it)||ce($e,"ill-formed tag prefix (second argument) of the TAG directive");try{it=decodeURIComponent(it)}catch{ce($e,"tag prefix is malformed: "+it)}$e.tagMap[bt]=it}};function G(W,$e,Je,Ft){if($e=32&&Xt<=1114111||ce(W,"expected valid JSON character")}else o.test(it)&&ce(W,"the stream contains non-printable characters");W.result+=it}}function de(W,$e,Je,Ft){t.isObject(Je)||ce(W,"cannot merge mappings; the provided source object is unacceptable");const it=Object.keys(Je);for(let bt=0,ut=it.length;btW.maxTotalMergeKeys&&ce(W,"merge keys exceeded maxTotalMergeKeys ("+W.maxTotalMergeKeys+")"),a.call($e,Xt)||(re($e,Xt,Je[Xt]),Ft[Xt]=!0)}}function Ne(W,$e,Je,Ft,it,bt,ut,Xt,zt){if(Array.isArray(it))for(let tr=0,Er=(it=Array.prototype.slice.call(it)).length;tr1&&(W.result+=t.repeat(` +`,$e-1))}function qt(W,$e){const Je=W.tag,Ft=W.anchor,it=[];let bt=!1;if(W.firstTabInLine!==-1)return!1;W.anchor!==null&&Ae(W,W.anchor,it);let ut=W.input.charCodeAt(W.position);for(;ut!==0&&(W.firstTabInLine!==-1&&(W.position=W.firstTabInLine,ce(W,"tab characters must not be used in indentation")),ut===45)&&R(W.input.charCodeAt(W.position+1));){if(bt=!0,W.position++,ht(W,!0,-1)&&W.lineIndent<=$e){it.push(null),ut=W.input.charCodeAt(W.position);continue}const Xt=W.line;if(or(W,$e,3,!1,!0),it.push(W.result),ht(W,!0,-1),ut=W.input.charCodeAt(W.position),(W.line===Xt||W.lineIndent>$e)&&ut!==0)ce(W,"bad indentation of a sequence entry");else if(W.lineIndent<$e)break}return!!bt&&(W.tag=Je,W.anchor=Ft,W.kind="sequence",W.result=it,!0)}function It(W,$e,Je){let Ft,it,bt,ut;const Xt=W.tag,zt=W.anchor,tr={},Er=Object.create(null);let dr=null,qr=null,en=null,kn=!1,ln=!1;if(W.firstTabInLine!==-1)return!1;W.anchor!==null&&Ae(W,W.anchor,tr);let jt=W.input.charCodeAt(W.position);for(;jt!==0;){kn||W.firstTabInLine===-1||(W.position=W.firstTabInLine,ce(W,"tab characters must not be used in indentation"));const We=W.input.charCodeAt(W.position+1),Kr=W.line;if(jt!==63&&jt!==58||!R(We)){if(it=W.line,bt=W.lineStart,ut=W.position,!or(W,Je,2,!1,!0))break;if(W.line===Kr){for(jt=W.input.charCodeAt(W.position);P(jt);)jt=W.input.charCodeAt(++W.position);if(jt===58)jt=W.input.charCodeAt(++W.position),R(jt)||ce(W,"a whitespace character is expected after the key-value separator within a block mapping"),kn&&(Ne(W,tr,Er,dr,qr,null,it,bt,ut),dr=qr=en=null),ln=!0,kn=!1,Ft=!1,dr=W.tag,qr=W.result;else{if(!ln)return W.tag=Xt,W.anchor=zt,!0;ce(W,"can not read an implicit mapping pair; a colon is missed")}}else{if(!ln)return W.tag=Xt,W.anchor=zt,!0;ce(W,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else jt===63?(kn&&(Ne(W,tr,Er,dr,qr,null,it,bt,ut),dr=qr=en=null),ln=!0,kn=!0,Ft=!0):kn?(kn=!1,Ft=!0):ce(W,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),W.position+=1,jt=We;if((W.line===Kr||W.lineIndent>$e)&&(kn&&(it=W.line,bt=W.lineStart,ut=W.position),or(W,$e,4,!0,Ft)&&(kn?qr=W.result:en=W.result),kn||(Ne(W,tr,Er,dr,qr,en,it,bt,ut),dr=qr=en=null),ht(W,!0,-1),jt=W.input.charCodeAt(W.position)),(W.line===Kr||W.lineIndent>$e)&&jt!==0)ce(W,"bad indentation of a mapping entry");else if(W.lineIndent<$e)break}return kn&&Ne(W,tr,Er,dr,qr,null,it,bt,ut),ln&&(W.tag=Xt,W.anchor=zt,W.kind="mapping",W.result=tr),ln}function Ot(W){let $e,Je,Ft=!1,it=!1,bt=W.input.charCodeAt(W.position);if(bt!==33)return!1;W.tag!==null&&ce(W,"duplication of a tag property"),bt=W.input.charCodeAt(++W.position),bt===60?(Ft=!0,bt=W.input.charCodeAt(++W.position)):bt===33?(it=!0,$e="!!",bt=W.input.charCodeAt(++W.position)):$e="!";let ut=W.position;if(Ft){do bt=W.input.charCodeAt(++W.position);while(bt!==0&&bt!==62);W.position=0;tr-=1){const Er=Xt[zt[tr]];Er.existed?ut.anchorMap[zt[tr]]=Er.value:delete ut.anchorMap[zt[tr]]}})(W),Oe(W,it),!1)}function or(W,$e,Je,Ft,it){let bt,ut,Xt,zt,tr,Er=1,dr=!1,qr=!1,en=null;W.depth>=W.maxDepth&&ce(W,"nesting exceeded maxDepth ("+W.maxDepth+")"),W.depth+=1,W.listener!==null&&W.listener("open",W),W.tag=null,W.anchor=null,W.kind=null,W.result=null;const kn=bt=ut=Je===4||Je===3;if(Ft&&ht(W,!0,-1)&&(dr=!0,W.lineIndent>$e?Er=1:W.lineIndent===$e?Er=0:W.lineIndent<$e&&(Er=-1)),Er===1)for(;;){const ln=W.input.charCodeAt(W.position),jt=xe(W);if(dr&&(ln===33&&W.tag!==null||ln===38&&W.anchor!==null)||!Ot(W)&&!et(W))break;en===null&&(en=jt),ht(W,!0,-1)?(dr=!0,ut=kn,W.lineIndent>$e?Er=1:W.lineIndent===$e?Er=0:W.lineIndent<$e&&(Er=-1)):ut=!1}if(ut&&(ut=dr||it),Er===1||Je===4)if(zt=Je===1||Je===2?$e:$e+1,tr=W.position-W.lineStart,Er===1)if(ut&&(qt(W,tr)||It(W,tr,zt))||(function(jt,We){let Kr,Lr,zr,yn=!0;const En=jt.tag;let Pn;const Ua=jt.anchor;let Dn,Di,vn,cn;const hi=Object.create(null);let Hl,Xs,Zo,so=jt.input.charCodeAt(jt.position);if(so===91)Dn=93,cn=!1,Pn=[];else{if(so!==123)return!1;Dn=125,cn=!0,Pn={}}for(jt.anchor!==null&&Ae(jt,jt.anchor,Pn),so=jt.input.charCodeAt(++jt.position);so!==0;){if(ht(jt,!0,We),so=jt.input.charCodeAt(jt.position),so===Dn)return jt.position++,jt.tag=En,jt.anchor=Ua,jt.kind=cn?"mapping":"sequence",jt.result=Pn,!0;yn?so===44&&ce(jt,"expected the node content, but found ','"):ce(jt,"missed comma between flow collection entries"),Xs=Hl=Zo=null,Di=vn=!1,so===63&&R(jt.input.charCodeAt(jt.position+1))&&(Di=vn=!0,jt.position++,ht(jt,!0,We)),Kr=jt.line,Lr=jt.lineStart,zr=jt.position,or(jt,We,1,!1,!0),Xs=jt.tag,Hl=jt.result,ht(jt,!0,We),so=jt.input.charCodeAt(jt.position),!vn&&jt.line!==Kr||so!==58||(Di=!0,so=jt.input.charCodeAt(++jt.position),ht(jt,!0,We),or(jt,We,1,!1,!0),Zo=jt.result),cn?Ne(jt,Pn,hi,Xs,Hl,Zo,Kr,Lr,zr):Di?Pn.push(Ne(jt,null,hi,Xs,Hl,Zo,Kr,Lr,zr)):Pn.push(Hl),ht(jt,!0,We),so=jt.input.charCodeAt(jt.position),so===44?(yn=!0,so=jt.input.charCodeAt(++jt.position)):yn=!1}ce(jt,"unexpected end of the stream within a flow collection")})(W,zt))qr=!0;else{const ln=W.input.charCodeAt(W.position);en!==null&&kn&&!ut&&ln!==124&&ln!==62&&Dt(W,en,en.position-en.lineStart,zt)||bt&&(function(We,Kr){let Lr,zr,yn=1,En=!1,Pn=!1,Ua=Kr,Dn=0,Di=!1,vn=We.input.charCodeAt(We.position);if(vn===124)Lr=!1;else{if(vn!==62)return!1;Lr=!0}for(We.kind="scalar",We.result="";vn!==0;)if(vn=We.input.charCodeAt(++We.position),vn===43||vn===45)yn===1?yn=vn===43?3:2:ce(We,"repeat of a chomping mode identifier");else{if(!((zr=(cn=vn)>=48&&cn<=57?cn-48:-1)>=0))break;zr===0?ce(We,"bad explicit indentation width of a block scalar; it cannot be less than one"):Pn?ce(We,"repeat of an indentation width identifier"):(Ua=Kr+zr-1,Pn=!0)}var cn;if(P(vn)){do vn=We.input.charCodeAt(++We.position);while(P(vn));if(vn===35)do vn=We.input.charCodeAt(++We.position);while(!k(vn)&&vn!==0)}for(;vn!==0;){for(Ye(We),We.lineIndent=0,vn=We.input.charCodeAt(We.position);(!Pn||We.lineIndentUa&&(Ua=We.lineIndent),k(vn)){Dn++;continue}if(Pn||Ua!==0||ce(We,"missing indentation for block scalar"),We.lineIndent0){let Ua=yn,Dn=0;for(;Ua>0;Ua--)En=We.input.charCodeAt(++We.position),(yn=V(En))>=0?Dn=(Dn<<4)+yn:ce(We,"expected hexadecimal character");We.result+=J(Dn),We.position++}else ce(We,"unknown escape sequence");Lr=zr=We.position}else k(En)?(G(We,Lr,zr,!0),_t(We,ht(We,!1,Kr)),Lr=zr=We.position):We.position===We.lineStart&&Ct(We)?ce(We,"unexpected end of the document within a double quoted scalar"):(We.position++,P(En)||(zr=We.position))}var Pn;ce(We,"unexpected end of the stream within a double quoted scalar")})(W,zt)?qr=!0:(function(We){let Kr=We.input.charCodeAt(We.position);if(Kr!==42)return!1;Kr=We.input.charCodeAt(++We.position);const Lr=We.position;for(;Kr!==0&&!R(Kr)&&!L(Kr);)Kr=We.input.charCodeAt(++We.position);We.position===Lr&&ce(We,"name of an alias node must contain at least one character");const zr=We.input.slice(Lr,We.position);return a.call(We.anchorMap,zr)||ce(We,'unidentified alias "'+zr+'"'),We.result=We.anchorMap[zr],ht(We,!0,-1),!0})(W)?(qr=!0,W.tag===null&&W.anchor===null||ce(W,"alias node should not have any properties")):(function(We,Kr,Lr){let zr,yn,En,Pn,Ua,Dn;const Di=We.kind,vn=We.result;let cn=We.input.charCodeAt(We.position);if(R(cn)||L(cn)||cn===35||cn===38||cn===42||cn===33||cn===124||cn===62||cn===39||cn===34||cn===37||cn===64||cn===96)return!1;if(cn===63||cn===45){const hi=We.input.charCodeAt(We.position+1);if(R(hi)||Lr&&L(hi))return!1}for(We.kind="scalar",We.result="",zr=yn=We.position,En=!1;cn!==0;){if(cn===58){const hi=We.input.charCodeAt(We.position+1);if(R(hi)||Lr&&L(hi))break}else if(cn===35){if(R(We.input.charCodeAt(We.position-1)))break}else{if(We.position===We.lineStart&&Ct(We)||Lr&&L(cn))break;if(k(cn)){if(Pn=We.line,Ua=We.lineStart,Dn=We.lineIndent,ht(We,!1,-1),We.lineIndent>=Kr){En=!0,cn=We.input.charCodeAt(We.position);continue}We.position=yn,We.line=Pn,We.lineStart=Ua,We.lineIndent=Dn;break}}En&&(G(We,zr,yn,!1),_t(We,We.line-Pn),zr=yn=We.position,En=!1),P(cn)||(yn=We.position+1),cn=We.input.charCodeAt(++We.position)}return G(We,zr,yn,!1),!!We.result||(We.kind=Di,We.result=vn,!1)})(W,zt,Je===1)&&(qr=!0,W.tag===null&&(W.tag="?")),W.anchor!==null&&Ae(W,W.anchor,W.result)}else Er===0&&(qr=ut&&qt(W,tr));if(W.tag===null)W.anchor!==null&&Ae(W,W.anchor,W.result);else if(W.tag==="?"){W.result!==null&&W.kind!=="scalar"&&ce(W,'unacceptable node kind for ! tag; it should be "scalar", not "'+W.kind+'"');for(let ln=0,jt=W.implicitTypes.length;ln"),W.result!==null&&Xt.kind!==W.kind&&ce(W,"unacceptable node kind for !<"+W.tag+'> tag; it should be "'+Xt.kind+'", not "'+W.kind+'"'),Xt.resolve(W.result,W.tag)?(W.result=Xt.construct(W.result,W.tag),W.anchor!==null&&Ae(W,W.anchor,W.result)):ce(W,"cannot resolve a node with !<"+W.tag+"> explicit tag")}return W.listener!==null&&W.listener("close",W),W.depth-=1,W.tag!==null||W.anchor!==null||qr}function Ut(W){const $e=W.position;let Je,Ft=!1;for(W.version=null,W.checkLineBreaks=W.legacy,W.tagMap=Object.create(null),W.anchorMap=Object.create(null);(Je=W.input.charCodeAt(W.position))!==0&&(ht(W,!0,-1),Je=W.input.charCodeAt(W.position),!(W.lineIndent>0||Je!==37));){Ft=!0,Je=W.input.charCodeAt(++W.position);let it=W.position;for(;Je!==0&&!R(Je);)Je=W.input.charCodeAt(++W.position);const bt=W.input.slice(it,W.position),ut=[];for(bt.length<1&&ce(W,"directive name must not be less than one character in length");Je!==0;){for(;P(Je);)Je=W.input.charCodeAt(++W.position);if(Je===35){do Je=W.input.charCodeAt(++W.position);while(Je!==0&&!k(Je));break}if(k(Je))break;for(it=W.position;Je!==0&&!R(Je);)Je=W.input.charCodeAt(++W.position);ut.push(W.input.slice(it,W.position))}Je!==0&&Ye(W),a.call(je,bt)?je[bt](W,bt,ut):_e(W,'unknown document directive "'+bt+'"')}ht(W,!0,-1),W.lineIndent===0&&W.input.charCodeAt(W.position)===45&&W.input.charCodeAt(W.position+1)===45&&W.input.charCodeAt(W.position+2)===45?(W.position+=3,ht(W,!0,-1)):Ft&&ce(W,"directives end mark is expected"),or(W,W.lineIndent-1,4,!1,!0),ht(W,!0,-1),W.checkLineBreaks&&p.test(W.input.slice($e,W.position))&&_e(W,"non-ASCII line breaks are interpreted as content"),W.documents.push(W.result),W.position===W.lineStart&&Ct(W)?W.input.charCodeAt(W.position)===46&&(W.position+=3,ht(W,!0,-1)):W.position=32&&G<=126||G>=161&&G<=55295&&G!==8232&&G!==8233||G>=57344&&G<=65533&&G!==o||G>=65536&&G<=1114111}function V(G){return L(G)&&G!==o&&G!==13&&G!==10}function Q(G,de,Ne){const Ye=V(G),ht=Ye&&!R(G);return(Ne?Ye:Ye&&G!==44&&G!==91&&G!==93&&G!==123&&G!==125)&&G!==35&&!(de===58&&!ht)||V(de)&&!R(de)&&G===35||de===58&&ht}function J(G,de){const Ne=G.charCodeAt(de);let Ye;return Ne>=55296&&Ne<=56319&&de+1=56320&&Ye<=57343)?1024*(Ne-55296)+Ye-56320+65536:Ne}function re(G){return/^\n* /.test(G)}function me(G,de,Ne,Ye,ht,Ct,_t,qt){let It,Ot=0,et=null,Dt=!1,or=!1;const Ut=Ye!==-1;let pr=-1,W=(function(Je){return L(Je)&&Je!==o&&!R(Je)&&Je!==45&&Je!==63&&Je!==58&&Je!==44&&Je!==91&&Je!==93&&Je!==123&&Je!==125&&Je!==35&&Je!==38&&Je!==42&&Je!==33&&Je!==124&&Je!==61&&Je!==62&&Je!==39&&Je!==34&&Je!==37&&Je!==64&&Je!==96})(J(G,0))&&(function(Je){return!R(Je)&&Je!==58})(J(G,G.length-1));if(de||_t)for(It=0;It=65536?It+=2:It++){if(Ot=J(G,It),!L(Ot))return 5;W=W&&Q(Ot,et,qt),et=Ot}else{for(It=0;It=65536?It+=2:It++){if(Ot=J(G,It),Ot===10)Dt=!0,Ut&&(or=or||It-pr-1>Ye&&G[pr+1]!==" ",pr=It);else if(!L(Ot))return 5;W=W&&Q(Ot,et,qt),et=Ot}or=or||Ut&&It-pr-1>Ye&&G[pr+1]!==" "}return Dt||or?Ne>9&&re(G)?5:_t?Ct===2?5:2:or?4:3:!W||_t||ht(G)?Ct===2?5:2:1}function le(G,de,Ne,Ye,ht){G.dump=(function(){if(de.length===0)return G.quotingType===2?'""':"''";if(!G.noCompatMode&&(c.indexOf(de)!==-1||d.test(de)))return G.quotingType===2?'"'+de+'"':"'"+de+"'";const Ct=G.indent*Math.max(1,Ne),_t=G.lineWidth===-1?-1:Math.max(Math.min(G.lineWidth,40),G.lineWidth-Ct),qt=Ye||G.flowLevel>-1&&Ne>=G.flowLevel;switch(me(de,qt,G.indent,_t,(function(Ot){return(function(Dt,or){for(let Ut=0,pr=Dt.implicitTypes.length;Ut"+ve(de,G.indent)+be(k((function(Ot,et){const Dt=/(\n+)([^\n]*)/g;let or,Ut,pr=(function(){let $e=Ot.indexOf(` +`);return $e=$e!==-1?$e:Ot.length,Dt.lastIndex=$e,ce(Ot.slice(0,$e),et)})(),W=Ot[0]===` +`||Ot[0]===" ";for(;Ut=Dt.exec(Ot);){const $e=Ut[1],Je=Ut[2];or=Je[0]===" ",pr+=$e+(W||or||Je===""?"":` +`)+ce(Je,et),W=or}return pr})(de,_t),Ct));case 5:return'"'+(function(Ot){let et="",Dt=0;for(let or=0;or=65536?or+=2:or++){Dt=J(Ot,or);const Ut=p[Dt];!Ut&&L(Dt)?(et+=Ot[or],Dt>=65536&&(et+=Ot[or+1])):et+=Ut||E(Dt)}return et})(de)+'"';default:throw new e("impossible error: invalid scalar style")}})()}function ve(G,de){const Ne=re(G)?String(de):"",Ye=G[G.length-1]===` +`;return Ne+(Ye&&(G[G.length-2]===` +`||G===` +`)?"+":Ye?"":"-")+` +`}function be(G){return G[G.length-1]===` +`?G.slice(0,-1):G}function ce(G,de){if(G===""||G[0]===" ")return G;const Ne=/ [^ ]/g;let Ye,ht,Ct=0,_t=0,qt=0,It="";for(;Ye=Ne.exec(G);)qt=Ye.index,qt-Ct>de&&(ht=_t>Ct?_t:qt,It+=` +`+G.slice(Ct,ht),Ct=ht+1),_t=qt;return It+=` +`,G.length-Ct>de&&_t>Ct?It+=G.slice(Ct,_t)+` +`+G.slice(_t+1):It+=G.slice(Ct),It.slice(1)}function _e(G,de,Ne,Ye){let ht="";const Ct=G.tag;for(let _t=0,qt=Ne.length;_t tag resolver accepts not "'+qt+'" style');It=_t.represent[qt](de,qt)}G.dump=It}return!0}}return!1}function xe(G,de,Ne,Ye,ht,Ct,_t){G.tag=null,G.dump=Ne,Ae(G,Ne,!1)||Ae(G,Ne,!0);const qt=n.call(G.dump),It=Ye;Ye&&(Ye=G.flowLevel<0||G.flowLevel>de);const Ot=qt==="[object Object]"||qt==="[object Array]";let et,Dt;if(Ot&&(et=G.duplicates.indexOf(Ne),Dt=et!==-1),(G.tag!==null&&G.tag!=="?"||Dt||G.indent!==2&&de>0)&&(ht=!1),Dt&&G.usedDuplicates[et])G.dump="*ref_"+et;else{if(Ot&&Dt&&!G.usedDuplicates[et]&&(G.usedDuplicates[et]=!0),qt==="[object Object]")Ye&&Object.keys(G.dump).length!==0?((function(Ut,pr,W,$e){let Je="";const Ft=Ut.tag,it=Object.keys(W);if(Ut.sortKeys===!0)it.sort();else if(typeof Ut.sortKeys=="function")it.sort(Ut.sortKeys);else if(Ut.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let bt=0,ut=it.length;bt1024;Er&&(Ut.dump&&Ut.dump.charCodeAt(0)===10?Xt+="?":Xt+="? "),Xt+=Ut.dump,Er&&(Xt+=P(Ut,pr)),xe(Ut,pr+1,tr,!0,Er)&&(Ut.dump&&Ut.dump.charCodeAt(0)===10?Xt+=":":Xt+=": ",Xt+=Ut.dump,Je+=Xt)}Ut.tag=Ft,Ut.dump=Je||"{}"})(G,de,G.dump,ht),Dt&&(G.dump="&ref_"+et+G.dump)):((function(Ut,pr,W){let $e="";const Je=Ut.tag,Ft=Object.keys(W);for(let it=0,bt=Ft.length;it1024&&(ut+="? "),ut+=Ut.dump+(Ut.condenseFlow?'"':"")+":"+(Ut.condenseFlow?"":" "),xe(Ut,pr,zt,!1,!1)&&(ut+=Ut.dump,$e+=ut))}Ut.tag=Je,Ut.dump="{"+$e+"}"})(G,de,G.dump),Dt&&(G.dump="&ref_"+et+" "+G.dump));else if(qt==="[object Array]")Ye&&G.dump.length!==0?(G.noArrayIndent&&!_t&&de>0?_e(G,de-1,G.dump,ht):_e(G,de,G.dump,ht),Dt&&(G.dump="&ref_"+et+G.dump)):((function(Ut,pr,W){let $e="";const Je=Ut.tag;for(let Ft=0,it=W.length;Ft",G.dump=or+" "+G.dump}}return!0}function Oe(G,de){const Ne=[],Ye=[];je(G,Ne,Ye);const ht=Ye.length;for(let Ct=0;Ct()=>{},n0=t=>e=>{const{fn:{fetch:r}}=e;return r(t)},a0=(t,e)=>r=>{const{specActions:n,configsActions:a}=r;if(t)return a.downloadConfig(t).then(o,o);function o(p){p instanceof Error||p.status>=400?(n.updateLoadingStatus("failedConfig"),n.updateLoadingStatus("failedConfig"),n.updateUrl(""),console.error(p.statusText+" "+t.url),e(null)):e(((c,d)=>{try{return Pe.load(c)}catch(E){return d&&d.errActions.newThrownErr(new Error(E)),{}}})(p.text,r))}},Pd=(t,e)=>t.getIn(Array.isArray(e)?e:[e]),bl={[aa]:(t,e)=>t.merge((0,H.fromJS)(e.payload)),[Bn]:(t,e)=>{const r=e.payload,n=t.get(r);return t.set(r,!n)}};function Nd(){return{statePlugins:{configs:{reducers:bl,actions:h,selectors:v}}}}const wl=t=>t?history.pushState(null,null,`#${t}`):window.location.hash="";var Ki=Be(86215),lp=Be.n(Ki);const Gi="layout_scroll_to",ih="layout_clear_scroll",o0={fn:{getScrollParent:function(e,r){const n=document.documentElement;let a=getComputedStyle(e);const o=a.position==="absolute",p=r?/(auto|scroll|hidden)/:/(auto|scroll)/;if(a.position==="fixed")return n;for(let c=e;c=c.parentElement;)if(a=getComputedStyle(c),(!o||a.position!=="static")&&p.test(a.overflow+a.overflowY+a.overflowX))return c;return n}},statePlugins:{layout:{actions:{scrollToElement:(t,e)=>r=>{try{e=e||r.fn.getScrollParent(t),lp().createScroller(e).to(t)}catch(n){console.error(n)}},scrollTo:t=>({type:Gi,payload:Array.isArray(t)?t:[t]}),clearScrollTo:()=>({type:ih}),readyToScroll:(t,e)=>r=>{const n=r.layoutSelectors.getScrollToKey();H.default.is(n,(0,H.fromJS)(t))&&(r.layoutActions.scrollToElement(e),r.layoutActions.clearScrollTo())},parseDeepLinkHash:t=>({layoutActions:e,layoutSelectors:r,getConfigs:n})=>{if(n().deepLinking&&t){let a=t.slice(1);a[0]==="!"&&(a=a.slice(1)),a[0]==="/"&&(a=a.slice(1));const o=a.split("/").map((x=>x||"")),p=r.isShownKeyFromUrlHashArray(o),[c,d="",E=""]=p;if(c==="operations"){const x=r.isShownKeyFromUrlHashArray([d]);d.indexOf("_")>-1&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),e.show(x.map((k=>k.replace(/_/g," "))),!0)),e.show(x,!0)}(d.indexOf("_")>-1||E.indexOf("_")>-1)&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),e.show(p.map((x=>x.replace(/_/g," "))),!0)),e.show(p,!0),e.scrollTo(p)}}},selectors:{getScrollToKey:t=>t.get("scrollToKey"),isShownKeyFromUrlHashArray(t,e){const[r,n]=e;return n?["operations",r,n]:r?["operations-tag",r]:[]},urlHashArrayFromIsShownKey(t,e){let[r,n,a]=e;return r=="operations"?[n,a]:r=="operations-tag"?[n]:[]}},reducers:{[Gi]:(t,e)=>t.set("scrollToKey",H.default.fromJS(e.payload)),[ih]:t=>t.delete("scrollToKey")},wrapActions:{show:(t,{getConfigs:e,layoutSelectors:r})=>(...n)=>{if(t(...n),e().deepLinking)try{let[a,o]=n;a=Array.isArray(a)?a:[a];const p=r.urlHashArrayFromIsShownKey(a);if(!p.length)return;const[c,d]=p;if(!o)return wl("/");p.length===2?wl(Jo(`/${encodeURIComponent(c)}/${encodeURIComponent(d)}`)):p.length===1&&wl(Jo(`/${encodeURIComponent(c)}`))}catch(a){console.error(a)}}}}}};var i0=Be(2209),El=Be.n(i0);const cp=(t,e)=>class extends u.Component{onLoad=n=>{const{operation:a}=this.props,{tag:o,operationId:p}=a.toObject();let{isShownKey:c}=a.toObject();c=c||["operations",o,p],e.layoutActions.readyToScroll(c,n)};render(){return u.createElement("span",{ref:this.onLoad},u.createElement(t,this.props))}},ru=(t,e)=>class extends u.Component{onLoad=n=>{const{tag:a}=this.props,o=["operations-tag",a];e.layoutActions.readyToScroll(o,n)};render(){return u.createElement("span",{ref:this.onLoad},u.createElement(t,this.props))}};function up(){return[o0,{statePlugins:{configs:{wrapActions:{loaded:(t,e)=>(...r)=>{t(...r);const n=decodeURIComponent(window.location.hash);e.layoutActions.parseDeepLinkHash(n)}}}},wrapComponents:{operation:cp,OperationTag:ru}}]}var Td=Be(40860),nu=Be.n(Td);function Sl(t){return t.map((e=>{let r="is not of a type(s)",n=e.get("message").indexOf(r);if(n>-1){let a=e.get("message").slice(n+19).split(",");return e.set("message",e.get("message").slice(0,n)+(function(p){return p.reduce(((c,d,E,x)=>E===x.length-1&&x.length>1?c+"or "+d:x[E+1]&&x.length>2?c+d+", ":x[E+1]?c+d+" ":c+d),"should be a")})(a))}return e}))}var qn=Be(58156),Cn=Be.n(qn);function xl(t,{jsSpec:e}){return t}const Xa=[f,y];function Oa(t){let e={jsSpec:{}};return nu()(Xa,((n,a)=>{try{return a.transform(n,e).filter((o=>!!o))}catch(o){return console.error("Transformer error:",o),n}}),t).filter((n=>!!n)).map((n=>(!n.get("line")&&n.get("path"),n)))}let ks={line:0,level:"error",message:"Unknown error"};const hc=yr((t=>t),(t=>t.get("errors",(0,H.List)()))),Ko=yr(hc,(t=>t.last()));function sh(t){return{statePlugins:{err:{reducers:{[Gt]:(e,{payload:r})=>{let n=Object.assign(ks,r,{type:"thrown"});return e.update("errors",(a=>(a||(0,H.List)()).push((0,H.fromJS)(n)))).update("errors",(a=>Oa(a)))},[Sr]:(e,{payload:r})=>(r=r.map((n=>(0,H.fromJS)(Object.assign(ks,n,{type:"thrown"})))),e.update("errors",(n=>(n||(0,H.List)()).concat((0,H.fromJS)(r)))).update("errors",(n=>Oa(n)))),[kt]:(e,{payload:r})=>{let n=(0,H.fromJS)(r);return n=n.set("type","spec"),e.update("errors",(a=>(a||(0,H.List)()).push((0,H.fromJS)(n)).sortBy((o=>o.get("line"))))).update("errors",(a=>Oa(a)))},[yt]:(e,{payload:r})=>(r=r.map((n=>(0,H.fromJS)(Object.assign(ks,n,{type:"spec"})))),e.update("errors",(n=>(n||(0,H.List)()).concat((0,H.fromJS)(r)))).update("errors",(n=>Oa(n)))),[Zt]:(e,{payload:r})=>{let n=(0,H.fromJS)(Object.assign({},r));return n=n.set("type","auth"),e.update("errors",(a=>(a||(0,H.List)()).push((0,H.fromJS)(n)))).update("errors",(a=>Oa(a)))},[pe]:(e,{payload:r})=>{if(!r||!e.get("errors"))return e;let n=e.get("errors").filter((a=>a.keySeq().every((o=>{const p=a.get(o),c=r[o];return!c||p!==c}))));return e.merge({errors:n})},[U]:(e,{payload:r})=>{if(!r||typeof r!="function")return e;let n=e.get("errors").filter((a=>r(a)));return e.merge({errors:n})}},actions:w,selectors:m}}}}function Xm(t,e){return t.filter(((r,n)=>n.indexOf(e)!==-1))}function Id(){return{fn:{opsFilter:Xm}}}var lh=Be(7666),Yr=Be.n(lh);const As=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),ch=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),Md=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),Qm=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),_l=({className:t=null,width:e=15,height:r=16,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 16",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("g",{transform:"translate(2, -1)"},u.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))),au=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),ou=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),pp=()=>({components:{ArrowUpIcon:As,ArrowDownIcon:ch,ArrowIcon:Md,CloseIcon:Qm,CopyIcon:_l,LockIcon:au,UnlockIcon:ou}}),iu="layout_update_layout",Io="layout_update_filter",Mo="layout_update_mode",Cs="layout_show";function Yi(t){return{type:iu,payload:t}}function js(t){return{type:Io,payload:t}}function dc(t,e=!0){return t=fn(t),{type:Cs,payload:{thing:t,shown:e}}}function Zm(t,e=""){return t=fn(t),{type:Mo,payload:{thing:t,mode:e}}}const Rd={[iu]:(t,e)=>t.set("layout",e.payload),[Io]:(t,e)=>t.set("filter",e.payload),[Cs]:(t,e)=>{const r=e.payload.shown,n=(0,H.fromJS)(e.payload.thing);return t.update("shown",(0,H.fromJS)({}),(a=>a.set(n,r)))},[Mo]:(t,e)=>{let r=e.payload.thing,n=e.payload.mode;return t.setIn(["modes"].concat(r),(n||"")+"")}},Dd=t=>t.get("layout"),Go=t=>t.get("filter"),Ro=(t,e,r)=>(e=fn(e),t.get("shown",(0,H.fromJS)({})).get((0,H.fromJS)(e),r)),Un=(t,e,r="")=>(e=fn(e),t.getIn(["modes",...e],r)),Oi=yr((t=>t),(t=>!Ro(t,"editor"))),eg=(t,e)=>(r,...n)=>{let a=t(r,...n);const{fn:o,layoutSelectors:p,getConfigs:c}=e.getSystem(),d=c(),{maxDisplayedTags:E}=d;let x=p.currentFilter();return x&&x!==!0&&(a=o.opsFilter(a,x)),E>=0&&(a=a.slice(0,E)),a};function Fd(){return{statePlugins:{layout:{reducers:Rd,actions:g,selectors:S},spec:{wrapSelectors:_}}}}function uh({configs:t}){const e={debug:0,info:1,log:2,warn:3,error:4},r=p=>e[p]||-1;let{logLevel:n}=t,a=r(n);function o(p,...c){r(p)>=a&&console[p](...c)}return o.warn=o.bind(null,"warn"),o.error=o.bind(null,"error"),o.info=o.bind(null,"info"),o.debug=o.bind(null,"debug"),{rootInjects:{log:o}}}let hp=!1;function Ld(){return{statePlugins:{spec:{wrapActions:{updateSpec:t=>(...e)=>(hp=!0,t(...e)),updateJsonSpec:(t,e)=>(...r)=>{const n=e.getConfigs().onComplete;return hp&&typeof n=="function"&&(setTimeout(n,0),hp=!1),t(...r)}}}}}}const dp=t=>{const e="_**[]";return t.indexOf(e)<0?t:t.split(e)[0].trim()},tg=t=>t==="-d "||/^[_\/-]/g.test(t)?t:"'"+t.replace(/'/g,"'\\''")+"'",su=t=>(t=t.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,`^ +`))==="-d "?t.replace(/-d /g,`-d ^ +`):/^[_\/-]/g.test(t)?t:'"'+t+'"',$d=t=>t==="-d "?t:/\n/.test(t)?`@" +${t.replace(/`/g,"``").replace(/\$/g,"`$")} +"@`:/^[_\/-]/.test(t)?t:`'${t.replace(/'/g,"''")}'`,Bd=(t,e,r,n="")=>{let a=!1,o="";const p=(...R)=>o+=" "+R.map(e).join(" "),c=(...R)=>o+=R.map(e).join(" "),d=()=>o+=` ${r}`,E=(R=1)=>o+=" ".repeat(R);let x=t.get("headers");o+="curl"+n;const k=t.get("curlOptions");if(H.List.isList(k)&&!k.isEmpty()&&p(...t.get("curlOptions")),p("-X",t.get("method")),d(),E(),c(`${t.get("url")}`),x&&x.size)for(let R of t.get("headers").entries()){d(),E();let[L,V]=R;c("-H",`${L}: ${V}`),a=a||/^content-type$/i.test(L)&&/^multipart\/form-data$/i.test(V)}const P=t.get("body");if(P)if(a&&["POST","PUT","PATCH"].includes(t.get("method")))for(let[R,L]of P.entrySeq()){let V=dp(R);d(),E(),c("-F"),L instanceof Qe.File&&typeof L.valueOf()=="string"?p(`${V}=${L.data}${L.type?`;type=${L.type}`:""}`):L instanceof Qe.File?p(`${V}=@${L.name}${L.type?`;type=${L.type}`:""}`):p(`${V}=${L}`)}else if(P instanceof Qe.File)d(),E(),c(`--data-binary '@${P.name}'`);else{d(),E(),c("-d ");let R=P;H.Map.isMap(R)?c((function(V){let Q=[];for(let[J,re]of V.get("body").entrySeq()){let me=dp(J);re instanceof Qe.File?Q.push(` "${me}": { + "name": "${re.name}"${re.type?`, + "type": "${re.type}"`:""} + }`):Q.push(` "${me}": ${JSON.stringify(re,null,2).replace(/(\r\n|\r|\n)/g,` + `)}`)}return`{ +${Q.join(`, +`)} +}`})(t)):(typeof R!="string"&&(R=JSON.stringify(R)),c(R))}else P||t.get("method")!=="POST"||(d(),E(),c("-d ''"));return o},fp=t=>Bd(t,$d,"`\n",".exe"),mp=t=>Bd(t,tg,`\\ +`),rg=t=>Bd(t,su,`^ +`),ph=t=>t||(0,H.Map)(),fc=yr(ph,(t=>{const e=t.get("languages"),r=t.get("generators",(0,H.Map)());return!e||e.isEmpty()?r:r.filter(((n,a)=>e.includes(a)))})),ng=t=>({fn:e})=>fc(t).map(((r,n)=>{const a=(o=>e[`requestSnippetGenerator_${o}`])(n);return typeof a!="function"?null:r.set("fn",a)})).filter((r=>r)),hh=yr(ph,(t=>t.get("activeLanguage"))),dh=yr(ph,(t=>t.get("defaultExpanded")));var lu=Be(46942),Xr=Be.n(lu),cu=Be(59399);const uu="Copy request snippet to clipboard",qd={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(250, 250, 250)",paddingBottom:"0",paddingTop:"0",border:"1px solid rgb(51, 51, 51)",borderRadius:"4px 4px 0 0",boxShadow:"none",borderBottom:"none"},pu={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(51, 51, 51)",boxShadow:"none",border:"1px solid rgb(51, 51, 51)",paddingBottom:"0",paddingTop:"0",borderRadius:"4px 4px 0 0",marginTop:"-5px",marginRight:"-5px",marginLeft:"-5px",zIndex:"9999",borderBottom:"none"},oi=({request:t,requestSnippetsSelectors:e,getComponent:r})=>{const n=(0,u.useRef)(null),a=r("ArrowUpIcon"),o=r("ArrowDownIcon"),p=r("SyntaxHighlighter",!0),[c,d]=(0,u.useState)(e.getSnippetGenerators()?.keySeq().first()),[E,x]=(0,u.useState)(e?.getDefaultExpanded()),k=e.getSnippetGenerators(),P=k.get(c),R=P.get("fn")(t),L=()=>{x(!E)},V=J=>J===c?pu:qd,Q=J=>{const{target:re,deltaY:me}=J,{scrollHeight:le,offsetHeight:ve,scrollTop:be}=re;le>ve&&(be===0&&me<0||ve+be>=le&&me>0)&&J.preventDefault()};return(0,u.useEffect)((()=>{}),[]),(0,u.useEffect)((()=>{const J=Array.from(n.current.childNodes).filter((re=>!!re.nodeType&&re.classList?.contains("curl-command")));return J.forEach((re=>re.addEventListener("mousewheel",Q,{passive:!1}))),()=>{J.forEach((re=>re.removeEventListener("mousewheel",Q)))}}),[t]),u.createElement("div",{className:"request-snippets",ref:n},u.createElement("div",{style:{width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"15px"}},u.createElement("h4",{onClick:()=>L(),style:{cursor:"pointer"}},"Snippets"),u.createElement("button",{onClick:()=>L(),style:{border:"none",background:"none"},title:E?"Collapse operation":"Expand operation"},E?u.createElement(o,{className:"arrow",width:"10",height:"10"}):u.createElement(a,{className:"arrow",width:"10",height:"10"}))),E&&u.createElement("div",{className:"curl-command"},u.createElement("div",{style:{paddingLeft:"15px",paddingRight:"10px",width:"100%",display:"flex"}},k.entrySeq().map((([J,re])=>u.createElement("div",{className:Xr()("btn",{active:J===c}),style:V(J),key:J,onClick:()=>(me=>{c!==me&&d(me)})(J)},u.createElement("h4",{style:J===c?{color:"white"}:{}},re.get("title")))))),u.createElement("div",{className:"copy-to-clipboard",title:uu,"aria-label":uu},u.createElement(cu.CopyToClipboard,{text:R},u.createElement("button",{"aria-label":uu,title:uu,type:"button"}))),u.createElement("div",null,u.createElement(p,{language:P.get("syntax"),className:"curl microlight",renderPlainText:({children:J,PlainTextViewer:re})=>u.createElement(re,{className:"curl"},J)},R))))},Ol=()=>({components:{RequestSnippets:oi},fn:{requestSnippetGenerator_curl_bash:mp,requestSnippetGenerator_curl_cmd:rg,requestSnippetGenerator_curl_powershell:fp},statePlugins:{requestSnippets:{selectors:T}}});class gp extends u.Component{static defaultProps={collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:H.default.List([])};constructor(e,r){super(e,r);let{expanded:n,collapsedContent:a}=this.props;this.state={expanded:n,collapsedContent:a||gp.defaultProps.collapsedContent}}componentDidMount(){const{hideSelfOnExpand:e,expanded:r,modelName:n}=this.props;e&&r&&this.props.onToggle(n,r)}UNSAFE_componentWillReceiveProps(e){this.props.expanded!==e.expanded&&this.setState({expanded:e.expanded})}toggleCollapsed=()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})};onLoad=e=>{if(e&&this.props.layoutSelectors){const r=this.props.layoutSelectors.getScrollToKey();H.default.is(r,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,e.parentElement)}};render(){const{title:e,classes:r}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?u.createElement("span",{className:r||""},this.props.children):u.createElement("span",{className:r||"",ref:this.onLoad},u.createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},e&&u.createElement("span",{className:"pointer"},e),u.createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&u.createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}}const ag=({initialTab:t,isExecute:e,schema:r,example:n})=>{const a=(0,u.useMemo)((()=>({example:"example",model:"model"})),[]),o=(0,u.useMemo)((()=>Object.keys(a)),[a]).includes(t)&&r&&!e?t:a.example,p=(x=>{const k=(0,u.useRef)();return(0,u.useEffect)((()=>{k.current=x})),k.current})(e),[c,d]=(0,u.useState)(o),E=(0,u.useCallback)((x=>{d(x.target.dataset.name)}),[]);return(0,u.useEffect)((()=>{p&&!e&&n&&d(a.example)}),[p,e,n]),{activeTab:c,onTabChange:E,tabs:a}},Ps=({schema:t,example:e,isExecute:r=!1,specPath:n,includeWriteOnly:a=!1,includeReadOnly:o=!1,getComponent:p,getConfigs:c,specSelectors:d})=>{const{defaultModelRendering:E,defaultModelExpandDepth:x}=c(),k=p("ModelWrapper"),P=p("HighlightCode",!0),R=Fn()(5).toString("base64"),L=Fn()(5).toString("base64"),V=Fn()(5).toString("base64"),Q=Fn()(5).toString("base64"),J=d.isOAS3(),{activeTab:re,tabs:me,onTabChange:le}=ag({initialTab:E,isExecute:r,schema:t,example:e});return u.createElement("div",{className:"model-example"},u.createElement("ul",{className:"tab",role:"tablist"},u.createElement("li",{className:Xr()("tabitem",{active:re===me.example}),role:"presentation"},u.createElement("button",{"aria-controls":L,"aria-selected":re===me.example,className:"tablinks","data-name":"example",id:R,onClick:le,role:"tab"},r?"Edit Value":"Example Value")),t&&u.createElement("li",{className:Xr()("tabitem",{active:re===me.model}),role:"presentation"},u.createElement("button",{"aria-controls":Q,"aria-selected":re===me.model,className:Xr()("tablinks",{inactive:r}),"data-name":"model",id:V,onClick:le,role:"tab"},J?"Schema":"Model"))),re===me.example&&u.createElement("div",{"aria-hidden":re!==me.example,"aria-labelledby":R,"data-name":"examplePanel",id:L,role:"tabpanel",tabIndex:"0"},e||u.createElement(P,null,"(no example available")),re===me.model&&u.createElement("div",{className:"model-container","aria-hidden":re===me.example,"aria-labelledby":V,"data-name":"modelPanel",id:Q,role:"tabpanel",tabIndex:"0"},u.createElement(k,{schema:t,getComponent:p,getConfigs:c,specSelectors:d,expandDepth:x,specPath:n,includeReadOnly:o,includeWriteOnly:a})))};class kl extends u.Component{onToggle=(e,r)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,r)};render(){let{getComponent:e,getConfigs:r}=this.props;const n=e("Model");let a;return this.props.layoutSelectors&&(a=this.props.layoutSelectors.isShown(this.props.fullPath)),u.createElement("div",{className:"model-box"},u.createElement(n,Yr()({},this.props,{getConfigs:r,expanded:a,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}function yp(t){return yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yp(t)}function og(t,e){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=(function(p,c){return function(d){if(typeof d=="string")return(0,H.is)(c[d],p[d]);if(Array.isArray(d))return(0,H.is)(ki(c,d),ki(p,d));throw new TypeError("Invalid key: expected Array or string: "+d)}})(e,r),a=t||Object.keys((function(p){for(var c=1;c1&&arguments[1]!==void 0?arguments[1]:{};return!du(this.updateOnProps,this.props,n,"updateOnProps")||!du(this.updateOnStates,this.state,a,"updateOnStates")}}]),e})(u.Component);var Al,zd=Be(5556),va=Be.n(zd);function gh(){return gh=Object.assign?Object.assign.bind():function(t){for(var e=1;eu.createElement("svg",gh({xmlns:"http://www.w3.org/2000/svg",width:200,height:200,className:"rolling-load_svg__lds-rolling",preserveAspectRatio:"xMidYMid",style:{backgroundImage:"none",backgroundPosition:"initial initial",backgroundRepeat:"initial initial"},viewBox:"0 0 100 100"},t),Al||(Al=u.createElement("circle",{cx:50,cy:50,r:35,fill:"none",stroke:"#555",strokeDasharray:"164.93361431346415 56.97787143782138",strokeWidth:10},u.createElement("animateTransform",{attributeName:"transform",begin:"0s",calcMode:"linear",dur:"1s",keyTimes:"0;1",repeatCount:"indefinite",type:"rotate",values:"0 50 50;360 50 50"})))),Wn=t=>{const e=t.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(e)}catch{return e}};class vh extends bp{static propTypes={schema:El().map.isRequired,getComponent:va().func.isRequired,getConfigs:va().func.isRequired,specSelectors:va().object.isRequired,name:va().string,displayName:va().string,isRef:va().bool,required:va().bool,expandDepth:va().number,depth:va().number,specPath:El().list.isRequired,includeReadOnly:va().bool,includeWriteOnly:va().bool};getModelName=e=>e.indexOf("#/definitions/")!==-1?Wn(e.replace(/^.*#\/definitions\//,"")):e.indexOf("#/components/schemas/")!==-1?Wn(e.replace(/^.*#\/components\/schemas\//,"")):void 0;getRefSchema=e=>{let{specSelectors:r}=this.props;return r.findDefinition(e)};render(){let{getComponent:e,getConfigs:r,specSelectors:n,schema:a,required:o,name:p,isRef:c,specPath:d,displayName:E,includeReadOnly:x,includeWriteOnly:k}=this.props;const P=e("ObjectModel"),R=e("ArrayModel"),L=e("PrimitiveModel");let V="object",Q=a&&a.get("$$ref"),J=a&&a.get("$ref");if(!p&&Q&&(p=this.getModelName(Q)),J){const me=this.getModelName(J),le=this.getRefSchema(me);H.Map.isMap(le)?(a=le.mergeDeep(a),Q||(a=a.set("$$ref",J),Q=J)):H.Map.isMap(a)&&a.size===1&&(a=null,p=J)}if(!a)return u.createElement("strong",{className:"model model-title"},u.createElement("span",{className:"model-title__text"},E||p),!J&&u.createElement(yh,{height:"20px",width:"20px"}));const re=n.isOAS3()&&a.get("deprecated");switch(c=c!==void 0?c:!!Q,V=a&&a.get("type")||V,V){case"object":return u.createElement(P,Yr()({className:"object"},this.props,{specPath:d,getConfigs:r,schema:a,name:p,deprecated:re,isRef:c,includeReadOnly:x,includeWriteOnly:k}));case"array":return u.createElement(R,Yr()({className:"array"},this.props,{getConfigs:r,schema:a,name:p,deprecated:re,required:o,includeReadOnly:x,includeWriteOnly:k}));default:return u.createElement(L,Yr()({},this.props,{getComponent:e,getConfigs:r,schema:a,name:p,deprecated:re,required:o}))}}}class Vd extends u.Component{getSchemaBasePath=()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"];getCollapsedContent=()=>" ";handleToggle=(e,r)=>{const{layoutActions:n}=this.props;n.show([...this.getSchemaBasePath(),e],r),r&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),e])};onLoadModels=e=>{e&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),e)};onLoadModel=e=>{if(e){const r=e.getAttribute("data-name");this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),r],e)}};render(){let{specSelectors:e,getComponent:r,layoutSelectors:n,layoutActions:a,getConfigs:o}=this.props,p=e.definitions(),{docExpansion:c,defaultModelsExpandDepth:d}=o();if(!p.size||d<0)return null;const E=this.getSchemaBasePath();let x=n.isShown(E,d>0&&c!=="none");const k=e.isOAS3(),P=r("ModelWrapper"),R=r("Collapse"),L=r("ModelCollapse"),V=r("JumpToPath",!0),Q=r("ArrowUpIcon"),J=r("ArrowDownIcon");return u.createElement("section",{className:x?"models is-open":"models",ref:this.onLoadModels},u.createElement("h4",null,u.createElement("button",{"aria-expanded":x,className:"models-control",onClick:()=>a.show(E,!x)},u.createElement("span",null,k?"Schemas":"Models"),x?u.createElement(Q,null):u.createElement(J,null))),u.createElement(R,{isOpened:x},p.entrySeq().map((([re])=>{const me=[...E,re],le=H.default.List(me),ve=e.specResolvedSubtree(me),be=e.specJson().getIn(me),ce=H.Map.isMap(ve)?ve:H.default.Map(),_e=H.Map.isMap(be)?be:H.default.Map(),Ae=ce.get("title")||_e.get("title")||re,xe=n.isShown(me,!1);xe&&ce.size===0&&_e.size>0&&this.props.specActions.requestResolvedSubtree(me);const Oe=u.createElement(P,{name:re,expandDepth:d,schema:ce||H.default.Map(),displayName:Ae,fullPath:me,specPath:le,getComponent:r,specSelectors:e,getConfigs:o,layoutSelectors:n,layoutActions:a,includeReadOnly:!0,includeWriteOnly:!0}),je=u.createElement("span",{className:"model-box"},u.createElement("strong",{className:"model model-title"},Ae));return u.createElement("div",{id:`model-${re}`,className:"model-container",key:`models-section-${re}`,"data-name":re,ref:this.onLoadModel},u.createElement("span",{className:"models-jump-to-path"},u.createElement(V,{path:le})),u.createElement(L,{classes:"model-box",collapsedContent:this.getCollapsedContent(re),onToggle:this.handleToggle,title:je,displayName:Ae,modelName:re,specPath:le,layoutSelectors:n,layoutActions:a,hideSelfOnExpand:!0,expanded:d>0&&xe},Oe))})).toArray()))}}const Jd=({value:t,getComponent:e})=>{let r=e("ModelCollapse"),n=u.createElement("span",null,"Array [ ",t.count()," ]");return u.createElement("span",{className:"prop-enum"},"Enum:",u.createElement("br",null),u.createElement(r,{collapsedContent:n},"[ ",t.map(String).join(", ")," ]"))};function fu(t){return t.match(/^(?:[a-z]+:)?\/\//i)}function Wd(t,e){return t?fu(t)?(function(n){return n.match(/^\/\//i)?`${window.location.protocol}${n}`:n})(t):new URL(t,e).href:e}function ba(t,e,{selectedServer:r=""}={}){try{return(function(a,o,{selectedServer:p=""}={}){if(!a)return;if(fu(a))return a;const c=Wd(p,o);return fu(c)?new URL(a,c).href:new URL(a,window.location.href).href})(t,e,{selectedServer:r})}catch{return}}function Dr(t){if(typeof t!="string"||t.trim()==="")return"";const e=t.trim(),r="about:blank";try{const n=`https://base${String(Math.random()).slice(2)}`,a=new URL(e,n),o=a.protocol.slice(0,-1);return["javascript","data","vbscript"].includes(o.toLowerCase())?r:a.origin===n?e.startsWith("/")?`${a.pathname}${a.search}${a.hash}`:e.startsWith("./")||e.startsWith("../")?`${e.match(/^(\.\.?\/)+/)[0]}${a.pathname.substring(1)}${a.search}${a.hash}`:`${a.pathname.substring(1)}${a.search}${a.hash}`:String(a)}catch{return r}}class ka extends u.Component{render(){let{schema:e,name:r,displayName:n,isRef:a,getComponent:o,getConfigs:p,depth:c,onToggle:d,expanded:E,specPath:x,...k}=this.props,{specSelectors:P,expandDepth:R,includeReadOnly:L,includeWriteOnly:V}=k;const{isOAS3:Q}=P,J=c>2||c===2&&x.last()!=="items";if(!e)return null;const{showExtensions:re}=p(),me=re?gr(e):(0,H.List)();let le=e.get("description"),ve=e.get("properties"),be=e.get("additionalProperties"),ce=e.get("title")||n||r,_e=e.get("required"),Ae=e.filter(((pr,W)=>["maxProperties","minProperties","nullable","example"].indexOf(W)!==-1)),xe=e.get("deprecated"),Oe=e.getIn(["externalDocs","url"]),je=e.getIn(["externalDocs","description"]);const G=o("JumpToPath",!0),de=o("Markdown",!0),Ne=o("Model"),Ye=o("ModelCollapse"),ht=o("Property"),Ct=o("Link"),_t=o("ModelExtensions"),qt=()=>u.createElement("span",{className:"model-jump-to-path"},u.createElement(G,{path:x})),It=u.createElement("span",null,u.createElement("span",null,"{"),"...",u.createElement("span",null,"}"),a?u.createElement(qt,null):""),Ot=P.isOAS3()?e.get("allOf"):null,et=P.isOAS3()?e.get("anyOf"):null,Dt=P.isOAS3()?e.get("oneOf"):null,or=P.isOAS3()?e.get("not"):null,Ut=ce&&u.createElement("strong",{className:"model-title"},a&&e.get("$$ref")&&u.createElement("span",{className:Xr()("model-hint",{"model-hint--embedded":J})},e.get("$$ref")),u.createElement("span",{className:"model-title__text"},ce));return u.createElement("span",{className:"model"},u.createElement(Ye,{modelName:r,title:Ut,onToggle:d,expanded:!!E||c<=R,collapsedContent:It},u.createElement("span",{className:"brace-open object"},"{"),a?u.createElement(qt,null):null,u.createElement("span",{className:"inner-object"},u.createElement("table",{className:"model"},u.createElement("tbody",null,le?u.createElement("tr",{className:"description"},u.createElement("td",null,"description:"),u.createElement("td",null,u.createElement(de,{source:le}))):null,Oe&&u.createElement("tr",{className:"external-docs"},u.createElement("td",null,"externalDocs:"),u.createElement("td",null,u.createElement(Ct,{target:"_blank",href:Dr(Oe)},je||Oe))),xe?u.createElement("tr",{className:"property"},u.createElement("td",null,"deprecated:"),u.createElement("td",null,"true")):null,ve&&ve.size?ve.entrySeq().filter((([,pr])=>(!pr.get("readOnly")||L)&&(!pr.get("writeOnly")||V))).map((([pr,W])=>{let $e=Q()&&W.get("deprecated"),Je=H.List.isList(_e)&&_e.contains(pr),Ft=["property-row"];return $e&&Ft.push("deprecated"),Je&&Ft.push("required"),u.createElement("tr",{key:pr,className:Ft.join(" ")},u.createElement("td",null,pr,Je&&u.createElement("span",{className:"star"},"*")),u.createElement("td",null,u.createElement(Ne,Yr()({key:`object-${r}-${pr}_${W}`},k,{required:Je,getComponent:o,specPath:x.push("properties",pr),getConfigs:p,schema:W,depth:c+1}))))})).toArray():null,me.size===0?null:u.createElement(u.Fragment,null,u.createElement("tr",null,u.createElement("td",null," ")),u.createElement(_t,{extensions:me,propClass:"extension"})),be&&be.size?u.createElement("tr",null,u.createElement("td",null,"< * >:"),u.createElement("td",null,u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("additionalProperties"),getConfigs:p,schema:be,depth:c+1})))):null,Ot?u.createElement("tr",null,u.createElement("td",null,"allOf ->"),u.createElement("td",null,Ot.map(((pr,W)=>u.createElement("div",{key:W},u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("allOf",W),getConfigs:p,schema:pr,depth:c+1}))))))):null,et?u.createElement("tr",null,u.createElement("td",null,"anyOf ->"),u.createElement("td",null,et.map(((pr,W)=>u.createElement("div",{key:W},u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("anyOf",W),getConfigs:p,schema:pr,depth:c+1}))))))):null,Dt?u.createElement("tr",null,u.createElement("td",null,"oneOf ->"),u.createElement("td",null,Dt.map(((pr,W)=>u.createElement("div",{key:W},u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("oneOf",W),getConfigs:p,schema:pr,depth:c+1}))))))):null,or?u.createElement("tr",null,u.createElement("td",null,"not ->"),u.createElement("td",null,u.createElement("div",null,u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("not"),getConfigs:p,schema:or,depth:c+1}))))):null))),u.createElement("span",{className:"brace-close"},"}")),Ae.size?Ae.entrySeq().map((([pr,W])=>u.createElement(ht,{key:`${pr}-${W}`,propKey:pr,propVal:W,propClass:"property"}))):null)}}class Aa extends u.Component{render(){let{getComponent:e,getConfigs:r,schema:n,depth:a,expandDepth:o,name:p,displayName:c,specPath:d}=this.props,E=n.get("description"),x=n.get("items"),k=n.get("title")||c||p,P=n.filter(((ve,be)=>["type","items","description","$$ref","externalDocs"].indexOf(be)===-1)),R=n.getIn(["externalDocs","url"]),L=n.getIn(["externalDocs","description"]);const V=e("Markdown",!0),Q=e("ModelCollapse"),J=e("Model"),re=e("Property"),me=e("Link"),le=k&&u.createElement("strong",{className:"model-title"},u.createElement("span",{className:"model-title__text"},k));return u.createElement("span",{className:"model"},u.createElement(Q,{title:le,expanded:a<=o,collapsedContent:"[...]"},"[",P.size?P.entrySeq().map((([ve,be])=>u.createElement(re,{key:`${ve}-${be}`,propKey:ve,propVal:be,propClass:"property"}))):null,E?u.createElement(V,{source:E}):P.size?u.createElement("div",{className:"markdown"}):null,R&&u.createElement("div",{className:"external-docs"},u.createElement(me,{target:"_blank",href:Dr(R)},L||R)),u.createElement("span",null,u.createElement(J,Yr()({},this.props,{getConfigs:r,specPath:d.push("items"),name:null,schema:x,required:!1,depth:a+1}))),"]"))}}const mc="property primitive";class wp extends u.Component{render(){let{schema:e,getComponent:r,getConfigs:n,name:a,displayName:o,depth:p,expandDepth:c}=this.props;const{showExtensions:d}=n();if(!e||!e.get)return u.createElement("div",null);let E=e.get("type"),x=e.get("format"),k=e.get("xml"),P=e.get("enum"),R=e.get("title")||o||a,L=e.get("description");const V=gr(e);let Q=e.filter(((xe,Oe)=>["enum","type","format","description","$$ref","externalDocs"].indexOf(Oe)===-1)).filterNot(((xe,Oe)=>V.has(Oe))),J=e.getIn(["externalDocs","url"]),re=e.getIn(["externalDocs","description"]);const me=r("Markdown",!0),le=r("EnumModel"),ve=r("Property"),be=r("ModelCollapse"),ce=r("Link"),_e=r("ModelExtensions"),Ae=R&&u.createElement("strong",{className:"model-title"},u.createElement("span",{className:"model-title__text"},R));return u.createElement("span",{className:"model"},u.createElement(be,{title:Ae,expanded:p<=c,collapsedContent:"[...]"},u.createElement("span",{className:"prop"},a&&p>1&&u.createElement("span",{className:"prop-name"},R),u.createElement("span",{className:"prop-type"},E),x&&u.createElement("span",{className:"prop-format"},"($",x,")"),Q.size?Q.entrySeq().map((([xe,Oe])=>u.createElement(ve,{key:`${xe}-${Oe}`,propKey:xe,propVal:Oe,propClass:mc}))):null,d&&V.size>0?u.createElement(_e,{extensions:V,propClass:`${mc} extension`}):null,L?u.createElement(me,{source:L}):null,J&&u.createElement("div",{className:"external-docs"},u.createElement(ce,{target:"_blank",href:Dr(J)},re||J)),k&&k.size?u.createElement("span",null,u.createElement("br",null),u.createElement("span",{className:mc},"xml:"),k.entrySeq().map((([xe,Oe])=>u.createElement("span",{key:`${xe}-${Oe}`,className:mc},u.createElement("br",null),"   ",xe,": ",String(Oe)))).toArray()):null,P&&u.createElement(le,{value:P,getComponent:r}))))}}class Ep extends u.Component{UNSAFE_componentWillMount(){let{schemes:e}=this.props;this.setScheme(e.first())}UNSAFE_componentWillReceiveProps(e){this.props.currentScheme&&e.schemes.includes(this.props.currentScheme)||this.setScheme(e.schemes.first())}onChange=e=>{this.setScheme(e.target.value)};setScheme=e=>{let{path:r,method:n,specActions:a}=this.props;a.setScheme(e,r,n)};render(){let{schemes:e,currentScheme:r}=this.props;return u.createElement("label",{htmlFor:"schemes"},u.createElement("span",{className:"schemes-title"},"Schemes"),u.createElement("select",{onChange:this.onChange,value:r,id:"schemes"},e.valueSeq().map((n=>u.createElement("option",{value:n,key:n},n))).toArray()))}}class s0 extends u.Component{render(){const{specActions:e,specSelectors:r,getComponent:n}=this.props,a=r.operationScheme(),o=r.schemes(),p=n("schemes");return o&&o.size?u.createElement(p,{currentScheme:a,schemes:o,specActions:e}):null}}var Qa=Be(24677),bh=Be.n(Qa);const Is={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,H.List)()};class Hd extends u.Component{static defaultProps=Is;componentDidMount(){const{dispatchInitialValue:e,value:r,onChange:n}=this.props;e?n(r):e===!1&&n("")}render(){let{schema:e,errors:r,value:n,onChange:a,getComponent:o,fn:p,disabled:c}=this.props;const d=e&&e.get?e.get("format"):null,E=e&&e.get?e.get("type"):null,x=p.getSchemaObjectType(e),k=p.isFileUploadIntended(e);let P=L=>o(L,!1,{failSilently:!0}),R=E?P(d?`JsonSchema_${E}_${d}`:`JsonSchema_${E}`):o("JsonSchema_string");return k||!H.List.isList(E)||x!=="array"&&x!=="object"||(R=o("JsonSchema_object")),R||(R=o("JsonSchema_string")),u.createElement(R,Yr()({},this.props,{errors:r,fn:p,getComponent:o,value:n,onChange:a,schema:e,disabled:c}))}}class Xi extends u.Component{static defaultProps=Is;onChange=e=>{const r=this.props.schema&&this.props.schema.get("type")==="file"?e.target.files[0]:e.target.value;this.props.onChange(r,this.props.keyName)};onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:r,schema:n,errors:a,required:o,description:p,disabled:c}=this.props;const d=n&&n.get?n.get("enum"):null,E=n&&n.get?n.get("format"):null,x=n&&n.get?n.get("type"):null,k=n&&n.get?n.get("in"):null;if(r?(Cr(r)||typeof r=="object")&&(r=Gr(r)):r="",a=a.toJS?a.toJS():[],d){const L=e("Select");return u.createElement(L,{className:a.length?"invalid":"",title:a.length?a:"",allowedValues:[...d],value:r,allowEmptyValue:!o,disabled:c,onChange:this.onEnumChange})}const P=c||k&&k==="formData"&&!("FormData"in window),R=e("Input");return x&&x==="file"?u.createElement(R,{type:"file",className:a.length?"invalid":"",title:a.length?a:"",onChange:this.onChange,disabled:P}):u.createElement(bh(),{type:E&&E==="password"?"password":"text",className:a.length?"invalid":"",title:a.length?a:"",value:r,minLength:0,debounceTimeout:350,placeholder:p,onChange:this.onChange,disabled:P})}}class ii extends u.PureComponent{static defaultProps=Is;constructor(e,r){super(e,r),this.state={value:Eh(e.value),schema:e.schema}}UNSAFE_componentWillReceiveProps(e){const r=Eh(e.value);r!==this.state.value&&this.setState({value:r}),e.schema!==this.state.schema&&this.setState({schema:e.schema})}onChange=()=>{this.props.onChange(this.state.value)};onItemChange=(e,r)=>{this.setState((({value:n})=>({value:n.set(r,e)})),this.onChange)};removeItem=e=>{this.setState((({value:r})=>({value:r.delete(e)})),this.onChange)};addItem=()=>{const{fn:e}=this.props;let r=Eh(this.state.value);this.setState((()=>({value:r.push(e.getSampleSchema(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))})),this.onChange)};onEnumChange=e=>{this.setState((()=>({value:e})),this.onChange)};render(){let{getComponent:e,required:r,schema:n,errors:a,fn:o,disabled:p}=this.props;a=a.toJS?a.toJS():Array.isArray(a)?a:[];const c=a.filter((ve=>typeof ve=="string")),d=a.filter((ve=>ve.needRemove!==void 0)).map((ve=>ve.error)),E=this.state.value,x=!!(E&&E.count&&E.count()>0),k=n.getIn(["items","enum"]),P=n.get("items"),R=o.getSchemaObjectType(P),L=o.getSchemaObjectTypeLabel(P),V=n.getIn(["items","format"]),Q=n.get("items");let J,re=!1,me=R==="file"||R==="string"&&V==="binary";if(R&&V?J=e(`JsonSchema_${R}_${V}`):R!=="boolean"&&R!=="array"&&R!=="object"||(J=e(`JsonSchema_${R}`)),!H.List.isList(P?.get("type"))||R!=="array"&&R!=="object"||(J=e("JsonSchema_object")),J||me||(re=!0),k){const ve=e("Select");return u.createElement(ve,{className:a.length?"invalid":"",title:a.length?a:"",multiple:!0,value:E,disabled:p,allowedValues:k,allowEmptyValue:!r,onChange:this.onEnumChange})}const le=e("Button");return u.createElement("div",{className:"json-schema-array"},x?E.map(((ve,be)=>{const ce=(0,H.fromJS)([...a.filter((_e=>_e.index===be)).map((_e=>_e.error))]);return u.createElement("div",{key:be,className:"json-schema-form-item"},me?u.createElement(wh,{value:ve,onChange:_e=>this.onItemChange(_e,be),disabled:p,errors:ce,getComponent:e}):re?u.createElement(mu,{value:ve,onChange:_e=>this.onItemChange(_e,be),disabled:p,errors:ce}):u.createElement(J,Yr()({},this.props,{value:ve,onChange:_e=>this.onItemChange(_e,be),disabled:p,errors:ce,schema:Q,getComponent:e,fn:o})),p?null:u.createElement(le,{className:`btn btn-sm json-schema-form-item-remove ${d.length?"invalid":null}`,title:d.length?d:"",onClick:()=>this.removeItem(be)}," - "))})):null,p?null:u.createElement(le,{className:`btn btn-sm json-schema-form-item-add ${c.length?"invalid":null}`,title:c.length?c:"",onClick:this.addItem},"Add ",L," item"))}}class mu extends u.Component{static defaultProps=Is;onChange=e=>{const r=e.target.value;this.props.onChange(r,this.props.keyName)};render(){let{value:e,errors:r,description:n,disabled:a}=this.props;return e?(Cr(e)||typeof e=="object")&&(e=Gr(e)):e="",r=r.toJS?r.toJS():[],u.createElement(bh(),{type:"text",className:r.length?"invalid":"",title:r.length?r:"",value:e,minLength:0,debounceTimeout:350,placeholder:n,onChange:this.onChange,disabled:a})}}class wh extends u.Component{static defaultProps=Is;onFileChange=e=>{const r=e.target.files[0];this.props.onChange(r,this.props.keyName)};render(){let{getComponent:e,errors:r,disabled:n}=this.props;const a=e("Input"),o=n||!("FormData"in window);return u.createElement(a,{type:"file",className:r.length?"invalid":"",title:r.length?r:"",onChange:this.onFileChange,disabled:o})}}class Kd extends u.Component{static defaultProps=Is;onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:r,errors:n,schema:a,required:o,disabled:p}=this.props;n=n.toJS?n.toJS():[];let c=a&&a.get?a.get("enum"):null,d=!c||!o,E=!c&&["true","false"];const x=e("Select");return u.createElement(x,{className:n.length?"invalid":"",title:n.length?n:"",value:String(r),disabled:p,allowedValues:c?[...c]:E,allowEmptyValue:d,onChange:this.onEnumChange})}}const ig=t=>t.map((e=>{const r=e.propKey!==void 0?e.propKey:e.index;let n=typeof e=="string"?e:typeof e.error=="string"?e.error:null;if(!r&&n)return n;let a=e.error,o=`/${e.propKey}`;for(;typeof a=="object";){const p=a.propKey!==void 0?a.propKey:a.index;if(p===void 0||(o+=`/${p}`,!a.error))break;a=a.error}return`${o}: ${a}`}));class sg extends u.PureComponent{constructor(){super()}static defaultProps=Is;onChange=e=>{this.props.onChange(e)};handleOnChange=e=>{const r=e.target.value;this.onChange(r)};render(){let{getComponent:e,value:r,errors:n,disabled:a}=this.props;const o=e("TextArea");return n=n.toJS?n.toJS():Array.isArray(n)?n:[],u.createElement("div",null,u.createElement(o,{className:Xr()({invalid:n.length}),title:n.length?ig(n).join(", "):"",value:Gr(r),disabled:a,onChange:this.handleOnChange}))}}function Eh(t){return H.List.isList(t)?t:Array.isArray(t)?(0,H.fromJS)(t):(0,H.List)()}const lg=({extensions:t,propClass:e=""})=>t.entrySeq().map((([r,n])=>{const a=Mr(n)??null;return u.createElement("tr",{key:r,className:e},u.createElement("td",null,r),u.createElement("td",null,JSON.stringify(a)))})).toArray();var cg=Be(11331),Ai=Be.n(cg);const ug=(t,e)=>{const r=H.Map.isMap(t);if(!r&&!Ai()(t))return!1;const n=r?t.get("type"):t.type;return e===n||Array.isArray(e)&&e.includes(n)},Gd=(t,e=new WeakSet)=>{if(t==null||e.has(t))return"any";e.add(t);const{type:r,items:n}=t;return Object.hasOwn(t,"items")?n?`array<${Gd(n,e)}>`:"array":r},Sp=t=>Gd(Mr(t)),Yd=()=>({components:{modelExample:Ps,ModelWrapper:kl,ModelCollapse:gp,Model:vh,Models:Vd,EnumModel:Jd,ObjectModel:ka,ArrayModel:Aa,PrimitiveModel:wp,ModelExtensions:lg,schemes:Ep,SchemesContainer:s0,...I},fn:{hasSchemaType:ug,getSchemaObjectTypeLabel:Sp}});var Sh=Be(19123),xp=Be.n(Sh),pg=Be(41859),xh=Be.n(pg),hg=Be(62193),Ci=Be.n(hg);const _h=t=>e=>Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every(((r,n)=>r===e[n])),dg=(...t)=>t;class Xd extends Map{delete(e){const r=Array.from(this.keys()).find(_h(e));return super.delete(r)}get(e){const r=Array.from(this.keys()).find(_h(e));return super.get(r)}has(e){return Array.from(this.keys()).findIndex(_h(e))!==-1}}const gu=(t,e=dg)=>{const{Cache:r}=Pt();Pt().Cache=Xd;const n=Pt()(t,e);return Pt().Cache=r,n},Qd={string:t=>t.pattern?(e=>{try{const r=new RegExp("(?<=(?"user@example.com","string_date-time":()=>new Date().toISOString(),string_date:()=>new Date().toISOString().substring(0,10),string_time:()=>new Date().toISOString().substring(11),string_uuid:()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",string_hostname:()=>"example.com",string_ipv4:()=>"198.51.100.42",string_ipv6:()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",number:()=>0,number_float:()=>0,integer:()=>0,boolean:t=>typeof t.default!="boolean"||t.default},Zd=t=>{t=Nn(t);let{type:e,format:r}=t,n=Qd[`${e}_${r}`]||Qd[e];return ia(n)?n(t):"Unknown Type: "+t.type},l0=t=>Vr(t,"$$ref",(e=>typeof e=="string"&&e.indexOf("#")>-1)),ef=["maxProperties","minProperties"],fg=["minItems","maxItems"],mg=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],gg=["minLength","maxLength"],gc=(t,e,r={})=>{const n={...t};if(["example","default","enum","xml","type",...ef,...fg,...mg,...gg].forEach((a=>(o=>{n[o]===void 0&&e[o]!==void 0&&(n[o]=e[o])})(a))),e.required!==void 0&&Array.isArray(e.required)&&(n.required!==void 0&&n.required.length||(n.required=[]),e.required.forEach((a=>{n.required.includes(a)||n.required.push(a)}))),e.properties){n.properties||(n.properties={});let a=Nn(e.properties);for(let o in a)Object.prototype.hasOwnProperty.call(a,o)&&(a[o]&&a[o].deprecated||a[o]&&a[o].readOnly&&!r.includeReadOnly||a[o]&&a[o].writeOnly&&!r.includeWriteOnly||n.properties[o]||(n.properties[o]=a[o],!e.required&&Array.isArray(e.required)&&e.required.indexOf(o)!==-1&&(n.required?n.required.push(o):n.required=[o])))}return e.items&&(n.items||(n.items={}),n.items=gc(n.items,e.items,r)),n},Yo=(t,e={},r=void 0,n=!1)=>{t&&ia(t.toJS)&&(t=t.toJS());let a=r!==void 0||t&&t.example!==void 0||t&&t.default!==void 0;const o=!a&&t&&t.oneOf&&t.oneOf.length>0,p=!a&&t&&t.anyOf&&t.anyOf.length>0;if(!a&&(o||p)){const G=Nn(o?t.oneOf[0]:t.anyOf[0]);if(!(t=gc(t,G,e)).xml&&G.xml&&(t.xml=G.xml),t.example!==void 0&&G.example!==void 0)a=!0;else if(G.properties){t.properties||(t.properties={});let de=Nn(G.properties);for(let Ne in de)Object.prototype.hasOwnProperty.call(de,Ne)&&(de[Ne]&&de[Ne].deprecated||de[Ne]&&de[Ne].readOnly&&!e.includeReadOnly||de[Ne]&&de[Ne].writeOnly&&!e.includeWriteOnly||t.properties[Ne]||(t.properties[Ne]=de[Ne],!G.required&&Array.isArray(G.required)&&G.required.indexOf(Ne)!==-1&&(t.required?t.required.push(Ne):t.required=[Ne])))}}const c={};let{xml:d,type:E,example:x,properties:k,additionalProperties:P,items:R}=t||{},{includeReadOnly:L,includeWriteOnly:V}=e;d=d||{};let Q,{name:J,prefix:re,namespace:me}=d,le={};n&&(J=J||"notagname",Q=(re?re+":":"")+J,me)&&(c[re?"xmlns:"+re:"xmlns"]=me),n&&(le[Q]=[]);const ve=G=>G.some((de=>Object.prototype.hasOwnProperty.call(t,de)));t&&!E&&(k||P||ve(ef)?E="object":R||ve(fg)?E="array":ve(mg)?(E="number",t.type="number"):a||t.enum||(E="string",t.type="string"));const be=G=>{if(t?.maxItems!=null&&(G=G.slice(0,t?.maxItems)),t?.minItems!=null){let de=0;for(;G.lengtht&&t.maxProperties!==null&&t.maxProperties!==void 0&&Ae>=t.maxProperties,Oe=G=>!t||t.maxProperties===null||t.maxProperties===void 0||!xe()&&(!(de=>!(t&&t.required&&t.required.length&&t.required.includes(de)))(G)||t.maxProperties-Ae-(()=>{if(!t||!t.required)return 0;let de=0;return n?t.required.forEach((Ne=>de+=le[Ne]===void 0?0:1)):t.required.forEach((Ne=>de+=le[Q]?.find((Ye=>Ye[Ne]!==void 0))===void 0?0:1)),t.required.length-de})()>0);if(_e=n?(G,de=void 0)=>{if(t&&ce[G]){if(ce[G].xml=ce[G].xml||{},ce[G].xml.attribute){const Ye=Array.isArray(ce[G].enum)?ce[G].enum[0]:void 0,ht=ce[G].example,Ct=ce[G].default;return void(c[ce[G].xml.name||G]=ht!==void 0?ht:Ct!==void 0?Ct:Ye!==void 0?Ye:Zd(ce[G]))}ce[G].xml.name=ce[G].xml.name||G}else ce[G]||P===!1||(ce[G]={xml:{name:G}});let Ne=Yo(t&&ce[G]||void 0,e,de,n);Oe(G)&&(Ae++,Array.isArray(Ne)?le[Q]=le[Q].concat(Ne):le[Q].push(Ne))}:(G,de)=>{if(Oe(G)){if(Object.prototype.hasOwnProperty.call(t,"discriminator")&&t.discriminator&&Object.prototype.hasOwnProperty.call(t.discriminator,"mapping")&&t.discriminator.mapping&&Object.prototype.hasOwnProperty.call(t,"$$ref")&&t.$$ref&&t.discriminator.propertyName===G){for(let Ne in t.discriminator.mapping)if(t.$$ref.search(t.discriminator.mapping[Ne])!==-1){le[G]=Ne;break}}else le[G]=Yo(ce[G],e,de,n);Ae++}},a){let G;if(G=l0(r!==void 0?r:x!==void 0?x:t.default),!n){if(typeof G=="number"&&E==="string")return`${G}`;if(typeof G!="string"||E==="string")return G;try{return JSON.parse(G)}catch{return G}}if(t||(E=Array.isArray(G)?"array":typeof G),E==="array"){if(!Array.isArray(G)){if(typeof G=="string")return G;G=[G]}const de=t?t.items:void 0;de&&(de.xml=de.xml||d||{},de.xml.name=de.xml.name||d.name);let Ne=G.map((Ye=>Yo(de,e,Ye,n)));return Ne=be(Ne),d.wrapped?(le[Q]=Ne,Ci()(c)||le[Q].push({_attr:c})):le=Ne,le}if(E==="object"){if(typeof G=="string")return G;for(let de in G)Object.prototype.hasOwnProperty.call(G,de)&&(t&&ce[de]&&ce[de].readOnly&&!L||t&&ce[de]&&ce[de].writeOnly&&!V||(t&&ce[de]&&ce[de].xml&&ce[de].xml.attribute?c[ce[de].xml.name||de]=G[de]:_e(de,G[de])));return Ci()(c)||le[Q].push({_attr:c}),le}return le[Q]=Ci()(c)?G:[{_attr:c},G],le}if(E==="object"){for(let G in ce)Object.prototype.hasOwnProperty.call(ce,G)&&(ce[G]&&ce[G].deprecated||ce[G]&&ce[G].readOnly&&!L||ce[G]&&ce[G].writeOnly&&!V||_e(G));if(n&&c&&le[Q].push({_attr:c}),xe())return le;if(P===!0)n?le[Q].push({additionalProp:"Anything can be here"}):le.additionalProp1={},Ae++;else if(P){const G=Nn(P),de=Yo(G,e,void 0,n);if(n&&G.xml&&G.xml.name&&G.xml.name!=="notagname")le[Q].push(de);else{const Ne=G["x-additionalPropertiesName"]||"additionalProp",Ye=t.minProperties!==null&&t.minProperties!==void 0&&AeYo(gc(de,R,e),e,void 0,n)));else if(Array.isArray(R.oneOf))G=R.oneOf.map((de=>Yo(gc(de,R,e),e,void 0,n)));else{if(!(!n||n&&d.wrapped))return Yo(R,e,void 0,n);G=[Yo(R,e,void 0,n)]}return G=be(G),n&&d.wrapped?(le[Q]=G,Ci()(c)||le[Q].push({_attr:c}),le):G}let je;if(t&&Array.isArray(t.enum))je=fn(t.enum)[0];else{if(!t)return;if(je=Zd(t),typeof je=="number"){let G=t.minimum;G!=null&&(t.exclusiveMinimum&&G++,je=G);let de=t.maximum;de!=null&&(t.exclusiveMaximum&&de--,je=de)}if(typeof je=="string"&&(t.maxLength!==null&&t.maxLength!==void 0&&(je=je.slice(0,t.maxLength)),t.minLength!==null&&t.minLength!==void 0)){let G=0;for(;je.length(t.schema&&(t=t.schema),t.properties&&(t.type="object"),t),tf=(t,e,r)=>{const n=Yo(t,e,r,!0);if(n)return typeof n=="string"?n:xp()(n,{declaration:!0,indent:" "})},rf=(t,e,r)=>Yo(t,e,r,!1),yg=(t,e,r)=>[t,JSON.stringify(e),JSON.stringify(r)],si=gu(tf,yg),Oh=gu(rf,yg),kh=t=>Mr(t)?.type??"string",vg=[{when:/json/,shouldStringifyTypes:["string"]}],bg=["object"],wg=t=>(e,r,n,a)=>{const{fn:o}=t(),p=o.memoizedSampleFromSchema(e,r,a),c=typeof p,d=vg.reduce(((E,x)=>x.when.test(n)?[...E,...x.shouldStringifyTypes]:E),bg);return Wr()(d,(E=>E===c))?JSON.stringify(p,null,2):p},nf=t=>(e,r,n,a)=>{const{fn:o}=t(),p=o.getJsonSampleSchema(e,r,n,a);let c;try{c=Pe.dump(Pe.load(p),{lineWidth:-1},{schema:Rt}),c[c.length-1]===` +`&&(c=c.slice(0,c.length-1))}catch(d){return console.error(d),"error: could not generate yaml example"}return c.replace(/\t/g," ")},yu=t=>(e,r,n)=>{const{fn:a}=t();if(e&&!e.xml&&(e.xml={}),e&&!e.xml.name){if(!e.$$ref&&(e.type||e.items||e.properties||e.additionalProperties))return` +`;if(e.$$ref){let o=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=o[1]}}return a.memoizedCreateXMLExample(e,r,n)},af=t=>(e,r="",n={},a=void 0)=>{const{fn:o}=t();return typeof a?.toJS=="function"&&(a=a.toJS()),/xml/.test(r)?(typeof e?.toJS=="function"&&(e=e.toJS()),o.getXmlSampleSchema(e,n,a)):/(yaml|yml)/.test(r)?o.getYamlSampleSchema(e,n,r,a):o.getJsonSampleSchema(e,n,r,a)},Ah=({getSystem:t})=>{const e=wg(t),r=nf(t),n=yu(t),a=af(t);return{fn:{jsonSchema5:{inferSchema:_p,sampleFromSchema:rf,sampleFromSchemaGeneric:Yo,createXMLExample:tf,memoizedSampleFromSchema:Oh,memoizedCreateXMLExample:si,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:a,mergeJsonSchema:gc},inferSchema:_p,sampleFromSchema:rf,sampleFromSchemaGeneric:Yo,createXMLExample:tf,memoizedSampleFromSchema:Oh,memoizedCreateXMLExample:si,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:a,mergeJsonSchema:gc,getSchemaObjectType:kh}}};var c0=Be(37334),vu=Be.n(c0);const Eg=["get","put","post","delete","options","head","patch","trace","query"],ji=t=>t||(0,H.Map)(),Sg=yr(ji,(t=>t.get("lastError"))),xg=yr(ji,(t=>t.get("url"))),u0=yr(ji,(t=>t.get("spec")||"")),Do=yr(ji,(t=>t.get("specSource")||"not-editor")),Za=yr(ji,(t=>t.get("json",(0,H.Map)()))),_g=yr(Za,(t=>t.toJS())),Og=yr(ji,(t=>t.get("resolved",(0,H.Map)()))),kg=(t,e)=>t.getIn(["resolvedSubtrees",...e],void 0),of=(t,e)=>H.Map.isMap(t)&&H.Map.isMap(e)?e.get("$$ref")?e:(0,H.OrderedMap)().mergeWith(of,t,e):e,li=yr(ji,(t=>(0,H.OrderedMap)().mergeWith(of,t.get("json"),t.get("resolvedSubtrees")))),eo=t=>Za(t),Ag=yr(eo,(()=>!1)),Ch=yr(eo,(t=>gf(t&&t.get("info")))),Cg=yr(eo,(t=>gf(t&&t.get("externalDocs")))),sf=yr(Ch,(t=>t&&t.get("version"))),jg=yr(sf,(t=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(t).slice(1))),lf=yr(li,(t=>t.get("paths"))),Pg=vu()(["get","put","post","delete","options","head","patch"]),jh=yr(lf,(t=>{let e=(0,H.List)();return!H.Map.isMap(t)||t.isEmpty()||t.forEach(((r,n)=>{if(!r||!r.forEach)return{};r.forEach(((a,o)=>{Eg.indexOf(o)<0||(e=e.push((0,H.fromJS)({path:n,method:o,operation:a,id:`${o}-${n}`,specPath:["paths",n,o]})))}))})),e})),Ph=yr(eo,(t=>(0,H.Set)(t.get("consumes")))),cf=yr(eo,(t=>(0,H.Set)(t.get("produces")))),uf=yr(eo,(t=>t.get("security",(0,H.List)()))),Nh=yr(eo,(t=>t.get("securityDefinitions"))),Ng=(t,e)=>{const r=t.getIn(["resolvedSubtrees","definitions",e],null),n=t.getIn(["json","definitions",e],null);return r||n||null},pf=yr(eo,(t=>{const e=t.get("definitions");return H.Map.isMap(e)?e:(0,H.Map)()})),Tg=yr(eo,(t=>t.get("basePath"))),Th=yr(eo,(t=>t.get("host"))),Ms=yr(eo,(t=>t.get("schemes",(0,H.Map)()))),bu=yr([jh,Ph,cf],((t,e,r)=>t.map((n=>n.update("operation",(a=>H.Map.isMap(a)?a.withMutations((o=>(o.get("consumes")||o.update("consumes",(p=>(0,H.Set)(p).merge(e))),o.get("produces")||o.update("produces",(p=>(0,H.Set)(p).merge(r))),o))):(0,H.Map)())))))),La=yr(eo,(t=>{const e=t.get("tags",(0,H.List)());return H.List.isList(e)?e.filter((r=>H.Map.isMap(r))):(0,H.List)()})),Ig=(t,e)=>(La(t)||(0,H.List)()).filter(H.Map.isMap).find((r=>r.get("name")===e),(0,H.Map)()),Mg=yr(bu,La,((t,e)=>t.reduce(((r,n)=>{let a=(0,H.Set)(n.getIn(["operation","tags"]));return a.count()<1?r.update("default",(0,H.List)(),(o=>o.push(n))):a.reduce(((o,p)=>o.update(p,(0,H.List)(),(c=>c.push(n)))),r)}),e.reduce(((r,n)=>r.set(n.get("name"),(0,H.List)())),(0,H.OrderedMap)())))),Ih=t=>({getConfigs:e})=>{let{tagsSorter:r,operationsSorter:n}=e();return Mg(t).sortBy(((a,o)=>o),((a,o)=>{let p=typeof r=="function"?r:Nr.tagsSorter[r];return p?p(a,o):null})).map(((a,o)=>{let p=typeof n=="function"?n:Nr.operationsSorter[n],c=p?a.sort(p):a;return(0,H.Map)({tagDetails:Ig(t,o),operations:c})}))},$a=yr(ji,(t=>t.get("responses",(0,H.Map)()))),Rg=yr(ji,(t=>t.get("requests",(0,H.Map)()))),cr=yr(ji,(t=>t.get("mutatedRequests",(0,H.Map)()))),wu=(t,e,r)=>$a(t).getIn([e,r],null),Dg=(t,e,r)=>Rg(t).getIn([e,r],null),Fg=(t,e,r)=>cr(t).getIn([e,r],null),Op=()=>!0,Eu=(t,e,r)=>{const n=li(t).getIn(["paths",...e,"parameters"],(0,H.OrderedMap)()),a=t.getIn(["meta","paths",...e,"parameters"],(0,H.OrderedMap)());return n.map((o=>{const p=a.get(`${r.get("in")}.${r.get("name")}`),c=a.get(`${r.get("in")}.${r.get("name")}.hash-${r.hashCode()}`);return(0,H.OrderedMap)().merge(o,p,c)})).find((o=>o.get("in")===r.get("in")&&o.get("name")===r.get("name")),(0,H.OrderedMap)())},Mh=(t,e,r,n)=>{const a=`${n}.${r}`;return t.getIn(["meta","paths",...e,"parameter_inclusions",a],!1)},Lg=(t,e,r,n)=>{const a=li(t).getIn(["paths",...e,"parameters"],(0,H.OrderedMap)()).find((o=>o.get("in")===n&&o.get("name")===r),(0,H.OrderedMap)());return Eu(t,e,a)},hf=(t,e,r)=>{const n=li(t).getIn(["paths",e,r],(0,H.OrderedMap)()),a=t.getIn(["meta","paths",e,r],(0,H.OrderedMap)()),o=n.get("parameters",(0,H.List)()).map((p=>Eu(t,[e,r],p)));return(0,H.OrderedMap)().merge(n,a).set("parameters",o)};function $g(t,e,r,n){return e=e||[],t.getIn(["meta","paths",...e,"parameters"],(0,H.fromJS)([])).find((a=>H.Map.isMap(a)&&a.get("name")===r&&a.get("in")===n))||(0,H.Map)()}const df=yr(eo,(t=>{const e=t.get("host");return typeof e=="string"&&e.length>0&&e[0]!=="/"}));function Rh(t,e,r){return e=e||[],hf(t,...e).get("parameters",(0,H.List)()).reduce(((n,a)=>{let o=r&&a.get("in")==="body"?a.get("value_xml"):a.get("value");return H.List.isList(o)&&(o=o.filter((p=>p!==""))),n.set(sa(a,{allowHashes:!1}),o)}),(0,H.fromJS)({}))}function ho(t,e=""){if(H.List.isList(t))return t.some((r=>H.Map.isMap(r)&&r.get("in")===e))}function ci(t,e=""){if(H.List.isList(t))return t.some((r=>H.Map.isMap(r)&&r.get("type")===e))}function Cl(t,e){e=e||[];let r=li(t).getIn(["paths",...e],(0,H.fromJS)({})),n=t.getIn(["meta","paths",...e],(0,H.fromJS)({})),a=ff(t,e);const o=r.get("parameters")||new H.List,p=n.get("consumes_value")?n.get("consumes_value"):ci(o,"file")?"multipart/form-data":ci(o,"formData")?"application/x-www-form-urlencoded":void 0;return(0,H.fromJS)({requestContentType:p,responseContentType:a})}function ff(t,e){e=e||[];const r=li(t).getIn(["paths",...e],null);if(r===null)return;const n=t.getIn(["meta","paths",...e,"produces_value"],null),a=r.getIn(["produces",0],null);return n||a||"application/json"}function Bg(t,e){e=e||[];const r=li(t),n=r.getIn(["paths",...e],null);if(n===null)return;const[a]=e,o=n.get("produces",null),p=r.getIn(["paths",a,"produces"],null),c=r.getIn(["produces"],null);return o||p||c}function Qi(t,e){e=e||[];const r=li(t),n=r.getIn(["paths",...e],null);if(n===null)return;const[a]=e,o=n.get("consumes",null),p=r.getIn(["paths",a,"consumes"],null),c=r.getIn(["consumes"],null);return o||p||c}const mf=(t,e,r)=>{let n=t.get("url").match(/^([a-z][a-z0-9+\-.]*):/),a=Array.isArray(n)?n[1]:null;return t.getIn(["scheme",e,r])||t.getIn(["scheme","_defaultScheme"])||a||""},Rs=(t,e,r)=>["http","https"].indexOf(mf(t,e,r))>-1,qg=(t,e)=>{e=e||[];const r=t.getIn(["meta","paths",...e,"parameters"],(0,H.fromJS)([])),n=[];if(r.length===0)return n;const a=(o,p=[])=>{const c=(d,E)=>{const x=[...E,d.get("propKey")||d.get("index")];return H.Map.isMap(d.get("error"))?a(d.get("error"),x):{error:d.get("error"),path:x}};return H.List.isList(o)?o.map((d=>H.Map.isMap(d)?c(d,p):{error:d,path:p})):c(o,p)};return r.forEach(((o,p)=>{const c=p.split(".").slice(1,-1).join("."),d=o.get("errors");d&&d.count()&&a(d).forEach((({error:E,path:x})=>{n.push(((k,P,R)=>`For '${R}'${(P=P.reduce(((L,V)=>typeof V=="number"?`${L}[${V}]`:L?`${L}.${V}`:V),""))?` at path '${P}'`:""}: ${k}.`)(E,x,c))}))})),n},Ug=(t,e)=>qg(t,e).length===0,zg=(t,e)=>{let r={requestBody:!1,requestContentType:{}},n=t.getIn(["resolvedSubtrees","paths",...e,"requestBody"],(0,H.fromJS)([]));if(n.size<1)return r;n.getIn(["required"])&&(r.requestBody=n.getIn(["required"]));const a=n.getIn(["content"]);return a&&a.entrySeq().forEach((o=>{const p=o[0];if(o[1].getIn(["schema","required"])){const c=o[1].getIn(["schema","required"]).toJS();r.requestContentType[p]=c}})),r},Vg=(t,e,r,n)=>{if((r||n)&&r===n)return!0;let a=t.getIn(["resolvedSubtrees","paths",...e,"requestBody","content"],(0,H.fromJS)([]));if(a.size<2||!r||!n)return!1;let o=a.getIn([r,"schema","properties"],(0,H.fromJS)([])),p=a.getIn([n,"schema","properties"],(0,H.fromJS)([]));return!!o.equals(p)};function gf(t){return H.Map.isMap(t)?t:new H.Map}var Jg=Be(85015),p0=Be.n(Jg),Dh=Be(38221),yf=Be.n(Dh),ui=Be(63560),pn=Be.n(ui),Ca=Be(56367),ua=Be.n(Ca);const wa="spec_update_spec",fo="spec_update_url",jl="spec_update_json",Kn="spec_update_param",yc="spec_update_empty_param_inclusion",Ds="spec_validate_param",Su="spec_set_response",kp="spec_set_request",vc="spec_set_mutated_request",Fo="spec_log_request",Ap="spec_clear_response",Pl="spec_clear_request",Zi="spec_clear_validate_param",bc="spec_update_operation_meta_value",Cp="spec_update_resolved",Pi="spec_update_resolved_subtree",xu="set_scheme",Nl=t=>p0()(t)?t:"";function Fh(t){const e=Nl(t).replace(/\t/g," ");if(typeof t=="string")return{type:wa,payload:e}}function jp(t){return{type:Cp,payload:t}}function vf(t){return{type:fo,payload:t}}function Lh(t){return{type:jl,payload:t}}const $h=t=>({specActions:e,specSelectors:r,errActions:n})=>{let{specStr:a}=r,o=null;try{t=t||a(),n.clear({source:"parser"}),o=Pe.load(t,{schema:Rt})}catch(p){return console.error(p),n.newSpecErr({source:"parser",level:"error",message:p.reason,line:p.mark&&p.mark.line?p.mark.line+1:void 0})}return o&&typeof o=="object"?e.updateJsonSpec(o):e.updateJsonSpec({})};let to=!1;const Tl=(t,e)=>({specActions:r,specSelectors:n,errActions:a,fn:{fetch:o,resolve:p,AST:c={}},getConfigs:d})=>{to||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),to=!0);const{modelPropertyMacro:E,parameterMacro:x,requestInterceptor:k,responseInterceptor:P}=d();t===void 0&&(t=n.specJson()),e===void 0&&(e=n.url());let R=c.getLineNumberForPath?c.getLineNumberForPath:()=>{},L=n.specStr();return p({fetch:o,spec:t,baseDoc:String(new URL(e,document.baseURI)),modelPropertyMacro:E,parameterMacro:x,requestInterceptor:k,responseInterceptor:P}).then((({spec:V,errors:Q})=>{if(a.clear({type:"thrown"}),Array.isArray(Q)&&Q.length>0){let J=Q.map((re=>(console.error(re),re.line=re.fullPath?R(L,re.fullPath):null,re.path=re.fullPath?re.fullPath.join("."):null,re.level="error",re.type="thrown",re.source="resolver",Object.defineProperty(re,"message",{enumerable:!0,value:re.message}),re)));a.newThrownErrBatch(J)}return r.updateResolved(V)}))};let Lo=[];const $o=yf()((()=>{const t=Lo.reduce(((e,{path:r,system:n})=>(e.has(n)||e.set(n,[]),e.get(n).push(r),e)),new Map);Lo=[],t.forEach((async(e,r)=>{if(!r)return void console.error("debResolveSubtrees: don't have a system to operate on, aborting.");if(!r.fn.resolveSubtree)return void console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.");const{errActions:n,errSelectors:a,fn:{resolveSubtree:o,fetch:p,AST:c={}},specSelectors:d,specActions:E}=r,x=c.getLineNumberForPath??vu()(void 0),k=d.specStr(),{modelPropertyMacro:P,parameterMacro:R,requestInterceptor:L,responseInterceptor:V}=r.getConfigs();try{const Q=await e.reduce((async(J,re)=>{let{resultMap:me,specWithCurrentSubtrees:le}=await J;const{errors:ve,spec:be}=await o(le,re,{baseDoc:String(new URL(d.url(),document.baseURI)),modelPropertyMacro:P,parameterMacro:R,requestInterceptor:L,responseInterceptor:V});if(a.allErrors().size&&n.clearBy((ce=>ce.get("type")!=="thrown"||ce.get("source")!=="resolver"||!ce.get("fullPath")?.every(((_e,Ae)=>_e===re[Ae]||re[Ae]===void 0)))),Array.isArray(ve)&&ve.length>0){let ce=ve.map((_e=>(_e.line=_e.fullPath?x(k,_e.fullPath):null,_e.path=_e.fullPath?_e.fullPath.join("."):null,_e.level="error",_e.type="thrown",_e.source="resolver",Object.defineProperty(_e,"message",{enumerable:!0,value:_e.message}),_e)));n.newThrownErrBatch(ce)}return be&&d.isOAS3()&&re[0]==="components"&&re[1]==="securitySchemes"&&await Promise.all(Object.values(be).filter((ce=>ce?.type==="openIdConnect")).map((async ce=>{const _e={url:ce.openIdConnectUrl,requestInterceptor:L,responseInterceptor:V};try{const Ae=await p(_e);Ae instanceof Error||Ae.status>=400?console.error(Ae.statusText+" "+_e.url):ce.openIdConnectData=JSON.parse(Ae.text)}catch(Ae){console.error(Ae)}}))),pn()(me,re,be),le=ua()(re,be,le),{resultMap:me,specWithCurrentSubtrees:le}}),Promise.resolve({resultMap:(d.specResolvedSubtree([])||(0,H.Map)()).toJS(),specWithCurrentSubtrees:d.specJS()}));E.updateResolvedSubtree([],Q.resultMap)}catch(Q){console.error(Q)}}))}),35),Wg=t=>e=>{Lo.find((({path:r,system:n})=>n===e&&r.toString()===t.toString()))||(Lo.push({path:t,system:e}),$o())};function bf(t,e,r,n,a){return{type:Kn,payload:{path:t,value:n,paramName:e,paramIn:r,isXml:a}}}function wf(t,e,r,n){return{type:Kn,payload:{path:t,param:e,value:r,isXml:n}}}const Il=(t,e)=>({type:Pi,payload:{path:t,value:e}}),Hg=()=>({type:Pi,payload:{path:[],value:(0,H.Map)()}}),Ef=(t,e)=>({type:Ds,payload:{pathMethod:t,isOAS3:e}}),wc=(t,e,r,n)=>({type:yc,payload:{pathMethod:t,paramName:e,paramIn:r,includeEmptyValue:n}});function Sf(t){return{type:Zi,payload:{pathMethod:t}}}function Ec(t,e){return{type:bc,payload:{path:t,value:e,key:"consumes_value"}}}function Kg(t,e){return{type:bc,payload:{path:t,value:e,key:"produces_value"}}}const Gg=(t,e,r)=>({payload:{path:t,method:e,res:r},type:Su}),xf=(t,e,r)=>({payload:{path:t,method:e,req:r},type:kp}),Bh=(t,e,r)=>({payload:{path:t,method:e,req:r},type:vc}),h0=t=>({payload:t,type:Fo}),d0=t=>({fn:e,specActions:r,specSelectors:n,getConfigs:a,oas3Selectors:o})=>{let{pathName:p,method:c,operation:d}=t,{requestInterceptor:E,responseInterceptor:x}=a(),k=d.toJS();if(d&&d.get("parameters")&&d.get("parameters").filter((L=>L&&L.get("allowEmptyValue")===!0)).forEach((L=>{if(n.parameterInclusionSettingFor([p,c],L.get("name"),L.get("in"))){t.parameters=t.parameters||{};const V=Sa(L,t.parameters);(!V||V&&V.size===0)&&(t.parameters[L.get("name")]="")}})),t.contextUrl=Ao()(n.url()).toString(),k&&k.operationId?t.operationId=k.operationId:k&&p&&c&&(t.operationId=e.opId(k,p,c)),n.isOAS3()){const L=`${p}:${c}`;t.server=o.selectedServer(L)||o.selectedServer();const V=o.serverVariables({server:t.server,namespace:L}).toJS(),Q=o.serverVariables({server:t.server}).toJS();t.serverVariables=Object.keys(V).length?V:Q,t.requestContentType=o.requestContentType(p,c),t.responseContentType=o.responseContentType(p,c)||"*/*";const J=o.requestBodyValue(p,c),re=o.requestBodyInclusionSetting(p,c);J&&J.toJS?t.requestBody=J.map((me=>H.Map.isMap(me)?me.get("value"):me)).filter(((me,le)=>(Array.isArray(me)?me.length!==0:!Wa(me))||re.get(le))).toJS():t.requestBody=J}let P=Object.assign({},t);P=e.buildRequest(P),r.setRequest(t.pathName,t.method,P),t.requestInterceptor=async L=>{let V=await E.apply(void 0,[L]),Q=Object.assign({},V);return r.setMutatedRequest(t.pathName,t.method,Q),V},t.responseInterceptor=x;const R=Date.now();return e.execute(t).then((L=>{L.duration=Date.now()-R,r.setResponse(t.pathName,t.method,L)})).catch((L=>{L.message==="Failed to fetch"&&(L.name="",L.message=`**Failed to fetch.** +**Possible Reasons:** + - CORS + - Network Failure + - URL scheme must be "http" or "https" for CORS request.`),r.setResponse(t.pathName,t.method,{error:!0,err:L})}))},Yg=({path:t,method:e,...r}={})=>n=>{let{fn:{fetch:a},specSelectors:o,specActions:p}=n,c=o.specJsonWithResolvedSubtrees().toJS(),d=o.operationScheme(t,e),{requestContentType:E,responseContentType:x}=o.contentTypeValues([t,e]).toJS(),k=/xml/i.test(E),P=o.parameterValues([t,e],k).toJS();return p.executeRequest({...r,fetch:a,spec:c,pathName:t,method:e,parameters:P,requestContentType:E,scheme:d,responseContentType:x})};function Xg(t,e){return{type:Ap,payload:{path:t,method:e}}}function _u(t,e){return{type:Pl,payload:{path:t,method:e}}}function Ou(t,e,r){return{type:xu,payload:{scheme:t,path:e,method:r}}}const Qg={[wa]:(t,e)=>typeof e.payload=="string"?t.set("spec",e.payload):t,[fo]:(t,e)=>t.set("url",e.payload+""),[jl]:(t,e)=>t.set("json",nn(e.payload)),[Cp]:(t,e)=>t.setIn(["resolved"],nn(e.payload)),[Pi]:(t,e)=>{const{value:r,path:n}=e.payload;return t.setIn(["resolvedSubtrees",...n],nn(r))},[Kn]:(t,{payload:e})=>{let{path:r,paramName:n,paramIn:a,param:o,value:p,isXml:c}=e,d=o?sa(o):`${a}.${n}`;const E=c?"value_xml":"value";return t.setIn(["meta","paths",...r,"parameters",d,E],(0,H.fromJS)(p))},[yc]:(t,{payload:e})=>{let{pathMethod:r,paramName:n,paramIn:a,includeEmptyValue:o}=e;if(!n||!a)return console.warn("Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey."),t;const p=`${a}.${n}`;return t.setIn(["meta","paths",...r,"parameter_inclusions",p],o)},[Ds]:(t,{payload:{pathMethod:e,isOAS3:r}})=>{const n=li(t).getIn(["paths",...e]),a=Rh(t,e).toJS();return t.updateIn(["meta","paths",...e,"parameters"],(0,H.fromJS)({}),(o=>n.get("parameters",(0,H.List)()).reduce(((p,c)=>{const d=Sa(c,a),E=Mh(t,e,c.get("name"),c.get("in")),x=((k,P,{isOAS3:R=!1,bypassRequiredCheck:L=!1}={})=>{let V=k.get("required"),{schema:Q,parameterContentMediaType:J}=sr(k,{isOAS3:R});return Rr(P,Q,V,L,J,R)})(c,d,{bypassRequiredCheck:E,isOAS3:r});return p.setIn([sa(c),"errors"],(0,H.fromJS)(x))}),o)))},[Zi]:(t,{payload:{pathMethod:e}})=>t.updateIn(["meta","paths",...e,"parameters"],(0,H.fromJS)([]),(r=>r.map((n=>n.set("errors",(0,H.fromJS)([])))))),[Su]:(t,{payload:{res:e,path:r,method:n}})=>{let a;a=e.error?Object.assign({error:!0,name:e.err.name,message:e.err.message,statusCode:e.err.statusCode},e.err.response):e,a.headers=a.headers||{};let o=t.setIn(["responses",r,n],nn(a));return Qe.Blob&&a.data instanceof Qe.Blob&&(o=o.setIn(["responses",r,n,"text"],a.data)),o},[kp]:(t,{payload:{req:e,path:r,method:n}})=>t.setIn(["requests",r,n],nn(e)),[vc]:(t,{payload:{req:e,path:r,method:n}})=>t.setIn(["mutatedRequests",r,n],nn(e)),[bc]:(t,{payload:{path:e,value:r,key:n}})=>{let a=["paths",...e],o=["meta","paths",...e];return t.getIn(["json",...a])||t.getIn(["resolved",...a])||t.getIn(["resolvedSubtrees",...a])?t.setIn([...o,n],(0,H.fromJS)(r)):t},[Ap]:(t,{payload:{path:e,method:r}})=>t.deleteIn(["responses",e,r]),[Pl]:(t,{payload:{path:e,method:r}})=>t.deleteIn(["requests",e,r]),[xu]:(t,{payload:{scheme:e,path:r,method:n}})=>r&&n?t.setIn(["scheme",r,n],e):r||n?void 0:t.setIn(["scheme","_defaultScheme"],e)},Gn=(t,{specActions:e})=>(...r)=>{t(...r),e.parseToJson(...r)},f0=(t,{specActions:e})=>(...r)=>{t(...r),e.invalidateResolvedSubtreeCache();const[n]=r,a=Cn()(n,["paths"])||{};Object.keys(a).forEach((o=>{const p=Cn()(a,[o]);Ai()(p)&&p.$ref&&e.requestResolvedSubtree(["paths",o])})),e.requestResolvedSubtree(["components","securitySchemes"])},Zg=(t,{specActions:e})=>r=>(e.logRequest(r),t(r)),m0=(t,{specSelectors:e})=>r=>t(r,e.isOAS3()),ey=()=>({statePlugins:{spec:{wrapActions:{...z},reducers:{...Qg},actions:{...M},selectors:{...j}}}});var ty=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)a.hasOwnProperty(o)&&(n[o]=a[o])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),g0=Object.prototype.hasOwnProperty;function Bo(t,e){return g0.call(t,e)}function Pp(t){if(Array.isArray(t)){for(var e=new Array(t.length),r=0;r=48&&e<=57))return!1;r++}return!0}function Xo(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Np(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Tp(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var e=0,r=t.length;e0&&c[E-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&k===void 0&&(d[P]===void 0?k=c.slice(0,E).join("/"):E==x-1&&(k=e.path),k!==void 0&&R(e,0,t,k)),E++,Array.isArray(d)){if(P==="-")P=d.length;else{if(r&&!ku(P))throw new zn("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,e,t);ku(P)&&(P=~~P)}if(E>=x){if(r&&e.op==="add"&&P>d.length)throw new zn("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,e,t);if((p=Uh[e.op].call(e,d,P,t)).test===!1)throw new zn("Test operation failed","TEST_OPERATION_FAILED",o,e,t);return p}}else if(E>=x){if((p=Sc[e.op].call(e,d,P,t)).test===!1)throw new zn("Test operation failed","TEST_OPERATION_FAILED",o,e,t);return p}if(d=d[P],r&&E0)throw new zn('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",e,t,r);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new zn("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new zn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&Tp(t.value))throw new zn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",e,t,r);if(r){if(t.op=="add"){var a=t.path.split("/").length,o=n.split("/").length;if(a!==o+1&&a!==o)throw new zn("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",e,t,r)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==n)throw new zn("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",e,t,r)}else if(t.op==="move"||t.op==="copy"){var p=Ip([{op:"_get",path:t.from,value:void 0}],r);if(p&&p.name==="OPERATION_PATH_UNRESOLVABLE")throw new zn("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",e,t,r)}}}function Ip(t,e,r){try{if(!Array.isArray(t))throw new zn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(e)es(pa(e),pa(t),r||!0);else{r=r||Au;for(var n=0;n0&&(t.patches=[],t.callback&&t.callback(n)),n}function ju(t,e,r,n,a){if(e!==t){typeof e.toJSON=="function"&&(e=e.toJSON());for(var o=Pp(e),p=Pp(t),c=!1,d=p.length-1;d>=0;d--){var E=t[k=p[d]];if(!Bo(e,k)||e[k]===void 0&&E!==void 0&&Array.isArray(e)===!1)Array.isArray(t)===Array.isArray(e)?(a&&r.push({op:"test",path:n+"/"+Xo(k),value:pa(E)}),r.push({op:"remove",path:n+"/"+Xo(k)}),c=!0):(a&&r.push({op:"test",path:n,value:t}),r.push({op:"replace",path:n,value:e}));else{var x=e[k];typeof E=="object"&&E!=null&&typeof x=="object"&&x!=null&&Array.isArray(E)===Array.isArray(x)?ju(E,x,r,n+"/"+Xo(k),a):E!==x&&(a&&r.push({op:"test",path:n+"/"+Xo(k),value:pa(E)}),r.push({op:"replace",path:n+"/"+Xo(k),value:pa(x)}))}}if(c||o.length!=p.length)for(d=0;da!==void 0&&n?n[a]:n),e)},applyPatch:function(e,r,n){if(n=n||{},(r={...r,path:r.path&&$(r.path)}).op==="merge"){const a=rt(e,r.path);Object.assign(a,r.value),es(e,[ee(r.path,a)])}else if(r.op==="mergeDeep"){const a=rt(e,r.path),o=b()(a,r.value,{customMerge:p=>{if(p==="enum")return(c,d)=>Array.isArray(c)&&Array.isArray(d)?[...new Set([...c,...d])]:b()(c,d)}});e=es(e,[ee(r.path,o)]).newDocument}else if(r.op==="add"&&r.path===""&<(r.value))es(e,Object.keys(r.value).reduce(((a,o)=>(a.push({op:"add",path:`/${$(o)}`,value:r.value[o]}),a)),[]));else if(r.op==="replace"&&r.path===""){let{value:a}=r;n.allowMetaPatches&&r.meta&&Ze(r)&&(Array.isArray(r.value)||lt(r.value))&&(a={...a,...r.meta}),e=a}else if(es(e,[r]),n.allowMetaPatches&&r.meta&&Ze(r)&&(Array.isArray(r.value)||lt(r.value))){const a={...rt(e,r.path),...r.meta};es(e,[ee(r.path,a)])}return e},parentPathMatch:function(e,r){if(!Array.isArray(r))return!1;for(let n=0,a=r.length;n(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:t}function ee(t,e,r){return{op:"replace",path:t,value:e,meta:r}}function ue(t,e,r){return st(ot(t.filter(Ze).map((n=>e(n.value,r,n.path)))||[]))}function Ce(t,e,r){return r=r||[],Array.isArray(t)?t.map(((n,a)=>Ce(n,e,r.concat(a)))):lt(t)?Object.keys(t).map((n=>Ce(t[n],e,r.concat(n)))):e(t,r[r.length-1],r)}function Me(t,e,r){let n=[];if((r=r||[]).length>0){const a=e(t,r[r.length-1],r);a&&(n=n.concat(a))}if(Array.isArray(t)){const a=t.map(((o,p)=>Me(o,e,r.concat(p))));a&&(n=n.concat(a))}else if(lt(t)){const a=Object.keys(t).map((o=>Me(t[o],e,r.concat(o))));a&&(n=n.concat(a))}return n=ot(n),n}function Ue(t){return Array.isArray(t)?t:[t]}function ot(t){return[].concat(...t.map((e=>Array.isArray(e)?ot(e):e)))}function st(t){return t.filter((e=>e!==void 0))}function lt(t){return t&&typeof t=="object"}function vt(t){return t&&typeof t=="function"}function Lt(t){if(Le(t)){const{op:e}=t;return e==="add"||e==="remove"||e==="replace"}return!1}function xt(t){return Lt(t)||Le(t)&&t.type==="mutation"}function Ze(t){return xt(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Le(t){return t&&typeof t=="object"}function rt(t,e){try{return Ml(t,e)}catch(r){return console.error(r),{}}}var wt=Be(48675);const nr=class extends wt{constructor(e,r,n){if(super(e,r,n),this.name=this.constructor.name,typeof r=="string"&&(this.message=r),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack,n!=null&&typeof n=="object"&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:a}=n;this.cause=a,a instanceof Error&&"stack"in a&&(this.stack=`${this.stack} +CAUSE: ${a.stack}`)}}};class Fr extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(nr,e)}constructor(e,r){if(super(e,r),this.name=this.constructor.name,typeof e=="string"&&(this.message=e),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,r!=null&&typeof r=="object"&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack} +CAUSE: ${n.stack}`)}}}const Mt=Fr,xr=class extends Mt{constructor(e,r){if(super(e,r),r!=null&&typeof r=="object"){const{cause:n,...a}=r;Object.assign(this,a)}}};function Qr(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(r){return e.apply(this,arguments)};case 2:return function(r,n){return e.apply(this,arguments)};case 3:return function(r,n,a){return e.apply(this,arguments)};case 4:return function(r,n,a,o){return e.apply(this,arguments)};case 5:return function(r,n,a,o,p){return e.apply(this,arguments)};case 6:return function(r,n,a,o,p,c){return e.apply(this,arguments)};case 7:return function(r,n,a,o,p,c,d){return e.apply(this,arguments)};case 8:return function(r,n,a,o,p,c,d,E){return e.apply(this,arguments)};case 9:return function(r,n,a,o,p,c,d,E,x){return e.apply(this,arguments)};case 10:return function(r,n,a,o,p,c,d,E,x,k){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function sn(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function wr(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function _r(t){return function e(r){return arguments.length===0||wr(r)?e:t.apply(this,arguments)}}function Tr(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return wr(r)?e:_r((function(a){return t(r,a)}));default:return wr(r)&&wr(n)?e:wr(r)?_r((function(a){return t(a,n)})):wr(n)?_r((function(a){return t(r,a)})):t(r,n)}}}function ha(t){return function e(r,n,a){switch(arguments.length){case 0:return e;case 1:return wr(r)?e:Tr((function(o,p){return t(r,o,p)}));case 2:return wr(r)&&wr(n)?e:wr(r)?Tr((function(o,p){return t(o,n,p)})):wr(n)?Tr((function(o,p){return t(r,o,p)})):_r((function(o){return t(r,n,o)}));default:return wr(r)&&wr(n)&&wr(a)?e:wr(r)&&wr(n)?Tr((function(o,p){return t(o,p,a)})):wr(r)&&wr(a)?Tr((function(o,p){return t(o,n,p)})):wr(n)&&wr(a)?Tr((function(o,p){return t(r,o,p)})):wr(r)?_r((function(o){return t(o,n,a)})):wr(n)?_r((function(o){return t(r,o,a)})):wr(a)?_r((function(o){return t(r,n,o)})):t(r,n,a)}}}const Dl=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Of(t){return Object.prototype.toString.call(t)==="[object String]"}const iy=_r((function(e){return!!Dl(e)||!!e&&typeof e=="object"&&!Of(e)&&(e.length===0||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}));var sy=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _c(t,e,r){return function(a,o,p){if(iy(p))return t(a,o,p);if(p==null)return o;if(typeof p["fantasy-land/reduce"]=="function")return e(a,o,p,"fantasy-land/reduce");if(p[sy]!=null)return r(a,o,p[sy]());if(typeof p.next=="function")return r(a,o,p);if(typeof p.reduce=="function")return e(a,o,p,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ly(t,e,r){for(var n=0,a=r.length;n=arguments.length)?d=e[p]:(d=arguments[a],a+=1),n[p]=d,wr(d)?c=!0:o-=1,p+=1}return!c&&o<=0?r.apply(this,n):Qr(Math.max(0,o),w0(t,n,r))}}const ja=Tr((function(e,r){return e===1?_r(r):Qr(e,w0(e,[],r))})),E0=_r((function(e){return ja(e.length,e)}));function S0(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function nE(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function hy(t,e,r){for(var n=0,a=r.length;n=0;)ts(r=iE[n],e)&&!mA(a,r)&&(a[a.length]=r),n-=1;return a}):(function(e){return Object(e)!==e?[]:Object.keys(e)}));const Rp=gA,Fs=_r((function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function lE(t,e,r,n){var a=nE(t);function o(p,c){return x0(p,c,r.slice(),n.slice())}return!hy((function(p,c){return!hy(o,c,p)}),nE(e),a)}function x0(t,e,r,n){if(Cf(t,e))return!0;var a=Fs(t);if(a!==Fs(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&(function(k){var P=String(k).match(/^function (\w*)/);return P==null?"":P[1]})(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!Cf(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!Cf(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var o=r.length-1;o>=0;){if(r[o]===t)return n[o]===e;o-=1}switch(a){case"Map":return t.size===e.size&&lE(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&lE(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var p=Rp(t);if(p.length!==Rp(e).length)return!1;var c=r.concat([t]),d=n.concat([e]);for(o=p.length-1;o>=0;){var E=p[o];if(!ts(E,e)||!x0(e[E],t[E],c,d))return!1;o-=1}return!0}const Pu=Tr((function(e,r){return x0(e,r,[],[])}));function dy(t,e){return(function(n,a,o){var p,c;if(typeof n.indexOf=="function")switch(typeof a){case"number":if(a===0){for(p=1/a;o=0}function fy(t,e){for(var r=0,n=e.length,a=Array(n);r":uE(p,c)},n=function(o,p){return fy((function(c){return _0(c)+": "+r(o[c])}),p.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+fy(r,t).join(", ")+"))";case"[object Array]":return"["+fy(r,t).concat(n(t,SA((function(o){return/^\d+$/.test(o)}),Rp(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):_0(yA(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+r(t.valueOf())+")":_0(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+n(t,Rp(t)).join(", ")+"}"}}const Tf=_r((function(e){return uE(e,[])})),O0=Tr((function(e,r){return ja(e+1,(function(){var n=arguments[e];if(n!=null&&S0(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Tf(n)+' does not have a method named "'+r+'"')}))})),pE=O0(1,"split");function xA(t,e){for(var r=e.length-1;r>=0&&t(e[r]);)r-=1;return kf(0,r+1,e)}var _A=(function(){function t(e,r){this.f=e,this.retained=[],this.xf=r}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.retain(e,r):this.flush(e,r)},t.prototype.flush=function(e,r){return e=v0(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,r)},t.prototype.retain=function(e,r){return this.retained.push(r),e},t})();function OA(t){return function(e){return new _A(t,e)}}const kA=Tr(Nu([],OA,xA)),hE=O0(1,"join"),gy=_r((function(e){return ja(e.length,(function(r,n){var a=Array.prototype.slice.call(arguments,0);return a[0]=n,a[1]=r,e.apply(this,a)}))}))(Tr(dy)),AA=E0((function(t,e){return mo(pE(""),kA(gy(t)),hE(""))(e)}));function CA(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function jA(t,e,r,n){return r[n](t,e)}const PA=_c(Pf,jA,CA);var NA=(function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=Nf,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t})();const yy=Tr(Nu(["fantasy-land/map","map"],(function(e){return function(r){return new NA(e,r)}}),(function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return ja(r.length,(function(){return e.call(this,r.apply(this,arguments))}));case"[object Object]":return Pf((function(n,a){return n[a]=e(r[a]),n}),{},Rp(r));default:return fy(e,r)}}))),TA=Tr((function(e,r){return typeof r["fantasy-land/ap"]=="function"?r["fantasy-land/ap"](e):typeof e.ap=="function"?e.ap(r):typeof e=="function"?function(n){return e(n)(r(n))}:PA((function(n,a){return(function(p,c){var d;c=c||[];var E=(p=p||[]).length,x=c.length,k=[];for(d=0;dE!=E>d)return E>d?E:d}var a=n(e,r);if(a!==void 0)return a;var o=n(typeof e,typeof r);if(o!==void 0)return o===typeof e?e:r;var p=Tf(e),c=n(p,Tf(r));return c!==void 0&&c===p?e:r}));var MA=Tr((function(e,r){return yy(Af(e),r)}));const mE=MA,RA=_r((function(e){return ja(Vh(fE,0,mE("length",e)),(function(){for(var r=0,n=e.length;r{var t,e;return/^win/.test((t=(e=globalThis.process)===null||e===void 0?void 0:e.platform)!==null&&t!==void 0?t:"")},C0=t=>{try{const e=new URL(t);return AA(":",e.protocol)}catch{return}},bE=(mo(C0,dE),t=>{if(globalThis.window!==void 0)return!1;const e=C0(t);return Iu(e)||e==="file"||/^[a-zA-Z]$/.test(e)}),j0=t=>{const e=C0(t);return e==="http"||e==="https"},wE=(t,e)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=uy(!1,"keepFileProtocol",e),a=uy(A0,"isWindows",e);let o=decodeURI(t);for(let c=0;c{const e=t.indexOf("#");return e!==-1?t.substring(e):"#"},In=t=>{const e=t.indexOf("#");let r=t;return e>=0&&(r=t.substring(0,e)),r},P0=()=>{var t,e;if(globalThis.window!==void 0)return In(globalThis.location.href);const r=(t=(e=globalThis.process)===null||e===void 0?void 0:e.cwd())!==null&&t!==void 0?t:"/",n=py(r);return["/","\\"].includes(n)?r:r+(A0()?"\\":"/")},go=(t,e)=>{const r=new URL(e,new URL(t,"resolve://"));if(r.protocol==="resolve:"){const{pathname:n,search:a,hash:o}=r;return n+a+o}return r.toString()},by=t=>{if(bE(t))return(e=>{const r=[/\?/g,"%3F",/#/g,"%23"];let n=e;A0()&&(n=n.replace(/\\/g,"/")),n=encodeURI(n);for(let a=0;abE(t)?wE(t):decodeURI(t);var JA=Be(8628),Yn=Be.n(JA);const SE=t=>Object.prototype.toString.call(t),N0=t=>ArrayBuffer.isView(t)&&!(t instanceof DataView),xE=Array.isArray,_E=t=>{const e=SE(t);return e==="[object Boolean]"||e==="[object Number]"||e==="[object String]"},WA=Object.getOwnPropertyDescriptor,HA=Object.prototype.propertyIsEnumerable,KA=Object.getOwnPropertySymbols,wy=Object.prototype.hasOwnProperty,OE=t=>t==="__proto__"||t==="constructor"||t==="prototype";function Ey(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0}):t[e]=r}function kE(t,e){if(e!==void 0&&t>e)throw new RangeError(`neotraverse: maximum traversal depth (${e}) exceeded`)}function T0(t){const e=Object.keys(t),r=KA(t);for(let n=0;nnew Ll(t,e);$l.get=(t,e,r)=>new Ll(t,r).get(e),$l.set=(t,e,r,n)=>new Ll(t,n).set(e,r),$l.has=(t,e,r)=>new Ll(t,r).has(e),$l.map=(t,e,r)=>new Ll(t,r).map(e),$l.forEach=(t,e,r)=>new Ll(t,r).forEach(e),$l.reduce=(t,e,r,n)=>new Ll(t,n).reduce(e,r),$l.paths=(t,e)=>new Ll(t,e).paths(),$l.nodes=(t,e)=>new Ll(t,e).nodes(),$l.clone=(t,e)=>new Ll(t,e).clone();const PE="application/json, application/yaml",Sy="https://swagger.io",YA=Object.freeze({url:"/"}),NE=3e3,XA=["properties"],QA=["properties"],ZA=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],eC=["schema/example","items/example"];function TE(t){const e=t[t.length-1],r=t[t.length-2],n=t.join("/");return XA.indexOf(e)>-1&&QA.indexOf(r)===-1||ZA.indexOf(n)>-1||eC.some((a=>n.indexOf(a)>-1))}function I0(t,e){const[r,n]=t.split("#"),a=e??"",o=r??"";let p;if(j0(a))p=go(a,o);else{const c=go(Sy,a),d=go(c,o).replace(Sy,"");p=o.startsWith("/")?d:d.substring(1)}return n?`${p}#${n}`:p}const tC=/^([a-z]+:\/\/|\/\/)/i;class Hh extends xr{}const Oc={},IE=new WeakMap,rC=[t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples",t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example",t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value",t=>t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example",t=>t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value",t=>t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"],nC={key:"$ref",plugin:(t,e,r,n)=>{const a=n.getInstance(),o=r.slice(0,-1);if(TE(o)||(V=>rC.some((Q=>Q(V))))(o))return;const{baseDoc:p}=n.getContext(r);if(typeof t!="string")return new Hh("$ref: must be a string (JSON-Ref)",{$ref:t,baseDoc:p,fullPath:r});const c=FE(t),d=c[0],E=c[1]||"";let x,k,P;try{x=p||d?DE(d,p):null}catch(V){return M0(V,{pointer:E,$ref:t,basePath:x,fullPath:r})}if((function(Q,J,re,me){let le=IE.get(me);le||(le={},IE.set(me,le));const ve=(function(je){return je.length===0?"":`/${je.map(qE).join("/")}`})(re),be=`${J||""}#${Q}`,ce=ve.replace(/allOf\/\d+\/?/g,""),_e=me.contextTree.get([]).baseDoc;if(J===_e&&F0(ce,Q))return!0;let Ae="";if(re.some((Oe=>(Ae=`${Ae}/${qE(Oe)}`,le[Ae]&&le[Ae].some((je=>F0(je,be)||F0(be,je)))))))return!0;le[ce]=(le[ce]||[]).concat(be)})(E,x,o,n)&&!a.useCircularStructures){const V=I0(t,x);return t===V?null:C.replace(r,V)}if(x==null?(P=D0(E),k=n.get(P),k===void 0&&(k=new Hh(`Could not resolve reference: ${t}`,{pointer:E,$ref:t,baseDoc:p,fullPath:r}))):(k=LE(x,E),k=k.__value!=null?k.__value:k.catch((V=>{throw M0(V,{pointer:E,$ref:t,baseDoc:p,fullPath:r})}))),k instanceof Error)return[C.remove(r),k];const R=I0(t,x),L=C.replace(o,k,{$$ref:R});if(x&&x!==p)return[L,C.context(o,{baseDoc:x})];try{if(!(function(Q,J){const re=[Q];return J.path.reduce(((le,ve)=>(re.push(le[ve]),le[ve])),Q),me(J.value);function me(le){return C.isObject(le)&&(re.indexOf(le)>=0||Object.keys(le).some((ve=>me(le[ve]))))}})(n.state,L)||a.useCircularStructures)return L}catch{return null}}},ME=Object.assign(nC,{docCache:Oc,absoluteify:DE,clearCache:function(e){e!==void 0?delete Oc[e]:Object.keys(Oc).forEach((r=>{delete Oc[r]}))},JSONRefError:Hh,wrapError:M0,getDoc:$E,split:FE,extractFromDoc:LE,fetchJSON:function(e){return fetch(e,{headers:{Accept:PE},loadSpec:!0}).then((r=>r.text())).then((r=>Pe.load(r)))},extract:R0,jsonPointerToArray:D0,unescapeJsonPointerToken:BE}),RE=ME;function DE(t,e){if(!tC.test(t)){if(!e)throw new Hh(`Tried to resolve a relative URL, without having a basePath. path: '${t}' basePath: '${e}'`);return go(e,t)}return t}function M0(t,e){let r;return r=t&&t.response&&t.response.body?`${t.response.body.code} ${t.response.body.message}`:t.message,new Hh(`Could not resolve reference: ${r}`,{...e,cause:t})}function FE(t){return(t+"").split("#")}function LE(t,e){const r=Oc[t];if(r&&!C.isPromise(r))try{const n=R0(e,r);return Object.assign(Promise.resolve(n),{__value:n})}catch(n){return Promise.reject(n)}return $E(t).then((n=>R0(e,n)))}function $E(t){const e=Oc[t];return e?C.isPromise(e)?e:Promise.resolve(e):(Oc[t]=ME.fetchJSON(t).then((r=>(Oc[t]=r,r))),Oc[t])}function R0(t,e){const r=D0(t);if(r.length<1)return e;const n=C.getIn(e,r);if(n===void 0)throw new Hh(`Could not resolve pointer: ${t} does not exist in document`,{pointer:t});return n}function D0(t){if(typeof t!="string")throw new TypeError("Expected a string, got a "+typeof t);return t[0]==="/"&&(t=t.substr(1)),t===""?[]:t.split("/").map(BE)}function BE(t){return typeof t!="string"?t:new URLSearchParams(`=${t.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function qE(t){return new URLSearchParams([["",t.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const aC=t=>!t||t==="/"||t==="#";function F0(t,e){if(aC(e))return!0;const r=t.charAt(e.length),n=e.slice(-1);return t.indexOf(e)===0&&(!r||r==="/"||r==="#")&&n!=="#"}const oC={key:"allOf",plugin:(t,e,r,n,a)=>{if(a.meta&&a.meta.$$ref)return;const o=r.slice(0,-1);if(TE(o))return;if(!Array.isArray(t)){const E=new TypeError("allOf must be an array");return E.fullPath=r,E}let p=!1,c=a.value;if(o.forEach((E=>{c&&(c=c[E])})),c={...c},Object.keys(c).length===0)return;delete c.allOf;const d=[];return d.push(n.replace(o,{})),t.forEach(((E,x)=>{if(!n.isObject(E)){if(p)return null;p=!0;const P=new TypeError("Elements in allOf must be objects");return P.fullPath=r,d.push(P)}d.push(n.mergeDeep(o,E));const k=(function(R,L,{specmap:V,getBaseUrlForNodePath:Q=re=>V.getContext([...L,...re]).baseDoc,targetKeys:J=["$ref","$$ref"]}={}){const re=[];return $l(R).forEach((function(){if(Yn()(J).call(J,this.key)&&typeof this.node=="string"){const le=this.path,ve=L.concat(this.path),be=I0(this.node,Q(le));re.push(V.replace(ve,be))}})),re})(E,r.slice(0,-1),{getBaseUrlForNodePath:P=>n.getContext([...r,x,...P]).baseDoc,specmap:n});d.push(...k)})),c.example&&d.push(n.remove([].concat(o,"example"))),d.push(n.mergeDeep(o,c)),c.$$ref||d.push(n.remove([].concat(o,"$$ref"))),d}},iC={key:"parameters",plugin:(t,e,r,n)=>{if(Array.isArray(t)&&t.length){const a=Object.assign([],t),o=r.slice(0,-1),p={...C.getIn(n.spec,o)};for(let c=0;c{const a={...t};for(const o in t)try{a[o].default=n.modelPropertyMacro(a[o])}catch(p){const c=new Error(p);return c.fullPath=r,c}return C.replace(r,a)}};class lC{constructor(e){this.root=L0(e||{})}set(e,r){const n=this.getParent(e,!0);if(!n)return void xy(this.root,r,null);const a=e[e.length-1],{children:o}=n;o[a]?xy(o[a],r,n):o[a]=L0(r,n)}get(e){if((e=e||[]).length<1)return this.root.value;let r,n,a=this.root;for(let o=0;o{if(!n)return n;const{children:o}=n;return!o[a]&&r&&(o[a]=L0(null,n)),o[a]}),this.root)}}function L0(t,e){return xy({children:{}},t,e)}function xy(t,e,r){return t.value=e||{},t.protoValue=r?{...r.protoValue,...t.value}:t.value,Object.keys(t.children).forEach((n=>{const a=t.children[n];t.children[n]=xy(a,a.value,t)})),t}const UE=()=>{};class cC{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,r){return e.filter(r)}constructor(e){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new lC,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),C,{getInstance:()=>this}),allowMetaPatches:!1},e),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(C.isFunction),this.patches.push(C.add([],this.spec)),this.patches.push(C.context([],this.context)),this.updatePatches(this.patches)}debug(e,...r){this.debugLevel===e&&console.log(...r)}verbose(e,...r){this.debugLevel==="verbose"&&console.log(`[${e}] `,...r)}wrapPlugin(e,r){const{pathDiscriminator:n}=this;let a,o=null;return e[this.pluginProp]?(o=e,a=e[this.pluginProp]):C.isFunction(e)?a=e:C.isObject(e)&&(a=(function(c){const d=(E,x)=>!Array.isArray(E)||E.every(((k,P)=>k===x[P]));return function*(x,k){const P={};for(const[L,V]of x.filter(C.isAdditiveMutation).entries()){if(!(Lthis.getMutationsForPlugin(e).length>0))}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map((e=>e.value)))}getPluginHistory(e){const r=this.constructor.getPluginName(e);return this.pluginHistory[r]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){const r=this.getPluginHistory(e);return r&&r[r.length-1]||{}}getPluginMutationIndex(e){const r=this.getPluginHistoryTip(e).mutationIndex;return typeof r!="number"?-1:r}updatePluginHistory(e,r){const n=this.constructor.getPluginName(e);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(r)}updatePatches(e){C.normalizeArray(e).forEach((r=>{if(r instanceof Error)this.errors.push(r);else try{if(!C.isObject(r))return void this.debug("updatePatches","Got a non-object patch",r);if(this.showDebug&&this.allPatches.push(r),C.isPromise(r.value))return this.promisedPatches.push(r),void this.promisedPatchThen(r);if(C.isContextPatch(r))return void this.setContext(r.path,r.value);C.isMutation(r)&&this.updateMutations(r)}catch(n){console.error(n),this.errors.push(n)}}))}updateMutations(e){typeof e.value=="object"&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});const r=C.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});r&&(this.mutations.push(e),this.state=r)}removePromisedPatch(e){const r=this.promisedPatches.indexOf(e);r<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(r,1)}promisedPatchThen(e){return e.value=e.value.then((r=>{const n={...e,value:r};this.removePromisedPatch(e),this.updatePatches(n)})).catch((r=>{this.removePromisedPatch(e),this.updatePatches(r)})),e.value}getMutations(e,r){return e=e||0,typeof r!="number"&&(r=this.mutations.length),this.mutations.slice(e,r)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const r=this.getPluginMutationIndex(e);return this.getMutations(r+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return C.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,r){return this.contextTree.set(e,r)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,r=this.nextPlugin();if(!r){const a=this.nextPromisedPatch();if(a)return a.then((()=>this.dispatch())).catch((()=>this.dispatch()));const o={spec:this.state,errors:this.errors};return this.showDebug&&(o.patches=this.allPatches),Promise.resolve(o)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(r,(e.pluginCount.get(r)||0)+1),e.pluginCount[r]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(r!==this.currentPlugin&&this.promisedPatches.length){const a=this.promisedPatches.map((o=>o.value));return Promise.all(a.map((o=>o.then(UE,UE)))).then((()=>this.dispatch()))}return(function(){e.currentPlugin=r;const o=e.getCurrentMutations(),p=e.mutations.length-1;try{if(r.isGenerator)for(const c of r(o,e.getLib()))n(c);else n(r(o,e.getLib()))}catch(c){console.error(c),n([Object.assign(Object.create(c),{plugin:r})])}finally{e.updatePluginHistory(r,{mutationIndex:p})}return e.dispatch()})();function n(a){a&&(a=C.fullyNormalizeArray(a),e.updatePatches(a,r))}}}const Kh={refs:RE,allOf:oC,parameters:iC,properties:sC};function zE(t,e={}){const{requestInterceptor:r,responseInterceptor:n}=e,a=t.withCredentials?"include":"same-origin";return o=>t({url:o,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:PE},credentials:a}).then((p=>p.body))}function $0(t,e){return e||typeof navigator>"u"||(e=navigator),e&&e.product==="ReactNative"?!(!t||typeof t!="object"||typeof t.uri!="string"):typeof File<"u"&&t instanceof File||typeof Blob<"u"&&t instanceof Blob||!!ArrayBuffer.isView(t)||t!==null&&typeof t=="object"&&typeof t.pipe=="function"}function VE(t,e){return Array.isArray(t)&&t.some((r=>$0(r,e)))}class B0 extends File{constructor(e,r="",n={}){super([e],r,n),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const uC=t=>":/?#[]@!$&'()*+,;=".indexOf(t)>-1,pC=t=>/^[a-z0-9\-._~]+$/i.test(t);function JE(t,e="reserved"){return[...t].map((r=>{if(pC(r)||uC(r)&&e==="unsafe")return r;const n=new TextEncoder;return Array.from(n.encode(r)).map((a=>`0${a.toString(16).toUpperCase()}`.slice(-2))).map((a=>`%${a}`)).join("")})).join("")}function q0(t){const{value:e}=t;return Array.isArray(e)?(function({key:n,value:a,style:o,explode:p,escape:c}){if(o==="simple")return a.map((d=>yo(d,c))).join(",");if(o==="label")return`.${a.map((d=>yo(d,c))).join(".")}`;if(o==="matrix")return a.map((d=>yo(d,c))).reduce(((d,E)=>!d||p?`${d||""};${n}=${E}`:`${d},${E}`),"");if(o==="form"){const d=p?`&${n}=`:",";return a.map((E=>yo(E,c))).join(d)}if(o==="spaceDelimited"){const d=p?`${n}=`:"";return a.map((E=>yo(E,c))).join(` ${d}`)}if(o==="pipeDelimited"){const d=p?`${n}=`:"";return a.map((E=>yo(E,c))).join(`|${d}`)}})(t):typeof e=="object"?(function({key:n,value:a,style:o,explode:p,escape:c}){const d=Object.keys(a);if(o==="simple")return d.reduce(((E,x)=>{const k=yo(a[x],c);return`${E?`${E},`:""}${x}${p?"=":","}${k}`}),"");if(o==="label")return d.reduce(((E,x)=>{const k=yo(a[x],c);return`${E?`${E}.`:"."}${x}${p?"=":"."}${k}`}),"");if(o==="matrix"&&p)return d.reduce(((E,x)=>`${E?`${E};`:";"}${x}=${yo(a[x],c)}`),"");if(o==="matrix")return d.reduce(((E,x)=>{const k=yo(a[x],c);return`${E?`${E},`:`;${n}=`}${x},${k}`}),"");if(o==="form")return d.reduce(((E,x)=>{const k=yo(a[x],c);return`${E?`${E}${p?"&":","}`:""}${x}${p?"=":","}${k}`}),"")})(t):(function({key:n,value:a,style:o,escape:p}){if(o==="simple")return yo(a,p);if(o==="label")return`.${yo(a,p)}`;if(o==="matrix")return`;${n}=${yo(a,p)}`;if(o==="form"||o==="deepObject")return yo(a,p)})(t)}function yo(t,e=!1){return Array.isArray(t)||t!==null&&typeof t=="object"?t=JSON.stringify(t):typeof t!="number"&&typeof t!="boolean"||(t=String(t)),e&&typeof t=="string"&&t.length>0?JE(t,e):t??""}const hC={form:",",spaceDelimited:"%20",pipeDelimited:"|"},dC={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function WE(t,e,r=!1){const{collectionFormat:n,allowEmptyValue:a,serializationOption:o,encoding:p}=e,c=typeof e!="object"||Array.isArray(e)?e:e.value,d=r?x=>x.toString():x=>encodeURIComponent(x),E=d(t);if(c===void 0&&a)return[[E,""]];if($0(c)||VE(c))return[[E,c]];if(o)return HE(t,c,r,o);if(p){if([typeof p.style,typeof p.explode,typeof p.allowReserved].some((x=>x!=="undefined"))){const{style:x,explode:k,allowReserved:P}=p;return HE(t,c,r,{style:x,explode:k,allowReserved:P})}if(typeof p.contentType=="string"){if(p.contentType.startsWith("application/json")){const k=d(typeof c=="string"?c:JSON.stringify(c));return[[E,new B0(k,"blob",{type:p.contentType})]]}const x=d(String(c));return[[E,new B0(x,"blob",{type:p.contentType})]]}return typeof c!="object"?[[E,d(c)]]:Array.isArray(c)&&c.every((x=>typeof x!="object"))?[[E,c.map(d).join(",")]]:[[E,d(JSON.stringify(c))]]}return typeof c!="object"?[[E,d(c)]]:Array.isArray(c)?n==="multi"?[[E,c.map(d)]]:[[E,c.map(d).join(dC[n||"csv"])]]:[[E,""]]}function HE(t,e,r,n){const a=n.style||"form",o=n.explode===void 0?a==="form":n.explode,p=!r&&(n&&n.allowReserved?"unsafe":"reserved"),c=E=>yo(E,p),d=r?E=>E:E=>c(E);return typeof e!="object"?[[d(t),c(e)]]:Array.isArray(e)?o?[[d(t),e.map(c)]]:[[d(t),e.map(c).join(hC[a])]]:a==="deepObject"?Object.keys(e).map((E=>[d(`${t}[${E}]`),c(e[E])])):o?Object.keys(e).map((E=>[d(E),c(e[E])])):[[d(t),Object.keys(e).map((E=>[`${d(E)},${c(e[E])}`])).join(",")]]}function KE(t){return((e,{encode:r=!0}={})=>{const n=(p,c,d)=>(Array.isArray(d)?d.reduce(((E,x)=>n(p,c,x)),p):d instanceof Date?p.append(c,d.toISOString()):typeof d=="object"?Object.entries(d).reduce(((E,[x,k])=>n(p,`${c}[${x}]`,k)),p):p.append(c,d),p),a=Object.entries(e).reduce(((p,[c,d])=>n(p,c,d)),new URLSearchParams),o=String(a);return r?o:decodeURIComponent(o)})(Object.keys(t).reduce(((e,r)=>{for(const[n,a]of WE(r,t[r]))e[n]=a instanceof B0?a.valueOf():a;return e}),{}),{encode:!1})}function U0(t={}){const{url:e="",query:r,form:n}=t;if(n){const a=Object.keys(n).some((p=>{const{value:c}=n[p];return $0(c)||VE(c)})),o=t.headers["content-type"]||t.headers["Content-Type"];if(a||/multipart\/form-data/i.test(o)){const p=(function(d){return Object.entries(d).reduce(((E,[x,k])=>{for(const[P,R]of WE(x,k,!0))if(Array.isArray(R))for(const L of R)if(ArrayBuffer.isView(L)){const V=new Blob([L]);E.append(P,V)}else E.append(P,L);else if(ArrayBuffer.isView(R)){const L=new Blob([R]);E.append(P,L)}else E.append(P,R);return E}),new FormData)})(t.form);t.formdata=p,t.body=p}else t.body=KE(n);delete t.form}if(r){const[a,o]=e.split("?");let p="";if(o){const d=new URLSearchParams(o);Object.keys(r).forEach((E=>d.delete(E))),p=String(d)}const c=((...d)=>{const E=d.filter((x=>x)).join("&");return E?`?${E}`:""})(p,KE(r));t.url=a+c,delete t.query}return t}function fC(t={}){return typeof t.entries!="function"?{}:Array.from(t.entries()).reduce(((e,[r,n])=>(e[r]=(function(o){return Yn()(o).call(o,", ")?o.split(", "):o})(n),e)),{})}function GE(t,e,{loadSpec:r=!1}={}){const n={ok:t.ok,url:t.url||e,status:t.status,statusText:t.statusText,headers:fC(t.headers)},a=n.headers["content-type"],o=r||((p="")=>/(json|xml|yaml|text)\b/.test(p))(a);return(o?t.text:t.blob||t.buffer).call(t).then((p=>{if(n.text=p,n.data=p,o)try{const c=(function(E,x){if(x){if(x.indexOf("application/json")===0||x.indexOf("+json")>0)return JSON.parse(E);if(x.indexOf("application/xml")===0||x.indexOf("+xml")>0)return E}return Pe.load(E)})(p,a);n.body=c,n.obj=c}catch(c){n.parseError=c}return n}))}async function Mf(t,e={}){typeof t=="object"&&(t=(e=t).url),e.headers=e.headers||{},(e=U0(e)).headers&&Object.keys(e.headers).forEach((a=>{const o=e.headers[a];typeof o=="string"&&(e.headers[a]=o.replace(/\n+/g," "))})),e.requestInterceptor&&(e=await e.requestInterceptor(e)||e);const r=e.headers["content-type"]||e.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&(delete e.headers["content-type"],delete e.headers["Content-Type"]);try{n=await(e.userFetch||fetch)(e.url,e),n=await GE(n,t,e),e.responseInterceptor&&(n=await e.responseInterceptor(n)||n)}catch(a){if(!n)throw a;const o=new Error(n.statusText||`response status is ${n.status}`);throw o.status=n.status,o.statusCode=n.status,o.responseError=a,o}if(!n.ok){const a=new Error(n.statusText||`response status is ${n.status}`);throw a.status=n.status,a.statusCode=n.status,a.response=n,a}return n}const z0=t=>{const{baseDoc:e,url:r}=t,n=e??r??"";return typeof globalThis.document?.baseURI=="string"?String(new URL(n,globalThis.document.baseURI)):n},YE=t=>{const{fetch:e,http:r}=t;return e||r||Mf};async function V0(t){const{spec:e,mode:r,allowMetaPatches:n=!0,pathDiscriminator:a,modelPropertyMacro:o,parameterMacro:p,requestInterceptor:c,responseInterceptor:d,skipNormalization:E=!1,useCircularStructures:x,strategies:k}=t,P=z0(t),R=YE(t),L=k.find((V=>V.match(e)));return(async function(Q){P&&(Kh.refs.docCache[P]=Q),Kh.refs.fetchJSON=zE(R,{requestInterceptor:c,responseInterceptor:d});const J=[Kh.refs];typeof p=="function"&&J.push(Kh.parameters),typeof o=="function"&&J.push(Kh.properties),r!=="strict"&&J.push(Kh.allOf);const re=await(function(le){return new cC(le).dispatch()})({spec:Q,context:{baseDoc:P},plugins:J,allowMetaPatches:n,pathDiscriminator:a,parameterMacro:p,modelPropertyMacro:o,useCircularStructures:x});return E||(re.spec=L.normalize(re.spec)),re})(e)}function J0(t,e){for(var r=e,n=0;nt.replace(/\W/gi,"_"),EC=new Set(["connect","delete","get","head","options","patch","post","put","query","trace"]);function Df(t,e,r="",{v2OperationIdCompatibilityMode:n}={}){return!t||typeof t!="object"?null:(t.operationId||"").replace(/\s/g,"").length?eS(t.operationId):(function(o,p,{v2OperationIdCompatibilityMode:c}={}){if(c){let d=`${p.toLowerCase()}_${o}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return d=d||`${o.substring(1)}_${p}`,d.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${EC.has(p.toLowerCase())?p.toLowerCase():p}${eS(o)}`})(e,r,{v2OperationIdCompatibilityMode:n})}function K0(t){const{spec:e}=t,{paths:r}=e,n={};if(!r||e.$$normalized)return t;for(const p in r){var a;const c=r[p];if(c==null||!Yn()(a=["object","function"]).call(a,typeof c))continue;const d=c.parameters;for(const E in c){var o;const x=c[E];if(x==null||!Yn()(o=["object","function"]).call(o,typeof x))continue;const k=Df(x,p,E);if(k){n[k]?n[k].push(x):n[k]=[x];const P=n[k];if(P.length>1)P.forEach(((R,L)=>{R.__originalOperationId=R.__originalOperationId||R.operationId,R.operationId=`${k}${L+1}`}));else if(x.operationId!==void 0){const R=P[0];R.__originalOperationId=R.__originalOperationId||x.operationId,R.operationId=k}}if(E!=="parameters"){const P=[],R={};for(const L in e)L!=="produces"&&L!=="consumes"&&L!=="security"||(R[L]=e[L],P.push(R));if(d&&(R.parameters=d,P.push(R)),P.length)for(const L of P)for(const V in L)if(Array.isArray(x[V])){if(V==="parameters")for(const Q of L[V])x[V].some((J=>!(!Ls(J)&&!Ls(Q))&&(J===Q||["name","$ref","$$ref"].some((re=>typeof J[re]=="string"&&typeof Q[re]=="string"&&J[re]===Q[re])))))||x[V].push(Q)}else x[V]=L[V]}}}return e.$$normalized=!0,t}const SC={name:"generic",match:()=>!0,normalize(t){const{spec:e}=K0({spec:t});return e},resolve:async t=>V0(t)},G0=SC,tS=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},Y0=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},rS=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.2\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},nS=t=>tS(t)||Y0(t)||rS(t),xC={name:"openapi-2",match:t=>(e=>{try{const{swagger:r}=e;return r==="2.0"}catch{return!1}})(t),normalize(t){const{spec:e}=K0({spec:t});return e},resolve:async t=>(async function(r){return V0(r)})(t)},X0=xC,_C={name:"openapi-3-0",match:t=>tS(t),normalize(t){const{spec:e}=K0({spec:t});return e},resolve:async t=>(async function(r){return V0(r)})(t)},Q0=_C;var Ge=Be(34035);function _y(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}var OC=(function(){function t(e,r){this.xf=r,this.f=e,this.all=!0}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.f(r)||(this.all=!1,e=_y(this.xf["@@transducer/step"](e,!1))),e},t})();function kC(t){return function(e){return new OC(t,e)}}var AC=Tr(Nu(["all"],kC,(function(e,r){for(var n=0;ne.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>e.element==="annotation"))}get warnings(){return this.children.filter((e=>e.element==="annotation"&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>e.element==="annotation"&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>e.element==="annotation")).isEmpty}replaceResult(e){const{result:r}=this;if(Iu(r))return!1;const n=this.content.findIndex((a=>a===r));return n!==-1&&(this.content[n]=e,!0)}}const $s=PC,NC=(t,e)=>typeof e=="object"&&e!==null&&t in e&&typeof e[t]=="function",TC=t=>typeof t=="object"&&t!=null&&"_storedElement"in t&&typeof t._storedElement=="string"&&"_content"in t,IC=(t,e)=>typeof e=="object"&&e!==null&&"primitive"in e&&typeof e.primitive=="function"&&e.primitive()===t,MC=(t,e)=>typeof e=="object"&&e!==null&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof Ge.wE)&&e.classes.includes(t),Mu=(t,e)=>typeof e=="object"&&e!==null&&"element"in e&&e.element===t,Qt=t=>t({hasMethod:NC,hasBasicElementProps:TC,primitiveEq:IC,isElementType:Mu,hasClass:MC}),da=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.Hg||t(r)&&e(void 0,r))),Ir=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.Om||t(r)&&e("string",r))),eb=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.kT||t(r)&&e("number",r))),tb=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.Os||t(r)&&e("null",r))),Ff=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.bd||t(r)&&e("boolean",r))),hn=Qt((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Ge.Sh||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),vo=Qt((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Ge.wE&&!(n instanceof Ge.Sh)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Bs=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ge.Pr||t(n)&&e("member",n)&&r(void 0,n))),aS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ge.Ft||t(n)&&e("link",n)&&r(void 0,n))),oS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ge.sI||t(n)&&e("ref",n)&&r(void 0,n))),RC=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Oy||t(n)&&e("annotation",n)&&r("array",n))),DC=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ky||t(n)&&e("comment",n)&&r("string",n))),iS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $s||t(n)&&e("parseResult",n)&&r("array",n))),$p=t=>Mu("object",t)||Mu("array",t)||Mu("boolean",t)||Mu("number",t)||Mu("string",t)||Mu("null",t)||Mu("member",t),Gh=t=>!!da(t)&&Number.isInteger(t.startPositionRow)&&Number.isInteger(t.startPositionColumn)&&Number.isInteger(t.startIndex)&&Number.isInteger(t.endPositionRow)&&Number.isInteger(t.endPositionColumn)&&Number.isInteger(t.endIndex),FC=(t,e)=>{if(t.length===0)return!0;const r=e.attributes.get("symbols");return!!vo(r)&&Z0(gy(r.toValue()),t)},Yh=(t,e)=>t.length===0||Z0(gy(e.classes.toValue()),t),kc=function(){return!0},rb=function(){return!1},Ay=(t,e,r)=>{const n=t[e];if(n!=null){if(!r&&typeof n=="function")return n;const a=r?n.leave:n.enter;if(typeof a=="function")return a}else{const a=r?t.leave:t.enter;if(a!=null){if(typeof a=="function")return a;const o=a[e];if(typeof o=="function")return o}}return null},on={},Lf=t=>t?.type,sS=t=>typeof Lf(t)=="string",nb=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),Cy=(t,{visitFnGetter:e=Ay,nodeTypeGetter:r=Lf,breakSymbol:n=on,deleteNodeSymbol:a=null,skipVisitingNodeSymbol:o=!1,exposeEdits:p=!1}={})=>{const c=Symbol("skip"),d=new Array(t.length).fill(c);return{enter(E,x,k,P,R,L){let V=E,Q=!1;const J={...L,replaceWith(re,me){L.replaceWith(re,me),V=re}};for(let re=0;re{const c=Symbol("skip"),d=new Array(t.length).fill(c);return{async enter(E,x,k,P,R,L){let V=E,Q=!1;const J={...L,replaceWith(re,me){L.replaceWith(re,me),V=re}};for(let re=0;re{const R=r||{};let L,V,Q=Array.isArray(t),J=[t],re=-1,me=[],le=t;const ve=[],be=[];do{re+=1;const Ae=re===J.length;let xe;const Oe=Ae&&me.length!==0;if(Ae){if(xe=be.length===0?void 0:ve.pop(),le=V,V=be.pop(),Oe)if(Q){le=le.slice();let G=0;for(const[de,Ne]of me){const Ye=de-G;Ne===o?(le.splice(Ye,1),G+=1):le[Ye]=Ne}}else{le=x(le);for(const[G,de]of me)le[G]=de}re=L.index,J=L.keys,me=L.edits,Q=L.inArray,L=L.prev}else if(V!==o&&V!==void 0){if(xe=Q?re:J[re],le=V[xe],le===o||le===void 0)continue;ve.push(xe)}let je;if(!Array.isArray(le)){var ce;if(!E(le))throw new xr(`Invalid AST Node: ${String(le)}`,{node:le});if(k&&be.includes(le)){typeof P=="function"&&P(le,xe,V,ve,be),ve.pop();continue}const G=c(e,d(le),Ae);if(G){for(const[Ne,Ye]of Object.entries(n))e[Ne]=Ye;const de={replaceWith(Ne,Ye){typeof Ye=="function"?Ye(Ne,le,xe,V,ve,be):V&&(V[xe]=Ne),Ae||(le=Ne)}};je=G.call(e,le,xe,V,ve,be,de)}if(typeof((ce=je)===null||ce===void 0?void 0:ce.then)=="function")throw new xr("Async visitor not supported in sync mode",{visitor:e,visitFn:G});if(je===a)break;if(je===p){if(!Ae){ve.pop();continue}}else if(je!==void 0&&(me.push([xe,je]),!Ae)){if(!E(je)){ve.pop();continue}le=je}}var _e;je===void 0&&Oe&&me.push([xe,le]),!Ae&&(L={inArray:Q,index:re,keys:J,edits:me,prev:L},Q=Array.isArray(le),J=Q?le:(_e=R[d(le)])!==null&&_e!==void 0?_e:[],re=-1,me=[],V!==o&&V!==void 0&&be.push(V),V=le)}while(L!==void 0);return me.length!==0?me[me.length-1][1]:t};ab[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:a=on,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:p=!1,visitFnGetter:c=Ay,nodeTypeGetter:d=Lf,nodePredicate:E=sS,nodeCloneFn:x=nb,detectCycles:k=!0,detectCyclesCallback:P=null}={})=>{const R=r||{};let L,V,Q=Array.isArray(t),J=[t],re=-1,me=[],le=t;const ve=[],be=[];do{re+=1;const _e=re===J.length;let Ae;const xe=_e&&me.length!==0;if(_e){if(Ae=be.length===0?void 0:ve.pop(),le=V,V=be.pop(),xe)if(Q){le=le.slice();let je=0;for(const[G,de]of me){const Ne=G-je;de===o?(le.splice(Ne,1),je+=1):le[Ne]=de}}else{le=x(le);for(const[je,G]of me)le[je]=G}re=L.index,J=L.keys,me=L.edits,Q=L.inArray,L=L.prev}else if(V!==o&&V!==void 0){if(Ae=Q?re:J[re],le=V[Ae],le===o||le===void 0)continue;ve.push(Ae)}let Oe;if(!Array.isArray(le)){if(!E(le))throw new xr(`Invalid AST Node: ${String(le)}`,{node:le});if(k&&be.includes(le)){typeof P=="function"&&P(le,Ae,V,ve,be),ve.pop();continue}const je=c(e,d(le),_e);if(je){for(const[de,Ne]of Object.entries(n))e[de]=Ne;const G={replaceWith(de,Ne){typeof Ne=="function"?Ne(de,le,Ae,V,ve,be):V&&(V[Ae]=de),_e||(le=de)}};Oe=await je.call(e,le,Ae,V,ve,be,G)}if(Oe===a)break;if(Oe===p){if(!_e){ve.pop();continue}}else if(Oe!==void 0&&(me.push([Ae,Oe]),!_e)){if(!E(Oe)){ve.pop();continue}le=Oe}}var ce;Oe===void 0&&xe&&me.push([Ae,le]),!_e&&(L={inArray:Q,index:re,keys:J,edits:me,prev:L},Q=Array.isArray(le),J=Q?le:(ce=R[d(le)])!==null&&ce!==void 0?ce:[],re=-1,me=[],V!==o&&V!==void 0&&be.push(V),V=le)}while(L!==void 0);return me.length!==0?me[me.length-1][1]:t};const lS=class extends xr{value;constructor(e,r){super(e,r),r!==void 0&&(this.value=r.value)}},LC=class extends lS{},$C=class extends lS{},BC=Tr((function(e,r){return Pf((function(n,a){return n[a]=e(r[a],a,r),n}),{},Rp(r))})),jy=_r((function(e){return e==null}));var qC=Tr((function(e,r){if(e.length===0||jy(r))return!1;for(var n=r,a=0;a{const r=Jh(t,e);return BC((n=>{if(Ls(n)&&$f("$ref",n)&&VC(Lp,"$ref",n)){const a=ro(["$ref"],n),o=cS("#/",a);return ro(o.split("/"),r)}return Ls(n)?Ru(n,r):n}),t)},ob=(t,e)=>(t.startPositionRow=e?.startPositionRow,t.startPositionColumn=e?.startPositionColumn,t.startIndex=e?.startIndex,t.endPositionRow=e?.endPositionRow,t.endPositionColumn=e?.endPositionColumn,t.endIndex=e?.endIndex,t),hr=(t,e={})=>{const{visited:r=new WeakMap}=e,n={...e,visited:r};if(r.has(t))return r.get(t);if(t instanceof Ge.KeyValuePair){const{key:a,value:o}=t,p=da(a)?hr(a,n):a,c=da(o)?hr(o,n):o,d=new Ge.KeyValuePair(p,c);return r.set(t,d),d}if(t instanceof Ge.ot){const a=c=>hr(c,n),o=[...t].map(a),p=new Ge.ot(o);return r.set(t,p),p}if(t instanceof Ge.G6){const a=c=>hr(c,n),o=[...t].map(a),p=new Ge.G6(o);return r.set(t,p),p}if(da(t)){const a=no(t);if(r.set(t,a),t.content)if(da(t.content))a.content=hr(t.content,n);else if(t.content instanceof Ge.KeyValuePair)a.content=hr(t.content,n);else if(Array.isArray(t.content)){const o=p=>hr(p,n);a.content=t.content.map(o)}else a.content=t.content;else a.content=t.content;return a}throw new LC("Value provided to cloneDeep function couldn't be cloned",{value:t})};hr.safe=t=>{try{return hr(t)}catch{return t}};const uS=t=>{const{key:e,value:r}=t;return new Ge.KeyValuePair(e,r)},pS=t=>{const e=new t.constructor;if(e.element=t.element,Gh(t)&&ob(e,t),t.meta.length>0&&(e._meta=hr(t.meta)),t.attributes.length>0&&(e._attributes=hr(t.attributes)),da(t.content)){const r=t.content;e.content=pS(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof Ge.KeyValuePair?e.content=uS(t.content):e.content=t.content;return e},no=t=>{if(t instanceof Ge.KeyValuePair)return uS(t);if(t instanceof Ge.ot)return(e=>{const r=[...e];return new Ge.ot(r)})(t);if(t instanceof Ge.G6)return(e=>{const r=[...e];return new Ge.G6(r)})(t);if(da(t))return pS(t);throw new $C("Value provided to cloneShallow function couldn't be cloned",{value:t})};no.safe=t=>{try{return no(t)}catch{return t}};const Xh=t=>hn(t)?"ObjectElement":vo(t)?"ArrayElement":Bs(t)?"MemberElement":Ir(t)?"StringElement":Ff(t)?"BooleanElement":eb(t)?"NumberElement":tb(t)?"NullElement":aS(t)?"LinkElement":oS(t)?"RefElement":void 0,hS=t=>da(t)?no(t):nb(t),dS=mo(Xh,Lp),Bl={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class fS{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=rb,returnOnTrue:r,returnOnFalse:n}={}){this.result=[],this.predicate=e,this.returnOnTrue=r,this.returnOnFalse=n}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const Pa=(t,e,{keyMap:r=Bl,...n}={})=>ab(t,e,{keyMap:r,nodeTypeGetter:Xh,nodePredicate:dS,nodeCloneFn:hS,...n});Pa[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=Bl,...n}={})=>ab[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:Xh,nodePredicate:dS,nodeCloneFn:hS,...n});const mS=t=>typeof t?.type=="string"?t.type:Xh(t),gS={EphemeralObject:["content"],EphemeralArray:["content"],...Bl},yS=(t,e,{keyMap:r=gS,...n}={})=>Pa(t,e,{keyMap:r,nodeTypeGetter:mS,nodePredicate:kc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});yS[Symbol.for("nodejs.util.promisify.custom")]=async(t,{keyMap:e=gS,...r}={})=>Pa[Symbol.for("nodejs.util.promisify.custom")](t,visitor,{keyMap:e,nodeTypeGetter:mS,nodePredicate:kc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const KC=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}},GC=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class YC{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const r=new GC(e.content);return this.references.set(e,r),r}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const r=new KC(e.content);return this.references.set(e,r),r}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...r){var n;const a=r[3];return((n=a[a.length-1])===null||n===void 0?void 0:n.type)==="EphemeralObject"?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Ir(e.href)?e.href.toValue():""}}const Et=t=>da(t)?Ir(t)||eb(t)||Ff(t)||tb(t)?t.toValue():yS(t,new YC):t,XC=ha((function(e,r,n){var a,o={};for(a in n=n||{},r=r||{})ts(a,r)&&(o[a]=ts(a,n)?e(a,r[a],n[a]):r[a]);for(a in n)ts(a,n)&&!ts(a,o)&&(o[a]=n[a]);return o})),QC=ha((function t(e,r,n){return XC((function(a,o,p){return my(o)&&my(p)?t(e,o,p):e(a,o,p)}),r,n)})),Py=Tr((function(e,r){return QC((function(n,a,o){return o}),e,r)})),ZC=kf(0,-1),ej=Tr((function(e,r){return e.apply(this,r)})),tj=If(Fp);var rj=_r((function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():Dl(e)?[]:Of(e)?"":my(e)?{}:oE(e)?(function(){return arguments})():(function(n){var a=Object.prototype.toString.call(n);return a==="[object Uint8ClampedArray]"||a==="[object Int8Array]"||a==="[object Uint8Array]"||a==="[object Int16Array]"||a==="[object Uint16Array]"||a==="[object Int32Array]"||a==="[object Uint32Array]"||a==="[object Float32Array]"||a==="[object Float64Array]"||a==="[object BigInt64Array]"||a==="[object BigUint64Array]"})(e)?e.constructor.from(""):void 0}));const nj=rj,Bf=_r((function(e){return e!=null&&Pu(e,nj(e))})),vS=ja(1,Fp(Array.isArray)?Array.isArray:mo(Fs,Dp("Array"))),aj=Rf(vS,Bf);var oj=ja(3,(function(t,e,r){var n=ro(t,r),a=ro(ZC(t),r);if(!tj(n)&&!aj(t)){var o=tE(n,a);return ej(o,e)}}));const qf=oj;class bS extends Ge.g${constructor(){super(),this.register("annotation",Oy),this.register("comment",ky),this.register("parseResult",$s)}}const ij=new bS,Ac=t=>{const e=new bS;return Ls(t)&&e.use(t),e},wS=ij,ES=()=>({predicates:{...B},namespace:wS}),SS={toolboxCreator:ES,visitorOptions:{nodeTypeGetter:Xh,exposeEdits:!0}},ql=(t,e,r={})=>{if(e.length===0)return t;const n=Py(SS,r),{toolboxCreator:a,visitorOptions:o}=n,p=a(),c=e.map((x=>x(p))),d=Cy(c.map(uy({},"visitor")),{...o});c.forEach(qf(["pre"],[]));const E=Pa(t,d,o);return c.forEach(qf(["post"],[])),E};ql[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,r={})=>{if(e.length===0)return t;const n=Py(SS,r),{toolboxCreator:a,visitorOptions:o}=n,p=a(),c=e.map((P=>P(p))),d=Cy[Symbol.for("nodejs.util.promisify.custom")],E=Pa[Symbol.for("nodejs.util.promisify.custom")],x=d(c.map(uy({},"visitor")),{...o});await Promise.allSettled(c.map(qf(["pre"],[])));const k=await E(t,x,o);return await Promise.allSettled(c.map(qf(["post"],[]))),k};const sj=(t,{Type:e,plugins:r=[]})=>{const n=new e(t);return da(t)&&(t.meta.length>0&&(n.meta=hr(t.meta)),t.attributes.length>0&&(n.attributes=hr(t.attributes))),ql(n,r,{toolboxCreator:ES,visitorOptions:{nodeTypeGetter:Xh}})},qs=t=>(e,r={})=>sj(e,{...r,Type:t});Ge.Sh.refract=qs(Ge.Sh),Ge.wE.refract=qs(Ge.wE),Ge.Om.refract=qs(Ge.Om),Ge.bd.refract=qs(Ge.bd),Ge.Os.refract=qs(Ge.Os),Ge.kT.refract=qs(Ge.kT),Ge.Ft.refract=qs(Ge.Ft),Ge.sI.refract=qs(Ge.sI),Oy.refract=qs(Oy),ky.refract=qs(ky),$s.refract=qs($s);const Ny=(t,e=new WeakMap)=>(Bs(t)?(e.set(t.key,t),Ny(t.key,e),e.set(t.value,t),Ny(t.value,e)):t.children.forEach((r=>{e.set(r,t),Ny(r,e)})),e),lj=class{element;edges;constructor({element:e}){this.element=e}transclude(e,r){var n;if(e===this.element)return r;if(e===r)return this.element;this.edges=(n=this.edges)!==null&&n!==void 0?n:Ny(this.element);const a=this.edges.get(e);return Iu(a)?void 0:(hn(a)?((o,p,c)=>{const d=c.get(o);hn(d)&&(d.content=d.map(((E,x,k)=>k===o?(c.delete(o),c.set(p,d),p):k)))})(e,r,this.edges):vo(a)?((o,p,c)=>{const d=c.get(o);vo(d)&&(d.content=d.map((E=>E===o?(c.delete(o),c.set(p,d),p):E)))})(e,r,this.edges):Bs(a)&&((o,p,c)=>{const d=c.get(o);Bs(d)&&(d.key===o&&(d.key=p,c.delete(o),c.set(p,d)),d.value===o&&(d.value=p,c.delete(o),c.set(p,d)))})(e,r,this.edges),this.element)}},rs=t=>{const e=t.indexOf("#");return(r=>{try{const n=r.startsWith("#")?r.slice(1):r;return decodeURIComponent(n)}catch{return r}})(e===-1?"#":t.substring(e))},ns=function(){const e=Br,r=Ni,n=this,a="parser.js: Parser(): ";n.ast=void 0,n.stats=void 0,n.trace=void 0,n.callbacks=[];let o,p,c,d,E,x,k,P=0,R=0,L=0,V=0,Q=0,J=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};n.parse=(ve,be,ce,_e)=>{const Ae=`${a}parse(): `;P=0,R=0,L=0,V=0,Q=0,o=void 0,p=void 0,c=void 0,d=void 0,J.refresh(),E=void 0,x=void 0,k=void 0,d=r.stringToChars(ce),o=ve.rules,p=ve.udts;const xe=be.toLowerCase();let Oe;for(const G in o)if(o.hasOwnProperty(G)&&xe===o[G].lower){Oe=o[G].index;break}if(Oe===void 0)throw new Error(`${Ae}start rule name '${startRule}' not recognized`);(()=>{const G=`${a}initializeCallbacks(): `;let de,Ne;for(E=[],x=[],de=0;de{if(be.phraseLength>ce){let Ae=`${a}opRNM(${ve.name}): callback function error: `;throw Ae+=`sysData.phraseLength: ${be.phraseLength}`,Ae+=` must be <= remaining chars: ${ce}`,new Error(Ae)}switch(be.state){case e.ACTIVE:if(!_e)throw new Error(`${a}opRNM(${ve.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:be.phraseLength=0;break;case e.MATCH:be.phraseLength===0&&(be.state=e.EMPTY);break;case e.NOMATCH:be.phraseLength=0;break;default:throw new Error(`${a}opRNM(${ve.name}): callback function return error. Unrecognized return state: ${be.state}`)}},me=(ve,be)=>{let ce,_e,Ae;const xe=c[ve],Oe=p[xe.index];J.UdtIndex=Oe.index,P||(Ae=n.ast&&n.ast.udtDefined(xe.index),Ae&&(_e=o.length+xe.index,ce=n.ast.getLength(),n.ast.down(_e,Oe.name)));const je=d.length-be;x[xe.index](J,d,be,k),((G,de,Ne)=>{if(de.phraseLength>Ne){let Ye=`${a}opUDT(${G.name}): callback function error: `;throw Ye+=`sysData.phraseLength: ${de.phraseLength}`,Ye+=` must be <= remaining chars: ${Ne}`,new Error(Ye)}switch(de.state){case e.ACTIVE:throw new Error(`${a}opUDT(${G.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!G.empty)throw new Error(`${a}opUDT(${G.name}) may not return EMPTY.`);de.phraseLength=0;break;case e.MATCH:if(de.phraseLength===0){if(!G.empty)throw new Error(`${a}opUDT(${G.name}) may not return EMPTY.`);de.state=e.EMPTY}break;case e.NOMATCH:de.phraseLength=0;break;default:throw new Error(`${a}opUDT(${G.name}): callback function return error. Unrecognized return state: ${de.state}`)}})(Oe,J,je),P||Ae&&(J.state===e.NOMATCH?n.ast.setLength(ce):n.ast.up(_e,Oe.name,be,J.phraseLength))},le=(ve,be)=>{const ce=`${a}opExecute(): `,_e=c[ve];switch(V+=1,R>L&&(L=R),R+=1,J.refresh(),n.trace&&n.trace.down(_e,be),_e.type){case e.ALT:((Ae,xe)=>{const Oe=c[Ae];for(let je=0;je{let Oe,je,G,de;const Ne=c[Ae];n.ast&&(je=n.ast.getLength()),Oe=!0,G=xe,de=0;for(let Ye=0;Ye{let Oe,je,G,de;const Ne=c[Ae];if(Ne.max===0)return J.state=e.EMPTY,void(J.phraseLength=0);for(je=xe,G=0,de=0,n.ast&&(Oe=n.ast.getLength());!(je>=d.length)&&(le(Ae+1,je),J.state!==e.NOMATCH)&&J.state!==e.EMPTY&&(de+=1,G+=J.phraseLength,je+=J.phraseLength,de!==Ne.max););J.state===e.EMPTY||de>=Ne.min?(J.state=G===0?e.EMPTY:e.MATCH,J.phraseLength=G):(J.state=e.NOMATCH,J.phraseLength=0,n.ast&&n.ast.setLength(Oe))})(ve,be);break;case e.RNM:((Ae,xe)=>{let Oe,je,G;const de=c[Ae],Ne=o[de.index],Ye=E[Ne.index];if(P||(je=n.ast&&n.ast.ruleDefined(de.index),je&&(Oe=n.ast.getLength(),n.ast.down(de.index,o[de.index].name))),Ye){const ht=d.length-xe;Ye(J,d,xe,k),re(Ne,J,ht,!0),J.state===e.ACTIVE&&(G=c,c=Ne.opcodes,le(0,xe),c=G,Ye(J,d,xe,k),re(Ne,J,ht,!1))}else G=c,c=Ne.opcodes,le(0,xe),c=G;P||je&&(J.state===e.NOMATCH?n.ast.setLength(Oe):n.ast.up(de.index,Ne.name,xe,J.phraseLength))})(ve,be);break;case e.TRG:((Ae,xe)=>{const Oe=c[Ae];J.state=e.NOMATCH,xe{const Oe=c[Ae],je=Oe.string.length;if(J.state=e.NOMATCH,xe+je<=d.length){for(let G=0;G{let Oe;const je=c[Ae];J.state=e.NOMATCH;const G=je.string.length;if(G!==0){if(xe+G<=d.length){for(let de=0;de=65&&Oe<=90&&(Oe+=32),Oe!==je.string[de])return;J.state=e.MATCH,J.phraseLength=G}}else J.state=e.EMPTY})(ve,be);break;case e.UDT:me(ve,be);break;case e.AND:((Ae,xe)=>{switch(P+=1,le(Ae+1,xe),P-=1,J.phraseLength=0,J.state){case e.EMPTY:case e.MATCH:J.state=e.EMPTY;break;case e.NOMATCH:J.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${J.state}`)}})(ve,be);break;case e.NOT:((Ae,xe)=>{switch(P+=1,le(Ae+1,xe),P-=1,J.phraseLength=0,J.state){case e.EMPTY:case e.MATCH:J.state=e.NOMATCH;break;case e.NOMATCH:J.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${J.state}`)}})(ve,be);break;default:throw new Error(`${ce}unrecognized operator`)}P||be+J.phraseLength>Q&&(Q=be+J.phraseLength),n.stats&&n.stats.collect(_e,J),n.trace&&n.trace.up(_e,J.state,be,J.phraseLength),R-=1}},ib=function(){const e=Br,r=Ni,n=this;let a,o,p,c=0;const d=[],E=[],x=[];function k(P){let R="";for(;P-- >0;)R+=" ";return R}n.callbacks=[],n.init=(P,R,L)=>{let V;E.length=0,x.length=0,c=0,a=P,o=R,p=L;const Q=[];for(V=0;V!!d[P],n.udtDefined=P=>!!d[a.length+P],n.down=(P,R)=>{const L=x.length;return E.push(L),x.push({name:R,thisIndex:L,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:P,phraseIndex:void 0,phraseLength:void 0,stack:E.length}),L},n.up=(P,R,L,V)=>{const Q=x.length,J=E.pop();return x.push({name:R,thisIndex:Q,thatIndex:J,state:e.SEM_POST,callbackIndex:P,phraseIndex:L,phraseLength:V,stack:E.length}),x[J].thatIndex=Q,x[J].phraseIndex=L,x[J].phraseLength=V,Q},n.translate=P=>{let R,L;for(let V=0;V{x.length=P,E.length=P>0?x[P-1].stack:0},n.getLength=()=>x.length,n.toXml=()=>{let P="",R=0;return P+=` +`,P+=` +`,P+=` +`,P+=k(R+2),P+=r.charsToString(p),P+=` +`,x.forEach((L=>{L.state===e.SEM_PRE?(R+=1,P+=k(R),P+=` +`,P+=k(R+2),P+=r.charsToString(p,L.phraseIndex,L.phraseLength),P+=` +`):(P+=k(R),P+=` +`,R-=1)})),P+=` +`,P}},cj=function(){const e=Br,r=Ni,n="parser.js: Trace(): ";let a,o,p,c="",d=0;const E=this,x=P=>{let R="",L=0;if(P>=0)for(;P--;)L+=1,L===5?(R+="|",L=0):R+=".";return R};E.init=(P,R,L)=>{o=P,p=R,a=L};const k=P=>{let R;switch(P.type){case e.ALT:R="ALT";break;case e.CAT:R="CAT";break;case e.REP:R=P.max===1/0?`REP(${P.min},inf)`:`REP(${P.min},${P.max})`;break;case e.RNM:R=`RNM(${o[P.index].name})`;break;case e.TRG:R=`TRG(${P.min},${P.max})`;break;case e.TBS:R=P.string.length>6?`TBS(${r.charsToString(P.string,0,3)}...)`:`TBS(${r.charsToString(P.string,0,6)})`;break;case e.TLS:R=P.string.length>6?`TLS(${r.charsToString(P.string,0,3)}...)`:`TLS(${r.charsToString(P.string,0,6)})`;break;case e.UDT:R=`UDT(${p[P.index].name})`;break;case e.AND:R="AND";break;case e.NOT:R="NOT";break;default:throw new Error(`${n}Trace: opName: unrecognized opcode`)}return R};E.down=(P,R)=>{const L=x(d),V=Math.min(100,a.length-R);let Q=r.charsToString(a,R,V);V{const Q=`${n}trace.up: `;d-=1;const J=x(d);let re,me,le;switch(R){case e.EMPTY:le="|E|",me="''";break;case e.MATCH:le="|M|",re=Math.min(100,V),me=rec},uj=function(){const e=Br;let r,n,a;const o=[],p=[],c=[];this.init=(V,Q)=>{r=V,n=Q,R()},this.collect=(V,Q)=>{L(a,Q.state,Q.phraseLength),L(o[V.type],Q.state,Q.phraseLength),V.type===e.RNM&&L(p[V.index],Q.state,Q.phraseLength),V.type===e.UDT&&L(c[V.index],Q.state,Q.phraseLength)},this.displayStats=()=>{let V="";const Q={match:0,empty:0,nomatch:0,total:0},J=(re,me,le,ve,be)=>(Q.match+=me,Q.empty+=le,Q.nomatch+=ve,Q.total+=be,`${re} | ${d(me)} | ${d(le)} | ${d(ve)} | ${d(be)} | +`);return V+=` OPERATOR STATS +`,V+=` | MATCH | EMPTY | NOMATCH | TOTAL | +`,V+=J(" ALT",o[e.ALT].match,o[e.ALT].empty,o[e.ALT].nomatch,o[e.ALT].total),V+=J(" CAT",o[e.CAT].match,o[e.CAT].empty,o[e.CAT].nomatch,o[e.CAT].total),V+=J(" REP",o[e.REP].match,o[e.REP].empty,o[e.REP].nomatch,o[e.REP].total),V+=J(" RNM",o[e.RNM].match,o[e.RNM].empty,o[e.RNM].nomatch,o[e.RNM].total),V+=J(" TRG",o[e.TRG].match,o[e.TRG].empty,o[e.TRG].nomatch,o[e.TRG].total),V+=J(" TBS",o[e.TBS].match,o[e.TBS].empty,o[e.TBS].nomatch,o[e.TBS].total),V+=J(" TLS",o[e.TLS].match,o[e.TLS].empty,o[e.TLS].nomatch,o[e.TLS].total),V+=J(" UDT",o[e.UDT].match,o[e.UDT].empty,o[e.UDT].nomatch,o[e.UDT].total),V+=J(" AND",o[e.AND].match,o[e.AND].empty,o[e.AND].nomatch,o[e.AND].total),V+=J(" NOT",o[e.NOT].match,o[e.NOT].empty,o[e.NOT].nomatch,o[e.NOT].total),V+=J("TOTAL",Q.match,Q.empty,Q.nomatch,Q.total),V},this.displayHits=V=>{let Q="";const J=(re,me,le,ve,be)=>(a.match+=re,a.empty+=me,a.nomatch+=le,a.total+=ve,`| ${d(re)} | ${d(me)} | ${d(le)} | ${d(ve)} | ${be} +`);typeof V=="string"&&V.toLowerCase()[0]==="a"?(p.sort(E),c.sort(E),Q+=` RULES/UDTS ALPHABETICALLY +`):typeof V=="string"&&V.toLowerCase()[0]==="i"?(p.sort(k),c.sort(k),Q+=` RULES/UDTS BY INDEX +`):(p.sort(x),c.sort(x),Q+=` RULES/UDTS BY HIT COUNT +`),Q+=`| MATCH | EMPTY | NOMATCH | TOTAL | NAME +`;for(let re=0;reV<10?` ${V}`:V<100?` ${V}`:V<1e3?` ${V}`:V<1e4?` ${V}`:V<1e5?` ${V}`:V<1e6?` ${V}`:`${V}`,E=(V,Q)=>V.lowerQ.lower?1:0,x=(V,Q)=>V.totalQ.total?-1:E(V,Q),k=(V,Q)=>V.indexQ.index?1:0,P=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},R=()=>{o.length=0,a=new P,o[e.ALT]=new P,o[e.CAT]=new P,o[e.REP]=new P,o[e.RNM]=new P,o[e.TRG]=new P,o[e.TBS]=new P,o[e.TLS]=new P,o[e.UDT]=new P,o[e.AND]=new P,o[e.NOT]=new P,p.length=0;for(let V=0;V0){c.length=0;for(let V=0;V{switch(V.total+=1,Q){case e.EMPTY:V.empty+=1;break;case e.MATCH:V.match+=1;break;case e.NOMATCH:V.nomatch+=1;break;default:throw new Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${Q}`)}}},Ni={stringToChars:t=>[...t].map((e=>e.codePointAt(0))),charsToString:(t,e,r)=>{let n=t;for(;!(e===void 0||e<0);){if(r===void 0){n=t.slice(e);break}if(r<=0)return"";n=t.slice(e,e+r);break}return String.fromCodePoint(...n)}},Br={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:t=>{switch(t){case Br.ALT:return"ALT";case Br.CAT:return"CAT";case Br.REP:return"REP";case Br.RNM:return"RNM";case Br.TRG:return"TRG";case Br.TBS:return"TBS";case Br.TLS:return"TLS";case Br.UDT:return"UDT";case Br.AND:return"AND";case Br.NOT:return"NOT";case Br.ACTIVE:return"ACTIVE";case Br.EMPTY:return"EMPTY";case Br.MATCH:return"MATCH";case Br.NOMATCH:return"NOMATCH";case Br.SEM_PRE:return"SEM_PRE";case Br.SEM_POST:return"SEM_POST";case Br.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Uf(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){return`; JavaScript Object Notation (JSON) Pointer ABNF syntax +; https://datatracker.ietf.org/doc/html/rfc6901 +json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used +reference-token = *( unescaped / escaped ) +unescaped = %x00-2E / %x30-7D / %x7F-10FFFF + ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped' +escaped = "~" ( "0" / "1" ) + ; representing '~' and '/', respectively + +; https://datatracker.ietf.org/doc/html/rfc6901#section-4 +array-location = array-index / array-dash +array-index = %x30 / ( %x31-39 *(%x30-39) ) + ; "0", or digits without a leading "0" +array-dash = "-" + +; Surrogate named rules +slash = "/" +`}}class pj extends Error{constructor(e,r=void 0){if(super(e,r),this.name=this.constructor.name,typeof e=="string"&&(this.message=e),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,r!=null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack} +CAUSE: ${n.stack}`)}if(r!=null&&typeof r=="object"){const{cause:n,...a}=r;Object.assign(this,a)}}}const Du=pj,xS=class extends Du{},sb=t=>(e,r,n,a,o)=>{if(typeof o!="object"||o===null||Array.isArray(o))throw new xS("parser's user data must be an object");if(e===Br.SEM_PRE){const p={type:t,text:Ni.charsToString(r,n,a),start:n,length:a,children:[]};o.stack.length>0?o.stack[o.stack.length-1].children.push(p):o.root=p,o.stack.push(p)}e===Br.SEM_POST&&o.stack.pop()},hj=class extends ib{constructor(){super(),this.callbacks["json-pointer"]=sb("json-pointer"),this.callbacks["reference-token"]=sb("reference-token"),this.callbacks.slash=sb("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}},dj=t=>{if(typeof t!="string")throw new TypeError("Reference token must be a string");return t.replace(/~1/g,"/").replace(/~0/g,"~")},fj=class extends hj{getTree(){const{root:e}=super.getTree();return e.children.filter((({type:r})=>r==="reference-token")).map((({text:r})=>dj(r)))}},mj=class extends Array{toString(){return this.map((e=>`"${String(e)}"`)).join(", ")}},gj=class extends cj{inferExpectations(){const e=this.displayTrace().split(` +`),r=new Set;let n=-1;for(let a=0;an){const p=o.match(/N\|\[TLS\(([^)]+)\)]/);p&&r.add(p[1])}}return new mj(...r)}},yj=new Uf,vj=(t,{translator:e=new fj,stats:r=!1,trace:n=!1}={})=>{if(typeof t!="string")throw new TypeError("JSON Pointer must be a string");try{const a=new ns;e&&(a.ast=e),r&&(a.stats=new uj),n&&(a.trace=new gj);const o=a.parse(yj,"json-pointer",t);return{result:o,tree:o.success&&e?a.ast.getTree():void 0,stats:a.stats,trace:a.trace}}catch(a){throw new xS("Unexpected error during JSON Pointer parsing",{cause:a,jsonPointer:t})}};new Uf,new ns,new Uf,new ns;const bj=new Uf,wj=new ns,Ej=t=>{if(typeof t!="string")return!1;try{return wj.parse(bj,"array-index",t).success}catch{return!1}},Sj=new Uf,xj=new ns,_j=t=>{if(typeof t!="string")return!1;try{return xj.parse(Sj,"array-dash",t).success}catch{return!1}},Oj=t=>{if(typeof t!="string"&&typeof t!="number")throw new TypeError("Reference token must be a string or number");return String(t).replace(/~/g,"~0").replace(/\//g,"~1")},kj=class extends Du{},_S=t=>{if(!Array.isArray(t))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return t.length===0?"":`/${t.map((e=>{if(typeof e!="string"&&typeof e!="number")throw new TypeError("Reference token must be a string or number");return Oj(String(e))})).join("/")}`}catch(e){throw new kj("Unexpected error during JSON Pointer compilation",{cause:e,referenceTokens:t})}},Aj=class{#e;#t;#r;constructor(e,r={}){this.#e=e,this.#e.steps=[],this.#e.failed=!1,this.#e.failedAt=-1,this.#e.message=`JSON Pointer "${r.jsonPointer}" was successfully evaluated against the provided value`,this.#e.context={...r,realm:r.realm.name},this.#t=[],this.#r=r.realm}step({referenceToken:e,input:r,output:n,success:a=!0,reason:o}){const p=this.#t.length;this.#t.push(e);const c={referenceToken:e,referenceTokenPosition:p,input:r,inputType:this.#r.isObject(r)?"object":this.#r.isArray(r)?"array":"unrecognized",output:n,success:a};o&&(c.reason=o),this.#e.steps.push(c),a||(this.#e.failed=!0,this.#e.failedAt=p,this.#e.message=o)}},OS=class{name="";isArray(e){throw new Du("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new Du("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new Du("Realm.sizeOf(node) must be implemented in a subclass")}has(e,r){throw new Du("Realm.has(node) must be implemented in a subclass")}evaluate(e,r){throw new Du("Realm.evaluate(node) must be implemented in a subclass")}},Bp=class extends Du{},Qh=class extends Bp{},Cj=class extends OS{name="json";isArray(e){return Array.isArray(e)}isObject(e){return typeof e=="object"&&e!==null&&!this.isArray(e)}sizeOf(e){return this.isArray(e)?e.length:this.isObject(e)?Object.keys(e).length:0}has(e,r){if(this.isArray(e)){const n=Number(r),a=n>>>0;if(n!==a)throw new Qh(`Invalid array index "${r}": index must be an unsinged 32-bit integer`,{referenceToken:r,currentValue:e,realm:this.name});return a{const{result:p,tree:c,trace:d}=vj(e,{trace:!!o}),E=typeof o=="object"&&o!==null?new Aj(o,{jsonPointer:e,referenceTokens:c,strictArrays:r,strictObjects:n,realm:a,value:t}):null;try{let x;if(!p.success){let k=`Invalid JSON Pointer: "${e}". Syntax error at position ${p.maxMatched}`;throw k+=d?`, expected ${d.inferExpectations()}`:"",new Bp(k,{jsonPointer:e,currentValue:t,realm:a.name})}return c.reduce(((k,P,R)=>{if(a.isArray(k)){if(_j(P)){if(r)throw new Qh(`Invalid array index "-" at position ${R} in "${e}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});return x=a.evaluate(k,String(a.sizeOf(k))),E?.step({referenceToken:P,input:k,output:x}),x}if(!Ej(P))throw new Qh(`Invalid array index "${P}" at position ${R} in "${e}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});const L=Number(P);if(!Number.isSafeInteger(L))throw new Qh(`Invalid array index "${P}" at position ${R} in "${e}": index must be a safe integer`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});if(!a.has(k,P)&&r)throw new Qh(`Invalid array index "${P}" at position ${R} in "${e}": index not found in array`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});return x=a.evaluate(k,P),E?.step({referenceToken:P,input:k,output:x}),x}if(a.isObject(k)){if(!a.has(k,P)&&n)throw new kS(`Invalid object key "${P}" at position ${R} in "${e}": key not found in object`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});return x=a.evaluate(k,P),E?.step({referenceToken:P,input:k,output:x}),x}throw new jj(`Invalid reference token "${P}" at position ${R} in "${e}": cannot be applied to a non-object/non-array value`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name})}),t)}catch(x){throw E?.step({referenceToken:x.referenceToken,input:x.currentValue,success:!1,reason:x.message}),x instanceof Bp?x:new Bp("Unexpected error during JSON Pointer evaluation",{cause:x,jsonPointer:e,referenceTokens:c})}},Nj=class extends OS{name="apidom";isArray(e){return vo(e)}isObject(e){return hn(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,r){if(this.isArray(e)){const n=Number(r),a=n>>>0;if(n!==a)throw new Qh(`Invalid array index "${r}": index must be an unsinged 32-bit integer`,{referenceToken:r,currentValue:e,realm:this.name});return aPj(t,e,{...r,realm:new Nj});class Tj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="callback"}}const zf=Tj;class Ij extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Vf=Ij;class Mj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Jf=Mj;class Rj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Wf=Rj;class Dj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const Ty=Dj;class Fj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Hf=Fj;class Lj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Kf=Lj;class AS extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Ge.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ge.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(AS.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});const Gf=AS;class $j extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Yf=$j;class Bj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Xf=Bj;class qj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,r;return Ir(this.operationRef)?(e=this.operationRef)===null||e===void 0?void 0:e.meta.get("operation"):Ir(this.operationId)?(r=this.operationId)===null||r===void 0?void 0:r.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const Qf=qj;class Uj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const Zf=Uj;class zj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Iy=zj;class Vj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const My=Vj;class Jj extends Ge.Om{constructor(e,r,n){super(e,r,n),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const em=Jj;class Wj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Ry=Wj;class Hj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ge.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const tm=Hj;class CS extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new Ge.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ge.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(CS.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});const rm=CS;class Kj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const nm=Kj;class Gj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="paths"}}const am=Gj;class Yj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const om=Yj;class Xj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new Ge.bd(!1)}set required(e){this.set("required",e)}}const im=Xj;class Qj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const sm=Qj;class Zj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const lm=Zj,Zr=class extends Mt{};class e3 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Zh=e3;class t3 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const ed=t3;class r3 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const cm=r3;class n3 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const um=n3,Dy=t=>{const e=t.meta.length>0?hr(t.meta):void 0,r=t.attributes.length>0?hr(t.attributes):void 0;return new t.constructor(void 0,e,r)},Fy=(t,e)=>e.clone&&e.isMergeableElement(t)?td(Dy(t),t,e):t,Ly={clone:!0,isMergeableElement:t=>hn(t)||vo(t),arrayElementMerge:(t,e,r)=>t.concat(e)["fantasy-land/map"]((n=>Fy(n,r))),objectElementMerge:(t,e,r)=>{const n=hn(t)?Dy(t):Dy(e);return hn(t)&&t.forEach(((a,o,p)=>{const c=no(p);c.value=Fy(a,r),n.content.push(c)})),e.forEach(((a,o,p)=>{const c=Et(o);let d;if(hn(t)&&t.hasKey(c)&&r.isMergeableElement(a)){const E=t.get(c);d=no(p),d.value=((x,k)=>{if(typeof k.customMerge!="function")return td;const P=k.customMerge(x,k);return typeof P=="function"?P:td})(o,r)(E,a,r)}else d=no(p),d.value=Fy(a,r);n.remove(c),n.content.push(d)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},td=(t,e,r)=>{var n,a,o;const p={...Ly,...r};p.isMergeableElement=(n=p.isMergeableElement)!==null&&n!==void 0?n:Ly.isMergeableElement,p.arrayElementMerge=(a=p.arrayElementMerge)!==null&&a!==void 0?a:Ly.arrayElementMerge,p.objectElementMerge=(o=p.objectElementMerge)!==null&&o!==void 0?o:Ly.objectElementMerge;const c=vo(e);if(c!==vo(t))return Fy(e,p);const d=c&&typeof p.arrayElementMerge=="function"?p.arrayElementMerge(t,e,p):p.objectElementMerge(t,e,p);return d.meta=(E=>typeof E.customMetaMerge!="function"?x=>hr(x):E.customMetaMerge)(p)(t.meta,e.meta),d.attributes=(E=>typeof E.customAttributesMerge!="function"?x=>hr(x):E.customAttributesMerge)(p)(t.attributes,e.attributes),d};td.all=(t,e)=>{if(!Array.isArray(t))throw new TypeError("First argument of deepmerge should be an array.");return t.length===0?new Ge.Sh:t.reduce(((r,n)=>td(r,n,e)),Dy(t[0]))};const qp=td,jS=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,r){(e.meta.length>0||r.meta.length>0)&&(r.meta=qp(r.meta,e.meta)),Gh(e)&&ob(r,e),(e.attributes.length>0||e.meta.length>0)&&(r.attributes=qp(r.attributes,e.attributes))}},gn=class extends jS{enter(e){return this.element=hr(e),on}},PS=(t,e,r=[])=>{const n=Object.getOwnPropertyDescriptors(e);for(let a of r)delete n[a];Object.defineProperties(t,n)},pm=(t,e=[t])=>{const r=Object.getPrototypeOf(t);return r===null?e:pm(r,[...e,r])},NS=(t,e,r=[])=>{var n;const a=(n=((...c)=>{if(c.length===0)return;let d;const E=c.map((x=>pm(x)));for(;E.every((x=>x.length>0));){const x=E.map((P=>P.pop())),k=x[0];if(!x.every((P=>P===k)))break;d=k}return d})(...t))!==null&&n!==void 0?n:Object.prototype,o=Object.create(a),p=pm(a);for(let c of t){let d=pm(c);for(let E=d.length-1;E>=0;E--){let x=d[E];p.indexOf(x)===-1&&(PS(o,x,["constructor",...r]),p.push(x))}}return o.constructor=e,o},lb=t=>t.filter(((e,r)=>t.indexOf(e)==r)),TS=new WeakMap,a3=t=>TS.get(t),IS=(t,e)=>{var r,n;const a=lb([...Object.getOwnPropertyNames(t),...Object.getOwnPropertyNames(e)]),o={};for(let p of a)o[p]=lb([...(r=t?.[p])!==null&&r!==void 0?r:[],...(n=e?.[p])!==null&&n!==void 0?n:[]]);return o},MS=(t,e)=>{var r,n,a,o;return{property:IS((r=t?.property)!==null&&r!==void 0?r:{},(n=e?.property)!==null&&n!==void 0?n:{}),method:IS((a=t?.method)!==null&&a!==void 0?a:{},(o=e?.method)!==null&&o!==void 0?o:{})}},o3=(t,e)=>{var r,n,a,o,p,c;return{class:lb([...(r=t?.class)!==null&&r!==void 0?r:[],...(n=e?.class)!==null&&n!==void 0?n:[]]),static:MS((a=t?.static)!==null&&a!==void 0?a:{},(o=e?.static)!==null&&o!==void 0?o:{}),instance:MS((p=t?.instance)!==null&&p!==void 0?p:{},(c=e?.instance)!==null&&c!==void 0?c:{})}},i3=new Map,s3=(...t)=>{const e=((...r)=>{var n;const a=new Set,o=new Set([...r]);for(;o.size>0;)for(let p of o){const c=pm(p.prototype).map((E=>E.constructor)),d=[...c,...(n=a3(p))!==null&&n!==void 0?n:[]].filter((E=>!a.has(E)));for(let E of d)o.add(E);a.add(p),o.delete(p)}return[...a]})(...t).map((r=>i3.get(r))).filter((r=>!!r));return e.length==0?{}:e.length==1?e[0]:e.reduce(((r,n)=>o3(r,n)))};function Vt(...t){var e,r,n;const a=t.map((E=>E.prototype));function o(...E){for(const x of t)PS(this,new x(...E))}o.prototype=NS(a,o),Object.setPrototypeOf(o,NS(t,null,["prototype"]));let p=o;{const E=s3(...t);for(let x of(e=E?.class)!==null&&e!==void 0?e:[]){const k=x(p);k&&(p=k)}RS((r=E?.static)!==null&&r!==void 0?r:{},p),RS((n=E?.instance)!==null&&n!==void 0?n:{},p.prototype)}var c,d;return c=p,d=t,TS.set(c,d),p}const RS=(t,e)=>{const r=t.property,n=t.method;if(r)for(let a in r)for(let o of r[a])o(e,a);if(n)for(let a in n)for(let o of n[a])o(e,a,Object.getOwnPropertyDescriptor(e,a))},l3=_r((function(e){return ja(Vh(fE,0,mE("length",e)),(function(){for(var r=0,n=e.length;r{if(Ir(o)&&n.includes(Et(o))&&!this.ignoredFields.includes(Et(o))){const c=this.toRefractedElement([...r,"fixedFields",Et(o)],a),d=new Ge.Pr(hr(o),c);this.copyMetaAndAttributes(p,d),d.classes.push("fixed-field"),this.element.content.push(d)}else this.ignoredFields.includes(Et(o))||this.element.content.push(hr(p))})),this.copyMetaAndAttributes(e,this.element),on}},Na=class{parent;constructor({parent:e}){this.parent=e}},LS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zh||t(n)&&e("JSONSchemaDraft4",n)&&r("object",n))),cb=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ed||t(n)&&e("JSONReference",n)&&r("object",n))),$S=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cm||t(n)&&e("media",n)&&r("object",n))),p3=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof um||t(n)&&e("linkDescription",n)&&r("object",n)));class h3 extends Vt(Up,Na,gn){constructor(e){super(e),this.element=new Zh,this.specPath=jr(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,Up.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Iu(this.parent)&&!Ir(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(LS(this.parent)&&!Ir(e.get("$schema"))){const r=Jh(Et(this.parent.meta.get("inheritedDialectIdentifier")),Et(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",r)}}handleSchemaIdentifier(e,r="id"){const n=this.parent!==void 0?hr(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new Ge.wE,a=Et(e.get(r));$y(a)&&n.push(a),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}}const BS=h3,Ul=t=>hn(t)&&t.hasKey("$ref");class d3 extends Vt(Ti,Na,gn){ObjectElement(e){const r=Ul(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(r,e),on}ArrayElement(e){return this.element=new Ge.wE,this.element.classes.push("json-schema-items"),e.forEach((r=>{const n=Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const qS=d3,f3=class extends gn{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-required"),r}},m3=class extends Ti{specPath;ignoredFields;fieldPatternPredicate=rb;constructor({specPath:e,ignoredFields:r,fieldPatternPredicate:n,...a}){super({...a}),this.specPath=e,this.ignoredFields=r||[],typeof n=="function"&&(this.fieldPatternPredicate=n)}ObjectElement(e){return e.forEach(((r,n,a)=>{if(!this.ignoredFields.includes(Et(n))&&this.fieldPatternPredicate(Et(n))){const o=this.specPath(r),p=this.toRefractedElement(o,r),c=new Ge.Pr(hr(n),p);this.copyMetaAndAttributes(a,c),c.classes.push("patterned-field"),this.element.content.push(c)}else this.ignoredFields.includes(Et(n))||this.element.content.push(hr(a))})),this.copyMetaAndAttributes(e,this.element),on}},Fu=class extends m3{constructor(e){super(e),this.fieldPatternPredicate=$y}};class g3 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-properties"),this.specPath=r=>Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const y3=g3;class v3 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=r=>Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const b3=v3;class w3 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=r=>Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const E3=w3,S3=class extends gn{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-enum"),r}},x3=class extends gn{StringElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-type"),r}ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-type"),r}};class _3 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((r=>{const n=Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const O3=_3;class k3 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((r=>{const n=Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const A3=k3;class C3 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((r=>{const n=Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const j3=C3;class P3 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=r=>Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const N3=P3;class T3 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","LinkDescription"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const I3=T3;class M3 extends Vt(Up,gn){constructor(e){super(e),this.element=new ed,this.specPath=jr(["document","objects","JSONReference"])}ObjectElement(e){const r=Up.prototype.ObjectElement.call(this,e);return Ir(this.element.$ref)&&this.element.classes.push("reference-element"),r}}const R3=M3,D3=class extends gn{StringElement(e){const r=this.enter(e);return this.element.classes.push("reference-value"),r}},ub=ha((function(e,r,n){return ja(Math.max(e.length,r.length,n.length),(function(){return e.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)}))})),F3=_r((function(e){return function(r,n){return e(r,n)?-1:e(n,r)?1:0}}));var L3=Tr((function(e,r){return Array.prototype.slice.call(r,0).sort(e)}));const $3=L3;var B3=_r((function(t){return cy(0,t)}));const q3=B3,U3=_r(_y),z3=If(jy),V3=Rf(vS,DS);function J3(t){return(function(r){if(Array.isArray(r))return pb(r)})(t)||(function(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)})(t)||(function(r,n){if(r){if(typeof r=="string")return pb(r,n);var a={}.toString.call(r).slice(8,-1);return a==="Object"&&r.constructor&&(a=r.constructor.name),a==="Map"||a==="Set"?Array.from(r):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?pb(r,n):void 0}})(t)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function pb(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);re.length}))),q3,Af("length")),H3=E0((function(t,e,r){var n=r.apply(void 0,J3(t));return z3(n)?U3(n):e}));const US=ub(V3,(function(e){var r=W3(e);return ja(r,(function(){for(var n=arguments.length,a=new Array(n),o=0;oub(a,jr(o),vy))),n=US(r)(e);return this.element=this.toRefractedElement(n,e),on}},rd=class extends K3{constructor(e){super(e),this.alternator=[{predicate:Ul,specPath:["document","objects","JSONReference"]},{predicate:kc,specPath:["document","objects","JSONSchema"]}]}};class G3 extends Vt(Up,gn){constructor(e){super(e),this.element=new cm,this.specPath=jr(["document","objects","Media"])}}const Y3=G3;class X3 extends Vt(Up,gn){constructor(e){super(e),this.element=new um,this.specPath=jr(["document","objects","LinkDescription"])}}const zS=X3,bo={visitors:{value:gn,JSONSchemaOrJSONReferenceVisitor:rd,document:{objects:{JSONSchema:{$visitor:BS,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:rd,items:qS,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:f3,properties:y3,additionalProperties:rd,patternProperties:b3,dependencies:E3,enum:S3,type:x3,allOf:O3,anyOf:A3,oneOf:j3,not:rd,definitions:N3,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:I3,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:R3,fixedFields:{$ref:D3}},Media:{$visitor:Y3,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:zS,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:rd,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:rd}}}}}},hm=t=>{if(da(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},Q3={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Bl},Z3={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft4",Zh),e.register("jSONReference",ed),e.register("media",cm),e.register("linkDescription",um),e}},eP=Z3,tP=()=>{const t=Ac(eP);return{predicates:{...X,isStringElement:Ir},namespace:t}},rP=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=bo}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:tP,visitorOptions:{keyMap:Q3,nodeTypeGetter:hm}})},By=t=>(e,r={})=>rP(e,{specPath:t,...r});Zh.refract=By(["visitors","document","objects","JSONSchema","$visitor"]),ed.refract=By(["visitors","document","objects","JSONReference","$visitor"]),cm.refract=By(["visitors","document","objects","Media","$visitor"]),um.refract=By(["visitors","document","objects","LinkDescription","$visitor"]);const qy=class extends Zh{constructor(e,r,n){super(e,r,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Zr("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Zr("idProp setter in Schema class is not not supported.")}get $schema(){throw new Zr("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Zr("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new Zr("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Zr("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Zr("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Zr("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new Zr("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Zr("definitions setter in Schema class is not not supported.")}get base(){throw new Zr("base getter in Schema class is not not supported.")}set base(e){throw new Zr("base setter in Schema class is not not supported.")}get links(){throw new Zr("links getter in Schema class is not not supported.")}set links(e){throw new Zr("links setter in Schema class is not not supported.")}get media(){throw new Zr("media getter in Schema class is not not supported.")}set media(e){throw new Zr("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class nP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="securityRequirement"}}const dm=nP;class aP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const fm=aP;class oP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const mm=oP;class iP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const gm=iP;class sP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Uy=sP;class lP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const zy=lP,VS=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,r){(e.meta.length>0||r.meta.length>0)&&(r.meta=qp(r.meta,e.meta)),Gh(e)&&ob(r,e),(e.attributes.length>0||e.meta.length>0)&&(r.attributes=qp(r.attributes,e.attributes))}},er=class extends VS{enter(e){return this.element=hr(e),on}},zs=class extends VS{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:r,openApiGenericElement:n,openApiSemanticElement:a,...o}){super({...o}),this.specObj=e,this.openApiGenericElement=n,this.openApiSemanticElement=a,Array.isArray(r)&&(this.passingOptionsNames=r)}retrievePassingOptions(){return FS(this.passingOptionsNames,this)}retrieveFixedFields(e){const r=ro(["visitors",...e,"fixedFields"],this.specObj);return typeof r=="object"&&r!==null?Object.keys(r):[]}retrieveVisitor(e){return W0(Fp,["visitors",...e],this.specObj)?ro(["visitors",...e],this.specObj):ro(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,r={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...r})}toRefractedElement(e,r,n={}){const a=this.retrieveVisitorInstance(e,n);return a instanceof er&&a?.constructor===er?hr(r):(Pa(r,a,n),a.element)}};var cP=(function(){function t(e,r){this.xf=r,this.n=e,this.i=0}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=Nf,t.prototype["@@transducer/step"]=function(e,r){this.i+=1;var n=this.n===0?e:this.xf["@@transducer/step"](e,r);return this.n>=0&&this.i>=this.n?_y(n):n},t})();function uP(t){return function(e){return new cP(t,e)}}const pP=Tr(Nu(["take"],uP,(function(e,r){return kf(0,e<0?1/0:e,r)})));var hP=Tr((function(t,e){return Pu(pP(t.length,e),t)}));const dP=hP,Vn=t=>hn(t)&&t.hasKey("$ref"),fP=hn,mP=hn,JS=t=>Ir(t.key)&&dP("x-",Et(t.key)),Jr=class extends zs{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=JS;constructor({specPath:e,ignoredFields:r,canSupportSpecificationExtensions:n,specificationExtensionPredicate:a,...o}){super({...o}),this.specPath=e,this.ignoredFields=r||[],typeof n=="boolean"&&(this.canSupportSpecificationExtensions=n),typeof a=="function"&&(this.specificationExtensionPredicate=a)}ObjectElement(e){const r=this.specPath(e),n=this.retrieveFixedFields(r);return e.forEach(((a,o,p)=>{if(Ir(o)&&n.includes(Et(o))&&!this.ignoredFields.includes(Et(o))){const c=this.toRefractedElement([...r,"fixedFields",Et(o)],a),d=new Ge.Pr(hr(o),c);this.copyMetaAndAttributes(p,d),d.classes.push("fixed-field"),this.element.content.push(d)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(p)){const c=this.toRefractedElement(["document","extension"],p);this.element.content.push(c)}else this.ignoredFields.includes(Et(o))||this.element.content.push(hr(p))})),this.copyMetaAndAttributes(e,this.element),on}};class gP extends Vt(Jr,er){constructor(e){super(e),this.element=new Ry,this.specPath=jr(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Jr.prototype.ObjectElement.call(this,e)}}const yP=gP;class vP extends Vt(zs,er){StringElement(e){const r=new em(Et(e));return this.copyMetaAndAttributes(e,r),this.element=r,on}}const bP=vP,wP=class extends zs{MemberElement(e){return this.element=hr(e),this.element.classes.push("specification-extension"),on}};class EP extends Vt(Jr,er){constructor(e){super(e),this.element=new Yf,this.specPath=jr(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const SP=EP,xP=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),r}};class _P extends Vt(Jr,er){constructor(e){super(e),this.element=new Jf,this.specPath=jr(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const OP=_P;class kP extends Vt(Jr,er){constructor(e){super(e),this.element=new Xf,this.specPath=jr(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const AP=kP;class CP extends Vt(Jr,er){constructor(e){super(e),this.element=new Qf,this.specPath=jr(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return(Ir(this.element.operationId)||Ir(this.element.operationRef))&&this.element.classes.push("reference-element"),r}}const jP=CP,PP=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}},NP=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}},nd=class extends zs{specPath;ignoredFields;fieldPatternPredicate=rb;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=JS;constructor({specPath:e,ignoredFields:r,fieldPatternPredicate:n,canSupportSpecificationExtensions:a,specificationExtensionPredicate:o,...p}){super({...p}),this.specPath=e,this.ignoredFields=r||[],typeof n=="function"&&(this.fieldPatternPredicate=n),typeof a=="boolean"&&(this.canSupportSpecificationExtensions=a),typeof o=="function"&&(this.specificationExtensionPredicate=o)}ObjectElement(e){return e.forEach(((r,n,a)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(a)){const o=this.toRefractedElement(["document","extension"],a);this.element.content.push(o)}else if(!this.ignoredFields.includes(Et(n))&&this.fieldPatternPredicate(Et(n))){const o=this.specPath(r),p=this.toRefractedElement(o,r),c=new Ge.Pr(hr(n),p);this.copyMetaAndAttributes(a,c),c.classes.push("patterned-field"),this.element.content.push(c)}else this.ignoredFields.includes(Et(n))||this.element.content.push(hr(a))})),this.copyMetaAndAttributes(e,this.element),on}},Ur=class extends nd{constructor(e){super(e),this.fieldPatternPredicate=$y}};class hb extends Ge.Sh{static primaryClass="link-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(hb.primaryClass)}}const TP=hb;class IP extends Vt(Ur,er){constructor(e){super(e),this.element=new TP,this.specPath=jr(["value"])}}const MP=IP;class RP extends Vt(Jr,er){constructor(e){super(e),this.element=new mm,this.specPath=jr(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const DP=RP,FP=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("server-url"),r}};class db extends Ge.wE{static primaryClass="servers";constructor(e,r,n){super(e,r,n),this.classes.push(db.primaryClass)}}const WS=db;class LP extends Vt(zs,er){constructor(e){super(e),this.element=new WS}ArrayElement(e){return e.forEach((r=>{const n=fP(r)?["document","objects","Server"]:["value"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const fb=LP;class $P extends Vt(Jr,er){constructor(e){super(e),this.element=new gm,this.specPath=jr(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const BP=$P;class mb extends Ge.Sh{static primaryClass="server-variables";constructor(e,r,n){super(e,r,n),this.classes.push(mb.primaryClass)}}const qP=mb;class UP extends Vt(Ur,er){constructor(e){super(e),this.element=new qP,this.specPath=jr(["document","objects","ServerVariable"])}}const zP=UP;class VP extends Vt(Jr,er){constructor(e){super(e),this.element=new Zf,this.specPath=jr(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const JP=VP,zl=class extends zs{alternator;constructor({alternator:e,...r}){super({...r}),this.alternator=e||[]}enter(e){const r=this.alternator.map((({predicate:a,specPath:o})=>ub(a,jr(o),vy))),n=US(r)(e);return this.element=this.toRefractedElement(n,e),on}},WP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof zf||t(n)&&e("callback",n)&&r("object",n))),HP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Vf||t(n)&&e("components",n)&&r("object",n))),KP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Jf||t(n)&&e("contact",n)&&r("object",n))),GP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Hf||t(n)&&e("example",n)&&r("object",n))),YP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Kf||t(n)&&e("externalDocumentation",n)&&r("object",n))),ad=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Gf||t(n)&&e("header",n)&&r("object",n))),XP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Yf||t(n)&&e("info",n)&&r("object",n))),QP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xf||t(n)&&e("license",n)&&r("object",n))),ZP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qf||t(n)&&e("link",n)&&r("object",n))),eN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof em||t(n)&&e("openapi",n)&&r("string",n))),tN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>a=>a instanceof Ry||t(a)&&e("openApi3_0",a)&&r("object",a)&&n("api",a))),HS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof tm||t(n)&&e("operation",n)&&r("object",n))),rN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof rm||t(n)&&e("parameter",n)&&r("object",n))),gb=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof nm||t(n)&&e("pathItem",n)&&r("object",n))),nN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof am||t(n)&&e("paths",n)&&r("object",n))),Mn=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof om||t(n)&&e("reference",n)&&r("object",n))),aN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof im||t(n)&&e("requestBody",n)&&r("object",n))),Vy=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof sm||t(n)&&e("response",n)&&r("object",n))),oN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof lm||t(n)&&e("responses",n)&&r("object",n))),iN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof qy||t(n)&&e("schema",n)&&r("object",n))),sN=t=>Ff(t)&&t.classes.includes("boolean-json-schema"),lN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof dm||t(n)&&e("securityRequirement",n)&&r("object",n))),cN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fm||t(n)&&e("securityScheme",n)&&r("object",n))),uN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof mm||t(n)&&e("server",n)&&r("object",n))),pN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof gm||t(n)&&e("serverVariable",n)&&r("object",n))),Jy=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zf||t(n)&&e("mediaType",n)&&r("object",n))),KS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>a=>a instanceof WS||t(a)&&e("array",a)&&r("array",a)&&n("servers",a))),hN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Wf||t(n)&&e("discriminator",n)&&r("object",n)));class dN extends Vt(zl,er){constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const fN=dN;class mN extends Vt(Ur,er){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("examples"),this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","example")})),r}}const yb=mN;class vb extends Ge.Sh{static primaryClass="media-type-examples";constructor(e,r,n){super(e,r,n),this.classes.push(vb.primaryClass),this.classes.push("examples")}}const gN=vb,yN=class extends yb{constructor(e){super(e),this.element=new gN}};class bb extends Ge.Sh{static primaryClass="media-type-encoding";constructor(e,r,n){super(e,r,n),this.classes.push(bb.primaryClass)}}const vN=bb;class bN extends Vt(Ur,er){constructor(e){super(e),this.element=new vN,this.specPath=jr(["document","objects","Encoding"])}}const wN=bN;class EN extends Vt(Ur,er){constructor(e){super(e),this.element=new dm,this.specPath=jr(["value"])}}const SN=EN;class wb extends Ge.wE{static primaryClass="security";constructor(e,r,n){super(e,r,n),this.classes.push(wb.primaryClass)}}const xN=wb;class _N extends Vt(zs,er){constructor(e){super(e),this.element=new xN}ArrayElement(e){return e.forEach((r=>{if(hn(r)){const n=this.toRefractedElement(["document","objects","SecurityRequirement"],r);this.element.push(n)}else this.element.push(hr(r))})),this.copyMetaAndAttributes(e,this.element),on}}const ON=_N;class kN extends Vt(Jr,er){constructor(e){super(e),this.element=new Vf,this.specPath=jr(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const AN=kN;class CN extends Vt(Jr,er){constructor(e){super(e),this.element=new Uy,this.specPath=jr(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const jN=CN;class PN extends Vt(Jr,er){constructor(e){super(e),this.element=new om,this.specPath=jr(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return Ir(this.element.$ref)&&this.element.classes.push("reference-element"),r}}const NN=PN,TN=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}};class IN extends Vt(Jr,er){constructor(e){super(e),this.element=new rm,this.specPath=jr(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return hn(this.element.contentProp)&&this.element.contentProp.filter(Jy).forEach(((n,a)=>{n.setMetaProperty("media-type",Et(a))})),r}}const MN=IN;class RN extends Vt(zl,er){constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const DN=RN;class FN extends Vt(Jr,er){constructor(e){super(e),this.element=new Gf,this.specPath=jr(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const LN=FN;class $N extends Vt(zl,er){constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const BN=$N;class Eb extends Ge.Sh{static primaryClass="header-examples";constructor(e,r,n){super(e,r,n),this.classes.push(Eb.primaryClass),this.classes.push("examples")}}const qN=Eb,UN=class extends yb{constructor(e){super(e),this.element=new qN}};class zN extends Vt(Ur,er){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("content"),this.specPath=jr(["document","objects","MediaType"])}}const Wy=zN;class Sb extends Ge.Sh{static primaryClass="header-content";constructor(e,r,n){super(e,r,n),this.classes.push(Sb.primaryClass),this.classes.push("content")}}const VN=Sb,JN=class extends Wy{constructor(e){super(e),this.element=new VN}};class WN extends Vt(Jr,er){constructor(e){super(e),this.element=new qy,this.specPath=jr(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const HN=WN,GS=bo.visitors.document.objects.JSONSchema.fixedFields.allOf,KN=class extends GS{ArrayElement(e){const r=GS.prototype.ArrayElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}},YS=bo.visitors.document.objects.JSONSchema.fixedFields.anyOf,GN=class extends YS{ArrayElement(e){const r=YS.prototype.ArrayElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}},XS=bo.visitors.document.objects.JSONSchema.fixedFields.oneOf,YN=class extends XS{ArrayElement(e){const r=XS.prototype.ArrayElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}},QS=bo.visitors.document.objects.JSONSchema.fixedFields.items,XN=class extends QS{ObjectElement(e){const r=QS.prototype.ObjectElement.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}ArrayElement(e){return this.enter(e)}},ZS=bo.visitors.document.objects.JSONSchema.fixedFields.properties,QN=class extends ZS{ObjectElement(e){const r=ZS.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}},ZN=bo.visitors.document.objects.JSONSchema.fixedFields.type,eT=class extends ZN{ArrayElement(e){return this.enter(e)}},e2=bo.visitors.JSONSchemaOrJSONReferenceVisitor,t2=class extends e2{ObjectElement(e){const r=e2.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}};class tT extends Vt(Jr,er){constructor(e){super(e),this.element=new Wf,this.specPath=jr(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const rT=tT;class xb extends Ge.Sh{static primaryClass="discriminator-mapping";constructor(e,r,n){super(e,r,n),this.classes.push(xb.primaryClass)}}const nT=xb;class aT extends Vt(Ur,er){constructor(e){super(e),this.element=new nT,this.specPath=jr(["value"])}}const oT=aT;class iT extends Vt(Jr,er){constructor(e){super(e),this.element=new zy,this.specPath=jr(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const sT=iT;class _b extends Ge.Sh{static primaryClass="parameter-examples";constructor(e,r,n){super(e,r,n),this.classes.push(_b.primaryClass),this.classes.push("examples")}}const lT=_b,cT=class extends yb{constructor(e){super(e),this.element=new lT}};class Ob extends Ge.Sh{static primaryClass="parameter-content";constructor(e,r,n){super(e,r,n),this.classes.push(Ob.primaryClass),this.classes.push("content")}}const uT=Ob,pT=class extends Wy{constructor(e){super(e),this.element=new uT}};class kb extends Ge.Sh{static primaryClass="components-schemas";constructor(e,r,n){super(e,r,n),this.classes.push(kb.primaryClass)}}const r2=kb;class hT extends Vt(Ur,er){constructor(e){super(e),this.element=new r2,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}}const dT=hT;class Ab extends Ge.Sh{static primaryClass="components-responses";constructor(e,r,n){super(e,r,n),this.classes.push(Ab.primaryClass)}}const fT=Ab;class mT extends Vt(Ur,er){constructor(e){super(e),this.element=new fT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","response")})),this.element.filter(Vy).forEach(((n,a)=>{n.setMetaProperty("http-status-code",Et(a))})),r}}const gT=mT;class Cb extends Ge.Sh{static primaryClass="components-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(Cb.primaryClass),this.classes.push("parameters")}}const yT=Cb;class vT extends Vt(Ur,er){constructor(e){super(e),this.element=new yT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","parameter")})),r}}const bT=vT;class jb extends Ge.Sh{static primaryClass="components-examples";constructor(e,r,n){super(e,r,n),this.classes.push(jb.primaryClass),this.classes.push("examples")}}const wT=jb;class ET extends Vt(Ur,er){constructor(e){super(e),this.element=new wT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","example")})),r}}const ST=ET;class Pb extends Ge.Sh{static primaryClass="components-request-bodies";constructor(e,r,n){super(e,r,n),this.classes.push(Pb.primaryClass)}}const xT=Pb;class _T extends Vt(Ur,er){constructor(e){super(e),this.element=new xT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","requestBody")})),r}}const OT=_T;class Nb extends Ge.Sh{static primaryClass="components-headers";constructor(e,r,n){super(e,r,n),this.classes.push(Nb.primaryClass)}}const kT=Nb;class AT extends Vt(Ur,er){constructor(e){super(e),this.element=new kT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","header")})),this.element.filter(ad).forEach(((n,a)=>{n.setMetaProperty("header-name",Et(a))})),r}}const CT=AT;class Tb extends Ge.Sh{static primaryClass="components-security-schemes";constructor(e,r,n){super(e,r,n),this.classes.push(Tb.primaryClass)}}const jT=Tb;class PT extends Vt(Ur,er){constructor(e){super(e),this.element=new jT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","securityScheme")})),r}}const NT=PT;class Ib extends Ge.Sh{static primaryClass="components-links";constructor(e,r,n){super(e,r,n),this.classes.push(Ib.primaryClass)}}const TT=Ib;class IT extends Vt(Ur,er){constructor(e){super(e),this.element=new TT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","link")})),r}}const MT=IT;class Mb extends Ge.Sh{static primaryClass="components-callbacks";constructor(e,r,n){super(e,r,n),this.classes.push(Mb.primaryClass)}}const RT=Mb;class DT extends Vt(Ur,er){constructor(e){super(e),this.element=new RT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","callback")})),r}}const FT=DT;class LT extends Vt(Jr,er){constructor(e){super(e),this.element=new Hf,this.specPath=jr(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return Ir(this.element.externalValue)&&this.element.classes.push("reference-element"),r}}const $T=LT,BT=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}};class qT extends Vt(Jr,er){constructor(e){super(e),this.element=new Kf,this.specPath=jr(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const UT=qT;class zT extends Vt(Jr,er){constructor(e){super(e),this.element=new Ty,this.specPath=jr(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return hn(this.element.headers)&&this.element.headers.filter(ad).forEach(((n,a)=>{n.setMetaProperty("header-name",Et(a))})),r}}const VT=zT;class Rb extends Ge.Sh{static primaryClass="encoding-headers";constructor(e,r,n){super(e,r,n),this.classes.push(Rb.primaryClass)}}const JT=Rb;class WT extends Vt(Ur,er){constructor(e){super(e),this.element=new JT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","header")})),this.element.forEach(((n,a)=>{if(!ad(n))return;const o=Et(a);n.setMetaProperty("headerName",o)})),r}}const HT=WT;class KT extends Vt(nd,er){constructor(e){super(e),this.element=new am,this.specPath=jr(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=kc}ObjectElement(e){const r=nd.prototype.ObjectElement.call(this,e);return this.element.filter(gb).forEach(((n,a)=>{a.classes.push("openapi-path-template"),a.classes.push("path-template"),n.setMetaProperty("path",hr(a))})),r}}const GT=KT;class YT extends Vt(Jr,er){constructor(e){super(e),this.element=new im,this.specPath=jr(["document","objects","RequestBody"])}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return hn(this.element.contentProp)&&this.element.contentProp.filter(Jy).forEach(((n,a)=>{n.setMetaProperty("media-type",Et(a))})),r}}const XT=YT;class Db extends Ge.Sh{static primaryClass="request-body-content";constructor(e,r,n){super(e,r,n),this.classes.push(Db.primaryClass),this.classes.push("content")}}const QT=Db,ZT=class extends Wy{constructor(e){super(e),this.element=new QT}};class e6 extends Vt(nd,er){constructor(e){super(e),this.element=new zf,this.specPath=jr(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=r=>/{(?[^}]{1,2083})}/.test(String(r))}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(gb).forEach(((n,a)=>{n.setMetaProperty("runtime-expression",Et(a))})),r}}const t6=e6;class r6 extends Vt(Jr,er){constructor(e){super(e),this.element=new sm,this.specPath=jr(["document","objects","Response"])}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return hn(this.element.contentProp)&&this.element.contentProp.filter(Jy).forEach(((n,a)=>{n.setMetaProperty("media-type",Et(a))})),hn(this.element.headers)&&this.element.headers.filter(ad).forEach(((n,a)=>{n.setMetaProperty("header-name",Et(a))})),r}}const n6=r6;class Fb extends Ge.Sh{static primaryClass="response-headers";constructor(e,r,n){super(e,r,n),this.classes.push(Fb.primaryClass)}}const a6=Fb;class o6 extends Vt(Ur,er){constructor(e){super(e),this.element=new a6,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","header")})),this.element.forEach(((n,a)=>{if(!ad(n))return;const o=Et(a);n.setMetaProperty("header-name",o)})),r}}const i6=o6;class Lb extends Ge.Sh{static primaryClass="response-content";constructor(e,r,n){super(e,r,n),this.classes.push(Lb.primaryClass),this.classes.push("content")}}const s6=Lb,l6=class extends Wy{constructor(e){super(e),this.element=new s6}};class $b extends Ge.Sh{static primaryClass="response-links";constructor(e,r,n){super(e,r,n),this.classes.push($b.primaryClass)}}const c6=$b;class u6 extends Vt(Ur,er){constructor(e){super(e),this.element=new c6,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","link")})),r}}const p6=u6;function n2(t){return Object.prototype.toString.call(t)==="[object Number]"}var h6=Tr((function(e,r){if(!n2(e)||!n2(r))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(eVn(r)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=r=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${d6(100,600).join("|")})$`).test(String(r))}ObjectElement(e){const r=o2.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","response")})),this.element.filter(Vy).forEach(((n,a)=>{const o=hr(a);this.fieldPatternPredicate(Et(o))&&n.setMetaProperty("http-status-code",o)})),r}}const b6=v6;class w6 extends Vt(zl,er){constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","Response"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)?this.element.setMetaProperty("referenced-element","response"):Vy(this.element)&&this.element.setMetaProperty("http-status-code","default"),r}}const E6=w6;class S6 extends Vt(Jr,er){constructor(e){super(e),this.element=new tm,this.specPath=jr(["document","objects","Operation"])}}const x6=S6;class Bb extends Ge.wE{static primaryClass="operation-tags";constructor(e,r,n){super(e,r,n),this.classes.push(Bb.primaryClass)}}const _6=Bb,O6=class extends er{constructor(e){super(e),this.element=new _6}ArrayElement(e){return this.element=this.element.concat(hr(e)),on}};class qb extends Ge.wE{static primaryClass="operation-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(qb.primaryClass),this.classes.push("parameters")}}const i2=qb;class k6 extends Vt(zs,er){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((r=>{const n=Vn(r)?["document","objects","Reference"]:["document","objects","Parameter"],a=this.toRefractedElement(n,r);Mn(a)&&a.setMetaProperty("referenced-element","parameter"),this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const s2=k6,A6=class extends s2{constructor(e){super(e),this.element=new i2}},C6=class extends zl{constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),r}};class Ub extends Ge.Sh{static primaryClass="operation-callbacks";constructor(e,r,n){super(e,r,n),this.classes.push(Ub.primaryClass)}}const j6=Ub;class P6 extends Vt(Ur,er){specPath;constructor(e){super(e),this.element=new j6,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","callback")})),r}}const N6=P6;class zb extends Ge.wE{static primaryClass="operation-security";constructor(e,r,n){super(e,r,n),this.classes.push(zb.primaryClass),this.classes.push("security")}}const l2=zb;class T6 extends Vt(zs,er){constructor(e){super(e),this.element=new l2}ArrayElement(e){return e.forEach((r=>{const n=hn(r)?["document","objects","SecurityRequirement"]:["value"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const I6=T6;class Vb extends Ge.wE{static primaryClass="operation-servers";constructor(e,r,n){super(e,r,n),this.classes.push(Vb.primaryClass),this.classes.push("servers")}}const M6=Vb,R6=class extends fb{constructor(e){super(e),this.element=new M6}};class D6 extends Vt(Jr,er){constructor(e){super(e),this.element=new nm,this.specPath=jr(["document","objects","PathItem"])}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return this.element.filter(HS).forEach(((n,a)=>{const o=hr(a);o.content=Et(o).toUpperCase(),n.setMetaProperty("http-method",o)})),Ir(this.element.$ref)&&this.element.classes.push("reference-element"),r}}const F6=D6,L6=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}};class Jb extends Ge.wE{static primaryClass="path-item-servers";constructor(e,r,n){super(e,r,n),this.classes.push(Jb.primaryClass),this.classes.push("servers")}}const $6=Jb,B6=class extends fb{constructor(e){super(e),this.element=new $6}};class Wb extends Ge.wE{static primaryClass="path-item-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(Wb.primaryClass),this.classes.push("parameters")}}const q6=Wb,U6=class extends s2{constructor(e){super(e),this.element=new q6}};class z6 extends Vt(Jr,er){constructor(e){super(e),this.element=new fm,this.specPath=jr(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const V6=z6;class J6 extends Vt(Jr,er){constructor(e){super(e),this.element=new My,this.specPath=jr(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const W6=J6;class H6 extends Vt(Jr,er){constructor(e){super(e),this.element=new Iy,this.specPath=jr(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const K6=H6;class Hb extends Ge.Sh{static primaryClass="oauth-flow-scopes";constructor(e,r,n){super(e,r,n),this.classes.push(Hb.primaryClass)}}const G6=Hb;class Y6 extends Vt(Ur,er){constructor(e){super(e),this.element=new G6,this.specPath=jr(["value"])}}const X6=Y6;class Kb extends Ge.wE{static primaryClass="tags";constructor(e,r,n){super(e,r,n),this.classes.push(Kb.primaryClass)}}const Q6=Kb;class Z6 extends Vt(zs,er){constructor(e){super(e),this.element=new Q6}ArrayElement(e){return e.forEach((r=>{const n=mP(r)?["document","objects","Tag"]:["value"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const e4=Z6,{fixedFields:Ba}=bo.visitors.document.objects.JSONSchema,pt={visitors:{value:er,document:{objects:{OpenApi:{$visitor:yP,fixedFields:{openapi:bP,info:{$ref:"#/visitors/document/objects/Info"},servers:fb,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:ON,tags:e4,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:SP,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:xP}},Contact:{$visitor:OP,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:AP,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:DP,fixedFields:{url:FP,description:{$ref:"#/visitors/value"},variables:zP}},ServerVariable:{$visitor:BP,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:AN,fixedFields:{schemas:dT,responses:gT,parameters:bT,examples:ST,requestBodies:OT,headers:CT,securitySchemes:NT,links:MT,callbacks:FT}},Paths:{$visitor:GT},PathItem:{$visitor:F6,fixedFields:{$ref:L6,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:B6,parameters:U6}},Operation:{$visitor:x6,fixedFields:{tags:O6,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:A6,requestBody:C6,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:N6,deprecated:{$ref:"#/visitors/value"},security:I6,servers:R6}},ExternalDocumentation:{$visitor:UT,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:MN,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:DN,example:{$ref:"#/visitors/value"},examples:cT,content:pT}},RequestBody:{$visitor:XT,fixedFields:{description:{$ref:"#/visitors/value"},content:ZT,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:JP,fixedFields:{schema:fN,example:{$ref:"#/visitors/value"},examples:yN,encoding:wN}},Encoding:{$visitor:VT,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:HT,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:b6,fixedFields:{default:E6}},Response:{$visitor:n6,fixedFields:{description:{$ref:"#/visitors/value"},headers:i6,content:l6,links:p6}},Callback:{$visitor:t6},Example:{$visitor:$T,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:BT}},Link:{$visitor:jP,fixedFields:{operationRef:PP,operationId:NP,parameters:MP,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:LN,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:BN,example:{$ref:"#/visitors/value"},examples:UN,content:JN}},Tag:{$visitor:jN,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:NN,fixedFields:{$ref:TN}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:HN,fixedFields:{title:Ba.title,multipleOf:Ba.multipleOf,maximum:Ba.maximum,exclusiveMaximum:Ba.exclusiveMaximum,minimum:Ba.minimum,exclusiveMinimum:Ba.exclusiveMinimum,maxLength:Ba.maxLength,minLength:Ba.minLength,pattern:Ba.pattern,maxItems:Ba.maxItems,minItems:Ba.minItems,uniqueItems:Ba.uniqueItems,maxProperties:Ba.maxProperties,minProperties:Ba.minProperties,required:Ba.required,enum:Ba.enum,type:eT,allOf:KN,anyOf:GN,oneOf:YN,not:t2,items:XN,properties:QN,additionalProperties:t2,description:Ba.description,format:Ba.format,default:Ba.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:rT,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:oT}},XML:{$visitor:sT,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:V6,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:W6,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:K6,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:X6}},SecurityRequirement:{$visitor:SN}},extension:{$visitor:wP}}}},t4=t=>{if(da(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},r4={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Bl},n4={namespace:t=>{const{base:e}=t;return e.register("callback",zf),e.register("components",Vf),e.register("contact",Jf),e.register("discriminator",Wf),e.register("encoding",Ty),e.register("example",Hf),e.register("externalDocumentation",Kf),e.register("header",Gf),e.register("info",Yf),e.register("license",Xf),e.register("link",Qf),e.register("mediaType",Zf),e.register("oAuthFlow",Iy),e.register("oAuthFlows",My),e.register("openapi",em),e.register("openApi3_0",Ry),e.register("operation",tm),e.register("parameter",rm),e.register("pathItem",nm),e.register("paths",am),e.register("reference",om),e.register("requestBody",im),e.register("response",sm),e.register("responses",lm),e.register("schema",qy),e.register("securityRequirement",dm),e.register("securityScheme",fm),e.register("server",mm),e.register("serverVariable",gm),e.register("tag",Uy),e.register("xml",zy),e}},a4=n4,o4=()=>{const t=Ac(a4);return{predicates:{...te,isElement:da,isStringElement:Ir,isArrayElement:vo,isObjectElement:hn,isMemberElement:Bs,includesClasses:Yh,hasElementSourceMap:Gh},namespace:t}},i4=(t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Ge.e)(t),a=Ru(pt),o=new(ro(e,a))({specObj:a});return Pa(n,o),ql(o.element,r,{toolboxCreator:o4,visitorOptions:{keyMap:r4,nodeTypeGetter:t4}})},On=t=>(e,r={})=>i4(e,{specPath:t,...r});zf.refract=On(["visitors","document","objects","Callback","$visitor"]),Vf.refract=On(["visitors","document","objects","Components","$visitor"]),Jf.refract=On(["visitors","document","objects","Contact","$visitor"]),Hf.refract=On(["visitors","document","objects","Example","$visitor"]),Wf.refract=On(["visitors","document","objects","Discriminator","$visitor"]),Ty.refract=On(["visitors","document","objects","Encoding","$visitor"]),Kf.refract=On(["visitors","document","objects","ExternalDocumentation","$visitor"]),Gf.refract=On(["visitors","document","objects","Header","$visitor"]),Yf.refract=On(["visitors","document","objects","Info","$visitor"]),Xf.refract=On(["visitors","document","objects","License","$visitor"]),Qf.refract=On(["visitors","document","objects","Link","$visitor"]),Zf.refract=On(["visitors","document","objects","MediaType","$visitor"]),Iy.refract=On(["visitors","document","objects","OAuthFlow","$visitor"]),My.refract=On(["visitors","document","objects","OAuthFlows","$visitor"]),em.refract=On(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Ry.refract=On(["visitors","document","objects","OpenApi","$visitor"]),tm.refract=On(["visitors","document","objects","Operation","$visitor"]),rm.refract=On(["visitors","document","objects","Parameter","$visitor"]),nm.refract=On(["visitors","document","objects","PathItem","$visitor"]),am.refract=On(["visitors","document","objects","Paths","$visitor"]),om.refract=On(["visitors","document","objects","Reference","$visitor"]),im.refract=On(["visitors","document","objects","RequestBody","$visitor"]),sm.refract=On(["visitors","document","objects","Response","$visitor"]),lm.refract=On(["visitors","document","objects","Responses","$visitor"]),qy.refract=On(["visitors","document","objects","Schema","$visitor"]),dm.refract=On(["visitors","document","objects","SecurityRequirement","$visitor"]),fm.refract=On(["visitors","document","objects","SecurityScheme","$visitor"]),mm.refract=On(["visitors","document","objects","Server","$visitor"]),gm.refract=On(["visitors","document","objects","ServerVariable","$visitor"]),Uy.refract=On(["visitors","document","objects","Tag","$visitor"]),zy.refract=On(["visitors","document","objects","XML","$visitor"]);const Hy=class extends zf{},Ky=class extends Vf{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}},Gy=class extends Jf{},Gb=class extends Wf{},Yb=class extends Ty{},Yy=class extends Hf{},Xy=class extends Kf{},Qy=class extends Gf{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Zy=class extends Yf{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class Xb extends Ge.Om{static default=new Xb("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,r,n){super(e,r,n),this.element="jsonSchemaDialect"}}const ym=Xb,ev=class extends Xf{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}},tv=class extends Qf{},rv=class extends Zf{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Qb=class extends Iy{},Zb=class extends My{},e1=class extends em{};class s4 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Lu=s4,vm=class extends tm{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}},nv=class extends rm{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},$u=class extends nm{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}},av=class extends am{};class t1 extends om{}Object.defineProperty(t1.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0}),Object.defineProperty(t1.prototype,"summary",{get(){return this.get("summary")},set(t){this.set("summary",t)},enumerable:!0});const od=t1,ov=class extends im{},iv=class extends sm{},sv=class extends lm{},bm=class extends Zh{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft6"}get idProp(){throw new Zr("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Zr("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}},wm=class extends um{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new Zr("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Zr("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new Zr("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Zr("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Zr("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Zr("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var l4=ha((function t(e,r,n){if(e.length===0)return r;var a=e[0];if(e.length>1){var o=!jy(n)&&ts(a,n)&&typeof n[a]=="object"?n[a]:Wh(e[1])?[]:{};r=t(Array.prototype.slice.call(e,1),r,o)}return(function(c,d,E){if(Wh(c)&&Dl(E)){var x=[].concat(E);return x[c]=d,x}var k={};for(var P in E)k[P]=E[P];return k[c]=d,k})(a,r,n)}));const Kt=l4;var c4=ha((function(e,r,n){var a=Array.prototype.slice.call(n,0);return a.splice(e,r),a}));const u4=c4;var p4=ha((function(e,r,n){return Kt([e],r,n)}));const h4=p4;var d4=Tr((function t(e,r){if(r==null)return r;switch(e.length){case 0:return r;case 1:return(function(p,c){if(c==null)return c;if(Wh(p)&&Dl(c))return u4(p,1,c);var d={};for(var E in c)d[E]=c[E];return delete d[p],d})(e[0],r);default:var n=e[0],a=Array.prototype.slice.call(e,1);return r[n]==null?(function(p,c){if(Wh(p)&&Dl(c))return[].concat(c);var d={};for(var E in c)d[E]=c[E];return d})(n,r):h4(n,t(a,r[n]),r)}}));const Ii=d4,c2=class extends BS{constructor(e){super(e),this.element=new bm}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const r=this.enter(e);return this.element.classes.push("boolean-json-schema"),r}handleSchemaIdentifier(e,r="$id"){return super.handleSchemaIdentifier(e,r)}},f4=class extends qS{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),on}},m4=class extends gn{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-examples"),r}},u2=class extends zS{constructor(e){super(e),this.element=new wm}},wo=mo(Kt(["visitors","document","objects","JSONSchema","$visitor"],c2),Ii(["visitors","document","objects","JSONSchema","fixedFields","id"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$id"],bo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","contains"],bo.visitors.JSONSchemaOrJSONReferenceVisitor),Kt(["visitors","document","objects","JSONSchema","fixedFields","items"],f4),Kt(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],bo.visitors.JSONSchemaOrJSONReferenceVisitor),Kt(["visitors","document","objects","JSONSchema","fixedFields","const"],bo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","examples"],m4),Kt(["visitors","document","objects","LinkDescription","$visitor"],u2),Kt(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],bo.visitors.JSONSchemaOrJSONReferenceVisitor),Ii(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],bo.visitors.JSONSchemaOrJSONReferenceVisitor),Ii(["visitors","document","objects","LinkDescription","fixedFields","method"]),Ii(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],bo.visitors.value))(bo),g4={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Bl},y4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof bm||t(n)&&e("JSONSchemaDraft6",n)&&r("object",n))),v4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof wm||t(n)&&e("linkDescription",n)&&r("object",n))),b4={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft6",bm),e.register("jSONReference",ed),e.register("media",cm),e.register("linkDescription",wm),e}},w4=b4,E4=()=>{const t=Ac(w4);return{predicates:{...ie,isStringElement:Ir},namespace:t}},S4=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=wo}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:E4,visitorOptions:{keyMap:g4,nodeTypeGetter:hm}})},p2=t=>(e,r={})=>S4(e,{specPath:t,...r});bm.refract=p2(["visitors","document","objects","JSONSchema","$visitor"]),wm.refract=p2(["visitors","document","objects","LinkDescription","$visitor"]);const Em=class extends bm{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new Zr('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Zr('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}},Sm=class extends wm{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new Zr("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Zr("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new Zr("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Zr("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}},h2=class extends c2{constructor(e){super(e),this.element=new Em}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}},d2=class extends u2{constructor(e){super(e),this.element=new Sm}},Bu=mo(Kt(["visitors","document","objects","JSONSchema","$visitor"],h2),Kt(["visitors","document","objects","JSONSchema","fixedFields","$comment"],wo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","if"],wo.visitors.JSONSchemaOrJSONReferenceVisitor),Kt(["visitors","document","objects","JSONSchema","fixedFields","then"],wo.visitors.JSONSchemaOrJSONReferenceVisitor),Kt(["visitors","document","objects","JSONSchema","fixedFields","else"],wo.visitors.JSONSchemaOrJSONReferenceVisitor),Ii(["visitors","document","objects","JSONSchema","fixedFields","media"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],wo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],wo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","$visitor"],d2),Kt(["visitors","document","objects","LinkDescription","fixedFields","anchor"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],wo.visitors.value),Ii(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Kt(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","description"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","$comment"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],wo.visitors.JSONSchemaOrJSONReferenceVisitor),Ii(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],wo.visitors.value))(wo),x4={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Bl},_4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Em||t(n)&&e("JSONSchemaDraft7",n)&&r("object",n))),O4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Sm||t(n)&&e("linkDescription",n)&&r("object",n))),k4={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft7",Em),e.register("jSONReference",ed),e.register("linkDescription",Sm),e}},A4=k4,C4=()=>{const t=Ac(A4);return{predicates:{...se,isStringElement:Ir},namespace:t}},j4=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Bu}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:C4,visitorOptions:{keyMap:x4,nodeTypeGetter:hm}})},f2=t=>(e,r={})=>j4(e,{specPath:t,...r});Em.refract=f2(["visitors","document","objects","JSONSchema","$visitor"]),Sm.refract=f2(["visitors","document","objects","LinkDescription","$visitor"]);const xm=class extends Em{constructor(e,r,n){super(e,r,n),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new Zr("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Zr("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get dependencies(){throw new Zr("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Zr("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}},_m=class extends Sm{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}},Eo=class extends h2{constructor(e){super(e),this.element=new xm}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const r=Up.prototype.ObjectElement.call(this,e);return Ir(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}},P4=class extends gn{ObjectElement(e){const r=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),r}},N4=class extends gn{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}};class T4 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=jr(["document","objects","JSONSchema"])}}const m2=T4;class I4 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const g2=I4;class M4 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const y2=M4;class R4 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const v2=R4;class D4 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=jr(["document","objects","JSONSchema"])}}const b2=D4;class F4 extends Vt(Ti,Na,gn){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),on}ArrayElement(e){return this.element=new Ge.wE,this.element.classes.push("json-schema-items"),e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),on}}const L4=F4;class $4 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-properties"),this.specPath=jr(["document","objects","JSONSchema"])}}const w2=$4;class B4 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=jr(["document","objects","JSONSchema"])}}const E2=B4,q4=class extends gn{ObjectElement(e){const r=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),r}},S2=class extends d2{constructor(e){super(e),this.element=new _m}},lv=mo(Kt(["visitors","document","objects","JSONSchema","$visitor"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],P4),Kt(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Bu.visitors.value),Ii(["visitors","document","objects","JSONReference","$visitor"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$ref"],N4),Ii(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$defs"],m2),Kt(["visitors","document","objects","JSONSchema","fixedFields","allOf"],g2),Kt(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],y2),Kt(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],v2),Kt(["visitors","document","objects","JSONSchema","fixedFields","not"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","if"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","then"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","else"],Eo),Ii(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],b2),Kt(["visitors","document","objects","JSONSchema","fixedFields","items"],L4),Kt(["visitors","document","objects","JSONSchema","fixedFields","contains"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","properties"],w2),Kt(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],E2),Kt(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],q4),Kt(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Eo),Kt(["visitors","document","objects","LinkDescription","$visitor"],S2),Kt(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Eo),Kt(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Eo),Kt(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Eo),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Eo))(Bu),U4={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Bl},z4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof xm||t(n)&&e("JSONSchema201909",n)&&r("object",n))),V4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof _m||t(n)&&e("linkDescription",n)&&r("object",n))),J4={namespace:t=>{const{base:e}=t;return e.register("jSONSchema201909",xm),e.register("linkDescription",_m),e}},W4=J4,H4=()=>{const t=Ac(W4);return{predicates:{...Te,isStringElement:Ir},namespace:t}},K4=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=lv}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:H4,visitorOptions:{keyMap:U4,nodeTypeGetter:hm}})},x2=t=>(e,r={})=>K4(e,{specPath:t,...r});xm.refract=x2(["visitors","document","objects","JSONSchema","$visitor"]),_m.refract=x2(["visitors","document","objects","LinkDescription","$visitor"]);const Om=class extends xm{constructor(e,r,n){super(e,r,n),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new Zr("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Zr("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new Zr("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Zr("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}},cv=class extends _m{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}},qa=class extends Eo{constructor(e){super(e),this.element=new Om}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class G4 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const _2=G4,Y4=class extends S2{constructor(e){super(e),this.element=new cv}},O2=mo(Kt(["visitors","document","objects","JSONSchema","$visitor"],qa),Ii(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],lv.visitors.value),Ii(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],lv.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","not"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","if"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","then"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","else"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],_2),Kt(["visitors","document","objects","JSONSchema","fixedFields","items"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","contains"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],qa),Ii(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],qa),Kt(["visitors","document","objects","LinkDescription","$visitor"],Y4),Kt(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],qa),Kt(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],qa),Kt(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],qa),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],qa))(lv),X4={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Bl},Q4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Om||t(n)&&e("JSONSchema202012",n)&&r("object",n))),Z4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cv||t(n)&&e("linkDescription",n)&&r("object",n))),eI={namespace:t=>{const{base:e}=t;return e.register("jSONSchema202012",Om),e.register("linkDescription",cv),e}},tI=eI,rI=()=>{const t=Ac(tI);return{predicates:{...he,isStringElement:Ir},namespace:t}},nI=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=O2}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:rI,visitorOptions:{keyMap:X4,nodeTypeGetter:hm}})},k2=t=>(e,r={})=>nI(e,{specPath:t,...r});Om.refract=k2(["visitors","document","objects","JSONSchema","$visitor"]),cv.refract=k2(["visitors","document","objects","LinkDescription","$visitor"]);const qu=class extends Om{constructor(e,r,n){super(e,r,n),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}},uv=class extends dm{},pv=class extends fm{},hv=class extends mm{},dv=class extends gm{},r1=class extends Uy{},n1=class extends zy{};class aI extends Vt(Jr,er){constructor(e){super(e),this.element=new Lu,this.specPath=jr(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Jr.prototype.ObjectElement.call(this,e)}}const oI=aI,iI=pt.visitors.document.objects.Info.$visitor,sI=class extends iI{constructor(e){super(e),this.element=new Zy}},lI=pt.visitors.document.objects.Contact.$visitor,cI=class extends lI{constructor(e){super(e),this.element=new Gy}},uI=pt.visitors.document.objects.License.$visitor,pI=class extends uI{constructor(e){super(e),this.element=new ev}},hI=pt.visitors.document.objects.Link.$visitor,dI=class extends hI{constructor(e){super(e),this.element=new tv}};class fI extends Vt(zs,er){StringElement(e){const r=new ym(Et(e));return this.copyMetaAndAttributes(e,r),this.element=r,on}}const mI=fI,gI=pt.visitors.document.objects.Server.$visitor,yI=class extends gI{constructor(e){super(e),this.element=new hv}},vI=pt.visitors.document.objects.ServerVariable.$visitor,bI=class extends vI{constructor(e){super(e),this.element=new dv}},wI=pt.visitors.document.objects.MediaType.$visitor,EI=class extends wI{constructor(e){super(e),this.element=new rv}},SI=pt.visitors.document.objects.SecurityRequirement.$visitor,xI=class extends SI{constructor(e){super(e),this.element=new uv}},_I=pt.visitors.document.objects.Components.$visitor,OI=class extends _I{constructor(e){super(e),this.element=new Ky}},kI=pt.visitors.document.objects.Tag.$visitor,AI=class extends kI{constructor(e){super(e),this.element=new r1}},CI=pt.visitors.document.objects.Reference.$visitor,jI=class extends CI{constructor(e){super(e),this.element=new od}},PI=pt.visitors.document.objects.Parameter.$visitor,NI=class extends PI{constructor(e){super(e),this.element=new nv}},TI=pt.visitors.document.objects.Header.$visitor,II=class extends TI{constructor(e){super(e),this.element=new Qy}},MI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Hy||t(n)&&e("callback",n)&&r("object",n))),RI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ky||t(n)&&e("components",n)&&r("object",n))),DI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Gy||t(n)&&e("contact",n)&&r("object",n))),FI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Yy||t(n)&&e("example",n)&&r("object",n))),LI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xy||t(n)&&e("externalDocumentation",n)&&r("object",n))),$I=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qy||t(n)&&e("header",n)&&r("object",n))),BI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zy||t(n)&&e("info",n)&&r("object",n))),A2=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ym||t(n)&&e("jsonSchemaDialect",n)&&r("string",n))),qI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ev||t(n)&&e("license",n)&&r("object",n))),UI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof tv||t(n)&&e("link",n)&&r("object",n))),zI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof e1||t(n)&&e("openapi",n)&&r("string",n))),C2=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>a=>a instanceof Lu||t(a)&&e("openApi3_1",a)&&r("object",a)&&n("api",a))),j2=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof vm||t(n)&&e("operation",n)&&r("object",n))),VI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof nv||t(n)&&e("parameter",n)&&r("object",n))),zp=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $u||t(n)&&e("pathItem",n)&&r("object",n))),JI=t=>{if(!zp(t)||!Ir(t.$ref))return!1;const e=Et(t.$ref);return typeof e=="string"&&e.length>0&&!e.startsWith("#")},WI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof av||t(n)&&e("paths",n)&&r("object",n))),Vp=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof od||t(n)&&e("reference",n)&&r("object",n))),HI=t=>{if(!Vp(t)||!Ir(t.$ref))return!1;const e=Et(t.$ref);return typeof e=="string"&&e.length>0&&!e.startsWith("#")},KI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ov||t(n)&&e("requestBody",n)&&r("object",n))),GI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof iv||t(n)&&e("response",n)&&r("object",n))),YI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof sv||t(n)&&e("responses",n)&&r("object",n))),Vs=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof qu||t(n)&&e("schema",n)&&r("object",n))),a1=t=>Ff(t)&&t.classes.includes("boolean-json-schema"),XI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof uv||t(n)&&e("securityRequirement",n)&&r("object",n))),QI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pv||t(n)&&e("securityScheme",n)&&r("object",n))),ZI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof hv||t(n)&&e("server",n)&&r("object",n))),e5=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof dv||t(n)&&e("serverVariable",n)&&r("object",n))),t5=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof rv||t(n)&&e("mediaType",n)&&r("object",n)));class r5 extends Vt(Jr,Na,er){constructor(e){super(e),this.element=new qu,this.specPath=jr(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=ym.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const r=Jr.prototype.ObjectElement.call(this,e);return Ir(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}BooleanElement(e){return qa.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=this.openApiSemanticElement!==void 0&&A2(this.openApiSemanticElement.jsonSchemaDialect)?Et(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&Ir(this.openApiGenericElement.get("jsonSchemaDialect"))?Et(this.openApiGenericElement.get("jsonSchemaDialect")):Et(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return qa.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return qa.prototype.handleSchemaIdentifier.call(this,e)}}const n5=r5,a5=class extends m2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},o5=class extends g2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},i5=class extends y2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},s5=class extends v2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},l5=class extends b2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},c5=class extends _2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},u5=class extends w2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},p5=class extends E2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},h5=pt.visitors.document.objects.Discriminator.$visitor,d5=class extends h5{constructor(e){super(e),this.element=new Gb,this.canSupportSpecificationExtensions=!0}},f5=pt.visitors.document.objects.XML.$visitor,m5=class extends f5{constructor(e){super(e),this.element=new n1}};class g5 extends Vt(Ur,er){constructor(e){super(e),this.element=new r2,this.specPath=jr(["document","objects","Schema"])}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Vs).forEach(((n,a)=>{n.setMetaProperty("schemaName",Et(a))})),r}}const y5=g5;class o1 extends Ge.Sh{static primaryClass="components-path-items";constructor(e,r,n){super(e,r,n),this.classes.push(o1.primaryClass)}}const v5=o1;class b5 extends Vt(Ur,er){constructor(e){super(e),this.element=new v5,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Vp).forEach((n=>{n.setMetaProperty("referenced-element","pathItem")})),r}}const w5=b5,E5=pt.visitors.document.objects.Example.$visitor,S5=class extends E5{constructor(e){super(e),this.element=new Yy}},x5=pt.visitors.document.objects.ExternalDocumentation.$visitor,_5=class extends x5{constructor(e){super(e),this.element=new Xy}},O5=pt.visitors.document.objects.Encoding.$visitor,k5=class extends O5{constructor(e){super(e),this.element=new Yb}},A5=pt.visitors.document.objects.Paths.$visitor,C5=class extends A5{constructor(e){super(e),this.element=new av}},j5=pt.visitors.document.objects.RequestBody.$visitor,P5=class extends j5{constructor(e){super(e),this.element=new ov}},P2=pt.visitors.document.objects.Callback.$visitor,N5=class extends P2{constructor(e){super(e),this.element=new Hy,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=P2.prototype.ObjectElement.call(this,e);return this.element.filter(Vp).forEach((n=>{n.setMetaProperty("referenced-element","pathItem")})),r}},T5=pt.visitors.document.objects.Response.$visitor,I5=class extends T5{constructor(e){super(e),this.element=new iv}},M5=pt.visitors.document.objects.Responses.$visitor,R5=class extends M5{constructor(e){super(e),this.element=new sv}},D5=pt.visitors.document.objects.Operation.$visitor,F5=class extends D5{constructor(e){super(e),this.element=new vm}},L5=pt.visitors.document.objects.PathItem.$visitor,$5=class extends L5{constructor(e){super(e),this.element=new $u}},B5=pt.visitors.document.objects.SecurityScheme.$visitor,q5=class extends B5{constructor(e){super(e),this.element=new pv}},U5=pt.visitors.document.objects.OAuthFlows.$visitor,z5=class extends U5{constructor(e){super(e),this.element=new Zb}},V5=pt.visitors.document.objects.OAuthFlow.$visitor,J5=class extends V5{constructor(e){super(e),this.element=new Qb}};class i1 extends Ge.Sh{static primaryClass="webhooks";constructor(e,r,n){super(e,r,n),this.classes.push(i1.primaryClass)}}const W5=i1;class H5 extends Vt(Ur,er){constructor(e){super(e),this.element=new W5,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Vp).forEach((n=>{n.setMetaProperty("referenced-element","pathItem")})),this.element.filter(zp).forEach(((n,a)=>{n.setMetaProperty("webhook-name",Et(a))})),r}}const K5=H5,{JSONSchema:G5,LinkDescription:Y5}=O2.visitors.document.objects,X5={visitors:{value:pt.visitors.value,document:{objects:{OpenApi:{$visitor:oI,fixedFields:{openapi:pt.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:mI,servers:pt.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:K5,components:{$ref:"#/visitors/document/objects/Components"},security:pt.visitors.document.objects.OpenApi.fixedFields.security,tags:pt.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:sI,fixedFields:{title:pt.visitors.document.objects.Info.fixedFields.title,description:pt.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:pt.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:pt.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:cI,fixedFields:{name:pt.visitors.document.objects.Contact.fixedFields.name,url:pt.visitors.document.objects.Contact.fixedFields.url,email:pt.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:pI,fixedFields:{name:pt.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:pt.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:yI,fixedFields:{url:pt.visitors.document.objects.Server.fixedFields.url,description:pt.visitors.document.objects.Server.fixedFields.description,variables:pt.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:bI,fixedFields:{enum:pt.visitors.document.objects.ServerVariable.fixedFields.enum,default:pt.visitors.document.objects.ServerVariable.fixedFields.default,description:pt.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:OI,fixedFields:{schemas:y5,responses:pt.visitors.document.objects.Components.fixedFields.responses,parameters:pt.visitors.document.objects.Components.fixedFields.parameters,examples:pt.visitors.document.objects.Components.fixedFields.examples,requestBodies:pt.visitors.document.objects.Components.fixedFields.requestBodies,headers:pt.visitors.document.objects.Components.fixedFields.headers,securitySchemes:pt.visitors.document.objects.Components.fixedFields.securitySchemes,links:pt.visitors.document.objects.Components.fixedFields.links,callbacks:pt.visitors.document.objects.Components.fixedFields.callbacks,pathItems:w5}},Paths:{$visitor:C5},PathItem:{$visitor:$5,fixedFields:{$ref:pt.visitors.document.objects.PathItem.fixedFields.$ref,summary:pt.visitors.document.objects.PathItem.fixedFields.summary,description:pt.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:pt.visitors.document.objects.PathItem.fixedFields.servers,parameters:pt.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:F5,fixedFields:{tags:pt.visitors.document.objects.Operation.fixedFields.tags,summary:pt.visitors.document.objects.Operation.fixedFields.summary,description:pt.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:pt.visitors.document.objects.Operation.fixedFields.operationId,parameters:pt.visitors.document.objects.Operation.fixedFields.parameters,requestBody:pt.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:pt.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:pt.visitors.document.objects.Operation.fixedFields.deprecated,security:pt.visitors.document.objects.Operation.fixedFields.security,servers:pt.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:_5,fixedFields:{description:pt.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:pt.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:NI,fixedFields:{name:pt.visitors.document.objects.Parameter.fixedFields.name,in:pt.visitors.document.objects.Parameter.fixedFields.in,description:pt.visitors.document.objects.Parameter.fixedFields.description,required:pt.visitors.document.objects.Parameter.fixedFields.required,deprecated:pt.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:pt.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:pt.visitors.document.objects.Parameter.fixedFields.style,explode:pt.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:pt.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:pt.visitors.document.objects.Parameter.fixedFields.example,examples:pt.visitors.document.objects.Parameter.fixedFields.examples,content:pt.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:P5,fixedFields:{description:pt.visitors.document.objects.RequestBody.fixedFields.description,content:pt.visitors.document.objects.RequestBody.fixedFields.content,required:pt.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:EI,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:pt.visitors.document.objects.MediaType.fixedFields.example,examples:pt.visitors.document.objects.MediaType.fixedFields.examples,encoding:pt.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:k5,fixedFields:{contentType:pt.visitors.document.objects.Encoding.fixedFields.contentType,headers:pt.visitors.document.objects.Encoding.fixedFields.headers,style:pt.visitors.document.objects.Encoding.fixedFields.style,explode:pt.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:pt.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:R5,fixedFields:{default:pt.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:I5,fixedFields:{description:pt.visitors.document.objects.Response.fixedFields.description,headers:pt.visitors.document.objects.Response.fixedFields.headers,content:pt.visitors.document.objects.Response.fixedFields.content,links:pt.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:N5},Example:{$visitor:S5,fixedFields:{summary:pt.visitors.document.objects.Example.fixedFields.summary,description:pt.visitors.document.objects.Example.fixedFields.description,value:pt.visitors.document.objects.Example.fixedFields.value,externalValue:pt.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:dI,fixedFields:{operationRef:pt.visitors.document.objects.Link.fixedFields.operationRef,operationId:pt.visitors.document.objects.Link.fixedFields.operationId,parameters:pt.visitors.document.objects.Link.fixedFields.parameters,requestBody:pt.visitors.document.objects.Link.fixedFields.requestBody,description:pt.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:II,fixedFields:{description:pt.visitors.document.objects.Header.fixedFields.description,required:pt.visitors.document.objects.Header.fixedFields.required,deprecated:pt.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:pt.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:pt.visitors.document.objects.Header.fixedFields.style,explode:pt.visitors.document.objects.Header.fixedFields.explode,allowReserved:pt.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:pt.visitors.document.objects.Header.fixedFields.example,examples:pt.visitors.document.objects.Header.fixedFields.examples,content:pt.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:AI,fixedFields:{name:pt.visitors.document.objects.Tag.fixedFields.name,description:pt.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:jI,fixedFields:{$ref:pt.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Y5},Schema:{$visitor:n5,fixedFields:{...G5.fixedFields,$defs:a5,allOf:o5,anyOf:i5,oneOf:s5,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:l5,prefixItems:c5,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:u5,patternProperties:p5,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:d5,fixedFields:{propertyName:pt.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:pt.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:m5,fixedFields:{name:pt.visitors.document.objects.XML.fixedFields.name,namespace:pt.visitors.document.objects.XML.fixedFields.namespace,prefix:pt.visitors.document.objects.XML.fixedFields.prefix,attribute:pt.visitors.document.objects.XML.fixedFields.attribute,wrapped:pt.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:q5,fixedFields:{type:pt.visitors.document.objects.SecurityScheme.fixedFields.type,description:pt.visitors.document.objects.SecurityScheme.fixedFields.description,name:pt.visitors.document.objects.SecurityScheme.fixedFields.name,in:pt.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:pt.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:pt.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:pt.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:z5,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:J5,fixedFields:{authorizationUrl:pt.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:pt.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:pt.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:pt.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:xI}},extension:{$visitor:pt.visitors.document.extension.$visitor}}}},as=t=>{if(da(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},Js={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Bl},Q5={namespace:t=>{const{base:e}=t;return e.register("callback",Hy),e.register("components",Ky),e.register("contact",Gy),e.register("discriminator",Gb),e.register("encoding",Yb),e.register("example",Yy),e.register("externalDocumentation",Xy),e.register("header",Qy),e.register("info",Zy),e.register("jsonSchemaDialect",ym),e.register("license",ev),e.register("link",tv),e.register("mediaType",rv),e.register("oAuthFlow",Qb),e.register("oAuthFlows",Zb),e.register("openapi",e1),e.register("openApi3_1",Lu),e.register("operation",vm),e.register("parameter",nv),e.register("pathItem",$u),e.register("paths",av),e.register("reference",od),e.register("requestBody",ov),e.register("response",iv),e.register("responses",sv),e.register("schema",qu),e.register("securityRequirement",uv),e.register("securityScheme",pv),e.register("server",hv),e.register("serverVariable",dv),e.register("tag",r1),e.register("xml",n1),e}},s1=Q5,Z5=t=>{const e=t.reduce(((r,n,a)=>{if(Bs(n)){const o=String(Et(n.key));r.push(o)}else if(vo(t[a-2])){const o=String(t[a-2].content.indexOf(n));r.push(o)}return r}),[]);return _S(e)},N2=()=>{const t=Ac(s1);return{predicates:{...ge,isElement:da,isStringElement:Ir,isArrayElement:vo,isObjectElement:hn,isMemberElement:Bs,isServersElement:KS,includesClasses:Yh,hasElementSourceMap:Gh},ancestorLineageToJSONPointer:Z5,namespace:t}},e8=(t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Ge.e)(t),a=Ru(X5),o=new(ro(e,a))({specObj:a});return Pa(n,o),ql(o.element,r,{toolboxCreator:N2,visitorOptions:{keyMap:Js,nodeTypeGetter:as}})},wn=t=>(e,r={})=>e8(e,{specPath:t,...r});Hy.refract=wn(["visitors","document","objects","Callback","$visitor"]),Ky.refract=wn(["visitors","document","objects","Components","$visitor"]),Gy.refract=wn(["visitors","document","objects","Contact","$visitor"]),Yy.refract=wn(["visitors","document","objects","Example","$visitor"]),Gb.refract=wn(["visitors","document","objects","Discriminator","$visitor"]),Yb.refract=wn(["visitors","document","objects","Encoding","$visitor"]),Xy.refract=wn(["visitors","document","objects","ExternalDocumentation","$visitor"]),Qy.refract=wn(["visitors","document","objects","Header","$visitor"]),Zy.refract=wn(["visitors","document","objects","Info","$visitor"]),ym.refract=wn(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),ev.refract=wn(["visitors","document","objects","License","$visitor"]),tv.refract=wn(["visitors","document","objects","Link","$visitor"]),rv.refract=wn(["visitors","document","objects","MediaType","$visitor"]),Qb.refract=wn(["visitors","document","objects","OAuthFlow","$visitor"]),Zb.refract=wn(["visitors","document","objects","OAuthFlows","$visitor"]),e1.refract=wn(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Lu.refract=wn(["visitors","document","objects","OpenApi","$visitor"]),vm.refract=wn(["visitors","document","objects","Operation","$visitor"]),nv.refract=wn(["visitors","document","objects","Parameter","$visitor"]),$u.refract=wn(["visitors","document","objects","PathItem","$visitor"]),av.refract=wn(["visitors","document","objects","Paths","$visitor"]),od.refract=wn(["visitors","document","objects","Reference","$visitor"]),ov.refract=wn(["visitors","document","objects","RequestBody","$visitor"]),iv.refract=wn(["visitors","document","objects","Response","$visitor"]),sv.refract=wn(["visitors","document","objects","Responses","$visitor"]),qu.refract=wn(["visitors","document","objects","Schema","$visitor"]),uv.refract=wn(["visitors","document","objects","SecurityRequirement","$visitor"]),pv.refract=wn(["visitors","document","objects","SecurityScheme","$visitor"]),hv.refract=wn(["visitors","document","objects","Server","$visitor"]),dv.refract=wn(["visitors","document","objects","ServerVariable","$visitor"]),r1.refract=wn(["visitors","document","objects","Tag","$visitor"]),n1.refract=wn(["visitors","document","objects","XML","$visitor"]);const l1=class extends Zr{},t8=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new l1("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new l1("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new l1("latest method in MediaTypes class is not yet implemented.")}};class c1 extends t8{filterByFormat(e="generic"){const r=e==="generic"?"openapi;version":e;return this.filter((n=>n.includes(r)))}findBy(e="3.1.0",r="generic"){const n=r==="generic"?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${r};version=${e}`;return this.find((a=>a.includes(n)))||this.unknownMediaType}latest(e="generic"){return py(this.filterByFormat(e))}}const id=new c1("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),Cc=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:r=0,refSet:n,value:a}){this.uri=e,this.value=a,this.depth=r,this.refSet=n,this.errors=[]}},sd=class{rootRef;refs;circular;constructor({refs:e=[],circular:r=!1}={}){this.refs=[],this.circular=r,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=this.rootRef===void 0?e:this.rootRef,e.refSet=this),this}merge(e){for(const r of e.values())this.add(r);return this}has(e){const r=Lp(e)?e:e.uri;return dE(this.find((n=>n.uri===r)))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach((e=>{e.refSet=void 0})),this.rootRef=void 0,this.refs.length=0}};function r8(t){return t}const T2=_r(r8),I2={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:T2,immutable:!0,dereferenceOpts:{}},bundle:{strategies:[],refSet:null,maxDepth:1/0}},n8=Tr((function(e,r){return function(n){return function(a){return yy((function(o){return r(o,a)}),n(e(a)))}}}));var M2=function(t){return{value:t,map:function(e){return M2(e(t))}}},a8=ha((function(e,r,n){return e((function(a){return M2(r(a))}))(n).value}));const o8=a8,i8=Pu(""),s8=n8(ro(["resolve","baseURI"]),Kt(["resolve","baseURI"])),l8=t=>i8(t)?P0():t,R2=(t,e)=>{const r=Py(t,e);return o8(s8,l8,r)},ld=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:r="text/plain",data:n,parseResult:a}){this.uri=e,this.mediaType=r,this.data=n,this.parseResult=a}get extension(){return Lp(this.uri)?(e=>{const r=e.lastIndexOf(".");return r>=0?e.substring(r).toLowerCase():""})(this.uri):""}toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Fs(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}},c8=class extends Mt{plugin;constructor(e,r){super(e,{cause:r.cause}),this.plugin=r.plugin}},u1=async(t,e,r)=>{const n=await Promise.all(r.map(qf([t],e)));return r.filter(((a,o)=>n[o]))},p1=async(t,e,r)=>{let n;for(const a of r)try{const o=await a[t].call(a,...e);return{plugin:a,result:o}}catch(o){n=new c8("Error while running plugin",{cause:o,plugin:a})}return Promise.reject(n)},h1=class extends Mt{},D2=class extends h1{},u8=async(t,e)=>{let r=t,n=!1;if(!iS(t)){const p=no(t);p.classes.push("result"),r=new $s([p]),n=!0}const a=new ld({uri:e.resolve.baseURI,parseResult:r,mediaType:e.parse.mediaType}),o=await u1("canDereference",[a,e],e.dereference.strategies);if(Bf(o))throw new D2(a.uri);try{const{result:p}=await p1("dereference",[a,e],o);return n?p.get(0):p}catch(p){throw new h1(`Error while dereferencing file "${a.uri}"`,{cause:p})}},d1=class extends Mt{},jc=class extends d1{},km=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:r=!0,sourceMap:n=!1,fileExtensions:a=[],mediaTypes:o=[]}){this.name=e,this.allowEmpty=r,this.sourceMap=n,this.fileExtensions=a,this.mediaTypes=o}},p8=class extends km{constructor(e){super({...e??{},name:"binary"})}canParse(e){return this.fileExtensions.length===0||this.fileExtensions.includes(e.extension)}parse(e){try{const r=unescape(encodeURIComponent(e.toString())),n=btoa(r),a=new $s;if(n.length!==0){const o=new Ge.Om(n);o.classes.push("result"),a.push(o)}return a}catch(r){throw new jc(`Error parsing "${e.uri}"`,{cause:r})}}},h8=class{name;constructor({name:e}){this.name=e}},d8=class extends h8{constructor(e){super({...e??{},name:"openapi-3-1"})}canResolve(e,r){const n=r.dereference.strategies.find((a=>a.name==="openapi-3-1"));return n!==void 0&&n.canDereference(e,r)}async resolve(e,r){const n=r.dereference.strategies.find((p=>p.name==="openapi-3-1"));if(n===void 0)throw new D2('"openapi-3-1" dereference strategy is not available.');const a=new sd,o=R2(r,{resolve:{internal:!1},dereference:{refSet:a}});return await n.dereference(e,o),a}},f8=class{name;constructor({name:e}){this.name=e}},m8=class extends f8{timeout;redirects;withCredentials;constructor(e){const{name:r="http-resolver",timeout:n=5e3,redirects:a=5,withCredentials:o=!1}=e??{};super({name:r}),this.timeout=n,this.redirects=a,this.withCredentials=o}canRead(e){return j0(e.uri)}},fv=class extends Mt{},F2=class extends fv{},{AbortController:g8,AbortSignal:y8}=globalThis;globalThis.AbortController===void 0&&(globalThis.AbortController=g8),globalThis.AbortSignal===void 0&&(globalThis.AbortSignal=y8);const v8=class extends m8{swaggerHTTPClient=Mf;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=Mf,swaggerHTTPClientConfig:r={},...n}={}){super({...n,name:"http-swagger-client"}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=r}getHttpClient(){return this.swaggerHTTPClient}async read(e){const r=this.getHttpClient(),n=new AbortController,{signal:a}=n,o=setTimeout((()=>{n.abort()}),this.timeout),p=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",c=this.redirects===0?"error":"follow",d=this.redirects>0?this.redirects:void 0;try{return(await r({url:e.uri,signal:a,userFetch:async(E,x)=>{let k=await fetch(E,x);try{k.headers.delete("Content-Type")}catch{k=new Response(k.body,{...k,headers:new Headers(k.headers)}),k.headers.delete("Content-Type")}return k},credentials:p,redirect:c,follow:d,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(E){throw new F2(`Error downloading "${e.uri}"`,{cause:E})}finally{clearTimeout(o)}}},L2=(t,e=wS)=>{if(Lp(t))try{return e.fromRefract(JSON.parse(t))}catch{}return Ls(t)&&$f("element",t)?e.fromRefract(t):e.toElement(t)},b8=class extends km{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){var r,n;const a=this.fileExtensions.length===0||Yn()(r=this.fileExtensions).call(r,e.extension),o=Yn()(n=this.mediaTypes).call(n,e.mediaType);if(!a)return!1;if(o)return!0;if(!o)try{return JSON.parse(e.toString()),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new jc("json-swagger-client parser plugin doesn't support sourceMaps option");const r=new $s,n=e.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const a=L2(JSON.parse(n));return a.classes.push("result"),r.push(a),r}catch(a){throw new jc(`Error parsing "${e.uri}"`,{cause:a})}}},w8=class extends km{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){var r,n;const a=this.fileExtensions.length===0||Yn()(r=this.fileExtensions).call(r,e.extension),o=Yn()(n=this.mediaTypes).call(n,e.mediaType);if(!a)return!1;if(o)return!0;if(!o)try{return Pe.load(e.toString(),{schema:Rt}),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new jc("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const r=new $s,n=e.toString();try{const a=Pe.load(n,{schema:Rt});if(this.allowEmpty&&a===void 0)return r;const o=L2(a);return o.classes.push("result"),r.push(o),r}catch(a){throw new jc(`Error parsing "${e.uri}"`,{cause:a})}}},E8=class extends km{detectionRegExp=/"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new c1(...id.filterByFormat("generic"),...id.filterByFormat("json")),...e})}async canParse(e){var r,n;const a=this.fileExtensions.length===0||Yn()(r=this.fileExtensions).call(r,e.extension),o=Yn()(n=this.mediaTypes).call(n,e.mediaType);if(!a)return!1;if(o)return!0;if(!o)try{const p=e.toString();return JSON.parse(p),this.detectionRegExp.test(p)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new jc("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const r=new $s,n=e.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const a=JSON.parse(n),o=Lu.refract(a,this.refractorOpts);return o.classes.push("result"),r.push(o),r}catch(a){throw new jc(`Error parsing "${e.uri}"`,{cause:a})}}},S8=class extends km{detectionRegExp=/(?^(["']?)openapi\2\s*:\s*(["']?)(?3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new c1(...id.filterByFormat("generic"),...id.filterByFormat("yaml")),...e})}async canParse(e){var r,n;const a=this.fileExtensions.length===0||Yn()(r=this.fileExtensions).call(r,e.extension),o=Yn()(n=this.mediaTypes).call(n,e.mediaType);if(!a)return!1;if(o)return!0;if(!o)try{const p=e.toString();return Pe.load(p),this.detectionRegExp.test(p)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new jc("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const r=new $s,n=e.toString();try{const a=Pe.load(n,{schema:Rt});if(this.allowEmpty&&a===void 0)return r;const o=Lu.refract(a,this.refractorOpts);return o.classes.push("result"),r.push(o),r}catch(a){throw new jc(`Error parsing "${e.uri}"`,{cause:a})}}},$2=ha((function(e,r,n){return Pu(e,Af(r,n))})),x8=class{name;constructor({name:e}){this.name=e}},_8=Tr((function(e,r){return Z0(cE(e),r)}));var O8=Be(8068);const k8=class extends xr{value;constructor(e,r){super(e,r),r!==void 0&&(this.value=r.value)}};class f1{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new O8({length:e}),this.identityMap=new WeakMap}identify(e){if(!da(e))throw new k8("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&Ir(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const r=new Ge.Om(this.generateId());return this.identityMap.set(e,r),r}forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)}generateId(){return this.uuid.randomUUID()}}new f1;const B2=ha((function(e,r,n){return Jh(e,J0(r,n))})),q2=(t,e)=>{const r=new fS({predicate:t,returnOnTrue:on});return Pa(e,r),B2(void 0,[0],r.result)},U2=class extends Mt{},A8=class extends U2{},C8=class extends U2{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},mv=t=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(t),cd=t=>{const e=EE(t);return cS("#",e)},m1=(t,e)=>{const r=(a=>{if(!mv(a))throw new C8(a);return a})(t),n=q2((a=>Vs(a)&&Et(a.$anchor)===r),e);if(Iu(n))throw new A8(`Evaluation failed on token: "${r}"`);return n},j8=(t,e)=>{const r=new fS({predicate:t});return Pa(e,r),new Ge.G6(r.result)},P8=class extends Mt{},g1=class extends P8{},z2=(t,e)=>{if(e.$ref===void 0)return;const r=EE(Et(e.$ref)),n=Et(e.meta.get("ancestorsSchemaIdentifiers"));return`${Vh(((o,p)=>go(o,by(In(p)))),t,[...n,Et(e.$ref)])}${r==="#"?"":r}`},Am=t=>{if(Am.cache.has(t))return Am.cache.get(t);const e=qu.refract(t);return Am.cache.set(t,e),e};Am.cache=new WeakMap;const qo=t=>$p(t)?Am(t):t,gv=(t,e)=>{const{cache:r}=gv,n=In(t),a=p=>Vs(p)&&p.$id!==void 0;if(!r.has(e)){const p=j8(a,e);r.set(e,Array.from(p))}const o=r.get(e).find((p=>((d,E)=>{if(E.$id===void 0)return;const x=Et(E.meta.get("ancestorsSchemaIdentifiers"));return Vh(((k,P)=>go(k,by(In(P)))),d,x)})(n,p)===n));if(Iu(o))throw new g1(`Evaluation failed on URI: "${t}"`);return mv(cd(t))?m1(cd(t),o):Us(o,rs(t))};gv.cache=new WeakMap;const ud=class extends h1{},N8=class extends fv{},V2=class extends F2{},J2="apidom-file-cache",W2=async({cacheKey:t,result:e,error:r,cacheTTL:n})=>{if(n!==0)try{const a={cachedResult:e,cachedError:r,timestamp:Date.now()},o=await caches.open(J2),p=new Response(JSON.stringify(a),{headers:{"Content-Type":"application/json"}});await o.put(t,p)}catch{console.error("CacheStorage is not available")}},T8=async(t,e)=>{const{cacheTTL:r=0}=e.resolve.resolverOpts,n=`read_${t.uri}`,{cachedResult:a,cachedError:o}=await(async({cacheKey:k,cacheTTL:P})=>{if(P===0)return{cachedResult:null,cachedError:null};try{const R=await caches.open(J2),L=await R.match(k);if(L){const{cachedResult:V,cachedError:Q,timestamp:J}=await L.json();if(Date.now()-J{const P=Object.create(k);return Object.assign(P,e.resolve.resolverOpts)})),c=await u1("canRead",[t,e],p);if(Bf(c))throw new V2(t.uri);try{const{result:k}=await p1("read",[t],c),P=new ld({...t,data:k}).toString();return await W2({cacheKey:n,result:P,error:null,cacheTTL:r}),k}catch(k){var d,E,x;throw await W2({cacheKey:n,result:null,error:(d=(E=k==null||(x=k.cause)===null||x===void 0?void 0:x.cause)!==null&&E!==void 0?E:k?.cause)!==null&&d!==void 0?d:k,cacheTTL:r}),new fv(`Error while reading file "${t.uri}"`,{cause:k})}},I8=async(t,e)=>{const r=new ld({uri:by(In(t)),mediaType:e.parse.mediaType}),n=await T8(r,e);return(async(a,o)=>{const p=o.parse.parsers.map((d=>{const E=Object.create(d);return Object.assign(E,o.parse.parserOpts)})),c=await u1("canParse",[a,o],p);if(Bf(c))throw new V2(a.uri);try{const{plugin:d,result:E}=await p1("parse",[a,o],c);return!d.allowEmpty&&E.isEmpty?Promise.reject(new d1(`Error while parsing file "${a.uri}". File is empty.`)):E}catch(d){throw new d1(`Error while parsing file "${a.uri}"`,{cause:d})}})(new ld({...r,data:n}),e)};class y1 extends Array{includesCycle(e){return this.filter((r=>r.has(e))).length>1}includes(e,r){return e instanceof Set?super.includes(e,r):this.some((n=>n.has(e)))}findItem(e){for(const r of this)for(const n of r)if(da(n)&&e(n))return n}}const yv=Pa[Symbol.for("nodejs.util.promisify.custom")],So=new f1,os=(t,e,r,n)=>{Bs(n)?n.value=t:Array.isArray(n)&&(n[r]=t)};class pd{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;errorContext;errorPropagationCache=new Map;pendingPropagations=[];constructor({reference:e,namespace:r,options:n,indirections:a=[],ancestors:o=new y1,refractCache:p=new Map,allOfDiscriminatorMapping:c=new Map,errorContext:d=[],errorPropagationCache:E=new Map,pendingPropagations:x=[]}){this.indirections=a,this.namespace=r,this.reference=e,this.options=n,this.ancestors=new y1(...o),this.refractCache=p,this.allOfDiscriminatorMapping=c,this.errorContext=d,this.errorPropagationCache=E,this.pendingPropagations=x}popErrorContext(e){if(this.errorContext[this.errorContext.length-1]===e)this.errorContext.pop();else for(let r=this.errorContext.length-1;r>=0;r-=1)if(this.errorContext[r]===e){this.errorContext.splice(r,1);break}}runPropagationPass(){let e=!1;return this.pendingPropagations.forEach((({referencingElement:r,referencedElement:n})=>{const a=this.errorPropagationCache.get(n);Array.isArray(a)&&a.length>0&&a.forEach((o=>{const p=this.errorPropagationCache.get(r);var c;p!=null&&p.includes(o)||((c=this.options.dereference.dereferenceOpts)===null||c===void 0||c.errors.push({error:o,refEl:r}),p?p.push(o):this.errorPropagationCache.set(r,[o]),e=!0)}))})),e}propagateErrors(){for(;this.runPropagationPass(););this.pendingPropagations.length=0}handleDereferenceError(e,r,n){var a;if((a=this.options.dereference.dereferenceOpts)===null||a===void 0||!a.continueOnError)throw e;{var o,p,c;const{directAncestors:x,isExternalReference:k=!1}=n??{},P=(o=(p=this.options.dereference.dereferenceOpts)===null||p===void 0?void 0:p.skipNestedExternal)!==null&&o!==void 0&&o,R=k&&P;if(x&&!R){for(const V of x){const Q=this.errorPropagationCache.get(V);Q?Q.push(e):this.errorPropagationCache.set(V,[e])}const L=[...x].find((V=>hn(V)&&V.getMetaProperty("ref-referencing-element")));var d;L&&((d=this.options.dereference.dereferenceOpts)===null||d===void 0||d.errors.push({error:e,refEl:L.getMetaProperty("ref-referencing-element")}))}if((c=this.options.dereference.dereferenceOpts)===null||c===void 0||c.errors.push({error:e,refEl:r}),!R){const L=new Set(this.errorContext);L.delete(r),this.popErrorContext(r);for(const V of L){var E;(E=this.options.dereference.dereferenceOpts)===null||E===void 0||E.errors.push({error:e,refEl:V})}}}}getNestedVisitorOptions(e){var r,n;return{...this.options,resolve:{...this.options.resolve,external:((r=this.options.dereference)===null||r===void 0||(r=r.dereferenceOpts)===null||r===void 0||!r.skipNestedExternal||!Et(e.get("$ref")).startsWith("#"))&&this.options.resolve.external},dereference:{...this.options.dereference,dereferenceOpts:{...(n=this.options.dereference)===null||n===void 0?void 0:n.dereferenceOpts,continueOnError:!1}}}}toBaseURI(e){return go(this.reference.uri,by(In(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new N8(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const r=this.toBaseURI(e),{refSet:n}=this.reference;if(n.has(r))return n.find($2(r,"uri"));const a=await I8(Fl(r),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),o=new Cc({uri:r,value:hr(a),depth:this.reference.depth+1});if(n.add(o),this.options.dereference.immutable){const p=new Cc({uri:`immutable://${r}`,value:a,depth:this.reference.depth+1});n.add(p)}return o}toAncestorLineage(e){const r=new Set(e.filter(da));return[new y1(...this.ancestors,r),r]}OpenApi3_1Element={leave:(e,r,n,a,o,p)=>{var c,d;if((c=this.options.dereference.dereferenceOpts)!==null&&c!==void 0&&c.continueOnError&&this.propagateErrors(),(d=this.options.dereference.strategyOpts["openapi-3-1"])===null||d===void 0||!d.dereferenceDiscriminatorMapping)return;const E=no(e);return E.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),p.replaceWith(E,os),n?void 0:E}};async ReferenceElement(e,r,n,a,o,p){var c,d;if(this.indirections.includes(e))return!1;const[E,x]=this.toAncestorLineage([...o,n]),k=this.toBaseURI(Et(e.$ref)),P=In(this.reference.uri)===k,R=!P;if(!this.options.resolve.internal&&P||!this.options.resolve.external&&R)return!1;let L;try{L=await this.toReference(Et(e.$ref))}catch(ce){return this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}const V=go(k,Et(e.$ref));this.indirections.push(e);const Q=rs(V);let J;try{J=Us(L.value.result,Q)}catch(ce){return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}if(J.id=So.identify(J),$p(J)){const ce=Et(e.meta.get("referenced-element")),_e=`${ce}-${Et(So.identify(J))}`;this.refractCache.has(_e)?J=this.refractCache.get(_e):Vn(J)?(J=od.refract(J),J.setMetaProperty("referenced-element",ce),this.refractCache.set(_e,J)):(J=this.namespace.getElementClass(ce).refract(J),this.refractCache.set(_e,J))}if(e===J){const ce=new Mt("Recursive Reference Object detected");return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}if(this.indirections.length>this.options.dereference.maxDepth){const ce=new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}if(E.includes(J)){if(L.refSet.circular=!0,this.options.dereference.circular==="error"){const ce=new Mt("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}if(this.options.dereference.circular==="replace"){var re,me;const ce=new Ge.sI(J.id,{type:"reference",uri:L.uri,$ref:Et(e.$ref)}),_e=((re=(me=this.options.dereference.strategyOpts["openapi-3-1"])===null||me===void 0?void 0:me.circularReplacer)!==null&&re!==void 0?re:this.options.dereference.circularReplacer)(ce);return p.replaceWith(_e,os),!n&&_e}}const le=In(L.refSet.rootRef.uri)!==L.uri,ve=["error","replace"].includes(this.options.dereference.circular);if((R||le||Vp(J)||ve)&&!E.includesCycle(J)){x.add(e),this.errorContext.push(e);const ce=new pd({reference:L,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:E,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{J=await yv(J,ce,{keyMap:Js,nodeTypeGetter:as})}catch(_e){return this.indirections.pop(),this.handleDereferenceError(_e,e,{directAncestors:x,isExternalReference:R})}x.delete(e),this.popErrorContext(e)}(c=this.options.dereference.dereferenceOpts)!==null&&c!==void 0&&c.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:J}),this.indirections.pop();const be=no(J);return be.setMetaProperty("id",So.generateId()),be.setMetaProperty("ref-fields",{$ref:Et(e.$ref),description:Et(e.description),summary:Et(e.summary)}),be.setMetaProperty("ref-origin",L.uri),be.setMetaProperty("ref-referencing-element-id",hr(So.identify(e))),(d=this.options.dereference.dereferenceOpts)!==null&&d!==void 0&&d.continueOnError&&be.setMetaProperty("ref-referencing-element",e),hn(J)&&hn(be)&&(e.hasKey("description")&&"description"in J&&(be.remove("description"),be.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in J&&(be.remove("summary"),be.set("summary",e.get("summary")))),p.replaceWith(be,os),!n&&be}async PathItemElement(e,r,n,a,o,p){var c;if(!Ir(e.$ref))return;if(this.indirections.includes(e))return!1;const[d,E]=this.toAncestorLineage([...o,n]),x=this.toBaseURI(Et(e.$ref)),k=In(this.reference.uri)===x,P=!k;if(!this.options.resolve.internal&&k||!this.options.resolve.external&&P)return;let R;try{R=await this.toReference(Et(e.$ref))}catch(be){return this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}const L=go(x,Et(e.$ref));this.indirections.push(e);const V=rs(L);let Q;try{Q=Us(R.value.result,V)}catch(be){return this.indirections.pop(),this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}if(Q.id=So.identify(Q),$p(Q)){const be=`path-item-${Et(So.identify(Q))}`;this.refractCache.has(be)?Q=this.refractCache.get(be):(Q=$u.refract(Q),this.refractCache.set(be,Q))}if(e===Q){const be=new Mt("Recursive Path Item Object reference detected");return this.indirections.pop(),this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}if(this.indirections.length>this.options.dereference.maxDepth){const be=new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}if(d.includes(Q)){if(R.refSet.circular=!0,this.options.dereference.circular==="error"){const be=new Mt("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}if(this.options.dereference.circular==="replace"){var J,re;const be=new Ge.sI(Q.id,{type:"path-item",uri:R.uri,$ref:Et(e.$ref)}),ce=((J=(re=this.options.dereference.strategyOpts["openapi-3-1"])===null||re===void 0?void 0:re.circularReplacer)!==null&&J!==void 0?J:this.options.dereference.circularReplacer)(be);return p.replaceWith(ce,os),!n&&ce}}const me=In(R.refSet.rootRef.uri)!==R.uri,le=["error","replace"].includes(this.options.dereference.circular);if((P||me||zp(Q)&&Ir(Q.$ref)||le)&&!d.includesCycle(Q)){E.add(e),this.errorContext.push(e);const be=new pd({reference:R,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:d,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{Q=await yv(Q,be,{keyMap:Js,nodeTypeGetter:as})}catch(ce){return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:E,isExternalReference:P})}E.delete(e),this.popErrorContext(e)}if((c=this.options.dereference.dereferenceOpts)!==null&&c!==void 0&&c.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:Q}),this.indirections.pop(),zp(Q)){var ve;const be=new $u([...Q.content],hr(Q.meta),hr(Q.attributes));be.setMetaProperty("id",So.generateId()),e.forEach(((ce,_e,Ae)=>{be.remove(Et(_e)),be.content.push(Ae)})),be.remove("$ref"),be.setMetaProperty("ref-fields",{$ref:Et(e.$ref)}),be.setMetaProperty("ref-origin",R.uri),be.setMetaProperty("ref-referencing-element-id",hr(So.identify(e))),(ve=this.options.dereference.dereferenceOpts)!==null&&ve!==void 0&&ve.continueOnError&&be.setMetaProperty("ref-referencing-element",e),Q=be}return p.replaceWith(Q,os),n?void 0:Q}async LinkElement(e,r,n,a,o,p){if(!Ir(e.operationRef)&&!Ir(e.operationId))return;if(Ir(e.operationRef)&&Ir(e.operationId)){const x=new Mt("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(x,e)}let c;if(Ir(e.operationRef)){var d;const x=rs(Et(e.operationRef)),k=this.toBaseURI(Et(e.operationRef)),P=In(this.reference.uri)===k,R=!P;if(!this.options.resolve.internal&&P||!this.options.resolve.external&&R)return;let L;try{L=await this.toReference(Et(e.operationRef)),c=Us(L.value.result,x)}catch(Q){return this.handleDereferenceError(Q,e,{isExternalReference:R})}if($p(c)){const Q=`operation-${Et(So.identify(c))}`;this.refractCache.has(Q)?c=this.refractCache.get(Q):(c=vm.refract(c),this.refractCache.set(Q,c))}c=no(c),c.setMetaProperty("ref-origin",L.uri);const V=no(e);return(d=V.operationRef)===null||d===void 0||d.meta.set("operation",c),p.replaceWith(V,os),n?void 0:V}if(Ir(e.operationId)){var E;const x=Et(e.operationId);let k;try{k=await this.toReference(Fl(this.reference.uri))}catch(R){return this.handleDereferenceError(R,e)}if(c=q2((R=>j2(R)&&da(R.operationId)&&R.operationId.equals(x)),k.value.result),Iu(c)){const R=new Mt(`OperationElement(operationId=${x}) not found.`);return this.handleDereferenceError(R,e)}const P=no(e);return(E=P.operationId)===null||E===void 0||E.meta.set("operation",c),p.replaceWith(P,os),n?void 0:P}}async ExampleElement(e,r,n,a,o,p){if(!Ir(e.externalValue))return;if(e.hasKey("value")&&Ir(e.externalValue)){const R=new Mt("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(R,e)}const c=this.toBaseURI(Et(e.externalValue)),d=In(this.reference.uri)===c,E=!d;if(!this.options.resolve.internal&&d||!this.options.resolve.external&&E)return;let x;try{x=await this.toReference(Et(e.externalValue))}catch(R){return this.handleDereferenceError(R,e,{isExternalReference:E})}const k=no(x.value.result);k.setMetaProperty("ref-origin",x.uri);const P=no(e);return P.value=k,p.replaceWith(P,os),n?void 0:P}async MemberElement(e,r,n,a,o,p){var c;const d=o[o.length-1];if(!hn(d)||!d.classes.contains("discriminator-mapping"))return;if((c=this.options.dereference.strategyOpts["openapi-3-1"])===null||c===void 0||!c.dereferenceDiscriminatorMapping||!Ir(e.key)||!Ir(e.value)||this.indirections.includes(e))return!1;this.indirections.push(e);const[E,x]=this.toAncestorLineage([...o,n]),k=[...x].findLast(Vs),P=hr(k.getMetaProperty("ancestorsSchemaIdentifiers")),R=Et(e.value),L=/^[a-zA-Z0-9\\.\\-_]+$/.test(R)?`#/components/schemas/${R}`:R,V=new qu({$ref:L});V.setMetaProperty("ancestorsSchemaIdentifiers",P),x.add(V);const Q=new pd({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(V),refractCache:this.refractCache,ancestors:E,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});let J;try{J=await yv(V,Q,{keyMap:Js,nodeTypeGetter:as})}catch(me){const le=!L.startsWith("#");return this.handleDereferenceError(me,V,{directAncestors:x,isExternalReference:le})}x.delete(V),this.indirections.pop();const re=no(e);return re.value.setMetaProperty("ref-schema",J),p.replaceWith(re,os),n?void 0:re}async SchemaElement(e,r,n,a,o,p){var c;if(!Ir(e.$ref))return;if(this.indirections.includes(e))return!1;const[d,E]=this.toAncestorLineage([...o,n]);let x;try{x=await this.toReference(Fl(this.reference.uri))}catch(je){return this.handleDereferenceError(je,e,{directAncestors:E})}let{uri:k}=x;const P=z2(k,e),R=In(P),L=new ld({uri:R}),V=_8((je=>je.canRead(L)),this.options.resolve.resolvers),Q=!V;let J,re=In(this.reference.uri)===P,me=!re;this.indirections.push(e);try{if(V||Q){k=this.toBaseURI(P);const je=P,G=qo(x.value.result);if(J=gv(je,G),J=qo(J),J.id=So.identify(J),!this.options.resolve.internal&&re||!this.options.resolve.external&&me)return}else{if(k=this.toBaseURI(P),re=In(this.reference.uri)===k,me=!re,!this.options.resolve.internal&&re||!this.options.resolve.external&&me)return;x=await this.toReference(Fl(P));const je=rs(P),G=qo(x.value.result);J=Us(G,je),J=qo(J),J.id=So.identify(J)}}catch(je){if(!(Q&&je instanceof g1))return this.indirections.pop(),this.handleDereferenceError(je,e,{directAncestors:E,isExternalReference:me});if(mv(cd(P))){if(re=In(this.reference.uri)===k,me=!re,!this.options.resolve.internal&&re||!this.options.resolve.external&&me)return;try{x=await this.toReference(Fl(P))}catch(Ne){return this.indirections.pop(),this.handleDereferenceError(Ne,e,{directAncestors:E,isExternalReference:me})}const G=cd(P),de=qo(x.value.result);try{J=m1(G,de)}catch(Ne){return this.indirections.pop(),this.handleDereferenceError(Ne,e,{directAncestors:E,isExternalReference:me})}J=qo(J),J.id=So.identify(J)}else{if(k=this.toBaseURI(P),re=In(this.reference.uri)===k,me=!re,!this.options.resolve.internal&&re||!this.options.resolve.external&&me)return;try{x=await this.toReference(Fl(P))}catch(Ne){return this.indirections.pop(),this.handleDereferenceError(Ne,e,{directAncestors:E,isExternalReference:me})}const G=rs(P),de=qo(x.value.result);try{J=Us(de,G)}catch(Ne){return this.indirections.pop(),this.handleDereferenceError(Ne,e,{directAncestors:E,isExternalReference:me})}J=qo(J),J.id=So.identify(J)}}if(e===J){const je=new Mt("Recursive Schema Object reference detected");return this.indirections.pop(),this.handleDereferenceError(je,e,{directAncestors:E,isExternalReference:me})}if(this.indirections.length>this.options.dereference.maxDepth){const je=new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(je,e,{directAncestors:E,isExternalReference:me})}if(d.includes(J)){if(x.refSet.circular=!0,this.options.dereference.circular==="error"){const je=new Mt("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(je,e,{directAncestors:E,isExternalReference:me})}if(this.options.dereference.circular==="replace"){var le,ve;const je=new Ge.sI(J.id,{type:"json-schema",uri:x.uri,$ref:Et(e.$ref)}),G=((le=(ve=this.options.dereference.strategyOpts["openapi-3-1"])===null||ve===void 0?void 0:ve.circularReplacer)!==null&&le!==void 0?le:this.options.dereference.circularReplacer)(je);return p.replaceWith(G,os),!n&&G}}const be=In(x.refSet.rootRef.uri)!==x.uri,ce=["error","replace"].includes(this.options.dereference.circular);if((me||be||Vs(J)&&Ir(J.$ref)||ce)&&!d.includesCycle(J)){E.add(e),this.errorContext.push(e);const je=new pd({reference:x,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:d,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{J=await yv(J,je,{keyMap:Js,nodeTypeGetter:as})}catch(G){return this.indirections.pop(),this.handleDereferenceError(G,e,{directAncestors:E,isExternalReference:me})}E.delete(e),this.popErrorContext(e)}if((c=this.options.dereference.dereferenceOpts)!==null&&c!==void 0&&c.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:J}),this.indirections.pop(),a1(J)){const je=hr(J);return je.setMetaProperty("id",So.generateId()),je.setMetaProperty("ref-fields",{$ref:Et(e.$ref),$refBaseURI:P}),je.setMetaProperty("ref-origin",x.uri),je.setMetaProperty("ref-referencing-element-id",hr(So.identify(e))),p.replaceWith(je,os),!n&&je}if(Vs(J)){var _e,Ae;const je=new qu([...J.content],hr(J.meta),hr(J.attributes));if(je.setMetaProperty("id",So.generateId()),e.forEach(((G,de,Ne)=>{je.remove(Et(de)),je.content.push(Ne)})),je.remove("$ref"),je.setMetaProperty("ref-fields",{$ref:Et(e.$ref),$refBaseURI:P}),je.setMetaProperty("ref-origin",x.uri),je.setMetaProperty("ref-referencing-element-id",hr(So.identify(e))),(_e=this.options.dereference.dereferenceOpts)!==null&&_e!==void 0&&_e.continueOnError&&je.setMetaProperty("ref-referencing-element",e),(Ae=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&Ae!==void 0&&Ae.dereferenceDiscriminatorMapping){var xe;const G=o[o.length-1],de=[...E].findLast(Vs),Ne=de?.getMetaProperty("schemaName"),Ye=Et(je.getMetaProperty("schemaName"));if(Ye&&Ne&&G!=null&&(xe=G.classes)!==null&&xe!==void 0&&xe.contains("json-schema-allOf")){var Oe;const ht=(Oe=this.allOfDiscriminatorMapping.get(Ye))!==null&&Oe!==void 0?Oe:[];ht.push(de),this.allOfDiscriminatorMapping.set(Ye,ht)}}J=je}return p.replaceWith(J,os),n?void 0:J}}const H2=pd,M8=Pa[Symbol.for("nodejs.util.promisify.custom")],R8=class extends x8{constructor(e){super({...e??{},name:"openapi-3-1"})}canDereference(e){var r;return e.mediaType!=="text/plain"?id.includes(e.mediaType):C2((r=e.parseResult)===null||r===void 0?void 0:r.result)}async dereference(e,r){var n;const a=Ac(s1),o=(n=r.dereference.refSet)!==null&&n!==void 0?n:new sd,p=new sd;let c,d=o;o.has(e.uri)?c=o.find($2(e.uri,"uri")):(c=new Cc({uri:e.uri,value:e.parseResult}),o.add(c)),r.dereference.immutable&&(o.refs.map((k=>new Cc({...k,value:hr(k.value)}))).forEach((k=>p.add(k))),c=p.find((k=>k.uri===e.uri)),d=p);const E=new H2({reference:c,namespace:a,options:r}),x=await M8(d.rootRef.value,E,{keyMap:Js,nodeTypeGetter:as});return r.dereference.immutable&&p.refs.filter((k=>k.uri.startsWith("immutable://"))).map((k=>new Cc({...k,uri:k.uri.replace(/^immutable:\/\//,"")}))).forEach((k=>o.add(k))),r.dereference.refSet===null&&o.clean(),p.clean(),x}},Ws=t=>{const e=(r=>r.slice(2))(t);return e.reduce(((r,n,a)=>{if(Bs(n)){const o=String(Et(n.key));r.push(o)}else if(vo(e[a-2])){const o=e[a-2].content.indexOf(n);r.push(o)}return r}),[])},D8=class{modelPropertyMacro;options;SchemaElement={leave:(e,r,n,a,o)=>{e.properties!==void 0&&hn(e.properties)&&e.properties.forEach((p=>{if(hn(p))try{const c=this.modelPropertyMacro(Et(p));p.set("default",c)}catch(c){const d=new Error(c,{cause:c});d.fullPath=[...Ws([...o,n,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(d)}}))}};constructor({modelPropertyMacro:e,options:r}){this.modelPropertyMacro=e,this.options=r}};var F8=(function(){function t(e,r){this.xf=r,this.pred=e,this.items=[]}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=Nf,t.prototype["@@transducer/step"]=function(e,r){return hy(this.pred,r,this.items)?e:(this.items.push(r),this.xf["@@transducer/step"](e,r))},t})();function L8(t){return function(e){return new F8(t,e)}}var $8=Tr(Nu([],L8,(function(t,e){for(var r,n=0,a=e.length,o=[];nEt(d)==="enum"?(E,x)=>{if(Yh(["json-schema-enum"],E)&&Yh(["json-schema-enum"],x)){const k=(R,L)=>!(vo(R)||vo(L)||hn(R)||hn(L))&&R.equals(Et(L)),P=no(E);return P.content=K2(k)([...E.content,...x.content]),P}return qp(E,x)}:qp});if(e.hasKey("$$ref")||c.remove("$$ref"),e.hasKey("example")){const d=c.getMember("example");d&&(d.value=e.get("example"))}if(e.hasKey("examples")){const d=c.getMember("examples");d&&(d.value=e.get("examples"))}e.content=c.content}}}};constructor({options:e}){this.options=e}},q8=class{parameterMacro;options;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,r,n,a,o)=>{const p=this.#e?Et(this.#e):null,c=Et(e);try{const d=this.parameterMacro(p,c);e.set("default",d)}catch(d){const E=new Error(d,{cause:d});E.fullPath=Ws([...o,n]),this.options.dereference.dereferenceOpts?.errors?.push?.(E)}}};constructor({parameterMacro:e,options:r}){this.parameterMacro=e,this.options=r}},vv=t=>{if(t.cause==null)return t;let{cause:e}=t;for(;e.cause!=null;)e=e.cause;return e},U8=class extends xr{},{wrapError:v1}=RE,b1=Pa[Symbol.for("nodejs.util.promisify.custom")],is=new f1,Jp=(t,e,r,n)=>{Bs(n)?n.value=t:Array.isArray(n)&&(n[r]=t)};class Cm extends H2{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:r=!1,basePath:n=null,...a}){super(a),this.allowMetaPatches=e,this.useCircularStructures=r,this.basePath=n}async ReferenceElement(e,r,n,a,o,p){try{var c,d;if(Yn()(c=this.indirections).call(c,e))return!1;const[E,x]=this.toAncestorLineage([...o,n]),k=this.toBaseURI(Et(e.$ref)),P=In(this.reference.uri)===k,R=!P;if(!this.options.resolve.internal&&P||!this.options.resolve.external&&R)return!1;const L=await this.toReference(Et(e.$ref)),V=go(k,Et(e.$ref));this.indirections.push(e);const Q=rs(V);let J=Us(L.value.result,Q);if(J.id=is.identify(J),$p(J)){const ve=Et(e.meta.get("referenced-element")),be=`${ve}-${Et(is.identify(J))}`;this.refractCache.has(be)?J=this.refractCache.get(be):Vn(J)?(J=od.refract(J),J.setMetaProperty("referenced-element",ve),this.refractCache.set(be,J)):(J=this.namespace.getElementClass(ve).refract(J),this.refractCache.set(be,J))}if(e===J)throw new Mt("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(Yn()(E).call(E,J)){if(L.refSet.circular=!0,this.options.dereference.circular==="error")throw new Mt("Circular reference detected");if(this.options.dereference.circular==="replace"){const ve=new Ge.sI(J.id,{type:"reference",uri:L.uri,$ref:Et(e.$ref),baseURI:V,referencingElement:e}),be=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(ve);return p.replaceWith(ve,Jp),!n&&be}}const re=In(L.refSet.rootRef.uri)!==L.uri,me=Yn()(d=["error","replace"]).call(d,this.options.dereference.circular);if((R||re||Vp(J)||me)&&!E.includesCycle(J)){x.add(e);const ve=new Cm({reference:L,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:E,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...Ws([...o,n,e]),"$ref"]});J=await b1(J,ve,{keyMap:Js,nodeTypeGetter:as}),x.delete(e)}this.indirections.pop();const le=no(J);if(le.setMetaProperty("ref-fields",{$ref:Et(e.$ref),description:Et(e.description),summary:Et(e.summary)}),le.setMetaProperty("ref-origin",L.uri),le.setMetaProperty("ref-referencing-element-id",hr(is.identify(e))),hn(J)&&(e.hasKey("description")&&"description"in J&&(le.remove("description"),le.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in J&&(le.remove("summary"),le.set("summary",e.get("summary")))),this.allowMetaPatches&&hn(le)&&!le.hasKey("$$ref")){const ve=go(k,V);le.set("$$ref",ve)}return p.replaceWith(le,Jp),!n&&le}catch(E){const x=vv(E),k=v1(x,{baseDoc:this.reference.uri,$ref:Et(e.$ref),pointer:rs(Et(e.$ref)),fullPath:this.basePath??[...Ws([...o,n,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(k)}}async PathItemElement(e,r,n,a,o,p){try{var c,d;if(!Ir(e.$ref))return;if(Yn()(c=this.indirections).call(c,e)||Yh(["cycle"],e.$ref))return!1;const[E,x]=this.toAncestorLineage([...o,n]),k=this.toBaseURI(Et(e.$ref)),P=In(this.reference.uri)===k,R=!P;if(!this.options.resolve.internal&&P||!this.options.resolve.external&&R)return;const L=await this.toReference(Et(e.$ref)),V=go(k,Et(e.$ref));this.indirections.push(e);const Q=rs(V);let J=Us(L.value.result,Q);if(J.id=is.identify(J),$p(J)){const le=`path-item-${Et(is.identify(J))}`;this.refractCache.has(le)?J=this.refractCache.get(le):(J=$u.refract(J),this.refractCache.set(le,J))}if(e===J)throw new Mt("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(Yn()(E).call(E,J)){if(L.refSet.circular=!0,this.options.dereference.circular==="error")throw new Mt("Circular reference detected");if(this.options.dereference.circular==="replace"){const le=new Ge.sI(J.id,{type:"path-item",uri:L.uri,$ref:Et(e.$ref),baseURI:V,referencingElement:e}),ve=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(le);return p.replaceWith(le,Jp),!n&&ve}}const re=In(L.refSet.rootRef.uri)!==L.uri,me=Yn()(d=["error","replace"]).call(d,this.options.dereference.circular);if((R||re||zp(J)&&Ir(J.$ref)||me)&&!E.includesCycle(J)){x.add(e);const le=new Cm({reference:L,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:E,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...Ws([...o,n,e]),"$ref"]});J=await b1(J,le,{keyMap:Js,nodeTypeGetter:as}),x.delete(e)}if(this.indirections.pop(),zp(J)){const le=new $u([...J.content],hr(J.meta),hr(J.attributes));if(e.forEach(((ve,be,ce)=>{le.remove(Et(be)),le.content.push(ce)})),le.remove("$ref"),le.setMetaProperty("ref-fields",{$ref:Et(e.$ref)}),le.setMetaProperty("ref-origin",L.uri),le.setMetaProperty("ref-referencing-element-id",hr(is.identify(e))),this.allowMetaPatches&&le.get("$$ref")===void 0){const ve=go(k,V);le.set("$$ref",ve)}J=le}return p.replaceWith(J,Jp),n?void 0:J}catch(E){const x=vv(E),k=v1(x,{baseDoc:this.reference.uri,$ref:Et(e.$ref),pointer:rs(Et(e.$ref)),fullPath:this.basePath??[...Ws([...o,n,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(k)}}async SchemaElement(e,r,n,a,o,p){try{var c,d;if(!Ir(e.$ref))return;if(Yn()(c=this.indirections).call(c,e))return!1;const[E,x]=this.toAncestorLineage([...o,n]);let k=await this.toReference(Fl(this.reference.uri)),{uri:P}=k;const R=z2(P,e),L=In(R),V=new ld({uri:L}),Q=!this.options.resolve.resolvers.some((ce=>ce.canRead(V))),J=!Q;let re,me=In(this.reference.uri)===R,le=!me;this.indirections.push(e);try{if(Q||J){P=this.toBaseURI(R);const ce=R,_e=qo(k.value.result);if(re=gv(ce,_e),re=qo(re),re.id=is.identify(re),!this.options.resolve.internal&&me||!this.options.resolve.external&&le)return}else{if(P=this.toBaseURI(R),me=In(this.reference.uri)===P,le=!me,!this.options.resolve.internal&&me||!this.options.resolve.external&&le)return;k=await this.toReference(Fl(R));const ce=rs(R),_e=qo(k.value.result);re=Us(_e,ce),re=qo(re),re.id=is.identify(re)}}catch(ce){if(!(J&&ce instanceof g1))throw ce;if(mv(cd(R))){if(me=In(this.reference.uri)===P,le=!me,!this.options.resolve.internal&&me||!this.options.resolve.external&&le)return;k=await this.toReference(Fl(R));const _e=cd(R),Ae=qo(k.value.result);re=m1(_e,Ae),re=qo(re),re.id=is.identify(re)}else{if(P=this.toBaseURI(Et(R)),me=In(this.reference.uri)===P,le=!me,!this.options.resolve.internal&&me||!this.options.resolve.external&&le)return;k=await this.toReference(Fl(R));const _e=rs(R),Ae=qo(k.value.result);re=Us(Ae,_e),re=qo(re),re.id=is.identify(re)}}if(e===re)throw new Mt("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(Yn()(E).call(E,re)){if(k.refSet.circular=!0,this.options.dereference.circular==="error")throw new Mt("Circular reference detected");if(this.options.dereference.circular==="replace"){const ce=new Ge.sI(re.id,{type:"json-schema",uri:k.uri,$ref:Et(e.$ref),baseURI:go(P,R),referencingElement:e}),_e=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(ce);return p.replaceWith(_e,Jp),!n&&_e}}const ve=In(k.refSet.rootRef.uri)!==k.uri,be=Yn()(d=["error","replace"]).call(d,this.options.dereference.circular);if((le||ve||Vs(re)&&Ir(re.$ref)||be)&&!E.includesCycle(re)){x.add(e);const ce=new Cm({reference:k,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:E,basePath:this.basePath??[...Ws([...o,n,e]),"$ref"]});re=await b1(re,ce,{keyMap:Js,nodeTypeGetter:as}),x.delete(e)}if(this.indirections.pop(),a1(re)){const ce=hr(re);return ce.setMetaProperty("ref-fields",{$ref:Et(e.$ref)}),ce.setMetaProperty("ref-origin",k.uri),ce.setMetaProperty("ref-referencing-element-id",hr(is.identify(e))),p.replaceWith(ce,Jp),!n&&ce}if(Vs(re)){const ce=new qu([...re.content],hr(re.meta),hr(re.attributes));if(e.forEach(((_e,Ae,xe)=>{ce.remove(Et(Ae)),ce.content.push(xe)})),ce.remove("$ref"),ce.setMetaProperty("ref-fields",{$ref:Et(e.$ref)}),ce.setMetaProperty("ref-origin",k.uri),ce.setMetaProperty("ref-referencing-element-id",hr(is.identify(e))),this.allowMetaPatches&&ce.get("$$ref")===void 0){const _e=go(P,R);ce.set("$$ref",_e)}re=ce}return p.replaceWith(re,Jp),n?void 0:re}catch(E){const x=vv(E),k=new U8(`Could not resolve reference: ${x.message}`,{baseDoc:this.reference.uri,$ref:Et(e.$ref),fullPath:this.basePath??[...Ws([...o,n,e]),"$ref"],cause:x});return void this.options.dereference.dereferenceOpts?.errors?.push?.(k)}}async LinkElement(){}async ExampleElement(e,r,n,a,o,p){try{return await super.ExampleElement(e,r,n,a,o,p)}catch(c){const d=vv(c),E=v1(d,{baseDoc:this.reference.uri,externalValue:Et(e.externalValue),fullPath:this.basePath??[...Ws([...o,n,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(E)}}}const z8=Cm,V8=Cy[Symbol.for("nodejs.util.promisify.custom")],J8=class{constructor({parameterMacro:e,modelPropertyMacro:r,mode:n,options:a,...o}){const p=[];p.push(new z8({...o,options:a})),typeof r=="function"&&p.push(new D8({modelPropertyMacro:r,options:a})),n!=="strict"&&p.push(new B8({options:a})),typeof e=="function"&&p.push(new q8({parameterMacro:e,options:a}));const c=V8(p,{nodeTypeGetter:as});Object.assign(this,c)}},W8=Pa[Symbol.for("nodejs.util.promisify.custom")],H8=class extends R8{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:r=null,modelPropertyMacro:n=null,mode:a="non-strict",ancestors:o=[],...p}={}){super({...p}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=r,this.modelPropertyMacro=n,this.mode=a,this.ancestors=[...o]}async dereference(e,r){const n=Ac(s1),a=r.dereference.refSet??new sd,o=new sd;let p,c=a;a.has(e.uri)?p=a.find((x=>x.uri===e.uri)):(p=new Cc({uri:e.uri,value:e.parseResult}),a.add(p)),r.dereference.immutable&&(a.refs.map((x=>new Cc({...x,value:hr(x.value)}))).forEach((x=>o.add(x))),p=o.find((x=>x.uri===e.uri)),c=o);const d=new J8({reference:p,namespace:n,options:r,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),E=await W8(c.rootRef.value,d,{keyMap:Js,nodeTypeGetter:as});return r.dereference.immutable&&o.refs.filter((x=>x.uri.startsWith("immutable://"))).map((x=>new Cc({...x,uri:x.uri.replace(/^immutable:\/\//,"")}))).forEach((x=>a.add(x))),r.dereference.refSet===null&&a.clean(),o.clean(),E}},K8=t=>{const e=Et(t.meta.get("baseURI")),r=t.meta.get("referencingElement");return new Ge.Sh({$ref:e},hr(r.meta),hr(r.attributes))},w1=async t=>{const{spec:e,timeout:r,redirects:n,requestInterceptor:a,responseInterceptor:o,pathDiscriminator:p=[],allowMetaPatches:c=!1,useCircularStructures:d=!1,skipNormalization:E=!1,parameterMacro:x=null,modelPropertyMacro:k=null,mode:P="non-strict",strategies:R}=t;try{const{cache:L}=w1,V=R.find((Ne=>Ne.match(e))),Q=j0(P0())?P0():Sy,J=z0(t),re=go(Q,J);let me;L.has(e)?me=L.get(e):(me=Lu.refract(e),me.classes.push("result"),L.set(e,me));const le=new $s([me]),ve=_S(p),be=ve===""?"":`#${ve}`,ce=Us(me,ve),_e=new Cc({uri:re,value:le}),Ae=new sd({refs:[_e]});ve!==""&&(Ae.rootRef=void 0);const xe=[new Set([ce])],Oe=[],je=await(async(Ne,Ye={})=>{const ht=R2(I2,Ye);return u8(Ne,ht)})(ce,{resolve:{baseURI:`${re}${be}`,resolvers:[new v8({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:a,responseInterceptor:o}},strategies:[new d8]},parse:{mediaType:id.latest(),parsers:[new E8({allowEmpty:!1,sourceMap:!1}),new S8({allowEmpty:!1,sourceMap:!1}),new b8({allowEmpty:!1,sourceMap:!1}),new w8({allowEmpty:!1,sourceMap:!1}),new p8({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new H8({allowMetaPatches:c,useCircularStructures:d,parameterMacro:x,modelPropertyMacro:k,mode:P,ancestors:xe})],refSet:Ae,dereferenceOpts:{errors:Oe},immutable:!1,circular:d?"ignore":"replace",circularReplacer:d?I2.dereference.circularReplacer:K8}}),G=((Ne,Ye,ht)=>new lj({element:ht}).transclude(Ne,Ye))(ce,je,me),de=E?G:V.normalize(G);return{spec:Et(de),errors:Oe}}catch(L){if(L instanceof Bp)return{spec:e,errors:[]};throw L}};w1.cache=new WeakMap;const G2=w1;function Y2(t,e,r){if(r||(r=new G8),(function(o){var p=typeof o;return o==null||p!="object"&&p!="function"})(t))return t;var n=function(o){var p=r.get(t);if(p)return p;for(var c in r.set(t,o),t)Object.prototype.hasOwnProperty.call(t,c)&&(o[c]=t[c]);return o};switch(Fs(t)){case"Object":return n(Object.create(Object.getPrototypeOf(t)));case"Array":return n(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return(function(o){return new RegExp(o.source,o.flags?o.flags:(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":"")+(o.dotAll?"s":""))})(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}var G8=(function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){var n=this.hash(e),a=this.map[n];a||(this.map[n]=a=[]),a.push([e,r]),this.length+=1},t.prototype.hash=function(e){var r=[];for(var n in e)r.push(Object.prototype.toString.call(e[n]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(var r in this.map)for(var n=this.map[r],a=0;at.replace(/\s/g,""),S1=t=>t.replace(/\W/gi,"_"),eM=(t,e,r)=>{const n=E1(t);return n.length>0?S1(n):((a,o)=>`${S1(E1(o.toLowerCase()))}${S1(E1(a))}`)(e,r)},tM=({storageField:t="x-normalized",operationIdNormalizer:e=eM}={})=>r=>{const{predicates:n,ancestorLineageToJSONPointer:a,namespace:o}=r,p=[],c=[],d=[];let E;return{visitor:{OpenApi3_1Element:{enter(x){E=new jm(x,t,"operation-ids")},leave(){const x=Z8((k=>Et(k.operationId)),c);Object.entries(x).forEach((([k,P])=>{Array.isArray(P)&&(P.length<=1||P.forEach(((R,L)=>{const V=`${k}${L+1}`;R.operationId=new o.elements.String(V)})))})),d.forEach((k=>{if(k.operationId===void 0)return;const P=String(Et(k.operationId)),R=c.find((L=>Et(L.meta.get("originalOperationId"))===P));R!==void 0&&(k.operationId=hr.safe(R.operationId),k.meta.set("originalOperationId",P),k.set("__originalOperationId",P))})),c.length=0,d.length=0,E=void 0}},PathItemElement:{enter(x){const k=Jh("path",Et(x.meta.get("path")));p.push(k)},leave(){p.pop()}},OperationElement:{enter(x,k,P,R,L){if(x.operationId===void 0)return;const V=a([...L,P,x]);if(E.includes(V))return;const Q=String(Et(x.operationId)),J=py(p),re=Jh("method",Et(x.meta.get("http-method"))),me=e(Q,J,re);Q!==me&&(x.operationId=new o.elements.String(me),x.set("__originalOperationId",Q),x.meta.set("originalOperationId",Q),c.push(x),E.append(V))}},LinkElement:{leave(x){n.isLinkElement(x)&&x.operationId!==void 0&&d.push(x)}}}}},rM=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e,a=(c,d)=>!!r.isParameterElement(c)&&!!r.isParameterElement(d)&&!!r.isStringElement(c.name)&&!!r.isStringElement(c.in)&&!!r.isStringElement(d.name)&&!!r.isStringElement(d.in)&&Et(c.name)===Et(d.name)&&Et(c.in)===Et(d.in),o=[];let p;return{visitor:{OpenApi3_1Element:{enter(c){p=new jm(c,t,"parameters")},leave(){p=void 0}},PathItemElement:{enter(c,d,E,x,k){if(k.some(r.isComponentsElement))return;const{parameters:P}=c;r.isArrayElement(P)?o.push([...P.content]):o.push([])},leave(){o.pop()}},OperationElement:{leave(c,d,E,x,k){const P=py(o);if(!Array.isArray(P)||P.length===0)return;const R=n([...k,E,c]);if(p.includes(R))return;const L=B2([],["parameters","content"],c),V=K2(a,[...L,...P]);c.parameters=new i2(V),p.append(R)}}}}},nM=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let a,o;return{visitor:{OpenApi3_1Element:{enter(p){o=new jm(p,t,"security-requirements"),r.isArrayElement(p.security)&&(a=p.security)},leave(){o=void 0,a=void 0}},OperationElement:{leave(p,c,d,E,x){if(x.some(r.isComponentsElement))return;const k=n([...x,d,p]);if(!o.includes(k)){var P;p.security===void 0&&a!==void 0&&(p.security=new l2((P=a)===null||P===void 0?void 0:P.content),o.append(k))}}}}}},aM=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let a;return{visitor:{OpenApi3_1Element:{enter(o){a=new jm(o,t,"parameter-examples")},leave(){a=void 0}},ParameterElement:{leave(o,p,c,d,E){var x,k;if(E.some(r.isComponentsElement)||o.schema===void 0||!r.isSchemaElement(o.schema)||((x=o.schema)===null||x===void 0?void 0:x.example)===void 0&&((k=o.schema)===null||k===void 0?void 0:k.examples)===void 0)return;const P=n([...E,c,o]);if(!a.includes(P)){if(o.examples!==void 0&&r.isObjectElement(o.examples)){const R=o.examples.map((L=>hr.safe(L.value)));return o.schema.examples!==void 0&&(o.schema.set("examples",R),a.append(P)),void(o.schema.example!==void 0&&(o.schema.set("example",R[0]),a.append(P)))}o.example!==void 0&&(o.schema.examples!==void 0&&(o.schema.set("examples",[hr(o.example)]),a.append(P)),o.schema.example!==void 0&&(o.schema.set("example",hr(o.example)),a.append(P)))}}}}}},oM=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let a;return{visitor:{OpenApi3_1Element:{enter(o){a=new jm(o,t,"header-examples")},leave(){a=void 0}},HeaderElement:{leave(o,p,c,d,E){var x,k;if(E.some(r.isComponentsElement)||o.schema===void 0||!r.isSchemaElement(o.schema)||((x=o.schema)===null||x===void 0?void 0:x.example)===void 0&&((k=o.schema)===null||k===void 0?void 0:k.examples)===void 0)return;const P=n([...E,c,o]);if(!a.includes(P)){if(o.examples!==void 0&&r.isObjectElement(o.examples)){const R=o.examples.map((L=>hr.safe(L.value)));return o.schema.examples!==void 0&&(o.schema.set("examples",R),a.append(P)),void(o.schema.example!==void 0&&(o.schema.set("example",R[0]),a.append(P)))}o.example!==void 0&&(o.schema.examples!==void 0&&(o.schema.set("examples",[hr(o.example)]),a.append(P)),o.schema.example!==void 0&&(o.schema.set("example",hr(o.example)),a.append(P)))}}}}}},X2=t=>{if(!hn(t))return t;const e=[tM({operationIdNormalizer:(r,n,a)=>Df({operationId:r},n,a,{v2OperationIdCompatibilityMode:!1})}),rM(),nM(),aM(),oM()];return ql(t,e,{toolboxCreator:N2,visitorOptions:{keyMap:Js,nodeTypeGetter:as}})},iM={name:"openapi-3-1-apidom",match:t=>Y0(t),normalize(t){if(!da(t)&&Ls(t)&&!t.$$normalized){const r=(e=X2,n=>{const a=Lu.refract(n);a.classes.push("result");const o=e(a),p=Et(o);return G2.cache.set(p,o),Et(o)})(t);return r.$$normalized=!0,r}var e;return da(t)?X2(t):t},resolve:async t=>G2(t)},Q2=iM,Z2=t=>async e=>(async r=>{const{spec:n,requestInterceptor:a,responseInterceptor:o}=r,p=z0(r),c=YE(r),d=n||await zE(c,{requestInterceptor:a,responseInterceptor:o})(p),E={...r,spec:d};return r.strategies.find((x=>x.match(d))).resolve(E)})({...t,...e}),sM=Z2({strategies:[Q0,X0,G0]}),lM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["server-url-template",Ni.charsToString(e,r,n)])}return Br.SEM_OK},cM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["server-variable",Ni.charsToString(e,r,n)])}return Br.SEM_OK},uM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["server-variable-name",Ni.charsToString(e,r,n)])}return Br.SEM_OK},pM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["literals",Ni.charsToString(e,r,n)])}return Br.SEM_OK},hM=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"DIGIT",lower:"digit",index:4,isBkr:!1},this.rules[5]={name:"HEXDIG",lower:"hexdig",index:5,isBkr:!1},this.rules[6]={name:"pct-encoded",lower:"pct-encoded",index:6,isBkr:!1},this.rules[7]={name:"ucschar",lower:"ucschar",index:7,isBkr:!1},this.rules[8]={name:"iprivate",lower:"iprivate",index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){return`; OpenAPI Server URL templating ABNF syntax +server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2 +server-variable = "{" server-variable-name "}" +server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI) + +; https://www.rfc-editor.org/rfc/rfc6570#section-2.1 +; https://www.rfc-editor.org/errata/eid6937 +literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B + / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate + / pct-encoded) + ; any Unicode character except: CTL, SP, + ; DQUOTE, "%" (aside from pct-encoded), + ; "<", ">", "\\", "^", "\`", "{", "|", "}" + +; https://www.rfc-editor.org/rfc/rfc6570#section-1.5 +DIGIT = %x30-39 ; 0-9 +HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive + +pct-encoded = "%" HEXDIG HEXDIG + +ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF + / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD + / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD + / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD + / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD + / %xD0000-DFFFD / %xE1000-EFFFD + +iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD +`}},ex=t=>{const e=new ns;return e.ast=new ib,e.ast.callbacks["server-url-template"]=lM,e.ast.callbacks["server-variable"]=cM,e.ast.callbacks["server-variable-name"]=uM,e.ast.callbacks.literals=pM,{result:e.parse(hM,"server-url-template",t),ast:e.ast}},dM=(t,{strict:e=!1}={})=>{try{const r=ex(t);if(!r.result.success)return!1;const n=[];r.ast.translate(n);const a=n.some((([o])=>o==="server-variable"));if(!e&&!a)try{return new URL(t,"https://vladimirgorej.com"),!0}catch{return!1}return!e||a}catch{return!1}},fM=t=>(e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}})(t)?t:encodeURIComponent(t).replace(/%5B/g,"[").replace(/%5D/g,"]"),mM=["literals","server-variable-name"],gM=(t,e,r={})=>{const n={encoder:fM,...r},a=ex(t);if(!a.result.success)return t;const o=[];return a.ast.translate(o),o.filter((([c])=>mM.includes(c))).map((([c,d])=>c==="server-variable-name"?Object.hasOwn(e,d)?n.encoder(e[d],d):`{${d}}`:d)).join("")};function tx(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path-segment",lower:"path-segment",index:1,isBkr:!1},this.rules[2]={name:"slash",lower:"slash",index:2,isBkr:!1},this.rules[3]={name:"path-literal",lower:"path-literal",index:3,isBkr:!1},this.rules[4]={name:"template-expression",lower:"template-expression",index:4,isBkr:!1},this.rules[5]={name:"template-expression-param-name",lower:"template-expression-param-name",index:5,isBkr:!1},this.rules[6]={name:"pchar",lower:"pchar",index:6,isBkr:!1},this.rules[7]={name:"unreserved",lower:"unreserved",index:7,isBkr:!1},this.rules[8]={name:"pct-encoded",lower:"pct-encoded",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ALPHA",lower:"alpha",index:10,isBkr:!1},this.rules[11]={name:"DIGIT",lower:"digit",index:11,isBkr:!1},this.rules[12]={name:"HEXDIG",lower:"hexdig",index:12,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:2},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:1},this.rules[0].opcodes[5]={type:4,index:2},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:1,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:4},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:7,string:[47]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:2,children:[1,2,3]},this.rules[4].opcodes[1]={type:7,string:[123]},this.rules[4].opcodes[2]={type:4,index:5},this.rules[4].opcodes[3]={type:7,string:[125]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:1,max:1/0},this.rules[5].opcodes[1]={type:1,children:[2,3,4]},this.rules[5].opcodes[2]={type:5,min:0,max:122},this.rules[5].opcodes[3]={type:6,string:[124]},this.rules[5].opcodes[4]={type:5,min:126,max:1114111},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[6].opcodes[4]={type:7,string:[58]},this.rules[6].opcodes[5]={type:7,string:[64]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[7].opcodes[1]={type:4,index:10},this.rules[7].opcodes[2]={type:4,index:11},this.rules[7].opcodes[3]={type:7,string:[45]},this.rules[7].opcodes[4]={type:7,string:[46]},this.rules[7].opcodes[5]={type:7,string:[95]},this.rules[7].opcodes[6]={type:7,string:[126]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2,3]},this.rules[8].opcodes[1]={type:7,string:[37]},this.rules[8].opcodes[2]={type:4,index:12},this.rules[8].opcodes[3]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){return`; OpenAPI Path Templating ABNF syntax +; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3 +path-template = slash *( path-segment slash ) [ path-segment ] +path-segment = 1*( path-literal / template-expression ) +slash = "/" +path-literal = 1*pchar +template-expression = "{" template-expression-param-name "}" +template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI) + +; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3 +pchar = unreserved / pct-encoded / sub-delims / ":" / "@" +unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" + ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3 +pct-encoded = "%" HEXDIG HEXDIG + ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1 +sub-delims = "!" / "$" / "&" / "'" / "(" / ")" + / "*" / "+" / "," / ";" / "=" + ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2 + +; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1 +ALPHA = %x41-5A / %x61-7A ; A-Z / a-z +DIGIT = %x30-39 ; 0-9 +HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" +`}}const yM=(t,e,r,n,a)=>(t===Br.SEM_PRE?a.push(["slash",Ni.charsToString(e,r,n)]):Br.SEM_POST,Br.SEM_OK),vM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["path-template",Ni.charsToString(e,r,n)])}return Br.SEM_OK},bM=(t,e,r,n,a)=>(t===Br.SEM_PRE?a.push(["path-literal",Ni.charsToString(e,r,n)]):Br.SEM_POST,Br.SEM_OK),wM=(t,e,r,n,a)=>(t===Br.SEM_PRE?a.push(["template-expression",Ni.charsToString(e,r,n)]):Br.SEM_POST,Br.SEM_OK),EM=(t,e,r,n,a)=>(t===Br.SEM_PRE?a.push(["template-expression-param-name",Ni.charsToString(e,r,n)]):Br.SEM_POST,Br.SEM_OK),SM=new tx,xM=t=>{const e=new ns;return e.ast=new ib,e.ast.callbacks["path-template"]=vM,e.ast.callbacks.slash=yM,e.ast.callbacks["path-literal"]=bM,e.ast.callbacks["template-expression"]=wM,e.ast.callbacks["template-expression-param-name"]=EM,{result:e.parse(SM,"path-template",t),ast:e.ast}},_M=t=>(e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}})(t)?t:encodeURIComponent(t).replace(/%5B/g,"[").replace(/%5D/g,"]"),OM=["slash","path-literal","template-expression-param-name"],x1=(t,e,r={})=>{const n={encoder:_M,...r},a=xM(t);if(!a.result.success)return t;const o=[];return a.ast.translate(o),o.filter((([c])=>OM.includes(c))).map((([c,d])=>c==="template-expression-param-name"?Object.prototype.hasOwnProperty.call(e,d)?n.encoder(e[d],d):`{${d}}`:d)).join("")};new tx,new ns;const kM={body:function({req:e,value:r}){r!==void 0&&(e.body=r)},header:function({req:e,parameter:r,value:n}){e.headers=e.headers||{},n!==void 0&&(e.headers[r.name]=n)},query:function({req:e,value:r,parameter:n}){if(e.query=e.query||{},r===!1&&n.type==="boolean"&&(r="false"),r===0&&["number","integer"].indexOf(n.type)>-1&&(r="0"),r)e.query[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&r!==void 0){const a=n.name;e.query[a]=e.query[a]||{},e.query[a].allowEmptyValue=!0}},path:function({req:e,value:r,parameter:n,baseURL:a}){if(r!==void 0){const o=e.url.replace(a,""),p=x1(o,{[n.name]:r});e.url=a+p}},formData:function({req:e,value:r,parameter:n}){if(r===!1&&n.type==="boolean"&&(r="false"),r===0&&["number","integer"].indexOf(n.type)>-1&&(r="0"),r)e.form=e.form||{},e.form[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&r!==void 0){e.form=e.form||{};const a=n.name;e.form[a]=e.form[a]||{},e.form[a].allowEmptyValue=!0}}};function bv(t,e){return Yn()(e).call(e,"application/json")?typeof t=="string"?t:(Array.isArray(t)&&(t=t.map((r=>{try{return JSON.parse(r)}catch{return r}}))),JSON.stringify(t)):String(t)}function Pm(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"lenient-cookie-string",lower:"lenient-cookie-string",index:0,isBkr:!1},this.rules[1]={name:"lenient-cookie-entry",lower:"lenient-cookie-entry",index:1,isBkr:!1},this.rules[2]={name:"lenient-cookie-pair",lower:"lenient-cookie-pair",index:2,isBkr:!1},this.rules[3]={name:"lenient-cookie-pair-invalid",lower:"lenient-cookie-pair-invalid",index:3,isBkr:!1},this.rules[4]={name:"lenient-cookie-name",lower:"lenient-cookie-name",index:4,isBkr:!1},this.rules[5]={name:"lenient-cookie-value",lower:"lenient-cookie-value",index:5,isBkr:!1},this.rules[6]={name:"lenient-quoted-value",lower:"lenient-quoted-value",index:6,isBkr:!1},this.rules[7]={name:"lenient-quoted-char",lower:"lenient-quoted-char",index:7,isBkr:!1},this.rules[8]={name:"lenient-cookie-octet",lower:"lenient-cookie-octet",index:8,isBkr:!1},this.rules[9]={name:"cookie-string",lower:"cookie-string",index:9,isBkr:!1},this.rules[10]={name:"cookie-pair",lower:"cookie-pair",index:10,isBkr:!1},this.rules[11]={name:"cookie-name",lower:"cookie-name",index:11,isBkr:!1},this.rules[12]={name:"cookie-value",lower:"cookie-value",index:12,isBkr:!1},this.rules[13]={name:"cookie-octet",lower:"cookie-octet",index:13,isBkr:!1},this.rules[14]={name:"OWS",lower:"ows",index:14,isBkr:!1},this.rules[15]={name:"token",lower:"token",index:15,isBkr:!1},this.rules[16]={name:"tchar",lower:"tchar",index:16,isBkr:!1},this.rules[17]={name:"CHAR",lower:"char",index:17,isBkr:!1},this.rules[18]={name:"CTL",lower:"ctl",index:18,isBkr:!1},this.rules[19]={name:"separators",lower:"separators",index:19,isBkr:!1},this.rules[20]={name:"SP",lower:"sp",index:20,isBkr:!1},this.rules[21]={name:"HT",lower:"ht",index:21,isBkr:!1},this.rules[22]={name:"ALPHA",lower:"alpha",index:22,isBkr:!1},this.rules[23]={name:"DIGIT",lower:"digit",index:23,isBkr:!1},this.rules[24]={name:"DQUOTE",lower:"dquote",index:24,isBkr:!1},this.rules[25]={name:"WSP",lower:"wsp",index:25,isBkr:!1},this.rules[26]={name:"HTAB",lower:"htab",index:26,isBkr:!1},this.rules[27]={name:"CRLF",lower:"crlf",index:27,isBkr:!1},this.rules[28]={name:"CR",lower:"cr",index:28,isBkr:!1},this.rules[29]={name:"LF",lower:"lf",index:29,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5,6]},this.rules[0].opcodes[4]={type:7,string:[59]},this.rules[0].opcodes[5]={type:4,index:14},this.rules[0].opcodes[6]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[2].opcodes[1]={type:4,index:14},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:14},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:14},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:14},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:16},this.rules[3].opcodes[4]={type:4,index:14},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4]},this.rules[4].opcodes[2]={type:5,min:33,max:58},this.rules[4].opcodes[3]={type:6,string:[60]},this.rules[4].opcodes[4]={type:5,min:62,max:126},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,6]},this.rules[5].opcodes[1]={type:2,children:[2,3]},this.rules[5].opcodes[2]={type:4,index:6},this.rules[5].opcodes[3]={type:3,min:0,max:1},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:4,index:8},this.rules[5].opcodes[6]={type:3,min:0,max:1/0},this.rules[5].opcodes[7]={type:4,index:8},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,4]},this.rules[6].opcodes[1]={type:4,index:24},this.rules[6].opcodes[2]={type:3,min:0,max:1/0},this.rules[6].opcodes[3]={type:4,index:7},this.rules[6].opcodes[4]={type:4,index:24},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:5,min:32,max:33},this.rules[7].opcodes[2]={type:5,min:35,max:126},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:33,max:43},this.rules[8].opcodes[2]={type:5,min:45,max:58},this.rules[8].opcodes[3]={type:5,min:60,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,5,6]},this.rules[9].opcodes[4]={type:7,string:[59]},this.rules[9].opcodes[5]={type:4,index:20},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,2,3]},this.rules[10].opcodes[1]={type:4,index:11},this.rules[10].opcodes[2]={type:7,string:[61]},this.rules[10].opcodes[3]={type:4,index:12},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:4,index:15},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,6]},this.rules[12].opcodes[1]={type:2,children:[2,3,5]},this.rules[12].opcodes[2]={type:4,index:24},this.rules[12].opcodes[3]={type:3,min:0,max:1/0},this.rules[12].opcodes[4]={type:4,index:13},this.rules[12].opcodes[5]={type:4,index:24},this.rules[12].opcodes[6]={type:3,min:0,max:1/0},this.rules[12].opcodes[7]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[13].opcodes[1]={type:6,string:[33]},this.rules[13].opcodes[2]={type:5,min:35,max:43},this.rules[13].opcodes[3]={type:5,min:45,max:58},this.rules[13].opcodes[4]={type:5,min:60,max:91},this.rules[13].opcodes[5]={type:5,min:93,max:126},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1/0},this.rules[14].opcodes[1]={type:2,children:[2,4]},this.rules[14].opcodes[2]={type:3,min:0,max:1},this.rules[14].opcodes[3]={type:4,index:27},this.rules[14].opcodes[4]={type:4,index:25},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:1,max:1/0},this.rules[15].opcodes[1]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[35]},this.rules[16].opcodes[3]={type:7,string:[36]},this.rules[16].opcodes[4]={type:7,string:[37]},this.rules[16].opcodes[5]={type:7,string:[38]},this.rules[16].opcodes[6]={type:7,string:[39]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[45]},this.rules[16].opcodes[10]={type:7,string:[46]},this.rules[16].opcodes[11]={type:7,string:[94]},this.rules[16].opcodes[12]={type:7,string:[95]},this.rules[16].opcodes[13]={type:7,string:[96]},this.rules[16].opcodes[14]={type:7,string:[124]},this.rules[16].opcodes[15]={type:7,string:[126]},this.rules[16].opcodes[16]={type:4,index:23},this.rules[16].opcodes[17]={type:4,index:22},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:1,max:127},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:0,max:31},this.rules[18].opcodes[2]={type:6,string:[127]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[19].opcodes[1]={type:7,string:[40]},this.rules[19].opcodes[2]={type:7,string:[41]},this.rules[19].opcodes[3]={type:7,string:[60]},this.rules[19].opcodes[4]={type:7,string:[62]},this.rules[19].opcodes[5]={type:7,string:[64]},this.rules[19].opcodes[6]={type:7,string:[44]},this.rules[19].opcodes[7]={type:7,string:[59]},this.rules[19].opcodes[8]={type:7,string:[58]},this.rules[19].opcodes[9]={type:7,string:[92]},this.rules[19].opcodes[10]={type:6,string:[34]},this.rules[19].opcodes[11]={type:7,string:[47]},this.rules[19].opcodes[12]={type:7,string:[91]},this.rules[19].opcodes[13]={type:7,string:[93]},this.rules[19].opcodes[14]={type:7,string:[63]},this.rules[19].opcodes[15]={type:7,string:[61]},this.rules[19].opcodes[16]={type:7,string:[123]},this.rules[19].opcodes[17]={type:7,string:[125]},this.rules[19].opcodes[18]={type:4,index:20},this.rules[19].opcodes[19]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:6,string:[32]},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:6,string:[9]},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2]},this.rules[22].opcodes[1]={type:5,min:65,max:90},this.rules[22].opcodes[2]={type:5,min:97,max:122},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:5,min:48,max:57},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:6,string:[34]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:1,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:20},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:6,string:[9]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:6,string:[13]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:6,string:[10]},this.toString=function(){return`; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1 +lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry ) +lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid +lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS +lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored +lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "=" +lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet +lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE +lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE +lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E + ; Allow all printable characters except CTLs, semicolon and SP + +; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1 +cookie-string = cookie-pair *( ";" SP cookie-pair ) + +; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1 +; https://www.rfc-editor.org/errata/eid5518 +cookie-pair = cookie-name "=" cookie-value +cookie-name = token +cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet + ; https://www.rfc-editor.org/errata/eid8242 +cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E + ; US-ASCII characters excluding CTLs, + ; whitespace, DQUOTE, comma, semicolon, + ; and backslash + +; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2 +OWS = *( [ CRLF ] WSP ) ; "optional" whitespace + +; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2 +token = 1*(tchar) +tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" + / "+" / "-" / "." / "^" / "_" / "\`" / "|" / "~" + / DIGIT / ALPHA + ; any VCHAR, except delimiters + +; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2 +CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127) +CTL = %x00-1F / %x7F ; any US-ASCII control character +separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT +SP = %x20 ; US-ASCII SP, space (32) +HT = %x09 ; US-ASCII HT, horizontal-tab (9) + +; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1 +ALPHA = %x41-5A / %x61-7A ; A-Z / a-z +DIGIT = %x30-39 ; 0-9 +DQUOTE = %x22 ; " (Double Quote) +WSP = SP / HTAB ; white space +HTAB = %x09 ; horizontal tab +CRLF = CR LF ; Internet standard newline +CR = %x0D ; carriage return +LF = %x0A ; linefeed +`}}new Pm;const AM=t=>{if(typeof t!="string"||[...t].length!==1)throw new TypeError("Input must be a single character string.");const e=t.codePointAt(0);return e<=127?`%${e.toString(16).toUpperCase().padStart(2,"0")}`:encodeURIComponent(t)},wv=t=>t.length>=2&&t.startsWith('"')&&t.endsWith('"'),rx=t=>wv(t)?t.slice(1,-1):t,nx=t=>`"${t}"`,ax=t=>t,CM=new ns,jM=new Pm,_1=(t,{strict:e=!0,quoted:r=null}={})=>{try{const n=e?"cookie-value":"lenient-cookie-value",a=CM.parse(jM,n,t);return typeof r=="boolean"?a.success&&r===wv(t):a.success}catch{return!1}},ox=t=>{const e=new TextEncoder().encode(t).reduce(((r,n)=>r+String.fromCharCode(n)),"");return btoa(e)},PM=(t,e=ox)=>{const r=String(t);if(_1(r))return r;const n=wv(r),a=e(n?rx(r):r);return n?nx(a):a},NM=t=>(e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""))(ox(t)),TM=t=>PM(t,NM),IM=new ns,MM=new Pm,ix=(t,{strict:e=!0}={})=>{try{const r=e?"cookie-name":"lenient-cookie-name";return IM.parse(MM,r,t).success}catch{return!1}},RM=t=>{if(!ix(t))throw new TypeError(`Invalid cookie name: ${t}`)},sx=t=>{if(!_1(t))throw new TypeError(`Invalid cookie value: ${t}`)},lx={encoders:{name:ax,value:TM},validators:{name:RM,value:sx}},DM=(t,e,r={})=>{const n={...r,encoders:{...lx.encoders,...r.encoders},validators:{...lx.validators,...r.validators}},a=n.encoders.name(t),o=n.encoders.value(e);return n.validators.name(a),n.validators.value(o),`${a}=${o}`},FM=(t,e={})=>(Array.isArray(t)?t:typeof t=="object"&&t!==null?Object.entries(t):[]).map((([r,n])=>DM(r,n,e))).join("; "),LM=new ns,$M=new Pm,BM=t=>{const e=String(t);if(_1(e))return e;const r=wv(e),n=r?rx(e):e;let a="";for(const o of n)a+=LM.parse($M,"cookie-octet",o).success?o:AM(o);return r?nx(a):a};new ns,new Pm;const qM=t=>{if(!ix(t,{strict:!1}))throw new TypeError(`Invalid cookie name: ${t}`)},UM=t=>BM(t).replace(/[=&]/gu,(e=>e==="="?"%3D":"%26")),O1=(t,e={})=>FM(t,Py({encoders:{name:ax,value:UM},validators:{name:qM,value:sx}},e));function zM({req:t,value:e,parameter:r,baseURL:n}){const{name:a,style:o,explode:p,content:c}=r;if(e===void 0)return;const d=t.url.replace(n,"");let E;if(c){const x=Object.keys(c)[0];E=x1(d,{[a]:e},{encoder:k=>JE(bv(k,x))})}else E=x1(d,{[a]:e},{encoder:x=>q0({key:r.name,value:x,style:o||"simple",explode:p??!1,escape:"reserved"})});t.url=n+E}function VM({req:t,value:e,parameter:r}){if(t.query=t.query||{},e!==void 0&&r.content){const n=bv(e,Object.keys(r.content)[0]);if(n)t.query[r.name]=n;else if(r.allowEmptyValue){const a=r.name;t.query[a]=t.query[a]||{},t.query[a].allowEmptyValue=!0}}else if(e===!1&&(e="false"),e===0&&(e="0"),e){const{style:n,explode:a,allowReserved:o}=r;t.query[r.name]={value:e,serializationOption:{style:n,explode:a,allowReserved:o}}}else if(r.allowEmptyValue&&e!==void 0){const n=r.name;t.query[n]=t.query[n]||{},t.query[n].allowEmptyValue=!0}}const JM=["accept","authorization","content-type"];function WM({req:t,parameter:e,value:r}){if(t.headers=t.headers||{},!(JM.indexOf(e.name.toLowerCase())>-1))if(r!==void 0&&e.content){const n=Object.keys(e.content)[0];t.headers[e.name]=bv(r,n)}else r===void 0||Array.isArray(r)&&r.length===0||(t.headers[e.name]=q0({key:e.name,value:r,style:e.style||"simple",explode:e.explode!==void 0&&e.explode,escape:!1}))}function HM({req:t,parameter:e,value:r}){const{name:n}=e;if(t.headers=t.headers||{},r!==void 0&&e.content){const a=bv(r,Object.keys(e.content)[0]);t.headers.Cookie=O1({[n]:a})}else if(r!==void 0&&(!Array.isArray(r)||r.length!==0)){const a=q0({key:e.name,value:r,escape:!1,style:e.style||"form",explode:e.explode??!1}),o=Array.isArray(r)&&e.explode?`${n}=${a}`:a;t.headers.Cookie=O1({[n]:o})}}const KM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,{btoa:GM}=KM,cx=GM;function YM(t,e){const{operation:r,requestBody:n,securities:a,spec:o,attachContentTypeForEmptyPayload:p}=t;let{requestContentType:c}=t;e=(function({request:P,securities:R={},operation:L={},spec:V}){const Q={...P},{authorized:J={}}=R,re=L.security||V.security||[],me=J&&!!Object.keys(J).length,le=V?.components?.securitySchemes||{};return Q.headers=Q.headers||{},Q.query=Q.query||{},!Object.keys(R).length||!me||!re||Array.isArray(L.security)&&!L.security.length?P:(re.forEach((ve=>{Object.keys(ve).forEach((be=>{const ce=J[be],_e=le[be];if(!ce)return;const Ae=ce.value||ce,{type:xe}=_e;if(ce){if(xe==="apiKey")_e.in==="query"&&(Q.query[_e.name]=Ae),_e.in==="header"&&(Q.headers[_e.name]=Ae),_e.in==="cookie"&&(Q.cookies[_e.name]=Ae);else if(xe==="http"){if(/^basic$/i.test(_e.scheme)){const Oe=Ae.username||"",je=Ae.password||"",G=cx(`${Oe}:${je}`);Q.headers.Authorization=`Basic ${G}`}/^bearer$/i.test(_e.scheme)&&(Q.headers.Authorization=`Bearer ${Ae}`)}else if(xe==="oauth2"||xe==="openIdConnect"){const Oe=ce.token||{},je=Oe[_e["x-tokenName"]||"access_token"];let G=Oe.token_type;G&&G.toLowerCase()!=="bearer"||(G="Bearer"),Q.headers.Authorization=`${G} ${je}`}}}))})),Q)})({request:e,securities:a,operation:r,spec:o});const d=r.requestBody||{},E=Object.keys(d.content||{}),x=c&&E.indexOf(c)>-1;if(n||p){if(c&&x)e.headers["Content-Type"]=c;else if(!c){const k=E[0];k&&(e.headers["Content-Type"]=k,c=k)}}else c&&x&&(e.headers["Content-Type"]=c);if(!t.responseContentType&&r.responses){const k=Object.entries(r.responses).filter((([P,R])=>{const L=parseInt(P,10);return L>=200&&L<300&&Ls(R.content)})).reduce(((P,[,R])=>P.concat(Object.keys(R.content))),[]);k.length>0&&(e.headers.accept=k.join(", "))}if(n)if(c){if(E.indexOf(c)>-1)if(c==="application/x-www-form-urlencoded"||c==="multipart/form-data")if(typeof n=="object"){const k=d.content[c]?.encoding??{};e.form={},Object.keys(n).forEach((P=>{let R;try{R=JSON.parse(n[P])}catch{R=n[P]}e.form[P]={value:R,encoding:k[P]||{}}}))}else if(typeof n=="string"){const k=d.content[c]?.encoding??{};try{e.form={};const P=JSON.parse(n);Object.entries(P).forEach((([R,L])=>{e.form[R]={value:L,encoding:k[R]||{}}}))}catch{e.form=n}}else e.form=n;else e.body=n}else e.body=n;return e}function XM(t,e){const{spec:r,operation:n,securities:a,requestContentType:o,responseContentType:p,attachContentTypeForEmptyPayload:c}=t;if(e=(function({request:E,securities:x={},operation:k={},spec:P}){const R={...E},{authorized:L={},specSecurity:V=[]}=x,Q=k.security||V,J=L&&!!Object.keys(L).length,re=P.securityDefinitions;return R.headers=R.headers||{},R.query=R.query||{},!Object.keys(x).length||!J||!Q||Array.isArray(k.security)&&!k.security.length?E:(Q.forEach((me=>{Object.keys(me).forEach((le=>{const ve=L[le];if(!ve)return;const{token:be}=ve,ce=ve.value||ve,_e=re[le],{type:Ae}=_e,xe=_e["x-tokenName"]||"access_token",Oe=be&&be[xe];let je=be&&be.token_type;if(ve)if(Ae==="apiKey"){const G=_e.in==="query"?"query":"headers";R[G]=R[G]||{},R[G][_e.name]=ce}else if(Ae==="basic")if(ce.header)R.headers.authorization=ce.header;else{const G=ce.username||"",de=ce.password||"";ce.base64=cx(`${G}:${de}`),R.headers.authorization=`Basic ${ce.base64}`}else Ae==="oauth2"&&Oe&&(je=je&&je.toLowerCase()!=="bearer"?je:"Bearer",R.headers.authorization=`${je} ${Oe}`)}))})),R)})({request:e,securities:a,operation:n,spec:r}),e.body||e.form||c)o?e.headers["Content-Type"]=o:Array.isArray(n.consumes)?[e.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[e.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter((d=>d.type==="file")).length?e.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter((d=>d.in==="formData")).length&&(e.headers["Content-Type"]="application/x-www-form-urlencoded");else if(o){const d=n.parameters&&n.parameters.filter((x=>x.in==="body")).length>0,E=n.parameters&&n.parameters.filter((x=>x.in==="formData")).length>0;(d||E)&&(e.headers["Content-Type"]=o)}return!p&&Array.isArray(n.produces)&&n.produces.length>0&&(e.headers.accept=n.produces.join(", ")),e}function QM(t,e){return(function(n,a,o){if(!n||typeof n!="object"||!n.paths||typeof n.paths!="object")return null;const{paths:p}=n,c=rS(n);for(const d in p){for(const x in p[d]){if(x.toUpperCase()==="PARAMETERS"||x==="additionalOperations")continue;const k=p[d][x];if(!k||typeof k!="object")continue;const P={spec:n,pathName:d,method:x.toUpperCase(),operation:k};if(a(P))return P}const{additionalOperations:E}=p[d];if(c&&E&&typeof E=="object")for(const x of Object.keys(E)){const k=E[x];if(!k||typeof k!="object")continue;const P={spec:n,pathName:d,method:x,operation:k};if(a(P))return P}}})(t,e)||null}function ux(t,e){return`${e.toLowerCase()}-${t}`}const px=t=>Array.isArray(t)?t:[],ZM=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,Nm=(t,{recurse:e=!0,depth:r=1}={})=>{var n,a;if(Ls(t)){if(t.type==="object"||t.type==="array"||Array.isArray(t.type)&&(Yn()(n=t.type).call(n,"object")||Yn()(a=t.type).call(a,"array")))return t;if(!(r>NE)&&e){const o=Array.isArray(t.oneOf)?t.oneOf.find((c=>Nm(c,{recurse:e,depth:r+1}))):void 0;if(o)return o;const p=Array.isArray(t.anyOf)?t.anyOf.find((c=>Nm(c,{recurse:e,depth:r+1}))):void 0;if(p)return p}}},hx=({value:t,silentFail:e=!1})=>{try{const r=JSON.parse(t);if(Ls(r)||Array.isArray(r))return r;if(!e)throw new Error("Expected JSON serialized object or array")}catch{if(!e)throw new Error("Could not parse parameter value string as JSON Object or JSON Array")}return t},k1=t=>{try{return new URL(t)}catch{const e=new URL(t,Sy),r=String(t).startsWith("/")?e.pathname:e.pathname.substring(1);return{hash:e.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:e.search,searchParams:e.searchParams}}};class eR extends xr{}const tR={buildRequest:dx};function rR({http:t,fetch:e,spec:r,operationId:n,pathName:a,method:o,parameters:p,securities:c,...d}){const E=t||e||Mf;a&&o&&!n&&(n=ux(a,o));const x=tR.buildRequest({spec:r,operationId:n,parameters:p,securities:c,http:E,...d});return x.body&&(Ls(x.body)||Array.isArray(x.body))&&(x.body=JSON.stringify(x.body)),E(x)}function dx(t){const{spec:e,operationId:r,responseContentType:n,scheme:a,requestInterceptor:o,responseInterceptor:p,contextUrl:c,userFetch:d,server:E,serverVariables:x,http:k,signal:P,serverVariableEncoder:R}=t;let{parameters:L,parameterBuilders:V,baseURL:Q}=t;const J=nS(e);V||(V=J?ke:kM);let re={url:"",credentials:k&&k.withCredentials?"include":"same-origin",headers:{},cookies:{}};P&&(re.signal=P),o&&(re.requestInterceptor=o),p&&(re.responseInterceptor=p),d&&(re.userFetch=d);const me=(function(Oe,je){return Oe&&Oe.paths?QM(Oe,(({pathName:G,method:de,operation:Ne})=>{if(!Ne||typeof Ne!="object")return!1;const Ye=Ne.operationId;return[Df(Ne,G,de),ux(G,de),Ye].some((ht=>ht&&ht===je))})):null})(e,r);if(!me)throw new eR(`Operation ${r} not found`);const{operation:le={},method:ve,pathName:be}=me;if(!(xe=>typeof xe=="string"&&ZM.test(xe))(ve))throw new Error("Invalid HTTP method");if(Q=Q??(function(Oe){return nS(Oe.spec)?(function({spec:de,pathName:Ne,method:Ye,operation:ht,server:Ct,contextUrl:_t,serverVariables:qt={},serverVariableEncoder:It}){let Ot,et=[],Dt="";const or=ht?.servers??de?.paths?.[Ne]?.[(Ye||"").toLowerCase()]?.servers,Ut=de?.paths?.[Ne]?.servers,pr=de?.servers;if(et=C1(or)?or:C1(Ut)?Ut:C1(pr)?pr:[YA],Ct&&(Ot=et.find((W=>W.url===Ct)),Ot&&(Dt=Ct)),Dt||([Ot]=et,Dt=Ot.url),dM(Dt,{strict:!0})){const W=Object.entries({...Ot.variables}).reduce((($e,[Je,Ft])=>($e[Je]=Ft.default,$e)),{});Dt=gM(Dt,{...W,...qt},{encoder:typeof It=="function"?It:T2})}return(function($e="",Je=""){const Ft=k1($e&&Je?go(Je,$e):$e),it=k1(Je),bt=A1(Ft.protocol)||A1(it.protocol),ut=Ft.host||it.host,Xt=Ft.pathname;let zt;return zt=bt&&ut?`${bt}://${ut+Xt}`:Xt,zt[zt.length-1]==="/"?zt.slice(0,-1):zt})(Dt,_t)})(Oe):(function({spec:de,scheme:Ne,contextUrl:Ye=""}){const ht=k1(Ye),Ct=Array.isArray(de.schemes)?de.schemes[0]:null,_t=Ne||Ct||A1(ht.protocol)||"http",qt=de.host||ht.host||"",It=de.basePath||"";let Ot;return Ot=qt?`${_t}://${qt+It}`:It,Ot[Ot.length-1]==="/"?Ot.slice(0,-1):Ot})(Oe)})({spec:e,scheme:a,contextUrl:c,server:E,serverVariables:x,pathName:be,method:ve,operation:le,serverVariableEncoder:R}),re.url+=Q,!r)return delete re.cookies,re;re.url+=be,re.method=ve,L=L||{};const ce=e.paths[be]||{};n&&(re.headers.accept=n);const _e=(xe=>{const Oe={};xe.forEach((G=>{Oe[G.in]||(Oe[G.in]={}),Oe[G.in][G.name]=G}));const je=[];return Object.keys(Oe).forEach((G=>{Object.keys(Oe[G]).forEach((de=>{je.push(Oe[G][de])}))})),je})([].concat(px(le.parameters)).concat(px(ce.parameters)));_e.forEach((xe=>{const Oe=V[xe.in];let je;if(xe.in==="body"&&xe.schema&&xe.schema.properties&&(je=L),je=xe&&xe.name&&L[xe.name],je===void 0?je=xe&&xe.name&&L[`${xe.in}.${xe.name}`]:((G,de)=>de.filter((Ne=>Ne.name===G)))(xe.name,_e).length>1&&console.warn(`Parameter '${xe.name}' is ambiguous because the defined spec has more than one parameter with the name: '${xe.name}' and the passed-in parameter values did not define an 'in' value.`),je!==null){if(xe.default!==void 0&&je===void 0&&(je=xe.default),je===void 0&&xe.required&&!xe.allowEmptyValue)throw new Error(`Required parameter ${xe.name} is not provided`);J&&typeof je=="string"&&($f("type",xe.schema)&&typeof xe.schema.type=="string"&&Nm(xe.schema,{recurse:!1})?je=hx({value:je,silentFail:!1}):($f("type",xe.schema)&&Array.isArray(xe.schema.type)&&Nm(xe.schema,{recurse:!1})||!$f("type",xe.schema)&&Nm(xe.schema,{recurse:!0}))&&(je=hx({value:je,silentFail:!0}))),Oe&&Oe({req:re,parameter:xe,value:je,operation:le,spec:e,baseURL:Q})}}));const Ae={...t,operation:le};if(re=J?YM(Ae,re):XM(Ae,re),re.cookies&&Object.keys(re.cookies).length>0){const xe=O1(re.cookies);$y(re.headers.Cookie)?re.headers.Cookie+=`; ${xe}`:re.headers.Cookie=xe}return re.cookies&&delete re.cookies,U0(re)}const A1=t=>t?t.replace(/\W/g,""):null,C1=t=>Array.isArray(t)&&t.length>0,nR=t=>async(e,r,n={})=>(async(a,o,p={})=>{const{returnEntireTree:c,baseDoc:d,requestInterceptor:E,responseInterceptor:x,parameterMacro:k,modelPropertyMacro:P,useCircularStructures:R,strategies:L}=p,V={spec:a,pathDiscriminator:o,baseDoc:d,requestInterceptor:E,responseInterceptor:x,parameterMacro:k,modelPropertyMacro:P,useCircularStructures:R,strategies:L},Q=L.find((re=>re.match(a))).normalize(a),J=await sM({spec:Q,...V,allowMetaPatches:!0,skipNormalization:!Y0(a)});return!c&&Array.isArray(o)&&o.length&&(J.spec=o.reduce(((re,me)=>re?.[me]),J.spec)||null),J})(e,r,{...t,...n}),aR=((t,e)=>(...r)=>{t(...r);const n=e.getConfigs().withCredentials;e.fn.fetch.withCredentials=n});function fx({configs:t,getConfigs:e}){return{fn:{fetch:(r=Mf,n=t.preFetch,a=t.postFetch,a=a||(o=>o),n=n||(o=>o),o=>(typeof o=="string"&&(o={url:o}),o=U0(o),o=n(o),a(r(o)))),buildRequest:dx,execute:rR,resolve:Z2({strategies:[Q2,Q0,X0,G0]}),resolveSubtree:async(o,p,c={})=>{const d=e(),E={modelPropertyMacro:d.modelPropertyMacro,parameterMacro:d.parameterMacro,requestInterceptor:d.requestInterceptor,responseInterceptor:d.responseInterceptor,strategies:[Q2,Q0,X0,G0]};return nR(E)(o,p,c)},serializeRes:GE,opId:Df},statePlugins:{configs:{wrapActions:{loaded:aR}}}};var r,n,a}function mx(){return{fn:{shallowEqualKeys:fi,sanitizeUrl:Dr}}}var gx=Be(40961),oR=(Be(78418),u.version.startsWith("19")),iR=Symbol.for(oR?"react.transitional.element":"react.element"),sR=Symbol.for("react.portal"),lR=Symbol.for("react.fragment"),cR=Symbol.for("react.strict_mode"),uR=Symbol.for("react.profiler"),pR=Symbol.for("react.consumer"),hR=Symbol.for("react.context"),yx=Symbol.for("react.forward_ref"),dR=Symbol.for("react.suspense"),fR=Symbol.for("react.suspense_list"),j1=Symbol.for("react.memo"),mR=Symbol.for("react.lazy"),gR=yx,yR=j1;function vR(t){if(typeof t=="object"&&t!==null){const{$$typeof:e}=t;switch(e){case iR:switch(t=t.type){case lR:case uR:case cR:case dR:case fR:return t;default:switch(t=t&&t.$$typeof){case hR:case yx:case mR:case j1:case pR:return t;default:return e}}case sR:return e}}}function bR(t,e,r,n,{areStatesEqual:a,areOwnPropsEqual:o,areStatePropsEqual:p}){let c,d,E,x,k,P=!1;function R(L,V){const Q=!o(V,d),J=!a(L,c,V,d);return c=L,d=V,Q&&J?(function(){return E=t(c,d),e.dependsOnOwnProps&&(x=e(n,d)),k=r(E,x,d),k})():Q?(function(){return t.dependsOnOwnProps&&(E=t(c,d)),e.dependsOnOwnProps&&(x=e(n,d)),k=r(E,x,d),k})():J?(function(){const me=t(c,d),le=!p(me,E);return E=me,le&&(k=r(E,x,d)),k})():k}return function(V,Q){return P?R(V,Q):(function(re,me){return c=re,d=me,E=t(c,d),x=e(n,d),k=r(E,x,d),P=!0,k})(V,Q)}}function P1(t){return function(r){const n=t(r);function a(){return n}return a.dependsOnOwnProps=!1,a}}function vx(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function bx(t,e){return function(n,{displayName:a}){const o=function(c,d){return o.dependsOnOwnProps?o.mapToProps(c,d):o.mapToProps(c,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(c,d){o.mapToProps=t,o.dependsOnOwnProps=vx(t);let E=o(c,d);return typeof E=="function"&&(o.mapToProps=E,o.dependsOnOwnProps=vx(E),E=o(c,d)),E},o}}function N1(t,e){return(r,n)=>{throw new Error(`Invalid value of type ${typeof t} for ${e} argument when connecting component ${n.wrappedComponentName}.`)}}function wR(t,e,r){return{...r,...t,...e}}function ER(t){t()}var wx={notify(){},get:()=>[]};function Ex(t,e){let r,n=wx,a=0,o=!1;function p(){E.onStateChange&&E.onStateChange()}function c(){a++,r||(r=e?e.addNestedSub(p):t.subscribe(p),n=(function(){let k=null,P=null;return{clear(){k=null,P=null},notify(){ER((()=>{let R=k;for(;R;)R.callback(),R=R.next}))},get(){const R=[];let L=k;for(;L;)R.push(L),L=L.next;return R},subscribe(R){let L=!0;const V=P={callback:R,next:null,prev:P};return V.prev?V.prev.next=V:k=V,function(){L&&k!==null&&(L=!1,V.next?V.next.prev=V.prev:P=V.prev,V.prev?V.prev.next=V.next:k=V.next)}}}})())}function d(){a--,r&&a===0&&(r(),r=void 0,n.clear(),n=wx)}const E={addNestedSub:function(k){c();const P=n.subscribe(k);let R=!1;return()=>{R||(R=!0,P(),d())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:p,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,c())},tryUnsubscribe:function(){o&&(o=!1,d())},getListeners:()=>n};return E}var SR=!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0),xR=typeof navigator<"u"&&navigator.product==="ReactNative",Ev=SR||xR?u.useLayoutEffect:u.useEffect;function Sx(t,e){return t===e?t!==0||e!==0||1/t==1/e:t!=t&&e!=e}function T1(t,e){if(Sx(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let a=0;a({})))})(t),P=(function(Q){return Q&&typeof Q=="object"?P1((J=>(function(me,le){const ve={};for(const be in me){const ce=me[be];typeof ce=="function"&&(ve[be]=(..._e)=>le(ce(..._e)))}return ve})(Q,J))):Q?typeof Q=="function"?bx(Q):N1(Q,"mapDispatchToProps"):P1((J=>({dispatch:J})))})(e),R=(function(Q){return Q?typeof Q=="function"?(function(re){return function(le,{displayName:ve,areMergedPropsEqual:be}){let ce,_e=!1;return function(xe,Oe,je){const G=re(xe,Oe,je);return _e?be(G,ce)||(ce=G):(_e=!0,ce=G),ce}}})(Q):N1(Q,"mergeProps"):()=>wR})(r),L=!!t;return V=>{const Q=V.displayName||V.name||"Component",J=`Connect(${Q})`,re={shouldHandleStateChanges:L,displayName:J,wrappedComponentName:Q,WrappedComponent:V,initMapStateToProps:k,initMapDispatchToProps:P,initMergeProps:R,areStatesEqual:a,areStatePropsEqual:p,areOwnPropsEqual:o,areMergedPropsEqual:c};function me(ve){const[be,ce,_e]=u.useMemo((()=>{const{reactReduxForwardedRef:$e,...Je}=ve;return[ve.context,$e,Je]}),[ve]),Ae=u.useMemo((()=>x),[be,x]),xe=u.useContext(Ae),Oe=!!ve.store&&!!ve.store.getState&&!!ve.store.dispatch,je=!!xe&&!!xe.store,G=Oe?ve.store:xe.store,de=je?xe.getServerState:G.getState,Ne=u.useMemo((()=>(function(Je,{initMapStateToProps:Ft,initMapDispatchToProps:it,initMergeProps:bt,...ut}){return bR(Ft(Je,ut),it(Je,ut),bt(Je,ut),Je,ut)})(G.dispatch,re)),[G]),[Ye,ht]=u.useMemo((()=>{if(!L)return MR;const $e=Ex(G,Oe?void 0:xe.subscription),Je=$e.notifyNestedSubs.bind($e);return[$e,Je]}),[G,Oe,xe]),Ct=u.useMemo((()=>Oe?xe:{...xe,subscription:Ye}),[Oe,xe,Ye]),_t=u.useRef(void 0),qt=u.useRef(_e),It=u.useRef(void 0),Ot=u.useRef(!1),et=u.useRef(!1),Dt=u.useRef(void 0);Ev((()=>(et.current=!0,()=>{et.current=!1})),[]);const or=u.useMemo((()=>()=>It.current&&_e===qt.current?It.current:Ne(G.getState(),_e)),[G,_e]),Ut=u.useMemo((()=>$e=>Ye?(function(Ft,it,bt,ut,Xt,zt,tr,Er,dr,qr,en){if(!Ft)return()=>{};let kn=!1,ln=null;const jt=()=>{if(kn||!Er.current)return;const We=it.getState();let Kr,Lr;try{Kr=ut(We,Xt.current)}catch(zr){Lr=zr,ln=zr}Lr||(ln=null),Kr===zt.current?tr.current||qr():(zt.current=Kr,dr.current=Kr,tr.current=!0,en())};return bt.onStateChange=jt,bt.trySubscribe(),jt(),()=>{if(kn=!0,bt.tryUnsubscribe(),bt.onStateChange=null,ln)throw ln}})(L,G,Ye,Ne,qt,_t,Ot,et,It,ht,$e):()=>{}),[Ye]);let pr;(function(Je,Ft,it){Ev((()=>Je(...Ft)),it)})(RR,[qt,_t,Ot,_e,It,ht]);try{pr=u.useSyncExternalStore(Ut,or,de?()=>Ne(de(),_e):or)}catch($e){throw Dt.current&&($e.message+=` +The error may be correlated with this previous error: +${Dt.current.stack} + +`),$e}Ev((()=>{Dt.current=void 0,It.current=void 0,_t.current=pr}));const W=u.useMemo((()=>u.createElement(V,{...pr,ref:ce})),[ce,V,pr]);return u.useMemo((()=>L?u.createElement(Ae.Provider,{value:Ct},W):W),[Ae,W,Ct])}const le=u.memo(me);if(le.WrappedComponent=V,le.displayName=me.displayName=J,d){const ve=u.forwardRef((function(ce,_e){return u.createElement(le,{...ce,reactReduxForwardedRef:_e})}));return ve.displayName=J,ve.WrappedComponent=V,I1(ve,V)}return I1(le,V)}}var LR=FR,$R=function(e){const{children:r,context:n,serverState:a,store:o}=e,p=u.useMemo((()=>{const E=Ex(o);return{store:o,subscription:E,getServerState:a?()=>a:void 0}}),[o,a]),c=u.useMemo((()=>o.getState()),[o]);Ev((()=>{const{subscription:E}=p;return E.onStateChange=E.notifyNestedSubs,E.trySubscribe(),c!==o.getState()&&E.notifyNestedSubs(),()=>{E.tryUnsubscribe(),E.onStateChange=void 0}}),[p,c]);const d=n||Ax;return u.createElement(d.Provider,{value:p},r)},BR=Be(83488),Cx=Be.n(BR);const qR=t=>e=>{const{fn:r}=t();class n extends u.Component{render(){return u.createElement(e,Yr()({},t(),this.props,this.context))}}return n.displayName=`WithSystem(${r.getDisplayName(e)})`,n},UR=(t,e)=>r=>{const{fn:n}=t();class a extends u.Component{render(){return u.createElement($R,{store:e},u.createElement(r,Yr()({},this.props,this.context)))}}return a.displayName=`WithRoot(${n.getDisplayName(r)})`,a},jx=(t,e,r)=>Wt(r?UR(t,r):Cx(),LR(((n,a)=>{const o={...a,...t()};return(e.prototype?.mapStateToProps||(c=>({state:c})))(n,o)})),qR(t))(e),Px=(t,e,r,n)=>{for(const a in e){const o=e[a];typeof o=="function"&&o(r[a],n[a],t())}},zR=(t,e,r)=>(n,a)=>{const{fn:o}=t(),p=r(n,"root");class c extends u.Component{constructor(E,x){super(E,x),Px(t,a,E,{})}UNSAFE_componentWillReceiveProps(E){Px(t,a,E,this.props)}render(){const E=Ha()(this.props,a?Object.keys(a):[]);return u.createElement(p,E)}}return c.displayName=`WithMappedContainer(${o.getDisplayName(p)})`,c},VR=(t,e,r,n)=>a=>{const o=r(t,e,n)("App","root"),{createRoot:p}=gx;p(a).render(u.createElement(o,null))},M1=(t,e,r)=>(n,a,o={})=>{if(typeof n!="string")throw new TypeError("Need a string, to fetch a component. Was given a "+typeof n);const p=r(n);return p?a?a==="root"?jx(t,p,e()):jx(t,p):p:(o.failSilently||t().log.warn("Could not find component:",n),null)},JR=t=>t.displayName||t.name||"Component",Nx=({getComponents:t,getStore:e,getSystem:r})=>{const n=(a=M1(r,e,t),fs(a,((...p)=>JSON.stringify(p))));var a;const o=(p=>gu(p,((...c)=>c)))(zR(r,0,n));return{rootInjects:{getComponent:n,makeMappedContainer:o,render:VR(r,e,M1,t)},fn:{getDisplayName:JR}}},Tx=({React:t,getSystem:e,getStore:r,getComponents:n})=>{const a={},o=parseInt(t?.version,10);return o>=16&&o<18&&(a.render=((p,c,d,E)=>x=>{const k=d(p,c,E)("App","root");gx.render(u.createElement(k,null),x)})(e,r,M1,n)),{rootInjects:a}};function Ix(t){let{fn:e}=t;const r={download:a=>({errActions:o,specSelectors:p,specActions:c,getConfigs:d})=>{let{fetch:E}=e;const x=d();function k(P){if(P instanceof Error||P.status>=400)return c.updateLoadingStatus("failed"),o.newThrownErr(Object.assign(new Error((P.message||P.statusText)+" "+a),{source:"fetch"})),void(!P.status&&P instanceof Error&&(function(){try{let L;if("URL"in Qe?L=new URL(a):(L=document.createElement("a"),L.href=a),L.protocol!=="https:"&&Qe.location.protocol==="https:"){const V=Object.assign(new Error(`Possible mixed-content issue? The page was loaded over https:// but a ${L.protocol}// URL was specified. Check that you are not attempting to load mixed content.`),{source:"fetch"});return void o.newThrownErr(V)}if(L.origin!==Qe.location.origin){const V=Object.assign(new Error(`Possible cross-origin (CORS) issue? The URL origin (${L.origin}) does not match the page (${Qe.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`),{source:"fetch"});o.newThrownErr(V)}}catch{return}})());c.updateLoadingStatus("success"),c.updateSpec(P.text),p.url()!==a&&c.updateUrl(a)}a=a||p.url(),c.updateLoadingStatus("loading"),o.clear({source:"fetch"}),E({url:a,loadSpec:!0,requestInterceptor:x.requestInterceptor||(P=>P),responseInterceptor:x.responseInterceptor||(P=>P),credentials:"same-origin",headers:{Accept:"application/json,*/*"}}).then(k,k)},updateLoadingStatus:a=>{let o=[null,"loading","failed","success","failedConfig"];return o.indexOf(a)===-1&&console.error(`Error: ${a} is not one of ${JSON.stringify(o)}`),{type:"spec_update_loading_status",payload:a}}};let n={loadingStatus:yr((a=>a||(0,H.Map)()),(a=>a.get("loadingStatus")||null))};return{statePlugins:{spec:{actions:r,reducers:{spec_update_loading_status:(a,o)=>typeof o.payload=="string"?a.set("loadingStatus",o.payload):a},selectors:n}}}}function R1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return(function(a){if(a.length===0||a.length===1)return a;var o=a.join(".");return L1[o]||(L1[o]=(function(c){var d=c.length;return d===0||d===1?c:d===2?[c[0],c[1],"".concat(c[0],".").concat(c[1]),"".concat(c[1],".").concat(c[0])]:d===3?[c[0],c[1],c[2],"".concat(c[0],".").concat(c[1]),"".concat(c[0],".").concat(c[2]),"".concat(c[1],".").concat(c[0]),"".concat(c[1],".").concat(c[2]),"".concat(c[2],".").concat(c[0]),"".concat(c[2],".").concat(c[1]),"".concat(c[0],".").concat(c[1],".").concat(c[2]),"".concat(c[0],".").concat(c[2],".").concat(c[1]),"".concat(c[1],".").concat(c[0],".").concat(c[2]),"".concat(c[1],".").concat(c[2],".").concat(c[0]),"".concat(c[2],".").concat(c[0],".").concat(c[1]),"".concat(c[2],".").concat(c[1],".").concat(c[0])]:d>=4?[c[0],c[1],c[2],c[3],"".concat(c[0],".").concat(c[1]),"".concat(c[0],".").concat(c[2]),"".concat(c[0],".").concat(c[3]),"".concat(c[1],".").concat(c[0]),"".concat(c[1],".").concat(c[2]),"".concat(c[1],".").concat(c[3]),"".concat(c[2],".").concat(c[0]),"".concat(c[2],".").concat(c[1]),"".concat(c[2],".").concat(c[3]),"".concat(c[3],".").concat(c[0]),"".concat(c[3],".").concat(c[1]),"".concat(c[3],".").concat(c[2]),"".concat(c[0],".").concat(c[1],".").concat(c[2]),"".concat(c[0],".").concat(c[1],".").concat(c[3]),"".concat(c[0],".").concat(c[2],".").concat(c[1]),"".concat(c[0],".").concat(c[2],".").concat(c[3]),"".concat(c[0],".").concat(c[3],".").concat(c[1]),"".concat(c[0],".").concat(c[3],".").concat(c[2]),"".concat(c[1],".").concat(c[0],".").concat(c[2]),"".concat(c[1],".").concat(c[0],".").concat(c[3]),"".concat(c[1],".").concat(c[2],".").concat(c[0]),"".concat(c[1],".").concat(c[2],".").concat(c[3]),"".concat(c[1],".").concat(c[3],".").concat(c[0]),"".concat(c[1],".").concat(c[3],".").concat(c[2]),"".concat(c[2],".").concat(c[0],".").concat(c[1]),"".concat(c[2],".").concat(c[0],".").concat(c[3]),"".concat(c[2],".").concat(c[1],".").concat(c[0]),"".concat(c[2],".").concat(c[1],".").concat(c[3]),"".concat(c[2],".").concat(c[3],".").concat(c[0]),"".concat(c[2],".").concat(c[3],".").concat(c[1]),"".concat(c[3],".").concat(c[0],".").concat(c[1]),"".concat(c[3],".").concat(c[0],".").concat(c[2]),"".concat(c[3],".").concat(c[1],".").concat(c[0]),"".concat(c[3],".").concat(c[1],".").concat(c[2]),"".concat(c[3],".").concat(c[2],".").concat(c[0]),"".concat(c[3],".").concat(c[2],".").concat(c[1]),"".concat(c[0],".").concat(c[1],".").concat(c[2],".").concat(c[3]),"".concat(c[0],".").concat(c[1],".").concat(c[3],".").concat(c[2]),"".concat(c[0],".").concat(c[2],".").concat(c[1],".").concat(c[3]),"".concat(c[0],".").concat(c[2],".").concat(c[3],".").concat(c[1]),"".concat(c[0],".").concat(c[3],".").concat(c[1],".").concat(c[2]),"".concat(c[0],".").concat(c[3],".").concat(c[2],".").concat(c[1]),"".concat(c[1],".").concat(c[0],".").concat(c[2],".").concat(c[3]),"".concat(c[1],".").concat(c[0],".").concat(c[3],".").concat(c[2]),"".concat(c[1],".").concat(c[2],".").concat(c[0],".").concat(c[3]),"".concat(c[1],".").concat(c[2],".").concat(c[3],".").concat(c[0]),"".concat(c[1],".").concat(c[3],".").concat(c[0],".").concat(c[2]),"".concat(c[1],".").concat(c[3],".").concat(c[2],".").concat(c[0]),"".concat(c[2],".").concat(c[0],".").concat(c[1],".").concat(c[3]),"".concat(c[2],".").concat(c[0],".").concat(c[3],".").concat(c[1]),"".concat(c[2],".").concat(c[1],".").concat(c[0],".").concat(c[3]),"".concat(c[2],".").concat(c[1],".").concat(c[3],".").concat(c[0]),"".concat(c[2],".").concat(c[3],".").concat(c[0],".").concat(c[1]),"".concat(c[2],".").concat(c[3],".").concat(c[1],".").concat(c[0]),"".concat(c[3],".").concat(c[0],".").concat(c[1],".").concat(c[2]),"".concat(c[3],".").concat(c[0],".").concat(c[2],".").concat(c[1]),"".concat(c[3],".").concat(c[1],".").concat(c[0],".").concat(c[2]),"".concat(c[3],".").concat(c[1],".").concat(c[2],".").concat(c[0]),"".concat(c[3],".").concat(c[2],".").concat(c[0],".").concat(c[1]),"".concat(c[3],".").concat(c[2],".").concat(c[1],".").concat(c[0])]:void 0})(a)),L1[o]})(t.filter((function(n){return n!=="token"}))).reduce((function(n,a){return hd(hd({},n),r[a])}),e)}function Dx(t){return t.join(" ")}function Fx(t){var e=t.node,r=t.stylesheet,n=t.style,a=n===void 0?{}:n,o=t.useInlineStyles,p=t.key,c=e.properties,d=e.type,E=e.tagName,x=e.value;if(d==="text")return x;if(E){var k,P=(function(re,me){var le=0;return function(ve){return le+=1,ve.map((function(be,ce){return Fx({node:be,stylesheet:re,useInlineStyles:me,key:"code-segment-".concat(le,"-").concat(ce)})}))}})(r,o);if(o){var R=Object.keys(r).reduce((function(J,re){return re.split(".").forEach((function(me){J.includes(me)||J.push(me)})),J}),[]),L=c.className&&c.className.includes("token")?["token"]:[],V=c.className&&L.concat(c.className.filter((function(J){return!R.includes(J)})));k=hd(hd({},c),{},{className:Dx(V)||void 0,style:HR(c.className,Object.assign({},c.style,a),r)})}else k=hd(hd({},c),{},{className:Dx(c.className)});var Q=P(e.children);return u.createElement(E,F1({key:p},k),Q)}}var KR=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Lx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),r.push.apply(r,n)}return r}function Wp(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];t.length===void 0&&(t=[t]);for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:[];return e||le.length>0?(function(be,ce){return Sv({children:be,lineNumber:ce,lineNumberStyle:c,largestLineNumber:p,showInlineLineNumbers:a,lineProps:r,className:arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],showLineNumbers:n,wrapLongLines:d,wrapLines:e})})(re,me,le):(function(be,ce){if(n&&ce&&a){var _e=Bx(c,ce,p);be.unshift($x(ce,_e))}return be})(re,me)}for(var V=function(){var me=x[R],le=me.children[0].value,ve=(function(_e){return _e.match(GR)})(le);if(ve){var be=le.split(` +`);be.forEach((function(ce,_e){var Ae=n&&k.length+o,xe={type:"text",value:"".concat(ce,` +`)};if(_e===0){var Oe=L(x.slice(P+1,R).concat(Sv({children:[xe],className:me.properties.className})),Ae);k.push(Oe)}else if(_e===be.length-1){var je=x[R+1]&&x[R+1].children&&x[R+1].children[0],G={type:"text",value:"".concat(ce)};if(je){var de=Sv({children:[G],className:me.properties.className});x.splice(R+1,0,de)}else{var Ne=L([G],Ae,me.properties.className);k.push(Ne)}}else{var Ye=L([xe],Ae,me.properties.className);k.push(Ye)}})),P=R}R++};R{Pc.registerLanguage("json",t9),Pc.registerLanguage("js",Jx),Pc.registerLanguage("xml",n9),Pc.registerLanguage("yaml",s9),Pc.registerLanguage("http",c9),Pc.registerLanguage("bash",o9),Pc.registerLanguage("powershell",p9),Pc.registerLanguage("javascript",Jx)},Wx={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#333",color:"white"},"hljs-name":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-code":{fontStyle:"italic",color:"#888"},"hljs-emphasis":{fontStyle:"italic"},"hljs-tag":{color:"#62c8f3"},"hljs-variable":{color:"#ade5fc"},"hljs-template-variable":{color:"#ade5fc"},"hljs-selector-id":{color:"#ade5fc"},"hljs-selector-class":{color:"#ade5fc"},"hljs-string":{color:"#a2fca2"},"hljs-bullet":{color:"#d36363"},"hljs-type":{color:"#ffa"},"hljs-title":{color:"#ffa"},"hljs-section":{color:"#ffa"},"hljs-attribute":{color:"#ffa"},"hljs-quote":{color:"#ffa"},"hljs-built_in":{color:"#ffa"},"hljs-builtin-name":{color:"#ffa"},"hljs-number":{color:"#d36363"},"hljs-symbol":{color:"#d36363"},"hljs-keyword":{color:"#fcc28c"},"hljs-selector-tag":{color:"#fcc28c"},"hljs-literal":{color:"#fcc28c"},"hljs-comment":{color:"#888"},"hljs-deletion":{color:"#333",backgroundColor:"#fc9b9b"},"hljs-regexp":{color:"#c6b4f0"},"hljs-link":{color:"#c6b4f0"},"hljs-meta":{color:"#fc9b9b"},"hljs-addition":{backgroundColor:"#a2fca2",color:"#333"}},d9={agate:Wx,arta:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#222",color:"#aaa"},"hljs-subst":{color:"#aaa"},"hljs-section":{color:"#fff",fontWeight:"bold"},"hljs-comment":{color:"#444"},"hljs-quote":{color:"#444"},"hljs-meta":{color:"#444"},"hljs-string":{color:"#ffcc33"},"hljs-symbol":{color:"#ffcc33"},"hljs-bullet":{color:"#ffcc33"},"hljs-regexp":{color:"#ffcc33"},"hljs-number":{color:"#00cc66"},"hljs-addition":{color:"#00cc66"},"hljs-built_in":{color:"#32aaee"},"hljs-builtin-name":{color:"#32aaee"},"hljs-literal":{color:"#32aaee"},"hljs-type":{color:"#32aaee"},"hljs-template-variable":{color:"#32aaee"},"hljs-attribute":{color:"#32aaee"},"hljs-link":{color:"#32aaee"},"hljs-keyword":{color:"#6644aa"},"hljs-selector-tag":{color:"#6644aa"},"hljs-name":{color:"#6644aa"},"hljs-selector-id":{color:"#6644aa"},"hljs-selector-class":{color:"#6644aa"},"hljs-title":{color:"#bb1166"},"hljs-variable":{color:"#bb1166"},"hljs-deletion":{color:"#bb1166"},"hljs-template-tag":{color:"#bb1166"},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},monokai:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#272822",color:"#ddd"},"hljs-tag":{color:"#f92672"},"hljs-keyword":{color:"#f92672",fontWeight:"bold"},"hljs-selector-tag":{color:"#f92672",fontWeight:"bold"},"hljs-literal":{color:"#f92672",fontWeight:"bold"},"hljs-strong":{color:"#f92672"},"hljs-name":{color:"#f92672"},"hljs-code":{color:"#66d9ef"},"hljs-class .hljs-title":{color:"white"},"hljs-attribute":{color:"#bf79db"},"hljs-symbol":{color:"#bf79db"},"hljs-regexp":{color:"#bf79db"},"hljs-link":{color:"#bf79db"},"hljs-string":{color:"#a6e22e"},"hljs-bullet":{color:"#a6e22e"},"hljs-subst":{color:"#a6e22e"},"hljs-title":{color:"#a6e22e",fontWeight:"bold"},"hljs-section":{color:"#a6e22e",fontWeight:"bold"},"hljs-emphasis":{color:"#a6e22e"},"hljs-type":{color:"#a6e22e",fontWeight:"bold"},"hljs-built_in":{color:"#a6e22e"},"hljs-builtin-name":{color:"#a6e22e"},"hljs-selector-attr":{color:"#a6e22e"},"hljs-selector-pseudo":{color:"#a6e22e"},"hljs-addition":{color:"#a6e22e"},"hljs-variable":{color:"#a6e22e"},"hljs-template-tag":{color:"#a6e22e"},"hljs-template-variable":{color:"#a6e22e"},"hljs-comment":{color:"#75715e"},"hljs-quote":{color:"#75715e"},"hljs-deletion":{color:"#75715e"},"hljs-meta":{color:"#75715e"},"hljs-doctag":{fontWeight:"bold"},"hljs-selector-id":{fontWeight:"bold"}},nord:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#2E3440",color:"#D8DEE9"},"hljs-subst":{color:"#D8DEE9"},"hljs-selector-tag":{color:"#81A1C1"},"hljs-selector-id":{color:"#8FBCBB",fontWeight:"bold"},"hljs-selector-class":{color:"#8FBCBB"},"hljs-selector-attr":{color:"#8FBCBB"},"hljs-selector-pseudo":{color:"#88C0D0"},"hljs-addition":{backgroundColor:"rgba(163, 190, 140, 0.5)"},"hljs-deletion":{backgroundColor:"rgba(191, 97, 106, 0.5)"},"hljs-built_in":{color:"#8FBCBB"},"hljs-type":{color:"#8FBCBB"},"hljs-class":{color:"#8FBCBB"},"hljs-function":{color:"#88C0D0"},"hljs-function > .hljs-title":{color:"#88C0D0"},"hljs-keyword":{color:"#81A1C1"},"hljs-literal":{color:"#81A1C1"},"hljs-symbol":{color:"#81A1C1"},"hljs-number":{color:"#B48EAD"},"hljs-regexp":{color:"#EBCB8B"},"hljs-string":{color:"#A3BE8C"},"hljs-title":{color:"#8FBCBB"},"hljs-params":{color:"#D8DEE9"},"hljs-bullet":{color:"#81A1C1"},"hljs-code":{color:"#8FBCBB"},"hljs-emphasis":{fontStyle:"italic"},"hljs-formula":{color:"#8FBCBB"},"hljs-strong":{fontWeight:"bold"},"hljs-link:hover":{textDecoration:"underline"},"hljs-quote":{color:"#4C566A"},"hljs-comment":{color:"#4C566A"},"hljs-doctag":{color:"#8FBCBB"},"hljs-meta":{color:"#5E81AC"},"hljs-meta-keyword":{color:"#5E81AC"},"hljs-meta-string":{color:"#A3BE8C"},"hljs-attr":{color:"#8FBCBB"},"hljs-attribute":{color:"#D8DEE9"},"hljs-builtin-name":{color:"#81A1C1"},"hljs-name":{color:"#81A1C1"},"hljs-section":{color:"#88C0D0"},"hljs-tag":{color:"#81A1C1"},"hljs-variable":{color:"#D8DEE9"},"hljs-template-variable":{color:"#D8DEE9"},"hljs-template-tag":{color:"#5E81AC"},"abnf .hljs-attribute":{color:"#88C0D0"},"abnf .hljs-symbol":{color:"#EBCB8B"},"apache .hljs-attribute":{color:"#88C0D0"},"apache .hljs-section":{color:"#81A1C1"},"arduino .hljs-built_in":{color:"#88C0D0"},"aspectj .hljs-meta":{color:"#D08770"},"aspectj > .hljs-title":{color:"#88C0D0"},"bnf .hljs-attribute":{color:"#8FBCBB"},"clojure .hljs-name":{color:"#88C0D0"},"clojure .hljs-symbol":{color:"#EBCB8B"},"coq .hljs-built_in":{color:"#88C0D0"},"cpp .hljs-meta-string":{color:"#8FBCBB"},"css .hljs-built_in":{color:"#88C0D0"},"css .hljs-keyword":{color:"#D08770"},"diff .hljs-meta":{color:"#8FBCBB"},"ebnf .hljs-attribute":{color:"#8FBCBB"},"glsl .hljs-built_in":{color:"#88C0D0"},"groovy .hljs-meta:not(:first-child)":{color:"#D08770"},"haxe .hljs-meta":{color:"#D08770"},"java .hljs-meta":{color:"#D08770"},"ldif .hljs-attribute":{color:"#8FBCBB"},"lisp .hljs-name":{color:"#88C0D0"},"lua .hljs-built_in":{color:"#88C0D0"},"moonscript .hljs-built_in":{color:"#88C0D0"},"nginx .hljs-attribute":{color:"#88C0D0"},"nginx .hljs-section":{color:"#5E81AC"},"pf .hljs-built_in":{color:"#88C0D0"},"processing .hljs-built_in":{color:"#88C0D0"},"scss .hljs-keyword":{color:"#81A1C1"},"stylus .hljs-keyword":{color:"#81A1C1"},"swift .hljs-meta":{color:"#D08770"},"vim .hljs-built_in":{color:"#88C0D0",fontStyle:"italic"},"yaml .hljs-meta":{color:"#D08770"}},obsidian:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#282b2e",color:"#e0e2e4"},"hljs-keyword":{color:"#93c763",fontWeight:"bold"},"hljs-selector-tag":{color:"#93c763",fontWeight:"bold"},"hljs-literal":{color:"#93c763",fontWeight:"bold"},"hljs-selector-id":{color:"#93c763"},"hljs-number":{color:"#ffcd22"},"hljs-attribute":{color:"#668bb0"},"hljs-code":{color:"white"},"hljs-class .hljs-title":{color:"white"},"hljs-section":{color:"white",fontWeight:"bold"},"hljs-regexp":{color:"#d39745"},"hljs-link":{color:"#d39745"},"hljs-meta":{color:"#557182"},"hljs-tag":{color:"#8cbbad"},"hljs-name":{color:"#8cbbad",fontWeight:"bold"},"hljs-bullet":{color:"#8cbbad"},"hljs-subst":{color:"#8cbbad"},"hljs-emphasis":{color:"#8cbbad"},"hljs-type":{color:"#8cbbad",fontWeight:"bold"},"hljs-built_in":{color:"#8cbbad"},"hljs-selector-attr":{color:"#8cbbad"},"hljs-selector-pseudo":{color:"#8cbbad"},"hljs-addition":{color:"#8cbbad"},"hljs-variable":{color:"#8cbbad"},"hljs-template-tag":{color:"#8cbbad"},"hljs-template-variable":{color:"#8cbbad"},"hljs-string":{color:"#ec7600"},"hljs-symbol":{color:"#ec7600"},"hljs-comment":{color:"#818e96"},"hljs-quote":{color:"#818e96"},"hljs-deletion":{color:"#818e96"},"hljs-selector-class":{color:"#A082BD"},"hljs-doctag":{fontWeight:"bold"},"hljs-title":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"}},"tomorrow-night":{"hljs-comment":{color:"#969896"},"hljs-quote":{color:"#969896"},"hljs-variable":{color:"#cc6666"},"hljs-template-variable":{color:"#cc6666"},"hljs-tag":{color:"#cc6666"},"hljs-name":{color:"#cc6666"},"hljs-selector-id":{color:"#cc6666"},"hljs-selector-class":{color:"#cc6666"},"hljs-regexp":{color:"#cc6666"},"hljs-deletion":{color:"#cc6666"},"hljs-number":{color:"#de935f"},"hljs-built_in":{color:"#de935f"},"hljs-builtin-name":{color:"#de935f"},"hljs-literal":{color:"#de935f"},"hljs-type":{color:"#de935f"},"hljs-params":{color:"#de935f"},"hljs-meta":{color:"#de935f"},"hljs-link":{color:"#de935f"},"hljs-attribute":{color:"#f0c674"},"hljs-string":{color:"#b5bd68"},"hljs-symbol":{color:"#b5bd68"},"hljs-bullet":{color:"#b5bd68"},"hljs-addition":{color:"#b5bd68"},"hljs-title":{color:"#81a2be"},"hljs-section":{color:"#81a2be"},"hljs-keyword":{color:"#b294bb"},"hljs-selector-tag":{color:"#b294bb"},hljs:{display:"block",overflowX:"auto",background:"#1d1f21",color:"#c5c8c6",padding:"0.5em"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},idea:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#000",background:"#fff"},"hljs-subst":{fontWeight:"normal",color:"#000"},"hljs-title":{fontWeight:"normal",color:"#000"},"hljs-comment":{color:"#808080",fontStyle:"italic"},"hljs-quote":{color:"#808080",fontStyle:"italic"},"hljs-meta":{color:"#808000"},"hljs-tag":{background:"#efefef"},"hljs-section":{fontWeight:"bold",color:"#000080"},"hljs-name":{fontWeight:"bold",color:"#000080"},"hljs-literal":{fontWeight:"bold",color:"#000080"},"hljs-keyword":{fontWeight:"bold",color:"#000080"},"hljs-selector-tag":{fontWeight:"bold",color:"#000080"},"hljs-type":{fontWeight:"bold",color:"#000080"},"hljs-selector-id":{fontWeight:"bold",color:"#000080"},"hljs-selector-class":{fontWeight:"bold",color:"#000080"},"hljs-attribute":{fontWeight:"bold",color:"#0000ff"},"hljs-number":{fontWeight:"normal",color:"#0000ff"},"hljs-regexp":{fontWeight:"normal",color:"#0000ff"},"hljs-link":{fontWeight:"normal",color:"#0000ff"},"hljs-string":{color:"#008000",fontWeight:"bold"},"hljs-symbol":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-bullet":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-formula":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-doctag":{textDecoration:"underline"},"hljs-variable":{color:"#660e7a"},"hljs-template-variable":{color:"#660e7a"},"hljs-addition":{background:"#baeeba"},"hljs-deletion":{background:"#ffc8bd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}}},f9=Wx,m9=({language:t,className:e="",getConfigs:r,syntaxHighlighting:n={},children:a=""})=>{const o=r().syntaxHighlight.theme,{styles:p,defaultStyle:c}=n,d=p?.[o]??c;return u.createElement(Pc,{language:t,className:e,style:d},a)};var g9=Be(5419),y9=Be.n(g9);const xv="Copy code to clipboard",v9=({fileName:t="response.txt",className:e,downloadable:r,getComponent:n,canCopy:a,language:o,children:p})=>{const c=(0,u.useRef)(null),d=n("SyntaxHighlighter",!0),E=x=>{const{target:k,deltaY:P}=x,{scrollHeight:R,offsetHeight:L,scrollTop:V}=k;R>L&&(V===0&&P<0||L+V>=R&&P>0)&&x.preventDefault()};return(0,u.useEffect)((()=>{const x=Array.from(c.current.childNodes).filter((k=>!!k.nodeType&&k.classList.contains("microlight")));return x.forEach((k=>k.addEventListener("mousewheel",E,{passive:!1}))),()=>{x.forEach((k=>k.removeEventListener("mousewheel",E)))}}),[p,e,o]),u.createElement("div",{className:"highlight-code",ref:c},a&&u.createElement("div",{className:"copy-to-clipboard",title:xv,"aria-label":xv},u.createElement(cu.CopyToClipboard,{text:p},u.createElement("button",{"aria-label":xv,title:xv,type:"button"}))),r?u.createElement("button",{className:"download-contents",onClick:()=>{y9()(p,t)}},"Download"):null,u.createElement(d,{language:o,className:Xr()(e,"microlight"),renderPlainText:({children:x,PlainTextViewer:k})=>u.createElement(k,{className:e},x)},p))},b9=({className:t="",children:e})=>u.createElement("pre",{className:Xr()("microlight",t)},e),w9=(t,e)=>({renderPlainText:r,children:n,...a})=>{const o=e.getConfigs().syntaxHighlight.activated,p=e.getComponent("PlainTextViewer");return o||typeof r!="function"?o?u.createElement(t,a,n):u.createElement(p,null,n):r({children:n,PlainTextViewer:p})},E9=()=>({afterLoad:h9,rootInjects:{syntaxHighlighting:{styles:d9,defaultStyle:f9}},components:{SyntaxHighlighter:m9,HighlightCode:v9,PlainTextViewer:b9}}),S9=()=>({wrapComponents:{SyntaxHighlighter:w9}}),Hx=()=>[E9,S9],x9=()=>{const{GIT_DIRTY:t,GIT_COMMIT:e,PACKAGE_VERSION:r,BUILD_TIME:n}={PACKAGE_VERSION:"5.32.14",GIT_COMMIT:"gfefb1df1",GIT_DIRTY:!0,BUILD_TIME:"Tue, 18 Aug 2026 12:11:43 GMT"};Qe.versions=Qe.versions||{},Qe.versions.swaggerUI={version:r,gitRevision:e,gitDirty:t,buildTimestamp:n}},Kx=()=>({afterLoad:x9});var _9=Be(47248),O9=Be.n(_9);const Gx=console.error,k9=t=>e=>{const{getComponent:r,fn:n}=t(),a=r("ErrorBoundary"),o=n.getDisplayName(e);class p extends u.Component{render(){return u.createElement(a,{targetName:o,getComponent:r,fn:n},u.createElement(e,Yr()({},this.props,this.context)))}}var c;return p.displayName=`WithErrorBoundary(${o})`,(c=e).prototype&&c.prototype.isReactComponent&&(p.prototype.mapStateToProps=e.prototype.mapStateToProps),p},Yx=({name:t})=>u.createElement("div",{className:"fallback"},"😱 ",u.createElement("i",null,"Could not render ",t==="t"?"this component":t,", see the console."));class A9 extends u.Component{static defaultProps={targetName:"this component",getComponent:()=>Yx,fn:{componentDidCatch:Gx},children:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}constructor(...e){super(...e),this.state={hasError:!1,error:null}}componentDidCatch(e,r){this.props.fn.componentDidCatch(e,r)}render(){const{getComponent:e,targetName:r,children:n}=this.props;if(this.state.hasError){const a=e("Fallback");return u.createElement(a,{name:r})}return n}}const C9=A9,Xx=({componentList:t=[],fullOverride:e=!1}={})=>({getSystem:r})=>{const n=e?t:["App","BaseLayout","VersionPragmaFilter","InfoContainer","ServersContainer","SchemesContainer","AuthorizeBtnContainer","FilterContainer","Operations","OperationContainer","parameters","responses","OperationServers","Models","ModelWrapper",...t],a=O9()(n,Array(n.length).fill(((o,{fn:p})=>p.withErrorBoundary(o))));return{fn:{componentDidCatch:Gx,withErrorBoundary:k9(r)},components:{ErrorBoundary:C9,Fallback:Yx},wrapComponents:a}};class j9 extends u.Component{getLayout(){const{getComponent:e,layoutSelectors:r}=this.props,n=r.current();return e(n,!0)||(()=>u.createElement("h1",null,' No layout defined for "',n,'" '))}render(){const e=this.getLayout();return u.createElement(e,null)}}const P9=j9;class N9 extends u.Component{close=()=>{let{authActions:e}=this.props;e.showDefinitions(!1)};handleEscKeydown=e=>{e.key==="Escape"&&this.close()};componentDidMount(){document.addEventListener("keydown",this.handleEscKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleEscKeydown)}render(){let{authSelectors:e,authActions:r,getComponent:n,errSelectors:a,specSelectors:o,fn:{AST:p={}}}=this.props,c=e.shownDefinitions();const d=n("auths"),E=n("CloseIcon");return u.createElement("div",{className:"dialog-ux"},u.createElement("div",{className:"backdrop-ux",onClick:this.close}),u.createElement("div",{className:"modal-ux"},u.createElement("div",{className:"modal-dialog-ux"},u.createElement("div",{className:"modal-ux-inner"},u.createElement("div",{className:"modal-ux-header"},u.createElement("h3",null,"Available authorizations"),u.createElement("button",{type:"button",className:"close-modal",onClick:this.close},u.createElement(E,null))),u.createElement("div",{className:"modal-ux-content"},c.valueSeq().map(((x,k)=>u.createElement(d,{key:k,AST:p,definitions:x,getComponent:n,errSelectors:a,authSelectors:e,authActions:r,specSelectors:o}))))))))}}class T9 extends u.Component{render(){let{isAuthorized:e,showPopup:r,onClick:n,getComponent:a}=this.props;const o=a("authorizationPopup",!0),p=a("LockAuthIcon",!0),c=a("UnlockAuthIcon",!0);return u.createElement("div",{className:"auth-wrapper"},u.createElement("button",{className:e?"btn authorize locked":"btn authorize unlocked",onClick:n},u.createElement("span",null,"Authorize"),e?u.createElement(p,null):u.createElement(c,null)),r&&u.createElement(o,null))}}class I9 extends u.Component{render(){const{authActions:e,authSelectors:r,specSelectors:n,getComponent:a}=this.props,o=n.securityDefinitions(),p=r.definitionsToAuthorize(),c=a("authorizeBtn");return o?u.createElement(c,{onClick:()=>e.showDefinitions(p),isAuthorized:!!r.authorized().size,showPopup:!!r.shownDefinitions(),getComponent:a}):null}}class M9 extends u.Component{onClick=e=>{e.stopPropagation();let{onClick:r}=this.props;r&&r()};render(){let{isAuthorized:e,getComponent:r}=this.props;const n=r("LockAuthOperationIcon",!0),a=r("UnlockAuthOperationIcon",!0);return u.createElement("button",{className:"authorization__btn","aria-label":e?"authorization button locked":"authorization button unlocked",onClick:this.onClick},e?u.createElement(n,{className:"locked"}):u.createElement(a,{className:"unlocked"}))}}class R9 extends u.Component{constructor(e,r){super(e,r),this.state={}}onAuthChange=e=>{let{name:r}=e;this.setState({[r]:e})};submitAuth=e=>{e.preventDefault();let{authActions:r}=this.props;r.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:r,definitions:n}=this.props,a=n.keySeq().toArray();this.setState(a.reduce(((o,p)=>(o[p]="",o)),{})),r.logoutWithPersistOption(a)};close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};render(){let{definitions:e,getComponent:r,authSelectors:n,errSelectors:a}=this.props;const o=r("AuthItem"),p=r("oauth2",!0),c=r("Button");let d=n.authorized(),E=e.filter(((P,R)=>!!d.get(R))),x=e.filter((P=>P.get("type")!=="oauth2")),k=e.filter((P=>P.get("type")==="oauth2"));return u.createElement("div",{className:"auth-container"},!!x.size&&u.createElement("form",{onSubmit:this.submitAuth},x.map(((P,R)=>u.createElement(o,{key:R,schema:P,name:R,getComponent:r,onAuthChange:this.onAuthChange,authorized:d,errSelectors:a,authSelectors:n}))).valueSeq().toArray(),u.createElement("div",{className:"auth-btn-wrapper"},x.size===E.size?u.createElement(c,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):u.createElement(c,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),u.createElement(c,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),k&&k.size?u.createElement("div",null,u.createElement("div",{className:"scope-def"},u.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),u.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),e.filter((P=>P.get("type")==="oauth2")).map(((P,R)=>u.createElement("div",{key:R},u.createElement(p,{authorized:d,schema:P,name:R})))).valueSeq().toArray()):null)}}class D9 extends u.Component{render(){let{schema:e,name:r,getComponent:n,onAuthChange:a,authorized:o,errSelectors:p,authSelectors:c}=this.props;const d=n("apiKeyAuth"),E=n("basicAuth");let x;const k=e.get("type");switch(k){case"apiKey":x=u.createElement(d,{key:r,schema:e,name:r,errSelectors:p,authorized:o,getComponent:n,onChange:a,authSelectors:c});break;case"basic":x=u.createElement(E,{key:r,schema:e,name:r,errSelectors:p,authorized:o,getComponent:n,onChange:a,authSelectors:c});break;default:x=u.createElement("div",{key:r},"Unknown security definition type ",k)}return u.createElement("div",{key:`${r}-jump`},x)}}class F9 extends u.Component{render(){let{error:e}=this.props,r=e.get("level"),n=e.get("message"),a=e.get("source");return u.createElement("div",{className:"errors"},u.createElement("b",null,a," ",r),u.createElement("span",null,n))}}class L9 extends u.Component{constructor(e,r){super(e,r);let{name:n,schema:a}=this.props,o=this.getValue();this.state={name:n,schema:a,value:o}}getValue(){let{name:e,authorized:r}=this.props;return r&&r.getIn([e,"value"])}onChange=e=>{let{onChange:r}=this.props,n=e.target.value,a=Object.assign({},this.state,{value:n});this.setState(a),r(a)};render(){let{schema:e,getComponent:r,errSelectors:n,name:a,authSelectors:o}=this.props;const p=r("Input"),c=r("Row"),d=r("Col"),E=r("authError"),x=r("Markdown",!0),k=r("JumpToPath",!0),P=o.selectAuthPath(a);let R=this.getValue(),L=n.allErrors().filter((V=>V.get("authId")===a));return u.createElement("div",null,u.createElement("h4",null,u.createElement("code",null,a||e.get("name"))," (apiKey)",u.createElement(k,{path:P})),R&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(x,{source:e.get("description")})),u.createElement(c,null,u.createElement("p",null,"Name: ",u.createElement("code",null,e.get("name")))),u.createElement(c,null,u.createElement("p",null,"In: ",u.createElement("code",null,e.get("in")))),u.createElement(c,null,u.createElement("label",{htmlFor:"api_key_value"},"Value:"),R?u.createElement("code",null," ****** "):u.createElement(d,null,u.createElement(p,{id:"api_key_value",type:"text",onChange:this.onChange,autoFocus:!0}))),L.valueSeq().map(((V,Q)=>u.createElement(E,{error:V,key:Q}))))}}class $9 extends u.Component{constructor(e,r){super(e,r);let{schema:n,name:a}=this.props,o=this.getValue().username;this.state={name:a,schema:n,value:o?{username:o}:{}}}getValue(){let{authorized:e,name:r}=this.props;return e&&e.getIn([r,"value"])||{}}onChange=e=>{let{onChange:r}=this.props,{value:n,name:a}=e.target,o=this.state.value;o[a]=n,this.setState({value:o}),r(this.state)};render(){let{schema:e,getComponent:r,name:n,errSelectors:a,authSelectors:o}=this.props;const p=r("Input"),c=r("Row"),d=r("Col"),E=r("authError"),x=r("JumpToPath",!0),k=r("Markdown",!0),P=o.selectAuthPath(n);let R=this.getValue().username,L=a.allErrors().filter((V=>V.get("authId")===n));return u.createElement("div",null,u.createElement("h4",null,"Basic authorization",u.createElement(x,{path:P})),R&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(k,{source:e.get("description")})),u.createElement(c,null,u.createElement("label",{htmlFor:"auth_username"},"Username:"),R?u.createElement("code",null," ",R," "):u.createElement(d,null,u.createElement(p,{id:"auth_username",type:"text",required:"required",name:"username",onChange:this.onChange,autoFocus:!0}))),u.createElement(c,null,u.createElement("label",{htmlFor:"auth_password"},"Password:"),R?u.createElement("code",null," ****** "):u.createElement(d,null,u.createElement(p,{id:"auth_password",autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),L.valueSeq().map(((V,Q)=>u.createElement(E,{error:V,key:Q}))))}}function B9(t){const{example:e,showValue:r,getComponent:n}=t,a=n("Markdown",!0),o=n("HighlightCode",!0);return e&&H.Map.isMap(e)?u.createElement("div",{className:"example"},e.get("description")?u.createElement("section",{className:"example__section"},u.createElement("div",{className:"example__section-header"},"Example Description"),u.createElement("p",null,u.createElement(a,{source:e.get("description")}))):null,r&&e.has("value")?u.createElement("section",{className:"example__section"},u.createElement("div",{className:"example__section-header"},"Example Value"),u.createElement(o,null,Gr(e.get("value")))):null):null}class q9 extends u.PureComponent{static defaultProps={examples:(0,H.Map)({}),onSelect:(...e)=>console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...e),currentExampleKey:null,showLabels:!0};_onSelect=(e,{isSyntheticChange:r=!1}={})=>{typeof this.props.onSelect=="function"&&this.props.onSelect(e,{isSyntheticChange:r})};_onDomSelect=e=>{if(typeof this.props.onSelect=="function"){const r=e.target.selectedOptions[0].getAttribute("value");this._onSelect(r,{isSyntheticChange:!1})}};getCurrentExample=()=>{const{examples:e,currentExampleKey:r}=this.props,n=e.get(r),a=e.keySeq().first(),o=e.get(a);return n||o||(0,H.Map)({})};componentDidMount(){const{onSelect:e,examples:r}=this.props;if(typeof e=="function"){const n=r.first(),a=r.keyOf(n);this._onSelect(a,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(e){const{currentExampleKey:r,examples:n}=e;if(n!==this.props.examples&&!n.has(r)){const a=n.first(),o=n.keyOf(a);this._onSelect(o,{isSyntheticChange:!0})}}render(){const{examples:e,currentExampleKey:r,isValueModified:n,isModifiedValueAvailable:a,showLabels:o}=this.props;return u.createElement("div",{className:"examples-select"},o?u.createElement("span",{className:"examples-select__section-label"},"Examples: "):null,u.createElement("select",{className:"examples-select-element",onChange:this._onDomSelect,value:a&&n?"__MODIFIED__VALUE__":r||""},a?u.createElement("option",{value:"__MODIFIED__VALUE__"},"[Modified value]"):null,e.map(((p,c)=>u.createElement("option",{key:c,value:c},H.Map.isMap(p)&&p.get("summary")||c))).valueSeq()))}}const $1=t=>H.List.isList(t)?t:Gr(t);class U9 extends u.PureComponent{static defaultProps={userHasEditedBody:!1,examples:(0,H.Map)({}),currentNamespace:"__DEFAULT__NAMESPACE__",setRetainRequestBodyValueFlag:()=>{},onSelect:(...e)=>console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...e),updateValue:(...e)=>console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...e)};constructor(e){super(e);const r=this._getCurrentExampleValue();this.state={[e.currentNamespace]:(0,H.Map)({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:r,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==r})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}_getStateForCurrentNamespace=()=>{const{currentNamespace:e}=this.props;return(this.state[e]||(0,H.Map)()).toObject()};_setStateForCurrentNamespace=e=>{const{currentNamespace:r}=this.props;return this._setStateForNamespace(r,e)};_setStateForNamespace=(e,r)=>{const n=(this.state[e]||(0,H.Map)()).merge(r);return this.setState({[e]:n})};_isCurrentUserInputSameAsExampleValue=()=>{const{currentUserInputValue:e}=this.props;return this._getCurrentExampleValue()===e};_getValueForExample=(e,r)=>{const{examples:n}=r||this.props;return $1((n||(0,H.Map)({})).getIn([e,"value"]))};_getCurrentExampleValue=e=>{const{currentKey:r}=e||this.props;return this._getValueForExample(r,e||this.props)};_onExamplesSelect=(e,{isSyntheticChange:r}={},...n)=>{const{onSelect:a,updateValue:o,currentUserInputValue:p,userHasEditedBody:c}=this.props,{lastUserEditedValue:d}=this._getStateForCurrentNamespace(),E=this._getValueForExample(e);if(e==="__MODIFIED__VALUE__")return o($1(d)),this._setStateForCurrentNamespace({isModifiedValueSelected:!0});typeof a=="function"&&a(e,{isSyntheticChange:r},...n),this._setStateForCurrentNamespace({lastDownstreamValue:E,isModifiedValueSelected:r&&c||!!p&&p!==E}),r||typeof o=="function"&&o($1(E))};UNSAFE_componentWillReceiveProps(e){const{currentUserInputValue:r,examples:n,onSelect:a,userHasEditedBody:o}=e,{lastUserEditedValue:p,lastDownstreamValue:c}=this._getStateForCurrentNamespace(),d=this._getValueForExample(e.currentKey,e),E=n.filter((x=>H.Map.isMap(x)&&(x.get("value")===r||Gr(x.get("value"))===r)));if(E.size){let x;x=E.has(e.currentKey)?e.currentKey:E.keySeq().first(),a(x,{isSyntheticChange:!0})}else r!==this.props.currentUserInputValue&&r!==p&&r!==c&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(e.currentNamespace,{lastUserEditedValue:e.currentUserInputValue,isModifiedValueSelected:o||r!==d}))}render(){const{currentUserInputValue:e,examples:r,currentKey:n,getComponent:a,userHasEditedBody:o}=this.props,{lastDownstreamValue:p,lastUserEditedValue:c,isModifiedValueSelected:d}=this._getStateForCurrentNamespace(),E=a("ExamplesSelect");return u.createElement(E,{examples:r,currentExampleKey:n,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!c&&c!==p,isValueModified:e!==void 0&&d&&e!==this._getCurrentExampleValue()||o})}}function z9({auth:t,authActions:e,errActions:r,configs:n,authConfigs:a={},currentServer:o}){let{schema:p,scopes:c,name:d,clientId:E}=t,x=p.get("flow"),k=[];switch(x){case"password":return void e.authorizePassword(t);case"application":case"clientCredentials":case"client_credentials":return void e.authorizeApplication(t);case"accessCode":case"authorizationCode":case"authorization_code":k.push("response_type=code");break;case"implicit":k.push("response_type=token")}typeof E=="string"&&k.push("client_id="+encodeURIComponent(E));let P=n.oauth2RedirectUrl;if(P===void 0)return void r.newAuthErr({authId:d,source:"validation",level:"error",message:"oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed."});k.push("redirect_uri="+encodeURIComponent(P));let R=[];if(Array.isArray(c)?R=c:H.default.List.isList(c)&&(R=c.toArray()),R.length>0){let le=a.scopeSeparator||" ";k.push("scope="+encodeURIComponent(R.join(le)))}let L=ko(new Date);if(k.push("state="+encodeURIComponent(L)),a.realm!==void 0&&k.push("realm="+encodeURIComponent(a.realm)),(x==="authorizationCode"||x==="authorization_code"||x==="accessCode")&&a.usePkceWithAuthorizationCodeGrant){const le=(function(){return Ja(Fn()(32).toString("base64"))})(),ve=(function(ce){return Ja(Vo()("sha256").update(ce).digest("base64"))})(le);k.push("code_challenge="+ve),k.push("code_challenge_method=S256"),t.codeVerifier=le}let{additionalQueryStringParams:V}=a;for(let le in V)V[le]!==void 0&&k.push([le,V[le]].map(encodeURIComponent).join("="));const Q=p.get("authorizationUrl");let J;J=o?Ao()(Dr(Q),o,!0).toString():Dr(Q);let re,me=[J,k.join("&")].join(typeof Q!="string"||Q.includes("?")?"&":"?");re=x==="implicit"?e.preAuthorizeImplicit:a.useBasicAuthenticationWithAccessCodeGrant?e.authorizeAccessCodeWithBasicAuthentication:e.authorizeAccessCodeWithFormParams,e.authPopup(me,{auth:t,state:L,redirectUrl:P,callback:re,errCb:r.newAuthErr})}class V9 extends u.Component{constructor(e,r){super(e,r);let{name:n,schema:a,authorized:o,authSelectors:p}=this.props,c=o&&o.get(n),d=p.getConfigs()||{},E=c&&c.get("username")||"",x=c&&c.get("clientId")||d.clientId||"",k=c&&c.get("clientSecret")||d.clientSecret||"",P=c&&c.get("passwordType")||"basic",R=c&&c.get("scopes")||d.scopes||[];typeof R=="string"&&(R=R.split(d.scopeSeparator||" ")),this.state={appName:d.appName,name:n,schema:a,scopes:R,clientId:x,clientSecret:k,username:E,password:"",passwordType:P}}close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};authorize=()=>{let{authActions:e,errActions:r,getConfigs:n,authSelectors:a,oas3Selectors:o}=this.props,p=n(),c=a.getConfigs();r.clear({authId:name,type:"auth",source:"auth"}),z9({auth:this.state,currentServer:o.serverEffectiveValue(o.selectedServer()),authActions:e,errActions:r,configs:p,authConfigs:c})};onScopeChange=e=>{let{target:r}=e,{checked:n}=r,a=r.dataset.value;if(n&&this.state.scopes.indexOf(a)===-1){let o=this.state.scopes.concat([a]);this.setState({scopes:o})}else!n&&this.state.scopes.indexOf(a)>-1&&this.setState({scopes:this.state.scopes.filter((o=>o!==a))})};onInputChange=e=>{let{target:{dataset:{name:r},value:n}}=e,a={[r]:n};this.setState(a)};selectScopes=e=>{e.target.dataset.all?this.setState({scopes:Array.from((this.props.schema.get("allowedScopes")||this.props.schema.get("scopes")).keys())}):this.setState({scopes:[]})};logout=e=>{e.preventDefault();let{authActions:r,errActions:n,name:a}=this.props;n.clear({authId:a,type:"auth",source:"auth"}),r.logoutWithPersistOption([a])};render(){let{schema:e,getComponent:r,authSelectors:n,errSelectors:a,name:o,specSelectors:p}=this.props;const c=r("Input"),d=r("Row"),E=r("Col"),x=r("Button"),k=r("authError"),P=r("JumpToPath",!0),R=r("Markdown",!0),L=r("InitializedInput"),{isOAS3:V}=p;let Q=V()?e.get("openIdConnectUrl"):null;const J="implicit",re="password",me=V()?Q?"authorization_code":"authorizationCode":"accessCode",le=V()?Q?"client_credentials":"clientCredentials":"application",ve=n.selectAuthPath(o);let be=!!(n.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,ce=e.get("flow"),_e=ce===me&&be?ce+" with PKCE":ce,Ae=e.get("allowedScopes")||e.get("scopes"),xe=!!n.authorized().get(o),Oe=a.allErrors().filter((de=>de.get("authId")===o)),je=!Oe.filter((de=>de.get("source")==="validation")).size,G=e.get("description");return u.createElement("div",null,u.createElement("h4",null,o," (OAuth2, ",_e,") ",u.createElement(P,{path:ve})),this.state.appName?u.createElement("h5",null,"Application: ",this.state.appName," "):null,G&&u.createElement(R,{source:e.get("description")}),xe&&u.createElement("h6",null,"Authorized"),Q&&u.createElement("p",null,"OpenID Connect URL: ",u.createElement("code",null,Q)),(ce===J||ce===me)&&u.createElement("p",null,"Authorization URL: ",u.createElement("code",null,e.get("authorizationUrl"))),(ce===re||ce===me||ce===le)&&u.createElement("p",null,"Token URL:",u.createElement("code",null," ",e.get("tokenUrl"))),u.createElement("p",{className:"flow"},"Flow: ",u.createElement("code",null,_e)),ce!==re?null:u.createElement(d,null,u.createElement(d,null,u.createElement("label",{htmlFor:"oauth_username"},"username:"),xe?u.createElement("code",null," ",this.state.username," "):u.createElement(E,{tablet:10,desktop:10},u.createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange,autoFocus:!0}))),u.createElement(d,null,u.createElement("label",{htmlFor:"oauth_password"},"password:"),xe?u.createElement("code",null," ****** "):u.createElement(E,{tablet:10,desktop:10},u.createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),u.createElement(d,null,u.createElement("label",{htmlFor:"password_type"},"Client credentials location:"),xe?u.createElement("code",null," ",this.state.passwordType," "):u.createElement(E,{tablet:10,desktop:10},u.createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},u.createElement("option",{value:"basic"},"Authorization header"),u.createElement("option",{value:"request-body"},"Request body"))))),(ce===le||ce===J||ce===me||ce===re)&&(!xe||xe&&this.state.clientId)&&u.createElement(d,null,u.createElement("label",{htmlFor:`client_id_${ce}`},"client_id:"),xe?u.createElement("code",null," ****** "):u.createElement(E,{tablet:10,desktop:10},u.createElement(L,{id:`client_id_${ce}`,type:"text",required:ce===re,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(ce===le||ce===me||ce===re)&&u.createElement(d,null,u.createElement("label",{htmlFor:`client_secret_${ce}`},"client_secret:"),xe?u.createElement("code",null," ****** "):u.createElement(E,{tablet:10,desktop:10},u.createElement(L,{id:`client_secret_${ce}`,initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!xe&&Ae&&Ae.size?u.createElement("div",{className:"scopes"},u.createElement("h2",null,"Scopes:",u.createElement("a",{onClick:this.selectScopes,"data-all":!0},"select all"),u.createElement("a",{onClick:this.selectScopes},"select none")),Ae.map(((de,Ne)=>u.createElement(d,{key:Ne},u.createElement("div",{className:"checkbox"},u.createElement(c,{"data-value":Ne,id:`${Ne}-${ce}-checkbox-${this.state.name}`,disabled:xe,checked:this.state.scopes.includes(Ne),type:"checkbox",onChange:this.onScopeChange}),u.createElement("label",{htmlFor:`${Ne}-${ce}-checkbox-${this.state.name}`},u.createElement("span",{className:"item"}),u.createElement("div",{className:"text"},u.createElement("p",{className:"name"},Ne),u.createElement("p",{className:"description"},de))))))).valueSeq().toArray()):null,Oe.valueSeq().map(((de,Ne)=>u.createElement(k,{error:de,key:Ne}))),u.createElement("div",{className:"auth-btn-wrapper"},je&&(xe?u.createElement(x,{className:"btn modal-btn auth authorize",onClick:this.logout,"aria-label":"Remove authorization"},"Logout"):u.createElement(x,{className:"btn modal-btn auth authorize",onClick:this.authorize,"aria-label":"Apply given OAuth2 credentials"},"Authorize")),u.createElement(x,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close")))}}class J9 extends u.Component{onClick=()=>{let{specActions:e,path:r,method:n}=this.props;e.clearResponse(r,n),e.clearRequest(r,n)};render(){return u.createElement("button",{className:"btn btn-clear opblock-control__btn",onClick:this.onClick},"Clear")}}const W9=({headers:t})=>u.createElement("div",null,u.createElement("h5",null,"Response headers"),u.createElement("pre",{className:"microlight"},t)),H9=({duration:t})=>u.createElement("div",null,u.createElement("h5",null,"Request duration"),u.createElement("pre",{className:"microlight"},t," ms"));class K9 extends u.Component{shouldComponentUpdate(e){return this.props.response!==e.response||this.props.path!==e.path||this.props.method!==e.method||this.props.displayRequestDuration!==e.displayRequestDuration}render(){const{response:e,getComponent:r,getConfigs:n,displayRequestDuration:a,specSelectors:o,path:p,method:c}=this.props,{showMutatedRequest:d,requestSnippetsEnabled:E}=n(),x=d?o.mutatedRequestFor(p,c):o.requestFor(p,c),k=e.get("status"),P=x.get("url"),R=e.get("headers").toJS(),L=e.get("notDocumented"),V=e.get("error"),Q=e.get("text"),J=e.get("duration"),re=Object.keys(R),me=R["content-type"]||R["Content-Type"],le=r("responseBody"),ve=re.map((xe=>{var Oe=Array.isArray(R[xe])?R[xe].join():R[xe];return u.createElement("span",{className:"headerline",key:xe}," ",xe,": ",Oe," ")})),be=ve.length!==0,ce=r("Markdown",!0),_e=r("RequestSnippets",!0),Ae=r("curl",!0);return u.createElement("div",null,x&&E?u.createElement(_e,{request:x}):u.createElement(Ae,{request:x}),P&&u.createElement("div",null,u.createElement("div",{className:"request-url"},u.createElement("h4",null,"Request URL"),u.createElement("pre",{className:"microlight"},P))),u.createElement("h4",null,"Server response"),u.createElement("table",{className:"responses-table live-responses-table"},u.createElement("thead",null,u.createElement("tr",{className:"responses-header"},u.createElement("td",{className:"col_header response-col_status"},"Code"),u.createElement("td",{className:"col_header response-col_description"},"Details"))),u.createElement("tbody",null,u.createElement("tr",{className:"response"},u.createElement("td",{className:"response-col_status"},k,L?u.createElement("div",{className:"response-undocumented"},u.createElement("i",null," Undocumented ")):null),u.createElement("td",{className:"response-col_description"},V?u.createElement(ce,{source:`${e.get("name")!==""?`${e.get("name")}: `:""}${e.get("message")}`}):null,Q?u.createElement(le,{content:Q,contentType:me,url:P,headers:R,getConfigs:n,getComponent:r}):null,be?u.createElement(W9,{headers:ve}):null,a&&J?u.createElement(H9,{duration:J}):null)))))}}class Qx extends u.Component{constructor(e,r){super(e,r);let{getConfigs:n}=e,{validatorUrl:a}=n();this.state={url:this.getDefinitionUrl(),validatorUrl:a===void 0?"https://validator.swagger.io/validator":a}}getDefinitionUrl=()=>{let{specSelectors:e}=this.props;return new(Ao())(e.url(),Qe.location).toString()};UNSAFE_componentWillReceiveProps(e){let{getConfigs:r}=e,{validatorUrl:n}=r();this.setState({url:this.getDefinitionUrl(),validatorUrl:n===void 0?"https://validator.swagger.io/validator":n})}render(){let{getConfigs:e}=this.props,{spec:r}=e(),n=Dr(this.state.validatorUrl);return typeof r=="object"&&Object.keys(r).length?null:this.state.url&&ta(this.state.validatorUrl)&&ta(this.state.url)?u.createElement("span",{className:"float-right"},u.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${n}/debug?url=${encodeURIComponent(this.state.url)}`},u.createElement(G9,{src:`${n}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class G9 extends u.Component{constructor(e){super(e),this.state={loaded:!1,error:!1}}componentDidMount(){const e=new Image;e.onload=()=>{this.setState({loaded:!0})},e.onerror=()=>{this.setState({error:!0})},e.src=this.props.src}UNSAFE_componentWillReceiveProps(e){if(e.src!==this.props.src){const r=new Image;r.onload=()=>{this.setState({loaded:!0})},r.onerror=()=>{this.setState({error:!0})},r.src=e.src}}render(){return this.state.error?u.createElement("img",{alt:"Error"}):this.state.loaded?u.createElement("img",{src:this.props.src,alt:this.props.alt}):null}}class Y9 extends u.Component{render(){let{specSelectors:e}=this.props;const r=e.taggedOperations();return r.size===0?u.createElement("h3",null," No operations defined in spec!"):u.createElement("div",null,r.map(this.renderOperationTag).valueSeq().toArray(),r.size<1?u.createElement("h3",null," No operations defined in spec! "):null)}renderOperationTag=(e,r)=>{const{specSelectors:n,getComponent:a,oas3Selectors:o,layoutSelectors:p,layoutActions:c,getConfigs:d}=this.props,E=n.validOperationMethods(),x=a("OperationContainer",!0),k=a("OperationTag"),P=e.get("operations");return u.createElement(k,{key:"operation-"+r,tagObj:e,tag:r,oas3Selectors:o,layoutSelectors:p,layoutActions:c,getConfigs:d,getComponent:a,specUrl:n.url()},u.createElement("div",{className:"operation-tag-content"},P.map((R=>{const L=R.get("path"),V=R.get("method"),Q=R.get("specPath");return E.indexOf(V)===-1?null:u.createElement(x,{key:`${L}-${V}`,specPath:Q,op:R,path:L,method:V,tag:r})})).toArray()))}}class X9 extends u.Component{static defaultProps={tagObj:H.default.fromJS({}),tag:""};render(){const{tagObj:e,tag:r,children:n,oas3Selectors:a,layoutSelectors:o,layoutActions:p,getConfigs:c,getComponent:d,specUrl:E}=this.props;let{docExpansion:x,deepLinking:k}=c();const P=d("Collapse"),R=d("Markdown",!0),L=d("DeepLink"),V=d("Link"),Q=d("ArrowUpIcon"),J=d("ArrowDownIcon");let re,me=e.getIn(["tagDetails","description"],null),le=e.getIn(["tagDetails","externalDocs","description"]),ve=e.getIn(["tagDetails","externalDocs","url"]);re=ia(a)&&ia(a.selectedServer)?ba(ve,E,{selectedServer:a.selectedServer()}):ve;let be=["operations-tag",r],ce=o.isShown(be,x==="full"||x==="list");return u.createElement("div",{className:ce?"opblock-tag-section is-open":"opblock-tag-section"},u.createElement("h3",{onClick:()=>p.show(be,!ce),className:me?"opblock-tag":"opblock-tag no-desc",id:be.map((_e=>ms(_e))).join("-"),"data-tag":r,"data-is-open":ce},u.createElement(L,{enabled:k,isShown:ce,path:Jo(r),text:r}),me?u.createElement("small",null,u.createElement(R,{source:me})):u.createElement("small",null),re?u.createElement("div",{className:"info__externaldocs"},u.createElement("small",null,u.createElement(V,{href:Dr(re),onClick:_e=>_e.stopPropagation(),target:"_blank"},le||re))):null,u.createElement("button",{"aria-expanded":ce,className:"expand-operation",title:ce?"Collapse operation":"Expand operation",onClick:()=>p.show(be,!ce)},ce?u.createElement(Q,{className:"arrow"}):u.createElement(J,{className:"arrow"}))),u.createElement(P,{isOpened:ce},n))}}class Q9 extends u.PureComponent{static defaultProps={operation:null,response:null,request:null,specPath:(0,H.List)(),summary:""};render(){let{specPath:e,response:r,request:n,toggleShown:a,onTryoutClick:o,onResetClick:p,onCancelClick:c,onExecute:d,fn:E,getComponent:x,getConfigs:k,specActions:P,specSelectors:R,authActions:L,authSelectors:V,oas3Actions:Q,oas3Selectors:J}=this.props,re=this.props.operation,{deprecated:me,isShown:le,path:ve,method:be,op:ce,tag:_e,operationId:Ae,allowTryItOut:xe,displayRequestDuration:Oe,tryItOutEnabled:je,executeInProgress:G}=re.toObject();const de=ce.get("description"),Ne=ce.get("externalDocs")?.toJS(),Ye=ce.get("schemes")?.toJS(),ht=Ne?ba(Ne.url,R.url(),{selectedServer:J.selectedServer()}):"";let Ct=re.getIn(["op"]),_t=Ct.get("responses"),qt=(function(dr,qr){if(!H.default.Iterable.isIterable(dr))return H.default.List();let en=dr.getIn(Array.isArray(qr)?qr:[qr]);return H.default.List.isList(en)?en:H.default.List()})(Ct,["parameters"]),It=R.operationScheme(ve,be),Ot=["operations",_e,Ae],et=gr(Ct);const Dt=x("responses",!0),or=x("parameters",!0),Ut=x("execute"),pr=x("clear"),W=x("Collapse"),$e=x("Markdown",!0),Je=x("schemes"),Ft=x("OperationServers"),it=x("OperationExt"),bt=x("OperationSummary"),ut=x("Link"),{showExtensions:Xt}=k();if(_t&&r&&r.size>0){let Er=!_t.get(String(r.get("status")))&&!_t.get("default");r=r.set("notDocumented",Er)}let zt=[ve,be];const tr=R.validationErrors([ve,be]);return u.createElement("div",{className:me?"opblock opblock-deprecated":le?`opblock opblock-${be} is-open`:`opblock opblock-${be}`,id:ms(Ot.join("-"))},u.createElement(bt,{operationProps:re,isShown:le,toggleShown:a,getComponent:x,authActions:L,authSelectors:V,specPath:e}),u.createElement(W,{isOpened:le},u.createElement("div",{className:"opblock-body"},Ct&&Ct.size||Ct===null?null:u.createElement(yh,{height:"32px",width:"32px",className:"opblock-loading-animation"}),me&&u.createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),de&&u.createElement("div",{className:"opblock-description-wrapper"},u.createElement("div",{className:"opblock-description"},u.createElement($e,{source:de}))),ht?u.createElement("div",{className:"opblock-external-docs-wrapper"},u.createElement("h4",{className:"opblock-title_normal"},"Find more details"),u.createElement("div",{className:"opblock-external-docs"},Ne.description&&u.createElement("span",{className:"opblock-external-docs__description"},u.createElement($e,{source:Ne.description})),u.createElement(ut,{target:"_blank",className:"opblock-external-docs__link",href:Dr(ht)},ht))):null,Ct&&Ct.size?u.createElement(or,{parameters:qt,specPath:e.push("parameters"),operation:Ct,onChangeKey:zt,onTryoutClick:o,onResetClick:p,onCancelClick:c,tryItOutEnabled:je,allowTryItOut:xe,fn:E,getComponent:x,specActions:P,specSelectors:R,pathMethod:[ve,be],getConfigs:k,oas3Actions:Q,oas3Selectors:J}):null,je?u.createElement(Ft,{getComponent:x,path:ve,method:be,operationServers:Ct.get("servers"),pathServers:R.paths().getIn([ve,"servers"]),getSelectedServer:J.selectedServer,setSelectedServer:Q.setSelectedServer,setServerVariableValue:Q.setServerVariableValue,getServerVariable:J.serverVariableValue,getEffectiveServerValue:J.serverEffectiveValue}):null,je&&xe&&Ye&&Ye.size?u.createElement("div",{className:"opblock-schemes"},u.createElement(Je,{schemes:Ye,path:ve,method:be,specActions:P,currentScheme:It})):null,!je||!xe||tr.length<=0?null:u.createElement("div",{className:"validation-errors errors-wrapper"},"Please correct the following validation errors and try again.",u.createElement("ul",null,tr.map(((Er,dr)=>u.createElement("li",{key:dr}," ",Er," "))))),u.createElement("div",{className:je&&r&&xe?"btn-group":"execute-wrapper"},je&&xe?u.createElement(Ut,{operation:Ct,specActions:P,specSelectors:R,oas3Selectors:J,oas3Actions:Q,path:ve,method:be,onExecute:d,disabled:G}):null,je&&r&&xe?u.createElement(pr,{specActions:P,path:ve,method:be}):null),G?u.createElement("div",{className:"loading-container"},u.createElement("div",{className:"loading"})):null,_t?u.createElement(Dt,{responses:_t,request:n,tryItOutResponse:r,getComponent:x,getConfigs:k,specSelectors:R,oas3Actions:Q,oas3Selectors:J,specActions:P,produces:R.producesOptionsFor([ve,be]),producesValue:R.currentProducesFor([ve,be]),specPath:e.push("responses"),path:ve,method:be,displayRequestDuration:Oe,fn:E}):null,Xt&&et.size?u.createElement(it,{extensions:et,getComponent:x}):null)))}}class Z9 extends u.PureComponent{constructor(e,r){super(e,r);const{tryItOutEnabled:n}=e.getConfigs();this.state={tryItOutEnabled:n,executeInProgress:!1}}static defaultProps={showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1};mapStateToProps(e,r){const{op:n,layoutSelectors:a,getConfigs:o}=r,{docExpansion:p,deepLinking:c,displayOperationId:d,displayRequestDuration:E,supportedSubmitMethods:x}=o(),k=a.showSummary(),P=n.getIn(["operation","__originalOperationId"])||n.getIn(["operation","operationId"])||Df(n.get("operation"),r.path,r.method)||n.get("id"),R=["operations",r.tag,P],L=x.indexOf(r.method)>=0&&(r.allowTryItOut===void 0?r.specSelectors.allowTryItOutFor(r.path,r.method):r.allowTryItOut),V=n.getIn(["operation","security"])||r.specSelectors.security();return{operationId:P,isDeepLinkingEnabled:c,showSummary:k,displayOperationId:d,displayRequestDuration:E,allowTryItOut:L,security:V,isAuthorized:r.authSelectors.isAuthorized(V),isShown:a.isShown(R,p==="full"),jumpToKey:`paths.${r.path}.${r.method}`,response:r.specSelectors.responseFor(r.path,r.method),request:r.specSelectors.requestFor(r.path,r.method)}}componentDidMount(){const{isShown:e}=this.props,r=this.getResolvedSubtree();e&&r===void 0&&this.requestResolvedSubtree()}componentDidUpdate(e){const{response:r,isShown:n}=this.props,a=this.getResolvedSubtree();r!==e.response&&this.setState({executeInProgress:!1}),n&&a===void 0&&this.requestResolvedSubtree()}toggleShown=()=>{let{layoutActions:e,tag:r,operationId:n,isShown:a}=this.props;const o=this.getResolvedSubtree();a||o!==void 0||this.requestResolvedSubtree(),e.show(["operations",r,n],!a)};onCancelClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onTryoutClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onResetClick=e=>{const r=this.props.oas3Selectors.selectDefaultRequestBodyValue(...e),n=this.props.oas3Selectors.requestContentType(...e);if(n==="application/x-www-form-urlencoded"||n==="multipart/form-data"){const a=JSON.parse(r);Object.entries(a).forEach((([o,p])=>{Array.isArray(p)?a[o]=a[o].map((c=>typeof c=="object"?JSON.stringify(c,null,2):c)):typeof p=="object"&&(a[o]=JSON.stringify(a[o],null,2))})),this.props.oas3Actions.setRequestBodyValue({value:(0,H.fromJS)(a),pathMethod:e})}else this.props.oas3Actions.setRequestBodyValue({value:r,pathMethod:e})};onExecute=()=>{this.setState({executeInProgress:!0})};getResolvedSubtree=()=>{const{specSelectors:e,path:r,method:n,specPath:a}=this.props;return a?e.specResolvedSubtree(a.toJS()):e.specResolvedSubtree(["paths",r,n])};requestResolvedSubtree=()=>{const{specActions:e,path:r,method:n,specPath:a}=this.props;return a?e.requestResolvedSubtree(a.toJS()):e.requestResolvedSubtree(["paths",r,n])};render(){let{op:e,tag:r,path:n,method:a,security:o,isAuthorized:p,operationId:c,showSummary:d,isShown:E,jumpToKey:x,allowTryItOut:k,response:P,request:R,displayOperationId:L,displayRequestDuration:V,isDeepLinkingEnabled:Q,specPath:J,specSelectors:re,specActions:me,getComponent:le,getConfigs:ve,layoutSelectors:be,layoutActions:ce,authActions:_e,authSelectors:Ae,oas3Actions:xe,oas3Selectors:Oe,fn:je}=this.props;const G=le("operation"),de=this.getResolvedSubtree()||(0,H.Map)(),Ne=(0,H.fromJS)({op:de,tag:r,path:n,summary:e.getIn(["operation","summary"])||"",deprecated:de.get("deprecated")||e.getIn(["operation","deprecated"])||!1,method:a,security:o,isAuthorized:p,operationId:c,originalOperationId:de.getIn(["operation","__originalOperationId"]),showSummary:d,isShown:E,jumpToKey:x,allowTryItOut:k,request:R,displayOperationId:L,displayRequestDuration:V,isDeepLinkingEnabled:Q,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return u.createElement(G,{operation:Ne,response:P,request:R,isShown:E,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:J,specActions:me,specSelectors:re,oas3Actions:xe,oas3Selectors:Oe,layoutActions:ce,layoutSelectors:be,authActions:_e,authSelectors:Ae,getComponent:le,getConfigs:ve,fn:je})}}var e7=Be(13222),t7=Be.n(e7);class r7 extends u.PureComponent{static defaultProps={operationProps:null,specPath:(0,H.List)(),summary:""};render(){let{isShown:e,toggleShown:r,getComponent:n,authActions:a,authSelectors:o,operationProps:p,specPath:c}=this.props,{summary:d,isAuthorized:E,method:x,op:k,showSummary:P,path:R,operationId:L,originalOperationId:V,displayOperationId:Q}=p.toObject();const J=k.get("summary"),re=p.get("security"),me=n("authorizeOperationBtn",!0),le=n("OperationSummaryMethod"),ve=n("OperationSummaryPath"),be=n("JumpToPath",!0),ce=n("CopyToClipboardBtn",!0),_e=n("ArrowUpIcon"),Ae=n("ArrowDownIcon"),xe=re&&!!re.count(),Oe=xe&&re.size===1&&re.first().isEmpty(),je=!xe||Oe;return u.createElement("div",{className:`opblock-summary opblock-summary-${x}`},u.createElement("button",{"aria-expanded":e,className:"opblock-summary-control",onClick:r},u.createElement(le,{method:x}),u.createElement("div",{className:"opblock-summary-path-description-wrapper"},u.createElement(ve,{getComponent:n,operationProps:p,specPath:c}),P?u.createElement("div",{className:"opblock-summary-description"},t7()(J||d)):null),Q&&(V||L)?u.createElement("span",{className:"opblock-summary-operation-id"},V||L):null),u.createElement(ce,{textToCopy:`${c.get(1)}`}),je?null:u.createElement(me,{isAuthorized:E,onClick:()=>{const G=o.definitionsForRequirements(re);a.showDefinitions(G)}}),u.createElement(be,{path:c}),u.createElement("button",{"aria-label":`${x} ${R.replace(/\//g,"​/")}`,className:"opblock-control-arrow","aria-expanded":e,tabIndex:"-1",onClick:r},e?u.createElement(_e,{className:"arrow"}):u.createElement(Ae,{className:"arrow"})))}}class n7 extends u.PureComponent{static defaultProps={operationProps:null};render(){let{method:e}=this.props;return u.createElement("span",{className:"opblock-summary-method"},e.toUpperCase())}}class a7 extends u.PureComponent{render(){let{getComponent:e,operationProps:r}=this.props,{deprecated:n,isShown:a,path:o,tag:p,operationId:c,isDeepLinkingEnabled:d}=r.toObject();const E=o.split(/(?=\/)/g);for(let k=1;k{let r=e("OperationExtRow");return u.createElement("div",{className:"opblock-section"},u.createElement("div",{className:"opblock-section-header"},u.createElement("h4",null,"Extensions")),u.createElement("div",{className:"table-container"},u.createElement("table",null,u.createElement("thead",null,u.createElement("tr",null,u.createElement("td",{className:"col_header"},"Field"),u.createElement("td",{className:"col_header"},"Value"))),u.createElement("tbody",null,t.entrySeq().map((([n,a])=>u.createElement(r,{key:`${n}-${a}`,xKey:n,xVal:a})))))))},i7=({xKey:t,xVal:e})=>{const r=e?e.toJS?e.toJS():e:null;return u.createElement("tr",null,u.createElement("td",null,t),u.createElement("td",null,JSON.stringify(r)))};function B1(t,e="_"){return t.replace(/[^\w-]/g,e)}class q1 extends u.Component{static defaultProps={tryItOutResponse:null,produces:(0,H.fromJS)(["application/json"]),displayRequestDuration:!1};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);onResponseContentTypeChange=({controlsAcceptHeader:e,value:r})=>{const{oas3Actions:n,path:a,method:o}=this.props;e&&n.setResponseContentType({value:r,path:a,method:o})};render(){let{responses:e,tryItOutResponse:r,getComponent:n,getConfigs:a,specSelectors:o,fn:p,producesValue:c,displayRequestDuration:d,specPath:E,path:x,method:k,oas3Selectors:P,oas3Actions:R}=this.props,L=(function(_e){let Ae=_e.keySeq();return Ae.contains(tn)?tn:Ae.filter((xe=>(xe+"")[0]==="2")).sort().first()})(e);const V=n("contentType"),Q=n("liveResponse"),J=n("response");let re=this.props.produces&&this.props.produces.size?this.props.produces:q1.defaultProps.produces;const me=o.isOAS3()?(function(_e){if(!H.default.OrderedMap.isOrderedMap(_e)||!_e.size)return null;const Ae=_e.find(((je,G)=>G.startsWith("2")&&Object.keys(je.get("content")||{}).length>0)),xe=_e.get("default")||H.default.OrderedMap(),Oe=(xe.get("content")||H.default.OrderedMap()).keySeq().toJS().length?xe:null;return Ae||Oe})(e):null,le=e.filter(((ce,_e)=>!Yt(_e))),ve=B1(`${k}${x}_responses`),be=`${ve}_select`;return le&&le.size?u.createElement("div",{className:"responses-wrapper"},u.createElement("div",{className:"opblock-section-header"},u.createElement("h4",null,"Responses"),o.isOAS3()?null:u.createElement("label",{htmlFor:be},u.createElement("span",null,"Response content type"),u.createElement(V,{value:c,ariaControls:ve,ariaLabel:"Response content type",className:"execute-content-type",contentTypes:re,controlId:be,onChange:this.onChangeProducesWrapper}))),u.createElement("div",{className:"responses-inner"},r?u.createElement("div",null,u.createElement(Q,{response:r,getComponent:n,getConfigs:a,specSelectors:o,path:this.props.path,method:this.props.method,displayRequestDuration:d}),u.createElement("h4",null,"Responses")):null,u.createElement("table",{"aria-live":"polite",className:"responses-table",id:ve,role:"region"},u.createElement("thead",null,u.createElement("tr",{className:"responses-header"},u.createElement("td",{className:"col_header response-col_status"},"Code"),u.createElement("td",{className:"col_header response-col_description"},"Description"),o.isOAS3()?u.createElement("td",{className:"col col_header response-col_links"},"Links"):null)),u.createElement("tbody",null,le.entrySeq().map((([ce,_e])=>{let Ae=r&&r.get("status")==ce?"response_current":"";return u.createElement(J,{key:ce,path:x,method:k,specPath:E.push(ce),isDefault:L===ce,fn:p,className:Ae,code:ce,response:_e,specSelectors:o,controlsAcceptHeader:_e===me,onContentTypeChange:this.onResponseContentTypeChange,contentType:c,getConfigs:a,activeExamplesKey:P.activeExamplesMember(x,k,"responses",ce),oas3Actions:R,getComponent:n})})).toArray())))):null}}function _v(t){return(function(n){try{return!!JSON.parse(n)}catch{return null}})(t)?"json":null}class s7 extends u.Component{constructor(e,r){super(e,r),this.state={responseContentType:""}}static defaultProps={response:(0,H.fromJS)({}),onContentTypeChange:()=>{}};_onContentTypeChange=e=>{const{onContentTypeChange:r,controlsAcceptHeader:n}=this.props;this.setState({responseContentType:e}),r({value:e,controlsAcceptHeader:n})};getTargetExamplesKey=()=>{const{response:e,contentType:r,activeExamplesKey:n}=this.props,a=this.state.responseContentType||r,o=e.getIn(["content",a],(0,H.Map)({})).get("examples",null).keySeq().first();return n||o};render(){let{path:e,method:r,code:n,response:a,className:o,specPath:p,fn:c,getComponent:d,getConfigs:E,specSelectors:x,contentType:k,controlsAcceptHeader:P,oas3Actions:R}=this.props,{inferSchema:L,getSampleSchema:V}=c,Q=x.isOAS3();const{showExtensions:J}=E();let re=J?gr(a):null,me=a.get("headers"),le=a.get("links");const ve=d("ResponseExtension"),be=d("headers"),ce=d("HighlightCode",!0),_e=d("modelExample"),Ae=d("Markdown",!0),xe=d("operationLink"),Oe=d("contentType"),je=d("ExamplesSelect"),G=d("Example");var de,Ne;const Ye=this.state.responseContentType||k,ht=a.getIn(["content",Ye],(0,H.Map)({})),Ct=ht.get("examples",null);if(Q){const Dt=ht.get("schema");de=Dt?L(Dt.toJS()):null,Ne=Dt?p.push("content",this.state.responseContentType,"schema"):p}else de=a.get("schema"),Ne=a.has("schema")?p.push("schema"):p;let _t,qt,It=!1,Ot={includeReadOnly:!0};if(Q)if(qt=ht.get("schema")?.toJS(),H.Map.isMap(Ct)&&!Ct.isEmpty()){const Dt=this.getTargetExamplesKey(),or=Ut=>H.Map.isMap(Ut)?Ut.get("value"):void 0;_t=or(Ct.get(Dt,(0,H.Map)({}))),_t===void 0&&(_t=or(Ct.values().next().value)),It=!0}else ht.get("example")!==void 0&&(_t=ht.get("example"),It=!0);else{qt=de,Ot={...Ot,includeWriteOnly:!0};const Dt=a.getIn(["examples",Ye]);Dt&&(_t=Dt,It=!0)}const et=((Dt,or)=>{if(Dt==null)return null;const Ut=_v(Dt)?"json":null;return u.createElement("div",null,u.createElement(or,{className:"example",language:Ut},Gr(Dt)))})(V(qt,Ye,Ot,It?_t:void 0),ce);return u.createElement("tr",{className:"response "+(o||""),"data-code":n},u.createElement("td",{className:"response-col_status"},n),u.createElement("td",{className:"response-col_description"},u.createElement("div",{className:"response-col_description__inner"},u.createElement(Ae,{source:a.get("description")})),J&&re.size?re.entrySeq().map((([Dt,or])=>u.createElement(ve,{key:`${Dt}-${or}`,xKey:Dt,xVal:or}))):null,Q&&a.get("content")?u.createElement("section",{className:"response-controls"},u.createElement("div",{className:Xr()("response-control-media-type",{"response-control-media-type--accept-controller":P})},u.createElement("small",{className:"response-control-media-type__title"},"Media type"),u.createElement(Oe,{value:this.state.responseContentType,contentTypes:a.get("content")?a.get("content").keySeq():(0,H.Seq)(),onChange:this._onContentTypeChange,ariaLabel:"Media Type"}),P?u.createElement("small",{className:"response-control-media-type__accept-message"},"Controls ",u.createElement("code",null,"Accept")," header."):null),H.Map.isMap(Ct)&&!Ct.isEmpty()?u.createElement("div",{className:"response-control-examples"},u.createElement("small",{className:"response-control-examples__title"},"Examples"),u.createElement(je,{examples:Ct,currentExampleKey:this.getTargetExamplesKey(),onSelect:Dt=>R.setActiveExamplesMember({name:Dt,pathMethod:[e,r],contextType:"responses",contextName:n}),showLabels:!1})):null):null,et||de?u.createElement(_e,{specPath:Ne,getComponent:d,getConfigs:E,specSelectors:x,schema:nn(de),example:et,includeReadOnly:!0}):null,Q&&Ct?u.createElement(G,{example:Ct.get(this.getTargetExamplesKey(),(0,H.Map)({})),getComponent:d,getConfigs:E,omitValue:!0}):null,me?u.createElement(be,{headers:me,getComponent:d}):null),Q?u.createElement("td",{className:"response-col_links"},le?le.toSeq().entrySeq().map((([Dt,or])=>u.createElement(xe,{key:Dt,name:Dt,link:or,getComponent:d}))):u.createElement("i",null,"No links")):null)}}const l7=({xKey:t,xVal:e})=>u.createElement("div",{className:"response__extension"},t,": ",String(e));var c7=Be(26657),u7=Be.n(c7),p7=Be(80218),Zx=Be.n(p7);class h7 extends u.PureComponent{state={parsedContent:null};updateParsedContent=e=>{const{content:r}=this.props;if(e!==r)if(r&&r instanceof Blob){var n=new FileReader;n.onload=()=>{this.setState({parsedContent:n.result})},n.readAsText(r)}else this.setState({parsedContent:r.toString()})};componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(e){this.updateParsedContent(e.content)}render(){let{content:e,contentType:r,url:n,headers:a={},getComponent:o}=this.props;const{parsedContent:p}=this.state,c=o("HighlightCode",!0),d="response_"+new Date().getTime();let E,x;if(n=n||"",(/^application\/octet-stream/i.test(r)||a["Content-Disposition"]&&/attachment/i.test(a["Content-Disposition"])||a["content-disposition"]&&/attachment/i.test(a["content-disposition"])||a["Content-Description"]&&/File Transfer/i.test(a["Content-Description"])||a["content-description"]&&/File Transfer/i.test(a["content-description"]))&&(e.size>0||e.length>0))if("Blob"in window){let k=r||"text/html",P=e instanceof Blob?e:new Blob([e],{type:k}),R=window.URL.createObjectURL(P),L=[k,n.substr(n.lastIndexOf("/")+1),R].join(":"),V=a["content-disposition"]||a["Content-Disposition"];if(V!==void 0){let Q=(function(re){let me;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some((le=>(me=le.exec(re),me!==null))),me!==null&&me.length>1)try{return decodeURIComponent(me[1])}catch(le){console.error(le)}return null})(V);Q!==null&&(L=Q)}x=Qe.navigator&&Qe.navigator.msSaveOrOpenBlob?u.createElement("div",null,u.createElement("a",{href:R,onClick:()=>Qe.navigator.msSaveOrOpenBlob(P,L)},"Download file")):u.createElement("div",null,u.createElement("a",{href:R,download:L},"Download file"))}else x=u.createElement("pre",{className:"microlight"},"Download headers detected but your browser does not support downloading binary via XHR (Blob).");else if(/json/i.test(r)){let k=null;_v(e)&&(k="json");try{E=JSON.stringify(JSON.parse(e),null," ")}catch{E=`can't parse JSON. Raw result: + +`+e}x=u.createElement(c,{language:k,downloadable:!0,fileName:`${d}.json`,canCopy:!0},E)}else/xml/i.test(r)?(E=u7()(e,{textNodesOnSameLine:!0,indentor:" "}),x=u.createElement(c,{downloadable:!0,fileName:`${d}.xml`,canCopy:!0},E)):x=Zx()(r)==="text/html"||/text\/plain/.test(r)?u.createElement(c,{downloadable:!0,fileName:`${d}.html`,canCopy:!0},e):Zx()(r)==="text/csv"||/text\/csv/.test(r)?u.createElement(c,{downloadable:!0,fileName:`${d}.csv`,canCopy:!0},e):/^image\//i.test(r)?r.includes("svg")?u.createElement("div",null," ",e," "):u.createElement("img",{src:window.URL.createObjectURL(e)}):/^audio\//i.test(r)?u.createElement("pre",{className:"microlight"},u.createElement("audio",{controls:!0,key:n},u.createElement("source",{src:n,type:r}))):typeof e=="string"?u.createElement(c,{downloadable:!0,fileName:`${d}.txt`,canCopy:!0},e):e.size>0?p?u.createElement("div",null,u.createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),u.createElement(c,{downloadable:!0,fileName:`${d}.txt`,canCopy:!0},p)):u.createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return x?u.createElement("div",null,u.createElement("h5",null,"Response body"),x):null}}class d7 extends u.Component{constructor(e){super(e),this.state={callbackVisible:!1,parametersVisible:!0}}static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]};onChange=(e,r,n)=>{let{specActions:{changeParamByIdentity:a},onChangeKey:o}=this.props;a(o,e,r,n)};onChangeConsumesWrapper=e=>{let{specActions:{changeConsumesValue:r},onChangeKey:n}=this.props;r(n,e)};toggleTab=e=>e==="parameters"?this.setState({parametersVisible:!0,callbackVisible:!1}):e==="callbacks"?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0;onChangeMediaType=({value:e,pathMethod:r})=>{let{specActions:n,oas3Selectors:a,oas3Actions:o}=this.props;const p=a.hasUserEditedBody(...r),c=a.shouldRetainRequestBodyValue(...r);o.setRequestContentType({value:e,pathMethod:r}),o.initRequestBodyValidateError({pathMethod:r}),p||(c||o.setRequestBodyValue({value:void 0,pathMethod:r}),n.clearResponse(...r),n.clearRequest(...r),n.clearValidateParams(r))};render(){let{onTryoutClick:e,onResetClick:r,parameters:n,allowTryItOut:a,tryItOutEnabled:o,specPath:p,fn:c,getComponent:d,getConfigs:E,specSelectors:x,specActions:k,pathMethod:P,oas3Actions:R,oas3Selectors:L,operation:V}=this.props;const Q=d("parameterRow"),J=d("TryItOutButton"),re=d("contentType"),me=d("Callbacks",!0),le=d("RequestBody",!0),ve=o&&a,be=x.isOAS3(),ce=`${B1(`${P[1]}${P[0]}_requests`)}_select`,_e=V.get("requestBody"),Ae=Object.values(n.reduce(((xe,Oe)=>{if(H.Map.isMap(Oe)){const je=Oe.get("in");xe[je]??=[],xe[je].push(Oe)}return xe}),{})).reduce(((xe,Oe)=>xe.concat(Oe)),[]);return u.createElement("div",{className:"opblock-section"},u.createElement("div",{className:"opblock-section-header"},be?u.createElement("div",{className:"tab-header"},u.createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},u.createElement("h4",{className:"opblock-title"},u.createElement("span",null,"Parameters"))),V.get("callbacks")?u.createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},u.createElement("h4",{className:"opblock-title"},u.createElement("span",null,"Callbacks"))):null):u.createElement("div",{className:"tab-header"},u.createElement("h4",{className:"opblock-title"},"Parameters")),a?u.createElement(J,{isOAS3:x.isOAS3(),hasUserEditedBody:L.hasUserEditedBody(...P),enabled:o,onCancelClick:this.props.onCancelClick,onTryoutClick:e,onResetClick:()=>r(P)}):null),this.state.parametersVisible?u.createElement("div",{className:"parameters-container"},Ae.length?u.createElement("div",{className:"table-container"},u.createElement("table",{className:"parameters"},u.createElement("thead",null,u.createElement("tr",null,u.createElement("th",{className:"col_header parameters-col_name"},"Name"),u.createElement("th",{className:"col_header parameters-col_description"},"Description"))),u.createElement("tbody",null,Ae.map(((xe,Oe)=>u.createElement(Q,{fn:c,specPath:p.push(Oe.toString()),getComponent:d,getConfigs:E,rawParam:xe,param:x.parameterWithMetaByIdentity(P,xe),key:`${xe.get("in")}.${xe.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:x,specActions:k,oas3Actions:R,oas3Selectors:L,pathMethod:P,isExecute:ve})))))):u.createElement("div",{className:"opblock-description-wrapper"},u.createElement("p",null,"No parameters"))):null,this.state.callbackVisible?u.createElement("div",{className:"callbacks-container opblock-description-wrapper"},u.createElement(me,{callbacks:(0,H.Map)(V.get("callbacks")),specPath:p.slice(0,-1).push("callbacks")})):null,be&&_e&&this.state.parametersVisible&&u.createElement("div",{className:"opblock-section opblock-section-request-body"},u.createElement("div",{className:"opblock-section-header"},u.createElement("h4",{className:`opblock-title parameter__name ${_e.get("required")&&"required"}`},"Request body"),u.createElement("label",{id:ce},u.createElement(re,{value:L.requestContentType(...P),contentTypes:_e.get("content",(0,H.List)()).keySeq(),onChange:xe=>{this.onChangeMediaType({value:xe,pathMethod:P})},className:"body-param-content-type",ariaLabel:"Request content type",controlId:ce}))),u.createElement("div",{className:"opblock-description-wrapper"},u.createElement(le,{setRetainRequestBodyValueFlag:xe=>R.setRetainRequestBodyValueFlag({value:xe,pathMethod:P}),userHasEditedBody:L.hasUserEditedBody(...P),specPath:p.slice(0,-1).push("requestBody"),requestBody:_e,requestBodyValue:L.requestBodyValue(...P),requestBodyInclusionSetting:L.requestBodyInclusionSetting(...P),requestBodyErrors:L.requestBodyErrors(...P),isExecute:ve,getConfigs:E,activeExamplesKey:L.activeExamplesMember(...P,"requestBody","requestBody"),updateActiveExamplesKey:xe=>{this.props.oas3Actions.setActiveExamplesMember({name:xe,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(xe,Oe)=>{if(Oe){const je=L.requestBodyValue(...P),G=H.Map.isMap(je)?je:(0,H.Map)();return R.setRequestBodyValue({pathMethod:P,value:G.setIn(Oe,xe)})}R.setRequestBodyValue({value:xe,pathMethod:P})},onChangeIncludeEmpty:(xe,Oe)=>{R.setRequestBodyInclusion({pathMethod:P,value:Oe,name:xe})},contentType:L.requestContentType(...P)}))))}}const f7=({xKey:t,xVal:e})=>u.createElement("div",{className:"parameter__extension"},t,": ",String(e)),m7={onChange:()=>{},isIncludedOptions:{}};class g7 extends u.Component{static defaultProps=m7;componentDidMount(){const{isIncludedOptions:e,onChange:r}=this.props,{shouldDispatchInit:n,defaultValue:a}=e;n&&r(a)}onCheckboxChange=e=>{const{onChange:r}=this.props;r(e.target.checked)};render(){let{isIncluded:e,isDisabled:r}=this.props;return u.createElement("div",null,u.createElement("label",{htmlFor:"include_empty_value",className:Xr()("parameter__empty_value_toggle",{disabled:r})},u.createElement("input",{id:"include_empty_value",type:"checkbox",disabled:r,checked:!r&&e,onChange:this.onCheckboxChange}),"Send empty value"))}}const U1=t=>{if(H.List.isList(t))return t;if(typeof t!="string")return null;try{const e=JSON.parse(t);return Array.isArray(e)?(0,H.List)(e):null}catch{return null}};class y7 extends u.Component{constructor(e,r){super(e,r),this.setDefaultValue()}UNSAFE_componentWillReceiveProps(e){let r,{specSelectors:n,pathMethod:a,rawParam:o}=e,p=n.isOAS3(),c=n.parameterWithMetaByIdentity(a,o)||new H.Map;if(c=c.isEmpty()?o:c,p){let{schema:x}=sr(c,{isOAS3:p});r=x?x.get("enum"):void 0}else r=c?c.get("enum"):void 0;let d,E=c?c.get("value"):void 0;E!==void 0?d=E:o.get("required")&&r&&r.size&&(d=r.first()),d!==void 0&&d!==E&&this.onChangeWrapper((function(k){return typeof k=="number"?k.toString():k})(d)),this.setDefaultValue()}onChangeWrapper=(e,r=!1)=>{let n,{onChange:a,rawParam:o}=this.props;return n=e===""||e&&e.size===0?null:e,a(o,n,r)};_onExampleSelect=e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})};onChangeIncludeEmpty=e=>{let{specActions:r,param:n,pathMethod:a}=this.props;const o=n.get("name"),p=n.get("in");return r.updateEmptyParamInclusion(a,o,p,e)};setDefaultValue=()=>{let{specSelectors:e,pathMethod:r,rawParam:n,oas3Selectors:a,fn:o}=this.props;const p=e.isOAS3(),c=e.parameterWithMetaByIdentity(r,n)||(0,H.Map)();let{schema:d}=sr(c,{isOAS3:p});const E=c.get("content",(0,H.Map)()).keySeq().first(),x=d?o.getSampleSchema(d.toJS(),E,{includeWriteOnly:!0}):null;if(c&&c.get("value")===void 0&&c.get("in")!=="body"){let k;if(e.isSwagger2())k=c.get("x-example")!==void 0?c.get("x-example"):c.getIn(["schema","example"])!==void 0?c.getIn(["schema","example"]):d&&d.getIn(["default"]);else if(p){d=this.composeJsonSchema(d);const V=a.activeExamplesMember(...r,"parameters",this.getParamKey());k=c.getIn(["examples",V,"value"])!==void 0?c.getIn(["examples",V,"value"]):c.getIn(["content",E,"example"])!==void 0?c.getIn(["content",E,"example"]):c.get("example")!==void 0?c.get("example"):(d&&d.get("example"))!==void 0?d&&d.get("example"):(d&&d.get("default"))!==void 0?d&&d.get("default"):c.get("default")}k===void 0||H.List.isList(k)||(k=Gr(k));const P=o.getSchemaObjectType(d),R=o.getSchemaObjectType(d?.get("items")),L=H.List.isList(d?.get("type"));if(p&&P==="array"&&!L&&k!==void 0){const V=U1(k);return void this.onChangeWrapper(V)}if(k!==void 0)this.onChangeWrapper(k);else if(P==="object"&&x&&!c.get("examples"))this.onChangeWrapper(H.List.isList(x)?x:Gr(x));else if(P==="array"&&R==="object"&&x&&!c.get("examples")){const V=U1(x);this.onChangeWrapper(V)}}};onExampleValueUpdate=e=>{const{specSelectors:r,pathMethod:n,rawParam:a,fn:o}=this.props,p=r.parameterWithMetaByIdentity(n,a)||(0,H.Map)();let{schema:c}=sr(p,{isOAS3:!0});c&&(c=this.composeJsonSchema(c));const d=o.getSchemaObjectType(c),E=H.List.isList(c?.get("type"));if(d!=="array"||E)this.onChangeWrapper(e);else{const x=U1(e);this.onChangeWrapper(x)}};getParamKey(){const{param:e}=this.props;return e?`${e.get("name")}-${e.get("in")}`:null}composeJsonSchema(e){const{fn:r}=this.props,n=e.get("oneOf")?.get(0)?.toJS(),a=e.get("anyOf")?.get(0)?.toJS();return(0,H.fromJS)(r.mergeJsonSchema(e.toJS(),n??a??{}))}render(){let{param:e,rawParam:r,getComponent:n,getConfigs:a,isExecute:o,fn:p,onChangeConsumes:c,specSelectors:d,pathMethod:E,specPath:x,oas3Selectors:k}=this.props,P=d.isOAS3();const{showExtensions:R,showCommonExtensions:L}=a();if(e||(e=r),!r)return null;const V=n("JsonSchemaForm"),Q=n("ParamBody");let J=e.get("in"),re=J!=="body"?null:u.createElement(Q,{getComponent:n,getConfigs:a,fn:p,param:e,consumes:d.consumesOptionsFor(E),consumesValue:d.contentTypeValues(E).get("requestContentType"),onChange:this.onChangeWrapper,onChangeConsumes:c,isExecute:o,specSelectors:d,pathMethod:E});const me=n("modelExample"),le=n("Markdown",!0),ve=n("ParameterExt"),be=n("ParameterIncludeEmpty"),ce=n("ExamplesSelectValueRetainer"),_e=n("Example");let{schema:Ae}=sr(e,{isOAS3:P}),xe=d.parameterWithMetaByIdentity(E,r)||(0,H.Map)();const Oe=xe.get("content",(0,H.Map)()).keySeq().first();P&&(Ae=this.composeJsonSchema(Ae));let je=Ae?Ae.get("format"):null,G=J==="formData",de="FormData"in Qe,Ne=e.get("required");const Ye=p.getSchemaObjectType(Ae),ht=p.getSchemaObjectType(Ae?.get("items")),Ct=p.getSchemaObjectTypeLabel(Ae),_t=!re&&Ye==="object",qt=!re&&ht==="object";let It,Ot,et,Dt,or=xe?xe.get("value"):"",Ut=L?mr(Ae):null,pr=R?gr(e):null,W=!1;e!==void 0&&Ae&&(It=Ae.get("items")),It!==void 0?(Ot=It.get("enum"),et=It.get("default")):Ae&&(Ot=Ae.get("enum")),Ot&&Ot.size&&Ot.size>0&&(W=!0),e!==void 0&&(Ae&&(et=Ae.get("default")),et===void 0&&(et=e.get("default")),Dt=e.get("example"),Dt===void 0&&(Dt=e.get("x-example")));const $e=re?null:u.createElement(V,{fn:p,getComponent:n,value:or,required:Ne,disabled:!o,description:e.get("name"),onChange:this.onChangeWrapper,errors:xe.get("errors"),schema:Ae});return u.createElement("tr",{"data-param-name":e.get("name"),"data-param-in":e.get("in")},u.createElement("td",{className:"parameters-col_name"},u.createElement("div",{className:Ne?"parameter__name required":"parameter__name"},e.get("name"),Ne?u.createElement("span",null," *"):null),u.createElement("div",{className:"parameter__type"},Ct,je&&u.createElement("span",{className:"prop-format"},"($",je,")")),u.createElement("div",{className:"parameter__deprecated"},P&&e.get("deprecated")?"deprecated":null),u.createElement("div",{className:"parameter__in"},"(",e.get("in"),")")),u.createElement("td",{className:"parameters-col_description"},e.get("description")?u.createElement(le,{source:e.get("description")}):null,!re&&o||!W?null:u.createElement(le,{className:"parameter__enum",source:"Available values : "+Ot.map((function(Je){return Je})).toArray().map(String).join(", ")}),!re&&o||et===void 0?null:u.createElement(le,{className:"parameter__default",source:"Default value : "+et}),!re&&o||Dt===void 0?null:u.createElement(le,{source:"Example : "+Dt}),G&&!de&&u.createElement("div",null,"Error: your browser does not support FormData"),P&&e.get("examples")?u.createElement("section",{className:"parameter-controls"},u.createElement(ce,{examples:e.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onExampleValueUpdate,getComponent:n,defaultToFirstExample:!0,currentKey:k.activeExamplesMember(...E,"parameters",this.getParamKey()),currentUserInputValue:or})):null,_t||qt?u.createElement(me,{getComponent:n,specPath:Oe?x.push("content",Oe,"schema"):x.push("schema"),getConfigs:a,isExecute:o,specSelectors:d,schema:Ae,example:$e}):$e,re&&Ae?u.createElement(me,{getComponent:n,specPath:x.push("schema"),getConfigs:a,isExecute:o,specSelectors:d,schema:Ae,example:re,includeWriteOnly:!0}):null,!re&&o&&e.get("allowEmptyValue")?u.createElement(be,{onChange:this.onChangeIncludeEmpty,isIncluded:d.parameterInclusionSettingFor(E,e.get("name"),e.get("in")),isDisabled:!Wa(or)}):null,P&&e.get("examples")?u.createElement(_e,{example:e.getIn(["examples",k.activeExamplesMember(...E,"parameters",this.getParamKey())]),getComponent:n,getConfigs:a}):null,L&&Ut.size?Ut.entrySeq().map((([Je,Ft])=>u.createElement(ve,{key:`${Je}-${Ft}`,xKey:Je,xVal:Ft}))):null,R&&pr.size?pr.entrySeq().map((([Je,Ft])=>u.createElement(ve,{key:`${Je}-${Ft}`,xKey:Je,xVal:Ft}))):null))}}class v7 extends u.Component{handleValidateParameters=()=>{let{specSelectors:e,specActions:r,path:n,method:a}=this.props;return r.validateParams([n,a]),e.validateBeforeExecute([n,a])};handleValidateRequestBody=()=>{let{path:e,method:r,specSelectors:n,oas3Selectors:a,oas3Actions:o}=this.props,p={missingBodyValue:!1,missingRequiredKeys:[]};o.clearRequestBodyValidateError({path:e,method:r});let c=n.getOAS3RequiredRequestBodyContentType([e,r]),d=a.requestBodyValue(e,r),E=a.validateBeforeExecute([e,r]),x=a.requestContentType(e,r);if(!E)return p.missingBodyValue=!0,o.setRequestBodyValidateError({path:e,method:r,validationErrors:p}),!1;if(!c)return!0;let k=a.validateShallowRequired({oas3RequiredRequestBodyContentType:c,oas3RequestContentType:x,oas3RequestBodyValue:d});return!k||k.length<1||(k.forEach((P=>{p.missingRequiredKeys.push(P)})),o.setRequestBodyValidateError({path:e,method:r,validationErrors:p}),!1)};handleValidationResultPass=()=>{let{specActions:e,operation:r,path:n,method:a}=this.props;this.props.onExecute&&this.props.onExecute(),e.execute({operation:r,path:n,method:a})};handleValidationResultFail=()=>{let{specActions:e,path:r,method:n}=this.props;e.clearValidateParams([r,n]),setTimeout((()=>{e.validateParams([r,n])}),40)};handleValidationResult=e=>{e?this.handleValidationResultPass():this.handleValidationResultFail()};onClick=()=>{let e=this.handleValidateParameters(),r=this.handleValidateRequestBody(),n=e&&r;this.handleValidationResult(n)};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);render(){const{disabled:e}=this.props;return u.createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:e},"Execute")}}class b7 extends u.Component{render(){let{headers:e,getComponent:r}=this.props;const n=r("Property"),a=r("Markdown",!0);return e&&e.size?u.createElement("div",{className:"headers-wrapper"},u.createElement("h4",{className:"headers__title"},"Headers:"),u.createElement("table",{className:"headers"},u.createElement("thead",null,u.createElement("tr",{className:"header-row"},u.createElement("th",{className:"header-col"},"Name"),u.createElement("th",{className:"header-col"},"Description"),u.createElement("th",{className:"header-col"},"Type"))),u.createElement("tbody",null,e.entrySeq().map((([o,p])=>{if(!H.default.Map.isMap(p))return null;const c=p.get("description"),d=p.getIn(["schema"])?p.getIn(["schema","type"]):p.getIn(["type"]),E=p.getIn(["schema","example"]);return u.createElement("tr",{key:o},u.createElement("td",{className:"header-col"},o),u.createElement("td",{className:"header-col"},c?u.createElement(a,{source:c}):null),u.createElement("td",{className:"header-col"},d," ",E?u.createElement(n,{propKey:"Example",propVal:E,propClass:"header-example"}):null))})).toArray()))):null}}class w7 extends u.Component{render(){let{editorActions:e,errSelectors:r,layoutSelectors:n,layoutActions:a,getComponent:o}=this.props;const p=o("Collapse");if(e&&e.jumpToLine)var c=e.jumpToLine;let d=r.allErrors().filter((k=>k.get("type")==="thrown"||k.get("level")==="error"));if(!d||d.count()<1)return null;let E=n.isShown(["errorPane"],!0),x=d.sortBy((k=>k.get("line")));return u.createElement("pre",{className:"errors-wrapper"},u.createElement("hgroup",{className:"error"},u.createElement("h4",{className:"errors__title"},"Errors"),u.createElement("button",{className:"btn errors__clear-btn",onClick:()=>a.show(["errorPane"],!E)},E?"Hide":"Show")),u.createElement(p,{isOpened:E,animated:!0},u.createElement("div",{className:"errors"},x.map(((k,P)=>{let R=k.get("type");return R==="thrown"||R==="auth"?u.createElement(E7,{key:P,error:k.get("error")||k,jumpToLine:c}):R==="spec"?u.createElement(S7,{key:P,error:k,jumpToLine:c}):void 0})))))}}const E7=({error:t,jumpToLine:e})=>{if(!t)return null;let r=t.get("line");return u.createElement("div",{className:"error-wrapper"},t?u.createElement("div",null,u.createElement("h4",null,t.get("source")&&t.get("level")?e_(t.get("source"))+" "+t.get("level"):"",t.get("path")?u.createElement("small",null," at ",t.get("path")):null),u.createElement("span",{className:"message thrown"},t.get("message")),u.createElement("div",{className:"error-line"},r&&e?u.createElement("a",{onClick:e.bind(null,r)},"Jump to line ",r):null)):null)},S7=({error:t,jumpToLine:e=null})=>{let r=null;return t.get("path")?r=H.List.isList(t.get("path"))?u.createElement("small",null,"at ",t.get("path").join(".")):u.createElement("small",null,"at ",t.get("path")):t.get("line")&&!e&&(r=u.createElement("small",null,"on line ",t.get("line"))),u.createElement("div",{className:"error-wrapper"},t?u.createElement("div",null,u.createElement("h4",null,e_(t.get("source"))+" "+t.get("level")," ",r),u.createElement("span",{className:"message"},t.get("message")),u.createElement("div",{className:"error-line"},e?u.createElement("a",{onClick:e.bind(null,t.get("line"))},"Jump to line ",t.get("line")):null)):null)};function e_(t){return(t||"").split(" ").map((e=>e[0].toUpperCase()+e.slice(1))).join(" ")}const x7=()=>{};class _7 extends u.Component{static defaultProps={onChange:x7,value:null,contentTypes:(0,H.fromJS)(["application/json"])};componentDidMount(){const{contentTypes:e,onChange:r}=this.props;e&&e.size&&r(e.first())}componentDidUpdate(){const{contentTypes:e,value:r,onChange:n}=this.props;e&&e.size&&(e.includes(r)||n(e.first()))}onChangeWrapper=e=>this.props.onChange(e.target.value);render(){let{ariaControls:e,ariaLabel:r,className:n,contentTypes:a,controlId:o,value:p}=this.props;return a&&a.size?u.createElement("div",{className:"content-type-wrapper "+(n||"")},u.createElement("select",{"aria-controls":e,"aria-label":r,className:"content-type",id:o,onChange:this.onChangeWrapper,value:p||""},a.map((c=>u.createElement("option",{key:c,value:c},c))).toArray())):null}}function Im(...t){return t.filter((e=>!!e)).join(" ").trim()}class O7 extends u.Component{render(){let{fullscreen:e,full:r,...n}=this.props;if(e)return u.createElement("section",n);let a="swagger-container"+(r?"-full":"");return u.createElement("section",Yr()({},n,{className:Im(n.className,a)}))}}const z1={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class k7 extends u.Component{render(){const{hide:e,keepContents:r,mobile:n,tablet:a,desktop:o,large:p,...c}=this.props;if(e&&!r)return u.createElement("span",null);let d=[];for(let x in z1){if(!Object.prototype.hasOwnProperty.call(z1,x))continue;let k=z1[x];if(x in this.props){let P=this.props[x];if(P<1){d.push("none"+k);continue}d.push("block"+k),d.push("col-"+P+k)}}e&&d.push("hidden");let E=Im(c.className,...d);return u.createElement("section",Yr()({},c,{className:E}))}}class A7 extends u.Component{render(){return u.createElement("div",Yr()({},this.props,{className:Im(this.props.className,"wrapper")}))}}class C7 extends u.Component{static defaultProps={className:""};render(){return u.createElement("button",Yr()({},this.props,{className:Im(this.props.className,"button")}))}}const j7=t=>u.createElement("textarea",t),P7=t=>u.createElement("input",t);class N7 extends u.Component{static defaultProps={multiple:!1,allowEmptyValue:!0};constructor(e,r){let n;super(e,r),n=e.value?e.value:e.multiple?[""]:"",this.state={value:n}}onChange=e=>{let r,{onChange:n,multiple:a}=this.props,o=[].slice.call(e.target.options);r=a?o.filter((function(p){return p.selected})).map((function(p){return p.value})):e.target.value,this.setState({value:r}),n&&n(r)};UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){let{allowedValues:e,multiple:r,allowEmptyValue:n,disabled:a}=this.props,o=this.state.value?.toJS?.()||this.state.value;return u.createElement("select",{className:this.props.className,multiple:r,value:o,onChange:this.onChange,disabled:a},n?u.createElement("option",{value:""},"--"):null,e.map((function(p,c){return u.createElement("option",{key:c,value:String(p)},String(p))})))}}class t_ extends u.Component{render(){return u.createElement("a",Yr()({},this.props,{rel:"noopener noreferrer",className:Im(this.props.className,"link")}))}}const r_=({children:t})=>u.createElement("div",{className:"no-margin"}," ",t," ");class T7 extends u.Component{static defaultProps={isOpened:!1,animated:!1};renderNotAnimated(){return this.props.isOpened?u.createElement(r_,null,this.props.children):u.createElement("noscript",null)}render(){let{animated:e,isOpened:r,children:n}=this.props;return e?(n=r?n:null,u.createElement(r_,null,n)):this.renderNotAnimated()}}class I7 extends u.Component{constructor(...e){super(...e),this.setTagShown=this._setTagShown.bind(this)}_setTagShown(e,r){this.props.layoutActions.show(e,r)}showOp(e,r){let{layoutActions:n}=this.props;n.show(e,r)}render(){let{specSelectors:e,layoutSelectors:r,layoutActions:n,getComponent:a}=this.props,o=e.taggedOperations();const p=a("Collapse");return u.createElement("div",null,u.createElement("h4",{className:"overview-title"},"Overview"),o.map(((c,d)=>{let E=c.get("operations"),x=["overview-tags",d],k=r.isShown(x,!0);return u.createElement("div",{key:"overview-"+d},u.createElement("h4",{onClick:()=>n.show(x,!k),className:"link overview-tag"}," ",k?"-":"+",d),u.createElement(p,{isOpened:k,animated:!0},E.map((P=>{let{path:R,method:L,id:V}=P.toObject(),Q="operations",J=V,re=r.isShown([Q,J]);return u.createElement(M7,{key:V,path:R,method:L,id:R+"-"+L,shown:re,showOpId:J,showOpIdPrefix:Q,href:`#operation-${J}`,onClick:n.show})})).toArray()))})).valueSeq().toArray(),o.size<1&&u.createElement("h3",null," No operations defined in spec! "))}}class M7 extends u.Component{constructor(e){super(e),this.onClick=this._onClick.bind(this)}_onClick(){let{showOpId:e,showOpIdPrefix:r,onClick:n,shown:a}=this.props;n([r,e],!a)}render(){let{id:e,method:r,shown:n,href:a}=this.props;return u.createElement(t_,{href:a,onClick:this.onClick,className:"block opblock-link "+(n?"shown":"")},u.createElement("div",null,u.createElement("small",{className:`bold-label-${r}`},r.toUpperCase()),u.createElement("span",{className:"bold-label"},e)))}}class R7 extends u.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:e,defaultValue:r,initialValue:n,...a}=this.props;return u.createElement("input",Yr()({},a,{ref:o=>this.inputRef=o}))}}class D7 extends u.Component{render(){const{host:e,basePath:r}=this.props;return u.createElement("pre",{className:"base-url"},"[ Base URL: ",e,r," ]")}}class F7 extends u.PureComponent{render(){const{url:e,getComponent:r}=this.props,n=r("Link");return u.createElement(n,{target:"_blank",href:Dr(e)},u.createElement("span",{className:"url"}," ",e))}}class L7 extends u.Component{render(){const{info:e,url:r,host:n,basePath:a,getComponent:o,externalDocs:p,selectedServer:c,url:d}=this.props,E=e.get("version"),x=e.get("description"),k=e.get("title"),P=ba(e.get("termsOfService"),d,{selectedServer:c}),R=e.get("contact"),L=e.get("license"),V=ba(p&&p.get("url"),d,{selectedServer:c}),Q=p&&p.get("description"),J=o("Markdown",!0),re=o("Link"),me=o("VersionStamp"),le=o("OpenAPIVersion"),ve=o("InfoUrl"),be=o("InfoBasePath"),ce=o("License"),_e=o("Contact");return u.createElement("div",{className:"info"},u.createElement("hgroup",{className:"main"},u.createElement("h1",{className:"title"},k,u.createElement("span",null,E&&u.createElement(me,{version:E}),u.createElement(le,{oasVersion:"2.0"}))),n||a?u.createElement(be,{host:n,basePath:a}):null,r&&u.createElement(ve,{getComponent:o,url:r})),u.createElement("div",{className:"description"},u.createElement(J,{source:x})),P&&u.createElement("div",{className:"info__tos"},u.createElement(re,{target:"_blank",href:Dr(P)},"Terms of service")),R?.size>0&&u.createElement(_e,{getComponent:o,data:R,selectedServer:c,url:r}),L?.size>0&&u.createElement(ce,{getComponent:o,license:L,selectedServer:c,url:r}),V?u.createElement(re,{className:"info__extdocs",target:"_blank",href:Dr(V)},Q||V):null)}}const $7=L7;class B7 extends u.Component{render(){const{specSelectors:e,getComponent:r,oas3Selectors:n}=this.props,a=e.info(),o=e.url(),p=e.basePath(),c=e.host(),d=e.externalDocs(),E=n.selectedServer(),x=r("info");return u.createElement("div",null,a&&a.count()?u.createElement(x,{info:a,url:o,host:c,basePath:p,externalDocs:d,getComponent:r,selectedServer:E}):null)}}class q7 extends u.Component{render(){const{data:e,getComponent:r,selectedServer:n,url:a}=this.props,o=e.get("name","the developer"),p=ba(e.get("url"),a,{selectedServer:n}),c=e.get("email"),d=r("Link");return u.createElement("div",{className:"info__contact"},p&&u.createElement("div",null,u.createElement(d,{href:Dr(p),target:"_blank"},o," - Website")),c&&u.createElement(d,{href:Dr(`mailto:${c}`)},p?`Send email to ${o}`:`Contact ${o}`))}}const U7=q7;class z7 extends u.Component{render(){const{license:e,getComponent:r,selectedServer:n,url:a}=this.props,o=e.get("name","License"),p=ba(e.get("url"),a,{selectedServer:n}),c=r("Link");return u.createElement("div",{className:"info__license"},p?u.createElement("div",{className:"info__license__url"},u.createElement(c,{target:"_blank",href:Dr(p)},o)):u.createElement("span",null,o))}}const V7=z7;class J7 extends u.Component{render(){return null}}const Ov="Copy path to clipboard";class W7 extends u.Component{render(){let{getComponent:e}=this.props;const r=e("CopyIcon");return u.createElement("div",{className:"view-line-link copy-to-clipboard",title:Ov,"aria-label":Ov},u.createElement(cu.CopyToClipboard,{text:this.props.textToCopy},u.createElement("button",{"aria-label":Ov,title:Ov,type:"button"},u.createElement(r,null))))}}class H7 extends u.Component{render(){return u.createElement("div",{className:"footer"})}}class K7 extends u.Component{onFilterChange=e=>{const{target:{value:r}}=e;this.props.layoutActions.updateFilter(r)};render(){const{specSelectors:e,layoutSelectors:r,getComponent:n}=this.props,a=n("Col"),o=e.loadingStatus()==="loading",p=e.loadingStatus()==="failed",c=r.currentFilter(),d=["operation-filter-input"];return p&&d.push("failed"),o&&d.push("loading"),u.createElement("div",null,c===!1?null:u.createElement("div",{className:"filter-container"},u.createElement(a,{className:"filter wrapper",mobile:12},u.createElement("input",{className:d.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:typeof c=="string"?c:"",disabled:o}))))}}const V1=Function.prototype;class J1 extends u.PureComponent{static defaultProp={consumes:(0,H.fromJS)(["application/json"]),param:(0,H.fromJS)({}),onChange:V1,onChangeConsumes:V1};constructor(e,r){super(e,r),this.state={isEditBox:!1,value:""}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(e){this.updateValues.call(this,e)}updateValues=e=>{let{param:r,isExecute:n,consumesValue:a=""}=e,o=/xml/i.test(a),p=/json/i.test(a),c=o?r.get("value_xml"):r.get("value");if(c!==void 0){let d=!c&&p?"{}":c;this.setState({value:d}),this.onChange(d,{isXml:o,isEditBox:n})}else o?this.onChange(this.sample("xml"),{isXml:o,isEditBox:n}):this.onChange(this.sample(),{isEditBox:n})};sample=e=>{let{param:r,fn:n}=this.props,a=n.inferSchema(r.toJS());return n.getSampleSchema(a,e,{includeWriteOnly:!0})};onChange=(e,{isEditBox:r,isXml:n})=>{this.setState({value:e,isEditBox:r}),this._onChange(e,n)};_onChange=(e,r)=>{(this.props.onChange||V1)(e,r)};handleOnChange=e=>{const{consumesValue:r}=this.props,n=/xml/i.test(r),a=e.target.value;this.onChange(a,{isXml:n,isEditBox:this.state.isEditBox})};toggleIsEditBox=()=>this.setState((e=>({isEditBox:!e.isEditBox})));render(){let{onChangeConsumes:e,param:r,isExecute:n,specSelectors:a,pathMethod:o,getComponent:p}=this.props;const c=p("Button"),d=p("TextArea"),E=p("HighlightCode",!0),x=p("contentType");let k=(a?a.parameterWithMetaByIdentity(o,r):r).get("errors",(0,H.List)()),P=a.contentTypeValues(o).get("requestContentType"),R=this.props.consumes&&this.props.consumes.size?this.props.consumes:J1.defaultProp.consumes,{value:L,isEditBox:V}=this.state,Q=null;_v(L)&&(Q="json");const J=`${B1(`${o[1]}${o[0]}_parameters`)}_select`;return u.createElement("div",{className:"body-param","data-param-name":r.get("name"),"data-param-in":r.get("in")},V&&n?u.createElement(d,{className:"body-param__text"+(k.count()?" invalid":""),value:L,onChange:this.handleOnChange}):L&&u.createElement(E,{className:"body-param__example",language:Q},L),u.createElement("div",{className:"body-param-options"},n?u.createElement("div",{className:"body-param-edit"},u.createElement(c,{className:V?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},V?"Cancel":"Edit")):null,u.createElement("label",{htmlFor:J},u.createElement("span",null,"Parameter content type"),u.createElement(x,{value:P,contentTypes:R,onChange:e,className:"body-param-content-type",ariaLabel:"Parameter content type",controlId:J}))))}}const kv="Copy cURL command to clipboard";class G7 extends u.Component{render(){const{request:e,getComponent:r}=this.props,n=mp(e),a=r("SyntaxHighlighter",!0);return u.createElement("div",{className:"curl-command"},u.createElement("h4",null,"Curl"),u.createElement("div",{className:"copy-to-clipboard",title:kv,"aria-label":kv},u.createElement(cu.CopyToClipboard,{text:n},u.createElement("button",{"aria-label":kv,title:kv,type:"button"}))),u.createElement("div",null,u.createElement(a,{language:"bash",className:"curl microlight",renderPlainText:({children:o,PlainTextViewer:p})=>u.createElement(p,{className:"curl"},o)},n)))}}const Y7=({propKey:t,propVal:e,propClass:r})=>u.createElement("span",{className:r},u.createElement("br",null),t,": ",Gr(e));class X7 extends u.Component{static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1};render(){const{onTryoutClick:e,onCancelClick:r,onResetClick:n,enabled:a,hasUserEditedBody:o,isOAS3:p}=this.props,c=p&&o;return u.createElement("div",{className:c?"try-out btn-group":"try-out"},a?u.createElement("button",{className:"btn try-out__btn cancel",onClick:r},"Cancel"):u.createElement("button",{className:"btn try-out__btn",onClick:e},"Try it out "),c&&u.createElement("button",{className:"btn try-out__btn reset",onClick:n},"Reset"))}}class Q7 extends u.PureComponent{static defaultProps={alsoShow:null,children:null,bypass:!1};render(){const{bypass:e,isSwagger2:r,isOAS3:n,alsoShow:a}=this.props;return e?u.createElement("div",null,this.props.children):r&&n?u.createElement("div",{className:"version-pragma"},a,u.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,u.createElement("code",null,"swagger")," and ",u.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),u.createElement("p",null,"Supported version fields are ",u.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",u.createElement("code",null,"openapi: 3.0.n")," (for example, ",u.createElement("code",null,"openapi: 3.0.4"),").")))):r||n?u.createElement("div",null,this.props.children):u.createElement("div",{className:"version-pragma"},a,u.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,"The provided definition does not specify a valid version field."),u.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",u.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",u.createElement("code",null,"openapi: 3.0.n")," (for example, ",u.createElement("code",null,"openapi: 3.0.4"),")."))))}}const Z7=({version:t})=>u.createElement("small",null,u.createElement("pre",{className:"version"}," ",t," ")),eD=({oasVersion:t})=>u.createElement("small",{className:"version-stamp"},u.createElement("pre",{className:"version"},"OAS ",t)),tD=({enabled:t,path:e,text:r})=>u.createElement("a",{className:"nostyle",onClick:t?n=>n.preventDefault():null,href:t?`#/${e}`:null},u.createElement("span",null,r)),rD=()=>u.createElement("div",null,u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},u.createElement("defs",null,u.createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},u.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},u.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"close"},u.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},u.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},u.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},u.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),u.createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},u.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),u.createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},u.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),u.createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},u.createElement("g",{transform:"translate(2, -1)"},u.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))))));var W1;function n_(t){return(W1=W1||document.createElement("textarea")).innerHTML="&"+t+";",W1.value}var nD=Object.prototype.hasOwnProperty;function aD(t,e){return!!t&&nD.call(t,e)}function a_(t){return[].slice.call(arguments,1).forEach((function(e){if(e){if(typeof e!="object")throw new TypeError(e+"must be object");Object.keys(e).forEach((function(r){t[r]=e[r]}))}})),t}var oD=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Mm(t){return t.indexOf("\\")<0?t:t.replace(oD,"$1")}function o_(t){return!(t>=55296&&t<=57343)&&!(t>=64976&&t<=65007)&&!!(65535&~t&&(65535&t)!=65534)&&!(t>=0&&t<=8)&&t!==11&&!(t>=14&&t<=31)&&!(t>=127&&t<=159)&&!(t>1114111)}function H1(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}var iD=/&([a-z#][a-z0-9]{1,31});/gi,sD=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function lD(t,e){var r=0,n=n_(e);return e!==n?n:e.charCodeAt(0)===35&&sD.test(e)&&o_(r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10))?H1(r):t}function Hp(t){return t.indexOf("&")<0?t:t.replace(iD,lD)}var cD=/[&<>"]/,uD=/[&<>"]/g,pD={"&":"&","<":"<",">":">",'"':"""};function hD(t){return pD[t]}function Mi(t){return cD.test(t)?t.replace(uD,hD):t}var fr={};function i_(t,e){return++e>=t.length-2?e:t[e].type==="paragraph_open"&&t[e].tight&&t[e+1].type==="inline"&&t[e+1].content.length===0&&t[e+2].type==="paragraph_close"&&t[e+2].tight?i_(t,e+2):e}fr.blockquote_open=function(){return`
    +`},fr.blockquote_close=function(t,e){return"
    "+Kp(t,e)},fr.code=function(t,e){return t[e].block?"
    "+Mi(t[e].content)+"
    "+Kp(t,e):""+Mi(t[e].content)+""},fr.fence=function(t,e,r,n,a){var o,p,c=t[e],d="",E=r.langPrefix;if(c.params){if(p=(o=c.params.split(/\s+/g)).join(" "),aD(a.rules.fence_custom,o[0]))return a.rules.fence_custom[o[0]](t,e,r,n,a);d=' class="'+E+Mi(Hp(Mm(p)))+'"'}return"
    "+(r.highlight&&r.highlight.apply(r.highlight,[c.content].concat(o))||Mi(c.content))+"
    "+Kp(t,e)},fr.fence_custom={},fr.heading_open=function(t,e){return""},fr.heading_close=function(t,e){return" +`},fr.hr=function(t,e,r){return(r.xhtmlOut?"
    ":"
    ")+Kp(t,e)},fr.bullet_list_open=function(){return`
      +`},fr.bullet_list_close=function(t,e){return"
    "+Kp(t,e)},fr.list_item_open=function(){return"
  • "},fr.list_item_close=function(){return`
  • +`},fr.ordered_list_open=function(t,e){var r=t[e];return"1?' start="'+r.order+'"':"")+`> +`},fr.ordered_list_close=function(t,e){return""+Kp(t,e)},fr.paragraph_open=function(t,e){return t[e].tight?"":"

    "},fr.paragraph_close=function(t,e){var r=!(t[e].tight&&e&&t[e-1].type==="inline"&&!t[e-1].content);return(t[e].tight?"":"

    ")+(r?Kp(t,e):"")},fr.link_open=function(t,e,r){var n=t[e].title?' title="'+Mi(Hp(t[e].title))+'"':"",a=r.linkTarget?' target="'+r.linkTarget+'"':"";return'"},fr.link_close=function(){return""},fr.image=function(t,e,r){var n=' src="'+Mi(t[e].src)+'"',a=t[e].title?' title="'+Mi(Hp(t[e].title))+'"':"";return""},fr.table_open=function(){return` +`},fr.table_close=function(){return`
    +`},fr.thead_open=function(){return` +`},fr.thead_close=function(){return` +`},fr.tbody_open=function(){return` +`},fr.tbody_close=function(){return` +`},fr.tr_open=function(){return""},fr.tr_close=function(){return` +`},fr.th_open=function(t,e){var r=t[e];return""},fr.th_close=function(){return""},fr.td_open=function(t,e){var r=t[e];return""},fr.td_close=function(){return""},fr.strong_open=function(){return""},fr.strong_close=function(){return""},fr.em_open=function(){return""},fr.em_close=function(){return""},fr.del_open=function(){return""},fr.del_close=function(){return""},fr.ins_open=function(){return""},fr.ins_close=function(){return""},fr.mark_open=function(){return""},fr.mark_close=function(){return""},fr.sub=function(t,e){return""+Mi(t[e].content)+""},fr.sup=function(t,e){return""+Mi(t[e].content)+""},fr.hardbreak=function(t,e,r){return r.xhtmlOut?`
    +`:`
    +`},fr.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?`
    +`:`
    +`:` +`},fr.text=function(t,e){return Mi(t[e].content)},fr.htmlblock=function(t,e){return t[e].content},fr.htmltag=function(t,e){return t[e].content},fr.abbr_open=function(t,e){return''},fr.abbr_close=function(){return""},fr.footnote_ref=function(t,e){var r=Number(t[e].id+1).toString(),n="fnref"+r;return t[e].subId>0&&(n+=":"+t[e].subId),'['+r+"]"},fr.footnote_block_open=function(t,e,r){return(r.xhtmlOut?`
    +`:`
    +`)+`
    +
      +`},fr.footnote_block_close=function(){return`
    +
    +`},fr.footnote_open=function(t,e){return'
  • '},fr.footnote_close=function(){return`
  • +`},fr.footnote_anchor=function(t,e){var r="fnref"+Number(t[e].id+1).toString();return t[e].subId>0&&(r+=":"+t[e].subId),' '},fr.dl_open=function(){return`
    +`},fr.dt_open=function(){return"
    "},fr.dd_open=function(){return"
    "},fr.dl_close=function(){return`
    +`},fr.dt_close=function(){return` +`},fr.dd_close=function(){return` +`};var Kp=fr.getBreak=function(e,r){return(r=i_(e,r))1||r===41&&--n<0)break;e++}return o!==e&&(a=Mm(t.src.slice(o,e)),!!t.parser.validateLink(a)&&(t.linkContent=a,t.pos=e,!0))}function l_(t,e){var r,n=e,a=t.posMax,o=t.src.charCodeAt(e);if(o!==34&&o!==39&&o!==40)return!1;for(e++,o===40&&(o=41);e=t.length)&&!wD.test(t[e])}function dd(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}var X1=[["block",function(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}],["abbr",function(e){var r,n,a,o,p=e.tokens;if(!e.inlineMode){for(r=1,n=p.length-1;r0?c[r].count:1,a=0;a=0;r--)if((p=o[r]).type==="text"){for(E=0,c=p.content,k.lastIndex=0,x=p.level,d=[];P=k.exec(c);)k.lastIndex>E&&d.push({type:"text",content:c.slice(E,P.index+P[1].length),level:x}),d.push({type:"abbr_open",title:e.env.abbreviations[":"+P[2]],level:x++}),d.push({type:"text",content:P[2],level:x}),d.push({type:"abbr_close",level:--x}),E=k.lastIndex-P[3].length;d.length&&(E=0;p--)if(e.tokens[p].type==="inline")for(r=(o=e.tokens[p].children).length-1;r>=0;r--)(n=o[r]).type==="text"&&(a=vD(a=n.content),mD.test(a)&&(a=a.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),n.content=a)}}],["smartquotes",function(e){var r,n,a,o,p,c,d,E,x,k,P,R,L,V,Q,J,re;if(e.options.typographer){for(re=[],Q=e.tokens.length-1;Q>=0;Q--)if(e.tokens[Q].type==="inline"){for(J=e.tokens[Q].children,re.length=0,r=0;r=0&&!(re[L].level<=d);L--);re.length=L+1,p=0,c=(a=n.content).length;e:for(;p=0&&(k=re[L],!(re[L].level=(a=t.eMarks[e])||(r=t.src.charCodeAt(n++))!==42&&r!==45&&r!==43||n=a||(r=t.src.charCodeAt(n++))<48||r>57)return-1;for(;;){if(n>=a)return-1;if(!((r=t.src.charCodeAt(n++))>=48&&r<=57)){if(r===41||r===46)break;return-1}}return n=this.eMarks[e]},Yp.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;en;)if(r!==this.src.charCodeAt(--e))return e+1;return e},Yp.prototype.getLines=function(e,r,n,a){var o,p,c,d,E,x=e;if(e>=r)return"";if(x+1===r)return p=this.bMarks[x]+Math.min(this.tShift[x],n),c=a?this.eMarks[x]+1:this.eMarks[x],this.src.slice(p,c);for(d=new Array(r-e),o=0;xn&&(E=n),E<0&&(E=0),p=this.bMarks[x]+E,c=x+1]/,SD=/^<\/([a-zA-Z]{1,15})[\s>]/;function Q1(t,e){var r=t.bMarks[e]+t.blkIndent,n=t.eMarks[e];return t.src.substr(r,n-r)}function Av(t,e){var r,n,a=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return a>=o||(n=t.src.charCodeAt(a++))!==126&&n!==58||a===(r=t.skipSpaces(a))||r>=o?-1:r}var Cv=[["code",function(e,r,n){var a,o;if(e.tShift[r]-e.blkIndent<4)return!1;for(o=a=r+1;a=4))break;o=++a}return e.line=a,e.tokens.push({type:"code",content:e.getLines(r,o,4+e.blkIndent,!0),block:!0,lines:[r,e.line],level:e.level}),!0}],["fences",function(e,r,n,a){var o,p,c,d,E,x=!1,k=e.bMarks[r]+e.tShift[r],P=e.eMarks[r];if(k+3>P||(o=e.src.charCodeAt(k))!==126&&o!==96||(E=k,(p=(k=e.skipChars(k,o))-E)<3)||(c=e.src.slice(k,P).trim()).indexOf("`")>=0)return!1;if(a)return!0;for(d=r;!(++d>=n)&&!((k=E=e.bMarks[d]+e.tShift[d])<(P=e.eMarks[d])&&e.tShift[d]=4||(k=e.skipChars(k,o))-EJ||e.src.charCodeAt(Q++)!==62||e.level>=e.options.maxNesting)return!1;if(a)return!0;for(e.src.charCodeAt(Q)===32&&Q++,E=e.blkIndent,e.blkIndent=0,d=[e.bMarks[r]],e.bMarks[r]=Q,p=(Q=Q=J,c=[e.tShift[r]],e.tShift[r]=Q-e.bMarks[r],P=e.parser.ruler.getRules("blockquote"),o=r+1;o=(J=e.eMarks[o]));o++)if(e.src.charCodeAt(Q++)!==62){if(p)break;for(V=!1,R=0,L=P.length;R=J,c.push(e.tShift[o]),e.tShift[o]=Q-e.bMarks[o];for(x=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:k=[r,0],level:e.level++}),e.parser.tokenize(e,r,o),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=x,k[1]=e.line,R=0;RE||(o=e.src.charCodeAt(d++))!==42&&o!==45&&o!==95)return!1;for(p=1;d=0)Q=!0;else{if(!((P=f_(e,r))>=0))return!1;Q=!1}if(e.level>=e.options.maxNesting)return!1;if(V=e.src.charCodeAt(P-1),a)return!0;for(re=e.tokens.length,Q?(k=e.bMarks[r]+e.tShift[r],L=Number(e.src.substr(k,P-k-1)),e.tokens.push({type:"ordered_list_open",order:L,lines:le=[r,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:le=[r,0],level:e.level++}),o=r,me=!1,be=e.parser.ruler.getRules("list");!(!(o=e.eMarks[o]?1:J-P)>4&&(R=1),R<1&&(R=1),p=P-e.bMarks[o]+R,e.tokens.push({type:"list_item_open",lines:ve=[r,0],level:e.level++}),d=e.blkIndent,E=e.tight,c=e.tShift[r],x=e.parentType,e.tShift[r]=J-e.bMarks[r],e.blkIndent=p,e.tight=!0,e.parentType="list",e.parser.tokenize(e,r,n,!0),e.tight&&!me||(xe=!1),me=e.line-r>1&&e.isEmpty(e.line-1),e.blkIndent=d,e.tShift[r]=c,e.tight=E,e.parentType=x,e.tokens.push({type:"list_item_close",level:--e.level}),o=r=e.line,ve[1]=o,J=e.bMarks[r],o>=n)||e.isEmpty(o)||e.tShift[o]k||e.src.charCodeAt(x)!==91||e.src.charCodeAt(x+1)!==94||e.level>=e.options.maxNesting)return!1;for(d=x+2;d=k||e.src.charCodeAt(++d)!==58)&&(a||(d++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),E=e.src.slice(x+2,d-2),e.env.footnotes.refs[":"+E]=-1,e.tokens.push({type:"footnote_reference_open",label:E,level:e.level++}),o=e.bMarks[r],p=e.tShift[r],c=e.parentType,e.tShift[r]=e.skipSpaces(d)-d,e.bMarks[r]=d,e.blkIndent+=4,e.parentType="footnote",e.tShift[r]=E||(o=e.src.charCodeAt(d))!==35||d>=E)return!1;for(p=1,o=e.src.charCodeAt(++d);o===35&&d6||dd&&e.src.charCodeAt(c-1)===32&&(E=c),e.line=r+1,e.tokens.push({type:"heading_open",hLevel:p,lines:[r,e.line],level:e.level}),d=n)&&!(e.tShift[c]3)&&!((o=e.bMarks[c]+e.tShift[c])>=(p=e.eMarks[c]))&&((a=e.src.charCodeAt(o))===45||a===61)&&(o=e.skipChars(o,a),!((o=e.skipSpaces(o))3||d+2>=E||e.src.charCodeAt(d)!==60)return!1;if((o=e.src.charCodeAt(d+1))===33||o===63){if(a)return!0}else{if(o!==47&&!(function(P){var R=32|P;return R>=97&&R<=122})(o))return!1;if(o===47){if(!(p=e.src.slice(d,E).match(SD)))return!1}else if(!(p=e.src.slice(d,E).match(ED)))return!1;if(g_[p[1].toLowerCase()]!==!0)return!1;if(a)return!0}for(c=r+1;cn||(E=r+1,e.tShift[E]=e.eMarks[E]||(o=e.src.charCodeAt(c))!==124&&o!==45&&o!==58||(p=Q1(e,r+1),!/^[-:| ]+$/.test(p))||(x=p.split("|"))<=2)return!1;for(P=[],d=0;d=0;if(k=r+1,e.isEmpty(k)&&++k>n||e.tShift[k]=e.options.maxNesting)return!1;x=e.tokens.length,e.tokens.push({type:"dl_open",lines:E=[r,0],level:e.level++}),c=r,p=k;e:for(;;){for(re=!0,J=!1,e.tokens.push({type:"dt_open",lines:[c,c],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(c,c+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[c,c],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:d=[k,0],level:e.level++}),Q=e.tight,R=e.ddIndent,P=e.blkIndent,V=e.tShift[p],L=e.parentType,e.blkIndent=e.ddIndent=e.tShift[p]+2,e.tShift[p]=o-e.bMarks[p],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,p,n,!0),e.tight&&!J||(re=!1),J=e.line-p>1&&e.isEmpty(e.line-1),e.tShift[p]=V,e.tight=Q,e.parentType=L,e.blkIndent=P,e.ddIndent=R,e.tokens.push({type:"dd_close",level:--e.level}),d[1]=k=e.line,k>=n||e.tShift[k]=n||(c=k,e.isEmpty(c))||e.tShift[c]=n||(e.isEmpty(p)&&p++,p>=n)||e.tShift[p]3)){for(o=!1,p=0,c=d.length;p=r))&&!(t.tShift[p]=0&&(t=t.replace(xD,(function(c,d){var E;return t.charCodeAt(d)===10?(o=d+1,p=0,c):(E=" ".slice((d-o-p)%4),p=d-o+1,E)}))),a=new Yp(t,this,e,r,n),this.tokenize(a,a.line,a.lineMax)};for(var ew=[],y_=0;y_<256;y_++)ew.push(0);function v_(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function b_(t,e){var r,n,a,o=e,p=!0,c=!0,d=t.posMax,E=t.src.charCodeAt(e);for(r=e>0?t.src.charCodeAt(e-1):-1;o=d&&(p=!1),(a=o-e)>=4?p=c=!1:((n=o?@[]^_`{|}~-".split("").forEach((function(t){ew[t.charCodeAt(0)]=1}));var AD=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,CD=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,jD=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],PD=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,ND=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function jv(t,e){return t=t.source,e=e||"",function r(n,a){return n?(a=a.source||a,t=t.replace(n,a),r):new RegExp(t,e)}}var TD=jv(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),ID=jv(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",TD)(),MD=jv(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",ID)(),RD=jv(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",MD)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/|/)("processing",/<[?].*?[?]>/)("declaration",/]*>/)("cdata",//)(),DD=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,FD=/^&([a-z][a-z0-9]{1,31});/i,tw=[["text",function(e,r){for(var n=e.pos;n=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){for(var p=n-2;p>=0;p--)if(e.pending.charCodeAt(p)!==32){e.pending=e.pending.substring(0,p+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(o++;o=d||e.src.charCodeAt(E+1)!==126||e.level>=e.options.maxNesting||(p=E>0?e.src.charCodeAt(E-1):-1,c=e.src.charCodeAt(E+2),p===126)||c===126||c===32||c===10)return!1;for(a=E+2;aE+3)return e.pos+=a-E,r||(e.pending+=e.src.slice(E,a)),!0;for(e.pos=E+2,o=1;e.pos+1=d||e.src.charCodeAt(E+1)!==43||e.level>=e.options.maxNesting||(p=E>0?e.src.charCodeAt(E-1):-1,c=e.src.charCodeAt(E+2),p===43)||c===43||c===32||c===10)return!1;for(a=E+2;a=d||e.src.charCodeAt(E+1)!==61||e.level>=e.options.maxNesting||(p=E>0?e.src.charCodeAt(E-1):-1,c=e.src.charCodeAt(E+2),p===61)||c===61||c===32||c===10)return!1;for(a=E+2;a=e.options.maxNesting)return!1;for(e.pos=k+n,d=[n];e.pos=o||e.level>=e.options.maxNesting)return!1;for(e.pos=p+1;e.pos=o||e.level>=e.options.maxNesting)return!1;for(e.pos=p+1;e.pos=e.options.maxNesting||(n=L+1,(a=Rm(e,L))<0))return!1;if((d=a+1)=R)return!1;for(L=d,s_(e,d)?(p=e.linkContent,d=e.pos):p="",L=d;d=R||e.src.charCodeAt(d)!==41)return e.pos=P,!1;d++}else{if(e.linkLevel>0)return!1;for(;d=0?o=e.src.slice(L,d++):d=L-1),o||(o===void 0&&(d=a+1),o=e.src.slice(n,a)),!(E=e.env.references[c_(o)]))return e.pos=P,!1;p=E.href,c=E.title}return r||(e.pos=n,e.posMax=a,k?e.push({type:"image",src:p,title:c,alt:e.src.substr(n,a-n),level:e.level}):(e.push({type:"link_open",href:p,title:c,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=d,e.posMax=R,!0}],["footnote_inline",function(e,r){var n,a,o,p,c=e.posMax,d=e.pos;return!(d+2>=c)&&e.src.charCodeAt(d)===94&&e.src.charCodeAt(d+1)===91&&!(e.level>=e.options.maxNesting)&&(n=d+2,!((a=Rm(e,d+1))<0)&&(r||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=n,e.posMax=a,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,p=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(p)},e.linkLevel--),e.pos=a+1,e.posMax=c,!0))}],["footnote_ref",function(e,r){var n,a,o,p,c=e.posMax,d=e.pos;if(d+3>c||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(d)!==91||e.src.charCodeAt(d+1)!==94||e.level>=e.options.maxNesting)return!1;for(a=d+2;a=c)&&(a++,n=e.src.slice(d+2,a-1),e.env.footnotes.refs[":"+n]!==void 0&&(r||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+n]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:n,count:0},e.env.footnotes.refs[":"+n]=o):o=e.env.footnotes.refs[":"+n],p=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:p,level:e.level})),e.pos=a,e.posMax=c,!0))}],["autolink",function(e,r){var n,a,o,p,c,d=e.pos;return e.src.charCodeAt(d)===60&&!((n=e.src.slice(d)).indexOf(">")<0)&&((a=n.match(ND))?!(jD.indexOf(a[1].toLowerCase())<0)&&(c=G1(p=a[0].slice(1,-1)),!!e.parser.validateLink(p)&&(r||(e.push({type:"link_open",href:c,level:e.level}),e.push({type:"text",content:p,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=a[0].length,!0)):!!(o=n.match(PD))&&(c=G1("mailto:"+(p=o[0].slice(1,-1))),!!e.parser.validateLink(c)&&(r||(e.push({type:"link_open",href:c,level:e.level}),e.push({type:"text",content:p,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=o[0].length,!0)))}],["htmltag",function(e,r){var n,a,o,p=e.pos;return!!e.options.html&&(o=e.posMax,!(e.src.charCodeAt(p)!==60||p+2>=o)&&!((n=e.src.charCodeAt(p+1))!==33&&n!==63&&n!==47&&!(function(d){var E=32|d;return E>=97&&E<=122})(n))&&!!(a=e.src.slice(p).match(RD))&&(r||e.push({type:"htmltag",content:e.src.slice(p,p+a[0].length),level:e.level}),e.pos+=a[0].length,!0))}],["entity",function(e,r){var n,a,o=e.pos,p=e.posMax;if(e.src.charCodeAt(o)!==38)return!1;if(o+10)t.pos=r;else{for(e=0;e=o)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Pv.prototype.parse=function(t,e,r,n){var a=new Gp(t,this,e,r,n);this.tokenize(a)};var $D={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function w_(t,e,r){this.src=e,this.env=r,this.options=t.options,this.tokens=[],this.inlineMode=!1,this.inline=t.inline,this.block=t.block,this.renderer=t.renderer,this.typographer=t.typographer}function Nc(t,e){typeof t!="string"&&(e=t,t="default"),e&&e.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead: + +import Remarkable from 'remarkable'; +import linkify from 'remarkable/linkify'; +new Remarkable().use(linkify) +`),this.inline=new Pv,this.block=new Z1,this.core=new d_,this.renderer=new K1,this.ruler=new Ri,this.options={},this.configure($D[t]),this.set(e||{})}Nc.prototype.set=function(t){a_(this.options,t)},Nc.prototype.configure=function(t){var e=this;if(!t)throw new Error("Wrong `remarkable` preset, check name/content");t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach((function(r){t.components[r].rules&&e[r].ruler.enable(t.components[r].rules,!0)}))},Nc.prototype.use=function(t,e){return t(this,e),this},Nc.prototype.parse=function(t,e){var r=new w_(this,t,e);return this.core.process(r),r.tokens},Nc.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},Nc.prototype.parseInline=function(t,e){var r=new w_(this,t,e);return r.inlineMode=!0,this.core.process(r),r.tokens},Nc.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};function E_(t,e){if(Array.prototype.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r=0;r--)e(t[r])===!0&&t.splice(r,1)}function rw(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}var nw=(function(){function t(e){e===void 0&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return t.prototype.setTagName=function(e){return this.tagName=e,this},t.prototype.getTagName=function(){return this.tagName||""},t.prototype.setAttr=function(e,r){return this.getAttrs()[e]=r,this},t.prototype.getAttr=function(e){return this.getAttrs()[e]},t.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},t.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},t.prototype.setClass=function(e){return this.setAttr("class",e)},t.prototype.addClass=function(e){for(var r,n=this.getClass(),a=this.whitespaceRegex,o=n?n.split(a):[],p=e.split(a);r=p.shift();)E_(o,r)===-1&&o.push(r);return this.getAttrs().class=o.join(" "),this},t.prototype.removeClass=function(e){for(var r,n=this.getClass(),a=this.whitespaceRegex,o=n?n.split(a):[],p=e.split(a);o.length&&(r=p.shift());){var c=E_(o,r);c!==-1&&o.splice(c,1)}return this.getAttrs().class=o.join(" "),this},t.prototype.getClass=function(){return this.getAttrs().class||""},t.prototype.hasClass=function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},t.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},t.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},t.prototype.getInnerHTML=function(){return this.innerHTML||""},t.prototype.getInnerHtml=function(){return this.getInnerHTML()},t.prototype.toAnchorString=function(){var e=this.getTagName(),r=this.buildAttrsStr();return["<",e,r=r?" "+r:"",">",this.getInnerHtml(),""].join("")},t.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),r=[];for(var n in e)e.hasOwnProperty(n)&&r.push(n+'="'+e[n]+'"');return r.join(" ")},t})(),S_=(function(){function t(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return t.prototype.build=function(e){return new nw({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},t.prototype.createAttrs=function(e){var r={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(r.class=n),this.newWindow&&(r.target="_blank",r.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length=R)return L.host.length==c?(L.host.substr(0,c-x)+d).substr(0,R+E):P(Q,R).substr(0,R+E);var J="";if(L.path&&(J+="/"+L.path),L.query&&(J+="?"+L.query),J){if((Q+J).length>=R)return(Q+J).length==c?(Q+J).substr(0,c):(Q+P(J,R-Q.length)).substr(0,R+E);Q+=J}if(L.fragment){var re="#"+L.fragment;if((Q+re).length>=R)return(Q+re).length==c?(Q+re).substr(0,c):(Q+P(re,R-Q.length)).substr(0,R+E);Q+=re}if(L.scheme&&L.host){var me=L.scheme+"://";if((Q+me).length0&&(le=Q.substr(-1*Math.floor(R/2))),(Q.substr(0,Math.ceil(R/2))+d+le).substr(0,R+E)})(e,n):a==="middle"?(function(p,c,d){if(p.length<=c)return p;var E,x;d==null?(d="…",E=8,x=3):(E=d.length,x=d.length);var k=c-x,P="";return k>0&&(P=p.substr(-1*Math.floor(k/2))),(p.substr(0,Math.ceil(k/2))+d+P).substr(0,k+E)})(e,n):(function(p,c,d){return(function(x,k,P){var R;return x.length>k&&(P==null?(P="…",R=3):R=P.length,x=x.substring(0,k-R)+P),x})(p,c,d)})(e,n)},t})(),fd=(function(){function t(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return t.prototype.getMatchedText=function(){return this.matchedText},t.prototype.setOffset=function(e){this.offset=e},t.prototype.getOffset=function(){return this.offset},t.prototype.getCssClassSuffixes=function(){return[this.getType()]},t.prototype.buildTag=function(){return this.tagBuilder.build(this)},t})(),aw=function(t,e){return aw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},aw(t,e)};function Vl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}aw(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var fa=function(){return fa=Object.assign||function(e){for(var r,n=1,a=arguments.length;n-1},t.isValidUriScheme=function(e){var r=e.match(this.uriSchemeRegex),n=r&&r[0].toLowerCase();return n!=="javascript:"&&n!=="vbscript:"},t.urlMatchDoesNotHaveProtocolOrDot=function(e,r){return!(!e||r&&this.hasFullProtocolRegex.test(r)||e.indexOf(".")!==-1)},t.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,r){return!(!e||!r)&&!this.hasFullProtocolRegex.test(r)&&!this.hasWordCharAfterProtocolRegex.test(e)},t.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,t.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,t.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+j_+"]"),t.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,t})(),GD=(x_=new RegExp("[/?#](?:["+ma+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+ma+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,sw(2),")","|","(","(//)?",/(?:www\.)/.source,sw(6),")","|","(","(//)?",sw(10)+"\\.",T_.source,"(?![-"+zD+"])",")",")","(?::[0-9]+)?","(?:"+x_.source+")?"].join(""),"gi")),YD=new RegExp("["+ma+"]"),M_=(function(t){function e(r){var n=t.call(this,r)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=GD,n.wordCharRegExp=YD,n.stripPrefix=r.stripPrefix,n.stripTrailingSlash=r.stripTrailingSlash,n.decodePercentEncoding=r.decodePercentEncoding,n}return Vl(e,t),e.prototype.parseMatches=function(r){for(var n,a=this.matcherRegex,o=this.stripPrefix,p=this.stripTrailingSlash,c=this.decodePercentEncoding,d=this.tagBuilder,E=[],x=function(){var P=n[0],R=n[1],L=n[4],V=n[5],Q=n[9],J=n.index,re=V||Q,me=r.charAt(J-1);if(!KD.isValid(P,R)||J>0&&me==="@"||J>0&&re&&k.wordCharRegExp.test(me))return"continue";if(/\?$/.test(P)&&(P=P.substr(0,P.length-1)),k.matchHasUnbalancedClosingParen(P))P=P.substr(0,P.length-1);else{var le=k.matchHasInvalidCharAfterTld(P,R);le>-1&&(P=P.substr(0,le))}var ve=["http://","https://"].find((function(Ae){return!!R&&R.indexOf(Ae)!==-1}));if(ve){var be=P.indexOf(ve);P=P.substr(be),R=R.substr(be),J+=be}var ce=R?"scheme":L?"www":"tld",_e=!!R;E.push(new C_({tagBuilder:d,matchedText:P,offset:J,urlMatchType:ce,url:P,protocolUrlMatch:_e,protocolRelativeMatch:!!re,stripPrefix:o,stripTrailingSlash:p,decodePercentEncoding:c}))},k=this;(n=a.exec(r))!==null;)x();return E},e.prototype.matchHasUnbalancedClosingParen=function(r){var n,a=r.charAt(r.length-1);if(a===")")n="(";else if(a==="]")n="[";else{if(a!=="}")return!1;n="{"}for(var o=0,p=0,c=r.length-1;p-1&&c-d<=140){var Q=r.slice(d,c),J=new O_({tagBuilder:n,matchedText:Q,offset:d,serviceName:a,hashtag:Q.slice(1)});o.push(J)}}},e})(md),XD=["twitter","facebook","instagram","tiktok"],QD=new RegExp("".concat(/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source),"g"),F_=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.matcherRegex=QD,r}return Vl(e,t),e.prototype.parseMatches=function(r){for(var n,a=this.matcherRegex,o=this.tagBuilder,p=[];(n=a.exec(r))!==null;){var c=n[0],d=c.replace(/[^0-9,;#]/g,""),E=!(!n[1]&&!n[2]),x=n.index==0?"":r.substr(n.index-1,1),k=r.substr(n.index+c.length,1),P=!x.match(/\d/)&&!k.match(/\d/);this.testMatch(n[3])&&this.testMatch(c)&&P&&p.push(new A_({tagBuilder:o,matchedText:c,offset:n.index,number:d,plusSign:E}))}return p},e.prototype.testMatch=function(r){return qD.test(r)},e})(md),ZD=new RegExp("@[_".concat(ma,"]{1,50}(?![_").concat(ma,"])"),"g"),eF=new RegExp("@[_.".concat(ma,"]{1,30}(?![_").concat(ma,"])"),"g"),tF=new RegExp("@[-_.".concat(ma,"]{1,50}(?![-_").concat(ma,"])"),"g"),rF=new RegExp("@[_.".concat(ma,"]{1,23}[_").concat(ma,"](?![_").concat(ma,"])"),"g"),nF=new RegExp("[^"+ma+"]"),L_=(function(t){function e(r){var n=t.call(this,r)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:ZD,instagram:eF,soundcloud:tF,tiktok:rF},n.nonWordCharRegex=nF,n.serviceName=r.serviceName,n}return Vl(e,t),e.prototype.parseMatches=function(r){var n,a=this.serviceName,o=this.matcherRegexes[this.serviceName],p=this.nonWordCharRegex,c=this.tagBuilder,d=[];if(!o)return d;for(;(n=o.exec(r))!==null;){var E=n.index,x=r.charAt(E-1);if(E===0||p.test(x)){var k=n[0].replace(/\.+$/g,""),P=k.slice(1);d.push(new k_({tagBuilder:c,matchedText:k,offset:E,serviceName:a,mention:P}))}}return d},e})(md);function aF(t,e){for(var r=e.onOpenTag,n=e.onCloseTag,a=e.onText,o=e.onComment,p=e.onDoctype,c=new Jl,d=0,E=t.length,x=0,k=0,P=c;d"?(P=new Jl(fa(fa({},P),{name:Ot()})),It()):ow.test(et)||BD.test(et)||et===":"||_t()}function J(et){et===">"?_t():ow.test(et)?x=3:_t()}function re(et){Qp.test(et)||(et==="/"?x=12:et===">"?It():et==="<"?qt():et==="="||iw.test(et)||UD.test(et)?_t():x=5)}function me(et){Qp.test(et)?x=6:et==="/"?x=12:et==="="?x=7:et===">"?It():et==="<"?qt():iw.test(et)&&_t()}function le(et){Qp.test(et)||(et==="/"?x=12:et==="="?x=7:et===">"?It():et==="<"?qt():iw.test(et)?_t():x=5)}function ve(et){Qp.test(et)||(et==='"'?x=8:et==="'"?x=9:/[>=`]/.test(et)?_t():et==="<"?qt():x=10)}function be(et){et==='"'&&(x=11)}function ce(et){et==="'"&&(x=11)}function _e(et){Qp.test(et)?x=4:et===">"?It():et==="<"&&qt()}function Ae(et){Qp.test(et)?x=4:et==="/"?x=12:et===">"?It():et==="<"?qt():(x=4,(function(){d--})())}function xe(et){et===">"?(P=new Jl(fa(fa({},P),{isClosing:!0})),It()):x=4}function Oe(et){t.substr(d,2)==="--"?(d+=2,P=new Jl(fa(fa({},P),{type:"comment"})),x=14):t.substr(d,7).toUpperCase()==="DOCTYPE"?(d+=7,P=new Jl(fa(fa({},P),{type:"doctype"})),x=20):_t()}function je(et){et==="-"?x=15:et===">"?_t():x=16}function G(et){et==="-"?x=18:et===">"?_t():x=16}function de(et){et==="-"&&(x=17)}function Ne(et){x=et==="-"?18:16}function Ye(et){et===">"?It():et==="!"?x=19:et==="-"||(x=16)}function ht(et){et==="-"?x=17:et===">"?It():x=16}function Ct(et){et===">"?It():et==="<"&&qt()}function _t(){x=0,P=c}function qt(){x=1,P=new Jl({idx:d})}function It(){var et=t.slice(k,P.idx);et&&a(et,k),P.type==="comment"?o(P.idx):P.type==="doctype"?p(P.idx):(P.isOpening&&r(P.name,P.idx),P.isClosing&&n(P.name,P.idx)),_t(),k=d+1}function Ot(){var et=P.idx+(P.isClosing?2:1);return t.slice(et,d).toLowerCase()}k=0&&a++},onText:function(p,c){if(a===0){var d=(function(k,P){if(!P.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var R,L=[],V=0;R=P.exec(k);)L.push(k.substring(V,R.index)),L.push(R[0]),V=R.index+R[0].length;return L.push(k.substring(V)),L})(p,/( | |<|<|>|>|"|"|')/gi),E=c;d.forEach((function(x,k){if(k%2==0){var P=r.parseText(x,E);o.push.apply(o,P)}E+=x.length}))}},onCloseTag:function(p){n.indexOf(p)>=0&&(a=Math.max(a-1,0))},onComment:function(p){},onDoctype:function(p){}}),o=this.compactMatches(o),o=this.removeUnwantedMatches(o)},t.prototype.compactMatches=function(e){e.sort((function(d,E){return d.getOffset()-E.getOffset()}));for(var r=0;ro?r:r+1;e.splice(c,1);continue}if(e[r+1].getOffset()/g,">"));for(var r=this.parse(e),n=[],a=0,o=0,p=r.length;o\s]/i.test(t)}function cF(t){return/^<\/a\s*>/i.test(t)}function uF(){var t=[],e=new iF({stripPrefix:!1,url:!0,email:!0,replaceFn:function(r){switch(r.getType()){case"url":t.push({text:r.matchedText,url:r.getUrl()});break;case"email":t.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")})}return!1}});return{links:t,autolinker:e}}function pF(t){var e,r,n,a,o,p,c,d,E,x,k,P,R,L=t.tokens,V=null;for(r=0,n=L.length;r=0;e--)if((o=a[e]).type!=="link_close"){if(o.type==="htmltag"&&(lF(o.content)&&k>0&&k--,cF(o.content)&&k++),!(k>0)&&o.type==="text"&&sF.test(o.content)){if(V||(P=(V=uF()).links,R=V.autolinker),p=o.content,P.length=0,R.link(p),!P.length)continue;for(c=[],x=o.level,d=0;dt.length)&&(e=t.length);for(var r=0,n=Array(e);r2?n-2:0),o=2;o1?r-1:0),a=1;a"u"?null:Ta(BigInt.prototype.toString),H_=typeof Symbol>"u"?null:Ta(Symbol.prototype.toString),ao=Ta(Object.prototype.hasOwnProperty),Mv=Ta(Object.prototype.toString),oo=Ta(RegExp.prototype.test),Zp=(function(e){return function(){for(var r=arguments.length,n=new Array(r),a=0;a1?r-1:0),a=1;a2&&arguments[2]!==void 0?arguments[2]:Fm;if(q_&&q_(t,null),!Uu(e))return t;let n=e.length;for(;n--;){let a=e[n];if(typeof a=="string"){const o=r(a);o!==a&&(fF(e)||(e[n]=o),a=o)}t[a]=!0}return t}function SF(t){for(let e=0;e/g),AF=_o(/\${[\w\W]*/g),CF=_o(/^data-[\-\w.\u00B7-\uFFFF]+$/),jF=_o(/^aria-[\-\w]+$/),Q_=_o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),PF=_o(/^(?:\w+script|data):/i),NF=_o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),TF=_o(/^html$/i),IF=_o(/^[a-z][.\w]*(-[.\w]+)+$/i),Z_=_o(/<[/\w!]/g),eO=_o(/<[/\w]/g),MF=_o(/<\/no(script|embed|frames)/i),RF=_o(/\/>/i),bd=1,DF=3,tO=7,rO=8,FF=9,LF=11,$F=function(){return typeof window>"u"?null:window},zu=function(e,r,n,a){return ao(e,r)&&Uu(e[r])?dn(a.base?Uo(a.base):{},e[r],a.transform):n};var mw=(function t(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$F();const r=rr=>t(rr);if(r.version="3.4.13",r.removed=[],!e||!e.document||e.document.nodeType!==FF||!e.Element)return r.isSupported=!1,r;let n=e.document;const a=n,o=a.currentScript;e.DocumentFragment;const p=e.HTMLTemplateElement,c=e.Node,d=e.Element,E=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const k=e.DOMParser,P=e.trustedTypes,R=d.prototype,L=Hs(R,"cloneNode"),V=Hs(R,"remove"),Q=Hs(R,"nextSibling"),J=Hs(R,"childNodes"),re=Hs(R,"parentNode"),me=Hs(R,"shadowRoot"),le=Hs(R,"attributes"),ve=c&&c.prototype?Hs(c.prototype,"nodeType"):null,be=c&&c.prototype?Hs(c.prototype,"nodeName"):null,ce=c&&c.prototype?Hs(c.prototype,"ownerDocument"):null;if(typeof p=="function"){const rr=n.createElement("template");rr.content&&rr.content.ownerDocument&&(n=rr.content.ownerDocument)}let _e,Ae,xe="",Oe=!1,je=0;const G=function(){if(je>0)throw Zp('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},de=function(Ie){G(),je++;try{return _e.createHTML(Ie)}finally{je--}},Ne=function(){return Oe||(Ae=(function(dt,Ht){if(typeof dt!="object"||typeof dt.createPolicy!="function")return null;let ir=null;const Or="data-tt-policy-suffix";Ht&&Ht.hasAttribute(Or)&&(ir=Ht.getAttribute(Or));const Pr="dompurify"+(ir?"#"+ir:"");try{return dt.createPolicy(Pr,{createHTML:$r=>$r,createScriptURL:$r=>$r})}catch{return console.warn("TrustedTypes policy "+Pr+" could not be created."),null}})(P,o),Oe=!0),Ae},Ye=n,ht=Ye.implementation,Ct=Ye.createNodeIterator,_t=Ye.createDocumentFragment,qt=Ye.getElementsByTagName,It=a.importNode;let Ot={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported=typeof B_=="function"&&typeof re=="function"&&ht&&ht.createHTMLDocument!==void 0;const et=OF,Dt=kF,or=AF,Ut=CF,pr=jF,W=PF,$e=NF,Je=IF;let Ft=Q_,it=null;const bt=dn({},[...K_,...pw,...hw,...dw,...G_]);let ut=null;const Xt=dn({},[...Y_,...fw,...X_,...Rv]);let zt=Object.seal(gd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),tr=null,Er=null;const dr=Object.seal(gd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let qr=!0,en=!0,kn=!1,ln=!0,jt=!1,We=!0,Kr=!1,Lr=!1,zr=null,yn=null,En=!1,Pn=!1,Ua=!1,Dn=!1,Di=!0,vn=!1;const cn="user-content-";let hi=!0,Hl=!1,Xs={},Zo=null;const so=dn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Bk=null;const qk=dn({},["audio","video","img","source","image","track"]);let qw=null;const Uk=dn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xv="http://www.w3.org/1998/Math/MathML",Qv="http://www.w3.org/2000/svg",Kl="http://www.w3.org/1999/xhtml";let _d=Kl,Uw=!1,zw=null;const wU=dn({},[Xv,Qv,Kl],uw),zk=xo(["mi","mo","mn","ms","mtext"]);let Vw=dn({},zk);const Vk=xo(["annotation-xml"]);let Jw=dn({},Vk);const EU=dn({},["title","style","font","a","script"]);let Jm=null;const SU=["application/xhtml+xml","text/html"];let oa=null,Od=null;const xU=n.createElement("form"),Jk=function(Ie){return Ie instanceof RegExp||Ie instanceof Function},Ww=function(){let Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Od&&Od===Ie)return;Ie&&typeof Ie=="object"||(Ie={}),Ie=Uo(Ie),Jm=SU.indexOf(Ie.PARSER_MEDIA_TYPE)===-1?"text/html":Ie.PARSER_MEDIA_TYPE,oa=Jm==="application/xhtml+xml"?uw:Fm,it=zu(Ie,"ALLOWED_TAGS",bt,{transform:oa}),ut=zu(Ie,"ALLOWED_ATTR",Xt,{transform:oa}),zw=zu(Ie,"ALLOWED_NAMESPACES",wU,{transform:uw}),qw=zu(Ie,"ADD_URI_SAFE_ATTR",Uk,{transform:oa,base:Uk}),Bk=zu(Ie,"ADD_DATA_URI_TAGS",qk,{transform:oa,base:qk}),Zo=zu(Ie,"FORBID_CONTENTS",so,{transform:oa}),tr=zu(Ie,"FORBID_TAGS",Uo({}),{transform:oa}),Er=zu(Ie,"FORBID_ATTR",Uo({}),{transform:oa}),Xs=!!ao(Ie,"USE_PROFILES")&&(Ie.USE_PROFILES&&typeof Ie.USE_PROFILES=="object"?Uo(Ie.USE_PROFILES):Ie.USE_PROFILES),qr=Ie.ALLOW_ARIA_ATTR!==!1,en=Ie.ALLOW_DATA_ATTR!==!1,kn=Ie.ALLOW_UNKNOWN_PROTOCOLS||!1,ln=Ie.ALLOW_SELF_CLOSE_IN_ATTR!==!1,jt=Ie.SAFE_FOR_TEMPLATES||!1,We=Ie.SAFE_FOR_XML!==!1,Kr=Ie.WHOLE_DOCUMENT||!1,Pn=Ie.RETURN_DOM||!1,Ua=Ie.RETURN_DOM_FRAGMENT||!1,Dn=Ie.RETURN_TRUSTED_TYPE||!1,En=Ie.FORCE_BODY||!1,Di=Ie.SANITIZE_DOM!==!1,vn=Ie.SANITIZE_NAMED_PROPS||!1,hi=Ie.KEEP_CONTENT!==!1,Hl=Ie.IN_PLACE||!1,Ft=(function(ir){try{return oo(ir,""),!0}catch{return!1}})(Ie.ALLOWED_URI_REGEXP)?Ie.ALLOWED_URI_REGEXP:Q_,_d=typeof Ie.NAMESPACE=="string"?Ie.NAMESPACE:Kl,Vw=ao(Ie,"MATHML_TEXT_INTEGRATION_POINTS")&&Ie.MATHML_TEXT_INTEGRATION_POINTS&&typeof Ie.MATHML_TEXT_INTEGRATION_POINTS=="object"?Uo(Ie.MATHML_TEXT_INTEGRATION_POINTS):dn({},zk),Jw=ao(Ie,"HTML_INTEGRATION_POINTS")&&Ie.HTML_INTEGRATION_POINTS&&typeof Ie.HTML_INTEGRATION_POINTS=="object"?Uo(Ie.HTML_INTEGRATION_POINTS):dn({},Vk);const dt=ao(Ie,"CUSTOM_ELEMENT_HANDLING")&&Ie.CUSTOM_ELEMENT_HANDLING&&typeof Ie.CUSTOM_ELEMENT_HANDLING=="object"?Uo(Ie.CUSTOM_ELEMENT_HANDLING):gd(null);if(zt=gd(null),ao(dt,"tagNameCheck")&&Jk(dt.tagNameCheck)&&(zt.tagNameCheck=dt.tagNameCheck),ao(dt,"attributeNameCheck")&&Jk(dt.attributeNameCheck)&&(zt.attributeNameCheck=dt.attributeNameCheck),ao(dt,"allowCustomizedBuiltInElements")&&typeof dt.allowCustomizedBuiltInElements=="boolean"&&(zt.allowCustomizedBuiltInElements=dt.allowCustomizedBuiltInElements),_o(zt),jt&&(en=!1),Ua&&(Pn=!0),Xs&&(it=dn({},G_),ut=gd(null),Xs.html===!0&&(dn(it,K_),dn(ut,Y_)),Xs.svg===!0&&(dn(it,pw),dn(ut,fw),dn(ut,Rv)),Xs.svgFilters===!0&&(dn(it,hw),dn(ut,fw),dn(ut,Rv)),Xs.mathMl===!0&&(dn(it,dw),dn(ut,X_),dn(ut,Rv))),dr.tagCheck=null,dr.attributeCheck=null,ao(Ie,"ADD_TAGS")&&(typeof Ie.ADD_TAGS=="function"?dr.tagCheck=Ie.ADD_TAGS:Uu(Ie.ADD_TAGS)&&(it===bt&&(it=Uo(it)),dn(it,Ie.ADD_TAGS,oa))),ao(Ie,"ADD_ATTR")&&(typeof Ie.ADD_ATTR=="function"?dr.attributeCheck=Ie.ADD_ATTR:Uu(Ie.ADD_ATTR)&&(ut===Xt&&(ut=Uo(ut)),dn(ut,Ie.ADD_ATTR,oa))),ao(Ie,"ADD_URI_SAFE_ATTR")&&Uu(Ie.ADD_URI_SAFE_ATTR)&&dn(qw,Ie.ADD_URI_SAFE_ATTR,oa),ao(Ie,"FORBID_CONTENTS")&&Uu(Ie.FORBID_CONTENTS)&&(Zo===so&&(Zo=Uo(Zo)),dn(Zo,Ie.FORBID_CONTENTS,oa)),ao(Ie,"ADD_FORBID_CONTENTS")&&Uu(Ie.ADD_FORBID_CONTENTS)&&(Zo===so&&(Zo=Uo(Zo)),dn(Zo,Ie.ADD_FORBID_CONTENTS,oa)),hi&&(it["#text"]=!0),Kr&&dn(it,["html","head","body"]),it.table&&(dn(it,["tbody"]),delete tr.tbody),Ie.TRUSTED_TYPES_POLICY){if(typeof Ie.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ie.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zp('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Ht=_e;_e=Ie.TRUSTED_TYPES_POLICY;try{xe=de("")}catch(ir){throw _e=Ht,ir}}else Ie.TRUSTED_TYPES_POLICY===null?(_e=void 0,xe=""):(_e===void 0&&(_e=Ne()),_e&&typeof xe=="string"&&(xe=de("")));xo&&xo(Ie),Od=Ie},Wk=dn({},[...pw,...hw,...xF]),Hk=dn({},[...dw,..._F]),_U=function(Ie){let dt=re(Ie);dt&&dt.tagName||(dt={namespaceURI:_d,tagName:"template"});const Ht=Fm(Ie.tagName),ir=Fm(dt.tagName);return!!zw[Ie.namespaceURI]&&(Ie.namespaceURI===Qv?(function(Pr,$r,ga){return $r.namespaceURI===Kl?Pr==="svg":$r.namespaceURI===Xv?Pr==="svg"&&(ga==="annotation-xml"||Vw[ga]):!!Wk[Pr]})(Ht,dt,ir):Ie.namespaceURI===Xv?(function(Pr,$r,ga){return $r.namespaceURI===Kl?Pr==="math":$r.namespaceURI===Qv?Pr==="math"&&Jw[ga]:!!Hk[Pr]})(Ht,dt,ir):Ie.namespaceURI===Kl?(function(Pr,$r,ga){return!($r.namespaceURI===Qv&&!Jw[ga])&&!($r.namespaceURI===Xv&&!Vw[ga])&&!Hk[Pr]&&(EU[Pr]||!Wk[Pr])})(Ht,dt,ir):!(Jm!=="application/xhtml+xml"||!zw[Ie.namespaceURI]))},Ju=function(Ie){vd(r.removed,{element:Ie});try{re(Ie).removeChild(Ie)}catch{if(V(Ie),!re(Ie))throw Zp("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Zv=function(Ie){Wm(Ie);const dt=J(Ie);if(dt){const ir=[];yd(dt,(Or=>{vd(ir,Or)})),yd(ir,(Or=>{try{V(Or)}catch{}}))}const Ht=le(Ie);if(Ht)for(let ir=Ht.length-1;ir>=0;--ir){const Or=Ht[ir],Pr=Or&&Or.name;if(typeof Pr=="string")try{Ie.removeAttribute(Pr)}catch{}}},kd=function(Ie,dt){try{vd(r.removed,{attribute:dt.getAttributeNode(Ie),from:dt})}catch{vd(r.removed,{attribute:null,from:dt})}if(dt.removeAttribute(Ie),Ie==="is")if(Pn||Ua)try{Ju(dt)}catch{}else try{dt.setAttribute(Ie,"")}catch{}},OU=function(Ie){const dt=le(Ie);if(dt)for(let Ht=dt.length-1;Ht>=0;--Ht){const ir=dt[Ht],Or=ir&&ir.name;if(typeof Or=="string"&&!ut[oa(Or)])try{Ie.removeAttribute(Or)}catch{}}},Wm=function(Ie){const dt=[Ie];for(;dt.length>0;){const Ht=dt.pop();(ve?ve(Ht):Ht.nodeType)===bd&&OU(Ht);const ir=J(Ht);if(ir)for(let Or=ir.length-1;Or>=0;--Or)dt.push(ir[Or])}},Kk=function(Ie){let dt=null,Ht=null;if(En)Ie=""+Ie;else{const Pr=V_(Ie,/^[\r\n\t ]+/);Ht=Pr&&Pr[0]}Jm==="application/xhtml+xml"&&_d===Kl&&(Ie=''+Ie+"");const ir=_e?de(Ie):Ie;if(_d===Kl)try{dt=new k().parseFromString(ir,Jm)}catch{}if(!dt||!dt.documentElement){dt=ht.createDocument(_d,"template",null);try{dt.documentElement.innerHTML=Uw?xe:ir}catch{}}const Or=dt.body||dt.documentElement;return Ie&&Ht&&Or.insertBefore(n.createTextNode(Ht),Or.childNodes[0]||null),_d===Kl?qt.call(dt,Kr?"html":"body")[0]:Kr?dt.documentElement:Or},Gk=function(Ie){const dt=ce?ce(Ie):Ie.ownerDocument;return Ct.call(dt||Ie,Ie,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},e0=function(Ie){return Ie=Lm(Ie,et," "),Ie=Lm(Ie,Dt," "),Ie=Lm(Ie,or," ")},Hw=function(Ie){var dt;Ie.normalize();const Ht=ce?ce(Ie):Ie.ownerDocument,ir=Ct.call(Ht||Ie,Ie,E.SHOW_TEXT|E.SHOW_COMMENT|E.SHOW_CDATA_SECTION|E.SHOW_PROCESSING_INSTRUCTION,null);let Or=ir.nextNode();for(;Or;)Or.data=e0(Or.data),Or=ir.nextNode();const Pr=(dt=Ie.querySelectorAll)===null||dt===void 0?void 0:dt.call(Ie,"template");Pr&&yd(Pr,($r=>{Ad($r.content)&&Hw($r.content)}))},t0=function(Ie){const dt=be?be(Ie):null;return typeof dt=="string"&&oa(dt)==="form"&&(typeof Ie.nodeName!="string"||typeof Ie.textContent!="string"||typeof Ie.removeChild!="function"||Ie.attributes!==le(Ie)||typeof Ie.removeAttribute!="function"||typeof Ie.setAttribute!="function"||typeof Ie.namespaceURI!="string"||typeof Ie.insertBefore!="function"||typeof Ie.hasChildNodes!="function"||Ie.nodeType!==ve(Ie)||Ie.childNodes!==J(Ie))},Ad=function(Ie){if(!ve||typeof Ie!="object"||Ie===null)return!1;try{return ve(Ie)===LF}catch{return!1}},Hm=function(Ie){if(!ve||typeof Ie!="object"||Ie===null)return!1;try{return typeof ve(Ie)=="number"}catch{return!1}};function Gl(rr,Ie,dt){rr.length!==0&&yd(rr,(Ht=>{Ht.call(r,Ie,dt,Od)}))}const Yk=function(Ie,dt,Ht,ir){return Ie.length===0?dt:dt===Ht||dt===ir?Uo(dt):dt},Xk=function(Ie,dt){if(Gl(Ot.beforeSanitizeElements,Ie,null),Ie!==dt&&re(Ie)===null)return Hl&&Wm(Ie),!0;if(t0(Ie))return Ju(Ie),!0;const Ht=oa(be?be(Ie):Ie.nodeName);if(it=Yk(Ot.uponSanitizeElement,it,bt,zr),Gl(Ot.uponSanitizeElement,Ie,{tagName:Ht,allowedTags:it}),Ie!==dt&&re(Ie)===null)return Hl&&Wm(Ie),!0;if((function(Or,Pr){return!!(We&&Or.hasChildNodes()&&!Hm(Or.firstElementChild)&&oo(Z_,Or.textContent)&&oo(Z_,Or.innerHTML))||!(!We||Or.namespaceURI!==Kl||Pr!=="style"||!Hm(Or.firstElementChild))||Or.nodeType===tO||!(!We||Or.nodeType!==rO||!oo(eO,Or.data))})(Ie,Ht))return Ju(Ie),!0;if(tr[Ht]||!(dr.tagCheck instanceof Function&&dr.tagCheck(Ht))&&!it[Ht]){const ir=(function(Pr,$r,ga){if(!tr[$r]&&Zk($r)&&(zt.tagNameCheck instanceof RegExp&&oo(zt.tagNameCheck,$r)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck($r)))return!1;if(hi&&!Zo[$r]){const ei=re(Pr),Sn=J(Pr);if(Sn&&ei)for(let Fi=Sn.length-1;Fi>=0;--Fi){const Qn=Pr===ga?L(Sn[Fi],!0):Sn[Fi];ei.insertBefore(Qn,Q(Pr))}}return Ju(Pr),!0})(Ie,Ht,dt);return ir===!1&&Gl(Ot.afterSanitizeElements,Ie,null),ir}if((ve?ve(Ie):Ie.nodeType)===bd&&!_U(Ie)||(Ht==="noscript"||Ht==="noembed"||Ht==="noframes")&&oo(MF,Ie.innerHTML))return Ju(Ie),!0;if(jt&&Ie.nodeType===DF){const ir=e0(Ie.textContent);Ie.textContent!==ir&&(vd(r.removed,{element:Ie.cloneNode()}),Ie.textContent=ir)}return Gl(Ot.afterSanitizeElements,Ie,null),!1},Qk=function(Ie,dt,Ht){if(Er[dt]||We&&dt==="patchsrc"||We&&dt==="for"&&Ie!=="label"&&Ie!=="output"||Di&&(dt==="id"||dt==="name")&&(Ht in n||Ht in xU))return!1;const ir=ut[dt]||dr.attributeCheck instanceof Function&&dr.attributeCheck(dt,Ie);if(!(en&&oo(Ut,dt))){if(!(qr&&oo(pr,dt))){if(ir){if(!qw[dt]){if(!oo(Ft,Lm(Ht,$e,""))){if((dt!=="src"&&dt!=="xlink:href"&&dt!=="href"||Ie==="script"||J_(Ht,"data:")!==0||!Bk[Ie])&&!(kn&&!oo(W,Lm(Ht,$e,"")))){if(Ht)return!1}}}}else if(!(Zk(Ie)&&(zt.tagNameCheck instanceof RegExp&&oo(zt.tagNameCheck,Ie)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(Ie))&&(zt.attributeNameCheck instanceof RegExp&&oo(zt.attributeNameCheck,dt)||zt.attributeNameCheck instanceof Function&&zt.attributeNameCheck(dt,Ie))||dt==="is"&&zt.allowCustomizedBuiltInElements&&(zt.tagNameCheck instanceof RegExp&&oo(zt.tagNameCheck,Ht)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(Ht))))return!1}}return!0},kU=dn({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Zk=function(Ie){return!kU[Fm(Ie)]&&oo(Je,Ie)},AU=function(Ie,dt,Ht,ir){if(_e&&typeof P=="object"&&typeof P.getAttributeType=="function"&&!Ht)switch(P.getAttributeType(Ie,dt)){case"TrustedHTML":return de(ir);case"TrustedScriptURL":return(function(Pr){G(),je++;try{return _e.createScriptURL(Pr)}finally{je--}})(ir)}return ir},CU=function(Ie,dt,Ht,ir){try{Ht?Ie.setAttributeNS(Ht,dt,ir):Ie.setAttribute(dt,ir),t0(Ie)?Ju(Ie):z_(r.removed)}catch{kd(dt,Ie)}},eA=function(Ie){Gl(Ot.beforeSanitizeAttributes,Ie,null);const dt=Ie.attributes;if(!dt||t0(Ie))return;ut=Yk(Ot.uponSanitizeAttribute,ut,Xt,yn);const Ht={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ut,forceKeepAttr:void 0};let ir=dt.length;const Or=oa(Ie.nodeName);for(;ir--;){const Pr=dt[ir],$r=Pr.name,ga=Pr.namespaceURI,ei=Pr.value,Sn=oa($r),Fi=ei;let Qn=$r==="value"?Fi:bF(Fi);Ht.attrName=Sn,Ht.attrValue=Qn,Ht.keepAttr=!0,Ht.forceKeepAttr=void 0,Gl(Ot.uponSanitizeAttribute,Ie,Ht),Qn=Ht.attrValue,!vn||Sn!=="id"&&Sn!=="name"||J_(Qn,cn)===0||(kd($r,Ie),Qn=cn+Qn),We&&oo(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Qn)||Sn==="attributename"&&V_(Qn,"href")?kd($r,Ie):Ht.forceKeepAttr||(Ht.keepAttr&&(ln||!oo(RF,Qn))?(jt&&(Qn=e0(Qn)),Qk(Or,Sn,Qn)?(Qn=AU(Or,Sn,ga,Qn),Qn!==Fi&&CU(Ie,$r,ga,Qn)):kd($r,Ie)):kd($r,Ie))}Gl(Ot.afterSanitizeAttributes,Ie,null)},r0=function(Ie){let dt=null;const Ht=Gk(Ie);for(Gl(Ot.beforeSanitizeShadowDOM,Ie,null);dt=Ht.nextNode();)if(Gl(Ot.uponSanitizeShadowNode,dt,null),Xk(dt,Ie),eA(dt),Ad(dt.content)&&r0(dt.content),(ve?ve(dt):dt.nodeType)===bd){const ir=me(dt);Ad(ir)&&(Kw(ir),r0(ir))}Gl(Ot.afterSanitizeShadowDOM,Ie,null)},Kw=function(Ie){const dt=[{node:Ie,shadow:null}];for(;dt.length>0;){const Ht=dt.pop();if(Ht.shadow){r0(Ht.shadow);continue}const ir=Ht.node,Or=(ve?ve(ir):ir.nodeType)===bd,Pr=J(ir);if(Pr)for(let $r=Pr.length-1;$r>=0;--$r)dt.push({node:Pr[$r],shadow:null});if(Or){const $r=be?be(ir):null;if(typeof $r=="string"&&oa($r)==="template"){const ga=ir.content;Ad(ga)&&dt.push({node:ga,shadow:null})}}if(Or){const $r=me(ir);Ad($r)&&dt.push({node:null,shadow:$r},{node:$r,shadow:null})}}};return r.sanitize=function(rr){let Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dt=null,Ht=null,ir=null,Or=null;if(Uw=!rr,Uw&&(rr=""),typeof rr!="string"&&!Hm(rr)&&typeof(rr=(function(Sn){switch(typeof Sn){case"string":return Sn;case"number":return wF(Sn);case"boolean":return EF(Sn);case"bigint":return W_?W_(Sn):"0";case"symbol":return H_?H_(Sn):"Symbol()";case"undefined":default:return Mv(Sn);case"function":case"object":{if(Sn===null)return Mv(Sn);const Fi=Sn,Qn=Hs(Fi,"toString");if(typeof Qn=="function"){const ps=Qn(Fi);return typeof ps=="string"?ps:Mv(ps)}return Mv(Sn)}}})(rr))!="string")throw Zp("dirty is not a string, aborting");if(!r.isSupported)return rr;Lr?(it=zr,ut=yn):Ww(Ie),(Ot.uponSanitizeElement.length>0||Ot.uponSanitizeAttribute.length>0)&&(it=Uo(it)),Ot.uponSanitizeAttribute.length>0&&(ut=Uo(ut)),r.removed=[];const Pr=Hl&&typeof rr!="string"&&Hm(rr);if(Pr){(function(Fi){if(!We)return;const Qn=[Fi];for(;Qn.length>0;){const ps=Qn.pop(),Gw=ve?ve(ps):ps.nodeType;if(Gw===tO||Gw===rO&&oo(eO,ps.data)){try{V(ps)}catch{}continue}if(Gw===bd){const Qs=ps,tA=oa(be?be(ps):ps.nodeName);try{Qs.hasAttribute&&Qs.hasAttribute("patchsrc")&&Qs.removeAttribute("patchsrc"),Qs.hasAttribute&&Qs.hasAttribute("for")&&tA!=="label"&&tA!=="output"&&Qs.removeAttribute("for")}catch{}}const Yw=J(ps);if(Yw)for(let Qs=Yw.length-1;Qs>=0;--Qs)Qn.push(Yw[Qs])}})(rr);const ei=be?be(rr):rr.nodeName;if(typeof ei=="string"){const Sn=oa(ei);if(!it[Sn]||tr[Sn])throw Zv(rr),Zp("root node is forbidden and cannot be sanitized in-place")}if(t0(rr))throw Zv(rr),Zp("root node is clobbered and cannot be sanitized in-place");try{Kw(rr)}catch(Sn){throw Zv(rr),Sn}}else if(Hm(rr))dt=Kk(""),Ht=dt.ownerDocument.importNode(rr,!0),Ht.nodeType===bd&&Ht.nodeName==="BODY"||Ht.nodeName==="HTML"?dt=Ht:dt.appendChild(Ht),Kw(Ht);else{if(!Pn&&!jt&&!Kr&&rr.indexOf("<")===-1)return _e&&Dn?de(rr):rr;if(dt=Kk(rr),!dt)return Pn?null:Dn?xe:""}dt&&En&&Ju(dt.firstChild);const $r=Pr?rr:dt;try{const ei=Gk($r);for(;ir=ei.nextNode();)Xk(ir,$r),eA(ir),Ad(ir.content)&&r0(ir.content)}catch(ei){throw Pr&&(Zv(rr),yd(r.removed,(Sn=>{Sn.element&&Wm(Sn.element)}))),ei}if(Pr)return yd(r.removed,(ei=>{ei.element&&Wm(ei.element)})),jt&&Hw(rr),rr;if(Pn){if(jt&&Hw(dt),Ua)for(Or=_t.call(dt.ownerDocument);dt.firstChild;)Or.appendChild(dt.firstChild);else Or=dt;return(ut.shadowroot||ut.shadowrootmode)&&(Or=It.call(a,Or,!0)),Or}let ga=Kr?dt.outerHTML:dt.innerHTML;return Kr&&it["!doctype"]&&dt.ownerDocument&&dt.ownerDocument.doctype&&dt.ownerDocument.doctype.name&&oo(TF,dt.ownerDocument.doctype.name)&&(ga=" +`+ga),jt&&(ga=e0(ga)),_e&&Dn?de(ga):ga},r.setConfig=function(){Ww(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Lr=!0,zr=it,yn=ut},r.clearConfig=function(){Od=null,Lr=!1,zr=null,yn=null,_e=Ae,xe=""},r.isValidAttribute=function(rr,Ie,dt){Od||Ww({});const Ht=oa(rr),ir=oa(Ie);return Qk(Ht,ir,dt)},r.addHook=function(rr,Ie){typeof Ie=="function"&&ao(Ot,rr)&&vd(Ot[rr],Ie)},r.removeHook=function(rr,Ie){if(ao(Ot,rr)){if(Ie!==void 0){const dt=yF(Ot[rr],Ie);return dt===-1?void 0:vF(Ot[rr],dt,1)[0]}return z_(Ot[rr])}},r.removeHooks=function(rr){ao(Ot,rr)&&(Ot[rr]=[])},r.removeAllHooks=function(){Ot={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r})();mw.addHook&&mw.addHook("beforeSanitizeElements",(function(t){return t.href&&t.setAttribute("rel","noopener noreferrer"),t}));const BF=function({source:e,className:r="",getConfigs:n=()=>({useUnsafeMarkdown:!1})}){if(typeof e!="string")return null;const a=new Nc({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(hF);a.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:o}=n(),p=a.render(e),c=$m(p,{useUnsafeMarkdown:o});return e&&p&&c?u.createElement("div",{className:Xr()(r,"markdown"),dangerouslySetInnerHTML:{__html:c}}):null};function $m(t,{useUnsafeMarkdown:e=!1}={}){const r=e,n=e?[]:["style","class"];return e&&!$m.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),$m.hasWarnedAboutDeprecation=!0),mw.sanitize(t,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:r,FORBID_ATTR:n})}$m.hasWarnedAboutDeprecation=!1;class qF extends u.Component{render(){const{errSelectors:e,specSelectors:r,getComponent:n}=this.props,a=n("SvgAssets"),o=n("InfoContainer",!0),p=n("VersionPragmaFilter"),c=n("operations",!0),d=n("Models",!0),E=n("Webhooks",!0),x=n("Row"),k=n("Col"),P=n("errors",!0),R=n("ServersContainer",!0),L=n("SchemesContainer",!0),V=n("AuthorizeBtnContainer",!0),Q=n("FilterContainer",!0),J=r.isSwagger2(),re=r.isOAS3(),me=r.isOAS31(),le=r.isOAS32(),ve=!r.specStr(),be=r.loadingStatus();let ce=null;if(be==="loading"&&(ce=u.createElement("div",{className:"info"},u.createElement("div",{className:"loading-container"},u.createElement("div",{className:"loading"})))),be==="failed"&&(ce=u.createElement("div",{className:"info"},u.createElement("div",{className:"loading-container"},u.createElement("h4",{className:"title"},"Failed to load API definition."),u.createElement(P,null)))),be==="failedConfig"){const G=e.lastError(),de=G?G.get("message"):"";ce=u.createElement("div",{className:"info failed-config"},u.createElement("div",{className:"loading-container"},u.createElement("h4",{className:"title"},"Failed to load remote configuration."),u.createElement("p",null,de)))}if(!ce&&ve&&(ce=u.createElement("h4",null,"No API definition provided.")),ce)return u.createElement("div",{className:"swagger-ui"},u.createElement("div",{className:"loading-container"},ce));const _e=r.servers(),Ae=r.schemes(),xe=_e&&_e.size,Oe=Ae&&Ae.size,je=!!r.securityDefinitions();return u.createElement("div",{className:"swagger-ui"},u.createElement(a,null),u.createElement(p,{isSwagger2:J,isOAS3:re,isOAS31:me,isOAS32:le,alsoShow:u.createElement(P,null)},u.createElement(P,null),u.createElement(x,{className:"information-container"},u.createElement(k,{mobile:12},u.createElement(o,null))),xe||Oe||je?u.createElement("div",{className:"scheme-container"},u.createElement(k,{className:"schemes wrapper",mobile:12},xe||Oe?u.createElement("div",{className:"schemes-server-container"},xe?u.createElement(R,null):null,Oe?u.createElement(L,null):null):null,je?u.createElement(V,null):null)):null,u.createElement(Q,null),u.createElement("main",{id:"operations",tabIndex:"-1",style:{outline:"none"}},u.createElement(x,null,u.createElement(k,{mobile:12,desktop:12},u.createElement(c,null))),me&&u.createElement(x,{className:"webhooks-container"},u.createElement(k,{mobile:12,desktop:12},u.createElement(E,null))),u.createElement(x,null,u.createElement(k,{mobile:12,desktop:12},u.createElement(d,null))))))}}const UF=()=>({components:{App:P9,authorizationPopup:N9,authorizeBtn:T9,AuthorizeBtnContainer:I9,authorizeOperationBtn:M9,auths:R9,AuthItem:D9,authError:F9,oauth2:V9,apiKeyAuth:L9,basicAuth:$9,clear:J9,liveResponse:K9,InitializedInput:R7,info:$7,InfoContainer:B7,InfoUrl:F7,InfoBasePath:D7,Contact:U7,License:V7,JumpToPath:J7,CopyToClipboardBtn:W7,onlineValidatorBadge:Qx,operations:Y9,operation:Q9,OperationSummary:r7,OperationSummaryMethod:n7,OperationSummaryPath:a7,responses:q1,response:s7,ResponseExtension:l7,responseBody:h7,parameters:d7,parameterRow:y7,execute:v7,headers:b7,errors:w7,contentType:_7,overview:I7,footer:H7,FilterContainer:K7,ParamBody:J1,curl:G7,Property:Y7,TryItOutButton:X7,Markdown:BF,BaseLayout:qF,VersionPragmaFilter:Q7,VersionStamp:Z7,OperationExt:o7,OperationExtRow:i7,ParameterExt:f7,ParameterIncludeEmpty:g7,OperationTag:X9,OperationContainer:Z9,OpenAPIVersion:eD,DeepLink:tD,SvgAssets:rD,Example:B9,ExamplesSelect:q9,ExamplesSelectValueRetainer:U9}}),zF=()=>({components:{...Ve}}),nO=()=>[Zl,Nd,mx,uh,Nx,Tx,ey,sh,pp,Fd,Yd,Ah,UF,zF,fx,Ss,Ix,up,Id,Ld,Ol,Hx,Kx,Xx()],VF=(0,H.Map)();function Bm(t){return(e,r)=>(...n)=>{if(r.getSystem().specSelectors.isOAS3()){const a=t(...n);return typeof a=="function"?a(r):a}return e(...n)}}const qm=Bm(vu()(null)),JF=Bm(((t,e)=>r=>r.getSystem().specSelectors.findSchema(e))),WF=Bm((()=>t=>{const e=t.getSystem().specSelectors.specJson().getIn(["components","schemas"]);return H.Map.isMap(e)?e:VF})),HF=Bm((()=>t=>t.getSystem().specSelectors.specJson().hasIn(["servers",0]))),KF=Bm(yr(li,(t=>t.getIn(["components","securitySchemes"])||null))),GF=(t,e)=>(r,...n)=>e.specSelectors.isOAS3()?e.oas3Selectors.validOperationMethods():t(...n),YF=qm,XF=qm,QF=qm,ZF=qm,eL=qm,tL=(function(e){return(r,n)=>(...a)=>{if(n.getSystem().specSelectors.isOAS3()){let o=n.getState().getIn(["spec","resolvedSubtrees","components","securitySchemes"]);return e(n,o,...a)}return r(...a)}})(yr((t=>t),(({specSelectors:t})=>t.securityDefinitions()),((t,e)=>{let r=(0,H.List)();return e&&e.entrySeq().forEach((([n,a])=>{const o=a?.get("type");if(o==="oauth2"&&a.get("flows").entrySeq().forEach((([p,c])=>{let d=(0,H.fromJS)({flow:p,authorizationUrl:c.get("authorizationUrl"),tokenUrl:c.get("tokenUrl"),scopes:c.get("scopes"),type:a.get("type"),description:a.get("description")});r=r.push(new H.Map({[n]:d.filter((E=>E!==void 0))}))})),o!=="http"&&o!=="apiKey"||(r=r.push(new H.Map({[n]:a}))),o==="openIdConnect"&&a.get("openIdConnectData")){let p=a.get("openIdConnectData");(p.get("grant_types_supported")||["authorization_code","implicit"]).forEach((c=>{let d=p.get("scopes_supported")&&p.get("scopes_supported").reduce(((x,k)=>x.set(k,"")),new H.Map),E=(0,H.fromJS)({flow:c,authorizationUrl:p.get("authorization_endpoint"),tokenUrl:p.get("token_endpoint"),scopes:d,type:"oauth2",openIdConnectUrl:a.get("openIdConnectUrl")});r=r.push(new H.Map({[n]:E.filter((x=>x!==void 0))}))}))}})),r})));function Um(t){return(e,r)=>n=>typeof r.specSelectors?.isOAS3=="function"?r.specSelectors.isOAS3()?u.createElement(t,Yr()({},n,r,{Ori:e})):u.createElement(e,n):(console.warn("OAS3 wrapper: couldn't get spec"),null)}const rL=(0,H.Map)(),nL=()=>t=>(function(r){const n=r.get("swagger");return typeof n=="string"&&n==="2.0"})(t.getSystem().specSelectors.specJson()),aL=()=>t=>(function(r){const n=r.get("openapi");return typeof n=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(n)})(t.getSystem().specSelectors.specJson()),oL=()=>t=>t.getSystem().specSelectors.isOAS30();function aO(t){return(e,...r)=>n=>{if(n.specSelectors.isOAS3()){const a=t(e,...r);return typeof a=="function"?a(n):a}return null}}const iL=aO((()=>t=>t.specSelectors.specJson().get("servers",rL))),sL=(t,e)=>{const r=t.getIn(["resolvedSubtrees","components","schemas",e],null),n=t.getIn(["json","components","schemas",e],null);return r||n||null},lL=aO(((t,{callbacks:e,specPath:r})=>n=>{const a=n.specSelectors.validOperationMethods();return H.Map.isMap(e)?e.reduce(((o,p,c)=>{if(!H.Map.isMap(p))return o;const d=p.reduce(((E,x,k)=>{if(!H.Map.isMap(x))return E;const P=x.entrySeq().filter((([R])=>a.includes(R))).map((([R,L])=>({operation:(0,H.Map)({operation:L}),method:R,path:k,callbackName:c,specPath:r.concat([c,k,R])})));return E.concat(P)}),(0,H.List)());return o.concat(d)}),(0,H.List)()).groupBy((o=>o.callbackName)).map((o=>o.toArray())).toObject():{}})),cL=({callbacks:t,specPath:e,specSelectors:r,getComponent:n})=>{const a=r.callbacksOperations({callbacks:t,specPath:e}),o=Object.keys(a),p=n("OperationContainer",!0);return o.length===0?u.createElement("span",null,"No callbacks"):u.createElement("div",null,o.map((c=>u.createElement("div",{key:`${c}`},u.createElement("h2",null,c),a[c].map((d=>u.createElement(p,{key:`${c}-${d.path}-${d.method}`,op:d.operation,tag:"callbacks",method:d.method,path:d.path,specPath:d.specPath,allowTryItOut:!1})))))))},Dv=(t,e,r,n)=>{const a=t.getIn(["content",e])??(0,H.OrderedMap)(),o=a.get("schema",(0,H.OrderedMap)()),p=a.get("examples")!==void 0,c=a.get("example"),d=p?a.getIn(["examples",r,"value"]):c;return Gr(n.getSampleSchema(o,e,{includeWriteOnly:!0},d))},uL=({userHasEditedBody:t,requestBody:e,requestBodyValue:r,requestBodyInclusionSetting:n,requestBodyErrors:a,getComponent:o,getConfigs:p,specSelectors:c,fn:d,contentType:E,isExecute:x,specPath:k,onChange:P,onChangeIncludeEmpty:R,activeExamplesKey:L,updateActiveExamplesKey:V,setRetainRequestBodyValueFlag:Q})=>{const J=qt=>{P(qt.target.files[0])},re=qt=>{let It={key:qt,shouldDispatchInit:!1,defaultValue:!0};return n.get(qt,"no value")==="no value"&&(It.shouldDispatchInit=!0),It},me=o("Markdown",!0),le=o("modelExample"),ve=o("RequestBodyEditor"),be=o("HighlightCode",!0),ce=o("ExamplesSelectValueRetainer"),_e=o("Example"),Ae=o("ParameterIncludeEmpty"),{showCommonExtensions:xe}=p(),Oe=e?.get("description")??null,je=e?.get("content")??new H.OrderedMap;E=E||je.keySeq().first()||"";const G=je.get(E)??(0,H.OrderedMap)(),de=G.get("schema",(0,H.OrderedMap)()),Ne=G.get("examples",null),Ye=Ne?.map(((qt,It)=>{const Ot=qt?.get("value",null);return Ot&&(qt=qt.set("value",Dv(e,E,It,d),Ot)),qt}));if(a=H.List.isList(a)?a:(0,H.List)(),d.isFileUploadIntended(G?.get("schema"),E)){const qt=o("Input");return x?u.createElement(qt,{type:"file",onChange:J}):u.createElement("i",null,"Example values are not available for ",u.createElement("code",null,E)," media types.")}if(!G.size)return null;if(d.hasSchemaType(G.get("schema"),"object")&&(E==="application/x-www-form-urlencoded"||E.indexOf("multipart/")===0)&&de.get("properties",(0,H.OrderedMap)()).size>0){const qt=o("JsonSchemaForm"),It=o("ParameterExt"),Ot=de.get("properties",(0,H.OrderedMap)());return r=H.Map.isMap(r)?r:(0,H.OrderedMap)(),u.createElement("div",{className:"table-container"},Oe&&u.createElement(me,{source:Oe}),u.createElement("table",null,u.createElement("tbody",null,H.Map.isMap(Ot)&&Ot.entrySeq().map((([et,Dt])=>{if(Dt.get("readOnly"))return;const or=Dt.get("oneOf")?.get(0)?.toJS(),Ut=Dt.get("anyOf")?.get(0)?.toJS();Dt=(0,H.fromJS)(d.mergeJsonSchema(Dt.toJS(),or??Ut??{}));let pr=xe?mr(Dt):null;const W=de.get("required",(0,H.List)()).includes(et),$e=d.getSchemaObjectType(Dt),Je=d.getSchemaObjectTypeLabel(Dt),Ft=d.getSchemaObjectType(Dt?.get("items")),it=Dt.get("format"),bt=Dt.get("description"),ut=r.getIn([et,"value"]),Xt=r.getIn([et,"errors"])||a,zt=n.get(et)||!1;let tr=d.getSampleSchema(Dt,!1,{includeWriteOnly:!0});tr===!1&&(tr="false"),tr===0&&(tr="0"),typeof tr!="string"&&$e==="object"&&(tr=Gr(tr)),typeof tr=="string"&&$e==="array"&&(tr=JSON.parse(tr));const Er=d.isFileUploadIntended(Dt),dr=u.createElement(qt,{fn:d,dispatchInitialValue:!Er,schema:Dt,description:et,getComponent:o,value:ut===void 0?tr:ut,required:W,errors:Xt,onChange:qr=>{P(qr,[et])}});return u.createElement("tr",{key:et,className:"parameters","data-property-name":et},u.createElement("td",{className:"parameters-col_name"},u.createElement("div",{className:W?"parameter__name required":"parameter__name"},et,W?u.createElement("span",null," *"):null),u.createElement("div",{className:"parameter__type"},Je,it&&u.createElement("span",{className:"prop-format"},"($",it,")"),xe&&pr.size?pr.entrySeq().map((([qr,en])=>u.createElement(It,{key:`${qr}-${en}`,xKey:qr,xVal:en}))):null),u.createElement("div",{className:"parameter__deprecated"},Dt.get("deprecated")?"deprecated":null)),u.createElement("td",{className:"parameters-col_description"},u.createElement(me,{source:bt}),x?u.createElement("div",null,$e==="object"||Ft==="object"?u.createElement(le,{getComponent:o,specPath:k.push("schema"),getConfigs:p,isExecute:x,specSelectors:c,schema:Dt,example:dr}):dr,W?null:u.createElement(Ae,{onChange:qr=>R(et,qr),isIncluded:zt,isIncludedOptions:re(et),isDisabled:Array.isArray(ut)?ut.length!==0:!Wa(ut)})):null))})))))}const ht=Dv(e,E,L,d);let Ct=null;_v(ht)&&(Ct="json");const _t=x?u.createElement(ve,{value:r,errors:a,defaultValue:ht,onChange:P,getComponent:o}):u.createElement(be,{className:"body-param__example",language:Ct},Gr(r)||ht);return u.createElement("div",null,Oe&&u.createElement(me,{source:Oe}),Ye?u.createElement(ce,{userHasEditedBody:t,examples:Ye,currentKey:L,currentUserInputValue:r,onSelect:qt=>{V(qt)},updateValue:P,defaultToFirstExample:!0,getComponent:o,setRetainRequestBodyValueFlag:Q}):null,u.createElement(le,{getComponent:o,getConfigs:p,specSelectors:c,expandDepth:1,isExecute:x,schema:G.get("schema"),specPath:k.push("content",E,"schema"),example:_t,includeWriteOnly:!0}),Ye?u.createElement(_e,{example:Ye.get(L),getComponent:o,getConfigs:p}):null)};class pL extends u.Component{render(){const{link:e,name:r,getComponent:n}=this.props,a=n("Markdown",!0);let o=e.get("operationId")||e.get("operationRef"),p=e.get("parameters")&&e.get("parameters").toJS(),c=e.get("description");return u.createElement("div",{className:"operation-link"},u.createElement("div",{className:"description"},u.createElement("b",null,u.createElement("code",null,r)),c?u.createElement(a,{source:c}):null),u.createElement("pre",null,"Operation `",o,"`",u.createElement("br",null),u.createElement("br",null),"Parameters ",(function(E,x){return typeof x!="string"?"":x.split(` +`).map(((k,P)=>P>0?Array(E+1).join(" ")+k:k)).join(` +`)})(0,JSON.stringify(p,null,2))||"{}",u.createElement("br",null)))}}const hL=pL,dL=({servers:t,currentServer:e,setSelectedServer:r,setServerVariableValue:n,getServerVariable:a,getEffectiveServerValue:o})=>{const p=(t.find((x=>x.get("url")===e))||(0,H.OrderedMap)()).get("variables")||(0,H.OrderedMap)(),c=p.size!==0;(0,u.useEffect)((()=>{e||r(t.first()?.get("url"))}),[]),(0,u.useEffect)((()=>{const x=t.find((k=>k.get("url")===e));if(!x)return void r(t.first().get("url"));(x.get("variables")||(0,H.OrderedMap)()).map(((k,P)=>{n({server:e,key:P,val:k.get("default")||""})}))}),[e,t]);const d=(0,u.useCallback)((x=>{r(x.target.value)}),[r]),E=(0,u.useCallback)((x=>{const k=x.target.getAttribute("data-variable"),P=x.target.value;n({server:e,key:k,val:P})}),[n,e]);return u.createElement("div",{className:"servers"},u.createElement("label",{htmlFor:"servers"},u.createElement("select",{onChange:d,value:e,id:"servers"},t.valueSeq().map((x=>u.createElement("option",{value:x.get("url"),key:x.get("url")},x.get("url"),x.get("description")&&` - ${x.get("description")}`))).toArray())),c&&u.createElement("div",null,u.createElement("div",{className:"computed-url"},"Computed URL:",u.createElement("code",null,o(e))),u.createElement("h4",null,"Server variables"),u.createElement("table",null,u.createElement("tbody",null,p.entrySeq().map((([x,k])=>u.createElement("tr",{key:x},u.createElement("td",null,x),u.createElement("td",null,k.get("enum")?u.createElement("select",{"data-variable":x,onChange:E},k.get("enum").map((P=>u.createElement("option",{selected:P===a(e,x),key:P,value:P},P)))):u.createElement("input",{type:"text",value:a(e,x)||"",onChange:E,"data-variable":x})))))))))};class fL extends u.Component{render(){const{specSelectors:e,oas3Selectors:r,oas3Actions:n,getComponent:a}=this.props,o=e.servers(),p=a("Servers");return o&&o.size?u.createElement("div",null,u.createElement("span",{className:"servers-title"},"Servers"),u.createElement(p,{servers:o,currentServer:r.selectedServer(),setSelectedServer:n.setSelectedServer,setServerVariableValue:n.setServerVariableValue,getServerVariable:r.serverVariableValue,getEffectiveServerValue:r.serverEffectiveValue})):null}}const mL=Function.prototype;class gL extends u.PureComponent{static defaultProps={onChange:mL,userHasEditedBody:!1};constructor(e,r){super(e,r),this.state={value:Gr(e.value)||e.defaultValue},e.onChange(e.value)}applyDefaultValue=e=>{const{onChange:r,defaultValue:n}=e||this.props;return this.setState({value:n}),r(n)};onChange=e=>{this.props.onChange(Gr(e))};onDomChange=e=>{const r=e.target.value;this.setState({value:r},(()=>this.onChange(r)))};UNSAFE_componentWillReceiveProps(e){this.props.value!==e.value&&e.value!==this.state.value&&this.setState({value:Gr(e.value)}),!e.value&&e.defaultValue&&this.state.value&&this.applyDefaultValue(e)}render(){let{getComponent:e,errors:r}=this.props,{value:n}=this.state,a=r.size>0;const o=e("TextArea");return u.createElement("div",{className:"body-param"},u.createElement(o,{className:Xr()("body-param__text",{invalid:a}),title:r.size?r.join(", "):"",value:n,onChange:this.onDomChange}))}}class yL extends u.Component{constructor(e,r){super(e,r);let{name:n,schema:a}=this.props,o=this.getValue();this.state={name:n,schema:a,value:o}}getValue(){let{name:e,authorized:r}=this.props;return r&&r.getIn([e,"value"])}onChange=e=>{let{onChange:r}=this.props,{value:n,name:a}=e.target,o=Object.assign({},this.state.value);a?o[a]=n:o=n,this.setState({value:o},(()=>r(this.state)))};render(){let{schema:e,getComponent:r,errSelectors:n,name:a,authSelectors:o}=this.props;const p=r("Input"),c=r("Row"),d=r("Col"),E=r("authError"),x=r("Markdown",!0),k=r("JumpToPath",!0),P=(e.get("scheme")||"").toLowerCase(),R=o.selectAuthPath(a);let L=this.getValue(),V=n.allErrors().filter((Q=>Q.get("authId")===a));if(P==="basic"){let Q=L?L.get("username"):null;return u.createElement("div",null,u.createElement("h4",null,u.createElement("code",null,a),"  (http, Basic)",u.createElement(k,{path:R})),Q&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(x,{source:e.get("description")})),u.createElement(c,null,u.createElement("label",{htmlFor:"auth-basic-username"},"Username:"),Q?u.createElement("code",null," ",Q," "):u.createElement(d,null,u.createElement(p,{id:"auth-basic-username",type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),u.createElement(c,null,u.createElement("label",{htmlFor:"auth-basic-password"},"Password:"),Q?u.createElement("code",null," ****** "):u.createElement(d,null,u.createElement(p,{id:"auth-basic-password",autoComplete:"new-password",name:"password",type:"password","aria-label":"auth-basic-password",onChange:this.onChange}))),V.valueSeq().map(((J,re)=>u.createElement(E,{error:J,key:re}))))}return P==="bearer"?u.createElement("div",null,u.createElement("h4",null,u.createElement("code",null,a),"  (http, Bearer)",u.createElement(k,{path:R})),L&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(x,{source:e.get("description")})),u.createElement(c,null,u.createElement("label",{htmlFor:"auth-bearer-value"},"Value:"),L?u.createElement("code",null," ****** "):u.createElement(d,null,u.createElement(p,{id:"auth-bearer-value",type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),V.valueSeq().map(((Q,J)=>u.createElement(E,{error:Q,key:J})))):u.createElement("div",null,u.createElement("em",null,u.createElement("b",null,a)," HTTP authentication: unsupported scheme ",`'${P}'`))}}class vL extends u.Component{setSelectedServer=e=>{const{path:r,method:n}=this.props;return this.forceUpdate(),this.props.setSelectedServer(e,`${r}:${n}`)};setServerVariableValue=e=>{const{path:r,method:n}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...e,namespace:`${r}:${n}`})};getSelectedServer=()=>{const{path:e,method:r}=this.props;return this.props.getSelectedServer(`${e}:${r}`)};getServerVariable=(e,r)=>{const{path:n,method:a}=this.props;return this.props.getServerVariable({namespace:`${n}:${a}`,server:e},r)};getEffectiveServerValue=e=>{const{path:r,method:n}=this.props;return this.props.getEffectiveServerValue({server:e,namespace:`${r}:${n}`})};render(){const{operationServers:e,pathServers:r,getComponent:n}=this.props;if(!e&&!r)return null;const a=n("Servers"),o=e||r,p=e?"operation":"path";return u.createElement("div",{className:"opblock-section operation-servers"},u.createElement("div",{className:"opblock-section-header"},u.createElement("div",{className:"tab-header"},u.createElement("h4",{className:"opblock-title"},"Servers"))),u.createElement("div",{className:"opblock-description-wrapper"},u.createElement("h4",{className:"message"},"These ",p,"-level options override the global server options."),u.createElement(a,{servers:o,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}const bL={Callbacks:cL,HttpAuth:yL,RequestBody:uL,Servers:dL,ServersContainer:fL,RequestBodyEditor:gL,OperationServers:vL,operationLink:hL},gw=new Nc("commonmark");gw.block.ruler.enable(["table"]),gw.set({linkTarget:"_blank"});const wL=Um((({source:t,className:e="",getConfigs:r=()=>({useUnsafeMarkdown:!1})})=>{if(typeof t!="string")return null;if(t){const{useUnsafeMarkdown:n}=r(),a=$m(gw.render(t),{useUnsafeMarkdown:n});let o;return typeof a=="string"&&(o=a.trim()),u.createElement("div",{dangerouslySetInnerHTML:{__html:o},className:Xr()(e,"renderedMarkdown")})}return null})),EL=Um((({Ori:t,...e})=>{const{schema:r,getComponent:n,errSelectors:a,authorized:o,onAuthChange:p,name:c,authSelectors:d}=e,E=n("HttpAuth");return r.get("type")==="http"?u.createElement(E,{key:c,schema:r,name:c,errSelectors:a,authorized:o,getComponent:n,onChange:p,authSelectors:d}):u.createElement(t,e)})),SL=Um(Qx);class xL extends u.Component{render(){let{getConfigs:e,schema:r,Ori:n}=this.props,a=["model-box"],o=null;return r.get("deprecated")===!0&&(a.push("deprecated"),o=u.createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),u.createElement("div",{className:a.join(" ")},o,u.createElement(n,Yr()({},this.props,{getConfigs:e,depth:1,expandDepth:this.props.expandDepth||0})))}}const _L=Um(xL),OL=Um((({Ori:t,...e})=>{const{schema:r,getComponent:n,errors:a,onChange:o,fn:p}=e,c=p.isFileUploadIntended(r),d=n("Input");return c?u.createElement(d,{type:"file",className:a.length?"invalid":"",title:a.length?a:"",onChange:E=>{o(E.target.files[0])},disabled:t.isDisabled}):u.createElement(t,e)})),kL={Markdown:wL,AuthItem:EL,OpenAPIVersion:(function(e){return(r,n)=>a=>typeof n.specSelectors?.isOAS30=="function"?n.specSelectors.isOAS30()?u.createElement(e,Yr()({},a,n,{Ori:r})):u.createElement(r,a):(console.warn("OAS30 wrapper: couldn't get spec"),null)})((t=>{const{Ori:e}=t;return u.createElement(e,{oasVersion:"3.0"})})),JsonSchema_string:OL,model:_L,onlineValidatorBadge:SL},yw="oas3_set_servers",vw="oas3_set_request_body_value",bw="oas3_set_request_body_retain_flag",ww="oas3_set_request_body_inclusion",Ew="oas3_set_active_examples_member",Sw="oas3_set_request_content_type",xw="oas3_set_response_content_type",_w="oas3_set_server_variable_value",Ow="oas3_set_request_body_validate_error",Fv="oas3_clear_request_body_validate_error",kw="oas3_clear_request_body_value";function AL(t,e){return{type:yw,payload:{selectedServerUrl:t,namespace:e}}}function CL({value:t,pathMethod:e}){return{type:vw,payload:{value:t,pathMethod:e}}}const jL=({value:t,pathMethod:e})=>({type:bw,payload:{value:t,pathMethod:e}});function PL({value:t,pathMethod:e,name:r}){return{type:ww,payload:{value:t,pathMethod:e,name:r}}}function NL({name:t,pathMethod:e,contextType:r,contextName:n}){return{type:Ew,payload:{name:t,pathMethod:e,contextType:r,contextName:n}}}function TL({value:t,pathMethod:e}){return{type:Sw,payload:{value:t,pathMethod:e}}}function IL({value:t,path:e,method:r}){return{type:xw,payload:{value:t,path:e,method:r}}}function ML({server:t,namespace:e,key:r,val:n}){return{type:_w,payload:{server:t,namespace:e,key:r,val:n}}}const RL=({path:t,method:e,validationErrors:r})=>({type:Ow,payload:{path:t,method:e,validationErrors:r}}),DL=({path:t,method:e})=>({type:Fv,payload:{path:t,method:e}}),FL=({pathMethod:t})=>({type:Fv,payload:{path:t[0],method:t[1]}}),LL=({pathMethod:t})=>({type:kw,payload:{pathMethod:t}});var $L=Be(60680),BL=Be.n($L);const ss=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS3()){const a=t(e,...r);return typeof a=="function"?a(n):a}return null},qL=ss(((t,e)=>{const r=e?[e,"selectedServer"]:["selectedServer"];return t.getIn(r)||""})),UL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"bodyValue"])||null)),zL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"retainBodyValue"])||!1)),VL=(t,e,r)=>n=>{const{oas3Selectors:a,specSelectors:o,fn:p}=n.getSystem();if(o.isOAS3()){const c=a.requestContentType(e,r);if(c)return Dv(o.specResolvedSubtree(["paths",e,r,"requestBody"]),c,a.activeExamplesMember(e,r,"requestBody","requestBody"),p)}return null},JL=ss(((t,e,r)=>n=>{const{oas3Selectors:a,specSelectors:o,fn:p}=n;let c=!1;const d=a.requestContentType(e,r);let E=a.requestBodyValue(e,r);const x=o.specResolvedSubtree(["paths",e,r,"requestBody"]);if(!x)return!1;if(H.Map.isMap(E)&&(E=Gr(E.mapEntries((k=>H.Map.isMap(k[1])?[k[0],k[1].get("value")]:k)).toJS())),H.List.isList(E)&&(E=Gr(E)),d){const k=Dv(x,d,a.activeExamplesMember(e,r,"requestBody","requestBody"),p);c=!!E&&E!==k}return c})),WL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"bodyInclusion"])||(0,H.Map)())),HL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"errors"])||null)),KL=ss(((t,e,r,n,a)=>t.getIn(["examples",e,r,n,a,"activeExample"])||null)),GL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"requestContentType"])||null)),YL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"responseContentType"])||null)),XL=ss(((t,e,r)=>{let n;if(typeof e!="string"){const{server:a,namespace:o}=e;n=o?[o,"serverVariableValues",a,r]:["serverVariableValues",a,r]}else n=["serverVariableValues",e,r];return t.getIn(n)||null})),QL=ss(((t,e)=>{let r;if(typeof e!="string"){const{server:n,namespace:a}=e;r=a?[a,"serverVariableValues",n]:["serverVariableValues",n]}else r=["serverVariableValues",e];return t.getIn(r)||(0,H.OrderedMap)()})),ZL=ss(((t,e)=>{var r,n;if(typeof e!="string"){const{server:o,namespace:p}=e;n=o,r=p?t.getIn([p,"serverVariableValues",n]):t.getIn(["serverVariableValues",n])}else n=e,r=t.getIn(["serverVariableValues",n]);r=r||(0,H.OrderedMap)();let a=n;return r.map(((o,p)=>{a=a.replace(new RegExp(`{${BL()(p)}}`,"g"),o)})),a})),e$=(function(e){return(...r)=>n=>{const a=n.getSystem().specSelectors.specJson();let o=[...r][1]||[];return!a.getIn(["paths",...o,"requestBody","required"])||e(...r)}})(((t,e)=>((r,n)=>(n=n||[],!!r.getIn(["requestData",...n,"bodyValue"])))(t,e))),t$=(t,{oas3RequiredRequestBodyContentType:e,oas3RequestContentType:r,oas3RequestBodyValue:n})=>{let a=[];if(!H.Map.isMap(n))return a;let o=[];return Object.keys(e.requestContentType).forEach((p=>{p===r&&e.requestContentType[p].forEach((c=>{o.indexOf(c)<0&&o.push(c)}))})),o.forEach((p=>{n.getIn([p,"value"])||a.push(p)})),a},r$=vu()(["get","put","post","delete","options","head","patch","trace"]),n$={[yw]:(t,{payload:{selectedServerUrl:e,namespace:r}})=>{const n=r?[r,"selectedServer"]:["selectedServer"];return t.setIn(n,e)},[vw]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,a]=r;if(!H.Map.isMap(e))return t.setIn(["requestData",n,a,"bodyValue"],e);let o=t.getIn(["requestData",n,a,"bodyValue"])||(0,H.Map)();H.Map.isMap(o)||(o=(0,H.Map)());let p=o;const[...c]=e.keys();return c.forEach((d=>{let E=e.getIn([d]);p.has(d)&&H.Map.isMap(E)||(p=p.setIn([d,"value"],E))})),t.setIn(["requestData",n,a,"bodyValue"],p)},[bw]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,a]=r;return t.setIn(["requestData",n,a,"retainBodyValue"],e)},[ww]:(t,{payload:{value:e,pathMethod:r,name:n}})=>{let[a,o]=r;return t.setIn(["requestData",a,o,"bodyInclusion",n],e)},[Ew]:(t,{payload:{name:e,pathMethod:r,contextType:n,contextName:a}})=>{let[o,p]=r;return t.setIn(["examples",o,p,n,a,"activeExample"],e)},[Sw]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,a]=r;return t.setIn(["requestData",n,a,"requestContentType"],e)},[xw]:(t,{payload:{value:e,path:r,method:n}})=>t.setIn(["requestData",r,n,"responseContentType"],e),[_w]:(t,{payload:{server:e,namespace:r,key:n,val:a}})=>{const o=r?[r,"serverVariableValues",e,n]:["serverVariableValues",e,n];return t.setIn(o,a)},[Ow]:(t,{payload:{path:e,method:r,validationErrors:n}})=>{let a=[];if(a.push("Required field is not provided"),n.missingBodyValue)return t.setIn(["requestData",e,r,"errors"],(0,H.fromJS)(a));if(n.missingRequiredKeys&&n.missingRequiredKeys.length>0){const{missingRequiredKeys:o}=n;return t.updateIn(["requestData",e,r,"bodyValue"],(0,H.fromJS)({}),(p=>o.reduce(((c,d)=>c.setIn([d,"errors"],(0,H.fromJS)(a))),p)))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),t},[Fv]:(t,{payload:{path:e,method:r}})=>{const n=t.getIn(["requestData",e,r,"bodyValue"]);if(!H.Map.isMap(n))return t.setIn(["requestData",e,r,"errors"],(0,H.fromJS)([]));const[...a]=n.keys();return a?t.updateIn(["requestData",e,r,"bodyValue"],(0,H.fromJS)({}),(o=>a.reduce(((p,c)=>p.setIn([c,"errors"],(0,H.fromJS)([]))),o))):t},[kw]:(t,{payload:{pathMethod:e}})=>{let[r,n]=e;const a=t.getIn(["requestData",r,n,"bodyValue"]);return a?H.Map.isMap(a)?t.setIn(["requestData",r,n,"bodyValue"],(0,H.Map)()):t.setIn(["requestData",r,n,"bodyValue"],""):t}};function Aw({getSystem:t}){const e=(r=>(n,a=null)=>{const{getConfigs:o,fn:p}=r(),{fileUploadMediaTypes:c}=o();if(typeof a=="string"&&c.some((x=>a.startsWith(x))))return!0;const d=H.Map.isMap(n);if(!d&&!Ai()(n))return!1;const E=d?n.get("format"):n.format;return p.hasSchemaType(n,"string")&&["binary","byte"].includes(E)})(t);return{components:bL,wrapComponents:kL,statePlugins:{spec:{wrapSelectors:He,selectors:nt},auth:{wrapSelectors:qe},oas3:{actions:{...gt},reducers:n$,selectors:{...Re}}},fn:{isFileUploadIntended:e,isFileUploadIntendedOAS30:e}}}const a$=({specSelectors:t,getComponent:e})=>{const r=t.selectWebhooksOperations();if(!r)return null;const n=Object.keys(r),a=e("OperationContainer",!0);return n.length===0?null:u.createElement("div",{className:"webhooks"},u.createElement("h2",null,"Webhooks"),n.map((o=>u.createElement("div",{key:`${o}-webhook`},r[o].map((p=>u.createElement(a,{key:`${o}-${p.method}-webhook`,op:p.operation,tag:"webhooks",method:p.method,path:o,specPath:(0,H.List)(p.specPath),allowTryItOut:!1})))))))},o$=({getComponent:t,specSelectors:e})=>{const r=e.selectLicenseNameField(),n=e.selectLicenseUrl(),a=t("Link");return u.createElement("div",{className:"info__license"},n?u.createElement("div",{className:"info__license__url"},u.createElement(a,{target:"_blank",href:Dr(n)},r)):u.createElement("span",null,r))},i$=({getComponent:t,specSelectors:e})=>{const r=e.selectContactNameField(),n=e.selectContactUrl(),a=e.selectContactEmailField(),o=t("Link");return u.createElement("div",{className:"info__contact"},n&&u.createElement("div",null,u.createElement(o,{href:Dr(n),target:"_blank"},r," - Website")),a&&u.createElement(o,{href:Dr(`mailto:${a}`)},n?`Send email to ${r}`:`Contact ${r}`))},s$=({getComponent:t,specSelectors:e})=>{const r=e.version(),n=e.url(),a=e.basePath(),o=e.host(),p=e.selectInfoSummaryField(),c=e.selectInfoDescriptionField(),d=e.selectInfoTitleField(),E=e.selectInfoTermsOfServiceUrl(),x=e.selectExternalDocsUrl(),k=e.selectExternalDocsDescriptionField(),P=e.contact(),R=e.license(),L=t("Markdown",!0),V=t("Link"),Q=t("VersionStamp"),J=t("OpenAPIVersion"),re=t("InfoUrl"),me=t("InfoBasePath"),le=t("License",!0),ve=t("Contact",!0),be=t("JsonSchemaDialect",!0);return u.createElement("div",{className:"info"},u.createElement("hgroup",{className:"main"},u.createElement("h1",{className:"title"},d,u.createElement("span",null,r&&u.createElement(Q,{version:r}),u.createElement(J,{oasVersion:"3.1"}))),(o||a)&&u.createElement(me,{host:o,basePath:a}),n&&u.createElement(re,{getComponent:t,url:n})),p&&u.createElement("p",{className:"info__summary"},p),u.createElement("div",{className:"info__description description"},u.createElement(L,{source:c})),E&&u.createElement("div",{className:"info__tos"},u.createElement(V,{target:"_blank",href:Dr(E)},"Terms of service")),P.size>0&&u.createElement(ve,null),R.size>0&&u.createElement(le,null),x&&u.createElement(V,{className:"info__extdocs",target:"_blank",href:Dr(x)},k||x),u.createElement(be,null))},l$=({getComponent:t,specSelectors:e})=>{const r=e.selectJsonSchemaDialectField(),n=e.selectJsonSchemaDialectDefault(),a=t("Link");return u.createElement(u.Fragment,null,r&&r===n&&u.createElement("p",{className:"info__jsonschemadialect"},"JSON Schema dialect:"," ",u.createElement(a,{target:"_blank",href:Dr(r)},r)),r&&r!==n&&u.createElement("div",{className:"error-wrapper"},u.createElement("div",{className:"no-margin"},u.createElement("div",{className:"errors"},u.createElement("div",{className:"errors-wrapper"},u.createElement("h4",{className:"center"},"Warning"),u.createElement("p",{className:"message"},u.createElement("strong",null,"OpenAPI.jsonSchemaDialect")," field contains a value different from the default value of"," ",u.createElement(a,{target:"_blank",href:n},n),". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value."))))))},c$=({bypass:t,isSwagger2:e,isOAS3:r,isOAS31:n,alsoShow:a,children:o})=>t?u.createElement("div",null,o):e&&(r||n)?u.createElement("div",{className:"version-pragma"},a,u.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,u.createElement("code",null,"swagger")," and ",u.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),u.createElement("p",null,"Supported version fields are ",u.createElement("code",null,'swagger: "2.0"'),","," ",u.createElement("code",null,"openapi: 3.0.x"),", or ",u.createElement("code",null,"openapi: 3.1.x")," (for example, ",u.createElement("code",null,"openapi: 3.1.0"),").")))):e||r||n?u.createElement("div",null,o):u.createElement("div",{className:"version-pragma"},a,u.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,"The provided definition does not specify a valid version field."),u.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",u.createElement("code",null,'swagger: "2.0"'),","," ",u.createElement("code",null,"openapi: 3.0.x"),", or ",u.createElement("code",null,"openapi: 3.1.x")," (for example, ",u.createElement("code",null,"openapi: 3.1.0"),").")))),u$=t=>typeof t=="string"&&t.includes("#/components/schemas/")?(e=>{const r=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(r)}catch{return r}})(t.replace(/^.*#\/components\/schemas\//,"")):null,p$=(0,u.forwardRef)((({schema:t,getComponent:e,onToggle:r=()=>{},specPath:n},a)=>{const o=e("JSONSchema202012"),p=u$(t.get("$$ref")),c=(0,u.useCallback)(((d,E)=>{r(p,E)}),[p,r]);return u.createElement(o,{name:p,schema:t.toJS(),ref:a,onExpand:c,identifier:n.toJS().join("_")})})),h$=p$,d$=({specActions:t,specSelectors:e,layoutSelectors:r,layoutActions:n,getComponent:a,getConfigs:o,fn:p})=>{const c=e.selectSchemas(),d=Object.keys(c).length>0,E=["components","schemas"],{docExpansion:x,defaultModelsExpandDepth:k}=o(),P=k>0&&x!=="none",R=r.isShown(E,P),L=a("Collapse"),V=a("JSONSchema202012"),Q=a("ArrowUpIcon"),J=a("ArrowDownIcon"),{getTitle:re}=p.jsonSchema202012.useFn();(0,u.useEffect)((()=>{const ce=Object.entries(c).some((([xe])=>r.isShown([...E,xe],!1))),_e=R&&(k>1||ce),Ae=e.specResolvedSubtree(E)!=null;_e&&!Ae&&t.requestResolvedSubtree(E)}),[R,k]);const me=(0,u.useCallback)((()=>{n.show(E,!R)}),[R]),le=(0,u.useCallback)((ce=>{ce!==null&&n.readyToScroll(E,ce)}),[]),ve=ce=>_e=>{_e!==null&&n.readyToScroll([...E,ce],_e)},be=ce=>(_e,Ae)=>{const xe=[...E,ce];Ae?(e.specResolvedSubtree(xe)!=null||t.requestResolvedSubtree([...E,ce]),n.show(xe,!0)):n.show(xe,!1)};return!d||k<0?null:u.createElement("section",{className:Xr()("models",{"is-open":R}),ref:le},u.createElement("h4",null,u.createElement("button",{"aria-expanded":R,className:"models-control",onClick:me},u.createElement("span",null,"Schemas"),R?u.createElement(Q,null):u.createElement(J,null))),u.createElement(L,{isOpened:R},Object.entries(c).map((([ce,_e])=>{const Ae=re(_e,{lookup:"basic"})||ce;return u.createElement(V,{key:ce,ref:ve(ce),schema:_e,name:Ae,onExpand:be(ce)})}))))},f$=({schema:t,getComponent:e,name:r,authSelectors:n})=>{const a=e("JumpToPath",!0),o=n.selectAuthPath(r);return u.createElement("div",null,u.createElement("h4",null,r," (mutualTLS) ",u.createElement(a,{path:o})),u.createElement("p",null,"Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser."),u.createElement("p",null,t.get("description")))};class m$ extends u.Component{constructor(e,r){super(e,r),this.state={}}onAuthChange=e=>{let{name:r}=e;this.setState({[r]:e})};submitAuth=e=>{e.preventDefault();let{authActions:r}=this.props;r.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:r,definitions:n}=this.props,a=n.keySeq().toArray();this.setState(a.reduce(((o,p)=>(o[p]="",o)),{})),r.logoutWithPersistOption(a)};close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};render(){let{definitions:e,getComponent:r,authSelectors:n,errSelectors:a}=this.props;const o=r("AuthItem"),p=r("oauth2",!0),c=r("Button"),d=n.authorized(),E=e.filter(((R,L)=>!!d.get(L))),x=e.filter((R=>R.get("type")!=="oauth2"&&R.get("type")!=="mutualTLS")),k=e.filter((R=>R.get("type")==="oauth2")),P=e.filter((R=>R.get("type")==="mutualTLS"));return u.createElement("div",{className:"auth-container"},x.size>0&&u.createElement("form",{onSubmit:this.submitAuth},x.map(((R,L)=>u.createElement(o,{key:L,schema:R,name:L,getComponent:r,onAuthChange:this.onAuthChange,authorized:d,errSelectors:a,authSelectors:n}))).valueSeq().toArray(),u.createElement("div",{className:"auth-btn-wrapper"},x.size===E.size?u.createElement(c,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):u.createElement(c,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),u.createElement(c,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),k.size>0?u.createElement("div",null,u.createElement("div",{className:"scope-def"},u.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),u.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),e.filter((R=>R.get("type")==="oauth2")).map(((R,L)=>u.createElement("div",{key:L},u.createElement(p,{authorized:d,schema:R,name:L})))).valueSeq().toArray()):null,P.size>0&&u.createElement("div",null,P.map(((R,L)=>u.createElement(o,{key:L,schema:R,name:L,getComponent:r,onAuthChange:this.onAuthChange,authorized:d,errSelectors:a,authSelectors:n}))).valueSeq().toArray()))}}const g$=m$,oO=t=>{const e=t.get("openapi");return typeof e=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(e)},iO=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS31()){const a=t(e,...r);return typeof a=="function"?a(n):a}return null},sO=t=>(e,r)=>(n,...a)=>{if(r.getSystem().specSelectors.isOAS31()){const o=t(n,...a);return typeof o=="function"?o(e,r):o}return e(...a)},lO=t=>(e,...r)=>n=>{const a=t(e,n,...r);return typeof a=="function"?a(n):a},Wl=t=>(e,r)=>n=>r.specSelectors.isOAS31()?u.createElement(t,Yr()({},n,{originalComponent:e,getSystem:r.getSystem})):u.createElement(e,n),Cw=(t,e)=>{const{fn:r,specSelectors:n}=e;return Object.fromEntries(Object.entries(t).map((([a,o])=>{const p=r[a];return[a,(...c)=>n.isOAS31()?o(...c):typeof p=="function"?p(...c):void 0]})))},y$=Wl((({getSystem:t})=>{const e=t().getComponent("OAS31License",!0);return u.createElement(e,null)})),v$=Wl((({getSystem:t})=>{const e=t().getComponent("OAS31Contact",!0);return u.createElement(e,null)})),b$=Wl((({getSystem:t})=>{const e=t().getComponent("OAS31Info",!0);return u.createElement(e,null)})),w$=(t,{includeReadOnly:e,includeWriteOnly:r})=>{if(!t?.properties)return{};const n=Object.entries(t.properties).filter((([,a])=>(a?.readOnly!==!0||e)&&(a?.writeOnly!==!0||r)));return Object.fromEntries(n)},cO=t=>{if(typeof t!="function")return null;const e=t();return()=>[...e,"discriminator","xml","externalDocs","example","$$ref"]},Tc=Wl((({getSystem:t,...e})=>{const r=t(),{getComponent:n,fn:a,getConfigs:o}=r,p=o(),c=window?.location?.pathname??"/";if(Tc.ModelWithJSONSchemaContext&&Tc.pathname===c)return u.createElement(Tc.ModelWithJSONSchemaContext,e);const d=n("OAS31Model"),E=n("withJSONSchema202012SystemContext");return Tc.ModelWithJSONSchemaContext=E(d,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:p.defaultModelExpandDepth,includeReadOnly:e.includeReadOnly,includeWriteOnly:e.includeWriteOnly},fn:{getProperties:a.jsonSchema202012.getProperties,isExpandable:a.jsonSchema202012.isExpandable,getSchemaKeywords:cO(a.jsonSchema202012.getSchemaKeywords)}}),Tc.pathname=c,u.createElement(Tc.ModelWithJSONSchemaContext,e)}));Tc.ModelWithJSONSchemaContext=null,Tc.pathname=null;const E$=Tc,Ic=Wl((({getSystem:t})=>{const{getComponent:e,fn:r,getConfigs:n}=t(),a=n(),o=window?.location?.pathname??"/";if(Ic.ModelsWithJSONSchemaContext&&Ic.pathname===o)return u.createElement(Ic.ModelsWithJSONSchemaContext,null);const p=e("OAS31Models",!0),c=e("withJSONSchema202012SystemContext");return Ic.ModelsWithJSONSchemaContext=c(p,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:a.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:cO(r.jsonSchema202012.getSchemaKeywords)}}),Ic.pathname=o,u.createElement(Ic.ModelsWithJSONSchemaContext,null)}));Ic.ModelsWithJSONSchemaContext=null,Ic.pathname=null;const S$=Ic,x$=(t,e)=>r=>{const n=e.specSelectors.isOAS31(),a=e.getComponent("OAS31VersionPragmaFilter");return u.createElement(a,Yr()({isOAS31:n},r))},_$=Wl((({originalComponent:t,...e})=>{const{getComponent:r,schema:n,name:a}=e,o=r("MutualTLSAuth",!0);return n.get("type")==="mutualTLS"?u.createElement(o,{schema:n,name:a}):u.createElement(t,e)})),O$=_$,k$=Wl((({getSystem:t,...e})=>{const r=t().getComponent("OAS31Auths",!0);return u.createElement(r,e)})),jw=(0,H.Map)(),A$=yr(((t,e)=>e.specSelectors.specJson()),oO),C$=()=>t=>{const e=t.specSelectors.specJson().get("webhooks");return H.Map.isMap(e)?e:jw},j$=yr([(t,e)=>e.specSelectors.webhooks(),(t,e)=>e.specSelectors.validOperationMethods(),(t,e)=>e.specSelectors.specResolvedSubtree(["webhooks"])],((t,e)=>t.reduce(((r,n,a)=>{if(!H.Map.isMap(n))return r;const o=n.entrySeq().filter((([p])=>e.includes(p))).map((([p,c])=>({operation:(0,H.Map)({operation:c}),method:p,path:a,specPath:["webhooks",a,p]})));return r.concat(o)}),(0,H.List)()).groupBy((r=>r.path)).map((r=>r.toArray())).toObject())),P$=()=>t=>{const e=t.specSelectors.info().get("license");return H.Map.isMap(e)?e:jw},N$=()=>t=>t.specSelectors.license().get("name","License"),T$=()=>t=>t.specSelectors.license().get("url"),I$=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),M$=()=>t=>t.specSelectors.license().get("identifier"),R$=()=>t=>{const e=t.specSelectors.info().get("contact");return H.Map.isMap(e)?e:jw},D$=()=>t=>t.specSelectors.contact().get("name","the developer"),F$=()=>t=>t.specSelectors.contact().get("email"),L$=()=>t=>t.specSelectors.contact().get("url"),$$=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectContactUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),B$=()=>t=>t.specSelectors.info().get("title"),q$=()=>t=>t.specSelectors.info().get("summary"),U$=()=>t=>t.specSelectors.info().get("description"),z$=()=>t=>t.specSelectors.info().get("termsOfService"),V$=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectInfoTermsOfServiceField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),J$=()=>t=>t.specSelectors.externalDocs().get("description"),W$=()=>t=>t.specSelectors.externalDocs().get("url"),H$=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectExternalDocsUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),K$=()=>t=>t.specSelectors.specJson().get("jsonSchemaDialect"),G$=()=>"https://spec.openapis.org/oas/3.1/dialect/base",Y$=yr(((t,e)=>e.specSelectors.definitions()),((t,e)=>e.specSelectors.specResolvedSubtree(["components","schemas"])),((t,e)=>H.Map.isMap(t)?H.Map.isMap(e)?Object.entries(t.toJS()).reduce(((r,[n,a])=>{const o=e.get(n);return r[n]=o?.toJS()||a,r}),{}):t.toJS():{})),X$=(t,e)=>(r,...n)=>e.specSelectors.isOAS31()||t(...n),Q$=sO((()=>(t,e)=>e.oas31Selectors.selectLicenseUrl())),Z$=sO((()=>(t,e)=>{const r=e.specSelectors.securityDefinitions();let n=t();return r&&r.entrySeq().forEach((([a,o])=>{o?.get("type")==="mutualTLS"&&(n=n.push(new H.Map({[a]:o})))})),n})),eB=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField(),(t,e)=>e.specSelectors.selectLicenseIdentifierField()],((t,e,r,n)=>r?ba(r,t,{selectedServer:e}):n?`https://spdx.org/licenses/${n}.html`:void 0)),tB=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{hasKeyword:a}=r.jsonSchema202012.useFn(),o=n("JSONSchema202012JSONViewer");return a(t,"example")?u.createElement(o,{name:"Example",value:t.example,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--example"}):null},rB=({schema:t,getSystem:e})=>{const r=t?.xml||{},{fn:n,getComponent:a,getConfigs:o}=e(),{showExtensions:p}=o(),{useComponent:c,useIsExpanded:d,usePath:E,useLevel:x}=n.jsonSchema202012,{path:k}=E("xml"),{isExpanded:P,setExpanded:R,setCollapsed:L}=d("xml"),[V,Q]=x(),J=p?gr(r):[],re=!!(r.name||r.namespace||r.prefix||J.length>0),me=c("Accordion"),le=c("ExpandDeepButton"),ve=a("OpenAPI31Extensions"),be=a("JSONSchema202012PathContext")(),ce=a("JSONSchema202012LevelContext")(),_e=(0,u.useCallback)((()=>{P?L():R()}),[P,R,L]),Ae=(0,u.useCallback)(((xe,Oe)=>{Oe?R({deep:!0}):L({deep:!0})}),[R,L]);return Object.keys(r).length===0?null:u.createElement(be.Provider,{value:k},u.createElement(ce.Provider,{value:Q},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--xml","data-json-schema-level":V},re?u.createElement(u.Fragment,null,u.createElement(me,{expanded:P,onChange:_e},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),u.createElement(le,{expanded:P,onClick:Ae})):u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML"),r.attribute===!0&&u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"attribute"),r.wrapped===!0&&u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"wrapped"),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!P})},P&&u.createElement(u.Fragment,null,r.name&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"name"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.name))),r.namespace&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"namespace"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.namespace))),r.prefix&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"prefix"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.prefix)))),J.length>0&&u.createElement(ve,{openAPISpecObj:r,openAPIExtensions:J,getSystem:e})))))},nB=({discriminator:t})=>{const e=t?.mapping||{};return Object.keys(e).length===0?null:Object.entries(e).map((([r,n])=>u.createElement("div",{key:`${r}-${n}`,className:"json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},r),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},n))))},aB=({schema:t,getSystem:e})=>{const r=t?.discriminator||{},{fn:n,getComponent:a,getConfigs:o}=e(),{showExtensions:p}=o(),{useComponent:c,useIsExpanded:d,usePath:E,useLevel:x}=n.jsonSchema202012,k="discriminator",{path:P}=E(k),{isExpanded:R,setExpanded:L,setCollapsed:V}=d(k),[Q,J]=x(),re=p?gr(r):[],me=!!(r.mapping||re.length>0),le=c("Accordion"),ve=c("ExpandDeepButton"),be=a("OpenAPI31Extensions"),ce=a("JSONSchema202012PathContext")(),_e=a("JSONSchema202012LevelContext")(),Ae=(0,u.useCallback)((()=>{R?V():L()}),[R,L,V]),xe=(0,u.useCallback)(((Oe,je)=>{je?L({deep:!0}):V({deep:!0})}),[L,V]);return Object.keys(r).length===0?null:u.createElement(ce.Provider,{value:P},u.createElement(_e.Provider,{value:J},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator","data-json-schema-level":Q},me?u.createElement(u.Fragment,null,u.createElement(le,{expanded:R,onChange:Ae},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator")),u.createElement(ve,{expanded:R,onClick:xe})):u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator"),r.propertyName&&u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},r.propertyName),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!R})},R&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement(nB,{discriminator:r})),re.length>0&&u.createElement(be,{openAPISpecObj:r,openAPIExtensions:re,getSystem:e})))))},oB=({openAPISpecObj:t,getSystem:e,openAPIExtensions:r})=>{const{fn:n}=e(),{useComponent:a}=n.jsonSchema202012,o=a("JSONViewer");return r.map((p=>u.createElement(o,{key:p,name:p,value:t[p],className:"json-schema-2020-12-json-viewer-extension-keyword"})))},iB=({schema:t,getSystem:e})=>{const r=t?.externalDocs||{},{fn:n,getComponent:a,getConfigs:o}=e(),{showExtensions:p}=o(),{useComponent:c,useIsExpanded:d,usePath:E,useLevel:x}=n.jsonSchema202012,k="externalDocs",{path:P}=E(k),{isExpanded:R,setExpanded:L,setCollapsed:V}=d(k),[Q,J]=x(),re=p?gr(r):[],me=!!(r.description||r.url||re.length>0),le=c("Accordion"),ve=c("ExpandDeepButton"),be=a("JSONSchema202012KeywordDescription"),ce=a("Link"),_e=a("OpenAPI31Extensions"),Ae=a("JSONSchema202012PathContext")(),xe=a("JSONSchema202012LevelContext")(),Oe=(0,u.useCallback)((()=>{R?V():L()}),[R,L,V]),je=(0,u.useCallback)(((G,de)=>{de?L({deep:!0}):V({deep:!0})}),[L,V]);return Object.keys(r).length===0?null:u.createElement(Ae.Provider,{value:P},u.createElement(xe.Provider,{value:J},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs","data-json-schema-level":Q},me?u.createElement(u.Fragment,null,u.createElement(le,{expanded:R,onChange:Oe},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),u.createElement(ve,{expanded:R,onClick:je})):u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation"),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!R})},R&&u.createElement(u.Fragment,null,r.description&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement(be,{schema:r,getSystem:e})),r.url&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"url"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},u.createElement(ce,{target:"_blank",href:Dr(r.url)},r.url))))),re.length>0&&u.createElement(_e,{openAPISpecObj:r,openAPIExtensions:re,getSystem:e})))))},sB=({schema:t,getSystem:e})=>{if(!t?.description)return null;const{getComponent:r}=e(),n=r("Markdown");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},u.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},u.createElement(n,{source:t.description})))},lB=Wl(sB),cB=Wl((({schema:t,getSystem:e,originalComponent:r})=>{const{getComponent:n}=e(),a=n("JSONSchema202012KeywordDiscriminator"),o=n("JSONSchema202012KeywordXml"),p=n("JSONSchema202012KeywordExample"),c=n("JSONSchema202012KeywordExternalDocs");return u.createElement(u.Fragment,null,u.createElement(r,{schema:t}),u.createElement(a,{schema:t,getSystem:e}),u.createElement(o,{schema:t,getSystem:e}),u.createElement(c,{schema:t,getSystem:e}),u.createElement(p,{schema:t,getSystem:e}))})),uB=cB,pB=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{useComponent:a,usePath:o}=r.jsonSchema202012,{getDependentRequired:p,getProperties:c}=r.jsonSchema202012.useFn(),d=r.jsonSchema202012.useConfig(),E=Array.isArray(t?.required)?t.required:[],{path:x}=o("properties"),k=a("JSONSchema"),P=n("JSONSchema202012PathContext")(),R=c(t,d);return Object.keys(R).length===0?null:u.createElement(P.Provider,{value:x},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},u.createElement("ul",null,Object.entries(R).map((([L,V])=>{const Q=E.includes(L),J=p(L,t);return u.createElement("li",{key:L,className:Xr()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":Q})},u.createElement(k,{name:L,schema:V,dependentRequired:J}))})))))},hB=Wl(pB),dB=function({fn:e,getSystem:r}){if(e.jsonSchema202012){const o=((p,c)=>{const{fn:d}=c();if(typeof p!="function")return null;const{hasKeyword:E}=d.jsonSchema202012;return x=>p(x)||E(x,"example")||x?.xml||x?.discriminator||x?.externalDocs})(e.jsonSchema202012.isExpandable,r);Object.assign(this.fn.jsonSchema202012,{isExpandable:o,getProperties:w$})}if(typeof e.sampleFromSchema=="function"&&e.jsonSchema202012){const o=Cw({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:p=>e.jsonSchema202012.getType(Mr(p)),getSchemaObjectType:p=>e.jsonSchema202012.foldType(Mr(p)?.type)},r());Object.assign(this.fn,o)}const n=(o=>(p,c=null)=>{const{fn:d}=o();if(d.isFileUploadIntendedOAS30(p,c))return!0;const E=H.Map.isMap(p);if(!E&&!Ai()(p))return!1;const x=E?p.get("contentMediaType"):p.contentMediaType,k=E?p.get("contentEncoding"):p.contentEncoding;return typeof x=="string"&&x!==""||typeof k=="string"&&k!==""})(r),{isFileUploadIntended:a}=Cw({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=a,this.fn.isFileUploadIntendedOAS31=n,e.jsonSchema202012){const{hasSchemaType:o}=Cw({hasSchemaType:e.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=o}},fB=({fn:t})=>{const e=t.createSystemSelector||lO,r=t.createOnlyOAS31Selector||iO;return{afterLoad:dB,fn:{isOAS31:oO,createSystemSelector:lO,createOnlyOAS31Selector:iO},components:{Webhooks:a$,JsonSchemaDialect:l$,MutualTLSAuth:f$,OAS31Info:s$,OAS31License:o$,OAS31Contact:i$,OAS31VersionPragmaFilter:c$,OAS31Model:h$,OAS31Models:d$,OAS31Auths:g$,JSONSchema202012KeywordExample:tB,JSONSchema202012KeywordXml:rB,JSONSchema202012KeywordDiscriminator:aB,JSONSchema202012KeywordExternalDocs:iB,OpenAPI31Extensions:oB},wrapComponents:{InfoContainer:b$,License:y$,Contact:v$,VersionPragmaFilter:x$,Model:E$,Models:S$,AuthItem:O$,auths:k$,JSONSchema202012KeywordDescription:lB,JSONSchema202012KeywordExamples:uB,JSONSchema202012KeywordProperties:hB},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:Z$}},spec:{selectors:{isOAS31:e(A$),license:P$,selectLicenseNameField:N$,selectLicenseUrlField:T$,selectLicenseIdentifierField:r(M$),selectLicenseUrl:e(I$),contact:R$,selectContactNameField:D$,selectContactEmailField:F$,selectContactUrlField:L$,selectContactUrl:e($$),selectInfoTitleField:B$,selectInfoSummaryField:r(q$),selectInfoDescriptionField:U$,selectInfoTermsOfServiceField:z$,selectInfoTermsOfServiceUrl:e(V$),selectExternalDocsDescriptionField:J$,selectExternalDocsUrlField:W$,selectExternalDocsUrl:e(H$),webhooks:r(C$),selectWebhooksOperations:r(e(j$)),selectJsonSchemaDialectField:K$,selectJsonSchemaDialectDefault:G$,selectSchemas:e(Y$)},wrapSelectors:{isOAS3:X$,selectLicenseUrl:Q$}},oas31:{selectors:{selectLicenseUrl:r(e(eB))}}}}},mB=({bypass:t,isSwagger2:e,isOAS3:r,isOAS31:n,isOAS32:a,alsoShow:o,children:p})=>t?u.createElement("div",null,p):e&&(r||n||a)?u.createElement("div",{className:"version-pragma"},o,u.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,u.createElement("code",null,"swagger")," and ",u.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),u.createElement("p",null,"Supported version fields are ",u.createElement("code",null,'swagger: "2.0"')," ","and ",u.createElement("code",null,"openapi: 3.0.x"),", ",u.createElement("code",null,"openapi: 3.1.x"),", or"," ",u.createElement("code",null,"openapi: 3.2.x")," (for example,"," ",u.createElement("code",null,"openapi: 3.2.0"),").")))):e||r||n||a?u.createElement("div",null,p):u.createElement("div",{className:"version-pragma"},o,u.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,"The provided definition does not specify a valid version field."),u.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",u.createElement("code",null,'swagger: "2.0"')," ","and ",u.createElement("code",null,"openapi: 3.0.x"),", ",u.createElement("code",null,"openapi: 3.1.x"),", or"," ",u.createElement("code",null,"openapi: 3.2.x")," (for example,"," ",u.createElement("code",null,"openapi: 3.2.0"),").")))),uO=t=>{const e=t.get("openapi");return typeof e=="string"&&/^3\.2\.(?:[1-9]\d*|0)$/.test(e)},gB=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS32()){const a=t(e,...r);return typeof a=="function"?a(n):a}return null},pO=t=>(e,...r)=>n=>{const a=t(e,n,...r);return typeof a=="function"?a(n):a},Mc=t=>(e,r)=>n=>r.specSelectors.isOAS32()?u.createElement(t,Yr()({},n,{originalComponent:e,getSystem:r.getSystem})):u.createElement(e,n),Pw=(t,e)=>{const{fn:r,specSelectors:n}=e;return Object.fromEntries(Object.entries(t).map((([a,o])=>{const p=r[a];return[a,(...c)=>n.isOAS32()?o(...c):typeof p=="function"?p(...c):void 0]})))},yB=Mc((t=>{const{getSystem:e}=t,r=e().getComponent("OAS31Contact",!0);return u.createElement(r,t)})),vB=Mc((({getSystem:t})=>{const e=t().getComponent("OAS31Info",!0);return u.createElement(e,null)})),bB=Mc((t=>{const{getSystem:e}=t,r=e().getComponent("OAS31License",!0);return u.createElement(r,t)})),hO=t=>{if(typeof t!="function")return null;const e=t();return()=>[...e,"discriminator","xml","externalDocs","example","$$ref"]},Rc=Mc((({getSystem:t,...e})=>{const r=t(),{getComponent:n,fn:a,getConfigs:o}=r,p=o(),c=window?.location?.pathname??"/";if(Rc.ModelWithJSONSchemaContext&&Rc.pathname===c)return u.createElement(Rc.ModelWithJSONSchemaContext,e);const d=n("OAS31Model"),E=n("withJSONSchema202012SystemContext");return Rc.ModelWithJSONSchemaContext=E(d,{config:{default$schema:"https://spec.openapis.org/oas/3.2/schema/2025-09-17",defaultExpandedLevels:p.defaultModelExpandDepth,includeReadOnly:e.includeReadOnly,includeWriteOnly:e.includeWriteOnly},fn:{getProperties:a.jsonSchema202012.getProperties,isExpandable:a.jsonSchema202012.isExpandable,getSchemaKeywords:hO(a.jsonSchema202012.getSchemaKeywords)}}),Rc.pathname=c,u.createElement(Rc.ModelWithJSONSchemaContext,e)}));Rc.ModelWithJSONSchemaContext=null,Rc.pathname=null;const wB=Rc,Dc=Mc((({getSystem:t})=>{const{getComponent:e,fn:r,getConfigs:n}=t(),a=n(),o=window?.location?.pathname??"/";if(Dc.ModelsWithJSONSchemaContext&&Dc.pathname===o)return u.createElement(Dc.ModelsWithJSONSchemaContext,null);const p=e("OAS31Models",!0),c=e("withJSONSchema202012SystemContext");return Dc.ModelsWithJSONSchemaContext=c(p,{config:{default$schema:"https://spec.openapis.org/oas/3.2/schema/2025-09-17",defaultExpandedLevels:a.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:hO(r.jsonSchema202012.getSchemaKeywords)}}),Dc.pathname=o,u.createElement(Dc.ModelsWithJSONSchemaContext,null)}));Dc.ModelsWithJSONSchemaContext=null,Dc.pathname=null;const EB=Dc,SB=Mc((t=>{const{originalComponent:e}=t;return u.createElement(e,{oasVersion:"3.2"})})),xB=(t,e)=>r=>{const n=e.specSelectors.isOAS32(),a=e.getComponent("OAS32VersionPragmaFilter");return u.createElement(a,Yr()({isOAS32:n},r))},_B=({schema:t,getSystem:e})=>{if(!t?.description)return null;const{getComponent:r}=e(),n=r("Markdown");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},u.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},u.createElement(n,{source:t.description})))},OB=Mc(_B),kB=Mc((({schema:t,getSystem:e,originalComponent:r})=>{const{getComponent:n}=e(),a=n("JSONSchema202012KeywordDiscriminator"),o=n("JSONSchema202012KeywordXml"),p=n("JSONSchema202012KeywordExample"),c=n("JSONSchema202012KeywordExternalDocs");return u.createElement(u.Fragment,null,u.createElement(r,{schema:t}),u.createElement(a,{schema:t,getSystem:e}),u.createElement(o,{schema:t,getSystem:e}),u.createElement(c,{schema:t,getSystem:e}),u.createElement(p,{schema:t,getSystem:e}))})),AB=kB,CB=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{useComponent:a,usePath:o}=r.jsonSchema202012,{getDependentRequired:p,getProperties:c}=r.jsonSchema202012.useFn(),d=r.jsonSchema202012.useConfig(),E=Array.isArray(t?.required)?t.required:[],{path:x}=o("properties"),k=a("JSONSchema"),P=n("JSONSchema202012PathContext")(),R=c(t,d);return Object.keys(R).length===0?null:u.createElement(P.Provider,{value:x},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},u.createElement("ul",null,Object.entries(R).map((([L,V])=>{const Q=E.includes(L),J=p(L,t);return u.createElement("li",{key:L,className:Xr()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":Q})},u.createElement(k,{name:L,schema:V,dependentRequired:J}))})))))},jB=Mc(CB),PB=vu()(["get","put","post","delete","options","head","patch","trace","query"]),NB=(t,e)=>(r,...n)=>e.specSelectors.isOAS32()||t(...n),TB=(dO=()=>(t,e)=>e.oas32Selectors.validOperationMethods(),(t,e)=>(r,...n)=>{if(e.getSystem().specSelectors.isOAS32()){const a=dO(r,...n);return typeof a=="function"?a(t,e):a}return t(...n)});var dO;const fO=(0,H.Map)(),IB=(t,e)=>()=>{const r=e.specSelectors.specJson();return uO(r)},MB=()=>t=>{const e=t.specSelectors.info().get("license");return H.Map.isMap(e)?e:fO},RB=()=>t=>t.specSelectors.license().get("name","License"),DB=()=>t=>t.specSelectors.license().get("url"),FB=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),LB=()=>t=>t.specSelectors.license().get("identifier"),$B=()=>t=>{const e=t.specSelectors.info().get("contact");return H.Map.isMap(e)?e:fO},BB=()=>t=>t.specSelectors.contact().get("name","the developer"),qB=()=>t=>t.specSelectors.contact().get("email"),UB=()=>t=>t.specSelectors.contact().get("url"),zB=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectContactUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),VB=()=>t=>t.specSelectors.info().get("summary"),JB=function({fn:e,getSystem:r}){if(typeof e.sampleFromSchema=="function"&&e.jsonSchema202012){const o=Pw({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:p=>e.jsonSchema202012.getType(Mr(p)),getSchemaObjectType:p=>e.jsonSchema202012.foldType(Mr(p)?.type)},r());Object.assign(this.fn,o)}const n=(o=>(p,c=null)=>{const{fn:d}=o();if(d.isFileUploadIntendedOAS30(p,c))return!0;const E=H.Map.isMap(p);if(!E&&!Ai()(p))return!1;const x=E?p.get("contentMediaType"):p.contentMediaType,k=E?p.get("contentEncoding"):p.contentEncoding;return typeof x=="string"&&x!==""||typeof k=="string"&&k!==""})(r),{isFileUploadIntended:a}=Pw({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=a,this.fn.isFileUploadIntendedOAS32=n,e.jsonSchema202012){const{hasSchemaType:o}=Pw({hasSchemaType:e.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=o}},WB=({fn:t})=>{const e=t.createSystemSelector||pO;return{afterLoad:JB,fn:{isOAS32:uO,createSystemSelector:pO,createOnlyOAS32Selector:gB},components:{OAS32VersionPragmaFilter:mB},wrapComponents:{Contact:yB,InfoContainer:vB,License:bB,Model:wB,Models:EB,OpenAPIVersion:SB,VersionPragmaFilter:xB,JSONSchema202012KeywordDescription:OB,JSONSchema202012KeywordExamples:AB,JSONSchema202012KeywordProperties:jB},statePlugins:{spec:{selectors:{isOAS32:e(IB),selectInfoSummaryField:VB,license:MB,selectLicenseNameField:RB,selectLicenseUrlField:DB,selectLicenseIdentifierField:LB,selectLicenseUrl:e(FB),contact:$B,selectContactNameField:BB,selectContactEmailField:qB,selectContactUrlField:UB,selectContactUrl:e(zB)},wrapSelectors:{isOAS3:NB,validOperationMethods:TB}},oas32:{selectors:{validOperationMethods:PB}}}}},HB=va().object,KB=va().bool,eh=(va().oneOfType([HB,KB]),(0,u.createContext)(null));eh.displayName="JSONSchemaContext";const ls=(0,u.createContext)(0);ls.displayName="JSONSchemaLevelContext";const Nw=(0,u.createContext)(new Set),pi=(0,u.createContext)([]);class Ks{static Collapsed="collapsed";static Expanded="expanded";static DeeplyExpanded="deeply-expanded"}const Tw=()=>{const{config:t}=(0,u.useContext)(eh);return t},Jt=t=>{const{components:e}=(0,u.useContext)(eh);return e[t]||null},Rn=(t=void 0)=>{const{fn:e}=(0,u.useContext)(eh);return t!==void 0?e[t]:e},mO=()=>{const[,t]=(0,u.useState)(null),{state:e}=(0,u.useContext)(eh);return{state:e,setState:r=>{r(e),t({})}}},cs=()=>{const t=(0,u.useContext)(ls);return[t,t+1]},Qo=t=>{const e=(0,u.useContext)(pi),{setState:r}=mO(),n=typeof t=="string"?[...e,t]:e;return{path:n,pathMutator:(a,o={deep:!1})=>{const p=n.toString(),c=E=>{E.paths[p]=a,a===Ks.Collapsed&&Object.keys(E.paths).forEach((x=>{x.startsWith(p)&&E.paths[x]===Ks.DeeplyExpanded&&(E.paths[x]=Ks.Expanded)}))},d=E=>{Object.keys(E.paths).forEach((x=>{x.startsWith(p)&&(E.paths[x]=a)}))};o.deep?r(d):r(c)}}},Gs=t=>{const[e]=cs(),{defaultExpandedLevels:r}=Tw(),{path:n,pathMutator:a}=Qo(t),{path:o}=Qo(),{state:p}=mO(),c=p.paths[n.toString()],d=p.paths[o.toString()]??p.paths[o.slice(0,-1).toString()],E=c??(r-e>0?Ks.Expanded:Ks.Collapsed),x=E!==Ks.Collapsed;return(0,u.useEffect)((()=>{a(d===Ks.DeeplyExpanded?Ks.DeeplyExpanded:E)}),[d]),{isExpanded:x,setExpanded:(0,u.useCallback)(((k={deep:!1})=>{a(k.deep?Ks.DeeplyExpanded:Ks.Expanded)}),[]),setCollapsed:(0,u.useCallback)(((k={deep:!1})=>{a(Ks.Collapsed,k)}),[])}},gO=(t=void 0)=>{if(t===void 0)return(0,u.useContext)(Nw);const e=(0,u.useContext)(Nw);return new Set([...e,t])},GB=(0,u.forwardRef)((({schema:t,name:e="",dependentRequired:r=[],onExpand:n=()=>{},identifier:a=""},o)=>{const p=Rn(),c=a||t?.$id||e,{path:d}=Qo(c),{isExpanded:E,setExpanded:x,setCollapsed:k}=Gs(c),[P,R]=cs(),L=(()=>{const[Lr]=cs();return Lr>0})(),V=p.isExpandable(t)||r.length>0,Q=(Lr=>gO().has(Lr))(t),J=gO(t),re=p.stringifyConstraints(t),me=Jt("Accordion"),le=Jt("Keyword$schema"),ve=Jt("Keyword$vocabulary"),be=Jt("Keyword$id"),ce=Jt("Keyword$anchor"),_e=Jt("Keyword$dynamicAnchor"),Ae=Jt("Keyword$ref"),xe=Jt("Keyword$dynamicRef"),Oe=Jt("Keyword$defs"),je=Jt("Keyword$comment"),G=Jt("KeywordAllOf"),de=Jt("KeywordAnyOf"),Ne=Jt("KeywordOneOf"),Ye=Jt("KeywordNot"),ht=Jt("KeywordIf"),Ct=Jt("KeywordThen"),_t=Jt("KeywordElse"),qt=Jt("KeywordDependentSchemas"),It=Jt("KeywordPrefixItems"),Ot=Jt("KeywordItems"),et=Jt("KeywordContains"),Dt=Jt("KeywordProperties"),or=Jt("KeywordPatternProperties"),Ut=Jt("KeywordAdditionalProperties"),pr=Jt("KeywordPropertyNames"),W=Jt("KeywordUnevaluatedItems"),$e=Jt("KeywordUnevaluatedProperties"),Je=Jt("KeywordType"),Ft=Jt("KeywordEnum"),it=Jt("KeywordConst"),bt=Jt("KeywordConstraint"),ut=Jt("KeywordDependentRequired"),Xt=Jt("KeywordContentSchema"),zt=Jt("KeywordTitle"),tr=Jt("KeywordDescription"),Er=Jt("KeywordDefault"),dr=Jt("KeywordDeprecated"),qr=Jt("KeywordReadOnly"),en=Jt("KeywordWriteOnly"),kn=Jt("KeywordExamples"),ln=Jt("ExtensionKeywords"),jt=Jt("ExpandDeepButton"),We=(0,u.useCallback)(((Lr,zr)=>{zr?x():k(),n(Lr,zr,!1)}),[n,x,k]),Kr=(0,u.useCallback)(((Lr,zr)=>{zr?x({deep:!0}):k({deep:!0}),n(Lr,zr,!0)}),[n,x,k]);return u.createElement(pi.Provider,{value:d},u.createElement(ls.Provider,{value:R},u.createElement(Nw.Provider,{value:J},u.createElement("article",{ref:o,"data-json-schema-level":P,className:Xr()("json-schema-2020-12",{"json-schema-2020-12--embedded":L,"json-schema-2020-12--circular":Q})},u.createElement("div",{className:"json-schema-2020-12-head"},V&&!Q?u.createElement(u.Fragment,null,u.createElement(me,{expanded:E,onChange:We},u.createElement(zt,{title:e,schema:t})),u.createElement(jt,{expanded:E,onClick:Kr})):u.createElement(zt,{title:e,schema:t}),u.createElement(dr,{schema:t}),u.createElement(qr,{schema:t}),u.createElement(en,{schema:t}),u.createElement(Je,{schema:t,isCircular:Q}),re.length>0&&re.map((Lr=>u.createElement(bt,{key:`${Lr.scope}-${Lr.value}`,constraint:Lr})))),u.createElement("div",{className:Xr()("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!E})},E&&u.createElement(u.Fragment,null,u.createElement(tr,{schema:t}),!Q&&V&&u.createElement(u.Fragment,null,u.createElement(Dt,{schema:t}),u.createElement(or,{schema:t}),u.createElement(Ut,{schema:t}),u.createElement($e,{schema:t}),u.createElement(pr,{schema:t}),u.createElement(G,{schema:t}),u.createElement(de,{schema:t}),u.createElement(Ne,{schema:t}),u.createElement(Ye,{schema:t}),u.createElement(ht,{schema:t}),u.createElement(Ct,{schema:t}),u.createElement(_t,{schema:t}),u.createElement(qt,{schema:t}),u.createElement(It,{schema:t}),u.createElement(Ot,{schema:t}),u.createElement(W,{schema:t}),u.createElement(et,{schema:t}),u.createElement(Xt,{schema:t})),u.createElement(Ft,{schema:t}),u.createElement(it,{schema:t}),u.createElement(ut,{schema:t,dependentRequired:r}),u.createElement(Er,{schema:t}),u.createElement(kn,{schema:t}),u.createElement(le,{schema:t}),u.createElement(ve,{schema:t}),u.createElement(be,{schema:t}),u.createElement(ce,{schema:t}),u.createElement(_e,{schema:t}),u.createElement(Ae,{schema:t}),!Q&&V&&u.createElement(Oe,{schema:t}),u.createElement(xe,{schema:t}),u.createElement(je,{schema:t}),u.createElement(ln,{schema:t})))))))})),yO=GB,vO=({schema:t})=>t?.$schema?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$schema"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$schema)):null,bO=({schema:t})=>{const e="$vocabulary",{path:r}=Qo(e),{isExpanded:n,setExpanded:a,setCollapsed:o}=Gs(e),p=Jt("Accordion"),c=(0,u.useCallback)((()=>{n?o():a()}),[n,a,o]);return t?.$vocabulary?typeof t.$vocabulary!="object"?null:u.createElement(pi.Provider,{value:r},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary"},u.createElement(p,{expanded:n,onChange:c},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$vocabulary")),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",null,n&&Object.entries(t.$vocabulary).map((([d,E])=>u.createElement("li",{key:d,className:Xr()("json-schema-2020-12-$vocabulary-uri",{"json-schema-2020-12-$vocabulary-uri--disabled":!E})},u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},d))))))):null},wO=({schema:t})=>t?.$id?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$id"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$id"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$id)):null,EO=({schema:t})=>t?.$anchor?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$anchor"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$anchor)):null,SO=({schema:t})=>t?.$dynamicAnchor?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicAnchor"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicAnchor)):null,xO=({schema:t})=>t?.$ref?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$ref"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$ref)):null,_O=({schema:t})=>t?.$dynamicRef?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicRef"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicRef)):null,OO=({schema:t})=>{const e=t?.$defs||{},r="$defs",{path:n}=Qo(r),{isExpanded:a,setExpanded:o,setCollapsed:p}=Gs(r),[c,d]=cs(),E=Jt("Accordion"),x=Jt("ExpandDeepButton"),k=Jt("JSONSchema"),P=(0,u.useCallback)((()=>{a?p():o()}),[a,o,p]),R=(0,u.useCallback)(((L,V)=>{V?o({deep:!0}):p({deep:!0})}),[o,p]);return Object.keys(e).length===0?null:u.createElement(pi.Provider,{value:n},u.createElement(ls.Provider,{value:d},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs","data-json-schema-level":c},u.createElement(E,{expanded:a,onChange:P},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$defs")),u.createElement(x,{expanded:a,onClick:R}),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&u.createElement(u.Fragment,null,Object.entries(e).map((([L,V])=>u.createElement("li",{key:L,className:"json-schema-2020-12-property"},u.createElement(k,{name:L,schema:V})))))))))},kO=({schema:t})=>t?.$comment?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$comment"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$comment)):null,AO=({schema:t})=>{const e=t?.allOf||[],r=Rn(),n="allOf",{path:a}=Qo(n),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(n),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=Jt("JSONSchema"),R=Jt("KeywordType"),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return Array.isArray(e)&&e.length!==0?u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf","data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"All of")),u.createElement(k,{expanded:o,onClick:V}),u.createElement(R,{schema:{allOf:e}}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(P,{name:`#${J} ${r.getTitle(Q)}`,schema:Q}))))))))):null},CO=({schema:t})=>{const e=t?.anyOf||[],r=Rn(),n="anyOf",{path:a}=Qo(n),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(n),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=Jt("JSONSchema"),R=Jt("KeywordType"),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return Array.isArray(e)&&e.length!==0?u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf","data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Any of")),u.createElement(k,{expanded:o,onClick:V}),u.createElement(R,{schema:{anyOf:e}}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(P,{name:`#${J} ${r.getTitle(Q)}`,schema:Q}))))))))):null},jO=({schema:t})=>{const e=t?.oneOf||[],r=Rn(),n="oneOf",{path:a}=Qo(n),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(n),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=Jt("JSONSchema"),R=Jt("KeywordType"),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return Array.isArray(e)&&e.length!==0?u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf","data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"One of")),u.createElement(k,{expanded:o,onClick:V}),u.createElement(R,{schema:{oneOf:e}}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(P,{name:`#${J} ${r.getTitle(Q)}`,schema:Q}))))))))):null},PO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"not"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Not");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--not"},u.createElement(r,{name:n,schema:t.not,identifier:"not"}))},NO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"if"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"If");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},u.createElement(r,{name:n,schema:t.if,identifier:"if"}))},TO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"then"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Then");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--then"},u.createElement(r,{name:n,schema:t.then,identifier:"then"}))},IO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"else"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Else");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},u.createElement(r,{name:n,schema:t.else,identifier:"else"}))},MO=({schema:t})=>{const e=t?.dependentSchemas||[],r="dependentSchemas",{path:n}=Qo(r),{isExpanded:a,setExpanded:o,setCollapsed:p}=Gs(r),[c,d]=cs(),E=Jt("Accordion"),x=Jt("ExpandDeepButton"),k=Jt("JSONSchema"),P=(0,u.useCallback)((()=>{a?p():o()}),[a,o,p]),R=(0,u.useCallback)(((L,V)=>{V?o({deep:!0}):p({deep:!0})}),[o,p]);return typeof e!="object"||Object.keys(e).length===0?null:u.createElement(pi.Provider,{value:n},u.createElement(ls.Provider,{value:d},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas","data-json-schema-level":c},u.createElement(E,{expanded:a,onChange:P},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Dependent schemas")),u.createElement(x,{expanded:a,onClick:R}),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&u.createElement(u.Fragment,null,Object.entries(e).map((([L,V])=>u.createElement("li",{key:L,className:"json-schema-2020-12-property"},u.createElement(k,{name:L,schema:V})))))))))},RO=({schema:t})=>{const e=t?.prefixItems||[],r=Rn(),n="prefixItems",{path:a}=Qo(n),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(n),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=Jt("JSONSchema"),R=Jt("KeywordType"),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return Array.isArray(e)&&e.length!==0?u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems","data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Prefix items")),u.createElement(k,{expanded:o,onClick:V}),u.createElement(R,{schema:{prefixItems:e}}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(P,{name:`#${J} ${r.getTitle(Q)}`,schema:Q}))))))))):null},DO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"items"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Items");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--items"},u.createElement(r,{name:n,schema:t.items,identifier:"items"}))},FO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"contains"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Contains");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contains"},u.createElement(r,{name:n,schema:t.contains,identifier:"contains"}))},LO=({schema:t})=>{const e=Rn(),r=t?.properties||{},n=Array.isArray(t?.required)?t.required:[],a=Jt("JSONSchema"),{path:o}=Qo("properties");return Object.keys(r).length===0?null:u.createElement(pi.Provider,{value:o},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},u.createElement("ul",null,Object.entries(r).map((([p,c])=>{const d=n.includes(p),E=e.getDependentRequired(p,t);return u.createElement("li",{key:p,className:Xr()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":d})},u.createElement(a,{name:p,schema:c,dependentRequired:E}))})))))},$O=({schema:t})=>{const e=t?.patternProperties||{},r=Jt("JSONSchema"),{path:n}=Qo("patternProperties");return Object.keys(e).length===0?null:u.createElement(pi.Provider,{value:n},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties"},u.createElement("ul",null,Object.entries(e).map((([a,o])=>u.createElement("li",{key:a,className:"json-schema-2020-12-property"},u.createElement(r,{name:a,schema:o})))))))},BO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"additionalProperties"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Additional properties");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties"},t.additionalProperties===!0?u.createElement(u.Fragment,null,n,u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"allowed")):t.additionalProperties===!1?u.createElement(u.Fragment,null,n,u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"forbidden")):u.createElement(r,{name:n,schema:t.additionalProperties,identifier:"additionalProperties"}))},qO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema"),n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Property names");return e.hasKeyword(t,"propertyNames")?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames"},u.createElement(r,{name:n,schema:t.propertyNames,identifier:"propertyNames"})):null},UO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"unevaluatedItems"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated items");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems"},u.createElement(r,{name:n,schema:t.unevaluatedItems,identifier:"unevaluatedItems"}))},zO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"unevaluatedProperties"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated properties");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties"},u.createElement(r,{name:n,schema:t.unevaluatedProperties,identifier:"unevaluatedProperties"}))},VO=({schema:t,isCircular:e=!1})=>{const r=Rn().getType(t),n=e?" [circular]":"";return u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${r}${n}`)},JO=({schema:t})=>{const e=Jt("JSONViewer");return Array.isArray(t?.enum)?u.createElement(e,{name:"Enum",value:t.enum,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--enum"}):null},WO=({schema:t})=>{const e=Rn(),r=Jt("JSONViewer");return e.hasKeyword(t,"const")?u.createElement(r,{name:"Const",value:t.const,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--const"}):null},HO=t=>typeof t=="string"?`${t.charAt(0).toUpperCase()}${t.slice(1)}`:t,KO=t=>(e,{lookup:r="extended"}={})=>{const n=t();if(e?.title!=null)return n.upperFirst(String(e.title));if(r==="extended"){if(e?.$anchor!=null)return n.upperFirst(String(e.$anchor));if(e?.$id!=null)return String(e.$id)}return""},GO=t=>{const e=(r,n=new WeakSet)=>{const a=t();if(r==null)return"any";if(a.isBooleanJSONSchema(r))return r?"any":"never";if(typeof r!="object"||n.has(r))return"any";n.add(r);const{type:o,prefixItems:p,items:c}=r,d=()=>{if(Array.isArray(p)){const k=p.map((R=>e(R,n))),P=c?e(c,n):"any";return`array<[${k.join(", ")}], ${P}>`}return c?`array<${e(c,n)}>`:"array"};if(r.not&&e(r.not)==="any")return"never";const E=(k,P)=>Array.isArray(r[k])?`(${r[k].map((R=>e(R,n))).join(P)})`:null,x=[Array.isArray(o)?o.map((k=>k==="array"?d():k)).join(" | "):o==="array"?d():["null","boolean","object","array","number","integer","string"].includes(o)?o:(()=>{if(Object.hasOwn(r,"prefixItems")||Object.hasOwn(r,"items")||Object.hasOwn(r,"contains"))return d();if(Object.hasOwn(r,"properties")||Object.hasOwn(r,"additionalProperties")||Object.hasOwn(r,"patternProperties"))return"object";if(["int32","int64"].includes(r.format))return"integer";if(["float","double"].includes(r.format))return"number";if(Object.hasOwn(r,"minimum")||Object.hasOwn(r,"maximum")||Object.hasOwn(r,"exclusiveMinimum")||Object.hasOwn(r,"exclusiveMaximum")||Object.hasOwn(r,"multipleOf"))return"number | integer";if(Object.hasOwn(r,"pattern")||Object.hasOwn(r,"format")||Object.hasOwn(r,"minLength")||Object.hasOwn(r,"maxLength")||Object.hasOwn(r,"contentEncoding")||Object.hasOwn(r,"contentMediaType"))return"string";if(r.const!==void 0){if(r.const===null)return"null";if(typeof r.const=="boolean")return"boolean";if(typeof r.const=="number")return Number.isInteger(r.const)?"integer":"number";if(typeof r.const=="string")return"string";if(Array.isArray(r.const))return"array";if(typeof r.const=="object")return"object"}return null})(),E("oneOf"," | "),E("anyOf"," | "),E("allOf"," & ")].filter(Boolean).join(" | ");return n.delete(r),x||"any"};return e},YO=t=>typeof t=="boolean",XO=(t,e)=>t!==null&&typeof t=="object"&&Object.hasOwn(t,e),QO=t=>e=>{const r=t();return e?.$schema||e?.$vocabulary||e?.$id||e?.$anchor||e?.$dynamicAnchor||e?.$ref||e?.$dynamicRef||e?.$defs||e?.$comment||e?.allOf||e?.anyOf||e?.oneOf||r.hasKeyword(e,"not")||r.hasKeyword(e,"if")||r.hasKeyword(e,"then")||r.hasKeyword(e,"else")||e?.dependentSchemas||e?.prefixItems||r.hasKeyword(e,"items")||r.hasKeyword(e,"contains")||e?.properties||e?.patternProperties||r.hasKeyword(e,"additionalProperties")||r.hasKeyword(e,"propertyNames")||r.hasKeyword(e,"unevaluatedItems")||r.hasKeyword(e,"unevaluatedProperties")||e?.description||e?.enum||r.hasKeyword(e,"const")||r.hasKeyword(e,"contentSchema")||r.hasKeyword(e,"default")||e?.examples||r.getExtensionKeywords(e).length>0},ZO=t=>t===null||["number","bigint","boolean"].includes(typeof t)?String(t):Array.isArray(t)?`[${t.map(ZO).join(", ")}]`:JSON.stringify(t),Lv=(t,e,r)=>{const n=typeof e=="number",a=typeof r=="number";return n&&a?e===r?`${e} ${t}`:`[${e}, ${r}] ${t}`:n?`≥ ${e} ${t}`:a?`≤ ${r} ${t}`:null},YB=t=>{const e=[],r=(d=>{if(typeof d?.multipleOf!="number"||d.multipleOf<=0||d.multipleOf===1)return null;const{multipleOf:E}=d;if(Number.isInteger(E))return`multiple of ${E}`;const x=10**E.toString().split(".")[1].length;return`multiple of ${E*x}/${x}`})(t);r!==null&&e.push({scope:"number",value:r});const n=(d=>{const E=d?.minimum,x=d?.maximum,k=d?.exclusiveMinimum,P=d?.exclusiveMaximum,R=typeof E=="number",L=typeof x=="number",V=typeof k=="number",Q=typeof P=="number",J=V&&(!R||EP);return(R||V)&&(L||Q)?`${J?"(":"["}${J?k:E}, ${re?P:x}${re?")":"]"}`:R||V?`${J?">":"≥"} ${J?k:E}`:L||Q?`${re?"<":"≤"} ${re?P:x}`:null})(t);n!==null&&e.push({scope:"number",value:n}),t?.format&&e.push({scope:"string",value:t.format});const a=Lv("characters",t?.minLength,t?.maxLength);a!==null&&e.push({scope:"string",value:a}),t?.pattern&&e.push({scope:"string",value:`matches ${t?.pattern}`}),t?.contentMediaType&&e.push({scope:"string",value:`media type: ${t.contentMediaType}`}),t?.contentEncoding&&e.push({scope:"string",value:`encoding: ${t.contentEncoding}`});const o=Lv(t?.uniqueItems?"unique items":"items",t?.minItems,t?.maxItems);o!==null&&e.push({scope:"array",value:o}),t?.uniqueItems&&!o&&e.push({scope:"array",value:"unique"});const p=Lv("contained items",t?.minContains,t?.maxContains);p!==null&&e.push({scope:"array",value:p});const c=Lv("properties",t?.minProperties,t?.maxProperties);return c!==null&&e.push({scope:"object",value:c}),e},XB=(t,e)=>e?.dependentRequired?Array.from(Object.entries(e.dependentRequired).reduce(((r,[n,a])=>(Array.isArray(a)&&a.includes(t)&&r.add(n),r)),new Set)):[],$v=t=>typeof t=="object"&&t!==null&&!Array.isArray(t)&&(Object.getPrototypeOf(t)===null||Object.getPrototypeOf(t)===Object.prototype),ek=()=>["$schema","$vocabulary","$id","$anchor","$dynamicAnchor","$dynamicRef","$ref","$defs","$comment","allOf","anyOf","oneOf","not","if","then","else","dependentSchemas","prefixItems","items","contains","properties","patternProperties","additionalProperties","propertyNames","unevaluatedItems","unevaluatedProperties","type","enum","const","multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","maxContains","minContains","maxProperties","minProperties","required","dependentRequired","title","description","default","deprecated","readOnly","writeOnly","examples","format","contentEncoding","contentMediaType","contentSchema"],tk=t=>e=>{const r=t().getSchemaKeywords();return $v(e)?((n,a)=>{const o=new Set(a);return n.filter((p=>!o.has(p)))})(Object.keys(e),r):[]},QB=(t,e)=>{const r=H.Map.isMap(t);if(!r&&!$v(t))return!1;const n=o=>e===o||Array.isArray(e)&&e.includes(o),a=r?t.get("type"):t.type;return H.List.isList(a)||Array.isArray(a)?a.some((o=>n(o))):n(a)},ZB=({constraint:t})=>$v(t)&&typeof t.scope=="string"&&typeof t.value=="string"?u.createElement("span",{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${t.scope}`},t.value):null,rk=u.memo(ZB),nk=({dependentRequired:t})=>Array.isArray(t)&&t.length!==0?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Required when defined"),u.createElement("ul",null,t.map((e=>u.createElement("li",{key:e},u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning"},e)))))):null,ak=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"contentSchema"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Content schema");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema"},u.createElement(r,{name:n,schema:t.contentSchema,identifier:"contentSchema"}))},ok=({title:t="",schema:e})=>{const r=Rn(),n=t||r.getTitle(e);return n?u.createElement("strong",{className:"json-schema-2020-12__title"},n):null},ik=({schema:t})=>t?.description?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},u.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},t.description)):null,sk=({schema:t})=>{const e=Rn(),r=Jt("JSONViewer");return e.hasKeyword(t,"default")?u.createElement(r,{name:"Default",value:t.default,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--default"}):null},lk=({schema:t})=>t?.deprecated!==!0?null:u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--warning"},"deprecated"),ck=({schema:t})=>t?.readOnly!==!0?null:u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"read-only"),uk=({schema:t})=>t?.writeOnly!==!0?null:u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"write-only"),pk=({schema:t})=>{const e=t?.examples||[],r=Jt("JSONViewer");return Array.isArray(e)&&e.length!==0?u.createElement(r,{name:"Examples",value:t.examples,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--examples"}):null},hk=({schema:t})=>{const e=Rn(),r="ExtensionKeywords",{path:n}=Qo(r),{isExpanded:a,setExpanded:o,setCollapsed:p}=Gs(r),[c,d]=cs(),E=Jt("Accordion"),x=Jt("ExpandDeepButton"),k=Jt("JSONViewer"),{showExtensionKeywords:P}=Tw(),R=e.getExtensionKeywords(t),L=(0,u.useCallback)((()=>{a?p():o()}),[a,o,p]),V=(0,u.useCallback)(((Q,J)=>{J?o({deep:!0}):p({deep:!0})}),[o,p]);return P&&R.length!==0?u.createElement(pi.Provider,{value:n},u.createElement(ls.Provider,{value:d},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--extension-keywords","data-json-schema-level":c},u.createElement(E,{expanded:a,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--extension"},"Extension Keywords")),u.createElement(x,{expanded:a,onClick:V}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&u.createElement(u.Fragment,null,R.map((Q=>u.createElement(k,{key:Q,name:Q,value:t[Q],className:"json-schema-2020-12-json-viewer-extension-keyword"})))))))):null},Iw=({name:t,value:e,className:r})=>{const n=Rn(),{path:a}=Qo(t),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(t),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=typeof e=="string"||typeof e=="number"||typeof e=="bigint"||typeof e=="boolean"||typeof e=="symbol"||e==null,R=(Q=>$v(Q)&&Object.keys(Q).length===0)(e)||(Q=>Array.isArray(Q)&&Q.length===0)(e),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return P?u.createElement("div",{className:Xr()("json-schema-2020-12-json-viewer",r)},u.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t),u.createElement("span",{className:"json-schema-2020-12-json-viewer__value json-schema-2020-12-json-viewer__value--secondary"},n.stringify(e))):R?u.createElement("div",{className:Xr()("json-schema-2020-12-json-viewer",r)},u.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(e)?"empty array":"empty object")):u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:Xr()("json-schema-2020-12-json-viewer",r),"data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t)),u.createElement(k,{expanded:o,onClick:V}),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(e)?"array":"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-json-viewer__children",{"json-schema-2020-12-json-viewer__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,Array.isArray(e)?e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(Iw,{name:`#${J}`,value:Q,className:r})))):Object.entries(e).map((([Q,J])=>u.createElement("li",{key:Q,className:"json-schema-2020-12-property"},u.createElement(Iw,{name:Q,value:J,className:r})))))))))},dk=Iw,fk=({expanded:t=!1,children:e,onChange:r})=>{const n=Jt("ChevronRightIcon"),a=(0,u.useCallback)((o=>{r(o,!t)}),[t,r]);return u.createElement("button",{type:"button",className:"json-schema-2020-12-accordion",onClick:a},u.createElement("div",{className:"json-schema-2020-12-accordion__children"},e),u.createElement("span",{className:Xr()("json-schema-2020-12-accordion__icon",{"json-schema-2020-12-accordion__icon--expanded":t,"json-schema-2020-12-accordion__icon--collapsed":!t})},u.createElement(n,null)))},mk=({expanded:t,onClick:e})=>{const r=(0,u.useCallback)((n=>{e(n,!t)}),[t,e]);return u.createElement("button",{type:"button",className:"json-schema-2020-12-expand-deep-button",onClick:r},t?"Collapse all":"Expand all")},gk=()=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},u.createElement("path",{fill:"currentColor",d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),yk=(t,e={})=>{const r={components:{JSONSchema:yO,Keyword$schema:vO,Keyword$vocabulary:bO,Keyword$id:wO,Keyword$anchor:EO,Keyword$dynamicAnchor:SO,Keyword$ref:xO,Keyword$dynamicRef:_O,Keyword$defs:OO,Keyword$comment:kO,KeywordAllOf:AO,KeywordAnyOf:CO,KeywordOneOf:jO,KeywordNot:PO,KeywordIf:NO,KeywordThen:TO,KeywordElse:IO,KeywordDependentSchemas:MO,KeywordPrefixItems:RO,KeywordItems:DO,KeywordContains:FO,KeywordProperties:LO,KeywordPatternProperties:$O,KeywordAdditionalProperties:BO,KeywordPropertyNames:qO,KeywordUnevaluatedItems:UO,KeywordUnevaluatedProperties:zO,KeywordType:VO,KeywordEnum:JO,KeywordConst:WO,KeywordConstraint:rk,KeywordDependentRequired:nk,KeywordContentSchema:ak,KeywordTitle:ok,KeywordDescription:ik,KeywordDefault:sk,KeywordDeprecated:lk,KeywordReadOnly:ck,KeywordWriteOnly:uk,KeywordExamples:pk,ExtensionKeywords:hk,JSONViewer:dk,Accordion:fk,ExpandDeepButton:mk,ChevronRightIcon:gk,...e.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,showExtensionKeywords:!0,...e.config},fn:{upperFirst:HO,getTitle:KO(Rn),getType:GO(Rn),isBooleanJSONSchema:YO,hasKeyword:XO,isExpandable:QO(Rn),stringify:ZO,stringifyConstraints:YB,getDependentRequired:XB,getSchemaKeywords:ek,getExtensionKeywords:tk(Rn),...e.fn},state:{paths:{}}},n=a=>u.createElement(eh.Provider,{value:r},u.createElement(t,a));return n.contexts={JSONSchemaContext:eh},n.displayName=t.displayName,n},eq=({getSystem:t})=>(e,r={})=>{const{getComponent:n,getConfigs:a}=t(),o=a(),p=n("JSONSchema202012"),c=n("JSONSchema202012Keyword$schema"),d=n("JSONSchema202012Keyword$vocabulary"),E=n("JSONSchema202012Keyword$id"),x=n("JSONSchema202012Keyword$anchor"),k=n("JSONSchema202012Keyword$dynamicAnchor"),P=n("JSONSchema202012Keyword$ref"),R=n("JSONSchema202012Keyword$dynamicRef"),L=n("JSONSchema202012Keyword$defs"),V=n("JSONSchema202012Keyword$comment"),Q=n("JSONSchema202012KeywordAllOf"),J=n("JSONSchema202012KeywordAnyOf"),re=n("JSONSchema202012KeywordOneOf"),me=n("JSONSchema202012KeywordNot"),le=n("JSONSchema202012KeywordIf"),ve=n("JSONSchema202012KeywordThen"),be=n("JSONSchema202012KeywordElse"),ce=n("JSONSchema202012KeywordDependentSchemas"),_e=n("JSONSchema202012KeywordPrefixItems"),Ae=n("JSONSchema202012KeywordItems"),xe=n("JSONSchema202012KeywordContains"),Oe=n("JSONSchema202012KeywordProperties"),je=n("JSONSchema202012KeywordPatternProperties"),G=n("JSONSchema202012KeywordAdditionalProperties"),de=n("JSONSchema202012KeywordPropertyNames"),Ne=n("JSONSchema202012KeywordUnevaluatedItems"),Ye=n("JSONSchema202012KeywordUnevaluatedProperties"),ht=n("JSONSchema202012KeywordType"),Ct=n("JSONSchema202012KeywordEnum"),_t=n("JSONSchema202012KeywordConst"),qt=n("JSONSchema202012KeywordConstraint"),It=n("JSONSchema202012KeywordDependentRequired"),Ot=n("JSONSchema202012KeywordContentSchema"),et=n("JSONSchema202012KeywordTitle"),Dt=n("JSONSchema202012KeywordDescription"),or=n("JSONSchema202012KeywordDefault"),Ut=n("JSONSchema202012KeywordDeprecated"),pr=n("JSONSchema202012KeywordReadOnly"),W=n("JSONSchema202012KeywordWriteOnly"),$e=n("JSONSchema202012KeywordExamples"),Je=n("JSONSchema202012ExtensionKeywords"),Ft=n("JSONSchema202012JSONViewer"),it=n("JSONSchema202012Accordion"),bt=n("JSONSchema202012ExpandDeepButton"),ut=n("JSONSchema202012ChevronRightIcon");return yk(e,{components:{JSONSchema:p,Keyword$schema:c,Keyword$vocabulary:d,Keyword$id:E,Keyword$anchor:x,Keyword$dynamicAnchor:k,Keyword$ref:P,Keyword$dynamicRef:R,Keyword$defs:L,Keyword$comment:V,KeywordAllOf:Q,KeywordAnyOf:J,KeywordOneOf:re,KeywordNot:me,KeywordIf:le,KeywordThen:ve,KeywordElse:be,KeywordDependentSchemas:ce,KeywordPrefixItems:_e,KeywordItems:Ae,KeywordContains:xe,KeywordProperties:Oe,KeywordPatternProperties:je,KeywordAdditionalProperties:G,KeywordPropertyNames:de,KeywordUnevaluatedItems:Ne,KeywordUnevaluatedProperties:Ye,KeywordType:ht,KeywordEnum:Ct,KeywordConst:_t,KeywordConstraint:qt,KeywordDependentRequired:It,KeywordContentSchema:Ot,KeywordTitle:et,KeywordDescription:Dt,KeywordDefault:or,KeywordDeprecated:Ut,KeywordReadOnly:pr,KeywordWriteOnly:W,KeywordExamples:$e,ExtensionKeywords:Je,JSONViewer:Ft,Accordion:it,ExpandDeepButton:bt,ChevronRightIcon:ut,...r.components},config:{showExtensionKeywords:o.showExtensions,...r.config},fn:{...r.fn}})},vk=({getSystem:t,fn:e})=>{const r=()=>({upperFirst:e.upperFirst,...e.jsonSchema202012});return{components:{JSONSchema202012:yO,JSONSchema202012Keyword$schema:vO,JSONSchema202012Keyword$vocabulary:bO,JSONSchema202012Keyword$id:wO,JSONSchema202012Keyword$anchor:EO,JSONSchema202012Keyword$dynamicAnchor:SO,JSONSchema202012Keyword$ref:xO,JSONSchema202012Keyword$dynamicRef:_O,JSONSchema202012Keyword$defs:OO,JSONSchema202012Keyword$comment:kO,JSONSchema202012KeywordAllOf:AO,JSONSchema202012KeywordAnyOf:CO,JSONSchema202012KeywordOneOf:jO,JSONSchema202012KeywordNot:PO,JSONSchema202012KeywordIf:NO,JSONSchema202012KeywordThen:TO,JSONSchema202012KeywordElse:IO,JSONSchema202012KeywordDependentSchemas:MO,JSONSchema202012KeywordPrefixItems:RO,JSONSchema202012KeywordItems:DO,JSONSchema202012KeywordContains:FO,JSONSchema202012KeywordProperties:LO,JSONSchema202012KeywordPatternProperties:$O,JSONSchema202012KeywordAdditionalProperties:BO,JSONSchema202012KeywordPropertyNames:qO,JSONSchema202012KeywordUnevaluatedItems:UO,JSONSchema202012KeywordUnevaluatedProperties:zO,JSONSchema202012KeywordType:VO,JSONSchema202012KeywordEnum:JO,JSONSchema202012KeywordConst:WO,JSONSchema202012KeywordConstraint:rk,JSONSchema202012KeywordDependentRequired:nk,JSONSchema202012KeywordContentSchema:ak,JSONSchema202012KeywordTitle:ok,JSONSchema202012KeywordDescription:ik,JSONSchema202012KeywordDefault:sk,JSONSchema202012KeywordDeprecated:lk,JSONSchema202012KeywordReadOnly:ck,JSONSchema202012KeywordWriteOnly:uk,JSONSchema202012KeywordExamples:pk,JSONSchema202012ExtensionKeywords:hk,JSONSchema202012JSONViewer:dk,JSONSchema202012Accordion:fk,JSONSchema202012ExpandDeepButton:mk,JSONSchema202012ChevronRightIcon:gk,withJSONSchema202012Context:yk,withJSONSchema202012SystemContext:eq(t()),JSONSchema202012PathContext:()=>pi,JSONSchema202012LevelContext:()=>ls},fn:{upperFirst:HO,jsonSchema202012:{getTitle:KO(r),getType:GO(r),isExpandable:QO(r),isBooleanJSONSchema:YO,hasKeyword:XO,useFn:Rn,useConfig:Tw,useComponent:Jt,useIsExpanded:Gs,usePath:Qo,useLevel:cs,getSchemaKeywords:ek,getExtensionKeywords:tk(r),hasSchemaType:QB}}}},tq=(t,{sample:e=[]}={})=>((r,n={})=>{const{minItems:a,maxItems:o,uniqueItems:p}=n,{contains:c,minContains:d,maxContains:E}=n;let x=[...r];if(c!=null&&typeof c=="object"&&Number.isInteger(d)&&d>1){const k=x.at(0);for(let P=1;P0&&(x=r.slice(0,o)),Number.isInteger(a)&&a>0)for(let k=0;x.length{throw new Error("Not implemented")},Bv=t=>Fn()(t),qv=t=>t.at(0),th=t=>typeof t=="boolean",Ys=t=>Ai()(t),Fc=t=>th(t)||Ys(t),Uv=class{data={};register(e,r){this.data[e]=r}unregister(e){e===void 0?this.data={}:delete this.data[e]}get(e){return this.data[e]}},bk=()=>0,wk=()=>0,nq=()=>.1,aq=()=>.1,oq=()=>"user@example.com",iq=()=>"실례@example.com",sq=()=>"example.com",lq=()=>"실례.com",cq=()=>"198.51.100.42",uq=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",pq=()=>"https://example.com/",hq=()=>"path/index.html",dq=()=>"https://실례.com/",fq=()=>"path/실례.html",mq=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",gq=()=>"https://example.com/dictionary/{term:1}/{term}",yq=()=>"/a/b/c",vq=()=>"1/0",bq=()=>new Date().toISOString(),wq=()=>new Date().toISOString().substring(0,10),Eq=()=>new Date().toISOString().substring(11),Sq=()=>"P3D",xq=()=>"********",_q=()=>"^[a-z]+$",zv=new class extends Uv{#e={int32:bk,int64:wk,float:nq,double:aq,email:oq,"idn-email":iq,hostname:sq,"idn-hostname":lq,ipv4:cq,ipv6:uq,uri:pq,"uri-reference":hq,iri:dq,"iri-reference":fq,uuid:mq,"uri-template":gq,"json-pointer":yq,"relative-json-pointer":vq,"date-time":bq,date:wq,time:Eq,duration:Sq,password:xq,regex:_q};data={...this.#e};get defaults(){return{...this.#e}}},Ek=(t,e)=>typeof e=="function"?zv.register(t,e):e===null?zv.unregister(t):zv.get(t);Ek.getDefaults=()=>zv.defaults;const Vv=Ek;var Oq=Be(48287).Buffer;const kq=t=>Oq.from(t).toString("ascii");var Aq=Be(48287).Buffer;const Cq=t=>Aq.from(t).toString("utf8");var jq=Be(48287).Buffer;const Pq=t=>jq.from(t).toString("binary"),Nq=t=>{let e="";for(let r=0;r=33&&n<=60||n>=62&&n<=126||n===9||n===32)e+=t.charAt(r);else if(n===13||n===10)e+=`\r +`;else if(n>126){const a=unescape(encodeURIComponent(t.charAt(r)));for(let o=0;oTq.from(t).toString("hex");var Mq=Be(48287).Buffer;const Rq=t=>{const e=Mq.from(t).toString("utf8"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let n=0,a="",o=0,p=0;for(let c=0;c=5;)a+=r.charAt(o>>>p-5&31),p-=5;p>0&&(a+=r.charAt(o<<5-p&31),n=(8-8*e.length%5)%5);for(let c=0;cDq.from(t).toString("base64");var Lq=Be(48287).Buffer;const $q=t=>Lq.from(t).toString("base64url"),Jv=new class extends Uv{#e={"7bit":kq,"8bit":Cq,binary:Pq,"quoted-printable":Nq,base16:Iq,base32:Rq,base64:Fq,base64url:$q};data={...this.#e};get defaults(){return{...this.#e}}},Sk=(t,e)=>typeof e=="function"?Jv.register(t,e):e===null?Jv.unregister(t):Jv.get(t);Sk.getDefaults=()=>Jv.defaults;const xk=Sk,Bq={"text/plain":()=>"string","text/css":()=>".selector { border: 1px solid red }","text/csv":()=>"value1,value2,value3","text/html":()=>"

    content

    ","text/calendar":()=>"BEGIN:VCALENDAR","text/javascript":()=>"console.dir('Hello world!');","text/xml":()=>'John Doe',"text/*":()=>"string"},qq={"image/*":()=>Bv(25).toString("binary")},Uq={"audio/*":()=>Bv(25).toString("binary")},zq={"video/*":()=>Bv(25).toString("binary")},Vq={"application/json":()=>'{"key":"value"}',"application/ld+json":()=>'{"name": "John Doe"}',"application/x-httpd-php":()=>"Hello World!

    '; ?>","application/rtf":()=>String.raw`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,"application/x-sh":()=>'echo "Hello World!"',"application/xhtml+xml":()=>"

    content

    ","application/*":()=>Bv(25).toString("binary")},wd=new class extends Uv{#e={...Bq,...qq,...Uq,...zq,...Vq};data={...this.#e};get defaults(){return{...this.#e}}},_k=(t,e)=>{if(typeof e=="function")return wd.register(t,e);if(e===null)return wd.unregister(t);const r=t.split(";").at(0),n=`${r.split("/").at(0)}/*`;return wd.get(t)||wd.get(r)||wd.get(n)};_k.getDefaults=()=>wd.defaults;const Ok=_k,Mw=(t,e={})=>{const{maxLength:r,minLength:n}=e;let a=t;if(Number.isInteger(r)&&r>0&&(a=a.slice(0,r)),Number.isInteger(n)&&n>0){let o=0;for(;a.length{const{contentEncoding:r,contentMediaType:n,contentSchema:a}=t,{pattern:o,format:p}=t,c=xk(r)||Cx();let d;return d=typeof o=="string"?Mw((E=>{try{const x=new RegExp("(?<=(?{const{format:x}=E,k=Vv(x);return typeof k=="function"?k(E):"string"})(t):Fc(a)&&typeof n=="string"&&e!==void 0?Array.isArray(e)||typeof e=="object"?JSON.stringify(e):Mw(String(e),t):typeof n=="string"?(E=>{const{contentMediaType:x}=E,k=Ok(x);return typeof k=="function"?k(E):"string"})(t):Mw("string",t),c(d)},kk=(t,e={})=>{const{minimum:r,maximum:n,exclusiveMinimum:a,exclusiveMaximum:o}=e,{multipleOf:p}=e,c=Number.isInteger(t)?1:Number.EPSILON;let d=typeof r=="number"?r:null,E=typeof n=="number"?n:null,x=t;if(typeof a=="number"&&(d=d!==null?Math.max(d,a+c):a+c),typeof o=="number"&&(E=E!==null?Math.min(E,o-c):o-c),x=d>E&&t||d||E||x,typeof p=="number"&&p>0){const k=x%p;x=k===0?x:x+p-k}return x},Wq=t=>{const{format:e}=t;let r;return r=typeof e=="string"?(n=>{const{format:a}=n,o=Vv(a);return typeof o=="function"?o(n):0})(t):0,kk(r,t)},Hq=t=>{const{format:e}=t;let r;return r=typeof e=="string"?(n=>{const{format:a}=n,o=Vv(a);if(typeof o=="function")return o(n);switch(a){case"int32":return bk();case"int64":return wk()}return 0})(t):0,kk(r,t)},Kq=t=>typeof t.default!="boolean"||t.default,Wv=new Proxy({array:tq,object:rq,string:Jq,number:Wq,integer:Hq,boolean:Kq,null:()=>null},{get:(t,e)=>typeof e=="string"&&Object.hasOwn(t,e)?t[e]:()=>`Unknown Type: ${e}`}),Ak=["array","object","number","integer","string","boolean","null"],zm=t=>{if(!Ys(t))return!1;const{examples:e,example:r,default:n}=t;return!!(Array.isArray(e)&&e.length>=1)||n!==void 0||r!==void 0},Rw=t=>{if(!Ys(t))return null;const{examples:e,example:r,default:n}=t;return Array.isArray(e)&&e.length>=1?e.at(0):n!==void 0?n:r!==void 0?r:void 0},Hv={array:["items","prefixItems","contains","maxContains","minContains","maxItems","minItems","uniqueItems","unevaluatedItems"],object:["properties","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","required","dependentSchemas","dependentRequired","unevaluatedProperties"],string:["pattern","format","minLength","maxLength","contentEncoding","contentMediaType","contentSchema"],integer:["minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf"]};Hv.number=Hv.integer;const Dw="string",Ck=t=>t===void 0?null:t===null?"null":Array.isArray(t)?"array":Number.isInteger(t)?"integer":typeof t,Kv=t=>{if(Array.isArray(t)&&t.length>=1){if(t.includes("array"))return"array";if(t.includes("object"))return"object";{const e=t.filter((n=>n!=="null")),r=qv(e.length>0?e:t);if(Ak.includes(r))return r}}return Ak.includes(t)?t:null},Fw=(t,e=new WeakSet)=>{if(!Ys(t)||e.has(t))return Dw;e.add(t);let{type:r,const:n}=t;if(r=Kv(r),typeof r!="string"){const a=Object.keys(Hv);e:for(let o=0;o{if(Array.isArray(t[E])){const x=t[E].map((k=>Fw(k,e)));return Kv(x)}return null},o=a("allOf"),p=a("anyOf"),c=a("oneOf"),d=t.not?Fw(t.not,e):null;(o||p||c||d)&&(r=Kv([o,p,c,d].filter(Boolean)))}if(typeof r!="string"&&zm(t)){const a=Rw(t),o=Ck(a);r=typeof o=="string"?o:r}return e.delete(t),r||Dw},jk=t=>Fw(t),Lw=t=>th(t)?(e=>e===!1?{not:{}}:{})(t):Ys(t)?t:{},Vm=(t,e,r={})=>{if(th(t)&&t===!0)return!0;if(th(t)&&t===!1)return!1;if(th(e)&&e===!0)return!0;if(th(e)&&e===!1)return!1;if(!Fc(t))return e;if(!Fc(e))return t;const n={...e,...t};if(e.type&&t.type&&Array.isArray(e.type)&&typeof e.type=="string"){const a=fn(e.type).concat(t.type);n.type=Array.from(new Set(a))}if(Array.isArray(e.required)&&Array.isArray(t.required)&&(n.required=[...new Set([...t.required,...e.required])]),e.properties&&t.properties){const a=new Set([...Object.keys(e.properties),...Object.keys(t.properties)]);n.properties={};for(const o of a){const p=e.properties[o]||{},c=t.properties[o]||{};p.readOnly&&!r.includeReadOnly||p.writeOnly&&!r.includeWriteOnly?n.required=(n.required||[]).filter((d=>d!==o)):n.properties[o]=Vm(c,p,r)}}return Fc(e.items)&&Fc(t.items)&&(n.items=Vm(t.items,e.items,r)),Fc(e.contains)&&Fc(t.contains)&&(n.contains=Vm(t.contains,e.contains,r)),Fc(e.contentSchema)&&Fc(t.contentSchema)&&(n.contentSchema=Vm(t.contentSchema,e.contentSchema,r)),n},Ed=Vm,io=(t,e={},r=void 0,n=!1)=>{if(t==null&&r===void 0)return;typeof t?.toJS=="function"&&(t=t.toJS()),t=Lw(t);let a=r!==void 0||zm(t);const o=!a&&Array.isArray(t.oneOf)&&t.oneOf.length>0,p=!a&&Array.isArray(t.anyOf)&&t.anyOf.length>0;if(!a&&(o||p)){const Oe=Lw(qv(o?t.oneOf:t.anyOf));!(t=Ed(t,Oe,e)).xml&&Oe.xml&&(t.xml=Oe.xml),zm(t)&&zm(Oe)&&(a=!0)}const c={};let{xml:d,properties:E,additionalProperties:x,items:k,contains:P}=t||{},R=jk(t),{includeReadOnly:L,includeWriteOnly:V}=e;d=d||{};let Q,{name:J,prefix:re,namespace:me}=d,le={};Object.hasOwn(t,"type")||(t.type=R),n&&(J=J||"notagname",Q=(re?`${re}:`:"")+J,me)&&(c[re?`xmlns:${re}`:"xmlns"]=me),n&&(le[Q]=[]);const ve=Nn(E);let be,ce=0;const _e=()=>Number.isInteger(t.maxProperties)&&t.maxProperties>0&&ce>=t.maxProperties,Ae=Oe=>!(Number.isInteger(t.maxProperties)&&t.maxProperties>0)||!_e()&&(!(je=>!Array.isArray(t.required)||t.required.length===0||!t.required.includes(je))(Oe)||t.maxProperties-ce-(()=>{if(!Array.isArray(t.required)||t.required.length===0)return 0;let je=0;return n?t.required.forEach((G=>je+=le[G]===void 0?0:1)):t.required.forEach((G=>{je+=le[Q]?.find((de=>de[G]!==void 0))===void 0?0:1})),t.required.length-je})()>0);if(be=n?(Oe,je=void 0)=>{if(t&&ve[Oe]){if(ve[Oe].xml=ve[Oe].xml||{},ve[Oe].xml.attribute){const de=Array.isArray(ve[Oe].enum)?qv(ve[Oe].enum):void 0;if(zm(ve[Oe]))c[ve[Oe].xml.name||Oe]=Rw(ve[Oe]);else if(de!==void 0)c[ve[Oe].xml.name||Oe]=de;else{const Ne=Lw(ve[Oe]),Ye=jk(Ne),ht=ve[Oe].xml.name||Oe;if(Ye==="array"){const Ct=io(ve[Oe],e,je,!1);c[ht]=Ct.map((_t=>Ai()(_t)?"UnknownTypeObject":Array.isArray(_t)?"UnknownTypeArray":_t)).join(" ")}else c[ht]=Ye==="object"?"UnknownTypeObject":Wv[Ye](Ne)}return}ve[Oe].xml.name=ve[Oe].xml.name||Oe}else ve[Oe]||x===!1||(ve[Oe]={xml:{name:Oe}});let G=io(ve[Oe],e,je,n);Ae(Oe)&&(ce++,Array.isArray(G)?le[Q]=le[Q].concat(G):le[Q].push(G))}:(Oe,je)=>{if(Ae(Oe)){if(Ai()(t.discriminator?.mapping)&&t.discriminator.propertyName===Oe&&typeof t.$$ref=="string"){for(const G in t.discriminator.mapping)if(t.$$ref.search(t.discriminator.mapping[G])!==-1){le[Oe]=G;break}}else le[Oe]=io(ve[Oe],e,je,n);ce++}},a){let Oe;if(Oe=r!==void 0?r:Rw(t),!n){if(typeof Oe=="number"&&R==="string")return`${Oe}`;if(typeof Oe!="string"||R==="string")return Oe;try{return JSON.parse(Oe)}catch{return Oe}}if(R==="array"){if(!Array.isArray(Oe)){if(typeof Oe=="string")return Oe;Oe=[Oe]}let je=[];return Ys(k)&&(k.xml=k.xml||d||{},k.xml.name=k.xml.name||d.name,je=Oe.map((G=>io(k,e,G,n)))),Ys(P)&&(P.xml=P.xml||d||{},P.xml.name=P.xml.name||d.name,je=[io(P,e,void 0,n),...je]),je=Wv.array(t,{sample:je}),d.wrapped?(le[Q]=je,Ci()(c)||le[Q].push({_attr:c})):le=je,le}if(R==="object"){if(typeof Oe=="string")return Oe;for(const je in Oe)Object.hasOwn(Oe,je)&&(ve[je]?.readOnly&&!L||ve[je]?.writeOnly&&!V||(ve[je]?.xml?.attribute?c[ve[je].xml.name||je]=Oe[je]:be(je,Oe[je])));return Ci()(c)||le[Q].push({_attr:c}),le}return le[Q]=Ci()(c)?Oe:[{_attr:c},Oe],le}if(R==="array"){let Oe=[];if(Ys(P))if(n&&(P.xml=P.xml||t.xml||{},P.xml.name=P.xml.name||d.name),Array.isArray(P.anyOf)){const{anyOf:je,...G}=k;Oe.push(...P.anyOf.map((de=>io(Ed(de,G,e),e,void 0,n))))}else if(Array.isArray(P.oneOf)){const{oneOf:je,...G}=k;Oe.push(...P.oneOf.map((de=>io(Ed(de,G,e),e,void 0,n))))}else{if(!(!n||n&&d.wrapped))return io(P,e,void 0,n);Oe.push(io(P,e,void 0,n))}if(Ys(k))if(n&&(k.xml=k.xml||t.xml||{},k.xml.name=k.xml.name||d.name),Array.isArray(k.anyOf)){const{anyOf:je,...G}=k;Oe.push(...k.anyOf.map((de=>io(Ed(de,G,e),e,void 0,n))))}else if(Array.isArray(k.oneOf)){const{oneOf:je,...G}=k;Oe.push(...k.oneOf.map((de=>io(Ed(de,G,e),e,void 0,n))))}else{if(!(!n||n&&d.wrapped))return io(k,e,void 0,n);Oe.push(io(k,e,void 0,n))}return Oe=Wv.array(t,{sample:Oe}),n&&d.wrapped?(le[Q]=Oe,Ci()(c)||le[Q].push({_attr:c}),le):Oe}if(R==="object"){for(let Oe in ve)Object.hasOwn(ve,Oe)&&(ve[Oe]?.deprecated||ve[Oe]?.readOnly&&!L||ve[Oe]?.writeOnly&&!V||be(Oe));if(n&&c&&le[Q].push({_attr:c}),_e())return le;if(th(x)&&x)n?le[Q].push({additionalProp:"Anything can be here"}):le.additionalProp1={},ce++;else if(Ys(x)){const Oe=x,je=io(Oe,e,void 0,n);if(n&&typeof Oe?.xml?.name=="string"&&Oe?.xml?.name!=="notagname")le[Q].push(je);else{const G=Oe?.["x-additionalPropertiesName"]||"additionalProp",de=Number.isInteger(t.minProperties)&&t.minProperties>0&&ce{const n=io(t,e,r,!0);if(n)return typeof n=="string"?n:xp()(n,{declaration:!0,indent:" "})},Nk=(t,e,r)=>io(t,e,r,!1),Tk=(t,e,r)=>[t,JSON.stringify(e),JSON.stringify(r)],Gq=gu(Pk,Tk),Yq=gu(Nk,Tk),Ik=new class extends Uv{#e={};data={...this.#e};get defaults(){return{...this.#e}}},Xq=(t,e)=>(e!==void 0&&Ik.register(t,e),Ik.get(t)),Qq=[{when:/json/,shouldStringifyTypes:["string"]}],Zq=["object"],eU=t=>(e,r,n,a)=>{const{fn:o}=t(),p=o.jsonSchema202012.memoizedSampleFromSchema(e,r,a),c=typeof p,d=Qq.reduce(((E,x)=>x.when.test(n)?[...E,...x.shouldStringifyTypes]:E),Zq);return Wr()(d,(E=>E===c))?JSON.stringify(p,null,2):p},tU=t=>(e,r,n,a)=>{const{fn:o}=t(),p=o.jsonSchema202012.getJsonSampleSchema(e,r,n,a);let c;try{c=Pe.dump(Pe.load(p),{lineWidth:-1},{schema:Rt}),c[c.length-1]===` +`&&(c=c.slice(0,c.length-1))}catch(d){return console.error(d),"error: could not generate yaml example"}return c.replace(/\t/g," ")},rU=t=>(e,r,n)=>{const{fn:a}=t();if(e&&!e.xml&&(e.xml={}),e&&!e.xml.name){if(!e.$$ref&&(e.type||e.items||e.properties||e.additionalProperties))return` +`;if(e.$$ref){let o=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=o[1]}}return a.jsonSchema202012.memoizedCreateXMLExample(e,r,n)},nU=t=>(e,r="",n={},a=void 0)=>{const{fn:o}=t();return typeof e?.toJS=="function"&&(e=e.toJS()),typeof a?.toJS=="function"&&(a=a.toJS()),/xml/.test(r)?o.jsonSchema202012.getXmlSampleSchema(e,n,a):/(yaml|yml)/.test(r)?o.jsonSchema202012.getYamlSampleSchema(e,n,r,a):o.jsonSchema202012.getJsonSampleSchema(e,n,r,a)},Mk=({getSystem:t})=>{const e=eU(t),r=tU(t),n=rU(t),a=nU(t);return{fn:{jsonSchema202012:{sampleFromSchema:Nk,sampleFromSchemaGeneric:io,sampleOptionAPI:Xq,sampleEncoderAPI:xk,sampleFormatAPI:Vv,sampleMediaTypeAPI:Ok,createXMLExample:Pk,memoizedSampleFromSchema:Yq,memoizedCreateXMLExample:Gq,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:a,mergeJsonSchema:Ed,foldType:Kv}}}};function Rk(){return[nO,Aw,vk,Mk,fB,WB]}const aU=t=>()=>({fn:t.fn,components:t.components}),oU=t=>{const e=ct()({layout:{layout:t.layout,filter:t.filter},spec:{spec:"",url:t.url},requestSnippets:t.requestSnippets},t.initialState);if(t.initialState)for(const[r,n]of Object.entries(t.initialState))n===void 0&&delete e[r];return{system:{configs:t.configs},plugins:t.presets,state:e}},iU=()=>t=>{const e=t.queryConfigEnabled?(()=>{const r=new URLSearchParams(Qe.location.search);return Object.fromEntries(r)})():{};return Object.entries(e).reduce(((r,[n,a])=>(n==="config"?r.configUrl=a:n==="urls.primaryName"?r[n]=a:r=pn()(r,n,a),r)),{})},sU=({url:t,system:e})=>async r=>{if(!t)return{};if(typeof e.configsActions?.getConfigByUrl!="function")return{};const n=(()=>{const a={};return a.promise=new Promise(((o,p)=>{a.resolve=o,a.reject=p})),a})();return e.configsActions.getConfigByUrl({url:t,loadRemoteConfig:!0,requestInterceptor:r.requestInterceptor,responseInterceptor:r.responseInterceptor},(a=>{n.resolve(a)})),n.promise},lU=()=>()=>{const t={};return globalThis.location&&(t.oauth2RedirectUrl=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname.substring(0,globalThis.location.pathname.lastIndexOf("/"))}/oauth2-redirect.html`),t},Xn=Object.freeze({dom_id:null,domNode:null,spec:{},url:"",urls:null,configUrl:null,layout:"BaseLayout",docExpansion:"list",maxDisplayedTags:-1,filter:!1,validatorUrl:"https://validator.swagger.io/validator",oauth2RedirectUrl:void 0,persistAuthorization:!1,configs:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:t=>(t.curlOptions=[],t),responseInterceptor:t=>t,showMutatedRequest:!0,defaultModelRendering:"example",defaultModelExpandDepth:1,defaultModelsExpandDepth:1,showExtensions:!1,showCommonExtensions:!1,withCredentials:!1,requestSnippetsEnabled:!1,requestSnippets:{generators:{curl_bash:{title:"cURL (bash)",syntax:"bash"},curl_powershell:{title:"cURL (PowerShell)",syntax:"powershell"},curl_cmd:{title:"cURL (CMD)",syntax:"bash"}},defaultExpanded:!0,languages:null},supportedSubmitMethods:["get","put","post","delete","options","head","patch","trace"],queryConfigEnabled:!1,presets:[Rk],plugins:[],initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"},operationsSorter:null,tagsSorter:null,onComplete:null,modelPropertyMacro:null,parameterMacro:null,fileUploadMediaTypes:["application/octet-stream","image/","audio/","video/"],uncaughtExceptionHandler:null});var cU=Be(61448),uU=Be.n(cU),pU=Be(77731),hU=Be.n(pU);const Gv=(t,e=[])=>Array.isArray(t)?t:e,us=(t,e=!1)=>t===!0||t==="true"||t===1||t==="1"||t!==!1&&t!=="false"&&t!==0&&t!=="0"&&e,dU=t=>t===null||t==="null"?null:t,fU=t=>{const e=String(t);return us(t,e)},Dk=(t,e)=>typeof t=="function"?t:e,mU=t=>Array.isArray(t)?t:null,Yv=t=>typeof t=="function"?t:null,$w=t=>t===null||t==="null"?null:String(t),Bw=(t,e=-1)=>{const r=parseInt(t,10);return Number.isNaN(r)?e:r},Sd=(t,e={})=>Ai()(t)?t:e,Fk=t=>typeof t=="function"||typeof t=="string"?t:null,xd=t=>String(t),gU=(t,e)=>Ai()(t)?t:t===!1||t==="false"||t===0||t==="0"?{activated:!1}:e,yU=t=>t===void 0||t==="undefined"?void 0:String(t),Lk={components:{typeCaster:Sd},configs:{typeCaster:Sd},configUrl:{typeCaster:$w},deepLinking:{typeCaster:us,defaultValue:Xn.deepLinking},defaultModelExpandDepth:{typeCaster:Bw,defaultValue:Xn.defaultModelExpandDepth},defaultModelRendering:{typeCaster:xd},defaultModelsExpandDepth:{typeCaster:Bw,defaultValue:Xn.defaultModelsExpandDepth},displayOperationId:{typeCaster:us,defaultValue:Xn.displayOperationId},displayRequestDuration:{typeCaster:us,defaultValue:Xn.displayRequestDuration},docExpansion:{typeCaster:xd},dom_id:{typeCaster:$w},domNode:{typeCaster:dU},fileUploadMediaTypes:{typeCaster:Gv,defaultValue:Xn.fileUploadMediaTypes},filter:{typeCaster:fU},fn:{typeCaster:Sd},initialState:{typeCaster:Sd},layout:{typeCaster:xd},maxDisplayedTags:{typeCaster:Bw,defaultValue:Xn.maxDisplayedTags},modelPropertyMacro:{typeCaster:Yv},oauth2RedirectUrl:{typeCaster:yU},onComplete:{typeCaster:Yv},operationsSorter:{typeCaster:Fk},paramaterMacro:{typeCaster:Yv},persistAuthorization:{typeCaster:us,defaultValue:Xn.persistAuthorization},plugins:{typeCaster:Gv,defaultValue:Xn.plugins},presets:{typeCaster:Gv,defaultValue:Xn.presets},requestInterceptor:{typeCaster:Dk,defaultValue:Xn.requestInterceptor},requestSnippets:{typeCaster:Sd,defaultValue:Xn.requestSnippets},requestSnippetsEnabled:{typeCaster:us,defaultValue:Xn.requestSnippetsEnabled},responseInterceptor:{typeCaster:Dk,defaultValue:Xn.responseInterceptor},showCommonExtensions:{typeCaster:us,defaultValue:Xn.showCommonExtensions},showExtensions:{typeCaster:us,defaultValue:Xn.showExtensions},showMutatedRequest:{typeCaster:us,defaultValue:Xn.showMutatedRequest},spec:{typeCaster:Sd,defaultValue:Xn.spec},supportedSubmitMethods:{typeCaster:Gv,defaultValue:Xn.supportedSubmitMethods},syntaxHighlight:{typeCaster:gU,defaultValue:Xn.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:us,defaultValue:Xn.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:xd},tagsSorter:{typeCaster:Fk},tryItOutEnabled:{typeCaster:us,defaultValue:Xn.tryItOutEnabled},url:{typeCaster:xd},urls:{typeCaster:mU},"urls.primaryName":{typeCaster:xd},validatorUrl:{typeCaster:$w},withCredentials:{typeCaster:us,defaultValue:Xn.withCredentials},uncaughtExceptionHandler:{typeCaster:Yv}},$k=t=>Object.entries(Lk).reduce(((e,[r,{typeCaster:n,defaultValue:a}])=>{if(uU()(e,r)){const o=n(Cn()(e,r),a);e=hU()(r,o,e)}return e}),{...t}),vU=(t,...e)=>{let r=Symbol.for("domNode"),n=Symbol.for("primaryName");const a=[];for(const p of e){const c={...p};Object.hasOwn(c,"domNode")&&(r=c.domNode,delete c.domNode),Object.hasOwn(c,"urls.primaryName")?(n=c["urls.primaryName"],delete c["urls.primaryName"]):Array.isArray(c.urls)&&Object.hasOwn(c.urls,"primaryName")&&(n=c.urls.primaryName,delete c.urls.primaryName),a.push(c)}const o=ct()(t,...a);return r!==Symbol.for("domNode")&&(o.domNode=r),n!==Symbol.for("primaryName")&&Array.isArray(o.urls)&&(o.urls.primaryName=n),$k(o)};function Vu(t){const e=iU()(t),r=lU()(),n=Vu.config.merge({},Vu.config.defaults,r,t,e),a=oU(n),o=aU(n),p=new Xl(a);p.register([n.plugins,o]);const c=p.getSystem(),d=k=>{p.setConfigs(k),c.configsActions.loaded()},E=k=>{!e.url&&typeof k.spec=="object"&&Object.keys(k.spec).length>0?(c.specActions.updateUrl(""),c.specActions.updateLoadingStatus("success"),c.specActions.updateSpec(JSON.stringify(k.spec))):typeof c.specActions.download=="function"&&k.url&&!k.urls&&(c.specActions.updateUrl(k.url),c.specActions.download(k.url))},x=k=>{if(k.domNode)c.render(k.domNode,"App");else if(k.dom_id){const P=document.querySelector(k.dom_id);c.render(P,"App")}else k.dom_id===null||k.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified")};return n.configUrl?((async()=>{const{configUrl:k}=n,P=await sU({url:k,system:c})(n),R=Vu.config.merge({},n,P,e);d(R),P!==null&&E(R),x(R)})(),c):(d(n),E(n),x(n),c)}Vu.System=Xl,Vu.config={defaults:Xn,merge:vU,typeCast:$k,typeCastMappings:Lk},Vu.presets={base:nO,apis:Rk},Vu.plugins={Accessibility:Zl,Auth:Ss,Configs:Nd,DeepLining:up,Err:sh,Filter:Id,Icons:pp,JSONSchema5:Yd,JSONSchema5Samples:Ah,JSONSchema202012:vk,JSONSchema202012Samples:Mk,Layout:Fd,Logs:uh,OpenAPI30:Aw,OpenAPI31:Aw,OnComplete:Ld,RequestSnippets:Ol,Spec:ey,SwaggerClient:fx,Util:mx,View:Nx,ViewLegacy:Tx,DownloadUrl:Ix,SyntaxHighlighting:Hx,Versions:Kx,SafeRender:Xx};const bU=Vu})(),Qw.exports=Cd.default})()),Qw.exports}var qU=BU();const UU=$U(qU),zU={class:"openapi-head"},VU={style:{margin:"0","font-size":"19px"}},JU={class:"hint",style:{margin:"0"}},WU={key:0,class:"card empty",style:{"margin-top":"14px"}},HU={style:{"font-weight":"600",color:"var(--c-text)"}},KU={class:"hint",style:{"max-width":"460px",margin:"0 auto"}},Zw="swagger-ui-container",GU=jU({__name:"OpenApiView",setup(eE){const{t:hs}=PU(),Be=rA("loading"),Cd=rA(!1),w=nA(()=>Cd.value?hs("openapi.sourceEmbedded"):Xw()||"/docs/openapi.yaml");NU(()=>{try{let s;oA?(Cd.value=!0,s=URL.createObjectURL(new Blob([oA],{type:"application/yaml"}))):s=Xw()||"/docs/openapi.yaml",UU({dom_id:`#${Zw}`,url:s,deepLinking:!0,docExpansion:"list",tryItOutEnabled:!0,onComplete:()=>Be.value="ok",onFailure:()=>Be.value="error"}),setTimeout(()=>{if(Be.value==="loading"){const h=document.querySelector(`#${Zw} .opblock`);Be.value=h?"ok":"error"}},6e3)}catch{Be.value="error"}});const N=nA(()=>Be.value==="ok"?hs("openapi.statusOk"):Be.value==="error"?hs("openapi.statusError"):hs("openapi.statusLoading"));return(s,h)=>(aA(),TU(LU,null,{default:IU(()=>[Lc("div",zU,[Lc("h2",VU,Km(Gm(hs)("openapi.title")),1),Lc("span",{class:MU(["badge",Be.value==="ok"?"badge-success":Be.value==="error"?"badge-danger":"badge-muted"])},Km(N.value),3),Lc("span",JU,Km(Gm(hs)("openapi.source",{source:w.value})),1)]),Be.value==="error"?(aA(),RU("div",WU,[h[0]||(h[0]=Lc("div",{class:"empty-icon"},"🧾",-1)),Lc("p",HU,Km(Gm(hs)("openapi.notAvailable")),1),Lc("p",KU,Km(Gm(hs)("openapi.notAvailableHint",{url:Gm(Xw)()||"/docs/openapi.yaml"})),1)])):DU("",!0),Lc("div",{class:"card openapi-wrap",style:{padding:"0",overflow:"hidden"}},[Lc("div",{id:Zw})])]),_:1}))}}),oH=FU(GU,[["__scopeId","data-v-0a44808c"]]);export{oH as default}; diff --git a/server/web/dist/assets/OpenApiView-DfEtzNyC.js b/server/web/dist/assets/OpenApiView-DfEtzNyC.js new file mode 100644 index 0000000..64bca40 --- /dev/null +++ b/server/web/dist/assets/OpenApiView-DfEtzNyC.js @@ -0,0 +1,267 @@ +import{d as jU,u as PU,I as NU,ax as Xw,z as TU,A as IU,j as rA,b as Lc,t as Km,f as Gm,e as MU,c as RU,g as DU,h as nA,o as aA,_ as FU}from"./index-DSPQyv0Z.js";import{P as LU}from"./PageShell-Bv1Rpp4p.js";import{g as $U}from"./swagger-CqkleIqs.js";import{e as oA}from"./docsSource-CDKA_IVC.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-DSt3Q6Wq.js";var Qw={exports:{}};var iA;function BU(){return iA||(iA=1,(()=>{var eE={67526(w,N){N.byteLength=function(_){var T=m(_),I=T[0],j=T[1];return 3*(I+j)/4-j},N.toByteArray=function(_){var T,I,j=m(_),M=j[0],z=j[1],K=new v((function(te,ie,se){return 3*(ie+se)/4-se})(0,M,z)),Y=0,B=z>0?M-4:M;for(I=0;I>16&255,K[Y++]=T>>8&255,K[Y++]=255&T;return z===2&&(T=h[_.charCodeAt(I)]<<2|h[_.charCodeAt(I+1)]>>4,K[Y++]=255&T),z===1&&(T=h[_.charCodeAt(I)]<<10|h[_.charCodeAt(I+1)]<<4|h[_.charCodeAt(I+2)]>>2,K[Y++]=T>>8&255,K[Y++]=255&T),K},N.fromByteArray=function(_){for(var T,I=_.length,j=I%3,M=[],z=16383,K=0,Y=I-j;KY?Y:K+z));return j===1?(T=_[I-1],M.push(s[T>>2]+s[T<<4&63]+"==")):j===2&&(T=(_[I-2]<<8)+_[I-1],M.push(s[T>>10]+s[T>>4&63]+s[T<<2&63]+"=")),M.join("")};for(var s=[],h=[],v=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0;y<64;++y)s[y]=f[y],h[f.charCodeAt(y)]=y;function m(S){var _=S.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=S.indexOf("=");return T===-1&&(T=_),[T,T===_?0:4-T%4]}function g(S,_,T){for(var I,j,M=[],z=_;z>18&63]+s[j>>12&63]+s[j>>6&63]+s[63&j]);return M.join("")}h[45]=62,h[95]=63},48287(w,N,s){const h=s(67526),v=s(251),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;N.Buffer=g,N.SlowBuffer=function(U){return+U!=U&&(U=0),g.alloc(+U)},N.INSPECT_MAX_BYTES=50;const y=2147483647;function m(pe){if(pe>y)throw new RangeError('The value "'+pe+'" is invalid for option "size"');const U=new Uint8Array(pe);return Object.setPrototypeOf(U,g.prototype),U}function g(pe,U,Z){if(typeof pe=="number"){if(typeof U=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return T(pe)}return S(pe,U,Z)}function S(pe,U,Z){if(typeof pe=="string")return(function(Fe,St){if(typeof St=="string"&&St!==""||(St="utf8"),!g.isEncoding(St))throw new TypeError("Unknown encoding: "+St);const Bt=0|z(Fe,St);let Qe=m(Bt);const $t=Qe.write(Fe,St);return $t!==Bt&&(Qe=Qe.slice(0,$t)),Qe})(pe,U);if(ArrayBuffer.isView(pe))return(function(Fe){if(Gt(Fe,Uint8Array)){const St=new Uint8Array(Fe);return j(St.buffer,St.byteOffset,St.byteLength)}return I(Fe)})(pe);if(pe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof pe);if(Gt(pe,ArrayBuffer)||pe&&Gt(pe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Gt(pe,SharedArrayBuffer)||pe&&Gt(pe.buffer,SharedArrayBuffer)))return j(pe,U,Z);if(typeof pe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ne=pe.valueOf&&pe.valueOf();if(ne!=null&&ne!==pe)return g.from(ne,U,Z);const ye=(function(Fe){if(g.isBuffer(Fe)){const St=0|M(Fe.length),Bt=m(St);return Bt.length===0||Fe.copy(Bt,0,0,St),Bt}if(Fe.length!==void 0)return typeof Fe.length!="number"||Sr(Fe.length)?m(0):I(Fe);if(Fe.type==="Buffer"&&Array.isArray(Fe.data))return I(Fe.data)})(pe);if(ye)return ye;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof pe[Symbol.toPrimitive]=="function")return g.from(pe[Symbol.toPrimitive]("string"),U,Z);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof pe)}function _(pe){if(typeof pe!="number")throw new TypeError('"size" argument must be of type number');if(pe<0)throw new RangeError('The value "'+pe+'" is invalid for option "size"')}function T(pe){return _(pe),m(pe<0?0:0|M(pe))}function I(pe){const U=pe.length<0?0:0|M(pe.length),Z=m(U);for(let ne=0;ne=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return 0|pe}function z(pe,U){if(g.isBuffer(pe))return pe.length;if(ArrayBuffer.isView(pe)||Gt(pe,ArrayBuffer))return pe.byteLength;if(typeof pe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof pe);const Z=pe.length,ne=arguments.length>2&&arguments[2]===!0;if(!ne&&Z===0)return 0;let ye=!1;for(;;)switch(U){case"ascii":case"latin1":case"binary":return Z;case"utf8":case"utf-8":return ur(pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Z;case"hex":return Z>>>1;case"base64":return ar(pe).length;default:if(ye)return ne?-1:ur(pe).length;U=(""+U).toLowerCase(),ye=!0}}function K(pe,U,Z){let ne=!1;if((U===void 0||U<0)&&(U=0),U>this.length||((Z===void 0||Z>this.length)&&(Z=this.length),Z<=0)||(Z>>>=0)<=(U>>>=0))return"";for(pe||(pe="utf8");;)switch(pe){case"hex":return nt(this,U,Z);case"utf8":case"utf-8":return ke(this,U,Z);case"ascii":return He(this,U,Z);case"latin1":case"binary":return qe(this,U,Z);case"base64":return ge(this,U,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,U,Z);default:if(ne)throw new TypeError("Unknown encoding: "+pe);pe=(pe+"").toLowerCase(),ne=!0}}function Y(pe,U,Z){const ne=pe[U];pe[U]=pe[Z],pe[Z]=ne}function B(pe,U,Z,ne,ye){if(pe.length===0)return-1;if(typeof Z=="string"?(ne=Z,Z=0):Z>2147483647?Z=2147483647:Z<-2147483648&&(Z=-2147483648),Sr(Z=+Z)&&(Z=ye?0:pe.length-1),Z<0&&(Z=pe.length+Z),Z>=pe.length){if(ye)return-1;Z=pe.length-1}else if(Z<0){if(!ye)return-1;Z=0}if(typeof U=="string"&&(U=g.from(U,ne)),g.isBuffer(U))return U.length===0?-1:X(pe,U,Z,ne,ye);if(typeof U=="number")return U&=255,typeof Uint8Array.prototype.indexOf=="function"?ye?Uint8Array.prototype.indexOf.call(pe,U,Z):Uint8Array.prototype.lastIndexOf.call(pe,U,Z):X(pe,[U],Z,ne,ye);throw new TypeError("val must be string, number or Buffer")}function X(pe,U,Z,ne,ye){let Ee,Fe=1,St=pe.length,Bt=U.length;if(ne!==void 0&&((ne=String(ne).toLowerCase())==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(pe.length<2||U.length<2)return-1;Fe=2,St/=2,Bt/=2,Z/=2}function Qe($t,Pt){return Fe===1?$t[Pt]:$t.readUInt16BE(Pt*Fe)}if(ye){let $t=-1;for(Ee=Z;EeSt&&(Z=St-Bt),Ee=Z;Ee>=0;Ee--){let $t=!0;for(let Pt=0;Ptye&&(ne=ye):ne=ye;const Ee=U.length;let Fe;for(ne>Ee/2&&(ne=Ee/2),Fe=0;Fe>8,Qe=St%256,$t.push(Qe),$t.push(Bt);return $t})(U,pe.length-Z),pe,Z,ne)}function ge(pe,U,Z){return U===0&&Z===pe.length?h.fromByteArray(pe):h.fromByteArray(pe.slice(U,Z))}function ke(pe,U,Z){Z=Math.min(pe.length,Z);const ne=[];let ye=U;for(;ye239?4:Ee>223?3:Ee>191?2:1;if(ye+St<=Z){let Bt,Qe,$t,Pt;switch(St){case 1:Ee<128&&(Fe=Ee);break;case 2:Bt=pe[ye+1],(192&Bt)==128&&(Pt=(31&Ee)<<6|63&Bt,Pt>127&&(Fe=Pt));break;case 3:Bt=pe[ye+1],Qe=pe[ye+2],(192&Bt)==128&&(192&Qe)==128&&(Pt=(15&Ee)<<12|(63&Bt)<<6|63&Qe,Pt>2047&&(Pt<55296||Pt>57343)&&(Fe=Pt));break;case 4:Bt=pe[ye+1],Qe=pe[ye+2],$t=pe[ye+3],(192&Bt)==128&&(192&Qe)==128&&(192&$t)==128&&(Pt=(15&Ee)<<18|(63&Bt)<<12|(63&Qe)<<6|63&$t,Pt>65535&&Pt<1114112&&(Fe=Pt))}}Fe===null?(Fe=65533,St=1):Fe>65535&&(Fe-=65536,ne.push(Fe>>>10&1023|55296),Fe=56320|1023&Fe),ne.push(Fe),ye+=St}return(function(Fe){const St=Fe.length;if(St<=Ve)return String.fromCharCode.apply(String,Fe);let Bt="",Qe=0;for(;Qe"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}}),g.poolSize=8192,g.from=function(pe,U,Z){return S(pe,U,Z)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),g.alloc=function(pe,U,Z){return(function(ye,Ee,Fe){return _(ye),ye<=0?m(ye):Ee!==void 0?typeof Fe=="string"?m(ye).fill(Ee,Fe):m(ye).fill(Ee):m(ye)})(pe,U,Z)},g.allocUnsafe=function(pe){return T(pe)},g.allocUnsafeSlow=function(pe){return T(pe)},g.isBuffer=function(U){return U!=null&&U._isBuffer===!0&&U!==g.prototype},g.compare=function(U,Z){if(Gt(U,Uint8Array)&&(U=g.from(U,U.offset,U.byteLength)),Gt(Z,Uint8Array)&&(Z=g.from(Z,Z.offset,Z.byteLength)),!g.isBuffer(U)||!g.isBuffer(Z))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(U===Z)return 0;let ne=U.length,ye=Z.length;for(let Ee=0,Fe=Math.min(ne,ye);Eeye.length?(g.isBuffer(Fe)||(Fe=g.from(Fe)),Fe.copy(ye,Ee)):Uint8Array.prototype.set.call(ye,Fe,Ee);else{if(!g.isBuffer(Fe))throw new TypeError('"list" argument must be an Array of Buffers');Fe.copy(ye,Ee)}Ee+=Fe.length}return ye},g.byteLength=z,g.prototype._isBuffer=!0,g.prototype.swap16=function(){const U=this.length;if(U%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Z=0;ZZ&&(U+=" ... "),""},f&&(g.prototype[f]=g.prototype.inspect),g.prototype.compare=function(U,Z,ne,ye,Ee){if(Gt(U,Uint8Array)&&(U=g.from(U,U.offset,U.byteLength)),!g.isBuffer(U))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof U);if(Z===void 0&&(Z=0),ne===void 0&&(ne=U?U.length:0),ye===void 0&&(ye=0),Ee===void 0&&(Ee=this.length),Z<0||ne>U.length||ye<0||Ee>this.length)throw new RangeError("out of range index");if(ye>=Ee&&Z>=ne)return 0;if(ye>=Ee)return-1;if(Z>=ne)return 1;if(this===U)return 0;let Fe=(Ee>>>=0)-(ye>>>=0),St=(ne>>>=0)-(Z>>>=0);const Bt=Math.min(Fe,St),Qe=this.slice(ye,Ee),$t=U.slice(Z,ne);for(let Pt=0;Pt>>=0,isFinite(ne)?(ne>>>=0,ye===void 0&&(ye="utf8")):(ye=ne,ne=void 0)}const Ee=this.length-Z;if((ne===void 0||ne>Ee)&&(ne=Ee),U.length>0&&(ne<0||Z<0)||Z>this.length)throw new RangeError("Attempt to write outside buffer bounds");ye||(ye="utf8");let Fe=!1;for(;;)switch(ye){case"hex":return te(this,U,Z,ne);case"utf8":case"utf-8":return ie(this,U,Z,ne);case"ascii":case"latin1":case"binary":return se(this,U,Z,ne);case"base64":return Te(this,U,Z,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,U,Z,ne);default:if(Fe)throw new TypeError("Unknown encoding: "+ye);ye=(""+ye).toLowerCase(),Fe=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const Ve=4096;function He(pe,U,Z){let ne="";Z=Math.min(pe.length,Z);for(let ye=U;yene)&&(Z=ne);let ye="";for(let Ee=U;EeZ)throw new RangeError("Trying to access beyond buffer length")}function u(pe,U,Z,ne,ye,Ee){if(!g.isBuffer(pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(U>ye||Upe.length)throw new RangeError("Index out of range")}function at(pe,U,Z,ne,ye){H(U,ne,ye,pe,Z,7);let Ee=Number(U&BigInt(4294967295));pe[Z++]=Ee,Ee>>=8,pe[Z++]=Ee,Ee>>=8,pe[Z++]=Ee,Ee>>=8,pe[Z++]=Ee;let Fe=Number(U>>BigInt(32)&BigInt(4294967295));return pe[Z++]=Fe,Fe>>=8,pe[Z++]=Fe,Fe>>=8,pe[Z++]=Fe,Fe>>=8,pe[Z++]=Fe,Z}function Xe(pe,U,Z,ne,ye){H(U,ne,ye,pe,Z,7);let Ee=Number(U&BigInt(4294967295));pe[Z+7]=Ee,Ee>>=8,pe[Z+6]=Ee,Ee>>=8,pe[Z+5]=Ee,Ee>>=8,pe[Z+4]=Ee;let Fe=Number(U>>BigInt(32)&BigInt(4294967295));return pe[Z+3]=Fe,Fe>>=8,pe[Z+2]=Fe,Fe>>=8,pe[Z+1]=Fe,Fe>>=8,pe[Z]=Fe,Z+8}function Se(pe,U,Z,ne,ye,Ee){if(Z+ne>pe.length)throw new RangeError("Index out of range");if(Z<0)throw new RangeError("Index out of range")}function De(pe,U,Z,ne,ye){return U=+U,Z>>>=0,ye||Se(pe,0,Z,4),v.write(pe,U,Z,ne,23,4),Z+4}function Ke(pe,U,Z,ne,ye){return U=+U,Z>>>=0,ye||Se(pe,0,Z,8),v.write(pe,U,Z,ne,52,8),Z+8}g.prototype.slice=function(U,Z){const ne=this.length;(U=~~U)<0?(U+=ne)<0&&(U=0):U>ne&&(U=ne),(Z=Z===void 0?ne:~~Z)<0?(Z+=ne)<0&&(Z=0):Z>ne&&(Z=ne),Z>>=0,Z>>>=0,ne||Re(U,Z,this.length);let ye=this[U],Ee=1,Fe=0;for(;++Fe>>=0,Z>>>=0,ne||Re(U,Z,this.length);let ye=this[U+--Z],Ee=1;for(;Z>0&&(Ee*=256);)ye+=this[U+--Z]*Ee;return ye},g.prototype.readUint8=g.prototype.readUInt8=function(U,Z){return U>>>=0,Z||Re(U,1,this.length),this[U]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(U,Z){return U>>>=0,Z||Re(U,2,this.length),this[U]|this[U+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(U,Z){return U>>>=0,Z||Re(U,2,this.length),this[U]<<8|this[U+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),(this[U]|this[U+1]<<8|this[U+2]<<16)+16777216*this[U+3]},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),16777216*this[U]+(this[U+1]<<16|this[U+2]<<8|this[U+3])},g.prototype.readBigUInt64LE=yt((function(U){we(U>>>=0,"offset");const Z=this[U],ne=this[U+7];Z!==void 0&&ne!==void 0||ct(U,this.length-8);const ye=Z+256*this[++U]+65536*this[++U]+this[++U]*2**24,Ee=this[++U]+256*this[++U]+65536*this[++U]+ne*2**24;return BigInt(ye)+(BigInt(Ee)<>>=0,"offset");const Z=this[U],ne=this[U+7];Z!==void 0&&ne!==void 0||ct(U,this.length-8);const ye=Z*2**24+65536*this[++U]+256*this[++U]+this[++U],Ee=this[++U]*2**24+65536*this[++U]+256*this[++U]+ne;return(BigInt(ye)<>>=0,Z>>>=0,ne||Re(U,Z,this.length);let ye=this[U],Ee=1,Fe=0;for(;++Fe=Ee&&(ye-=Math.pow(2,8*Z)),ye},g.prototype.readIntBE=function(U,Z,ne){U>>>=0,Z>>>=0,ne||Re(U,Z,this.length);let ye=Z,Ee=1,Fe=this[U+--ye];for(;ye>0&&(Ee*=256);)Fe+=this[U+--ye]*Ee;return Ee*=128,Fe>=Ee&&(Fe-=Math.pow(2,8*Z)),Fe},g.prototype.readInt8=function(U,Z){return U>>>=0,Z||Re(U,1,this.length),128&this[U]?-1*(255-this[U]+1):this[U]},g.prototype.readInt16LE=function(U,Z){U>>>=0,Z||Re(U,2,this.length);const ne=this[U]|this[U+1]<<8;return 32768&ne?4294901760|ne:ne},g.prototype.readInt16BE=function(U,Z){U>>>=0,Z||Re(U,2,this.length);const ne=this[U+1]|this[U]<<8;return 32768&ne?4294901760|ne:ne},g.prototype.readInt32LE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),this[U]|this[U+1]<<8|this[U+2]<<16|this[U+3]<<24},g.prototype.readInt32BE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),this[U]<<24|this[U+1]<<16|this[U+2]<<8|this[U+3]},g.prototype.readBigInt64LE=yt((function(U){we(U>>>=0,"offset");const Z=this[U],ne=this[U+7];Z!==void 0&&ne!==void 0||ct(U,this.length-8);const ye=this[U+4]+256*this[U+5]+65536*this[U+6]+(ne<<24);return(BigInt(ye)<>>=0,"offset");const Z=this[U],ne=this[U+7];Z!==void 0&&ne!==void 0||ct(U,this.length-8);const ye=(Z<<24)+65536*this[++U]+256*this[++U]+this[++U];return(BigInt(ye)<>>=0,Z||Re(U,4,this.length),v.read(this,U,!0,23,4)},g.prototype.readFloatBE=function(U,Z){return U>>>=0,Z||Re(U,4,this.length),v.read(this,U,!1,23,4)},g.prototype.readDoubleLE=function(U,Z){return U>>>=0,Z||Re(U,8,this.length),v.read(this,U,!0,52,8)},g.prototype.readDoubleBE=function(U,Z){return U>>>=0,Z||Re(U,8,this.length),v.read(this,U,!1,52,8)},g.prototype.writeUintLE=g.prototype.writeUIntLE=function(U,Z,ne,ye){U=+U,Z>>>=0,ne>>>=0,!ye&&u(this,U,Z,ne,Math.pow(2,8*ne)-1,0);let Ee=1,Fe=0;for(this[Z]=255&U;++Fe>>=0,ne>>>=0,!ye&&u(this,U,Z,ne,Math.pow(2,8*ne)-1,0);let Ee=ne-1,Fe=1;for(this[Z+Ee]=255&U;--Ee>=0&&(Fe*=256);)this[Z+Ee]=U/Fe&255;return Z+ne},g.prototype.writeUint8=g.prototype.writeUInt8=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,1,255,0),this[Z]=255&U,Z+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,2,65535,0),this[Z]=255&U,this[Z+1]=U>>>8,Z+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,2,65535,0),this[Z]=U>>>8,this[Z+1]=255&U,Z+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,4,4294967295,0),this[Z+3]=U>>>24,this[Z+2]=U>>>16,this[Z+1]=U>>>8,this[Z]=255&U,Z+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,4,4294967295,0),this[Z]=U>>>24,this[Z+1]=U>>>16,this[Z+2]=U>>>8,this[Z+3]=255&U,Z+4},g.prototype.writeBigUInt64LE=yt((function(U,Z=0){return at(this,U,Z,BigInt(0),BigInt("0xffffffffffffffff"))})),g.prototype.writeBigUInt64BE=yt((function(U,Z=0){return Xe(this,U,Z,BigInt(0),BigInt("0xffffffffffffffff"))})),g.prototype.writeIntLE=function(U,Z,ne,ye){if(U=+U,Z>>>=0,!ye){const Bt=Math.pow(2,8*ne-1);u(this,U,Z,ne,Bt-1,-Bt)}let Ee=0,Fe=1,St=0;for(this[Z]=255&U;++Ee>>=0,!ye){const Bt=Math.pow(2,8*ne-1);u(this,U,Z,ne,Bt-1,-Bt)}let Ee=ne-1,Fe=1,St=0;for(this[Z+Ee]=255&U;--Ee>=0&&(Fe*=256);)U<0&&St===0&&this[Z+Ee+1]!==0&&(St=1),this[Z+Ee]=(U/Fe|0)-St&255;return Z+ne},g.prototype.writeInt8=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,1,127,-128),U<0&&(U=255+U+1),this[Z]=255&U,Z+1},g.prototype.writeInt16LE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,2,32767,-32768),this[Z]=255&U,this[Z+1]=U>>>8,Z+2},g.prototype.writeInt16BE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,2,32767,-32768),this[Z]=U>>>8,this[Z+1]=255&U,Z+2},g.prototype.writeInt32LE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,4,2147483647,-2147483648),this[Z]=255&U,this[Z+1]=U>>>8,this[Z+2]=U>>>16,this[Z+3]=U>>>24,Z+4},g.prototype.writeInt32BE=function(U,Z,ne){return U=+U,Z>>>=0,ne||u(this,U,Z,4,2147483647,-2147483648),U<0&&(U=4294967295+U+1),this[Z]=U>>>24,this[Z+1]=U>>>16,this[Z+2]=U>>>8,this[Z+3]=255&U,Z+4},g.prototype.writeBigInt64LE=yt((function(U,Z=0){return at(this,U,Z,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),g.prototype.writeBigInt64BE=yt((function(U,Z=0){return Xe(this,U,Z,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),g.prototype.writeFloatLE=function(U,Z,ne){return De(this,U,Z,!0,ne)},g.prototype.writeFloatBE=function(U,Z,ne){return De(this,U,Z,!1,ne)},g.prototype.writeDoubleLE=function(U,Z,ne){return Ke(this,U,Z,!0,ne)},g.prototype.writeDoubleBE=function(U,Z,ne){return Ke(this,U,Z,!1,ne)},g.prototype.copy=function(U,Z,ne,ye){if(!g.isBuffer(U))throw new TypeError("argument should be a Buffer");if(ne||(ne=0),ye||ye===0||(ye=this.length),Z>=U.length&&(Z=U.length),Z||(Z=0),ye>0&&ye=this.length)throw new RangeError("Index out of range");if(ye<0)throw new RangeError("sourceEnd out of bounds");ye>this.length&&(ye=this.length),U.length-Z>>=0,ne=ne===void 0?this.length:ne>>>0,U||(U=0),typeof U=="number")for(Ee=Z;Ee=ne+4;Z-=3)U=`_${pe.slice(Z-3,Z)}${U}`;return`${pe.slice(0,Z)}${U}`}function H(pe,U,Z,ne,ye,Ee){if(pe>Z||pe= 0${Fe} and < 2${Fe} ** ${8*(Ee+1)}${Fe}`:`>= -(2${Fe} ** ${8*(Ee+1)-1}${Fe}) and < 2 ** ${8*(Ee+1)-1}${Fe}`,new ft.ERR_OUT_OF_RANGE("value",St,pe)}(function(St,Bt,Qe){we(Bt,"offset"),St[Bt]!==void 0&&St[Bt+Qe]!==void 0||ct(Bt,St.length-(Qe+1))})(ne,ye,Ee)}function we(pe,U){if(typeof pe!="number")throw new ft.ERR_INVALID_ARG_TYPE(U,"number",pe)}function ct(pe,U,Z){throw Math.floor(pe)!==pe?(we(pe,Z),new ft.ERR_OUT_OF_RANGE("offset","an integer",pe)):U<0?new ft.ERR_BUFFER_OUT_OF_BOUNDS:new ft.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${U}`,pe)}Nt("ERR_BUFFER_OUT_OF_BOUNDS",(function(pe){return pe?`${pe} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),Nt("ERR_INVALID_ARG_TYPE",(function(pe,U){return`The "${pe}" argument must be of type number. Received type ${typeof U}`}),TypeError),Nt("ERR_OUT_OF_RANGE",(function(pe,U,Z){let ne=`The value of "${pe}" is out of range.`,ye=Z;return Number.isInteger(Z)&&Math.abs(Z)>4294967296?ye=Wt(String(Z)):typeof Z=="bigint"&&(ye=String(Z),(Z>BigInt(2)**BigInt(32)||Z<-(BigInt(2)**BigInt(32)))&&(ye=Wt(ye)),ye+="n"),ne+=` It must be ${U}. Received ${ye}`,ne}),RangeError);const mt=/[^+/0-9A-Za-z-_]/g;function ur(pe,U){let Z;U=U||1/0;const ne=pe.length;let ye=null;const Ee=[];for(let Fe=0;Fe55295&&Z<57344){if(!ye){if(Z>56319){(U-=3)>-1&&Ee.push(239,191,189);continue}if(Fe+1===ne){(U-=3)>-1&&Ee.push(239,191,189);continue}ye=Z;continue}if(Z<56320){(U-=3)>-1&&Ee.push(239,191,189),ye=Z;continue}Z=65536+(ye-55296<<10|Z-56320)}else ye&&(U-=3)>-1&&Ee.push(239,191,189);if(ye=null,Z<128){if((U-=1)<0)break;Ee.push(Z)}else if(Z<2048){if((U-=2)<0)break;Ee.push(Z>>6|192,63&Z|128)}else if(Z<65536){if((U-=3)<0)break;Ee.push(Z>>12|224,Z>>6&63|128,63&Z|128)}else{if(!(Z<1114112))throw new Error("Invalid code point");if((U-=4)<0)break;Ee.push(Z>>18|240,Z>>12&63|128,Z>>6&63|128,63&Z|128)}}return Ee}function ar(pe){return h.toByteArray((function(Z){if((Z=(Z=Z.split("=")[0]).trim().replace(mt,"")).length<2)return"";for(;Z.length%4!=0;)Z+="=";return Z})(pe))}function Tt(pe,U,Z,ne){let ye;for(ye=0;ye=U.length||ye>=pe.length);++ye)U[ye+Z]=pe[ye];return ye}function Gt(pe,U){return pe instanceof U||pe!=null&&pe.constructor!=null&&pe.constructor.name!=null&&pe.constructor.name===U.name}function Sr(pe){return pe!=pe}const kt=(function(){const pe="0123456789abcdef",U=new Array(256);for(let Z=0;Z<16;++Z){const ne=16*Z;for(let ye=0;ye<16;++ye)U[ne+ye]=pe[Z]+pe[ye]}return U})();function yt(pe){return typeof BigInt>"u"?Zt:pe}function Zt(){throw new Error("BigInt not supported")}},13144(w,N,s){var h=s(66743),v=s(11002),f=s(10076),y=s(47119);w.exports=y||h.call(f,v)},12205(w,N,s){var h=s(66743),v=s(11002),f=s(13144);w.exports=function(){return f(h,v,arguments)}},11002(w){w.exports=Function.prototype.apply},10076(w){w.exports=Function.prototype.call},73126(w,N,s){var h=s(66743),v=s(69675),f=s(10076),y=s(13144);w.exports=function(g){if(g.length<1||typeof g[0]!="function")throw new v("a function is required");return y(h,f,g)}},47119(w){w.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},10487(w,N,s){var h=s(96897),v=s(30655),f=s(73126),y=s(12205);w.exports=function(g){var S=f(arguments),_=g.length-(arguments.length-1);return h(S,1+(_>0?_:0),!0)},v?v(w.exports,"apply",{value:y}):w.exports.apply=y},36556(w,N,s){var h=s(70453),v=s(73126),f=v([h("%String.prototype.indexOf%")]);w.exports=function(m,g){var S=h(m,!!g);return typeof S=="function"&&f(m,".prototype.")>-1?v([S]):S}},17965(w,N,s){var h=s(16426),v={"text/plain":"Text","text/html":"Url",default:"Text"};w.exports=function(y,m){var g,S,_,T,I,j,M=!1;m||(m={}),g=m.debug||!1;try{if(_=h(),T=document.createRange(),I=document.getSelection(),(j=document.createElement("span")).textContent=y,j.ariaHidden="true",j.style.all="unset",j.style.position="fixed",j.style.top=0,j.style.clip="rect(0, 0, 0, 0)",j.style.whiteSpace="pre",j.style.webkitUserSelect="text",j.style.MozUserSelect="text",j.style.msUserSelect="text",j.style.userSelect="text",j.addEventListener("copy",(function(z){if(z.stopPropagation(),m.format)if(z.preventDefault(),z.clipboardData===void 0){g&&console.warn("unable to use e.clipboardData"),g&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var K=v[m.format]||v.default;window.clipboardData.setData(K,y)}else z.clipboardData.clearData(),z.clipboardData.setData(m.format,y);m.onCopy&&(z.preventDefault(),m.onCopy(z.clipboardData))})),document.body.appendChild(j),T.selectNodeContents(j),I.addRange(T),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");M=!0}catch(z){g&&console.error("unable to copy using execCommand: ",z),g&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(m.format||"text",y),m.onCopy&&m.onCopy(window.clipboardData),M=!0}catch(K){g&&console.error("unable to copy using clipboardData: ",K),g&&console.error("falling back to prompt"),S=(function(B){var X=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return B.replace(/#{\s*key\s*}/g,X)})("message"in m?m.message:"Copy to clipboard: #{key}, Enter"),window.prompt(S,y)}}finally{I&&(typeof I.removeRange=="function"?I.removeRange(T):I.removeAllRanges()),j&&document.body.removeChild(j),_()}return M}},2205(w,N,s){var h;h=s.g!==void 0?s.g:this,w.exports=(function(v){if(v.CSS&&v.CSS.escape)return v.CSS.escape;var f=function(y){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var m,g=String(y),S=g.length,_=-1,T="",I=g.charCodeAt(0);++_=1&&m<=31||m==127||_==0&&m>=48&&m<=57||_==1&&m>=48&&m<=57&&I==45?"\\"+m.toString(16)+" ":_==0&&S==1&&m==45||!(m>=128||m==45||m==95||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122)?"\\"+g.charAt(_):g.charAt(_):T+="�";return T};return v.CSS||(v.CSS={}),v.CSS.escape=f,f})(h)},81919(w,N,s){var h=s(48287).Buffer;function v(S){return S instanceof h||S instanceof Date||S instanceof RegExp}function f(S){if(S instanceof h){var _=h.alloc?h.alloc(S.length):new h(S.length);return S.copy(_),_}if(S instanceof Date)return new Date(S.getTime());if(S instanceof RegExp)return new RegExp(S);throw new Error("Unexpected situation")}function y(S){var _=[];return S.forEach((function(T,I){typeof T=="object"&&T!==null?Array.isArray(T)?_[I]=y(T):v(T)?_[I]=f(T):_[I]=g({},T):_[I]=T})),_}function m(S,_){return _==="__proto__"?void 0:S[_]}var g=w.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var S,_,T=arguments[0];return Array.prototype.slice.call(arguments,1).forEach((function(I){typeof I!="object"||I===null||Array.isArray(I)||Object.keys(I).forEach((function(j){return _=m(T,j),(S=m(I,j))===T?void 0:typeof S!="object"||S===null?void(T[j]=S):Array.isArray(S)?void(T[j]=y(S)):v(S)?void(T[j]=f(S)):typeof _!="object"||_===null||Array.isArray(_)?void(T[j]=g({},S)):void(T[j]=g(_,S))}))})),T}},14744(w){var N=function(T){return(function(j){return!!j&&typeof j=="object"})(T)&&!(function(j){var M=Object.prototype.toString.call(j);return M==="[object RegExp]"||M==="[object Date]"||(function(K){return K.$$typeof===s})(j)})(T)},s=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function h(_,T){return T.clone!==!1&&T.isMergeableObject(_)?g((function(j){return Array.isArray(j)?[]:{}})(_),_,T):_}function v(_,T,I){return _.concat(T).map((function(j){return h(j,I)}))}function f(_){return Object.keys(_).concat((function(I){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(I).filter((function(j){return Object.propertyIsEnumerable.call(I,j)})):[]})(_))}function y(_,T){try{return T in _}catch{return!1}}function m(_,T,I){var j={};return I.isMergeableObject(_)&&f(_).forEach((function(M){j[M]=h(_[M],I)})),f(T).forEach((function(M){(function(K,Y){return y(K,Y)&&!(Object.hasOwnProperty.call(K,Y)&&Object.propertyIsEnumerable.call(K,Y))})(_,M)||(y(_,M)&&I.isMergeableObject(T[M])?j[M]=(function(K,Y){if(!Y.customMerge)return g;var B=Y.customMerge(K);return typeof B=="function"?B:g})(M,I)(_[M],T[M],I):j[M]=h(T[M],I))})),j}function g(_,T,I){(I=I||{}).arrayMerge=I.arrayMerge||v,I.isMergeableObject=I.isMergeableObject||N,I.cloneUnlessOtherwiseSpecified=h;var j=Array.isArray(T);return j===Array.isArray(_)?j?I.arrayMerge(_,T,I):m(_,T,I):h(T,I)}g.all=function(T,I){if(!Array.isArray(T))throw new Error("first argument should be an array");return T.reduce((function(j,M){return g(j,M,I)}),{})};var S=g;w.exports=S},30041(w,N,s){var h=s(30655),v=s(58068),f=s(69675),y=s(75795);w.exports=function(g,S,_){if(!g||typeof g!="object"&&typeof g!="function")throw new f("`obj` must be an object or a function`");if(typeof S!="string"&&typeof S!="symbol")throw new f("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new f("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new f("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new f("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new f("`loose`, if provided, must be a boolean");var T=arguments.length>3?arguments[3]:null,I=arguments.length>4?arguments[4]:null,j=arguments.length>5?arguments[5]:null,M=arguments.length>6&&arguments[6],z=!!y&&y(g,S);if(h)h(g,S,{configurable:j===null&&z?z.configurable:!j,enumerable:T===null&&z?z.enumerable:!T,value:_,writable:I===null&&z?z.writable:!I});else{if(!M&&(T||I||j))throw new v("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");g[S]=_}}},78004(w){class N{constructor(v,f){this.low=v,this.high=f,this.length=1+f-v}overlaps(v){return!(this.highv.high)}touches(v){return!(this.high+1v.high)}add(v){return new N(Math.min(this.low,v.low),Math.max(this.high,v.high))}subtract(v){return v.low<=this.low&&v.high>=this.high?[]:v.low>this.low&&v.highv+f.length),0)}add(v,f){var y=m=>{for(var g=0;g{for(var g=0;g{for(var S=0;S{for(var y=f.low;y<=f.high;)v.push(y),y++;return v}),[])}subranges(){return this.ranges.map((v=>({low:v.low,high:v.high,length:1+v.high-v.low})))}}w.exports=s},7176(w,N,s){var h,v=s(73126),f=s(75795);try{h=[].__proto__===Array.prototype}catch(S){if(!S||typeof S!="object"||!("code"in S)||S.code!=="ERR_PROTO_ACCESS")throw S}var y=!!h&&f&&f(Object.prototype,"__proto__"),m=Object,g=m.getPrototypeOf;w.exports=y&&typeof y.get=="function"?v([y.get]):typeof g=="function"&&function(_){return g(_==null?_:m(_))}},30655(w){var N=Object.defineProperty||!1;if(N)try{N({},"a",{value:1})}catch{N=!1}w.exports=N},41237(w){w.exports=EvalError},69383(w){w.exports=Error},79290(w){w.exports=RangeError},79538(w){w.exports=ReferenceError},58068(w){w.exports=SyntaxError},69675(w){w.exports=TypeError},35345(w){w.exports=URIError},79612(w){w.exports=Object},37007(w){var N,s=typeof Reflect=="object"?Reflect:null,h=s&&typeof s.apply=="function"?s.apply:function(Y,B,X){return Function.prototype.apply.call(Y,B,X)};N=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(Y){return Object.getOwnPropertyNames(Y).concat(Object.getOwnPropertySymbols(Y))}:function(Y){return Object.getOwnPropertyNames(Y)};var v=Number.isNaN||function(Y){return Y!=Y};function f(){f.init.call(this)}w.exports=f,w.exports.once=function(Y,B){return new Promise((function(X,te){function ie(Te){Y.removeListener(B,se),te(Te)}function se(){typeof Y.removeListener=="function"&&Y.removeListener("error",ie),X([].slice.call(arguments))}z(Y,B,se,{once:!0}),B!=="error"&&(function(he,ge,ke){typeof he.on=="function"&&z(he,"error",ge,ke)})(Y,ie,{once:!0})}))},f.EventEmitter=f,f.prototype._events=void 0,f.prototype._eventsCount=0,f.prototype._maxListeners=void 0;var y=10;function m(K){if(typeof K!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof K)}function g(K){return K._maxListeners===void 0?f.defaultMaxListeners:K._maxListeners}function S(K,Y,B,X){var te,ie,se;if(m(B),(ie=K._events)===void 0?(ie=K._events=Object.create(null),K._eventsCount=0):(ie.newListener!==void 0&&(K.emit("newListener",Y,B.listener?B.listener:B),ie=K._events),se=ie[Y]),se===void 0)se=ie[Y]=B,++K._eventsCount;else if(typeof se=="function"?se=ie[Y]=X?[B,se]:[se,B]:X?se.unshift(B):se.push(B),(te=g(K))>0&&se.length>te&&!se.warned){se.warned=!0;var Te=new Error("Possible EventEmitter memory leak detected. "+se.length+" "+String(Y)+" listeners added. Use emitter.setMaxListeners() to increase limit");Te.name="MaxListenersExceededWarning",Te.emitter=K,Te.type=Y,Te.count=se.length,(function(ge){console&&console.warn&&console.warn(ge)})(Te)}return K}function _(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function T(K,Y,B){var X={fired:!1,wrapFn:void 0,target:K,type:Y,listener:B},te=_.bind(X);return te.listener=B,X.wrapFn=te,te}function I(K,Y,B){var X=K._events;if(X===void 0)return[];var te=X[Y];return te===void 0?[]:typeof te=="function"?B?[te.listener||te]:[te]:B?(function(se){for(var Te=new Array(se.length),he=0;he0&&(se=B[0]),se instanceof Error)throw se;var Te=new Error("Unhandled error."+(se?" ("+se.message+")":""));throw Te.context=se,Te}var he=ie[Y];if(he===void 0)return!1;if(typeof he=="function")h(he,this,B);else{var ge=he.length,ke=M(he,ge);for(X=0;X=0;se--)if(X[se]===B||X[se].listener===B){Te=X[se].listener,ie=se;break}if(ie<0)return this;ie===0?X.shift():(function(ge,ke){for(;ke+1=0;te--)this.removeListener(Y,B[te]);return this},f.prototype.listeners=function(Y){return I(this,Y,!0)},f.prototype.rawListeners=function(Y){return I(this,Y,!1)},f.listenerCount=function(K,Y){return typeof K.listenerCount=="function"?K.listenerCount(Y):j.call(K,Y)},f.prototype.listenerCount=j,f.prototype.eventNames=function(){return this._eventsCount>0?N(this._events):[]}},85587(w,N,s){var h=s(26311),v=f(Error);function f(y){return m.displayName=y.displayName||y.name,m;function m(g){return g&&(g=h.apply(null,arguments)),new y(g)}}w.exports=v,v.eval=f(EvalError),v.range=f(RangeError),v.reference=f(ReferenceError),v.syntax=f(SyntaxError),v.type=f(TypeError),v.uri=f(URIError),v.create=f},82682(w,N,s){var h=s(69600),v=Object.prototype.toString,f=Object.prototype.hasOwnProperty;w.exports=function(m,g,S){if(!h(g))throw new TypeError("iterator must be a function");var _;arguments.length>=3&&(_=S),(function(I){return v.call(I)==="[object Array]"})(m)?(function(I,j,M){for(var z=0,K=I.length;z0?parseInt(Y):null};_"u"?h:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?h:ArrayBuffer,"%ArrayIteratorPrototype%":ge&&ke?ke([][Symbol.iterator]()):h,"%AsyncFromSyncIteratorPrototype%":h,"%AsyncFunction%":gt,"%AsyncGenerator%":gt,"%AsyncGeneratorFunction%":gt,"%AsyncIteratorPrototype%":gt,"%Atomics%":typeof Atomics>"u"?h:Atomics,"%BigInt%":typeof BigInt>"u"?h:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?h:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?h:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?h:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":f,"%eval%":eval,"%EvalError%":y,"%Float32Array%":typeof Float32Array>"u"?h:Float32Array,"%Float64Array%":typeof Float64Array>"u"?h:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?h:FinalizationRegistry,"%Function%":X,"%GeneratorFunction%":gt,"%Int8Array%":typeof Int8Array>"u"?h:Int8Array,"%Int16Array%":typeof Int16Array>"u"?h:Int16Array,"%Int32Array%":typeof Int32Array>"u"?h:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ge&&ke?ke(ke([][Symbol.iterator]())):h,"%JSON%":typeof JSON=="object"?JSON:h,"%Map%":typeof Map>"u"?h:Map,"%MapIteratorPrototype%":typeof Map<"u"&&ge&&ke?ke(new Map()[Symbol.iterator]()):h,"%Math%":Math,"%Number%":Number,"%Object%":v,"%Object.getOwnPropertyDescriptor%":ie,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?h:Promise,"%Proxy%":typeof Proxy>"u"?h:Proxy,"%RangeError%":m,"%ReferenceError%":g,"%Reflect%":typeof Reflect>"u"?h:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?h:Set,"%SetIteratorPrototype%":typeof Set<"u"&&ge&&ke?ke(new Set()[Symbol.iterator]()):h,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?h:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ge&&ke?ke(""[Symbol.iterator]()):h,"%Symbol%":ge?Symbol:h,"%SyntaxError%":S,"%ThrowTypeError%":he,"%TypedArray%":Re,"%TypeError%":_,"%Uint8Array%":typeof Uint8Array>"u"?h:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?h:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?h:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?h:Uint32Array,"%URIError%":T,"%WeakMap%":typeof WeakMap>"u"?h:WeakMap,"%WeakRef%":typeof WeakRef>"u"?h:WeakRef,"%WeakSet%":typeof WeakSet>"u"?h:WeakSet,"%Function.prototype.call%":nt,"%Function.prototype.apply%":qe,"%Object.defineProperty%":se,"%Object.getPrototypeOf%":Ve,"%Math.abs%":I,"%Math.floor%":j,"%Math.max%":M,"%Math.min%":z,"%Math.pow%":K,"%Math.round%":Y,"%Math.sign%":B,"%Reflect.getPrototypeOf%":He};if(ke)try{null.error}catch(ar){var at=ke(ke(ar));u["%Error.prototype%"]=at}var Xe=function ar(Tt){var Gt;if(Tt==="%AsyncFunction%")Gt=te("async function () {}");else if(Tt==="%GeneratorFunction%")Gt=te("function* () {}");else if(Tt==="%AsyncGeneratorFunction%")Gt=te("async function* () {}");else if(Tt==="%AsyncGenerator%"){var Sr=ar("%AsyncGeneratorFunction%");Sr&&(Gt=Sr.prototype)}else if(Tt==="%AsyncIteratorPrototype%"){var kt=ar("%AsyncGenerator%");kt&&ke&&(Gt=ke(kt.prototype))}return u[Tt]=Gt,Gt},Se={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},De=s(66743),Ke=s(9957),ft=De.call(nt,Array.prototype.concat),Nt=De.call(qe,Array.prototype.splice),Wt=De.call(nt,String.prototype.replace),H=De.call(nt,String.prototype.slice),we=De.call(nt,RegExp.prototype.exec),ct=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mt=/\\(\\)?/g,ur=function(Tt,Gt){var Sr,kt=Tt;if(Ke(Se,kt)&&(kt="%"+(Sr=Se[kt])[0]+"%"),Ke(u,kt)){var yt=u[kt];if(yt===gt&&(yt=Xe(kt)),yt===void 0&&!Gt)throw new _("intrinsic "+Tt+" exists, but is not available. Please file an issue!");return{alias:Sr,name:kt,value:yt}}throw new S("intrinsic "+Tt+" does not exist!")};w.exports=function(Tt,Gt){if(typeof Tt!="string"||Tt.length===0)throw new _("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Gt!="boolean")throw new _('"allowMissing" argument must be a boolean');if(we(/^%?[^%]*%?$/,Tt)===null)throw new S("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Sr=(function($t){var Pt=H($t,0,1),rn=H($t,-1);if(Pt==="%"&&rn!=="%")throw new S("invalid intrinsic syntax, expected closing `%`");if(rn==="%"&&Pt!=="%")throw new S("invalid intrinsic syntax, expected opening `%`");var kr=[];return Wt($t,ct,(function(An,Wr,Jn,Ea){kr[kr.length]=Jn?Wt(Ea,mt,"$1"):Wr||An})),kr})(Tt),kt=Sr.length>0?Sr[0]:"",yt=ur("%"+kt+"%",Gt),Zt=yt.name,pe=yt.value,U=!1,Z=yt.alias;Z&&(kt=Z[0],Nt(Sr,ft([0,1],Z)));for(var ne=1,ye=!0;ne=Sr.length){var Bt=ie(pe,Ee);pe=(ye=!!Bt)&&"get"in Bt&&!("originalValue"in Bt.get)?Bt.get:pe[Ee]}else ye=Ke(pe,Ee),pe=pe[Ee];ye&&!U&&(u[Zt]=pe)}}return pe}},71064(w,N,s){var h=s(79612);w.exports=h.getPrototypeOf||null},48648(w){w.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},93628(w,N,s){var h=s(48648),v=s(71064),f=s(7176);w.exports=h?function(m){return h(m)}:v?function(m){if(!m||typeof m!="object"&&typeof m!="function")throw new TypeError("getProto: not an object");return v(m)}:f?function(m){return f(m)}:null},6549(w){w.exports=Object.getOwnPropertyDescriptor},75795(w,N,s){var h=s(6549);if(h)try{h([],"length")}catch{h=null}w.exports=h},30592(w,N,s){var h=s(30655),v=function(){return!!h};v.hasArrayLengthDefineBug=function(){if(!h)return null;try{return h([],"length",{value:1}).length!==1}catch{return!0}},w.exports=v},64039(w,N,s){var h=typeof Symbol<"u"&&Symbol,v=s(41333);w.exports=function(){return typeof h=="function"&&typeof Symbol=="function"&&typeof h("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&v()}},41333(w){w.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},h=Symbol("test"),v=Object(h);if(typeof h=="string"||Object.prototype.toString.call(h)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;for(var f in s[h]=42,s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var y=Object.getOwnPropertySymbols(s);if(y.length!==1||y[0]!==h||!Object.prototype.propertyIsEnumerable.call(s,h))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var m=Object.getOwnPropertyDescriptor(s,h);if(m.value!==42||m.enumerable!==!0)return!1}return!0}},49092(w,N,s){var h=s(41333);w.exports=function(){return h()&&!!Symbol.toStringTag}},9957(w,N,s){var h=Function.prototype.call,v=Object.prototype.hasOwnProperty,f=s(66743);w.exports=f.call(h,v)},45981(w){function N(ne){return ne instanceof Map?ne.clear=ne.delete=ne.set=function(){throw new Error("map is read-only")}:ne instanceof Set&&(ne.add=ne.clear=ne.delete=function(){throw new Error("set is read-only")}),Object.freeze(ne),Object.getOwnPropertyNames(ne).forEach((function(ye){var Ee=ne[ye];typeof Ee!="object"||Object.isFrozen(Ee)||N(Ee)})),ne}var s=N,h=N;s.default=h;class v{constructor(ye){ye.data===void 0&&(ye.data={}),this.data=ye.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function f(ne){return ne.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function y(ne,...ye){const Ee=Object.create(null);for(const Fe in ne)Ee[Fe]=ne[Fe];return ye.forEach((function(Fe){for(const St in Fe)Ee[St]=Fe[St]})),Ee}const m=ne=>!!ne.kind;class g{constructor(ye,Ee){this.buffer="",this.classPrefix=Ee.classPrefix,ye.walk(this)}addText(ye){this.buffer+=f(ye)}openNode(ye){if(!m(ye))return;let Ee=ye.kind;ye.sublanguage||(Ee=`${this.classPrefix}${Ee}`),this.span(Ee)}closeNode(ye){m(ye)&&(this.buffer+="
    ")}value(){return this.buffer}span(ye){this.buffer+=``}}class S{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ye){this.top.children.push(ye)}openNode(ye){const Ee={kind:ye,children:[]};this.add(Ee),this.stack.push(Ee)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ye){return this.constructor._walk(ye,this.rootNode)}static _walk(ye,Ee){return typeof Ee=="string"?ye.addText(Ee):Ee.children&&(ye.openNode(Ee),Ee.children.forEach((Fe=>this._walk(ye,Fe))),ye.closeNode(Ee)),ye}static _collapse(ye){typeof ye!="string"&&ye.children&&(ye.children.every((Ee=>typeof Ee=="string"))?ye.children=[ye.children.join("")]:ye.children.forEach((Ee=>{S._collapse(Ee)})))}}class _ extends S{constructor(ye){super(),this.options=ye}addKeyword(ye,Ee){ye!==""&&(this.openNode(Ee),this.addText(ye),this.closeNode())}addText(ye){ye!==""&&this.add(ye)}addSublanguage(ye,Ee){const Fe=ye.root;Fe.kind=Ee,Fe.sublanguage=!0,this.add(Fe)}toHTML(){return new g(this,this.options).value()}finalize(){return!0}}function T(ne){return ne?typeof ne=="string"?ne:ne.source:null}const I=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,j="[a-zA-Z]\\w*",M="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",K="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Y="\\b(0b[01]+)",B={begin:"\\\\[\\s\\S]",relevance:0},X={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[B]},te={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[B]},ie={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},se=function(ne,ye,Ee={}){const Fe=y({className:"comment",begin:ne,end:ye,contains:[]},Ee);return Fe.contains.push(ie),Fe.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),Fe},Te=se("//","$"),he=se("/\\*","\\*/"),ge=se("#","$"),ke={className:"number",begin:z,relevance:0},Ve={className:"number",begin:K,relevance:0},He={className:"number",begin:Y,relevance:0},qe={className:"number",begin:z+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},nt={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[B,{begin:/\[/,end:/\]/,relevance:0,contains:[B]}]}]},gt={className:"title",begin:j,relevance:0},Re={className:"title",begin:M,relevance:0},u={begin:"\\.\\s*"+M,relevance:0};var at=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:j,UNDERSCORE_IDENT_RE:M,NUMBER_RE:z,C_NUMBER_RE:K,BINARY_NUMBER_RE:Y,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(ne={})=>{const ye=/^#![ ]*\//;return ne.binary&&(ne.begin=(function(...Fe){return Fe.map((St=>T(St))).join("")})(ye,/.*\b/,ne.binary,/\b.*/)),y({className:"meta",begin:ye,end:/$/,relevance:0,"on:begin":(Ee,Fe)=>{Ee.index!==0&&Fe.ignoreMatch()}},ne)},BACKSLASH_ESCAPE:B,APOS_STRING_MODE:X,QUOTE_STRING_MODE:te,PHRASAL_WORDS_MODE:ie,COMMENT:se,C_LINE_COMMENT_MODE:Te,C_BLOCK_COMMENT_MODE:he,HASH_COMMENT_MODE:ge,NUMBER_MODE:ke,C_NUMBER_MODE:Ve,BINARY_NUMBER_MODE:He,CSS_NUMBER_MODE:qe,REGEXP_MODE:nt,TITLE_MODE:gt,UNDERSCORE_TITLE_MODE:Re,METHOD_GUARD:u,END_SAME_AS_BEGIN:function(ne){return Object.assign(ne,{"on:begin":(ye,Ee)=>{Ee.data._beginMatch=ye[1]},"on:end":(ye,Ee)=>{Ee.data._beginMatch!==ye[1]&&Ee.ignoreMatch()}})}});function Xe(ne,ye){ne.input[ne.index-1]==="."&&ye.ignoreMatch()}function Se(ne,ye){ye&&ne.beginKeywords&&(ne.begin="\\b("+ne.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ne.__beforeBegin=Xe,ne.keywords=ne.keywords||ne.beginKeywords,delete ne.beginKeywords,ne.relevance===void 0&&(ne.relevance=0))}function De(ne,ye){Array.isArray(ne.illegal)&&(ne.illegal=(function(...Fe){return"("+Fe.map((St=>T(St))).join("|")+")"})(...ne.illegal))}function Ke(ne,ye){if(ne.match){if(ne.begin||ne.end)throw new Error("begin & end are not supported with match");ne.begin=ne.match,delete ne.match}}function ft(ne,ye){ne.relevance===void 0&&(ne.relevance=1)}const Nt=["of","and","for","in","not","or","if","then","parent","list","value"];function Wt(ne,ye,Ee="keyword"){const Fe={};return typeof ne=="string"?St(Ee,ne.split(" ")):Array.isArray(ne)?St(Ee,ne):Object.keys(ne).forEach((function(Bt){Object.assign(Fe,Wt(ne[Bt],ye,Bt))})),Fe;function St(Bt,Qe){ye&&(Qe=Qe.map(($t=>$t.toLowerCase()))),Qe.forEach((function($t){const Pt=$t.split("|");Fe[Pt[0]]=[Bt,H(Pt[0],Pt[1])]}))}}function H(ne,ye){return ye?Number(ye):(function(Fe){return Nt.includes(Fe.toLowerCase())})(ne)?0:1}function we(ne,{plugins:ye}){function Ee(Bt,Qe){return new RegExp(T(Bt),"m"+(ne.case_insensitive?"i":"")+(Qe?"g":""))}class Fe{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Qe,$t){$t.position=this.position++,this.matchIndexes[this.matchAt]=$t,this.regexes.push([$t,Qe]),this.matchAt+=(function(rn){return new RegExp(rn.toString()+"|").exec("").length-1})(Qe)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Qe=this.regexes.map(($t=>$t[1]));this.matcherRe=Ee((function(Pt,rn="|"){let kr=0;return Pt.map((An=>{kr+=1;const Wr=kr;let Jn=T(An),Ea="";for(;Jn.length>0;){const Zn=I.exec(Jn);if(!Zn){Ea+=Jn;break}Ea+=Jn.substring(0,Zn.index),Jn=Jn.substring(Zn.index+Zn[0].length),Zn[0][0]==="\\"&&Zn[1]?Ea+="\\"+String(Number(Zn[1])+Wr):(Ea+=Zn[0],Zn[0]==="("&&kr++)}return Ea})).map((An=>`(${An})`)).join(rn)})(Qe),!0),this.lastIndex=0}exec(Qe){this.matcherRe.lastIndex=this.lastIndex;const $t=this.matcherRe.exec(Qe);if(!$t)return null;const Pt=$t.findIndex(((kr,An)=>An>0&&kr!==void 0)),rn=this.matchIndexes[Pt];return $t.splice(0,Pt),Object.assign($t,rn)}}class St{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Qe){if(this.multiRegexes[Qe])return this.multiRegexes[Qe];const $t=new Fe;return this.rules.slice(Qe).forEach((([Pt,rn])=>$t.addRule(Pt,rn))),$t.compile(),this.multiRegexes[Qe]=$t,$t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Qe,$t){this.rules.push([Qe,$t]),$t.type==="begin"&&this.count++}exec(Qe){const $t=this.getMatcher(this.regexIndex);$t.lastIndex=this.lastIndex;let Pt=$t.exec(Qe);if(this.resumingScanAtSamePosition()&&!(Pt&&Pt.index===this.lastIndex)){const rn=this.getMatcher(0);rn.lastIndex=this.lastIndex+1,Pt=rn.exec(Qe)}return Pt&&(this.regexIndex+=Pt.position+1,this.regexIndex===this.count&&this.considerAll()),Pt}}if(ne.compilerExtensions||(ne.compilerExtensions=[]),ne.contains&&ne.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return ne.classNameAliases=y(ne.classNameAliases||{}),(function Bt(Qe,$t){const Pt=Qe;if(Qe.isCompiled)return Pt;[Ke].forEach((kr=>kr(Qe,$t))),ne.compilerExtensions.forEach((kr=>kr(Qe,$t))),Qe.__beforeBegin=null,[Se,De,ft].forEach((kr=>kr(Qe,$t))),Qe.isCompiled=!0;let rn=null;if(typeof Qe.keywords=="object"&&(rn=Qe.keywords.$pattern,delete Qe.keywords.$pattern),Qe.keywords&&(Qe.keywords=Wt(Qe.keywords,ne.case_insensitive)),Qe.lexemes&&rn)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return rn=rn||Qe.lexemes||/\w+/,Pt.keywordPatternRe=Ee(rn,!0),$t&&(Qe.begin||(Qe.begin=/\B|\b/),Pt.beginRe=Ee(Qe.begin),Qe.endSameAsBegin&&(Qe.end=Qe.begin),Qe.end||Qe.endsWithParent||(Qe.end=/\B|\b/),Qe.end&&(Pt.endRe=Ee(Qe.end)),Pt.terminatorEnd=T(Qe.end)||"",Qe.endsWithParent&&$t.terminatorEnd&&(Pt.terminatorEnd+=(Qe.end?"|":"")+$t.terminatorEnd)),Qe.illegal&&(Pt.illegalRe=Ee(Qe.illegal)),Qe.contains||(Qe.contains=[]),Qe.contains=[].concat(...Qe.contains.map((function(kr){return(function(Wr){return Wr.variants&&!Wr.cachedVariants&&(Wr.cachedVariants=Wr.variants.map((function(Jn){return y(Wr,{variants:null},Jn)}))),Wr.cachedVariants?Wr.cachedVariants:ct(Wr)?y(Wr,{starts:Wr.starts?y(Wr.starts):null}):Object.isFrozen(Wr)?y(Wr):Wr})(kr==="self"?Qe:kr)}))),Qe.contains.forEach((function(kr){Bt(kr,Pt)})),Qe.starts&&Bt(Qe.starts,$t),Pt.matcher=(function(An){const Wr=new St;return An.contains.forEach((Jn=>Wr.addRule(Jn.begin,{rule:Jn,type:"begin"}))),An.terminatorEnd&&Wr.addRule(An.terminatorEnd,{type:"end"}),An.illegal&&Wr.addRule(An.illegal,{type:"illegal"}),Wr})(Pt),Pt})(ne)}function ct(ne){return!!ne&&(ne.endsWithParent||ct(ne.starts))}function mt(ne){const ye={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!ne.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,f(this.code);let Ee={};return this.autoDetect?(Ee=ne.highlightAuto(this.code),this.detectedLanguage=Ee.language):(Ee=ne.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),Ee.value},autoDetect(){return!this.language||(function(Fe){return!!(Fe||Fe==="")})(this.autodetect)},ignoreIllegals:()=>!0},render(Ee){return Ee("pre",{},[Ee("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:ye,VuePlugin:{install(Ee){Ee.component("highlightjs",ye)}}}}const ur={"after:highlightElement":({el:ne,result:ye,text:Ee})=>{const Fe=Tt(ne);if(!Fe.length)return;const St=document.createElement("div");St.innerHTML=ye.value,ye.value=(function(Qe,$t,Pt){let rn=0,kr="";const An=[];function Wr(){return Qe.length&&$t.length?Qe[0].offset!==$t[0].offset?Qe[0].offset<$t[0].offset?Qe:$t:$t[0].event==="start"?Qe:$t:Qe.length?Qe:$t}function Jn(un){function ti(Oo){return" "+Oo.nodeName+'="'+f(Oo.value)+'"'}kr+="<"+ar(un)+[].map.call(un.attributes,ti).join("")+">"}function Ea(un){kr+=""}function Zn(un){(un.event==="start"?Jn:Ea)(un.node)}for(;Qe.length||$t.length;){let un=Wr();if(kr+=f(Pt.substring(rn,un[0].offset)),rn=un[0].offset,un===Qe){An.reverse().forEach(Ea);do Zn(un.splice(0,1)[0]),un=Wr();while(un===Qe&&un.length&&un[0].offset===rn);An.reverse().forEach(Jn)}else un[0].event==="start"?An.push(un[0].node):An.pop(),Zn(un.splice(0,1)[0])}return kr+f(Pt.substr(rn))})(Fe,Tt(St),Ee)}};function ar(ne){return ne.nodeName.toLowerCase()}function Tt(ne){const ye=[];return(function Ee(Fe,St){for(let Bt=Fe.firstChild;Bt;Bt=Bt.nextSibling)Bt.nodeType===3?St+=Bt.nodeValue.length:Bt.nodeType===1&&(ye.push({event:"start",offset:St,node:Bt}),St=Ee(Bt,St),ar(Bt).match(/br|hr|img|input/)||ye.push({event:"stop",offset:St,node:Bt}));return St})(ne,0),ye}const Gt={},Sr=ne=>{console.error(ne)},kt=(ne,...ye)=>{console.log(`WARN: ${ne}`,...ye)},yt=(ne,ye)=>{Gt[`${ne}/${ye}`]||(console.log(`Deprecated as of ${ne}. ${ye}`),Gt[`${ne}/${ye}`]=!0)},Zt=f,pe=y,U=Symbol("nomatch");var Z=(function(ne){const ye=Object.create(null),Ee=Object.create(null),Fe=[];let St=!0;const Bt=/(^(<[^>]+>|\t|)+|\n)/gm,Qe="Could not find the language '{}', did you forget to load/include a language module?",$t={disableAutodetect:!0,name:"Plain text",contains:[]};let Pt={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:_};function rn(sr){return Pt.noHighlightRe.test(sr)}function kr(sr,br,tn,Cr){let Mr="",Nn="";typeof br=="object"?(Mr=sr,tn=br.ignoreIllegals,Nn=br.language,Cr=void 0):(yt("10.7.0","highlight(lang, code, ...args) has been deprecated."),yt("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),Nn=sr,Mr=br);const nn={code:Mr,language:Nn};ds("before:highlight",nn);const fn=nn.result?nn.result:An(nn.language,nn.code,tn,Cr);return fn.code=nn.code,ds("after:highlight",fn),fn}function An(sr,br,tn,Cr){function Mr(Yt,gr){const mr=ea.case_insensitive?gr[0].toLowerCase():gr[0];return Object.prototype.hasOwnProperty.call(Yt.keywords,mr)&&Yt.keywords[mr]}function Nn(){Rr.subLanguage!=null?(function(){if(xn==="")return;let gr=null;if(typeof Rr.subLanguage=="string"){if(!ye[Rr.subLanguage])return void Nr.addText(xn);gr=An(Rr.subLanguage,xn,!0,ko[Rr.subLanguage]),ko[Rr.subLanguage]=gr.top}else gr=Wr(xn,Rr.subLanguage.length?Rr.subLanguage:null);Rr.relevance>0&&(fi+=gr.relevance),Nr.addSublanguage(gr.emitter,gr.language)})():(function(){if(!Rr.keywords)return void Nr.addText(xn);let gr=0;Rr.keywordPatternRe.lastIndex=0;let mr=Rr.keywordPatternRe.exec(xn),Vr="";for(;mr;){Vr+=xn.substring(gr,mr.index);const Gr=Mr(Rr,mr);if(Gr){const[sa,Sa]=Gr;if(Nr.addText(Vr),Vr="",fi+=Sa,sa.startsWith("_"))Vr+=mr[0];else{const Ja=ea.classNameAliases[sa]||sa;Nr.addKeyword(mr[0],Ja)}}else Vr+=mr[0];gr=Rr.keywordPatternRe.lastIndex,mr=Rr.keywordPatternRe.exec(xn)}Vr+=xn.substr(gr),Nr.addText(Vr)})(),xn=""}function nn(Yt){return Yt.className&&Nr.openNode(ea.classNameAliases[Yt.className]||Yt.className),Rr=Object.create(Yt,{parent:{value:Rr}}),Rr}function fn(Yt,gr,mr){let Vr=(function(sa,Sa){const Ja=sa&&sa.exec(Sa);return Ja&&Ja.index===0})(Yt.endRe,mr);if(Vr){if(Yt["on:end"]){const Gr=new v(Yt);Yt["on:end"](gr,Gr),Gr.isMatchIgnored&&(Vr=!1)}if(Vr){for(;Yt.endsParent&&Yt.parent;)Yt=Yt.parent;return Yt}}if(Yt.endsWithParent)return fn(Yt.parent,gr,mr)}function Ln(Yt){return Rr.matcher.regexIndex===0?(xn+=Yt[0],1):(ms=!0,0)}function Hr(Yt){const gr=Yt[0],mr=Yt.rule,Vr=new v(mr),Gr=[mr.__beforeBegin,mr["on:begin"]];for(const sa of Gr)if(sa&&(sa(Yt,Vr),Vr.isMatchIgnored))return Ln(gr);return mr&&mr.endSameAsBegin&&(mr.endRe=(function(Sa){return new RegExp(Sa.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")})(gr)),mr.skip?xn+=gr:(mr.excludeBegin&&(xn+=gr),Nn(),mr.returnBegin||mr.excludeBegin||(xn=gr)),nn(mr),mr.returnBegin?0:gr.length}function ia(Yt){const gr=Yt[0],mr=br.substr(Yt.index),Vr=fn(Rr,Yt,mr);if(!Vr)return U;const Gr=Rr;Gr.skip?xn+=gr:(Gr.returnEnd||Gr.excludeEnd||(xn+=gr),Nn(),Gr.excludeEnd&&(xn=gr));do Rr.className&&Nr.closeNode(),Rr.skip||Rr.subLanguage||(fi+=Rr.relevance),Rr=Rr.parent;while(Rr!==Vr.parent);return Vr.starts&&(Vr.endSameAsBegin&&(Vr.starts.endRe=Vr.endRe),nn(Vr.starts)),Gr.returnEnd?0:gr.length}let za={};function fs(Yt,gr){const mr=gr&&gr[0];if(xn+=Yt,mr==null)return Nn(),0;if(za.type==="begin"&&gr.type==="end"&&za.index===gr.index&&mr===""){if(xn+=br.slice(gr.index,gr.index+1),!St){const Vr=new Error("0 width match regex");throw Vr.languageName=sr,Vr.badRule=za.rule,Vr}return 1}if(za=gr,gr.type==="begin")return Hr(gr);if(gr.type==="illegal"&&!tn){const Vr=new Error('Illegal lexeme "'+mr+'" for mode "'+(Rr.className||"")+'"');throw Vr.mode=Rr,Vr}if(gr.type==="end"){const Vr=ia(gr);if(Vr!==U)return Vr}if(gr.type==="illegal"&&mr==="")return 1;if(Jo>1e5&&Jo>3*gr.index)throw new Error("potential infinite loop, way more iterations than matches");return xn+=mr,mr.length}const ea=Fn(sr);if(!ea)throw Sr(Qe.replace("{}",sr)),new Error('Unknown language: "'+sr+'"');const di=we(ea,{plugins:Fe});let Va="",Rr=Cr||di;const ko={},Nr=new Pt.__emitter(Pt);(function(){const gr=[];for(let mr=Rr;mr!==ea;mr=mr.parent)mr.className&&gr.unshift(mr.className);gr.forEach((mr=>Nr.openNode(mr)))})();let xn="",fi=0,ta=0,Jo=0,ms=!1;try{for(Rr.matcher.considerAll();;){Jo++,ms?ms=!1:Rr.matcher.considerAll(),Rr.matcher.lastIndex=ta;const Yt=Rr.matcher.exec(br);if(!Yt)break;const gr=fs(br.substring(ta,Yt.index),Yt);ta=Yt.index+gr}return fs(br.substr(ta)),Nr.closeAllNodes(),Nr.finalize(),Va=Nr.toHTML(),{relevance:Math.floor(fi),value:Va,language:sr,illegal:!1,emitter:Nr,top:Rr}}catch(Yt){if(Yt.message&&Yt.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:Yt.message,context:br.slice(ta-100,ta+100),mode:Yt.mode},sofar:Va,relevance:0,value:Zt(br),emitter:Nr};if(St)return{illegal:!1,relevance:0,value:Zt(br),emitter:Nr,language:sr,top:Rr,errorRaised:Yt};throw Yt}}function Wr(sr,br){br=br||Pt.languages||Object.keys(ye);const tn=(function(Hr){const ia={relevance:0,emitter:new Pt.__emitter(Pt),value:Zt(Hr),illegal:!1,top:$t};return ia.emitter.addText(Hr),ia})(sr),Cr=br.filter(Fn).filter(Vo).map((Ln=>An(Ln,sr,!1)));Cr.unshift(tn);const Mr=Cr.sort(((Ln,Hr)=>{if(Ln.relevance!==Hr.relevance)return Hr.relevance-Ln.relevance;if(Ln.language&&Hr.language){if(Fn(Ln.language).supersetOf===Hr.language)return 1;if(Fn(Hr.language).supersetOf===Ln.language)return-1}return 0})),[Nn,nn]=Mr,fn=Nn;return fn.second_best=nn,fn}const Jn={"before:highlightElement":({el:sr})=>{Pt.useBR&&(sr.innerHTML=sr.innerHTML.replace(/\n/g,"").replace(//g,` +`))},"after:highlightElement":({result:sr})=>{Pt.useBR&&(sr.value=sr.value.replace(/\n/g,"
    "))}},Ea=/^(<[^>]+>|\t)+/gm,Zn={"after:highlightElement":({result:sr})=>{Pt.tabReplace&&(sr.value=sr.value.replace(Ea,(br=>br.replace(/\t/g,Pt.tabReplace))))}};function un(sr){let br=null;const tn=(function(nn){let fn=nn.className+" ";fn+=nn.parentNode?nn.parentNode.className:"";const Ln=Pt.languageDetectRe.exec(fn);if(Ln){const Hr=Fn(Ln[1]);return Hr||(kt(Qe.replace("{}",Ln[1])),kt("Falling back to no-highlight mode for this block.",nn)),Hr?Ln[1]:"no-highlight"}return fn.split(/\s+/).find((Hr=>rn(Hr)||Fn(Hr)))})(sr);if(rn(tn))return;ds("before:highlightElement",{el:sr,language:tn}),br=sr;const Cr=br.textContent,Mr=tn?kr(Cr,{language:tn,ignoreIllegals:!0}):Wr(Cr);ds("after:highlightElement",{el:sr,result:Mr,text:Cr}),sr.innerHTML=Mr.value,(function(nn,fn,Ln){const Hr=fn?Ee[fn]:Ln;nn.classList.add("hljs"),Hr&&nn.classList.add(Hr)})(sr,tn,Mr.language),sr.result={language:Mr.language,re:Mr.relevance,relavance:Mr.relevance},Mr.second_best&&(sr.second_best={language:Mr.second_best.language,re:Mr.second_best.relevance,relavance:Mr.second_best.relevance})}const ti=()=>{ti.called||(ti.called=!0,yt("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(un))};let Oo=!1;function Li(){if(document.readyState==="loading")return void(Oo=!0);document.querySelectorAll("pre code").forEach(un)}function Fn(sr){return sr=(sr||"").toLowerCase(),ye[sr]||ye[Ee[sr]]}function zo(sr,{languageName:br}){typeof sr=="string"&&(sr=[sr]),sr.forEach((tn=>{Ee[tn.toLowerCase()]=br}))}function Vo(sr){const br=Fn(sr);return br&&!br.disableAutodetect}function ds(sr,br){const tn=sr;Fe.forEach((function(Cr){Cr[tn]&&Cr[tn](br)}))}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){Oo&&Li()}),!1),Object.assign(ne,{highlight:kr,highlightAuto:Wr,highlightAll:Li,fixMarkup:function(br){return yt("10.2.0","fixMarkup will be removed entirely in v11.0"),yt("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),(function(Cr){return Pt.tabReplace||Pt.useBR?Cr.replace(Bt,(Mr=>Mr===` +`?Pt.useBR?"
    ":Mr:Pt.tabReplace?Mr.replace(/\t/g,Pt.tabReplace):Mr)):Cr})(br)},highlightElement:un,highlightBlock:function(br){return yt("10.7.0","highlightBlock will be removed entirely in v12.0"),yt("10.7.0","Please use highlightElement now."),un(br)},configure:function(br){br.useBR&&(yt("10.3.0","'useBR' will be removed entirely in v11.0"),yt("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Pt=pe(Pt,br)},initHighlighting:ti,initHighlightingOnLoad:function(){yt("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),Oo=!0},registerLanguage:function(br,tn){let Cr=null;try{Cr=tn(ne)}catch(Mr){if(Sr("Language definition for '{}' could not be registered.".replace("{}",br)),!St)throw Mr;Sr(Mr),Cr=$t}Cr.name||(Cr.name=br),ye[br]=Cr,Cr.rawDefinition=tn.bind(null,ne),Cr.aliases&&zo(Cr.aliases,{languageName:br})},unregisterLanguage:function(br){delete ye[br];for(const tn of Object.keys(Ee))Ee[tn]===br&&delete Ee[tn]},listLanguages:function(){return Object.keys(ye)},getLanguage:Fn,registerAliases:zo,requireLanguage:function(br){yt("10.4.0","requireLanguage will be removed entirely in v11."),yt("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const tn=Fn(br);if(tn)return tn;throw new Error("The '{}' language is required, but not loaded.".replace("{}",br))},autoDetection:Vo,inherit:pe,addPlugin:function(br){(function(Cr){Cr["before:highlightBlock"]&&!Cr["before:highlightElement"]&&(Cr["before:highlightElement"]=Mr=>{Cr["before:highlightBlock"](Object.assign({block:Mr.el},Mr))}),Cr["after:highlightBlock"]&&!Cr["after:highlightElement"]&&(Cr["after:highlightElement"]=Mr=>{Cr["after:highlightBlock"](Object.assign({block:Mr.el},Mr))})})(br),Fe.push(br)},vuePlugin:mt(ne).VuePlugin}),ne.debugMode=function(){St=!1},ne.safeMode=function(){St=!0},ne.versionString="10.7.3";for(const sr in at)typeof at[sr]=="object"&&s(at[sr]);return Object.assign(ne,at),ne.addPlugin(Jn),ne.addPlugin(ur),ne.addPlugin(Zn),ne})({});w.exports=Z},35344(w){function N(...s){return s.map((h=>(function(f){return f?typeof f=="string"?f:f.source:null})(h))).join("")}w.exports=function(h){const v={},f={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[v]}]};Object.assign(v,{className:"variable",variants:[{begin:N(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},f]});const y={className:"subst",begin:/\$\(/,end:/\)/,contains:[h.BACKSLASH_ESCAPE]},m={begin:/<<-?\s*(?=\w+)/,starts:{contains:[h.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[h.BACKSLASH_ESCAPE,v,y]};y.contains.push(g);const S={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},h.NUMBER_MODE,v]},_=h.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),T={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[h.inherit(h.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[_,h.SHEBANG(),T,S,h.HASH_COMMENT_MODE,m,g,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},v]}}},73402(w){function N(...s){return s.map((h=>(function(f){return f?typeof f=="string"?f:f.source:null})(h))).join("")}w.exports=function(h){const v="HTTP/(2|1\\.[01])",f={className:"attribute",begin:N("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},y=[f,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+v+" \\d{3})",end:/$/,contains:[{className:"meta",begin:v},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:y}},{begin:"(?=^[A-Z]+ (.*?) "+v+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:v},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:y}},h.inherit(f,{relevance:0})]}}},95089(w){const N="[A-Za-z$_][0-9A-Za-z$_]*",s=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],h=["true","false","null","undefined","NaN","Infinity"],v=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function f(m){return y("(?=",m,")")}function y(...m){return m.map((g=>(function(_){return _?typeof _=="string"?_:_.source:null})(g))).join("")}w.exports=function(g){const S=N,_="<>",T="",I={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Ve,He)=>{const qe=Ve[0].length+Ve.index,nt=Ve.input[qe];nt!=="<"?nt===">"&&(((gt,{after:Re})=>{const u="",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:g.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:j,contains:ge}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:_,end:T},{begin:I.begin,"on:begin":I.isTrulyOpeningTag,end:I.end}],subLanguage:"xml",contains:[{begin:I.begin,end:I.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:j,contains:["self",g.inherit(g.TITLE_MODE,{begin:S}),ke],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:g.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[ke,g.inherit(g.TITLE_MODE,{begin:S})]},{variants:[{begin:"\\."+S},{begin:"\\$"+S}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},g.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[g.inherit(g.TITLE_MODE,{begin:S}),"self",ke]},{begin:"(get|set)\\s+(?="+S+"\\()",end:/\{/,keywords:"get set",contains:[g.inherit(g.TITLE_MODE,{begin:S}),{begin:/\(\)/},ke]},{begin:/\$[(.]/}]}}},65772(w){w.exports=function(s){const h={literal:"true false null"},v=[s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE],f=[s.QUOTE_STRING_MODE,s.C_NUMBER_MODE],y={end:",",endsWithParent:!0,excludeEnd:!0,contains:f,keywords:h},m={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[s.BACKSLASH_ESCAPE],illegal:"\\n"},s.inherit(y,{begin:/:/})].concat(v),illegal:"\\S"},g={begin:"\\[",end:"\\]",contains:[s.inherit(y)],illegal:"\\S"};return f.push(m,g),v.forEach((function(S){f.push(S)})),{name:"JSON",contains:f,keywords:h,illegal:"\\S"}}},26571(w){w.exports=function(s){const h={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},v={begin:"`[\\s\\S]",relevance:0},f={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},y={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[v,f,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},m={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},g=s.inherit(s.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),S={className:"built_in",variants:[{begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+")}]},_={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[s.TITLE_MODE]},T={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[f]}]},I={begin:/using\s/,end:/$/,returnBegin:!0,contains:[y,m,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},j={variants:[{className:"operator",begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},M={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(h.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},s.inherit(s.TITLE_MODE,{endsParent:!0})]},z=[M,g,v,s.NUMBER_MODE,y,m,S,f,{className:"literal",begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0}],K={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",z,{begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return M.contains.unshift(K),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:h,contains:z.concat(_,T,I,j,K)}}},17285(w){function N(f){return f?typeof f=="string"?f:f.source:null}function s(f){return h("(?=",f,")")}function h(...f){return f.map((y=>N(y))).join("")}function v(...f){return"("+f.map((y=>N(y))).join("|")+")"}w.exports=function(y){const m=h(/[A-Z_]/,(function(z){return h("(",z,")?")})(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),g={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},S={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},_=y.inherit(S,{begin:/\(/,end:/\)/}),T=y.inherit(y.APOS_STRING_MODE,{className:"meta-string"}),I=y.inherit(y.QUOTE_STRING_MODE,{className:"meta-string"}),j={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[S,I,T,_,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[S,_,I,T]}]}]},y.COMMENT(//,{relevance:10}),{begin://,relevance:10},g,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[j],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[j],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:h(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:m,relevance:0,starts:j}]},{className:"tag",begin:h(/<\//,s(h(m,/>/))),contains:[{className:"name",begin:m,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}},17533(w){w.exports=function(s){var h="true false yes no null",v="[\\w#;/?:@&=+$,.~*'()[\\]]+",f={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[s.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},y=s.inherit(f,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),m={className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},g={end:",",endsWithParent:!0,excludeEnd:!0,keywords:h,relevance:0},S={begin:/\{/,end:/\}/,contains:[g],illegal:"\\n",relevance:0},_={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},T=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+v},{className:"type",begin:"!<"+v+">"},{className:"type",begin:"!"+v},{className:"type",begin:"!!"+v},{className:"meta",begin:"&"+s.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+s.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},s.HASH_COMMENT_MODE,{beginKeywords:h,keywords:{literal:h}},m,{className:"number",begin:s.C_NUMBER_RE+"\\b",relevance:0},S,_,f],I=[...T];return I.pop(),I.push(y),g.contains=I,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:T}}},251(w,N){N.read=function(s,h,v,f,y){var m,g,S=8*y-f-1,_=(1<>1,I=-7,j=v?y-1:0,M=v?-1:1,z=s[h+j];for(j+=M,m=z&(1<<-I)-1,z>>=-I,I+=S;I>0;m=256*m+s[h+j],j+=M,I-=8);for(g=m&(1<<-I)-1,m>>=-I,I+=f;I>0;g=256*g+s[h+j],j+=M,I-=8);if(m===0)m=1-T;else{if(m===_)return g?NaN:1/0*(z?-1:1);g+=Math.pow(2,f),m-=T}return(z?-1:1)*g*Math.pow(2,m-f)},N.write=function(s,h,v,f,y,m){var g,S,_,T=8*m-y-1,I=(1<>1,M=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,z=f?0:m-1,K=f?1:-1,Y=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(S=isNaN(h)?1:0,g=I):(g=Math.floor(Math.log(h)/Math.LN2),h*(_=Math.pow(2,-g))<1&&(g--,_*=2),(h+=g+j>=1?M/_:M*Math.pow(2,1-j))*_>=2&&(g++,_/=2),g+j>=I?(S=0,g=I):g+j>=1?(S=(h*_-1)*Math.pow(2,y),g+=j):(S=h*Math.pow(2,j-1)*Math.pow(2,y),g=0));y>=8;s[v+z]=255&S,z+=K,S/=256,y-=8);for(g=g<0;s[v+z]=255&g,z+=K,g/=256,T-=8);s[v+z-K]|=128*Y}},49568(w,N,s){s.r(N),s.d(N,{Collection:()=>he,Iterable:()=>ip,List:()=>Wo,Map:()=>vi,OrderedMap:()=>Ra,OrderedSet:()=>Da,PairSorting:()=>cc,Range:()=>zi,Record:()=>jn,Repeat:()=>vl,Seq:()=>ar,Set:()=>No,Stack:()=>ul,default:()=>sp,fromJS:()=>Zc,get:()=>Ia,getIn:()=>lc,has:()=>Wa,hasIn:()=>ml,hash:()=>kr,is:()=>Qe,isAssociative:()=>Te,isCollection:()=>B,isImmutable:()=>Re,isIndexed:()=>se,isKeyed:()=>te,isList:()=>Bi,isMap:()=>Fe,isOrdered:()=>at,isOrderedMap:()=>St,isOrderedSet:()=>pl,isPlainObject:()=>sa,isRecord:()=>gt,isSeq:()=>qe,isSet:()=>Ui,isStack:()=>cl,isValueObject:()=>Bt,merge:()=>nc,mergeDeep:()=>Ku,mergeDeepWith:()=>$c,mergeWith:()=>Hu,remove:()=>gs,removeIn:()=>Zl,set:()=>ys,setIn:()=>Wu,update:()=>Ao,updateIn:()=>lo,version:()=>tu});var h="delete",v=32,f=31,y={};function m(A){A&&(A.value=!0)}function g(){}function S(A){return A.size===void 0&&(A.size=A.__iterate(T)),A.size}function _(A,O){if(typeof O!="number"){var D=O>>>0;if(""+D!==O||D===4294967295)return NaN;O=D}return O<0?S(A)+O:O}function T(){return!0}function I(A,O,D){return(A===0&&!K(A)||D!==void 0&&A<=-D)&&(O===void 0||D!==void 0&&O>=D)}function j(A,O){return z(A,O,0)}function M(A,O){return z(A,O,O)}function z(A,O,D){return A===void 0?D:K(A)?O===1/0?O:0|Math.max(0,O+A):O===void 0||O===A?A:0|Math.min(O,A)}function K(A){return A<0||A===0&&1/A==-1/0}var Y="@@__IMMUTABLE_ITERABLE__@@";function B(A){return!!(A&&A[Y])}var X="@@__IMMUTABLE_KEYED__@@";function te(A){return!!(A&&A[X])}var ie="@@__IMMUTABLE_INDEXED__@@";function se(A){return!!(A&&A[ie])}function Te(A){return te(A)||se(A)}var he=function(O){return B(O)?O:ar(O)},ge=(function(A){function O(D){return te(D)?D:Tt(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O})(he),ke=(function(A){function O(D){return se(D)?D:Gt(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O})(he),Ve=(function(A){function O(D){return B(D)&&!Te(D)?D:Sr(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O})(he);he.Keyed=ge,he.Indexed=ke,he.Set=Ve;var He="@@__IMMUTABLE_SEQ__@@";function qe(A){return!!(A&&A[He])}var nt="@@__IMMUTABLE_RECORD__@@";function gt(A){return!!(A&&A[nt])}function Re(A){return B(A)||gt(A)}var u="@@__IMMUTABLE_ORDERED__@@";function at(A){return!!(A&&A[u])}var Xe=typeof Symbol=="function"&&Symbol.iterator,Se="@@iterator",De=Xe||Se,Ke=function(O){this.next=O};function ft(A,O,D,F){var q=A===0?O:A===1?D:[O,D];return F?F.value=q:F={value:q,done:!1},F}function Nt(){return{value:void 0,done:!0}}function Wt(A){return!!Array.isArray(A)||!!ct(A)}function H(A){return A&&typeof A.next=="function"}function we(A){var O=ct(A);return O&&O.call(A)}function ct(A){var O=A&&(Xe&&A[Xe]||A[Se]);if(typeof O=="function")return O}Ke.prototype.toString=function(){return"[Iterator]"},Ke.KEYS=0,Ke.VALUES=1,Ke.ENTRIES=2,Ke.prototype.inspect=Ke.prototype.toSource=function(){return this.toString()},Ke.prototype[De]=function(){return this};var mt=Object.prototype.hasOwnProperty;function ur(A){return!(!Array.isArray(A)&&typeof A!="string")||A&&typeof A=="object"&&Number.isInteger(A.length)&&A.length>=0&&(A.length===0?Object.keys(A).length===1:A.hasOwnProperty(A.length-1))}var ar=(function(A){function O(D){return D==null?U():Re(D)?D.toSeq():(function(q){var ae=ye(q);if(ae)return(function(fe){var Pe=ct(fe);return Pe&&Pe===fe.entries})(q)?ae.fromEntrySeq():(function(fe){var Pe=ct(fe);return Pe&&Pe===fe.keys})(q)?ae.toSetSeq():ae;if(typeof q=="object")return new yt(q);throw new TypeError("Expected Array or collection object of values, or keyed object: "+q)})(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.toSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq {","}")},O.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},O.prototype.__iterate=function(F,q){var ae=this._cache;if(ae){for(var oe=ae.length,fe=0;fe!==oe;){var Pe=ae[q?oe-++fe:fe++];if(F(Pe[1],Pe[0],this)===!1)break}return fe}return this.__iterateUncached(F,q)},O.prototype.__iterator=function(F,q){var ae=this._cache;if(ae){var oe=ae.length,fe=0;return new Ke((function(){if(fe===oe)return{value:void 0,done:!0};var Pe=ae[q?oe-++fe:fe++];return ft(F,Pe[0],Pe[1])}))}return this.__iteratorUncached(F,q)},O})(he),Tt=(function(A){function O(D){return D==null?U().toKeyedSeq():B(D)?te(D)?D.toSeq():D.fromEntrySeq():gt(D)?D.toSeq():Z(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.toKeyedSeq=function(){return this},O})(ar),Gt=(function(A){function O(D){return D==null?U():B(D)?te(D)?D.entrySeq():D.toIndexedSeq():gt(D)?D.toSeq().entrySeq():ne(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return O(arguments)},O.prototype.toIndexedSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq [","]")},O})(ar),Sr=(function(A){function O(D){return(B(D)&&!Te(D)?D:Gt(D)).toSetSeq()}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return O(arguments)},O.prototype.toSetSeq=function(){return this},O})(ar);ar.isSeq=qe,ar.Keyed=Tt,ar.Set=Sr,ar.Indexed=Gt,ar.prototype[He]=!0;var kt=(function(A){function O(D){this._array=D,this.size=D.length}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.get=function(F,q){return this.has(F)?this._array[_(this,F)]:q},O.prototype.__iterate=function(F,q){for(var ae=this._array,oe=ae.length,fe=0;fe!==oe;){var Pe=q?oe-++fe:fe++;if(F(ae[Pe],Pe,this)===!1)break}return fe},O.prototype.__iterator=function(F,q){var ae=this._array,oe=ae.length,fe=0;return new Ke((function(){if(fe===oe)return{value:void 0,done:!0};var Pe=q?oe-++fe:fe++;return ft(F,Pe,ae[Pe])}))},O})(Gt),yt=(function(A){function O(D){var F=Object.keys(D).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(D):[]);this._object=D,this._keys=F,this.size=F.length}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.get=function(F,q){return q===void 0||this.has(F)?this._object[F]:q},O.prototype.has=function(F){return mt.call(this._object,F)},O.prototype.__iterate=function(F,q){for(var ae=this._object,oe=this._keys,fe=oe.length,Pe=0;Pe!==fe;){var ze=oe[q?fe-++Pe:Pe++];if(F(ae[ze],ze,this)===!1)break}return Pe},O.prototype.__iterator=function(F,q){var ae=this._object,oe=this._keys,fe=oe.length,Pe=0;return new Ke((function(){if(Pe===fe)return{value:void 0,done:!0};var ze=oe[q?fe-++Pe:Pe++];return ft(F,ze,ae[ze])}))},O})(Tt);yt.prototype[u]=!0;var Zt,pe=(function(A){function O(D){this._collection=D,this.size=D.length||D.size}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.prototype.__iterateUncached=function(F,q){if(q)return this.cacheResult().__iterate(F,q);var ae=we(this._collection),oe=0;if(H(ae))for(var fe;!(fe=ae.next()).done&&F(fe.value,oe++,this)!==!1;);return oe},O.prototype.__iteratorUncached=function(F,q){if(q)return this.cacheResult().__iterator(F,q);var ae=we(this._collection);if(!H(ae))return new Ke(Nt);var oe=0;return new Ke((function(){var fe=ae.next();return fe.done?fe:ft(F,oe++,fe.value)}))},O})(Gt);function U(){return Zt||(Zt=new kt([]))}function Z(A){var O=ye(A);if(O)return O.fromEntrySeq();if(typeof A=="object")return new yt(A);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+A)}function ne(A){var O=ye(A);if(O)return O;throw new TypeError("Expected Array or collection object of values: "+A)}function ye(A){return ur(A)?new kt(A):Wt(A)?new pe(A):void 0}var Ee="@@__IMMUTABLE_MAP__@@";function Fe(A){return!!(A&&A[Ee])}function St(A){return Fe(A)&&at(A)}function Bt(A){return!!(A&&typeof A.equals=="function"&&typeof A.hashCode=="function")}function Qe(A,O){if(A===O||A!=A&&O!=O)return!0;if(!A||!O)return!1;if(typeof A.valueOf=="function"&&typeof O.valueOf=="function"){if((A=A.valueOf())===(O=O.valueOf())||A!=A&&O!=O)return!0;if(!A||!O)return!1}return!!(Bt(A)&&Bt(O)&&A.equals(O))}var $t=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(O,D){var F=65535&(O|=0),q=65535&(D|=0);return F*q+((O>>>16)*q+F*(D>>>16)<<16>>>0)|0};function Pt(A){return A>>>1&1073741824|3221225471&A}var rn=Object.prototype.valueOf;function kr(A){if(A==null)return An(A);if(typeof A.hashCode=="function")return Pt(A.hashCode(A));var O=(function(F){return F.valueOf!==rn&&typeof F.valueOf=="function"?F.valueOf(F):F})(A);if(O==null)return An(O);switch(typeof O){case"boolean":return O?1108378657:1108378656;case"number":return(function(F){if(F!=F||F===1/0)return 0;var q=0|F;for(q!==F&&(q^=4294967295*F);F>4294967295;)q^=F/=4294967295;return Pt(q)})(O);case"string":return O.length>ds?(function(F){var q=tn[F];return q===void 0&&(q=Wr(F),br===sr&&(br=0,tn={}),br++,tn[F]=q),q})(O):Wr(O);case"object":case"function":return(function(F){var q;if(Li&&(q=Oo.get(F))!==void 0||(q=F[Vo])!==void 0||!un&&((q=F.propertyIsEnumerable&&F.propertyIsEnumerable[Vo])!==void 0||(q=(function(oe){if(oe&&oe.nodeType>0)switch(oe.nodeType){case 1:return oe.uniqueID;case 9:return oe.documentElement&&oe.documentElement.uniqueID}})(F))!==void 0))return q;if(q=ti(),Li)Oo.set(F,q);else{if(Zn!==void 0&&Zn(F)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(un)Object.defineProperty(F,Vo,{enumerable:!1,configurable:!1,writable:!1,value:q});else if(F.propertyIsEnumerable!==void 0&&F.propertyIsEnumerable===F.constructor.prototype.propertyIsEnumerable)F.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},F.propertyIsEnumerable[Vo]=q;else{if(F.nodeType===void 0)throw new Error("Unable to set a non-enumerable property on object.");F[Vo]=q}}return q})(O);case"symbol":return(function(F){var q=Fn[F];return q!==void 0||(q=ti(),Fn[F]=q),q})(O);default:if(typeof O.toString=="function")return Wr(O.toString());throw new Error("Value type "+typeof O+" cannot be hashed.")}}function An(A){return A===null?1108378658:1108378659}function Wr(A){for(var O=0,D=0;D=0&&(Pe.get=function(ze,tt){return(ze=_(this,ze))>=0&&zeae)return{value:void 0,done:!0};var vr=At.next();return F||ze===1||vr.done?vr:ft(ze,lr-1,ze===0?void 0:vr.value[1],vr)}))},Pe}function fs(A,O,D,F){var q=ta(A);return q.__iterateUncached=function(ae,oe){var fe=this;if(oe)return this.cacheResult().__iterate(ae,oe);var Pe=!0,ze=0;return A.__iterate((function(tt,At,Rt){if(!Pe||!(Pe=O.call(D,tt,At,Rt)))return ze++,ae(tt,F?At:ze-1,fe)})),ze},q.__iteratorUncached=function(ae,oe){var fe=this;if(oe)return this.cacheResult().__iterator(ae,oe);var Pe=A.__iterator(2,oe),ze=!0,tt=0;return new Ke((function(){var At,Rt,lr;do{if((At=Pe.next()).done)return F||ae===1?At:ft(ae,tt++,ae===0?void 0:At.value[1],At);var vr=At.value;Rt=vr[0],lr=vr[1],ze&&(ze=O.call(D,lr,Rt,fe))}while(ze);return ae===2?At:ft(ae,Rt,lr,At)}))},q}function ea(A,O,D){var F=ta(A);return F.__iterateUncached=function(q,ae){if(ae)return this.cacheResult().__iterate(q,ae);var oe=0,fe=!1;return(function Pe(ze,tt){ze.__iterate((function(At,Rt){return(!O||tt0}function ko(A,O,D,F){var q=ta(A),ae=new kt(D).map((function(oe){return oe.size}));return q.size=F?ae.max():ae.min(),q.__iterate=function(oe,fe){for(var Pe,ze=this.__iterator(1,fe),tt=0;!(Pe=ze.next()).done&&oe(Pe.value,tt++,this)!==!1;);return tt},q.__iteratorUncached=function(oe,fe){var Pe=D.map((function(At){return At=he(At),we(fe?At.reverse():At)})),ze=0,tt=!1;return new Ke((function(){var At;return tt||(At=Pe.map((function(Rt){return Rt.next()})),tt=F?At.every((function(Rt){return Rt.done})):At.some((function(Rt){return Rt.done}))),tt?{value:void 0,done:!0}:ft(oe,ze++,O.apply(null,At.map((function(Rt){return Rt.value}))))}))},q}function Nr(A,O){return A===O?A:qe(A)?O:A.constructor(O)}function xn(A){if(A!==Object(A))throw new TypeError("Expected [K, V] tuple: "+A)}function fi(A){return te(A)?ge:se(A)?ke:Ve}function ta(A){return Object.create((te(A)?Tt:se(A)?Gt:Sr).prototype)}function Jo(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ar.prototype.cacheResult.call(this)}function ms(A,O){return A===void 0&&O===void 0?0:A===void 0?1:O===void 0?-1:A>O?1:A0;)O[D]=arguments[D+1];if(typeof A!="function")throw new TypeError("Invalid merger function: "+A);return Zs(this,O,A)}function Zs(A,O,D){for(var F=[],q=0;q0;)O[D]=arguments[D+1];return Co(A,O)}function Hu(A,O){for(var D=[],F=arguments.length-2;F-- >0;)D[F]=arguments[F+2];return Co(O,D,A)}function Ku(A){for(var O=[],D=arguments.length-1;D-- >0;)O[D]=arguments[D+1];return $i(A,O)}function $c(A,O){for(var D=[],F=arguments.length-2;F-- >0;)D[F]=arguments[F+2];return $i(O,D,A)}function $i(A,O,D){return Co(A,O,(function(q){function ae(oe,fe,Pe){return Sa(oe)&&Sa(fe)&&(function(tt,At){var Rt=ar(tt),lr=ar(At);return se(Rt)===se(lr)&&te(Rt)===te(lr)})(oe,fe)?Co(oe,[fe],ae):q?q(oe,fe,Pe):fe}return ae})(D))}function Co(A,O,D){if(!Sa(A))throw new TypeError("Cannot merge into non-data-structure value: "+A);if(Re(A))return typeof D=="function"&&A.mergeWith?A.mergeWith.apply(A,[D].concat(O)):A.merge?A.merge.apply(A,O):A.concat.apply(A,O);for(var F=Array.isArray(A),q=A,ae=F?ke:ge,oe=F?function(Pe){q===A&&(q=Xl(q)),q.push(Pe)}:function(Pe,ze){if(!Yl(ze)){var tt=mt.call(q,ze),At=tt&&D?D(q[ze],Pe,ze):Pe;tt&&At===q[ze]||(q===A&&(q=Xl(q)),q[ze]=At)}},fe=0;fe0;)O[D]=arguments[D+1];return $i(this,O,A)}function bs(A){for(var O=[],D=arguments.length-1;D-- >0;)O[D]=arguments[D+1];return lo(this,A,co(),(function(F){return Co(F,O)}))}function ws(A){for(var O=[],D=arguments.length-1;D-- >0;)O[D]=arguments[D+1];return lo(this,A,co(),(function(F){return $i(F,O)}))}function jo(A){var O=this.asMutable();return A(O),O.wasAltered()?O.__ensureOwner(this.__ownerID):this}function ac(){return this.__ownerID?this:this.__ensureOwner(new g)}function el(){return this.__ensureOwner()}function Es(){return this.__altered}var vi=(function(A){function O(D){return D==null?co():Fe(D)&&!at(D)?D:co().withMutations((function(F){var q=A(D);mr(q.size),q.forEach((function(ae,oe){return F.set(oe,ae)}))}))}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){for(var F=[],q=arguments.length;q--;)F[q]=arguments[q];return co().withMutations((function(ae){for(var oe=0;oe=F.length)throw new Error("Missing value for key: "+F[oe]);ae.set(F[oe],F[oe+1])}}))},O.prototype.toString=function(){return this.__toString("Map {","}")},O.prototype.get=function(F,q){return this._root?this._root.get(0,void 0,F,q):q},O.prototype.set=function(F,q){return nl(this,F,q)},O.prototype.remove=function(F){return nl(this,F,y)},O.prototype.deleteAll=function(F){var q=he(F);return q.size===0?this:this.withMutations((function(ae){q.forEach((function(oe){return ae.remove(oe)}))}))},O.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):co()},O.prototype.sort=function(F){return Ra(di(this,F))},O.prototype.sortBy=function(F,q){return Ra(di(this,q,F))},O.prototype.map=function(F,q){var ae=this;return this.withMutations((function(oe){oe.forEach((function(fe,Pe){oe.set(Pe,F.call(q,fe,Pe,ae))}))}))},O.prototype.__iterator=function(F,q){return new jd(this,F,q)},O.prototype.__iterate=function(F,q){var ae=this,oe=0;return this._root&&this._root.iterate((function(fe){return oe++,F(fe[1],fe[0],ae)}),q),oe},O.prototype.__ensureOwner=function(F){return F===this.__ownerID?this:F?yr(this.size,this._root,F,this.__hash):this.size===0?co():(this.__ownerID=F,this.__altered=!1,this)},O})(ge);vi.isMap=Fe;var bn=vi.prototype;bn[Ee]=!0,bn[h]=bn.remove,bn.removeAll=bn.deleteAll,bn.setIn=Ql,bn.removeIn=bn.deleteIn=ec,bn.update=vs,bn.updateIn=an,bn.merge=bn.concat=tc,bn.mergeWith=rc,bn.mergeDeep=gi,bn.mergeDeepWith=yi,bn.mergeIn=bs,bn.mergeDeepIn=ws,bn.withMutations=jo,bn.wasAltered=Es,bn.asImmutable=el,bn["@@transducer/init"]=bn.asMutable=ac,bn["@@transducer/step"]=function(A,O){return A.set(O[0],O[1])},bn["@@transducer/result"]=function(A){return A.asImmutable()};var tl=function(O,D){this.ownerID=O,this.entries=D};tl.prototype.get=function(O,D,F,q){for(var ae=this.entries,oe=0,fe=ae.length;oe=zc)return(function(_n,ya,Fa,ai){_n||(_n=new g);for(var Tn=new Ma(_n,kr(Fa),[Fa,ai]),Hn=0;Hn>>O)&f),oe=this.bitmap;return oe&ae?this.nodes[Gu(oe&ae-1)].get(O+5,D,F,q):q},rl.prototype.update=function(O,D,F,q,ae,oe,fe){F===void 0&&(F=kr(q));var Pe=(D===0?F:F>>>D)&f,ze=1<=rh)return(function(Tn,Hn,na,aa,Bn){for(var Ga=0,Ya=new Array(v),po=0;na!==0;po++,na>>>=1)Ya[po]=1&na?Hn[Ga++]:void 0;return Ya[aa]=Bn,new bi(Tn,Ga+1,Ya)})(O,lr,tt,Pe,Ar);if(At&&!Ar&&lr.length===2&&Uc(lr[1^Rt]))return lr[1^Rt];if(At&&Ar&&lr.length===1&&Uc(Ar))return Ar;var _n=O&&O===this.ownerID,ya=At?Ar?tt:tt^ze:tt|ze,Fa=At?Ar?ic(lr,Rt,Ar,_n):(function(Tn,Hn,na){var aa=Tn.length-1;if(na&&Hn===aa)return Tn.pop(),Tn;for(var Bn=new Array(aa),Ga=0,Ya=0;Ya>>O)&f,oe=this.nodes[ae];return oe?oe.get(O+5,D,F,q):q},bi.prototype.update=function(O,D,F,q,ae,oe,fe){F===void 0&&(F=kr(q));var Pe=(D===0?F:F>>>D)&f,ze=ae===y,tt=this.nodes,At=tt[Pe];if(ze&&!At)return this;var Rt=wi(At,O,D+5,F,q,ae,oe,fe);if(Rt===At)return this;var lr=this.count;if(At){if(!Rt&&--lr=Yu&&(q=this._buildIndex()),q!==void 0){var ae=q[Ea(O)];if(ae!==void 0)for(var oe=0;oe>>D)&f,fe=(D===0?F:F>>>D)&f,Pe=oe===fe?[al(A,O,D+5,F,q)]:(ae=new Ma(O,F,q),oe>1&1431655765))+(A>>2&858993459))+(A>>4)&252645135,A+=A>>8,127&(A+=A>>16)}function ic(A,O,D,F){var q=F?A:Yt(A);return q[O]=D,q}var zc=8,rh=16,uo=8,Yu=16,Vc="@@__IMMUTABLE_LIST__@@";function Bi(A){return!!(A&&A[Vc])}var Wo=(function(A){function O(D){var F=Ss();if(D==null)return F;if(Bi(D))return D;var q=A(D),ae=q.size;return ae===0?F:(mr(ae),ae>0&&ae=0&&F=oe.size||fe<0)return oe.withMutations((function(Rt){fe<0?ri(Rt,fe).set(0,Pe):ri(Rt,0,fe+1).set(fe,Pe)}));fe+=oe._origin;var ze=oe._tail,tt=oe._root,At={value:!1};return fe>=sl(oe._capacity)?ze=Qu(ze,oe.__ownerID,0,fe,Pe,At):tt=Qu(tt,oe.__ownerID,oe._level,fe,Pe,At),At.value?oe.__ownerID?(oe._root=tt,oe._tail=ze,oe.__hash=void 0,oe.__altered=!0,oe):ol(oe._origin,oe._capacity,oe._level,tt,ze):oe})(this,F,q)},O.prototype.remove=function(F){return this.has(F)?F===0?this.shift():F===this.size-1?this.pop():this.splice(F,1):this},O.prototype.insert=function(F,q){return this.splice(F,0,q)},O.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Ss()},O.prototype.push=function(){var F=arguments,q=this.size;return this.withMutations((function(ae){ri(ae,0,q+F.length);for(var oe=0;oe>>D&f;if(q>=this.array.length)return new Ha([],O);var ae,oe=q===0;if(D>0){var fe=this.array[q];if((ae=fe&&fe.removeBefore(O,D-5,F))===fe&&oe)return this}if(oe&&!ae)return this;var Pe=il(this,O);if(!oe)for(var ze=0;ze>>D&f;if(ae>=this.array.length)return this;if(D>0){var oe=this.array[ae];if((q=oe&&oe.removeAfter(O,D-5,F))===oe&&ae===this.array.length-1)return this}var fe=il(this,O);return fe.array.splice(ae+1),q&&(fe.array[ae]=q),fe};var nh,Ei={};function Xu(A,O){var D=A._origin,F=A._capacity,q=sl(F),ae=A._tail;return oe(A._root,A._level,0);function oe(fe,Pe,ze){return Pe===0?(function(At,Rt){var lr=Rt===q?ae&&ae.array:At&&At.array,vr=Rt>D?0:D-Rt,Ar=F-Rt;return Ar>v&&(Ar=v),function(){if(vr===Ar)return Ei;var _n=O?--Ar:vr++;return lr&&lr[_n]}})(fe,ze):(function(At,Rt,lr){var vr,Ar=At&&At.array,_n=lr>D?0:D-lr>>Rt,ya=1+(F-lr>>Rt);return ya>v&&(ya=v),function(){for(;;){if(vr){var Fa=vr();if(Fa!==Ei)return Fa;vr=null}if(_n===ya)return Ei;var ai=O?--ya:_n++;vr=oe(Ar&&Ar[ai],Rt-5,lr+(ai<>>D&f,Pe=A&&fe0){var ze=A&&A.array[fe],tt=Qu(ze,O,D-5,F,q,ae);return tt===ze?A:((oe=il(A,O)).array[fe]=tt,oe)}return Pe&&A.array[fe]===q?A:(ae&&m(ae),oe=il(A,O),q===void 0&&fe===oe.array.length-1?oe.array.pop():oe.array[fe]=q,oe)}function il(A,O){return O&&A&&O===A.ownerID?A:new Ha(A?A.array.slice():[],O)}function ah(A,O){if(O>=sl(A._capacity))return A._tail;if(O<1<0;)D=D.array[O>>>F&f],F-=5;return D}}function ri(A,O,D){(function(Tn,Hn,na){var aa=Tn._origin+(Hn===void 0?0:Hn),Bn=na===void 0?Tn._capacity:na<0?Tn._capacity+na:Tn._origin+na;if(Number.isFinite(Bn)&&Bn>sc||Number.isFinite(aa)&&aa<-sc||Number.isFinite(Bn)&&Number.isFinite(aa)&&Bn-aa>sc)throw new RangeError("Invalid List size: a List cannot hold more than "+sc+" (2 ** 30) values.")})(A,O,D),O!==void 0&&(O|=0),D!==void 0&&(D|=0);var F=A.__ownerID||new g,q=A._origin,ae=A._capacity,oe=q+O,fe=D===void 0?ae:D<0?ae+D:q+D;if(oe===q&&fe===ae)return A;if(oe>=fe)return A.clear();for(var Pe=A._level,ze=A._root,tt=0;oe+tt<0;)ze=new Ha(ze&&ze.array.length?[void 0,ze]:[],F),tt+=Jc(Pe+=5);tt&&(oe+=tt,q+=tt,fe+=tt,ae+=tt);for(var At=sl(ae),Rt=sl(fe);Rt>=Jc(Pe+5);)ze=new Ha(ze&&ze.array.length?[ze]:[],F),Pe+=5;var lr=A._tail,vr=RtAt?new Ha([],F):lr;if(lr&&Rt>At&&oe5;_n-=5){var ya=At>>>_n&f;Ar=Ar.array[ya]=il(Ar.array[ya],F)}Ar.array[At>>>5&f]=lr}if(fe=Rt)oe-=Rt,fe-=Rt,Pe=5,ze=null,vr=vr&&vr.removeBefore(F,0,oe);else if(oe>q||Rt>>Pe&f;if(Fa!==Rt>>>Pe&f)break;Fa&&(tt+=(1<q&&(ze=ze.removeBefore(F,Pe,oe-tt)),ze&&Rt>>5<<5}var sc=Math.pow(2,30);function Jc(A){return A<31?1<=v&&oe.size>=2*ae.size?(F=(q=oe.filter((function(ze,tt){return ze!==void 0&&fe!==tt}))).toKeyedSeq().map((function(ze){return ze[0]})).flip().toMap(),A.__ownerID&&(F.__ownerID=q.__ownerID=A.__ownerID)):(F=ae.remove(O),q=fe===oe.size-1?oe.pop():oe.set(fe,void 0))}else if(Pe){if(D===oe.get(fe)[1])return A;F=ae,q=oe.set(fe,[O,D])}else F=ae.set(O,oe.size),q=oe.set(oe.size,[O,D]);return A.__ownerID?(A.size=F.size,A._map=F,A._list=q,A.__hash=void 0,A.__altered=!0,A):Wc(F,q)}Ra.isOrderedMap=St,Ra.prototype[u]=!0,Ra.prototype[h]=Ra.prototype.remove;var ep="@@__IMMUTABLE_STACK__@@";function cl(A){return!!(A&&A[ep])}var ul=(function(A){function O(D){return D==null?Si():cl(D)?D:Si().pushAll(D)}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return this(arguments)},O.prototype.toString=function(){return this.__toString("Stack [","]")},O.prototype.get=function(F,q){var ae=this._head;for(F=_(this,F);ae&&F--;)ae=ae.next;return ae?ae.value:q},O.prototype.peek=function(){return this._head&&this._head.value},O.prototype.push=function(){var F=arguments;if(arguments.length===0)return this;for(var q=this.size+arguments.length,ae=this._head,oe=arguments.length-1;oe>=0;oe--)ae={value:F[oe],next:ae};return this.__ownerID?(this.size=q,this._head=ae,this.__hash=void 0,this.__altered=!0,this):qi(q,ae)},O.prototype.pushAll=function(F){if((F=A(F)).size===0)return this;if(this.size===0&&cl(F))return F;mr(F.size);var q=this.size,ae=this._head;return F.__iterate((function(oe){q++,ae={value:oe,next:ae}}),!0),this.__ownerID?(this.size=q,this._head=ae,this.__hash=void 0,this.__altered=!0,this):qi(q,ae)},O.prototype.pop=function(){return this.slice(1)},O.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Si()},O.prototype.slice=function(F,q){if(I(F,q,this.size))return this;var ae=j(F,this.size);if(M(q,this.size)!==this.size)return A.prototype.slice.call(this,F,q);for(var oe=this.size-ae,fe=this._head;ae--;)fe=fe.next;return this.__ownerID?(this.size=oe,this._head=fe,this.__hash=void 0,this.__altered=!0,this):qi(oe,fe)},O.prototype.__ensureOwner=function(F){return F===this.__ownerID?this:F?qi(this.size,this._head,F,this.__hash):this.size===0?Si():(this.__ownerID=F,this.__altered=!1,this)},O.prototype.__iterate=function(F,q){var ae=this;if(q)return new kt(this.toArray()).__iterate((function(Pe,ze){return F(Pe,ze,ae)}),q);for(var oe=0,fe=this._head;fe&&F(fe.value,oe++,this)!==!1;)fe=fe.next;return oe},O.prototype.__iterator=function(F,q){if(q)return new kt(this.toArray()).__iterator(F,q);var ae=0,oe=this._head;return new Ke((function(){if(oe){var fe=oe.value;return oe=oe.next,ft(F,ae++,fe)}return{value:void 0,done:!0}}))},O})(ke);ul.isStack=cl;var tp,xa=ul.prototype;function qi(A,O,D,F){var q=Object.create(xa);return q.size=A,q._head=O,q.__ownerID=D,q.__hash=F,q.__altered=!1,q}function Si(){return tp||(tp=qi(0))}xa[ep]=!0,xa.shift=xa.pop,xa.unshift=xa.push,xa.unshiftAll=xa.pushAll,xa.withMutations=jo,xa.wasAltered=Es,xa.asImmutable=el,xa["@@transducer/init"]=xa.asMutable=ac,xa["@@transducer/step"]=function(A,O){return A.unshift(O)},xa["@@transducer/result"]=function(A){return A.asImmutable()};var rp="@@__IMMUTABLE_SET__@@";function Ui(A){return!!(A&&A[rp])}function pl(A){return Ui(A)&&at(A)}function hl(A,O){if(A===O)return!0;if(!B(O)||A.size!==void 0&&O.size!==void 0&&A.size!==O.size||A.__hash!==void 0&&O.__hash!==void 0&&A.__hash!==O.__hash||te(A)!==te(O)||se(A)!==se(O)||at(A)!==at(O))return!1;if(A.size===0&&O.size===0)return!0;var D=!Te(A);if(at(A)){var F=A.entries();return O.every((function(Pe,ze){var tt=F.next().value;return tt&&Qe(tt[1],Pe)&&(D||Qe(tt[0],ze))}))&&F.next().done}var q=!1;if(A.size===void 0)if(O.size===void 0)typeof A.cacheResult=="function"&&A.cacheResult();else{q=!0;var ae=A;A=O,O=ae}var oe=!0,fe=O.__iterate((function(Pe,ze){if(D?!A.has(Pe):q?!Qe(Pe,A.get(ze,y)):!Qe(A.get(ze,y),Pe))return oe=!1,!1}));return oe&&A.size===fe}function xi(A,O){var D=function(F){A.prototype[F]=O[F]};return Object.keys(O).forEach(D),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(O).forEach(D),A}function xs(A){if(!A||typeof A!="object")return A;if(!B(A)){if(!Sa(A))return A;A=ar(A)}if(te(A)){var O={};return A.__iterate((function(F,q){Yl(q)||(O[q]=xs(F))})),O}var D=[];return A.__iterate((function(F){D.push(xs(F))})),D}var No=(function(A){function O(D){return D==null?ni():Ui(D)&&!at(D)?D:ni().withMutations((function(F){var q=A(D);mr(q.size),q.forEach((function(ae){return F.add(ae)}))}))}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return this(arguments)},O.fromKeys=function(F){return this(ge(F).keySeq())},O.intersect=function(F){return(F=he(F).toArray()).length?ra.intersect.apply(O(F.pop()),F):ni()},O.union=function(F){return(F=he(F).toArray()).length?ra.union.apply(O(F.pop()),F):ni()},O.prototype.toString=function(){return this.__toString("Set {","}")},O.prototype.has=function(F){return this._map.has(F)},O.prototype.add=function(F){return dl(this,this._map.set(F,F))},O.prototype.remove=function(F){return dl(this,this._map.remove(F))},O.prototype.clear=function(){return dl(this,this._map.clear())},O.prototype.map=function(F,q){var ae=this,oe=!1,fe=dl(this,this._map.mapEntries((function(Pe){var ze=Pe[1],tt=F.call(q,ze,ze,ae);return tt!==ze&&(oe=!0),[tt,tt]}),q));return oe?fe:this},O.prototype.union=function(){for(var F=[],q=arguments.length;q--;)F[q]=arguments[q];return(F=F.filter((function(ae){return ae.size!==0}))).length===0?this:this.size!==0||this.__ownerID||F.length!==1?this.withMutations((function(ae){for(var oe=0;oe=0&&q=0&&ae>>-15,461845907),Pe=$t(Pe<<13|Pe>>>-13,5),Pe=Pe+3864292196^fe,Pe=$t(Pe^Pe>>>16,2246822507),Pe=$t(Pe^Pe>>>13,3266489909),Pe=Pt(Pe^Pe>>>16),Pe})(D.__iterate(q?F?function(oe,fe){ae=31*ae+yl(kr(oe),kr(fe))|0}:function(oe,fe){ae=ae+yl(kr(oe),kr(fe))|0}:F?function(oe){ae=31*ae+kr(oe)|0}:function(oe){ae=ae+kr(oe)|0}),ae)})(this))}});var la=he.prototype;la[Y]=!0,la[De]=la.values,la.toJSON=la.toArray,la.__toStringMapper=Ja,la.inspect=la.toSource=function(){return this.toString()},la.chain=la.flatMap,la.contains=la.includes,xi(ge,{flip:function(){return Nr(this,fn(this))},mapEntries:function(O,D){var F=this,q=0;return Nr(this,this.toSeq().map((function(ae,oe){return O.call(D,[oe,ae],q++,F)})).fromEntrySeq())},mapKeys:function(O,D){var F=this;return Nr(this,this.toSeq().flip().map((function(q,ae){return O.call(D,q,ae,F)})).flip())}});var Vi=ge.prototype;Vi[X]=!0,Vi[De]=la.entries,Vi.toJSON=gl,Vi.__toStringMapper=function(A,O){return Ja(O)+": "+Ja(A)},xi(ke,{toKeyedSeq:function(){return new Cr(this,!1)},filter:function(O,D){return Nr(this,ia(this,O,D,!1))},findIndex:function(O,D){var F=this.findEntry(O,D);return F?F[0]:-1},indexOf:function(O){var D=this.keyOf(O);return D===void 0?-1:D},lastIndexOf:function(O){var D=this.lastKeyOf(O);return D===void 0?-1:D},reverse:function(){return Nr(this,Hr(this,!1))},slice:function(O,D){return Nr(this,za(this,O,D,!1))},splice:function(O,D){var F=arguments.length;if(D=Math.max(D||0,0),F===0||F===2&&!D)return this;O=j(O,O<0?this.count():this.size);var q=this.slice(0,O);return Nr(this,F===1?q:q.concat(Yt(arguments,2),this.slice(O+D)))},findLastIndex:function(O,D){var F=this.findLastEntry(O,D);return F?F[0]:-1},first:function(O){return this.get(0,O)},flatten:function(O){return Nr(this,ea(this,O,!1))},get:function(O,D){return(O=_(this,O))<0||this.size===1/0||this.size!==void 0&&O>this.size?D:this.find((function(F,q){return q===O}),void 0,D)},has:function(O){return(O=_(this,O))>=0&&(this.size!==void 0?this.size===1/0||OO?-1:0}function yl(A,O){return A^O+2654435769+(A<<6)+(A>>2)}Wi.has=la.includes,Wi.contains=Wi.includes,Wi.keys=Wi.values,xi(Tt,Vi),xi(Gt,Ji),xi(Sr,Wi);var Da=(function(A){function O(D){return D==null?_i():pl(D)?D:_i().withMutations((function(F){var q=Ve(D);mr(q.size),q.forEach((function(ae){return F.add(ae)}))}))}return A&&(O.__proto__=A),O.prototype=Object.create(A&&A.prototype),O.prototype.constructor=O,O.of=function(){return this(arguments)},O.fromKeys=function(F){return this(ge(F).keySeq())},O.prototype.toString=function(){return this.__toString("OrderedSet {","}")},O})(No);Da.isOrderedSet=pl;var Hi,Ho=Da.prototype;function _a(A,O){var D=Object.create(Ho);return D.size=A?A.size:0,D._map=A,D.__ownerID=O,D}function _i(){return Hi||(Hi=_a(ll()))}Ho[u]=!0,Ho.zip=Ji.zip,Ho.zipWith=Ji.zipWith,Ho.zipAll=Ji.zipAll,Ho.__empty=_i,Ho.__make=_a;var cc={LeftThenRight:-1,RightThenLeft:1},jn=function(O,D){var F;(function(fe){if(gt(fe))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Re(fe))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(fe===null||typeof fe!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")})(O);var q=function(fe){var Pe=this;if(fe instanceof q)return fe;if(!(this instanceof q))return new q(fe);if(!F){F=!0;var ze=Object.keys(O),tt=ae._indices={};ae._name=D,ae._keys=ze,ae._defaultValues=O;for(var At=0;At2?[]:void 0,{"":A})}function eu(A,O,D,F,q,ae){if(typeof D!="string"&&!Re(D)&&(ur(D)||Wt(D)||sa(D))){if(~A.indexOf(D))throw new TypeError("Cannot convert circular structure to Immutable");A.push(D),q&&F!==""&&q.push(F);var oe=O.call(ae,F,ar(D).map((function(fe,Pe){return eu(A,O,fe,Pe,q,D)})),q&&q.slice());return A.pop(),q&&q.pop(),oe}return D}function op(A,O){return se(O)?O.toList():te(O)?O.toMap():O.toSet()}var tu="4.3.9",ip=he;const sp={version:tu,Collection:he,Iterable:he,Seq:ar,Map:vi,OrderedMap:Ra,List:Wo,Stack:ul,Set:No,OrderedSet:Da,PairSorting:cc,Record:jn,Range:zi,Repeat:vl,is:Qe,fromJS:Zc,hash:kr,isImmutable:Re,isCollection:B,isKeyed:te,isIndexed:se,isAssociative:Te,isOrdered:at,isValueObject:Bt,isPlainObject:sa,isSeq:qe,isList:Bi,isMap:Fe,isOrderedMap:St,isStack:cl,isSet:Ui,isOrderedSet:pl,isRecord:gt,get:Ia,getIn:lc,has:Wa,hasIn:ml,merge:nc,mergeDeep:Ku,mergeWith:Hu,mergeDeepWith:$c,remove:gs,removeIn:Zl,set:ys,setIn:Wu,update:Ao,updateIn:lo}},56698(w){typeof Object.create=="function"?w.exports=function(s,h){h&&(s.super_=h,s.prototype=Object.create(h.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:w.exports=function(s,h){if(h){s.super_=h;var v=function(){};v.prototype=h.prototype,s.prototype=new v,s.prototype.constructor=s}}},69600(w){var N,s,h=Function.prototype.toString,v=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof v=="function"&&typeof Object.defineProperty=="function")try{N=Object.defineProperty({},"length",{get:function(){throw s}}),s={},v((function(){throw 42}),null,N)}catch(j){j!==s&&(v=null)}else v=null;var f=/^\s*class\b/,y=function(M){try{var z=h.call(M);return f.test(z)}catch{return!1}},m=function(M){try{return!y(M)&&(h.call(M),!0)}catch{return!1}},g=Object.prototype.toString,S=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),T=function(){return!1};if(typeof document=="object"){var I=document.all;g.call(I)===g.call(document.all)&&(T=function(M){if((_||!M)&&(M===void 0||typeof M=="object"))try{var z=g.call(M);return(z==="[object HTMLAllCollection]"||z==="[object HTML document.all class]"||z==="[object HTMLCollection]"||z==="[object Object]")&&M("")==null}catch{}return!1})}w.exports=v?function(M){if(T(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;try{v(M,null,N)}catch(z){if(z!==s)return!1}return!y(M)&&m(M)}:function(M){if(T(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;if(S)return m(M);if(y(M))return!1;var z=g.call(M);return!(z!=="[object Function]"&&z!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(z))&&m(M)}},35680(w,N,s){var h=s(25767);w.exports=function(f){return!!h(f)}},64634(w){var N={}.toString;w.exports=Array.isArray||function(s){return N.call(s)=="[object Array]"}},5419(w){w.exports=function(N,s,h,v){var f=new Blob(v!==void 0?[v,N]:[N],{type:h||"application/octet-stream"});if(window.navigator.msSaveBlob!==void 0)window.navigator.msSaveBlob(f,s);else{var y=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(f):window.webkitURL.createObjectURL(f),m=document.createElement("a");m.style.display="none",m.href=y,m.setAttribute("download",s),m.download===void 0&&m.setAttribute("target","_blank"),document.body.appendChild(m),m.click(),setTimeout((function(){document.body.removeChild(m),window.URL.revokeObjectURL(y)}),200)}}},20181(w,N,s){var h=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,y=/^0o[0-7]+$/i,m=parseInt,g=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g,S=typeof self=="object"&&self&&self.Object===Object&&self,_=g||S||Function("return this")(),T=Object.prototype.toString,I=Math.max,j=Math.min,M=function(){return _.Date.now()};function z(Y){var B=typeof Y;return!!Y&&(B=="object"||B=="function")}function K(Y){if(typeof Y=="number")return Y;if((function(ie){return typeof ie=="symbol"||(function(Te){return!!Te&&typeof Te=="object"})(ie)&&T.call(ie)=="[object Symbol]"})(Y))return NaN;if(z(Y)){var B=typeof Y.valueOf=="function"?Y.valueOf():Y;Y=z(B)?B+"":B}if(typeof Y!="string")return Y===0?Y:+Y;Y=Y.replace(h,"");var X=f.test(Y);return X||y.test(Y)?m(Y.slice(2),X?2:8):v.test(Y)?NaN:+Y}w.exports=function(B,X,te){var ie,se,Te,he,ge,ke,Ve=0,He=!1,qe=!1,nt=!0;if(typeof B!="function")throw new TypeError("Expected a function");function gt(Se){var De=ie,Ke=se;return ie=se=void 0,Ve=Se,he=B.apply(Ke,De)}function Re(Se){var De=Se-ke;return ke===void 0||De>=X||De<0||qe&&Se-Ve>=Te}function u(){var Se=M();if(Re(Se))return at(Se);ge=setTimeout(u,(function(Ke){var ft=X-(Ke-ke);return qe?j(ft,Te-(Ke-Ve)):ft})(Se))}function at(Se){return ge=void 0,nt&&ie?gt(Se):(ie=se=void 0,he)}function Xe(){var Se=M(),De=Re(Se);if(ie=arguments,se=this,ke=Se,De){if(ge===void 0)return(function(ft){return Ve=ft,ge=setTimeout(u,X),He?gt(ft):he})(ke);if(qe)return ge=setTimeout(u,X),gt(ke)}return ge===void 0&&(ge=setTimeout(u,X)),he}return X=K(X)||0,z(te)&&(He=!!te.leading,Te=(qe="maxWait"in te)?I(K(te.maxWait)||0,X):Te,nt="trailing"in te?!!te.trailing:nt),Xe.cancel=function(){ge!==void 0&&clearTimeout(ge),Ve=0,ie=ke=se=ge=void 0},Xe.flush=function(){return ge===void 0?he:at(M())},Xe}},55580(w,N,s){var h=s(56110)(s(9325),"DataView");w.exports=h},21549(w,N,s){var h=s(22032),v=s(63862),f=s(66721),y=s(12749),m=s(35749);function g(S){var _=-1,T=S==null?0:S.length;for(this.clear();++_-1}},70695(w,N,s){var h=s(78096),v=s(72428),f=s(56449),y=s(3656),m=s(30361),g=s(37167),S=Object.prototype.hasOwnProperty;w.exports=function(T,I){var j=f(T),M=!j&&v(T),z=!j&&!M&&y(T),K=!j&&!M&&!z&&g(T),Y=j||M||z||K,B=Y?h(T.length,String):[],X=B.length;for(var te in T)!I&&!S.call(T,te)||Y&&(te=="length"||z&&(te=="offset"||te=="parent")||K&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||m(te,X))||B.push(te);return B}},34932(w){w.exports=function(s,h){for(var v=-1,f=s==null?0:s.length,y=Array(f);++v0&&g(j)?m>1?f(j,m-1,g,S,_):h(_,j):S||(_[_.length]=j)}return _}},86649(w,N,s){var h=s(83221)();w.exports=h},30641(w,N,s){var h=s(86649),v=s(95950);w.exports=function(y,m){return y&&h(y,m,v)}},47422(w,N,s){var h=s(31769),v=s(77797);w.exports=function(y,m){for(var g=0,S=(m=h(m,y)).length;y!=null&&gy?0:y+h),(v=v>y?y:v)<0&&(v+=y),y=h>v?0:v-h>>>0,h>>>=0;for(var m=Array(y);++f=g?f:h(f,y,m)}},49653(w,N,s){var h=s(37828);w.exports=function(f){var y=new f.constructor(f.byteLength);return new h(y).set(new h(f)),y}},93290(w,N,s){w=s.nmd(w);var h=s(9325),v=N&&!N.nodeType&&N,f=v&&w&&!w.nodeType&&w,y=f&&f.exports===v?h.Buffer:void 0,m=y?y.allocUnsafe:void 0;w.exports=function(S,_){if(_)return S.slice();var T=S.length,I=m?m(T):new S.constructor(T);return S.copy(I),I}},76169(w,N,s){var h=s(49653);w.exports=function(f,y){var m=y?h(f.buffer):f.buffer;return new f.constructor(m,f.byteOffset,f.byteLength)}},73201(w){var N=/\w*$/;w.exports=function(h){var v=new h.constructor(h.source,N.exec(h));return v.lastIndex=h.lastIndex,v}},93736(w,N,s){var h=s(51873),v=h?h.prototype:void 0,f=v?v.valueOf:void 0;w.exports=function(m){return f?Object(f.call(m)):{}}},71961(w,N,s){var h=s(49653);w.exports=function(f,y){var m=y?h(f.buffer):f.buffer;return new f.constructor(m,f.byteOffset,f.length)}},91596(w){var N=Math.max;w.exports=function(h,v,f,y){for(var m=-1,g=h.length,S=f.length,_=-1,T=v.length,I=N(g-S,0),j=Array(T+I),M=!y;++_1?g[_-1]:void 0,I=_>2?g[2]:void 0;for(T=y.length>3&&typeof T=="function"?(_--,T):void 0,I&&v(g[0],g[1],I)&&(T=_<3?void 0:T,_=1),m=Object(m);++S<_;){var j=g[S];j&&y(m,j,S,T)}return m}))}},38329(w,N,s){var h=s(64894);w.exports=function(f,y){return function(m,g){if(m==null)return m;if(!h(m))return f(m,g);for(var S=m.length,_=y?S:-1,T=Object(m);(y?_--:++_-1?T[I?g[j]:j]:void 0}}},37471(w,N,s){var h=s(91596),v=s(53320),f=s(58523),y=s(82819),m=s(18073),g=s(11287),S=s(68294),_=s(36306),T=s(9325);w.exports=function I(j,M,z,K,Y,B,X,te,ie,se){var Te=128&M,he=1&M,ge=2&M,ke=24&M,Ve=512&M,He=ge?void 0:y(j);return function qe(){for(var nt=arguments.length,gt=Array(nt),Re=nt;Re--;)gt[Re]=arguments[Re];if(ke)var u=g(qe),at=f(gt,u);if(K&&(gt=h(gt,K,Y,ke)),B&&(gt=v(gt,B,X,ke)),nt-=at,ke&&nt1&>.reverse(),Te&&ieM))return!1;var K=I.get(m),Y=I.get(g);if(K&&Y)return K==g&&Y==m;var B=-1,X=!0,te=2&S?new h:void 0;for(I.set(m,g),I.set(g,m);++B1?"& ":"")+v[y],v=v.join(f>2?", ":" "),h.replace(N,`{ +/* [wrapped with `+v+`] */ +`)}},45891(w,N,s){var h=s(51873),v=s(72428),f=s(56449),y=h?h.isConcatSpreadable:void 0;w.exports=function(g){return f(g)||v(g)||!!(y&&g&&g[y])}},30361(w){var N=/^(?:0|[1-9]\d*)$/;w.exports=function(h,v){var f=typeof h;return!!(v=v??9007199254740991)&&(f=="number"||f!="symbol"&&N.test(h))&&h>-1&&h%1==0&&h-1}},31175(w,N,s){var h=s(26025);w.exports=function(f,y){var m=this.__data__,g=h(m,f);return g<0?(++this.size,m.push([f,y])):m[g][1]=y,this}},63040(w,N,s){var h=s(21549),v=s(80079),f=s(68223);w.exports=function(){this.size=0,this.__data__={hash:new h,map:new(f||v),string:new h}}},17670(w,N,s){var h=s(12651);w.exports=function(f){var y=h(this,f).delete(f);return this.size-=y?1:0,y}},90289(w,N,s){var h=s(12651);w.exports=function(f){return h(this,f).get(f)}},4509(w,N,s){var h=s(12651);w.exports=function(f){return h(this,f).has(f)}},72949(w,N,s){var h=s(12651);w.exports=function(f,y){var m=h(this,f),g=m.size;return m.set(f,y),this.size+=m.size==g?0:1,this}},20317(w){w.exports=function(s){var h=-1,v=Array(s.size);return s.forEach((function(f,y){v[++h]=[y,f]})),v}},67197(w){w.exports=function(s,h){return function(v){return v!=null&&v[s]===h&&(h!==void 0||s in Object(v))}}},62224(w,N,s){var h=s(50104);w.exports=function(f){var y=h(f,(function(g){return m.size===500&&m.clear(),g})),m=y.cache;return y}},3209(w,N,s){var h=s(91596),v=s(53320),f=s(36306),y="__lodash_placeholder__",m=128,g=Math.min;w.exports=function(_,T){var I=_[1],j=T[1],M=I|j,z=M<131,K=j==m&&I==8||j==m&&I==256&&_[7].length<=T[8]||j==384&&T[7].length<=T[8]&&I==8;if(!z&&!K)return _;1&j&&(_[2]=T[2],M|=1&I?0:4);var Y=T[3];if(Y){var B=_[3];_[3]=B?h(B,Y,T[4]):Y,_[4]=B?f(_[3],y):T[4]}return(Y=T[5])&&(B=_[5],_[5]=B?v(B,Y,T[6]):Y,_[6]=B?f(_[5],y):T[6]),(Y=T[7])&&(_[7]=Y),j&m&&(_[8]=_[8]==null?T[8]:g(_[8],T[8])),_[9]==null&&(_[9]=T[9]),_[0]=T[0],_[1]=M,_}},48152(w,N,s){var h=s(28303),v=h&&new h;w.exports=v},81042(w,N,s){var h=s(56110)(Object,"create");w.exports=h},3650(w,N,s){var h=s(74335)(Object.keys,Object);w.exports=h},90181(w){w.exports=function(s){var h=[];if(s!=null)for(var v in Object(s))h.push(v);return h}},86009(w,N,s){w=s.nmd(w);var h=s(34840),v=N&&!N.nodeType&&N,f=v&&w&&!w.nodeType&&w,y=f&&f.exports===v&&h.process,m=(function(){try{var g=f&&f.require&&f.require("util").types;return g||y&&y.binding&&y.binding("util")}catch{}})();w.exports=m},59350(w){var N=Object.prototype.toString;w.exports=function(h){return N.call(h)}},74335(w){w.exports=function(s,h){return function(v){return s(h(v))}}},56757(w,N,s){var h=s(91033),v=Math.max;w.exports=function(y,m,g){return m=v(m===void 0?y.length-1:m,0),function(){for(var S=arguments,_=-1,T=v(S.length-m,0),I=Array(T);++_0){if(++v>=800)return arguments[0]}else v=0;return h.apply(void 0,arguments)}}},51420(w,N,s){var h=s(80079);w.exports=function(){this.__data__=new h,this.size=0}},90938(w){w.exports=function(s){var h=this.__data__,v=h.delete(s);return this.size=h.size,v}},63605(w){w.exports=function(s){return this.__data__.get(s)}},29817(w){w.exports=function(s){return this.__data__.has(s)}},80945(w,N,s){var h=s(80079),v=s(68223),f=s(53661);w.exports=function(m,g){var S=this.__data__;if(S instanceof h){var _=S.__data__;if(!v||_.length<199)return _.push([m,g]),this.size=++S.size,this;S=this.__data__=new f(_)}return S.set(m,g),this.size=S.size,this}},76959(w){w.exports=function(s,h,v){for(var f=v-1,y=s.length;++f=_||He<0||te&&Ve-B>=M}function he(){var Ve=v();if(Te(Ve))return ge(Ve);K=setTimeout(he,(function(qe){var nt=_-(qe-Y);return te?m(nt,M-(qe-B)):nt})(Ve))}function ge(Ve){return K=void 0,ie&&I?se(Ve):(I=j=void 0,z)}function ke(){var Ve=v(),He=Te(Ve);if(I=arguments,j=this,Y=Ve,He){if(K===void 0)return(function(nt){return B=nt,K=setTimeout(he,_),X?se(nt):z})(Y);if(te)return clearTimeout(K),K=setTimeout(he,_),se(Y)}return K===void 0&&(K=setTimeout(he,_)),z}return _=f(_)||0,h(T)&&(X=!!T.leading,M=(te="maxWait"in T)?y(f(T.maxWait)||0,_):M,ie="trailing"in T?!!T.trailing:ie),ke.cancel=function(){K!==void 0&&clearTimeout(K),B=0,I=Y=j=K=void 0},ke.flush=function(){return K===void 0?z:ge(v())},ke}},50828(w,N,s){var h=s(24647),v=s(13222),f=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,y=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");w.exports=function(g){return(g=v(g))&&g.replace(f,h).replace(y,"")}},75288(w){w.exports=function(s,h){return s===h||s!=s&&h!=h}},60680(w,N,s){var h=s(13222),v=/[\\^$.*+?()[\]{}|]/g,f=RegExp(v.source);w.exports=function(m){return(m=h(m))&&f.test(m)?m.replace(v,"\\$&"):m}},7309(w,N,s){var h=s(62006)(s(24713));w.exports=h},24713(w,N,s){var h=s(2523),v=s(15389),f=s(61489),y=Math.max;w.exports=function(g,S,_){var T=g==null?0:g.length;if(!T)return-1;var I=_==null?0:f(_);return I<0&&(I=y(T+I,0)),h(g,v(S,3),I)}},35970(w,N,s){var h=s(83120);w.exports=function(f){return f!=null&&f.length?h(f,1):[]}},73424(w,N,s){var h=s(16962),v=s(2874),f=Array.prototype.push;function y(S,_){return _==2?function(T,I){return S(T,I)}:function(T){return S(T)}}function m(S){for(var _=S?S.length:0,T=Array(_);_--;)T[_]=S[_];return T}function g(S,_){return function(){var T=arguments.length;if(T){for(var I=Array(T);T--;)I[T]=arguments[T];var j=I[0]=_.apply(void 0,I);return S.apply(void 0,I),j}}}w.exports=function S(_,T,I,j){var M=typeof T=="function",z=T===Object(T);if(z&&(j=I,I=T,T=void 0),I==null)throw new TypeError;j||(j={});var K=!("cap"in j)||j.cap,Y=!("curry"in j)||j.curry,B=!("fixed"in j)||j.fixed,X=!("immutable"in j)||j.immutable,te=!("rearg"in j)||j.rearg,ie=M?I:v,se="curry"in j&&j.curry,Te="fixed"in j&&j.fixed,he="rearg"in j&&j.rearg,ge=M?I.runInContext():void 0,ke=M?I:{ary:_.ary,assign:_.assign,clone:_.clone,curry:_.curry,forEach:_.forEach,isArray:_.isArray,isError:_.isError,isFunction:_.isFunction,isWeakMap:_.isWeakMap,iteratee:_.iteratee,keys:_.keys,rearg:_.rearg,toInteger:_.toInteger,toPath:_.toPath},Ve=ke.ary,He=ke.assign,qe=ke.clone,nt=ke.curry,gt=ke.forEach,Re=ke.isArray,u=ke.isError,at=ke.isFunction,Xe=ke.isWeakMap,Se=ke.keys,De=ke.rearg,Ke=ke.toInteger,ft=ke.toPath,Nt=Se(h.aryMethod),Wt={castArray:function(kt){return function(){var yt=arguments[0];return Re(yt)?kt(m(yt)):kt.apply(void 0,arguments)}},iteratee:function(kt){return function(){var yt=arguments[1],Zt=kt(arguments[0],yt),pe=Zt.length;return K&&typeof yt=="number"?(yt=yt>2?yt-2:1,pe&&pe<=yt?Zt:y(Zt,yt)):Zt}},mixin:function(kt){return function(yt){var Zt=this;if(!at(Zt))return kt(Zt,Object(yt));var pe=[];return gt(Se(yt),(function(U){at(yt[U])&&pe.push([U,Zt.prototype[U]])})),kt(Zt,Object(yt)),gt(pe,(function(U){var Z=U[1];at(Z)?Zt.prototype[U[0]]=Z:delete Zt.prototype[U[0]]})),Zt}},nthArg:function(kt){return function(yt){var Zt=yt<0?1:Ke(yt)+1;return nt(kt(yt),Zt)}},rearg:function(kt){return function(yt,Zt){var pe=Zt?Zt.length:0;return nt(kt(yt,Zt),pe)}},runInContext:function(kt){return function(yt){return S(_,kt(yt),j)}}};function H(kt,yt){if(K){var Zt=h.iterateeRearg[kt];if(Zt)return(function(Z,ne){return ar(Z,(function(ye){var Ee=ne.length;return(function(St,Bt){return Bt==2?function(Qe,$t){return St.apply(void 0,arguments)}:function(Qe){return St.apply(void 0,arguments)}})(De(y(ye,Ee),ne),Ee)}))})(yt,Zt);var pe=!M&&h.iterateeAry[kt];if(pe)return(function(Z,ne){return ar(Z,(function(ye){return typeof ye=="function"?y(ye,ne):ye}))})(yt,pe)}return yt}function we(kt,yt,Zt){if(B&&(Te||!h.skipFixed[kt])){var pe=h.methodSpread[kt],U=pe&&pe.start;return U===void 0?Ve(yt,Zt):(function(ne,ye){return function(){for(var Ee=arguments.length,Fe=Ee-1,St=Array(Ee);Ee--;)St[Ee]=arguments[Ee];var Bt=St[ye],Qe=St.slice(0,ye);return Bt&&f.apply(Qe,Bt),ye!=Fe&&f.apply(Qe,St.slice(ye+1)),ne.apply(this,Qe)}})(yt,U)}return yt}function ct(kt,yt,Zt){return te&&Zt>1&&(he||!h.skipRearg[kt])?De(yt,h.methodRearg[kt]||h.aryRearg[Zt]):yt}function mt(kt,yt){for(var Zt=-1,pe=(yt=ft(yt)).length,U=pe-1,Z=qe(Object(kt)),ne=Z;ne!=null&&++Zt1?nt($t,Pt):$t})(0,pe=H(U,pe),ye),!1}})),!pe})),pe||(pe=Z),pe==yt&&(pe=se?nt(pe,1):function(){return yt.apply(this,arguments)}),pe.convert=ur(U,yt),pe.placeholder=yt.placeholder=Zt,pe}if(!z)return Tt(T,I,ie);var Gt=I,Sr=[];return gt(Nt,(function(kt){gt(h.aryMethod[kt],(function(yt){var Zt=Gt[h.remap[yt]||yt];Zt&&Sr.push([yt,Tt(yt,Zt,Gt)])}))})),gt(Se(Gt),(function(kt){var yt=Gt[kt];if(typeof yt=="function"){for(var Zt=Sr.length;Zt--;)if(Sr[Zt][0]==kt)return;yt.convert=ur(kt,yt),Sr.push([kt,yt])}})),gt(Sr,(function(kt){Gt[kt[0]]=kt[1]})),Gt.convert=function(yt){return Gt.runInContext.convert(yt)(void 0)},Gt.placeholder=Gt,gt(Se(Gt),(function(kt){gt(h.realToAlias[kt]||[],(function(yt){Gt[yt]=Gt[kt]}))})),Gt}},16962(w,N){N.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},N.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},N.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},N.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},N.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},N.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},N.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},N.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},N.realToAlias=(function(){var s=Object.prototype.hasOwnProperty,h=N.aliasToReal,v={};for(var f in h){var y=h[f];s.call(v,y)?v[y].push(f):v[y]=[f]}return v})(),N.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},N.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},N.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},47934(w,N,s){w.exports={ary:s(64626),assign:s(74733),clone:s(32629),curry:s(49747),forEach:s(83729),isArray:s(56449),isError:s(23546),isFunction:s(1882),isWeakMap:s(47886),iteratee:s(33855),keys:s(88984),rearg:s(84195),toInteger:s(61489),toPath:s(42072)}},56367(w,N,s){w.exports=s(77731)},79920(w,N,s){var h=s(73424),v=s(47934);w.exports=function(y,m,g){return h(v,y,m,g)}},2874(w){w.exports={}},77731(w,N,s){var h=s(79920)("set",s(63560));h.placeholder=s(2874),w.exports=h},58156(w,N,s){var h=s(47422);w.exports=function(f,y,m){var g=f==null?void 0:h(f,y);return g===void 0?m:g}},61448(w,N,s){var h=s(20426),v=s(49326);w.exports=function(y,m){return y!=null&&v(y,m,h)}},80631(w,N,s){var h=s(28077),v=s(49326);w.exports=function(y,m){return y!=null&&v(y,m,h)}},83488(w){w.exports=function(s){return s}},72428(w,N,s){var h=s(27534),v=s(40346),f=Object.prototype,y=f.hasOwnProperty,m=f.propertyIsEnumerable,g=h((function(){return arguments})())?h:function(S){return v(S)&&y.call(S,"callee")&&!m.call(S,"callee")};w.exports=g},56449(w){var N=Array.isArray;w.exports=N},64894(w,N,s){var h=s(1882),v=s(30294);w.exports=function(y){return y!=null&&v(y.length)&&!h(y)}},83693(w,N,s){var h=s(64894),v=s(40346);w.exports=function(y){return v(y)&&h(y)}},53812(w,N,s){var h=s(72552),v=s(40346);w.exports=function(y){return y===!0||y===!1||v(y)&&h(y)=="[object Boolean]"}},3656(w,N,s){w=s.nmd(w);var h=s(9325),v=s(89935),f=N&&!N.nodeType&&N,y=f&&w&&!w.nodeType&&w,m=y&&y.exports===f?h.Buffer:void 0,g=(m?m.isBuffer:void 0)||v;w.exports=g},62193(w,N,s){var h=s(88984),v=s(5861),f=s(72428),y=s(56449),m=s(64894),g=s(3656),S=s(55527),_=s(37167),T=Object.prototype.hasOwnProperty;w.exports=function(j){if(j==null)return!0;if(m(j)&&(y(j)||typeof j=="string"||typeof j.splice=="function"||g(j)||_(j)||f(j)))return!j.length;var M=v(j);if(M=="[object Map]"||M=="[object Set]")return!j.size;if(S(j))return!h(j).length;for(var z in j)if(T.call(j,z))return!1;return!0}},2404(w,N,s){var h=s(60270);w.exports=function(f,y){return h(f,y)}},23546(w,N,s){var h=s(72552),v=s(40346),f=s(11331);w.exports=function(m){if(!v(m))return!1;var g=h(m);return g=="[object Error]"||g=="[object DOMException]"||typeof m.message=="string"&&typeof m.name=="string"&&!f(m)}},1882(w,N,s){var h=s(72552),v=s(23805);w.exports=function(y){if(!v(y))return!1;var m=h(y);return m=="[object Function]"||m=="[object GeneratorFunction]"||m=="[object AsyncFunction]"||m=="[object Proxy]"}},30294(w){w.exports=function(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=9007199254740991}},87730(w,N,s){var h=s(29172),v=s(27301),f=s(86009),y=f&&f.isMap,m=y?v(y):h;w.exports=m},5187(w){w.exports=function(s){return s===null}},98023(w,N,s){var h=s(72552),v=s(40346);w.exports=function(y){return typeof y=="number"||v(y)&&h(y)=="[object Number]"}},23805(w){w.exports=function(s){var h=typeof s;return s!=null&&(h=="object"||h=="function")}},40346(w){w.exports=function(s){return s!=null&&typeof s=="object"}},11331(w,N,s){var h=s(72552),v=s(28879),f=s(40346),y=Function.prototype,m=Object.prototype,g=y.toString,S=m.hasOwnProperty,_=g.call(Object);w.exports=function(I){if(!f(I)||h(I)!="[object Object]")return!1;var j=v(I);if(j===null)return!0;var M=S.call(j,"constructor")&&j.constructor;return typeof M=="function"&&M instanceof M&&g.call(M)==_}},38440(w,N,s){var h=s(16038),v=s(27301),f=s(86009),y=f&&f.isSet,m=y?v(y):h;w.exports=m},85015(w,N,s){var h=s(72552),v=s(56449),f=s(40346);w.exports=function(m){return typeof m=="string"||!v(m)&&f(m)&&h(m)=="[object String]"}},44394(w,N,s){var h=s(72552),v=s(40346);w.exports=function(y){return typeof y=="symbol"||v(y)&&h(y)=="[object Symbol]"}},37167(w,N,s){var h=s(4901),v=s(27301),f=s(86009),y=f&&f.isTypedArray,m=y?v(y):h;w.exports=m},47886(w,N,s){var h=s(5861),v=s(40346);w.exports=function(y){return v(y)&&h(y)=="[object WeakMap]"}},33855(w,N,s){var h=s(9999),v=s(15389);w.exports=function(y){return v(typeof y=="function"?y:h(y,1))}},95950(w,N,s){var h=s(70695),v=s(88984),f=s(64894);w.exports=function(m){return f(m)?h(m):v(m)}},37241(w,N,s){var h=s(70695),v=s(72903),f=s(64894);w.exports=function(m){return f(m)?h(m,!0):v(m)}},68090(w){w.exports=function(s){var h=s==null?0:s.length;return h?s[h-1]:void 0}},50104(w,N,s){var h=s(53661);function v(f,y){if(typeof f!="function"||y!=null&&typeof y!="function")throw new TypeError("Expected a function");var m=function(){var g=arguments,S=y?y.apply(this,g):g[0],_=m.cache;if(_.has(S))return _.get(S);var T=f.apply(this,g);return m.cache=_.set(S,T)||_,T};return m.cache=new(v.Cache||h),m}v.Cache=h,w.exports=v},55364(w,N,s){var h=s(85250),v=s(20999)((function(f,y,m){h(f,y,m)}));w.exports=v},6048(w){w.exports=function(s){if(typeof s!="function")throw new TypeError("Expected a function");return function(){var h=arguments;switch(h.length){case 0:return!s.call(this);case 1:return!s.call(this,h[0]);case 2:return!s.call(this,h[0],h[1]);case 3:return!s.call(this,h[0],h[1],h[2])}return!s.apply(this,h)}}},63950(w){w.exports=function(){}},10124(w,N,s){var h=s(9325);w.exports=function(){return h.Date.now()}},90179(w,N,s){var h=s(34932),v=s(9999),f=s(19931),y=s(31769),m=s(21791),g=s(53138),S=s(38816),_=s(83349),T=S((function(I,j){var M={};if(I==null)return M;var z=!1;j=h(j,(function(Y){return Y=y(Y,I),z||(z=Y.length>1),Y})),m(I,_(I),M),z&&(M=v(M,7,g));for(var K=j.length;K--;)f(M,j[K]);return M}));w.exports=T},50583(w,N,s){var h=s(47237),v=s(17255),f=s(28586),y=s(77797);w.exports=function(g){return f(g)?h(y(g)):v(g)}},84195(w,N,s){var h=s(66977),v=s(38816),f=v((function(y,m){return h(y,256,void 0,void 0,void 0,m)}));w.exports=f},40860(w,N,s){var h=s(40882),v=s(80909),f=s(15389),y=s(85558),m=s(56449);w.exports=function(S,_,T){var I=m(S)?h:y,j=arguments.length<3;return I(S,f(_,4),T,j,v)}},63560(w,N,s){var h=s(73170);w.exports=function(f,y,m){return f==null?f:h(f,y,m)}},42426(w,N,s){var h=s(14248),v=s(15389),f=s(90916),y=s(56449),m=s(36800);w.exports=function(S,_,T){var I=y(S)?h:f;return T&&m(S,_,T)&&(_=void 0),I(S,v(_,3))}},63345(w){w.exports=function(){return[]}},89935(w){w.exports=function(){return!1}},17400(w,N,s){var h=s(99374),v=1/0;w.exports=function(y){return y?(y=h(y))===v||y===-1/0?17976931348623157e292*(y<0?-1:1):y==y?y:0:y===0?y:0}},61489(w,N,s){var h=s(17400);w.exports=function(f){var y=h(f),m=y%1;return y==y?m?y-m:y:0}},80218(w,N,s){var h=s(13222);w.exports=function(f){return h(f).toLowerCase()}},99374(w,N,s){var h=s(54128),v=s(23805),f=s(44394),y=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,g=/^0o[0-7]+$/i,S=parseInt;w.exports=function(T){if(typeof T=="number")return T;if(f(T))return NaN;if(v(T)){var I=typeof T.valueOf=="function"?T.valueOf():T;T=v(I)?I+"":I}if(typeof T!="string")return T===0?T:+T;T=h(T);var j=m.test(T);return j||g.test(T)?S(T.slice(2),j?2:8):y.test(T)?NaN:+T}},42072(w,N,s){var h=s(34932),v=s(23007),f=s(56449),y=s(44394),m=s(61802),g=s(77797),S=s(13222);w.exports=function(T){return f(T)?h(T,g):y(T)?[T]:v(m(S(T)))}},69884(w,N,s){var h=s(21791),v=s(37241);w.exports=function(y){return h(y,v(y))}},13222(w,N,s){var h=s(77556);w.exports=function(f){return f==null?"":h(f)}},55808(w,N,s){var h=s(12507)("toUpperCase");w.exports=h},66645(w,N,s){var h=s(1733),v=s(45434),f=s(13222),y=s(22225);w.exports=function(g,S,_){return g=f(g),(S=_?void 0:S)===void 0?v(g)?y(g):h(g):g.match(S)||[]}},53758(w,N,s){var h=s(30980),v=s(56017),f=s(94033),y=s(56449),m=s(40346),g=s(80257),S=Object.prototype.hasOwnProperty;function _(T){if(m(T)&&!y(T)&&!(T instanceof h)){if(T instanceof v)return T;if(S.call(T,"__wrapped__"))return g(T)}return new v(T)}_.prototype=f.prototype,_.prototype.constructor=_,w.exports=_},47248(w,N,s){var h=s(16547),v=s(51234);w.exports=function(y,m){return v(y||[],m||[],h)}},43768(w,N,s){var h=s(45981),v=s(85587);N.highlight=y,N.highlightAuto=function(_,T){var I,j,M,z,K=T||{},Y=K.subset||h.listLanguages();K.prefix;var B=Y.length,X=-1;if(typeof _!="string")throw v("Expected `string` for value, got `%s`",_);for(j={relevance:0,language:null,value:[]},I={relevance:0,language:null,value:[]};++Xj.relevance&&(j=M),M.relevance>I.relevance&&(j=I,I=M));return j.language&&(I.secondBest=j),I},N.registerLanguage=function(_,T){h.registerLanguage(_,T)},N.listLanguages=function(){return h.listLanguages()},N.registerAlias=function(_,T){var I,j=_;T&&((j={})[_]=T);for(I in j)h.registerAliases(j[I],{languageName:I})},m.prototype.addText=function(_){var T,I,j=this.stack;_!==""&&(T=j[j.length-1],(I=T.children[T.children.length-1])&&I.type==="text"?I.value+=_:T.children.push({type:"text",value:_}))},m.prototype.addKeyword=function(_,T){this.openNode(T),this.addText(_),this.closeNode()},m.prototype.addSublanguage=function(_,T){var I=this.stack,j=I[I.length-1],M=_.rootNode.children,z=T?{type:"element",tagName:"span",properties:{className:[T]},children:M}:M;j.children=j.children.concat(z)},m.prototype.openNode=function(_){var T=this.stack,I=this.options.classPrefix+_,j=T[T.length-1],M={type:"element",tagName:"span",properties:{className:[I]},children:[]};j.children.push(M),T.push(M)},m.prototype.closeNode=function(){this.stack.pop()},m.prototype.closeAllNodes=g,m.prototype.finalize=g,m.prototype.toHTML=function(){return""};var f="hljs-";function y(S,_,T){var I,j=h.configure({}),M=(T||{}).prefix;if(typeof S!="string")throw v("Expected `string` for name, got `%s`",S);if(!h.getLanguage(S))throw v("Unknown language: `%s` is not registered",S);if(typeof _!="string")throw v("Expected `string` for value, got `%s`",_);if(M==null&&(M=f),h.configure({__emitter:m,classPrefix:M}),I=h.highlight(_,{language:S,ignoreIllegals:!0}),h.configure(j||{}),I.errorRaised)throw I.errorRaised;return{relevance:I.relevance,language:I.language,value:I.emitter.rootNode.children}}function m(S){this.options=S,this.rootNode={children:[]},this.stack=[this.rootNode]}function g(){}},71514(w){w.exports=Math.abs},58968(w){w.exports=Math.floor},94459(w){w.exports=Number.isNaN||function(s){return s!=s}},6188(w){w.exports=Math.max},68002(w){w.exports=Math.min},75880(w){w.exports=Math.pow},70414(w){w.exports=Math.round},73093(w,N,s){var h=s(94459);w.exports=function(f){return h(f)||f===0?f:f<0?-1:1}},92340(w,N,s){const h=s(6048);function v(y){return typeof y=="string"?m=>m.element===y:y.constructor&&y.extend?m=>m instanceof y:y}class f{constructor(m){this.elements=m||[]}toValue(){return this.elements.map((m=>m.toValue()))}map(m,g){return this.elements.map(m,g)}flatMap(m,g){return this.map(m,g).reduce(((S,_)=>S.concat(_)),[])}compactMap(m,g){const S=[];return this.forEach((_=>{const T=m.bind(g)(_);T&&S.push(T)})),S}filter(m,g){return m=v(m),new f(this.elements.filter(m,g))}reject(m,g){return m=v(m),new f(this.elements.filter(h(m),g))}find(m,g){return m=v(m),this.elements.find(m,g)}forEach(m,g){this.elements.forEach(m,g)}reduce(m,g){return this.elements.reduce(m,g)}includes(m){return this.elements.some((g=>g.equals(m)))}shift(){return this.elements.shift()}unshift(m){this.elements.unshift(this.refract(m))}push(m){return this.elements.push(this.refract(m)),this}add(m){this.push(m)}get(m){return this.elements[m]}getValue(m){const g=this.elements[m];if(g)return g.toValue()}get length(){return this.elements.length}get isEmpty(){return this.elements.length===0}get first(){return this.elements[0]}}typeof Symbol<"u"&&(f.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),w.exports=f},55973(w){class N{constructor(h,v){this.key=h,this.value=v}clone(){const h=new N;return this.key&&(h.key=this.key.clone()),this.value&&(h.value=this.value.clone()),h}}w.exports=N},3110(w,N,s){const h=s(5187),v=s(85015),f=s(98023),y=s(53812),m=s(23805),g=s(85105),S=s(86804);class _{constructor(I){this.elementMap={},this.elementDetection=[],this.Element=S.Element,this.KeyValuePair=S.KeyValuePair,I&&I.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(I){return I.namespace&&I.namespace({base:this}),I.load&&I.load({base:this}),this}useDefault(){return this.register("null",S.NullElement).register("string",S.StringElement).register("number",S.NumberElement).register("boolean",S.BooleanElement).register("array",S.ArrayElement).register("object",S.ObjectElement).register("member",S.MemberElement).register("ref",S.RefElement).register("link",S.LinkElement),this.detect(h,S.NullElement,!1).detect(v,S.StringElement,!1).detect(f,S.NumberElement,!1).detect(y,S.BooleanElement,!1).detect(Array.isArray,S.ArrayElement,!1).detect(m,S.ObjectElement,!1),this}register(I,j){return this._elements=void 0,this.elementMap[I]=j,this}unregister(I){return this._elements=void 0,delete this.elementMap[I],this}detect(I,j,M){return M===void 0||M?this.elementDetection.unshift([I,j]):this.elementDetection.push([I,j]),this}toElement(I){if(I instanceof this.Element)return I;let j;for(let M=0;M{const j=I[0].toUpperCase()+I.substr(1);this._elements[j]=this.elementMap[I]}))),this._elements}get serialiser(){return new g(this)}}g.prototype.Namespace=_,w.exports=_},10866(w,N,s){const h=s(6048),v=s(92340);class f extends v{map(m,g){return this.elements.map((S=>m.bind(g)(S.value,S.key,S)))}filter(m,g){return new f(this.elements.filter((S=>m.bind(g)(S.value,S.key,S))))}reject(m,g){return this.filter(h(m.bind(g)))}forEach(m,g){return this.elements.forEach(((S,_)=>{m.bind(g)(S.value,S.key,S,_)}))}keys(){return this.map(((m,g)=>g.toValue()))}values(){return this.map((m=>m.toValue()))}}w.exports=f},86804(w,N,s){const h=s(10316),v=s(41067),f=s(71167),y=s(40239),m=s(12242),g=s(6233),S=s(87726),_=s(61045),T=s(86303),I=s(14540),j=s(92340),M=s(10866),z=s(55973);function K(Y){return Y instanceof h?Y:typeof Y=="string"?new f(Y):typeof Y=="number"?new y(Y):typeof Y=="boolean"?new m(Y):Y===null?new v:Array.isArray(Y)?new g(Y.map(K)):typeof Y=="object"?new _(Y):Y}h.prototype.ObjectElement=_,h.prototype.RefElement=I,h.prototype.MemberElement=S,h.prototype.refract=K,j.prototype.refract=K,w.exports={Element:h,NullElement:v,StringElement:f,NumberElement:y,BooleanElement:m,ArrayElement:g,MemberElement:S,ObjectElement:_,LinkElement:T,RefElement:I,refract:K,ArraySlice:j,ObjectSlice:M,KeyValuePair:z}},86303(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f||[],y,m),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(f){this.attributes.set("relation",f)}get href(){return this.attributes.get("href")}set href(f){this.attributes.set("href",f)}}},14540(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f||[],y,m),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(f){this.attributes.set("path",f)}}},34035(w,N,s){const h=s(3110),v=s(86804);N.g$=h,N.KeyValuePair=s(55973),N.G6=v.ArraySlice,N.ot=v.ObjectSlice,N.Hg=v.Element,N.Om=v.StringElement,N.kT=v.NumberElement,N.bd=v.BooleanElement,N.Os=v.NullElement,N.wE=v.ArrayElement,N.Sh=v.ObjectElement,N.Pr=v.MemberElement,N.sI=v.RefElement,N.Ft=v.LinkElement,N.e=v.refract,s(85105),s(75147)},6233(w,N,s){const h=s(6048),v=s(10316),f=s(92340);class y extends v{constructor(g,S,_){super(g||[],S,_),this.element="array"}primitive(){return"array"}get(g){return this.content[g]}getValue(g){const S=this.get(g);if(S)return S.toValue()}getIndex(g){return this.content[g]}set(g,S){return this.content[g]=this.refract(S),this}remove(g){const S=this.content.splice(g,1);return S.length?S[0]:null}map(g,S){return this.content.map(g,S)}flatMap(g,S){return this.map(g,S).reduce(((_,T)=>_.concat(T)),[])}compactMap(g,S){const _=[];return this.forEach((T=>{const I=g.bind(S)(T);I&&_.push(I)})),_}filter(g,S){return new f(this.content.filter(g,S))}reject(g,S){return this.filter(h(g),S)}reduce(g,S){let _,T;S!==void 0?(_=0,T=this.refract(S)):(_=1,T=this.primitive()==="object"?this.first.value:this.first);for(let I=_;I{g.bind(S)(_,this.refract(T))}))}shift(){return this.content.shift()}unshift(g){this.content.unshift(this.refract(g))}push(g){return this.content.push(this.refract(g)),this}add(g){this.push(g)}findElements(g,S){const _=S||{},T=!!_.recursive,I=_.results===void 0?[]:_.results;return this.forEach(((j,M,z)=>{T&&j.findElements!==void 0&&j.findElements(g,{results:I,recursive:T}),g(j,M,z)&&I.push(j)})),I}find(g){return new f(this.findElements(g,{recursive:!0}))}findByElement(g){return this.find((S=>S.element===g))}findByClass(g){return this.find((S=>S.classes.includes(g)))}getById(g){return this.find((S=>S.id.toValue()===g)).first}includes(g){return this.content.some((S=>S.equals(g)))}contains(g){return this.includes(g)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(g){return new this.constructor(this.content.concat(g.content))}"fantasy-land/concat"(g){return this.concat(g)}"fantasy-land/map"(g){return new this.constructor(this.map(g))}"fantasy-land/chain"(g){return this.map((S=>g(S)),this).reduce(((S,_)=>S.concat(_)),this.empty())}"fantasy-land/filter"(g){return new this.constructor(this.content.filter(g))}"fantasy-land/reduce"(g,S){return this.content.reduce(g,S)}get length(){return this.content.length}get isEmpty(){return this.content.length===0}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}y.empty=function(){return new this},y["fantasy-land/empty"]=y.empty,typeof Symbol<"u"&&(y.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),w.exports=y},12242(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f,y,m),this.element="boolean"}primitive(){return"boolean"}}},10316(w,N,s){const h=s(2404),v=s(55973),f=s(92340);class y{constructor(g,S,_){S&&(this.meta=S),_&&(this.attributes=_),this.content=g}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((g=>{g.parent=this,g.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const g=new this.constructor;return g.element=this.element,this.meta.length&&(g._meta=this.meta.clone()),this.attributes.length&&(g._attributes=this.attributes.clone()),this.content?this.content.clone?g.content=this.content.clone():Array.isArray(this.content)?g.content=this.content.map((S=>S.clone())):g.content=this.content:g.content=this.content,g}toValue(){return this.content instanceof y?this.content.toValue():this.content instanceof v?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((g=>g.toValue()),this):this.content}toRef(g){if(this.id.toValue()==="")throw Error("Cannot create reference to an element that does not contain an ID");const S=new this.RefElement(this.id.toValue());return g&&(S.path=g),S}findRecursive(...g){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const S=g.pop();let _=new f;const T=(j,M)=>(j.push(M),j),I=(j,M)=>{M.element===S&&j.push(M);const z=M.findRecursive(S);return z&&z.reduce(T,j),M.content instanceof v&&(M.content.key&&I(j,M.content.key),M.content.value&&I(j,M.content.value)),j};return this.content&&(this.content.element&&I(_,this.content),Array.isArray(this.content)&&this.content.reduce(I,_)),g.isEmpty||(_=_.filter((j=>{let M=j.parents.map((z=>z.element));for(const z in g){const K=g[z],Y=M.indexOf(K);if(Y===-1)return!1;M=M.splice(0,Y)}return!0}))),_}set(g){return this.content=g,this}equals(g){return h(this.toValue(),g)}getMetaProperty(g,S){if(!this.meta.hasKey(g)){if(this.isFrozen){const _=this.refract(S);return _.freeze(),_}this.meta.set(g,S)}return this.meta.get(g)}setMetaProperty(g,S){this.meta.set(g,S)}get element(){return this._storedElement||"element"}set element(g){this._storedElement=g}get content(){return this._content}set content(g){if(g instanceof y)this._content=g;else if(g instanceof f)this.content=g.elements;else if(typeof g=="string"||typeof g=="number"||typeof g=="boolean"||g==="null"||g==null)this._content=g;else if(g instanceof v)this._content=g;else if(Array.isArray(g))this._content=g.map(this.refract);else{if(typeof g!="object")throw new Error("Cannot set content to given value");this._content=Object.keys(g).map((S=>new this.MemberElement(S,g[S])))}}get meta(){if(!this._meta){if(this.isFrozen){const g=new this.ObjectElement;return g.freeze(),g}this._meta=new this.ObjectElement}return this._meta}set meta(g){g instanceof this.ObjectElement?this._meta=g:this.meta.set(g||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const g=new this.ObjectElement;return g.freeze(),g}this._attributes=new this.ObjectElement}return this._attributes}set attributes(g){g instanceof this.ObjectElement?this._attributes=g:this.attributes.set(g||{})}get id(){return this.getMetaProperty("id","")}set id(g){this.setMetaProperty("id",g)}get classes(){return this.getMetaProperty("classes",[])}set classes(g){this.setMetaProperty("classes",g)}get title(){return this.getMetaProperty("title","")}set title(g){this.setMetaProperty("title",g)}get description(){return this.getMetaProperty("description","")}set description(g){this.setMetaProperty("description",g)}get links(){return this.getMetaProperty("links",[])}set links(g){this.setMetaProperty("links",g)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:g}=this;const S=new f;for(;g;)S.push(g),g=g.parent;return S}get children(){if(Array.isArray(this.content))return new f(this.content);if(this.content instanceof v){const g=new f([this.content.key]);return this.content.value&&g.push(this.content.value),g}return this.content instanceof y?new f([this.content]):new f}get recursiveChildren(){const g=new f;return this.children.forEach((S=>{g.push(S),S.recursiveChildren.forEach((_=>{g.push(_)}))})),g}}w.exports=y},87726(w,N,s){const h=s(55973),v=s(10316);w.exports=class extends v{constructor(y,m,g,S){super(new h,g,S),this.element="member",this.key=y,this.value=m}get key(){return this.content.key}set key(y){this.content.key=this.refract(y)}get value(){return this.content.value}set value(y){this.content.value=this.refract(y)}}},41067(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f||null,y,m),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},40239(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f,y,m),this.element="number"}primitive(){return"number"}}},61045(w,N,s){const h=s(6048),v=s(23805),f=s(6233),y=s(87726),m=s(10866);w.exports=class extends f{constructor(S,_,T){super(S||[],_,T),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((S,_)=>(S[_.key.toValue()]=_.value?_.value.toValue():void 0,S)),{})}get(S){const _=this.getMember(S);if(_)return _.value}getMember(S){if(S!==void 0)return this.content.find((_=>_.key.toValue()===S))}remove(S){let _=null;return this.content=this.content.filter((T=>T.key.toValue()!==S||(_=T,!1))),_}getKey(S){const _=this.getMember(S);if(_)return _.key}set(S,_){if(v(S))return Object.keys(S).forEach((j=>{this.set(j,S[j])})),this;const T=S,I=this.getMember(T);return I?I.value=_:this.content.push(new y(T,_)),this}keys(){return this.content.map((S=>S.key.toValue()))}values(){return this.content.map((S=>S.value.toValue()))}hasKey(S){return this.content.some((_=>_.key.equals(S)))}items(){return this.content.map((S=>[S.key.toValue(),S.value.toValue()]))}map(S,_){return this.content.map((T=>S.bind(_)(T.value,T.key,T)))}compactMap(S,_){const T=[];return this.forEach(((I,j,M)=>{const z=S.bind(_)(I,j,M);z&&T.push(z)})),T}filter(S,_){return new m(this.content).filter(S,_)}reject(S,_){return this.filter(h(S),_)}forEach(S,_){return this.content.forEach((T=>S.bind(_)(T.value,T.key,T)))}}},71167(w,N,s){const h=s(10316);w.exports=class extends h{constructor(f,y,m){super(f,y,m),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},75147(w,N,s){const h=s(85105);w.exports=class extends h{serialise(f){if(!(f instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${f}\` is not an Element instance`);let y;f._attributes&&f.attributes.get("variable")&&(y=f.attributes.get("variable"));const m={element:f.element};f._meta&&f._meta.length>0&&(m.meta=this.serialiseObject(f.meta));const g=f.element==="enum"||f.attributes.keys().indexOf("enumerations")!==-1;if(g){const S=this.enumSerialiseAttributes(f);S&&(m.attributes=S)}else if(f._attributes&&f._attributes.length>0){let{attributes:S}=f;S.get("metadata")&&(S=S.clone(),S.set("meta",S.get("metadata")),S.remove("metadata")),f.element==="member"&&y&&(S=S.clone(),S.remove("variable")),S.length>0&&(m.attributes=this.serialiseObject(S))}if(g)m.content=this.enumSerialiseContent(f,m);else if(this[`${f.element}SerialiseContent`])m.content=this[`${f.element}SerialiseContent`](f,m);else if(f.content!==void 0){let S;y&&f.content.key?(S=f.content.clone(),S.key.attributes.set("variable",y),S=this.serialiseContent(S)):S=this.serialiseContent(f.content),this.shouldSerialiseContent(f,S)&&(m.content=S)}else this.shouldSerialiseContent(f,f.content)&&f instanceof this.namespace.elements.Array&&(m.content=[]);return m}shouldSerialiseContent(f,y){return f.element==="parseResult"||f.element==="httpRequest"||f.element==="httpResponse"||f.element==="category"||f.element==="link"||y!==void 0&&(!Array.isArray(y)||y.length!==0)}refSerialiseContent(f,y){return delete y.attributes,{href:f.toValue(),path:f.path.toValue()}}sourceMapSerialiseContent(f){return f.toValue()}dataStructureSerialiseContent(f){return[this.serialiseContent(f.content)]}enumSerialiseAttributes(f){const y=f.attributes.clone(),m=y.remove("enumerations")||new this.namespace.elements.Array([]),g=y.get("default");let S=y.get("samples")||new this.namespace.elements.Array([]);if(g&&g.content&&(g.content.attributes&&g.content.attributes.remove("typeAttributes"),y.set("default",new this.namespace.elements.Array([g.content]))),S.forEach((_=>{_.content&&_.content.element&&_.content.attributes.remove("typeAttributes")})),f.content&&m.length!==0&&S.unshift(f.content),S=S.map((_=>_ instanceof this.namespace.elements.Array?[_]:new this.namespace.elements.Array([_.content]))),S.length&&y.set("samples",S),y.length>0)return this.serialiseObject(y)}enumSerialiseContent(f){if(f._attributes){const y=f.attributes.get("enumerations");if(y&&y.length>0)return y.content.map((m=>{const g=m.clone();return g.attributes.remove("typeAttributes"),this.serialise(g)}))}if(f.content){const y=f.content.clone();return y.attributes.remove("typeAttributes"),[this.serialise(y)]}return[]}deserialise(f){if(typeof f=="string")return new this.namespace.elements.String(f);if(typeof f=="number")return new this.namespace.elements.Number(f);if(typeof f=="boolean")return new this.namespace.elements.Boolean(f);if(f===null)return new this.namespace.elements.Null;if(Array.isArray(f))return new this.namespace.elements.Array(f.map(this.deserialise,this));const y=this.namespace.getElementClass(f.element),m=new y;m.element!==f.element&&(m.element=f.element),f.meta&&this.deserialiseObject(f.meta,m.meta),f.attributes&&this.deserialiseObject(f.attributes,m.attributes);const g=this.deserialiseContent(f.content);if(g===void 0&&m.content!==null||(m.content=g),m.element==="enum"){m.content&&m.attributes.set("enumerations",m.content);let S=m.attributes.get("samples");if(m.attributes.remove("samples"),S){const T=S;S=new this.namespace.elements.Array,T.forEach((j=>{j.forEach((M=>{const z=new y(M);z.element=m.element,S.push(z)}))}));const I=S.shift();m.content=I?I.content:void 0,m.attributes.set("samples",S)}else m.content=void 0;let _=m.attributes.get("default");if(_&&_.length>0){_=_.get(0);const T=new y(_);T.element=m.element,m.attributes.set("default",T)}}else if(m.element==="dataStructure"&&Array.isArray(m.content))[m.content]=m.content;else if(m.element==="category"){const S=m.attributes.get("meta");S&&(m.attributes.set("metadata",S),m.attributes.remove("meta"))}else m.element==="member"&&m.key&&m.key._attributes&&m.key._attributes.getValue("variable")&&(m.attributes.set("variable",m.key.attributes.get("variable")),m.key.attributes.remove("variable"));return m}serialiseContent(f){if(f instanceof this.namespace.elements.Element)return this.serialise(f);if(f instanceof this.namespace.KeyValuePair){const y={key:this.serialise(f.key)};return f.value&&(y.value=this.serialise(f.value)),y}return f&&f.map?f.map(this.serialise,this):f}deserialiseContent(f){if(f){if(f.element)return this.deserialise(f);if(f.key){const y=new this.namespace.KeyValuePair(this.deserialise(f.key));return f.value&&(y.value=this.deserialise(f.value)),y}if(f.map)return f.map(this.deserialise,this)}return f}shouldRefract(f){return!!(f._attributes&&f.attributes.keys().length||f._meta&&f.meta.keys().length)||f.element!=="enum"&&(f.element!==f.primitive()||f.element==="member")}convertKeyToRefract(f,y){return this.shouldRefract(y)?this.serialise(y):y.element==="enum"?this.serialiseEnum(y):y.element==="array"?y.map((m=>this.shouldRefract(m)||f==="default"?this.serialise(m):m.element==="array"||m.element==="object"||m.element==="enum"?m.children.map((g=>this.serialise(g))):m.toValue())):y.element==="object"?(y.content||[]).map(this.serialise,this):y.toValue()}serialiseEnum(f){return f.children.map((y=>this.serialise(y)))}serialiseObject(f){const y={};return f.forEach(((m,g)=>{if(m){const S=g.toValue();y[S]=this.convertKeyToRefract(S,m)}})),y}deserialiseObject(f,y){Object.keys(f).forEach((m=>{y.set(m,this.deserialise(f[m]))}))}}},85105(w){w.exports=class{constructor(s){this.namespace=s||new this.Namespace}serialise(s){if(!(s instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${s}\` is not an Element instance`);const h={element:s.element};s._meta&&s._meta.length>0&&(h.meta=this.serialiseObject(s.meta)),s._attributes&&s._attributes.length>0&&(h.attributes=this.serialiseObject(s.attributes));const v=this.serialiseContent(s.content);return v!==void 0&&(h.content=v),h}deserialise(s){if(!s.element)throw new Error("Given value is not an object containing an element name");const h=new(this.namespace.getElementClass(s.element));h.element!==s.element&&(h.element=s.element),s.meta&&this.deserialiseObject(s.meta,h.meta),s.attributes&&this.deserialiseObject(s.attributes,h.attributes);const v=this.deserialiseContent(s.content);return v===void 0&&h.content!==null||(h.content=v),h}serialiseContent(s){if(s instanceof this.namespace.elements.Element)return this.serialise(s);if(s instanceof this.namespace.KeyValuePair){const h={key:this.serialise(s.key)};return s.value&&(h.value=this.serialise(s.value)),h}return s&&s.map?s.length===0?void 0:s.map(this.serialise,this):s}deserialiseContent(s){if(s){if(s.element)return this.deserialise(s);if(s.key){const h=new this.namespace.KeyValuePair(this.deserialise(s.key));return s.value&&(h.value=this.deserialise(s.value)),h}if(s.map)return s.map(this.deserialise,this)}return s}serialiseObject(s){const h={};if(s.forEach(((v,f)=>{v&&(h[f.toValue()]=this.serialise(v))})),Object.keys(h).length!==0)return h}deserialiseObject(s,h){Object.keys(s).forEach((v=>{h.set(v,this.deserialise(s[v]))}))}}},76578(w){w.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},65606(w){var N,s,h=w.exports={};function v(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}function y(z){if(N===setTimeout)return setTimeout(z,0);if((N===v||!N)&&setTimeout)return N=setTimeout,setTimeout(z,0);try{return N(z,0)}catch{try{return N.call(null,z,0)}catch{return N.call(this,z,0)}}}(function(){try{N=typeof setTimeout=="function"?setTimeout:v}catch{N=v}try{s=typeof clearTimeout=="function"?clearTimeout:f}catch{s=f}})();var m,g=[],S=!1,_=-1;function T(){S&&m&&(S=!1,m.length?g=m.concat(g):_=-1,g.length&&I())}function I(){if(!S){var z=y(T);S=!0;for(var K=g.length;K;){for(m=g,g=[];++_1)for(var Y=1;Yf)throw new RangeError("requested too many random bytes");var T=y.allocUnsafe(S);if(S>0)if(S>v)for(var I=0;I=0||(qe[Ve]=ge[Ve]);return qe})(B,X);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(B);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(B,te)&&(se[te]=B[te])}return se}function S(B,X){var te=Object.keys(B);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(B);X&&(ie=ie.filter((function(se){return Object.getOwnPropertyDescriptor(B,se).enumerable}))),te.push.apply(te,ie)}return te}function _(B){for(var X=1;X"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var ie,se=z(B);if(X){var Te=z(this).constructor;ie=Reflect.construct(se,arguments,Te)}else ie=se.apply(this,arguments);return(function(ge,ke){if(ke&&(h(ke)==="object"||typeof ke=="function"))return ke;if(ke!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M(ge)})(this,ie)}}function M(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function z(B){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(te){return te.__proto__||Object.getPrototypeOf(te)},z(B)}function K(B,X,te){return X in B?Object.defineProperty(B,X,{value:te,enumerable:!0,configurable:!0,writable:!0}):B[X]=te,B}var Y=(function(B){(function(se,Te){if(typeof Te!="function"&&Te!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(Te&&Te.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),Te&&I(se,Te)})(te,B);var X=j(te);function te(ie){var se;(function(ge,ke){if(!(ge instanceof ke))throw new TypeError("Cannot call a class as a function")})(this,te),K(M(se=X.call(this,ie)),"onChange",(function(he){he.persist();var ge=se.state.value,ke=se.props.minLength;se.setState({value:he.target.value},(function(){var Ve=se.state.value;Ve.length>=ke?se.notify(he):ge.length>Ve.length&&se.notify(_(_({},he),{},{target:_(_({},he.target),{},{value:""})}))}))})),K(M(se),"onKeyDown",(function(he){he.key==="Enter"&&se.forceNotify(he);var ge=se.props.onKeyDown;ge&&(he.persist(),ge(he))})),K(M(se),"onBlur",(function(he){se.forceNotify(he);var ge=se.props.onBlur;ge&&(he.persist(),ge(he))})),K(M(se),"createNotifier",(function(he){if(he<0)se.notify=function(){return null};else if(he===0)se.notify=se.doNotify;else{var ge=(0,f.default)((function(ke){se.isDebouncing=!1,se.doNotify(ke)}),he);se.notify=function(ke){se.isDebouncing=!0,ge(ke)},se.flush=function(){return ge.flush()},se.cancel=function(){se.isDebouncing=!1,ge.cancel()}}})),K(M(se),"doNotify",(function(){se.props.onChange.apply(void 0,arguments)})),K(M(se),"forceNotify",(function(he){var ge=se.props.debounceTimeout;if(se.isDebouncing||!(ge>0)){se.cancel&&se.cancel();var ke=se.state.value,Ve=se.props.minLength;ke.length>=Ve?se.doNotify(he):se.doNotify(_(_({},he),{},{target:_(_({},he.target),{},{value:ke})}))}})),se.isDebouncing=!1,se.state={value:ie.value===void 0||ie.value===null?"":ie.value};var Te=se.props.debounceTimeout;return se.createNotifier(Te),se}return(function(se,Te,he){return Te&&T(se.prototype,Te),Object.defineProperty(se,"prototype",{writable:!1}),se})(te,[{key:"componentDidUpdate",value:function(se){if(!this.isDebouncing){var Te=this.props,he=Te.value,ge=Te.debounceTimeout,ke=se.debounceTimeout,Ve=se.value,He=this.state.value;he!==void 0&&Ve!==he&&He!==he&&this.setState({value:he}),ge!==ke&&this.createNotifier(ge)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var se,Te,he=this.props,ge=he.element,ke=(he.onChange,he.value,he.minLength,he.debounceTimeout,he.forceNotifyByEnter),Ve=he.forceNotifyOnBlur,He=he.onKeyDown,qe=he.onBlur,nt=he.inputRef,gt=g(he,y),Re=this.state.value;se=ke?{onKeyDown:this.onKeyDown}:He?{onKeyDown:He}:{},Te=Ve?{onBlur:this.onBlur}:qe?{onBlur:qe}:{};var u=nt?{ref:nt}:{};return v.default.createElement(ge,_(_(_(_({},gt),{},{onChange:this.onChange,value:Re},se),Te),u))}}]),te})(v.default.PureComponent);N.DebounceInput=Y,K(Y,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0})},24677(w,N,s){var h=s(81214).DebounceInput;h.DebounceInput=h,w.exports=h},22551(w,N,s){var h=s(96540),v=s(69982);function f(i){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+i,b=1;b"u"||window.document===void 0||window.document.createElement===void 0),T=Object.prototype.hasOwnProperty,I=/^[: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]*$/,j={},M={};function z(i,l,b,C,$,ee,ue){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=C,this.attributeNamespace=$,this.mustUseProperty=b,this.propertyName=i,this.type=l,this.sanitizeURL=ee,this.removeEmptyString=ue}var K={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(i){K[i]=new z(i,0,!1,i,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(i){var l=i[0];K[l]=new z(l,1,!1,i[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(i){K[i]=new z(i,2,!1,i.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(i){K[i]=new z(i,2,!1,i,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(i){K[i]=new z(i,3,!1,i.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(i){K[i]=new z(i,3,!0,i,null,!1,!1)})),["capture","download"].forEach((function(i){K[i]=new z(i,4,!1,i,null,!1,!1)})),["cols","rows","size","span"].forEach((function(i){K[i]=new z(i,6,!1,i,null,!1,!1)})),["rowSpan","start"].forEach((function(i){K[i]=new z(i,5,!1,i.toLowerCase(),null,!1,!1)}));var Y=/[\-:]([a-z])/g;function B(i){return i[1].toUpperCase()}function X(i,l,b,C){var $=K.hasOwnProperty(l)?K[l]:null;($!==null?$.type!==0:C||!(2Ce}return!1})(l,b,$,C)&&(b=null),C||$===null?(function(ue){return!!T.call(M,ue)||!T.call(j,ue)&&(I.test(ue)?M[ue]=!0:(j[ue]=!0,!1))})(l)&&(b===null?i.removeAttribute(l):i.setAttribute(l,""+b)):$.mustUseProperty?i[$.propertyName]=b===null?$.type!==3&&"":b:(l=$.attributeName,C=$.attributeNamespace,b===null?i.removeAttribute(l):(b=($=$.type)===3||$===4&&b===!0?"":""+b,C?i.setAttributeNS(C,l,b):i.setAttribute(l,b))))}"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(i){var l=i.replace(Y,B);K[l]=new z(l,1,!1,i,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(i){var l=i.replace(Y,B);K[l]=new z(l,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(i){var l=i.replace(Y,B);K[l]=new z(l,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(i){K[i]=new z(i,1,!1,i.toLowerCase(),null,!1,!1)})),K.xlinkHref=new z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(i){K[i]=new z(i,1,!1,i.toLowerCase(),null,!0,!0)}));var te=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ie=Symbol.for("react.element"),se=Symbol.for("react.portal"),Te=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),ge=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),Ve=Symbol.for("react.context"),He=Symbol.for("react.forward_ref"),qe=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),gt=Symbol.for("react.memo"),Re=Symbol.for("react.lazy"),u=Symbol.for("react.offscreen"),at=Symbol.iterator;function Xe(i){return i===null||typeof i!="object"?null:typeof(i=at&&i[at]||i["@@iterator"])=="function"?i:null}var Se,De=Object.assign;function Ke(i){if(Se===void 0)try{throw Error()}catch(b){var l=b.stack.trim().match(/\n( *(at )?)/);Se=l&&l[1]||""}return` +`+Se+i}var ft=!1;function Nt(i,l){if(!i||ft)return"";ft=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(Ue){var C=Ue}Reflect.construct(i,[],l)}else{try{l.call()}catch(Ue){C=Ue}i.call(l.prototype)}else{try{throw Error()}catch(Ue){C=Ue}i()}}catch(Ue){if(Ue&&C&&typeof Ue.stack=="string"){for(var $=Ue.stack.split(` +`),ee=C.stack.split(` +`),ue=$.length-1,Ce=ee.length-1;1<=ue&&0<=Ce&&$[ue]!==ee[Ce];)Ce--;for(;1<=ue&&0<=Ce;ue--,Ce--)if($[ue]!==ee[Ce]){if(ue!==1||Ce!==1)do if(ue--,0>--Ce||$[ue]!==ee[Ce]){var Me=` +`+$[ue].replace(" at new "," at ");return i.displayName&&Me.includes("")&&(Me=Me.replace("",i.displayName)),Me}while(1<=ue&&0<=Ce);break}}}finally{ft=!1,Error.prepareStackTrace=b}return(i=i?i.displayName||i.name:"")?Ke(i):""}function Wt(i){switch(i.tag){case 5:return Ke(i.type);case 16:return Ke("Lazy");case 13:return Ke("Suspense");case 19:return Ke("SuspenseList");case 0:case 2:case 15:return i=Nt(i.type,!1);case 11:return i=Nt(i.type.render,!1);case 1:return i=Nt(i.type,!0);default:return""}}function H(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case Te:return"Fragment";case se:return"Portal";case ge:return"Profiler";case he:return"StrictMode";case qe:return"Suspense";case nt:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case Ve:return(i.displayName||"Context")+".Consumer";case ke:return(i._context.displayName||"Context")+".Provider";case He:var l=i.render;return(i=i.displayName)||(i=(i=l.displayName||l.name||"")!==""?"ForwardRef("+i+")":"ForwardRef"),i;case gt:return(l=i.displayName||null)!==null?l:H(i.type)||"Memo";case Re:l=i._payload,i=i._init;try{return H(i(l))}catch{}}return null}function we(i){var l=i.type;switch(i.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=(i=l.render).displayName||i.name||"",l.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(l);case 8:return l===he?"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 l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function ct(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":case"object":return i;default:return""}}function mt(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function ur(i){i._valueTracker||(i._valueTracker=(function(b){var C=mt(b)?"checked":"value",$=Object.getOwnPropertyDescriptor(b.constructor.prototype,C),ee=""+b[C];if(!b.hasOwnProperty(C)&&$!==void 0&&typeof $.get=="function"&&typeof $.set=="function"){var ue=$.get,Ce=$.set;return Object.defineProperty(b,C,{configurable:!0,get:function(){return ue.call(this)},set:function(Me){ee=""+Me,Ce.call(this,Me)}}),Object.defineProperty(b,C,{enumerable:$.enumerable}),{getValue:function(){return ee},setValue:function(Me){ee=""+Me},stopTracking:function(){b._valueTracker=null,delete b[C]}}}})(i))}function ar(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var b=l.getValue(),C="";return i&&(C=mt(i)?i.checked?"true":"false":i.value),(i=C)!==b&&(l.setValue(i),!0)}function Tt(i){if((i=i||(typeof document<"u"?document:void 0))===void 0)return null;try{return i.activeElement||i.body}catch{return i.body}}function Gt(i,l){var b=l.checked;return De({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:b??i._wrapperState.initialChecked})}function Sr(i,l){var b=l.defaultValue==null?"":l.defaultValue,C=l.checked!=null?l.checked:l.defaultChecked;b=ct(l.value!=null?l.value:b),i._wrapperState={initialChecked:C,initialValue:b,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function kt(i,l){(l=l.checked)!=null&&X(i,"checked",l,!1)}function yt(i,l){kt(i,l);var b=ct(l.value),C=l.type;if(b!=null)C==="number"?(b===0&&i.value===""||i.value!=b)&&(i.value=""+b):i.value!==""+b&&(i.value=""+b);else if(C==="submit"||C==="reset")return void i.removeAttribute("value");l.hasOwnProperty("value")?pe(i,l.type,b):l.hasOwnProperty("defaultValue")&&pe(i,l.type,ct(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(i.defaultChecked=!!l.defaultChecked)}function Zt(i,l,b){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var C=l.type;if(!(C!=="submit"&&C!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+i._wrapperState.initialValue,b||l===i.value||(i.value=l),i.defaultValue=l}(b=i.name)!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,b!==""&&(i.name=b)}function pe(i,l,b){l==="number"&&Tt(i.ownerDocument)===i||(b==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+b&&(i.defaultValue=""+b))}var U=Array.isArray;function Z(i,l,b,C){if(i=i.options,l){l={};for(var $=0;$"+l.valueOf().toString()+"",l=Qe.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,b,C){MSApp.execUnsafeLocalFunction((function(){return $t(i,l)}))}:$t);function rn(i,l){if(l){var b=i.firstChild;if(b&&b===i.lastChild&&b.nodeType===3)return void(b.nodeValue=l)}i.textContent=l}var kr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},An=["Webkit","ms","Moz","O"];function Wr(i,l,b){return l==null||typeof l=="boolean"||l===""?"":b||typeof l!="number"||l===0||kr.hasOwnProperty(i)&&kr[i]?(""+l).trim():l+"px"}function Jn(i,l){for(var b in i=i.style,l)if(l.hasOwnProperty(b)){var C=b.indexOf("--")===0,$=Wr(b,l[b],C);b==="float"&&(b="cssFloat"),C?i.setProperty(b,$):i[b]=$}}Object.keys(kr).forEach((function(i){An.forEach((function(l){l=l+i.charAt(0).toUpperCase()+i.substring(1),kr[l]=kr[i]}))}));var Ea=De({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Zn(i,l){if(l){if(Ea[i]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(f(137,i));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(f(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(f(61))}if(l.style!=null&&typeof l.style!="object")throw Error(f(62))}}function un(i,l){if(i.indexOf("-")===-1)return typeof l.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ti=null;function Oo(i){return(i=i.target||i.srcElement||window).correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Li=null,Fn=null,zo=null;function Vo(i){if(i=cp(i)){if(typeof Li!="function")throw Error(f(280));var l=i.stateNode;l&&(l=up(l),Li(i.stateNode,i.type,l))}}function ds(i){Fn?zo?zo.push(i):zo=[i]:Fn=i}function sr(){if(Fn){var i=Fn,l=zo;if(zo=Fn=null,Vo(i),l)for(i=0;i>>=0,l===0?32:31-(Yl(l)/Xl|0)|0},Yl=Math.log,Xl=Math.LN2,gs=64,ys=4194304;function lo(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&i;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&i;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function mi(i,l){var b=i.pendingLanes;if(b===0)return 0;var C=0,$=i.suspendedLanes,ee=i.pingedLanes,ue=268435455&b;if(ue!==0){var Ce=ue&~$;Ce!==0?C=lo(Ce):(ee&=ue)!==0&&(C=lo(ee))}else(ue=b&~$)!==0?C=lo(ue):ee!==0&&(C=lo(ee));if(C===0)return 0;if(l!==0&&l!==C&&!(l&$)&&(($=C&-C)>=(ee=l&-l)||$===16&&4194240&ee))return l;if(4&C&&(C|=16&b),(l=i.entangledLanes)!==0)for(i=i.entanglements,l&=C;0b;b++)l.push(i);return l}function Ao(i,l,b){i.pendingLanes|=l,l!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),(i=i.eventTimes)[l=31-Ia(l)]=b}function vs(i,l){var b=i.entangledLanes|=l;for(i=i.entanglements;b;){var C=31-Ia(b),$=1<=Si),pl=" ",hl=!1;function xi(i,l){switch(i){case"keyup":return xa.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xs(i){return typeof(i=i.detail)=="object"&&"data"in i?i.data:null}var No=!1,Kc={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ra(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l==="input"?!!Kc[i.type]:l==="textarea"}function dl(i,l,b,C){ds(C),0<(l=vr(l,"onChange")).length&&(b=new $n("onChange","change",null,b,C),i.push({event:b,listeners:l}))}var fl=null,ni=null;function Gc(i){oe(i,0)}function zi(i){if(ar(ru(i)))return i}function lc(i,l){if(i==="change")return l}var Yc=!1;if(_){var ml;if(_){var gl="oninput"in document;if(!gl){var la=document.createElement("div");la.setAttribute("oninput","return;"),gl=typeof la.oninput=="function"}ml=gl}else ml=!1;Yc=ml&&(!document.documentMode||9=l)return{node:C,offset:l-i};i=b}e:{for(;C;){if(C.nextSibling){C=C.nextSibling;break e}C=C.parentNode}C=void 0}C=Xc(C)}}function yl(i,l){return!(!i||!l)&&(i===l||(!i||i.nodeType!==3)&&(l&&l.nodeType===3?yl(i,l.parentNode):"contains"in i?i.contains(l):!!i.compareDocumentPosition&&!!(16&i.compareDocumentPosition(l))))}function Da(){for(var i=window,l=Tt();l instanceof i.HTMLIFrameElement;){try{var b=typeof l.contentWindow.location.href=="string"}catch{b=!1}if(!b)break;l=Tt((i=l.contentWindow).document)}return l}function Hi(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}function Ho(i){var l=Da(),b=i.focusedElem,C=i.selectionRange;if(l!==b&&b&&b.ownerDocument&&yl(b.ownerDocument.documentElement,b)){if(C!==null&&Hi(b)){if(l=C.start,(i=C.end)===void 0&&(i=l),"selectionStart"in b)b.selectionStart=l,b.selectionEnd=Math.min(i,b.value.length);else if((i=(l=b.ownerDocument||document)&&l.defaultView||window).getSelection){i=i.getSelection();var $=b.textContent.length,ee=Math.min(C.start,$);C=C.end===void 0?ee:Math.min(C.end,$),!i.extend&&ee>C&&($=C,C=ee,ee=$),$=ca(b,ee);var ue=ca(b,C);$&&ue&&(i.rangeCount!==1||i.anchorNode!==$.node||i.anchorOffset!==$.offset||i.focusNode!==ue.node||i.focusOffset!==ue.offset)&&((l=l.createRange()).setStart($.node,$.offset),i.removeAllRanges(),ee>C?(i.addRange(l),i.extend(ue.node,ue.offset)):(l.setEnd(ue.node,ue.offset),i.addRange(l)))}}for(l=[],i=b;i=i.parentNode;)i.nodeType===1&&l.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b=document.documentMode,_i=null,cc=null,jn=null,mn=!1;function uc(i,l,b){var C=b.window===b?b.document:b.nodeType===9?b:b.ownerDocument;mn||_i==null||_i!==Tt(C)||("selectionStart"in(C=_i)&&Hi(C)?C={start:C.selectionStart,end:C.selectionEnd}:C={anchorNode:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset},jn&&_s(jn,C)||(jn=C,0<(C=vr(cc,"onSelect")).length&&(l=new $n("onSelect","select",null,l,b),i.push({event:l,listeners:C}),l.target=_i)))}function Os(i,l){var b={};return b[i.toLowerCase()]=l.toLowerCase(),b["Webkit"+i]="webkit"+l,b["Moz"+i]="moz"+l,b}var To={animationend:Os("Animation","AnimationEnd"),animationiteration:Os("Animation","AnimationIteration"),animationstart:Os("Animation","AnimationStart"),transitionend:Os("Transition","TransitionEnd")},Qc={},pc={};function vl(i){if(Qc[i])return Qc[i];if(!To[i])return i;var l,b=To[i];for(l in b)if(b.hasOwnProperty(l)&&l in pc)return Qc[i]=b[l];return i}_&&(pc=document.createElement("div").style,"AnimationEvent"in window||(delete To.animationend.animation,delete To.animationiteration.animation,delete To.animationstart.animation),"TransitionEvent"in window||delete To.transitionend.transition);var Zc=vl("animationend"),eu=vl("animationiteration"),op=vl("animationstart"),tu=vl("transitionend"),ip=new Map,sp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function A(i,l){ip.set(i,l),g(l,[i])}for(var O=0;Onu||(i.current=Td[nu],Td[nu]=null,nu--)}function Cn(i,l){nu++,Td[nu]=i.current,i.current=l}var xl={},Xa=Sl(xl),Oa=Sl(!1),ks=xl;function hc(i,l){var b=i.type.contextTypes;if(!b)return xl;var C=i.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===l)return C.__reactInternalMemoizedMaskedChildContext;var $,ee={};for($ in b)ee[$]=l[$];return C&&((i=i.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,i.__reactInternalMemoizedMaskedChildContext=ee),ee}function Ko(i){return(i=i.childContextTypes)!=null}function sh(){qn(Oa),qn(Xa)}function Xm(i,l,b){if(Xa.current!==xl)throw Error(f(168));Cn(Xa,l),Cn(Oa,b)}function Id(i,l,b){var C=i.stateNode;if(l=l.childContextTypes,typeof C.getChildContext!="function")return b;for(var $ in C=C.getChildContext())if(!($ in l))throw Error(f(108,we(i)||"Unknown",$));return De({},b,C)}function lh(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||xl,ks=Xa.current,Cn(Xa,i),Cn(Oa,Oa.current),!0}function Yr(i,l,b){var C=i.stateNode;if(!C)throw Error(f(169));b?(i=Id(i,l,ks),C.__reactInternalMemoizedMergedChildContext=i,qn(Oa),qn(Xa),Cn(Xa,i)):qn(Oa),Cn(Oa,b)}var As=null,ch=!1,Md=!1;function Qm(i){As===null?As=[i]:As.push(i)}function _l(){if(!Md&&As!==null){Md=!0;var i=0,l=an;try{var b=As;for(an=1;i>=ue,$-=ue,Yi=1<<32-Ia(l)+$|b<<$|C,js=ee+i}else Yi=1<xr?(Qr=Mt,Mt=null):Qr=Mt.sibling;var sn=lt(Ze,Mt,rt[xr],wt);if(sn===null){Mt===null&&(Mt=Qr);break}i&&Mt&&sn.alternate===null&&l(Ze,Mt),Le=ee(sn,Le,xr),Fr===null?nr=sn:Fr.sibling=sn,Fr=sn,Mt=Qr}if(xr===rt.length)return b(Ze,Mt),Un&&dc(Ze,xr),nr;if(Mt===null){for(;xrxr?(Qr=Mt,Mt=null):Qr=Mt.sibling;var wr=lt(Ze,Mt,sn.value,wt);if(wr===null){Mt===null&&(Mt=Qr);break}i&&Mt&&wr.alternate===null&&l(Ze,Mt),Le=ee(wr,Le,xr),Fr===null?nr=wr:Fr.sibling=wr,Fr=wr,Mt=Qr}if(sn.done)return b(Ze,Mt),Un&&dc(Ze,xr),nr;if(Mt===null){for(;!sn.done;xr++,sn=rt.next())(sn=st(Ze,sn.value,wt))!==null&&(Le=ee(sn,Le,xr),Fr===null?nr=sn:Fr.sibling=sn,Fr=sn);return Un&&dc(Ze,xr),nr}for(Mt=C(Ze,Mt);!sn.done;xr++,sn=rt.next())(sn=vt(Mt,Ze,xr,sn.value,wt))!==null&&(i&&sn.alternate!==null&&Mt.delete(sn.key===null?xr:sn.key),Le=ee(sn,Le,xr),Fr===null?nr=sn:Fr.sibling=sn,Fr=sn);return i&&Mt.forEach((function(_r){return l(Ze,_r)})),Un&&dc(Ze,xr),nr}return function Ze(Le,rt,wt,nr){if(typeof wt=="object"&&wt!==null&&wt.type===Te&&wt.key===null&&(wt=wt.props.children),typeof wt=="object"&&wt!==null){switch(wt.$$typeof){case ie:e:{for(var Fr=wt.key,Mt=rt;Mt!==null;){if(Mt.key===Fr){if((Fr=wt.type)===Te){if(Mt.tag===7){b(Le,Mt.sibling),(rt=$(Mt,wt.props.children)).return=Le,Le=rt;break e}}else if(Mt.elementType===Fr||typeof Fr=="object"&&Fr!==null&&Fr.$$typeof===Re&&rg(Fr)===Mt.type){b(Le,Mt.sibling),(rt=$(Mt,wt.props)).ref=fp(Le,Mt,wt),rt.return=Le,Le=rt;break e}b(Le,Mt);break}l(Le,Mt),Mt=Mt.sibling}wt.type===Te?((rt=Xo(wt.props.children,Le.mode,nr,wt.key)).return=Le,Le=rt):((nr=ku(wt.type,wt.key,wt.props,null,Le.mode,nr)).ref=fp(Le,rt,wt),nr.return=Le,Le=nr)}return ue(Le);case se:e:{for(Mt=wt.key;rt!==null;){if(rt.key===Mt){if(rt.tag===4&&rt.stateNode.containerInfo===wt.containerInfo&&rt.stateNode.implementation===wt.implementation){b(Le,rt.sibling),(rt=$(rt,wt.children||[])).return=Le,Le=rt;break e}b(Le,rt);break}l(Le,rt),rt=rt.sibling}(rt=qh(wt,Le.mode,nr)).return=Le,Le=rt}return ue(Le);case Re:return Ze(Le,rt,(Mt=wt._init)(wt._payload),nr)}if(U(wt))return Lt(Le,rt,wt,nr);if(Xe(wt))return xt(Le,rt,wt,nr);mp(Le,wt)}return typeof wt=="string"&&wt!==""||typeof wt=="number"?(wt=""+wt,rt!==null&&rt.tag===6?(b(Le,rt.sibling),(rt=$(rt,wt)).return=Le,Le=rt):(b(Le,rt),(rt=Tp(wt,Le.mode,nr)).return=Le,Le=rt),ue(Le)):b(Le,rt)}}var fc=ph(!0),ng=ph(!1),hh=Sl(null),dh=null,lu=null,Xr=null;function cu(){Xr=lu=dh=null}function uu(i){var l=hh.current;qn(hh),i._currentValue=l}function qd(i,l,b){for(;i!==null;){var C=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,C!==null&&(C.childLanes|=l)):C!==null&&(C.childLanes&l)!==l&&(C.childLanes|=l),i===b)break;i=i.return}}function pu(i,l){dh=i,Xr=lu=null,(i=i.dependencies)!==null&&i.firstContext!==null&&(i.lanes&l&&(Do=!0),i.firstContext=null)}function oi(i){var l=i._currentValue;if(Xr!==i)if(i={context:i,memoizedValue:l,next:null},lu===null){if(dh===null)throw Error(f(308));lu=i,dh.dependencies={lanes:0,firstContext:i}}else lu=lu.next=i;return l}var Ol=null;function gp(i){Ol===null?Ol=[i]:Ol.push(i)}function ag(i,l,b,C){var $=l.interleaved;return $===null?(b.next=b,gp(l)):(b.next=$.next,$.next=b),l.interleaved=b,Ps(i,C)}function Ps(i,l){i.lanes|=l;var b=i.alternate;for(b!==null&&(b.lanes|=l),b=i,i=i.return;i!==null;)i.childLanes|=l,(b=i.alternate)!==null&&(b.childLanes|=l),b=i,i=i.return;return b.tag===3?b.stateNode:null}var kl=!1;function yp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function og(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Ns(i,l){return{eventTime:i,lane:l,tag:0,payload:null,callback:null,next:null}}function Ts(i,l,b){var C=i.updateQueue;if(C===null)return null;if(C=C.shared,2&pn){var $=C.pending;return $===null?l.next=l:(l.next=$.next,$.next=l),C.pending=l,Ps(i,b)}return($=C.interleaved)===null?(l.next=l,gp(C)):(l.next=$.next,$.next=l),C.interleaved=l,Ps(i,b)}function hu(i,l,b){if((l=l.updateQueue)!==null&&(l=l.shared,4194240&b)){var C=l.lanes;b|=C&=i.pendingLanes,l.lanes=b,vs(i,b)}}function fh(i,l){var b=i.updateQueue,C=i.alternate;if(C!==null&&b===(C=C.updateQueue)){var $=null,ee=null;if((b=b.firstBaseUpdate)!==null){do{var ue={eventTime:b.eventTime,lane:b.lane,tag:b.tag,payload:b.payload,callback:b.callback,next:null};ee===null?$=ee=ue:ee=ee.next=ue,b=b.next}while(b!==null);ee===null?$=ee=l:ee=ee.next=l}else $=ee=l;return b={baseState:C.baseState,firstBaseUpdate:$,lastBaseUpdate:ee,shared:C.shared,effects:C.effects},void(i.updateQueue=b)}(i=b.lastBaseUpdate)===null?b.firstBaseUpdate=l:i.next=l,b.lastBaseUpdate=l}function mh(i,l,b,C){var $=i.updateQueue;kl=!1;var ee=$.firstBaseUpdate,ue=$.lastBaseUpdate,Ce=$.shared.pending;if(Ce!==null){$.shared.pending=null;var Me=Ce,Ue=Me.next;Me.next=null,ue===null?ee=Ue:ue.next=Ue,ue=Me;var ot=i.alternate;ot!==null&&(Ce=(ot=ot.updateQueue).lastBaseUpdate)!==ue&&(Ce===null?ot.firstBaseUpdate=Ue:Ce.next=Ue,ot.lastBaseUpdate=Me)}if(ee!==null){var st=$.baseState;for(ue=0,ot=Ue=Me=null,Ce=ee;;){var lt=Ce.lane,vt=Ce.eventTime;if((C<)===lt){ot!==null&&(ot=ot.next={eventTime:vt,lane:0,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null});e:{var Lt=i,xt=Ce;switch(lt=l,vt=b,xt.tag){case 1:if(typeof(Lt=xt.payload)=="function"){st=Lt.call(vt,st,lt);break e}st=Lt;break e;case 3:Lt.flags=-65537&Lt.flags|128;case 0:if((lt=typeof(Lt=xt.payload)=="function"?Lt.call(vt,st,lt):Lt)==null)break e;st=De({},st,lt);break e;case 2:kl=!0}}Ce.callback!==null&&Ce.lane!==0&&(i.flags|=64,(lt=$.effects)===null?$.effects=[Ce]:lt.push(Ce))}else vt={eventTime:vt,lane:lt,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null},ot===null?(Ue=ot=vt,Me=st):ot=ot.next=vt,ue|=lt;if((Ce=Ce.next)===null){if((Ce=$.shared.pending)===null)break;Ce=(lt=Ce).next,lt.next=null,$.lastBaseUpdate=lt,$.shared.pending=null}}if(ot===null&&(Me=st),$.baseState=Me,$.firstBaseUpdate=Ue,$.lastBaseUpdate=ot,(l=$.shared.interleaved)!==null){$=l;do ue|=$.lane,$=$.next;while($!==l)}else ee===null&&($.shared.lanes=0);Ds|=ue,i.lanes=ue,i.memoizedState=st}}function Ud(i,l,b){if(i=l.effects,l.effects=null,i!==null)for(l=0;lb?b:4,i(!0);var C=Wd.transition;Wd.transition={};try{i(!1),l()}finally{an=b,Wd.transition=C}}function ef(){return ii().memoizedState}function fg(i,l,b){var C=Tl(i);b={lane:C,action:b,hasEagerState:!1,eagerState:null,next:null},gg(i)?gc(l,b):(b=ag(i,l,b,C))!==null&&(Lo(b,i,C,to()),Yo(b,l,C))}function mg(i,l,b){var C=Tl(i),$={lane:C,action:b,hasEagerState:!1,eagerState:null,next:null};if(gg(i))gc(l,$);else{var ee=i.alternate;if(i.lanes===0&&(ee===null||ee.lanes===0)&&(ee=l.lastRenderedReducer)!==null)try{var ue=l.lastRenderedState,Ce=ee(ue,b);if($.hasEagerState=!0,$.eagerState=Ce,Ka(Ce,ue)){var Me=l.interleaved;return Me===null?($.next=$,gp(l)):($.next=Me.next,Me.next=$),void(l.interleaved=$)}}catch{}(b=ag(i,l,$,C))!==null&&(Lo(b,i,C,$=to()),Yo(b,l,C))}}function gg(i){var l=i.alternate;return i===Dr||l!==null&&l===Dr}function gc(i,l){wp=mc=!0;var b=i.pending;b===null?l.next=l:(l.next=b.next,b.next=l),i.pending=l}function Yo(i,l,b){if(4194240&b){var C=l.lanes;b|=C&=i.pendingLanes,l.lanes=b,vs(i,b)}}var _p={readContext:oi,useCallback:Qa,useContext:Qa,useEffect:Qa,useImperativeHandle:Qa,useInsertionEffect:Qa,useLayoutEffect:Qa,useMemo:Qa,useReducer:Qa,useRef:Qa,useState:Qa,useDebugValue:Qa,useDeferredValue:Qa,useTransition:Qa,useMutableSource:Qa,useSyncExternalStore:Qa,useId:Qa,unstable_isNewReconciler:!1},tf={readContext:oi,useCallback:function(i,l){return Xi().memoizedState=[i,l===void 0?null:l],i},useContext:oi,useEffect:pg,useImperativeHandle:function(i,l,b){return b=b!=null?b.concat([i]):null,Sh(4194308,4,_h.bind(null,l,i),b)},useLayoutEffect:function(i,l){return Sh(4194308,4,i,l)},useInsertionEffect:function(i,l){return Sh(4,2,i,l)},useMemo:function(i,l){var b=Xi();return l=l===void 0?null:l,i=i(),b.memoizedState=[i,l],i},useReducer:function(i,l,b){var C=Xi();return l=b!==void 0?b(l):l,C.memoizedState=C.baseState=l,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:l},C.queue=i,i=i.dispatch=fg.bind(null,Dr,i),[C.memoizedState,i]},useRef:function(i){return i={current:i},Xi().memoizedState=i},useState:Gd,useDebugValue:Xd,useDeferredValue:function(i){return Xi().memoizedState=i},useTransition:function(){var i=Gd(!1),l=i[0];return i=l0.bind(null,i[1]),Xi().memoizedState=i,[l,i]},useMutableSource:function(){},useSyncExternalStore:function(i,l,b){var C=Dr,$=Xi();if(Un){if(b===void 0)throw Error(f(407));b=b()}else{if(b=l(),Ca===null)throw Error(f(349));30&ba||Eh(C,l,b)}$.memoizedState=b;var ee={value:b,getSnapshot:l};return $.queue=ee,pg(cg.bind(null,C,ee,i),[i]),C.flags|=2048,Sp(9,lg.bind(null,C,ee,b,l),void 0,null),b},useId:function(){var i=Xi(),l=Ca.identifierPrefix;if(Un){var b=js;l=":"+l+"R"+(b=(Yi&~(1<<32-Ia(Yi)-1)).toString(32)+b),0<(b=Ep++)&&(l+="H"+b.toString(32)),l+=":"}else l=":"+l+"r"+(b=s0++).toString(32)+":";return i.memoizedState=l},unstable_isNewReconciler:!1},rf={readContext:oi,useCallback:gu,useContext:oi,useEffect:xh,useImperativeHandle:dg,useInsertionEffect:hg,useLayoutEffect:Ci,useMemo:Qd,useReducer:wh,useRef:Yd,useState:function(){return wh(mu)},useDebugValue:Xd,useDeferredValue:function(i){return Zd(ii(),ka.memoizedState,i)},useTransition:function(){return[wh(mu)[0],ii().memoizedState]},useMutableSource:ig,useSyncExternalStore:sg,useId:ef,unstable_isNewReconciler:!1},yg={readContext:oi,useCallback:gu,useContext:oi,useEffect:xh,useImperativeHandle:dg,useInsertionEffect:hg,useLayoutEffect:Ci,useMemo:Qd,useReducer:Kd,useRef:Yd,useState:function(){return Kd(mu)},useDebugValue:Xd,useDeferredValue:function(i){var l=ii();return ka===null?l.memoizedState=i:Zd(l,ka.memoizedState,i)},useTransition:function(){return[Kd(mu)[0],ii().memoizedState]},useMutableSource:ig,useSyncExternalStore:sg,useId:ef,unstable_isNewReconciler:!1};function si(i,l){if(i&&i.defaultProps){for(var b in l=De({},l),i=i.defaultProps)l[b]===void 0&&(l[b]=i[b]);return l}return l}function Oh(i,l,b,C){b=(b=b(C,l=i.memoizedState))==null?l:De({},l,b),i.memoizedState=b,i.lanes===0&&(i.updateQueue.baseState=b)}var kh={isMounted:function(i){return!!(i=i._reactInternals)&&Va(i)===i},enqueueSetState:function(i,l,b){i=i._reactInternals;var C=to(),$=Tl(i),ee=Ns(C,$);ee.payload=l,b!=null&&(ee.callback=b),(l=Ts(i,ee,$))!==null&&(Lo(l,i,$,C),hu(l,i,$))},enqueueReplaceState:function(i,l,b){i=i._reactInternals;var C=to(),$=Tl(i),ee=Ns(C,$);ee.tag=1,ee.payload=l,b!=null&&(ee.callback=b),(l=Ts(i,ee,$))!==null&&(Lo(l,i,$,C),hu(l,i,$))},enqueueForceUpdate:function(i,l){i=i._reactInternals;var b=to(),C=Tl(i),$=Ns(b,C);$.tag=2,l!=null&&($.callback=l),(l=Ts(i,$,C))!==null&&(Lo(l,i,C,b),hu(l,i,C))}};function vg(i,l,b,C,$,ee,ue){return typeof(i=i.stateNode).shouldComponentUpdate=="function"?i.shouldComponentUpdate(C,ee,ue):!l.prototype||!l.prototype.isPureReactComponent||!_s(b,C)||!_s($,ee)}function bg(i,l,b){var C=!1,$=xl,ee=l.contextType;return typeof ee=="object"&&ee!==null?ee=oi(ee):($=Ko(l)?ks:Xa.current,ee=(C=(C=l.contextTypes)!=null)?hc(i,$):xl),l=new l(b,ee),i.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=kh,i.stateNode=l,l._reactInternals=i,C&&((i=i.stateNode).__reactInternalMemoizedUnmaskedChildContext=$,i.__reactInternalMemoizedMaskedChildContext=ee),l}function wg(i,l,b,C){i=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(b,C),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(b,C),l.state!==i&&kh.enqueueReplaceState(l,l.state,null)}function nf(i,l,b,C){var $=i.stateNode;$.props=b,$.state=i.memoizedState,$.refs={},yp(i);var ee=l.contextType;typeof ee=="object"&&ee!==null?$.context=oi(ee):(ee=Ko(l)?ks:Xa.current,$.context=hc(i,ee)),$.state=i.memoizedState,typeof(ee=l.getDerivedStateFromProps)=="function"&&(Oh(i,l,ee,b),$.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(l=$.state,typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount(),l!==$.state&&kh.enqueueReplaceState($,$.state,null),mh(i,b,$,C),$.state=i.memoizedState),typeof $.componentDidMount=="function"&&(i.flags|=4194308)}function yu(i,l){try{var b="",C=l;do b+=Wt(C),C=C.return;while(C);var $=b}catch(ee){$=` +Error generating stack: `+ee.message+` +`+ee.stack}return{value:i,source:l,stack:$,digest:null}}function af(i,l,b){return{value:i,source:null,stack:b??null,digest:l??null}}function Ah(i,l){try{console.error(l.value)}catch(b){setTimeout((function(){throw b}))}}var c0=typeof WeakMap=="function"?WeakMap:Map;function vu(i,l,b){(b=Ns(-1,b)).tag=3,b.payload={element:null};var C=l.value;return b.callback=function(){bc||(bc=!0,Cp=C),Ah(0,l)},b}function Eg(i,l,b){(b=Ns(-1,b)).tag=3;var C=i.type.getDerivedStateFromError;if(typeof C=="function"){var $=l.value;b.payload=function(){return C($)},b.callback=function(){Ah(0,l)}}var ee=i.stateNode;return ee!==null&&typeof ee.componentDidCatch=="function"&&(b.callback=function(){Ah(0,l),typeof C!="function"&&(Pi===null?Pi=new Set([this]):Pi.add(this));var ue=l.stack;this.componentDidCatch(l.value,{componentStack:ue!==null?ue:""})}),b}function ji(i,l,b){var C=i.pingCache;if(C===null){C=i.pingCache=new c0;var $=new Set;C.set(l,$)}else($=C.get(l))===void 0&&($=new Set,C.set(l,$));$.has(b)||($.add(b),i=f0.bind(null,i,l,b),l.then(i,i))}function Sg(i){do{var l;if((l=i.tag===13)&&(l=(l=i.memoizedState)===null||l.dehydrated!==null),l)return i;i=i.return}while(i!==null);return null}function xg(i,l,b,C,$){return 1&i.mode?(i.flags|=65536,i.lanes=$,i):(i===l?i.flags|=65536:(i.flags|=128,b.flags|=131072,b.flags&=-52805,b.tag===1&&(b.alternate===null?b.tag=17:((l=Ns(-1,1)).tag=2,Ts(b,l,1))),b.lanes|=1),i)}var u0=te.ReactCurrentOwner,Do=!1;function Za(i,l,b,C){l.child=i===null?ng(l,null,b,C):fc(l,i.child,b,C)}function _g(i,l,b,C,$){b=b.render;var ee=l.ref;return pu(l,$),C=Is(i,l,b,C,ee,$),b=Hd(),i===null||Do?(Un&&b&&Rd(l),l.flags|=1,Za(i,l,C,$),l.child):(l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~$,Ms(i,l,$))}function Og(i,l,b,C,$){if(i===null){var ee=b.type;return typeof ee!="function"||Pp(ee)||ee.defaultProps!==void 0||b.compare!==null||b.defaultProps!==void 0?((i=ku(b.type,null,C,l,l.mode,$)).ref=l.ref,i.return=l,l.child=i):(l.tag=15,l.type=ee,kg(i,l,ee,C,$))}if(ee=i.child,!(i.lanes&$)){var ue=ee.memoizedProps;if((b=(b=b.compare)!==null?b:_s)(ue,C)&&i.ref===l.ref)return Ms(i,l,$)}return l.flags|=1,(i=pa(ee,C)).ref=l.ref,i.return=l,l.child=i}function kg(i,l,b,C,$){if(i!==null){var ee=i.memoizedProps;if(_s(ee,C)&&i.ref===l.ref){if(Do=!1,l.pendingProps=C=ee,!(i.lanes&$))return l.lanes=i.lanes,Ms(i,l,$);131072&i.flags&&(Do=!0)}}return eo(i,l,b,C,$)}function of(i,l,b){var C=l.pendingProps,$=C.children,ee=i!==null?i.memoizedState:null;if(C.mode==="hidden")if(1&l.mode){if(!(1073741824&b))return i=ee!==null?ee.baseLanes|b:b,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:i,cachePool:null,transitions:null},l.updateQueue=null,Cn(jl,fo),fo|=i,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=ee!==null?ee.baseLanes:b,Cn(jl,fo),fo|=C}else l.memoizedState={baseLanes:0,cachePool:null,transitions:null},Cn(jl,fo),fo|=b;else ee!==null?(C=ee.baseLanes|b,l.memoizedState=null):C=b,Cn(jl,fo),fo|=C;return Za(i,l,$,b),l.child}function li(i,l){var b=l.ref;(i===null&&b!==null||i!==null&&i.ref!==b)&&(l.flags|=512,l.flags|=2097152)}function eo(i,l,b,C,$){var ee=Ko(b)?ks:Xa.current;return ee=hc(l,ee),pu(l,$),b=Is(i,l,b,C,ee,$),C=Hd(),i===null||Do?(Un&&C&&Rd(l),l.flags|=1,Za(i,l,b,$),l.child):(l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~$,Ms(i,l,$))}function Ag(i,l,b,C,$){if(Ko(b)){var ee=!0;lh(l)}else ee=!1;if(pu(l,$),l.stateNode===null)Th(i,l),bg(l,b,C),nf(l,b,C,$),C=!0;else if(i===null){var ue=l.stateNode,Ce=l.memoizedProps;ue.props=Ce;var Me=ue.context,Ue=b.contextType;typeof Ue=="object"&&Ue!==null?Ue=oi(Ue):Ue=hc(l,Ue=Ko(b)?ks:Xa.current);var ot=b.getDerivedStateFromProps,st=typeof ot=="function"||typeof ue.getSnapshotBeforeUpdate=="function";st||typeof ue.UNSAFE_componentWillReceiveProps!="function"&&typeof ue.componentWillReceiveProps!="function"||(Ce!==C||Me!==Ue)&&wg(l,ue,C,Ue),kl=!1;var lt=l.memoizedState;ue.state=lt,mh(l,C,ue,$),Me=l.memoizedState,Ce!==C||lt!==Me||Oa.current||kl?(typeof ot=="function"&&(Oh(l,b,ot,C),Me=l.memoizedState),(Ce=kl||vg(l,b,Ce,C,lt,Me,Ue))?(st||typeof ue.UNSAFE_componentWillMount!="function"&&typeof ue.componentWillMount!="function"||(typeof ue.componentWillMount=="function"&&ue.componentWillMount(),typeof ue.UNSAFE_componentWillMount=="function"&&ue.UNSAFE_componentWillMount()),typeof ue.componentDidMount=="function"&&(l.flags|=4194308)):(typeof ue.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=C,l.memoizedState=Me),ue.props=C,ue.state=Me,ue.context=Ue,C=Ce):(typeof ue.componentDidMount=="function"&&(l.flags|=4194308),C=!1)}else{ue=l.stateNode,og(i,l),Ce=l.memoizedProps,Ue=l.type===l.elementType?Ce:si(l.type,Ce),ue.props=Ue,st=l.pendingProps,lt=ue.context,typeof(Me=b.contextType)=="object"&&Me!==null?Me=oi(Me):Me=hc(l,Me=Ko(b)?ks:Xa.current);var vt=b.getDerivedStateFromProps;(ot=typeof vt=="function"||typeof ue.getSnapshotBeforeUpdate=="function")||typeof ue.UNSAFE_componentWillReceiveProps!="function"&&typeof ue.componentWillReceiveProps!="function"||(Ce!==st||lt!==Me)&&wg(l,ue,C,Me),kl=!1,lt=l.memoizedState,ue.state=lt,mh(l,C,ue,$);var Lt=l.memoizedState;Ce!==st||lt!==Lt||Oa.current||kl?(typeof vt=="function"&&(Oh(l,b,vt,C),Lt=l.memoizedState),(Ue=kl||vg(l,b,Ue,C,lt,Lt,Me)||!1)?(ot||typeof ue.UNSAFE_componentWillUpdate!="function"&&typeof ue.componentWillUpdate!="function"||(typeof ue.componentWillUpdate=="function"&&ue.componentWillUpdate(C,Lt,Me),typeof ue.UNSAFE_componentWillUpdate=="function"&&ue.UNSAFE_componentWillUpdate(C,Lt,Me)),typeof ue.componentDidUpdate=="function"&&(l.flags|=4),typeof ue.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof ue.componentDidUpdate!="function"||Ce===i.memoizedProps&<===i.memoizedState||(l.flags|=4),typeof ue.getSnapshotBeforeUpdate!="function"||Ce===i.memoizedProps&<===i.memoizedState||(l.flags|=1024),l.memoizedProps=C,l.memoizedState=Lt),ue.props=C,ue.state=Lt,ue.context=Me,C=Ue):(typeof ue.componentDidUpdate!="function"||Ce===i.memoizedProps&<===i.memoizedState||(l.flags|=4),typeof ue.getSnapshotBeforeUpdate!="function"||Ce===i.memoizedProps&<===i.memoizedState||(l.flags|=1024),C=!1)}return Ch(i,l,b,C,ee,$)}function Ch(i,l,b,C,$,ee){li(i,l);var ue=!!(128&l.flags);if(!C&&!ue)return $&&Yr(l,b,!1),Ms(i,l,ee);C=l.stateNode,u0.current=l;var Ce=ue&&typeof b.getDerivedStateFromError!="function"?null:C.render();return l.flags|=1,i!==null&&ue?(l.child=fc(l,i.child,null,ee),l.child=fc(l,null,Ce,ee)):Za(i,l,Ce,ee),l.memoizedState=C.state,$&&Yr(l,b,!0),l.child}function Cg(i){var l=i.stateNode;l.pendingContext?Xm(0,l.pendingContext,l.pendingContext!==l.context):l.context&&Xm(0,l.context,!1),zd(i,l.containerInfo)}function sf(i,l,b,C,$){return su(),$d($),l.flags|=256,Za(i,l,b,C),l.child}var jg,lf,Pg,jh={dehydrated:null,treeContext:null,retryLane:0};function Ph(i){return{baseLanes:i,cachePool:null,transitions:null}}function cf(i,l,b){var C,$=l.pendingProps,ee=Wn.current,ue=!1,Ce=!!(128&l.flags);if((C=Ce)||(C=(i===null||i.memoizedState!==null)&&!!(2&ee)),C?(ue=!0,l.flags&=-129):i!==null&&i.memoizedState===null||(ee|=1),Cn(Wn,1&ee),i===null)return hp(l),(i=l.memoizedState)!==null&&(i=i.dehydrated)!==null?(1&l.mode?i.data==="$!"?l.lanes=8:l.lanes=1073741824:l.lanes=1,null):(Ce=$.children,i=$.fallback,ue?($=l.mode,ue=l.child,Ce={mode:"hidden",children:Ce},1&$||ue===null?ue=Np(Ce,$,0,null):(ue.childLanes=0,ue.pendingProps=Ce),i=Xo(i,$,b,null),ue.return=l,i.return=l,ue.sibling=i,l.child=ue,l.child.memoizedState=Ph(b),l.memoizedState=jh,i):uf(l,Ce));if((ee=i.memoizedState)!==null&&(C=ee.dehydrated)!==null)return(function(ot,st,lt,vt,Lt,xt,Ze){if(lt)return 256&st.flags?(st.flags&=-257,Nh(ot,st,Ze,vt=af(Error(f(422))))):st.memoizedState!==null?(st.child=ot.child,st.flags|=128,null):(xt=vt.fallback,Lt=st.mode,vt=Np({mode:"visible",children:vt.children},Lt,0,null),(xt=Xo(xt,Lt,Ze,null)).flags|=2,vt.return=st,xt.return=st,vt.sibling=xt,st.child=vt,1&st.mode&&fc(st,ot.child,null,Ze),st.child.memoizedState=Ph(Ze),st.memoizedState=jh,xt);if(!(1&st.mode))return Nh(ot,st,Ze,null);if(Lt.data==="$!"){if(vt=Lt.nextSibling&&Lt.nextSibling.dataset)var Le=vt.dgst;return vt=Le,Nh(ot,st,Ze,vt=af(xt=Error(f(419)),vt,void 0))}if(Le=!!(Ze&ot.childLanes),Do||Le){if((vt=Ca)!==null){switch(Ze&-Ze){case 4:Lt=2;break;case 16:Lt=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:Lt=32;break;case 536870912:Lt=268435456;break;default:Lt=0}(Lt=Lt&(vt.suspendedLanes|Ze)?0:Lt)!==0&&Lt!==xt.retryLane&&(xt.retryLane=Lt,Ps(ot,Lt),Lo(vt,ot,Lt,-1))}return xf(),Nh(ot,st,Ze,vt=af(Error(f(421))))}return Lt.data==="$?"?(st.flags|=128,st.child=ot.child,st=m0.bind(null,ot),Lt._reactRetry=st,null):(ot=xt.treeContext,Ro=bl(Lt.nextSibling),Go=st,Un=!0,Oi=null,ot!==null&&(Io[Mo++]=Yi,Io[Mo++]=js,Io[Mo++]=Cs,Yi=ot.id,js=ot.overflow,Cs=st),st=uf(st,vt.children),st.flags|=4096,st)})(i,l,Ce,$,C,ee,b);if(ue){ue=$.fallback,Ce=l.mode,C=(ee=i.child).sibling;var Me={mode:"hidden",children:$.children};return 1&Ce||l.child===ee?($=pa(ee,Me)).subtreeFlags=14680064&ee.subtreeFlags:(($=l.child).childLanes=0,$.pendingProps=Me,l.deletions=null),C!==null?ue=pa(C,ue):(ue=Xo(ue,Ce,b,null)).flags|=2,ue.return=l,$.return=l,$.sibling=ue,l.child=$,$=ue,ue=l.child,Ce=(Ce=i.child.memoizedState)===null?Ph(b):{baseLanes:Ce.baseLanes|b,cachePool:null,transitions:Ce.transitions},ue.memoizedState=Ce,ue.childLanes=i.childLanes&~b,l.memoizedState=jh,$}return i=(ue=i.child).sibling,$=pa(ue,{mode:"visible",children:$.children}),!(1&l.mode)&&($.lanes=b),$.return=l,$.sibling=null,i!==null&&((b=l.deletions)===null?(l.deletions=[i],l.flags|=16):b.push(i)),l.child=$,l.memoizedState=null,$}function uf(i,l){return(l=Np({mode:"visible",children:l},i.mode,0,null)).return=i,i.child=l}function Nh(i,l,b,C){return C!==null&&$d(C),fc(l,i.child,null,b),(i=uf(l,l.pendingProps.children)).flags|=2,l.memoizedState=null,i}function Ng(i,l,b){i.lanes|=l;var C=i.alternate;C!==null&&(C.lanes|=l),qd(i.return,l,b)}function pf(i,l,b,C,$){var ee=i.memoizedState;ee===null?i.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:C,tail:b,tailMode:$}:(ee.isBackwards=l,ee.rendering=null,ee.renderingStartTime=0,ee.last=C,ee.tail=b,ee.tailMode=$)}function Tg(i,l,b){var C=l.pendingProps,$=C.revealOrder,ee=C.tail;if(Za(i,l,C.children,b),2&(C=Wn.current))C=1&C|2,l.flags|=128;else{if(i!==null&&128&i.flags)e:for(i=l.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Ng(i,b,l);else if(i.tag===19)Ng(i,b,l);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break e;for(;i.sibling===null;){if(i.return===null||i.return===l)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}C&=1}if(Cn(Wn,C),1&l.mode)switch($){case"forwards":for(b=l.child,$=null;b!==null;)(i=b.alternate)!==null&&vh(i)===null&&($=b),b=b.sibling;(b=$)===null?($=l.child,l.child=null):($=b.sibling,b.sibling=null),pf(l,!1,$,b,ee);break;case"backwards":for(b=null,$=l.child,l.child=null;$!==null;){if((i=$.alternate)!==null&&vh(i)===null){l.child=$;break}i=$.sibling,$.sibling=b,b=$,$=i}pf(l,!0,b,null,ee);break;case"together":pf(l,!1,null,null,void 0);break;default:l.memoizedState=null}else l.memoizedState=null;return l.child}function Th(i,l){!(1&l.mode)&&i!==null&&(i.alternate=null,l.alternate=null,l.flags|=2)}function Ms(i,l,b){if(i!==null&&(l.dependencies=i.dependencies),Ds|=l.lanes,!(b&l.childLanes))return null;if(i!==null&&l.child!==i.child)throw Error(f(153));if(l.child!==null){for(b=pa(i=l.child,i.pendingProps),l.child=b,b.return=l;i.sibling!==null;)i=i.sibling,(b=b.sibling=pa(i,i.pendingProps)).return=l;b.sibling=null}return l.child}function bu(i,l){if(!Un)switch(i.tailMode){case"hidden":l=i.tail;for(var b=null;l!==null;)l.alternate!==null&&(b=l),l=l.sibling;b===null?i.tail=null:b.sibling=null;break;case"collapsed":b=i.tail;for(var C=null;b!==null;)b.alternate!==null&&(C=b),b=b.sibling;C===null?l||i.tail===null?i.tail=null:i.tail.sibling=null:C.sibling=null}}function La(i){var l=i.alternate!==null&&i.alternate.child===i.child,b=0,C=0;if(l)for(var $=i.child;$!==null;)b|=$.lanes|$.childLanes,C|=14680064&$.subtreeFlags,C|=14680064&$.flags,$.return=i,$=$.sibling;else for($=i.child;$!==null;)b|=$.lanes|$.childLanes,C|=$.subtreeFlags,C|=$.flags,$.return=i,$=$.sibling;return i.subtreeFlags|=C,i.childLanes=b,l}function Ig(i,l,b){var C=l.pendingProps;switch(Dd(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return La(l),null;case 1:case 17:return Ko(l.type)&&sh(),La(l),null;case 3:return C=l.stateNode,va(),qn(Oa),qn(Xa),Jd(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),i!==null&&i.child!==null||(dp(l)?l.flags|=4:i===null||i.memoizedState.isDehydrated&&!(256&l.flags)||(l.flags|=1024,Oi!==null&&(wf(Oi),Oi=null))),La(l),null;case 5:yh(l);var $=Al(bp.current);if(b=l.type,i!==null&&l.stateNode!=null)lf(i,l,b,C),i.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!C){if(l.stateNode===null)throw Error(f(166));return La(l),null}if(i=Al(ki.current),dp(l)){C=l.stateNode,b=l.type;var ee=l.memoizedProps;switch(C[Ki]=l,C[lp]=ee,i=!!(1&l.mode),b){case"dialog":fe("cancel",C),fe("close",C);break;case"iframe":case"object":case"embed":fe("load",C);break;case"video":case"audio":for($=0;$<\/script>",i=i.removeChild(i.firstChild)):typeof C.is=="string"?i=ue.createElement(b,{is:C.is}):(i=ue.createElement(b),b==="select"&&(ue=i,C.multiple?ue.multiple=!0:C.size&&(ue.size=C.size))):i=ue.createElementNS(i,b),i[Ki]=l,i[lp]=C,jg(i,l),l.stateNode=i;e:{switch(ue=un(b,C),b){case"dialog":fe("cancel",i),fe("close",i),$=C;break;case"iframe":case"object":case"embed":fe("load",i),$=C;break;case"video":case"audio":for($=0;$Pl&&(l.flags|=128,C=!0,bu(ee,!1),l.lanes=4194304)}else{if(!C)if((i=vh(ue))!==null){if(l.flags|=128,C=!0,(b=i.updateQueue)!==null&&(l.updateQueue=b,l.flags|=4),bu(ee,!0),ee.tail===null&&ee.tailMode==="hidden"&&!ue.alternate&&!Un)return La(l),null}else 2*Yt()-ee.renderingStartTime>Pl&&b!==1073741824&&(l.flags|=128,C=!0,bu(ee,!1),l.lanes=4194304);ee.isBackwards?(ue.sibling=l.child,l.child=ue):((b=ee.last)!==null?b.sibling=ue:l.child=ue,ee.last=ue)}return ee.tail!==null?(l=ee.tail,ee.rendering=l,ee.tail=l.sibling,ee.renderingStartTime=Yt(),l.sibling=null,b=Wn.current,Cn(Wn,C?1&b|2:1&b),l):(La(l),null);case 22:case 23:return Sf(),C=l.memoizedState!==null,i!==null&&i.memoizedState!==null!==C&&(l.flags|=8192),C&&1&l.mode?1073741824&fo&&(La(l),6&l.subtreeFlags&&(l.flags|=8192)):La(l),null;case 24:case 25:return null}throw Error(f(156,l.tag))}function Mg(i,l){switch(Dd(l),l.tag){case 1:return Ko(l.type)&&sh(),65536&(i=l.flags)?(l.flags=-65537&i|128,l):null;case 3:return va(),qn(Oa),qn(Xa),Jd(),65536&(i=l.flags)&&!(128&i)?(l.flags=-65537&i|128,l):null;case 5:return yh(l),null;case 13:if(qn(Wn),(i=l.memoizedState)!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(f(340));su()}return 65536&(i=l.flags)?(l.flags=-65537&i|128,l):null;case 19:return qn(Wn),null;case 4:return va(),null;case 10:return uu(l.type._context),null;case 22:case 23:return Sf(),null;default:return null}}jg=function(i,l){for(var b=l.child;b!==null;){if(b.tag===5||b.tag===6)i.appendChild(b.stateNode);else if(b.tag!==4&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===l)break;for(;b.sibling===null;){if(b.return===null||b.return===l)return;b=b.return}b.sibling.return=b.return,b=b.sibling}},lf=function(i,l,b,C){var $=i.memoizedProps;if($!==C){i=l.stateNode,Al(ki.current);var ee,ue=null;switch(b){case"input":$=Gt(i,$),C=Gt(i,C),ue=[];break;case"select":$=De({},$,{value:void 0}),C=De({},C,{value:void 0}),ue=[];break;case"textarea":$=ne(i,$),C=ne(i,C),ue=[];break;default:typeof $.onClick!="function"&&typeof C.onClick=="function"&&(i.onclick=Hn)}for(Ue in Zn(b,C),b=null,$)if(!C.hasOwnProperty(Ue)&&$.hasOwnProperty(Ue)&&$[Ue]!=null)if(Ue==="style"){var Ce=$[Ue];for(ee in Ce)Ce.hasOwnProperty(ee)&&(b||(b={}),b[ee]="")}else Ue!=="dangerouslySetInnerHTML"&&Ue!=="children"&&Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&Ue!=="autoFocus"&&(m.hasOwnProperty(Ue)?ue||(ue=[]):(ue=ue||[]).push(Ue,null));for(Ue in C){var Me=C[Ue];if(Ce=$?.[Ue],C.hasOwnProperty(Ue)&&Me!==Ce&&(Me!=null||Ce!=null))if(Ue==="style")if(Ce){for(ee in Ce)!Ce.hasOwnProperty(ee)||Me&&Me.hasOwnProperty(ee)||(b||(b={}),b[ee]="");for(ee in Me)Me.hasOwnProperty(ee)&&Ce[ee]!==Me[ee]&&(b||(b={}),b[ee]=Me[ee])}else b||(ue||(ue=[]),ue.push(Ue,b)),b=Me;else Ue==="dangerouslySetInnerHTML"?(Me=Me?Me.__html:void 0,Ce=Ce?Ce.__html:void 0,Me!=null&&Ce!==Me&&(ue=ue||[]).push(Ue,Me)):Ue==="children"?typeof Me!="string"&&typeof Me!="number"||(ue=ue||[]).push(Ue,""+Me):Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&(m.hasOwnProperty(Ue)?(Me!=null&&Ue==="onScroll"&&fe("scroll",i),ue||Ce===Me||(ue=[])):(ue=ue||[]).push(Ue,Me))}b&&(ue=ue||[]).push("style",b);var Ue=ue;(l.updateQueue=Ue)&&(l.flags|=4)}},Pg=function(i,l,b,C){b!==C&&(l.flags|=4)};var Ih=!1,$a=!1,Rg=typeof WeakSet=="function"?WeakSet:Set,cr=null;function wu(i,l){var b=i.ref;if(b!==null)if(typeof b=="function")try{b(null)}catch(C){Gn(i,l,C)}else b.current=null}function Dg(i,l,b){try{b()}catch(C){Gn(i,l,C)}}var Fg=!1;function Op(i,l,b){var C=l.updateQueue;if((C=C!==null?C.lastEffect:null)!==null){var $=C=C.next;do{if(($.tag&i)===i){var ee=$.destroy;$.destroy=void 0,ee!==void 0&&Dg(l,b,ee)}$=$.next}while($!==C)}}function Eu(i,l){if((l=(l=l.updateQueue)!==null?l.lastEffect:null)!==null){var b=l=l.next;do{if((b.tag&i)===i){var C=b.create;b.destroy=C()}b=b.next}while(b!==l)}}function Mh(i){var l=i.ref;if(l!==null){var b=i.stateNode;i.tag,i=b,typeof l=="function"?l(i):l.current=i}}function Lg(i){var l=i.alternate;l!==null&&(i.alternate=null,Lg(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode)!==null&&(delete l[Ki],delete l[lp],delete l[ih],delete l[o0],delete l[i0]),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function hf(i){return i.tag===5||i.tag===3||i.tag===4}function $g(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||hf(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(2&i.flags||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(2&i.flags))return i.stateNode}}function df(i,l,b){var C=i.tag;if(C===5||C===6)i=i.stateNode,l?b.nodeType===8?b.parentNode.insertBefore(i,l):b.insertBefore(i,l):(b.nodeType===8?(l=b.parentNode).insertBefore(i,b):(l=b).appendChild(i),(b=b._reactRootContainer)!=null||l.onclick!==null||(l.onclick=Hn));else if(C!==4&&(i=i.child)!==null)for(df(i,l,b),i=i.sibling;i!==null;)df(i,l,b),i=i.sibling}function Rh(i,l,b){var C=i.tag;if(C===5||C===6)i=i.stateNode,l?b.insertBefore(i,l):b.appendChild(i);else if(C!==4&&(i=i.child)!==null)for(Rh(i,l,b),i=i.sibling;i!==null;)Rh(i,l,b),i=i.sibling}var ho=null,ci=!1;function Cl(i,l,b){for(b=b.child;b!==null;)ff(i,l,b),b=b.sibling}function ff(i,l,b){if(Wa&&typeof Wa.onCommitFiberUnmount=="function")try{Wa.onCommitFiberUnmount(Ja,b)}catch{}switch(b.tag){case 5:$a||wu(b,l);case 6:var C=ho,$=ci;ho=null,Cl(i,l,b),ci=$,(ho=C)!==null&&(ci?(i=ho,b=b.stateNode,i.nodeType===8?i.parentNode.removeChild(b):i.removeChild(b)):ho.removeChild(b.stateNode));break;case 18:ho!==null&&(ci?(i=ho,b=b.stateNode,i.nodeType===8?Pd(i.parentNode,b):i.nodeType===1&&Pd(i,b),Po(i)):Pd(ho,b.stateNode));break;case 4:C=ho,$=ci,ho=b.stateNode.containerInfo,ci=!0,Cl(i,l,b),ho=C,ci=$;break;case 0:case 11:case 14:case 15:if(!$a&&(C=b.updateQueue)!==null&&(C=C.lastEffect)!==null){$=C=C.next;do{var ee=$,ue=ee.destroy;ee=ee.tag,ue!==void 0&&(2&ee||4&ee)&&Dg(b,l,ue),$=$.next}while($!==C)}Cl(i,l,b);break;case 1:if(!$a&&(wu(b,l),typeof(C=b.stateNode).componentWillUnmount=="function"))try{C.props=b.memoizedProps,C.state=b.memoizedState,C.componentWillUnmount()}catch(Ce){Gn(b,l,Ce)}Cl(i,l,b);break;case 21:Cl(i,l,b);break;case 22:1&b.mode?($a=(C=$a)||b.memoizedState!==null,Cl(i,l,b),$a=C):Cl(i,l,b);break;default:Cl(i,l,b)}}function Bg(i){var l=i.updateQueue;if(l!==null){i.updateQueue=null;var b=i.stateNode;b===null&&(b=i.stateNode=new Rg),l.forEach((function(C){var $=ey.bind(null,i,C);b.has(C)||(b.add(C),C.then($,$))}))}}function Qi(i,l){var b=l.deletions;if(b!==null)for(var C=0;C$&&($=ue),C&=~ee}if(C=$,10<(C=(120>(C=Yt()-C)?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*p0(C/1960))-C)){i.timeoutHandle=Ga(_u.bind(null,i,Fo,Zi),C);break}_u(i,Fo,Zi);break;default:throw Error(f(329))}}}return $o(i,Yt()),i.callbackNode===b?Wg.bind(null,i):null}function bf(i,l){var b=vc;return i.current.memoizedState.isDehydrated&&(Ec(i,l).flags|=256),(i=Bh(i,l))!==2&&(l=Fo,Fo=b,l!==null&&wf(l)),i}function wf(i){Fo===null?Fo=i:Fo.push.apply(Fo,i)}function Il(i,l){for(l&=~kp,l&=~Su,i.suspendedLanes|=l,i.pingedLanes&=~l,i=i.expirationTimes;0i?16:i,Nl===null)var C=!1;else{if(i=Nl,Nl=null,Fh=0,6&pn)throw Error(f(331));var $=pn;for(pn|=4,cr=i.current;cr!==null;){var ee=cr,ue=ee.child;if(16&cr.flags){var Ce=ee.deletions;if(Ce!==null){for(var Me=0;MeYt()-Ap?Ec(i,0):kp|=b),$o(i,l)}function Zg(i,l){l===0&&(1&i.mode?(l=ys,!(130023424&(ys<<=1))&&(ys=4194304)):l=1);var b=to();(i=Ps(i,l))!==null&&(Ao(i,l,b),$o(i,b))}function m0(i){var l=i.memoizedState,b=0;l!==null&&(b=l.retryLane),Zg(i,b)}function ey(i,l){var b=0;switch(i.tag){case 13:var C=i.stateNode,$=i.memoizedState;$!==null&&(b=$.retryLane);break;case 19:C=i.stateNode;break;default:throw Error(f(314))}C!==null&&C.delete(l),Zg(i,b)}function ty(i,l){return fi(i,l)}function g0(i,l,b,C){this.tag=i,this.key=b,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bo(i,l,b,C){return new g0(i,l,b,C)}function Pp(i){return!(!(i=i.prototype)||!i.isReactComponent)}function pa(i,l){var b=i.alternate;return b===null?((b=Bo(i.tag,l,i.key,i.mode)).elementType=i.elementType,b.type=i.type,b.stateNode=i.stateNode,b.alternate=i,i.alternate=b):(b.pendingProps=l,b.type=i.type,b.flags=0,b.subtreeFlags=0,b.deletions=null),b.flags=14680064&i.flags,b.childLanes=i.childLanes,b.lanes=i.lanes,b.child=i.child,b.memoizedProps=i.memoizedProps,b.memoizedState=i.memoizedState,b.updateQueue=i.updateQueue,l=i.dependencies,b.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},b.sibling=i.sibling,b.index=i.index,b.ref=i.ref,b}function ku(i,l,b,C,$,ee){var ue=2;if(C=i,typeof i=="function")Pp(i)&&(ue=1);else if(typeof i=="string")ue=5;else e:switch(i){case Te:return Xo(b.children,$,ee,l);case he:ue=8,$|=8;break;case ge:return(i=Bo(12,b,l,2|$)).elementType=ge,i.lanes=ee,i;case qe:return(i=Bo(13,b,l,$)).elementType=qe,i.lanes=ee,i;case nt:return(i=Bo(19,b,l,$)).elementType=nt,i.lanes=ee,i;case u:return Np(b,$,ee,l);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case ke:ue=10;break e;case Ve:ue=9;break e;case He:ue=11;break e;case gt:ue=14;break e;case Re:ue=16,C=null;break e}throw Error(f(130,i==null?i:typeof i,""))}return(l=Bo(ue,b,l,$)).elementType=i,l.type=C,l.lanes=ee,l}function Xo(i,l,b,C){return(i=Bo(7,i,C,l)).lanes=b,i}function Np(i,l,b,C){return(i=Bo(22,i,C,l)).elementType=u,i.lanes=b,i.stateNode={isHidden:!1},i}function Tp(i,l,b){return(i=Bo(6,i,null,l)).lanes=b,i}function qh(i,l,b){return(l=Bo(4,i.children!==null?i.children:[],i.key,l)).lanes=b,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}function ry(i,l,b,C,$){this.tag=l,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ec(0),this.expirationTimes=ec(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ec(0),this.identifierPrefix=C,this.onRecoverableError=$,this.mutableSourceEagerHydrationData=null}function zn(i,l,b,C,$,ee,ue,Ce,Me){return i=new ry(i,l,b,Ce,Me),l===1?(l=1,ee===!0&&(l|=8)):l=0,ee=Bo(3,null,null,l),i.current=ee,ee.stateNode=i,ee.memoizedState={element:C,isDehydrated:b,cache:null,transitions:null,pendingSuspenseBoundaries:null},yp(ee),i}function ny(i){if(!i)return xl;e:{if(Va(i=i._reactInternals)!==i||i.tag!==1)throw Error(f(170));var l=i;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(Ko(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(f(171))}if(i.tag===1){var b=i.type;if(Ko(b))return Id(i,b,l)}return l}function Sc(i,l,b,C,$,ee,ue,Ce,Me){return(i=zn(b,C,!0,i,0,ee,0,Ce,Me)).context=ny(null),b=i.current,(ee=Ns(C=to(),$=Tl(b))).callback=l??null,Ts(b,ee,$),i.current.lanes=$,Ao(i,$,C),$o(i,C),i}function Uh(i,l,b,C){var $=l.current,ee=to(),ue=Tl($);return b=ny(b),l.context===null?l.context=b:l.pendingContext=b,(l=Ns(ee,ue)).payload={element:i},(C=C===void 0?null:C)!==null&&(l.callback=C),(i=Ts($,l,ue))!==null&&(Lo(i,$,ue,ee),hu(i,$,ue)),ue}function Ml(i){return(i=i.current).child?(i.child.tag,i.child.stateNode):null}function Rl(i,l){if((i=i.memoizedState)!==null&&i.dehydrated!==null){var b=i.retryLane;i.retryLane=b!==0&&b6?X-6:0),ie=6;ie>",M[z]!=null?_.apply(void 0,[M,z,K,Y,B].concat(te)):j?new Error("Required "+Y+" `"+B+"` was not specified in `"+K+"`."):void 0}var I=T.bind(null,!1);return I.isRequired=T.bind(null,!0),I}function S(_,T){return(function(j,M){return g((function(K,Y,B,X,te){var ie=K[Y];if(!M(ie)){var se=m(ie);return new Error("Invalid "+X+" `"+te+"` of type `"+se+"` supplied to `"+B+"`, expected `"+j+"`.")}return null}))})("Iterable."+_,(function(I){return v.Iterable.isIterable(I)&&T(I)}))}(h={listOf:y,mapOf:y,orderedMapOf:y,setOf:y,orderedSetOf:y,stackOf:y,iterableOf:y,recordOf:y,shape:y,contains:y,mapContains:y,orderedMapContains:y,list:f,map:f,orderedMap:f,set:f,orderedSet:f,stack:f,seq:f,record:f,iterable:f}).iterable.indexed=S("Indexed",v.Iterable.isIndexed),h.iterable.keyed=S("Keyed",v.Iterable.isKeyed),w.exports=h},15287(w,N){var s=Symbol.for("react.element"),h=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),g=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),T=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),j=Symbol.iterator,M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,K={};function Y(Se,De,Ke){this.props=Se,this.context=De,this.refs=K,this.updater=Ke||M}function B(){}function X(Se,De,Ke){this.props=Se,this.context=De,this.refs=K,this.updater=Ke||M}Y.prototype.isReactComponent={},Y.prototype.setState=function(Se,De){if(typeof Se!="object"&&typeof Se!="function"&&Se!=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,Se,De,"setState")},Y.prototype.forceUpdate=function(Se){this.updater.enqueueForceUpdate(this,Se,"forceUpdate")},B.prototype=Y.prototype;var te=X.prototype=new B;te.constructor=X,z(te,Y.prototype),te.isPureReactComponent=!0;var ie=Array.isArray,se=Object.prototype.hasOwnProperty,Te={current:null},he={key:!0,ref:!0,__self:!0,__source:!0};function ge(Se,De,Ke){var ft,Nt={},Wt=null,H=null;if(De!=null)for(ft in De.ref!==void 0&&(H=De.ref),De.key!==void 0&&(Wt=""+De.key),De)se.call(De,ft)&&!he.hasOwnProperty(ft)&&(Nt[ft]=De[ft]);var we=arguments.length-2;if(we===1)Nt.children=Ke;else if(12?"one of ".concat(f," ").concat(v.slice(0,y-1).join(", "),", or ")+v[y-1]:y===2?"one of ".concat(f," ").concat(v[0]," or ").concat(v[1]):"of ".concat(f," ").concat(v[0])}return"of ".concat(f," ").concat(String(v))}s("ERR_INVALID_OPT_VALUE",(function(v,f){return'The value "'+f+'" is invalid for option "'+v+'"'}),TypeError),s("ERR_INVALID_ARG_TYPE",(function(v,f,y){var m,g;if(typeof f=="string"&&(function(T,I,j){return T.substr(0,I.length)===I})(f,"not ")?(m="must not be",f=f.replace(/^not /,"")):m="must be",(function(T,I,j){return(j===void 0||j>T.length)&&(j=T.length),T.substring(j-I.length,j)===I})(v," argument"))g="The ".concat(v," ").concat(m," ").concat(h(f,"type"));else{var S=(function(T,I,j){return typeof j!="number"&&(j=0),!(j+I.length>T.length)&&T.indexOf(I,j)!==-1})(v,".")?"property":"argument";g='The "'.concat(v,'" ').concat(S," ").concat(m," ").concat(h(f,"type"))}return g+=". Received type ".concat(typeof y)}),TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",(function(v){return"The "+v+" method is not implemented"})),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",(function(v){return"Cannot call "+v+" after a stream was destroyed"})),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",(function(v){return"Unknown encoding: "+v}),TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),w.exports.F=N},25382(w,N,s){var h=s(65606),v=Object.keys||function(j){var M=[];for(var z in j)M.push(z);return M};w.exports=_;var f=s(45412),y=s(16708);s(56698)(_,f);for(var m=v(y.prototype),g=0;g0)if(typeof we=="string"||Tt.objectMode||Object.getPrototypeOf(we)===m.prototype||(we=(function(Sr){return m.from(Sr)})(we)),mt)Tt.endEmitted?se(H,new ie):Ve(H,Tt,we,!0);else if(Tt.ended)se(H,new X);else{if(Tt.destroyed)return!1;Tt.reading=!1,Tt.decoder&&!ct?(we=Tt.decoder.write(we),Tt.objectMode||we.length!==0?Ve(H,Tt,we,!1):Re(H,Tt)):Ve(H,Tt,we,!1)}else mt||(Tt.reading=!1,Re(H,Tt));return!Tt.ended&&(Tt.lengthwe.highWaterMark&&(we.highWaterMark=(function(mt){return mt>=He?mt=He:(mt--,mt|=mt>>>1,mt|=mt>>>2,mt|=mt>>>4,mt|=mt>>>8,mt|=mt>>>16,mt++),mt})(H)),H<=we.length?H:we.ended?we.length:(we.needReadable=!0,0))}function nt(H){var we=H._readableState;S("emitReadable",we.needReadable,we.emittedReadable),we.needReadable=!1,we.emittedReadable||(S("emitReadable",we.flowing),we.emittedReadable=!0,v.nextTick(gt,H))}function gt(H){var we=H._readableState;S("emitReadable_",we.destroyed,we.length,we.ended),we.destroyed||!we.length&&!we.ended||(H.emit("readable"),we.emittedReadable=!1),we.needReadable=!we.flowing&&!we.ended&&we.length<=we.highWaterMark,De(H)}function Re(H,we){we.readingMore||(we.readingMore=!0,v.nextTick(u,H,we))}function u(H,we){for(;!we.reading&&!we.ended&&(we.length0,we.resumeScheduled&&!we.paused?we.flowing=!0:H.listenerCount("data")>0&&H.resume()}function Xe(H){S("readable nexttick read 0"),H.read(0)}function Se(H,we){S("resume",we.reading),we.reading||H.read(0),we.resumeScheduled=!1,H.emit("resume"),De(H),we.flowing&&!we.reading&&H.read(0)}function De(H){var we=H._readableState;for(S("flow",we.flowing);we.flowing&&H.read()!==null;);}function Ke(H,we){return we.length===0?null:(we.objectMode?ct=we.buffer.shift():!H||H>=we.length?(ct=we.decoder?we.buffer.join(""):we.buffer.length===1?we.buffer.first():we.buffer.concat(we.length),we.buffer.clear()):ct=we.buffer.consume(H,we.decoder),ct);var ct}function ft(H){var we=H._readableState;S("endReadable",we.endEmitted),we.endEmitted||(we.ended=!0,v.nextTick(Nt,we,H))}function Nt(H,we){if(S("endReadableNT",H.endEmitted,H.length),!H.endEmitted&&H.length===0&&(H.endEmitted=!0,we.readable=!1,we.emit("end"),H.autoDestroy)){var ct=we._writableState;(!ct||ct.autoDestroy&&ct.finished)&&we.destroy()}}function Wt(H,we){for(var ct=0,mt=H.length;ct=we.highWaterMark:we.length>0)||we.ended))return S("read: emitReadable",we.length,we.ended),we.length===0&&we.ended?ft(this):nt(this),null;if((H=qe(H,we))===0&&we.ended)return we.length===0&&ft(this),null;var mt,ur=we.needReadable;return S("need readable",ur),(we.length===0||we.length-H0?Ke(H,we):null)===null?(we.needReadable=we.length<=we.highWaterMark,H=0):(we.length-=H,we.awaitDrain=0),we.length===0&&(we.ended||(we.needReadable=!0),ct!==H&&we.ended&&ft(this)),mt!==null&&this.emit("data",mt),mt},ge.prototype._read=function(H){se(this,new te("_read()"))},ge.prototype.pipe=function(H,we){var ct=this,mt=this._readableState;switch(mt.pipesCount){case 0:mt.pipes=H;break;case 1:mt.pipes=[mt.pipes,H];break;default:mt.pipes.push(H)}mt.pipesCount+=1,S("pipe count=%d opts=%j",mt.pipesCount,we);var ur=(!we||we.end!==!1)&&H!==v.stdout&&H!==v.stderr?Tt:U;function ar(Z,ne){S("onunpipe"),Z===ct&&ne&&ne.hasUnpiped===!1&&(ne.hasUnpiped=!0,(function(){S("cleanup"),H.removeListener("close",Zt),H.removeListener("finish",pe),H.removeListener("drain",Gt),H.removeListener("error",yt),H.removeListener("unpipe",ar),ct.removeListener("end",Tt),ct.removeListener("end",U),ct.removeListener("data",kt),Sr=!0,!mt.awaitDrain||H._writableState&&!H._writableState.needDrain||Gt()})())}function Tt(){S("onend"),H.end()}mt.endEmitted?v.nextTick(ur):ct.once("end",ur),H.on("unpipe",ar);var Gt=(function(ne){return function(){var Ee=ne._readableState;S("pipeOnDrain",Ee.awaitDrain),Ee.awaitDrain&&Ee.awaitDrain--,Ee.awaitDrain===0&&f(ne,"data")&&(Ee.flowing=!0,De(ne))}})(ct);H.on("drain",Gt);var Sr=!1;function kt(Z){S("ondata");var ne=H.write(Z);S("dest.write",ne),ne===!1&&((mt.pipesCount===1&&mt.pipes===H||mt.pipesCount>1&&Wt(mt.pipes,H)!==-1)&&!Sr&&(S("false write response, pause",mt.awaitDrain),mt.awaitDrain++),ct.pause())}function yt(Z){S("onerror",Z),U(),H.removeListener("error",yt),f(H,"error")===0&&se(H,Z)}function Zt(){H.removeListener("finish",pe),U()}function pe(){S("onfinish"),H.removeListener("close",Zt),U()}function U(){S("unpipe"),ct.unpipe(H)}return ct.on("data",kt),(function(ne,ye,Ee){if(typeof ne.prependListener=="function")return ne.prependListener(ye,Ee);ne._events&&ne._events[ye]?Array.isArray(ne._events[ye])?ne._events[ye].unshift(Ee):ne._events[ye]=[Ee,ne._events[ye]]:ne.on(ye,Ee)})(H,"error",yt),H.once("close",Zt),H.once("finish",pe),H.emit("pipe",ct),mt.flowing||(S("pipe resume"),ct.resume()),H},ge.prototype.unpipe=function(H){var we=this._readableState,ct={hasUnpiped:!1};if(we.pipesCount===0)return this;if(we.pipesCount===1)return H&&H!==we.pipes||(H||(H=we.pipes),we.pipes=null,we.pipesCount=0,we.flowing=!1,H&&H.emit("unpipe",this,ct)),this;if(!H){var mt=we.pipes,ur=we.pipesCount;we.pipes=null,we.pipesCount=0,we.flowing=!1;for(var ar=0;ar0,mt.flowing!==!1&&this.resume()):H==="readable"&&(mt.endEmitted||mt.readableListening||(mt.readableListening=mt.needReadable=!0,mt.flowing=!1,mt.emittedReadable=!1,S("on readable",mt.length,mt.reading),mt.length?nt(this):mt.reading||v.nextTick(Xe,this))),ct},ge.prototype.addListener=ge.prototype.on,ge.prototype.removeListener=function(H,we){var ct=y.prototype.removeListener.call(this,H,we);return H==="readable"&&v.nextTick(at,this),ct},ge.prototype.removeAllListeners=function(H){var we=y.prototype.removeAllListeners.apply(this,arguments);return H!=="readable"&&H!==void 0||v.nextTick(at,this),we},ge.prototype.resume=function(){var H=this._readableState;return H.flowing||(S("resume"),H.flowing=!H.readableListening,(function(ct,mt){mt.resumeScheduled||(mt.resumeScheduled=!0,v.nextTick(Se,ct,mt))})(this,H)),H.paused=!1,this},ge.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},ge.prototype.wrap=function(H){var we=this,ct=this._readableState,mt=!1;for(var ur in H.on("end",(function(){if(S("wrapped end"),ct.decoder&&!ct.ended){var Tt=ct.decoder.end();Tt&&Tt.length&&we.push(Tt)}we.push(null)})),H.on("data",(function(Tt){S("wrapped data"),ct.decoder&&(Tt=ct.decoder.write(Tt)),ct.objectMode&&Tt==null||(ct.objectMode||Tt&&Tt.length)&&(we.push(Tt)||(mt=!0,H.pause()))})),H)this[ur]===void 0&&typeof H[ur]=="function"&&(this[ur]=(function(Gt){return function(){return H[Gt].apply(H,arguments)}})(ur));for(var ar=0;ar-1))throw new ie(u);return this._writableState.defaultEncoding=u,this},Object.defineProperty(ge.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ge.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ge.prototype._write=function(Re,u,at){at(new z("_write()"))},ge.prototype._writev=null,ge.prototype.end=function(Re,u,at){var Xe=this._writableState;return typeof Re=="function"?(at=Re,Re=null,u=null):typeof u=="function"&&(at=u,u=null),Re!=null&&this.write(Re,u),Xe.corked&&(Xe.corked=1,this.uncork()),Xe.ending||(function(De,Ke,ft){Ke.ending=!0,gt(De,Ke),ft&&(Ke.finished?v.nextTick(ft):De.once("finish",ft)),Ke.ended=!0,De.writable=!1})(this,Xe,at),this},Object.defineProperty(ge.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ge.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(u){this._writableState&&(this._writableState.destroyed=u)}}),ge.prototype.destroy=T.destroy,ge.prototype._undestroy=T.undestroy,ge.prototype._destroy=function(Re,u){u(Re)}},2955(w,N,s){var h,v=s(65606);function f(X,te,ie){return(te=(function(Te){var he=(function(ke,Ve){if(typeof ke!="object"||ke===null)return ke;var He=ke[Symbol.toPrimitive];if(He!==void 0){var qe=He.call(ke,Ve);if(typeof qe!="object")return qe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ve==="string"?String:Number)(ke)})(Te,"string");return typeof he=="symbol"?he:String(he)})(te))in X?Object.defineProperty(X,te,{value:ie,enumerable:!0,configurable:!0,writable:!0}):X[te]=ie,X}var y=s(86238),m=Symbol("lastResolve"),g=Symbol("lastReject"),S=Symbol("error"),_=Symbol("ended"),T=Symbol("lastPromise"),I=Symbol("handlePromise"),j=Symbol("stream");function M(X,te){return{value:X,done:te}}function z(X){var te=X[m];if(te!==null){var ie=X[j].read();ie!==null&&(X[T]=null,X[m]=null,X[g]=null,te(M(ie,!1)))}}function K(X){v.nextTick(z,X)}var Y=Object.getPrototypeOf((function(){})),B=Object.setPrototypeOf((f(h={get stream(){return this[j]},next:function(){var te=this,ie=this[S];if(ie!==null)return Promise.reject(ie);if(this[_])return Promise.resolve(M(void 0,!0));if(this[j].destroyed)return new Promise((function(ge,ke){v.nextTick((function(){te[S]?ke(te[S]):ge(M(void 0,!0))}))}));var se,Te=this[T];if(Te)se=new Promise((function(ke,Ve){return function(He,qe){ke.then((function(){Ve[_]?He(M(void 0,!0)):Ve[I](He,qe)}),qe)}})(Te,this));else{var he=this[j].read();if(he!==null)return Promise.resolve(M(he,!1));se=new Promise(this[I])}return this[T]=se,se}},Symbol.asyncIterator,(function(){return this})),f(h,"return",(function(){var te=this;return new Promise((function(ie,se){te[j].destroy(null,(function(Te){Te?se(Te):ie(M(void 0,!0))}))}))})),h),Y);w.exports=function(te){var ie,se=Object.create(B,(f(ie={},j,{value:te,writable:!0}),f(ie,m,{value:null,writable:!0}),f(ie,g,{value:null,writable:!0}),f(ie,S,{value:null,writable:!0}),f(ie,_,{value:te._readableState.endEmitted,writable:!0}),f(ie,I,{value:function(he,ge){var ke=se[j].read();ke?(se[T]=null,se[m]=null,se[g]=null,he(M(ke,!1))):(se[m]=he,se[g]=ge)},writable:!0}),ie));return se[T]=null,y(te,(function(Te){if(Te&&Te.code!=="ERR_STREAM_PREMATURE_CLOSE"){var he=se[g];return he!==null&&(se[T]=null,se[m]=null,se[g]=null,he(Te)),void(se[S]=Te)}var ge=se[m];ge!==null&&(se[T]=null,se[m]=null,se[g]=null,ge(M(void 0,!0))),se[_]=!0})),te.on("readable",K.bind(null,se)),se}},80345(w,N,s){function h(T,I){var j=Object.keys(T);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(T);I&&(M=M.filter((function(z){return Object.getOwnPropertyDescriptor(T,z).enumerable}))),j.push.apply(j,M)}return j}function v(T){for(var I=1;I0?this.tail.next=M:this.head=M,this.tail=M,++this.length}},{key:"unshift",value:function(j){var M={data:j,next:this.head};this.length===0&&(this.tail=M),this.head=M,++this.length}},{key:"shift",value:function(){if(this.length!==0){var j=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,j}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(j){if(this.length===0)return"";for(var M=this.head,z=""+M.data;M=M.next;)z+=j+M.data;return z}},{key:"concat",value:function(j){if(this.length===0)return g.alloc(0);for(var M,z,K,Y=g.allocUnsafe(j>>>0),B=this.head,X=0;B;)M=B.data,z=Y,K=X,g.prototype.copy.call(M,z,K),X+=B.data.length,B=B.next;return Y}},{key:"consume",value:function(j,M){var z;return jY.length?Y.length:j;if(B===Y.length?K+=Y:K+=Y.slice(0,j),(j-=B)===0){B===Y.length?(++z,M.next?this.head=M.next:this.head=this.tail=null):(this.head=M,M.data=Y.slice(B));break}++z}return this.length-=z,K}},{key:"_getBuffer",value:function(j){var M=g.allocUnsafe(j),z=this.head,K=1;for(z.data.copy(M),j-=z.data.length;z=z.next;){var Y=z.data,B=j>Y.length?Y.length:j;if(Y.copy(M,M.length-j,0,B),(j-=B)===0){B===Y.length?(++K,z.next?this.head=z.next:this.head=this.tail=null):(this.head=z,z.data=Y.slice(B));break}++K}return this.length-=K,M}},{key:_,value:function(j,M){return S(this,v(v({},M),{},{depth:0,customInspect:!1}))}}]),T})()},75896(w,N,s){var h=s(65606);function v(m,g){y(m,g),f(m)}function f(m){m._writableState&&!m._writableState.emitClose||m._readableState&&!m._readableState.emitClose||m.emit("close")}function y(m,g){m.emit("error",g)}w.exports={destroy:function(g,S){var _=this,T=this._readableState&&this._readableState.destroyed,I=this._writableState&&this._writableState.destroyed;return T||I?(S?S(g):g&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,h.nextTick(y,this,g)):h.nextTick(y,this,g)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,(function(j){!S&&j?_._writableState?_._writableState.errorEmitted?h.nextTick(f,_):(_._writableState.errorEmitted=!0,h.nextTick(v,_,j)):h.nextTick(v,_,j):S?(h.nextTick(f,_),S(j)):h.nextTick(f,_)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(g,S){var _=g._readableState,T=g._writableState;_&&_.autoDestroy||T&&T.autoDestroy?g.destroy(S):g.emit("error",S)}}},86238(w,N,s){var h=s(86048).F.ERR_STREAM_PREMATURE_CLOSE;function v(){}w.exports=function f(y,m,g){if(typeof m=="function")return f(y,null,m);m||(m={}),g=(function(te){var ie=!1;return function(){if(!ie){ie=!0;for(var se=arguments.length,Te=new Array(se),he=0;he0,(function(te){M||(M=te),te&&K.forEach(g),X||(K.forEach(g),z(M))}))}));return I.reduce(S)}},65291(w,N,s){var h=s(86048).F.ERR_INVALID_OPT_VALUE;w.exports={getHighWaterMark:function(f,y,m,g){var S=(function(T,I,j){return T.highWaterMark!=null?T.highWaterMark:I?T[j]:null})(y,g,m);if(S!=null){if(!isFinite(S)||Math.floor(S)!==S||S<0)throw new h(g?m:"highWaterMark",S);return Math.floor(S)}return f.objectMode?16:16384}}},40345(w,N,s){w.exports=s(37007).EventEmitter},84977(w,N,s){Object.defineProperty(N,"__esModule",{value:!0});var h=(function(y){return y&&y.__esModule?y:{default:y}})(s(49568)),v=s(55674);N.default=function(f){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.Map,m=Object.keys(f);return function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y(),S=arguments[1];return g.withMutations((function(_){m.forEach((function(T){var I=(0,f[T])(_.get(T),S);(0,v.validateNextState)(I,T,S),_.set(T,I)}))}))}},w.exports=N.default},89593(w,N,s){N.H=void 0;var h=(function(f){return f&&f.__esModule?f:{default:f}})(s(84977));N.H=h.default},48590(w,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=function(s){return s&&s.type==="@@redux/INIT"?"initialState argument passed to createStore":"previous state received by the reducer"},w.exports=N.default},82261(w,N,s){Object.defineProperty(N,"__esModule",{value:!0});var h=f(s(49568)),v=f(s(48590));function f(y){return y&&y.__esModule?y:{default:y}}N.default=function(y,m,g){var S=Object.keys(m);if(!S.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";var _=(0,v.default)(g);if(h.default.isImmutable?!h.default.isImmutable(y):!h.default.Iterable.isIterable(y))return"The "+_+' is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "'+S.join('", "')+'".';var T=y.toSeq().keySeq().toArray().filter((function(I){return!m.hasOwnProperty(I)}));return T.length>0?"Unexpected "+(T.length===1?"property":"properties")+' "'+T.join('", "')+'" found in '+_+'. Expected to find one of the known reducer property names instead: "'+S.join('", "')+'". Unexpected properties will be ignored.':null},w.exports=N.default},55674(w,N,s){Object.defineProperty(N,"__esModule",{value:!0}),N.validateNextState=N.getUnexpectedInvocationParameterMessage=N.getStateName=void 0;var h=y(s(48590)),v=y(s(82261)),f=y(s(27374));function y(m){return m&&m.__esModule?m:{default:m}}N.getStateName=h.default,N.getUnexpectedInvocationParameterMessage=v.default,N.validateNextState=f.default},27374(w,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=function(s,h,v){if(s===void 0)throw new Error('Reducer "'+h+'" returned undefined when handling "'+v.type+'" action. To ignore an action, you must explicitly return the previous state.')},w.exports=N.default},75208(w){var N,s="";w.exports=function(v,f){if(typeof v!="string")throw new TypeError("expected a string");if(f===1)return v;if(f===2)return v+v;var y=v.length*f;if(N!==v||N===void 0)N=v,s="";else if(s.length>=y)return s.substr(0,y);for(;y>s.length&&f>1;)1&f&&(s+=v),f>>=1,v+=v;return s=(s+=v).substr(0,y)}},92063(w){w.exports=function(s,h){if(h=h.split(":")[0],!(s=+s))return!1;switch(h){case"http":case"ws":return s!==80;case"https":case"wss":return s!==443;case"ftp":return s!==21;case"gopher":return s!==70;case"file":return!1}return s!==0}},27096(w,N,s){const h=s(87586),v=s(6205),f=s(10023),y=s(8048);w.exports=m=>{var g,S,_=0,T={type:v.ROOT,stack:[]},I=T,j=T.stack,M=[],z=he=>{h.error(m,"Nothing to repeat at column "+(he-1))},K=h.strToChars(m);for(g=K.length;_({type:h.POSITION,value:"b"}),N.nonWordBoundary=()=>({type:h.POSITION,value:"B"}),N.begin=()=>({type:h.POSITION,value:"^"}),N.end=()=>({type:h.POSITION,value:"$"})},10023(w,N,s){const h=s(6205),v=()=>[{type:h.RANGE,from:48,to:57}],f=()=>[{type:h.CHAR,value:95},{type:h.RANGE,from:97,to:122},{type:h.RANGE,from:65,to:90}].concat(v()),y=()=>[{type:h.CHAR,value:9},{type:h.CHAR,value:10},{type:h.CHAR,value:11},{type:h.CHAR,value:12},{type:h.CHAR,value:13},{type:h.CHAR,value:32},{type:h.CHAR,value:160},{type:h.CHAR,value:5760},{type:h.RANGE,from:8192,to:8202},{type:h.CHAR,value:8232},{type:h.CHAR,value:8233},{type:h.CHAR,value:8239},{type:h.CHAR,value:8287},{type:h.CHAR,value:12288},{type:h.CHAR,value:65279}];N.words=()=>({type:h.SET,set:f(),not:!1}),N.notWords=()=>({type:h.SET,set:f(),not:!0}),N.ints=()=>({type:h.SET,set:v(),not:!1}),N.notInts=()=>({type:h.SET,set:v(),not:!0}),N.whitespace=()=>({type:h.SET,set:y(),not:!1}),N.notWhitespace=()=>({type:h.SET,set:y(),not:!0}),N.anyChar=()=>({type:h.SET,set:[{type:h.CHAR,value:10},{type:h.CHAR,value:13},{type:h.CHAR,value:8232},{type:h.CHAR,value:8233}],not:!0})},6205(w){w.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},87586(w,N,s){const h=s(6205),v=s(10023),f={0:0,t:9,n:10,v:11,f:12,r:13};N.strToChars=function(y){return y=y.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,(function(m,g,S,_,T,I,j,M){if(S)return m;var z=g?8:_?parseInt(_,16):T?parseInt(T,16):I?parseInt(I,8):j?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(j):f[M],K=String.fromCharCode(z);return/[[\]{}^$.|?*+()]/.test(K)&&(K="\\"+K),K}))},N.tokenizeClass=(y,m)=>{for(var g,S,_=[],T=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;(g=T.exec(y))!=null;)if(g[1])_.push(v.words());else if(g[2])_.push(v.ints());else if(g[3])_.push(v.whitespace());else if(g[4])_.push(v.notWords());else if(g[5])_.push(v.notInts());else if(g[6])_.push(v.notWhitespace());else if(g[7])_.push({type:h.RANGE,from:(g[8]||g[9]).charCodeAt(0),to:g[10].charCodeAt(0)});else{if(!(S=g[12]))return[_,T.lastIndex];_.push({type:h.CHAR,value:S.charCodeAt(0)})}N.error(m,"Unterminated character class")},N.error=(y,m)=>{throw new SyntaxError("Invalid regular expression: /"+y+"/: "+m)}},92861(w,N,s){var h=s(48287),v=h.Buffer;function f(m,g){for(var S in m)g[S]=m[S]}function y(m,g,S){return v(m,g,S)}v.from&&v.alloc&&v.allocUnsafe&&v.allocUnsafeSlow?w.exports=h:(f(h,N),N.Buffer=y),y.prototype=Object.create(v.prototype),f(v,y),y.from=function(m,g,S){if(typeof m=="number")throw new TypeError("Argument must not be a number");return v(m,g,S)},y.alloc=function(m,g,S){if(typeof m!="number")throw new TypeError("Argument must be a number");var _=v(m);return g!==void 0?typeof S=="string"?_.fill(g,S):_.fill(g):_.fill(0),_},y.allocUnsafe=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return v(m)},y.allocUnsafeSlow=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return h.SlowBuffer(m)}},29844(w,N){function s(Xe,Se){var De=Xe.length;Xe.push(Se);e:for(;0>>1,ft=Xe[Ke];if(!(0>>1;Kef(H,De))wef(ct,H)?(Xe[Ke]=ct,Xe[we]=De,Ke=we):(Xe[Ke]=H,Xe[Wt]=De,Ke=Wt);else{if(!(wef(ct,De)))break e;Xe[Ke]=ct,Xe[we]=De,Ke=we}}}return Se}function f(Xe,Se){var De=Xe.sortIndex-Se.sortIndex;return De!==0?De:Xe.id-Se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var y=performance;N.unstable_now=function(){return y.now()}}else{var m=Date,g=m.now();N.unstable_now=function(){return m.now()-g}}var S=[],_=[],T=1,I=null,j=3,M=!1,z=!1,K=!1,Y=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function te(Xe){for(var Se=h(_);Se!==null;){if(Se.callback===null)v(_);else{if(!(Se.startTime<=Xe))break;v(_),Se.sortIndex=Se.expirationTime,s(S,Se)}Se=h(_)}}function ie(Xe){if(K=!1,te(Xe),!z)if(h(S)!==null)z=!0,u(se);else{var Se=h(_);Se!==null&&at(ie,Se.startTime-Xe)}}function se(Xe,Se){z=!1,K&&(K=!1,B(ke),ke=-1),M=!0;var De=j;try{for(te(Se),I=h(S);I!==null&&(!(I.expirationTime>Se)||Xe&&!qe());){var Ke=I.callback;if(typeof Ke=="function"){I.callback=null,j=I.priorityLevel;var ft=Ke(I.expirationTime<=Se);Se=N.unstable_now(),typeof ft=="function"?I.callback=ft:I===h(S)&&v(S),te(Se)}else v(S);I=h(S)}if(I!==null)var Nt=!0;else{var Wt=h(_);Wt!==null&&at(ie,Wt.startTime-Se),Nt=!1}return Nt}finally{I=null,j=De,M=!1}}typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var Te,he=!1,ge=null,ke=-1,Ve=5,He=-1;function qe(){return!(N.unstable_now()-HeXe||125Ke?(Xe.sortIndex=De,s(_,Xe),h(S)===null&&Xe===h(_)&&(K?(B(ke),ke=-1):K=!0,at(ie,De-Ke))):(Xe.sortIndex=ft,s(S,Xe),z||M||(z=!0,u(se))),Xe},N.unstable_shouldYield=qe,N.unstable_wrapCallback=function(Xe){var Se=j;return function(){var De=j;j=Se;try{return Xe.apply(this,arguments)}finally{j=De}}}},69982(w,N,s){w.exports=s(29844)},20334(w,N,s){var h=s(48287).Buffer;class v extends Error{constructor(S){super(v._prepareSuperMessage(S)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,v)}static _prepareSuperMessage(S){try{return JSON.stringify(S)}catch{return String(S)}}}const f=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],y=Symbol(".toJSON called"),m=({from:g,seen:S,to_:_,forceEnumerable:T,maxDepth:I,depth:j})=>{const M=_||(Array.isArray(g)?[]:{});if(S.push(g),j>=I)return M;if(typeof g.toJSON=="function"&&g[y]!==!0)return(z=>{z[y]=!0;const K=z.toJSON();return delete z[y],K})(g);for(const[z,K]of Object.entries(g))typeof h=="function"&&h.isBuffer(K)?M[z]="[object Buffer]":typeof K!="function"&&(K&&typeof K=="object"?S.includes(g[z])?M[z]="[Circular]":(j++,M[z]=m({from:g[z],seen:S.slice(),forceEnumerable:T,maxDepth:I,depth:j})):M[z]=K);for(const{property:z,enumerable:K}of f)typeof g[z]=="string"&&Object.defineProperty(M,z,{value:g[z],enumerable:!!T||K,configurable:!0,writable:!0});return M};w.exports={serializeError:(g,S={})=>{const{maxDepth:_=Number.POSITIVE_INFINITY}=S;return typeof g=="object"&&g!==null?m({from:g,seen:[],forceEnumerable:!0,maxDepth:_,depth:0}):typeof g=="function"?`[Function: ${g.name||"anonymous"}]`:g},deserializeError:(g,S={})=>{const{maxDepth:_=Number.POSITIVE_INFINITY}=S;if(g instanceof Error)return g;if(typeof g=="object"&&g!==null&&!Array.isArray(g)){const T=new Error;return m({from:g,seen:[],to_:T,maxDepth:_,depth:0}),T}return new v(g)}}},96897(w,N,s){var h=s(70453),v=s(30041),f=s(30592)(),y=s(75795),m=s(69675),g=h("%Math.floor%");w.exports=function(_,T){if(typeof _!="function")throw new m("`fn` is not a function");if(typeof T!="number"||T<0||T>4294967295||g(T)!==T)throw new m("`length` must be a positive 32-bit integer");var I=arguments.length>2&&!!arguments[2],j=!0,M=!0;if("length"in _&&y){var z=y(_,"length");z&&!z.configurable&&(j=!1),z&&!z.writable&&(M=!1)}return(j||M||!I)&&(f?v(_,"length",T,!0,!0):v(_,"length",T)),_}},90392(w,N,s){var h=s(92861).Buffer,v=s(15377);function f(y,m){this._block=h.alloc(y),this._finalSize=m,this._blockSize=y,this._len=0}f.prototype.update=function(y,m){y=v(y,m||"utf8");for(var g=this._block,S=this._blockSize,_=y.length,T=this._len,I=0;I<_;){for(var j=T%S,M=Math.min(_-I,S-j),z=0;z=this._finalSize&&(this._update(this._block),this._block.fill(0));var g=8*this._len;if(g<=4294967295)this._block.writeUInt32BE(g,this._blockSize-4);else{var S=(4294967295&g)>>>0,_=(g-S)/4294967296;this._block.writeUInt32BE(_,this._blockSize-8),this._block.writeUInt32BE(S,this._blockSize-4)}this._update(this._block);var T=this._hash();return y?T.toString(y):T},f.prototype._update=function(){throw new Error("_update must be implemented by subclass")},w.exports=f},62802(w,N,s){w.exports=function(v){var f=v.toLowerCase(),y=w.exports[f];if(!y)throw new Error(f+" is not supported (we accept pull requests)");return new y},w.exports.sha=s(27816),w.exports.sha1=s(63737),w.exports.sha224=s(26710),w.exports.sha256=s(24107),w.exports.sha384=s(32827),w.exports.sha512=s(82890)},27816(w,N,s){var h=s(56698),v=s(90392),f=s(92861).Buffer,y=[1518500249,1859775393,-1894007588,-899497514],m=new Array(80);function g(){this.init(),this._w=m,v.call(this,64,56)}function S(T){return T<<30|T>>>2}function _(T,I,j,M){return T===0?I&j|~I&M:T===2?I&j|I&M|j&M:I^j^M}h(g,v),g.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},g.prototype._update=function(T){for(var I,j=this._w,M=0|this._a,z=0|this._b,K=0|this._c,Y=0|this._d,B=0|this._e,X=0;X<16;++X)j[X]=T.readInt32BE(4*X);for(;X<80;++X)j[X]=j[X-3]^j[X-8]^j[X-14]^j[X-16];for(var te=0;te<80;++te){var ie=~~(te/20),se=0|((I=M)<<5|I>>>27)+_(ie,z,K,Y)+B+j[te]+y[ie];B=Y,Y=K,K=S(z),z=M,M=se}this._a=M+this._a|0,this._b=z+this._b|0,this._c=K+this._c|0,this._d=Y+this._d|0,this._e=B+this._e|0},g.prototype._hash=function(){var T=f.allocUnsafe(20);return T.writeInt32BE(0|this._a,0),T.writeInt32BE(0|this._b,4),T.writeInt32BE(0|this._c,8),T.writeInt32BE(0|this._d,12),T.writeInt32BE(0|this._e,16),T},w.exports=g},63737(w,N,s){var h=s(56698),v=s(90392),f=s(92861).Buffer,y=[1518500249,1859775393,-1894007588,-899497514],m=new Array(80);function g(){this.init(),this._w=m,v.call(this,64,56)}function S(I){return I<<5|I>>>27}function _(I){return I<<30|I>>>2}function T(I,j,M,z){return I===0?j&M|~j&z:I===2?j&M|j&z|M&z:j^M^z}h(g,v),g.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},g.prototype._update=function(I){for(var j,M=this._w,z=0|this._a,K=0|this._b,Y=0|this._c,B=0|this._d,X=0|this._e,te=0;te<16;++te)M[te]=I.readInt32BE(4*te);for(;te<80;++te)M[te]=(j=M[te-3]^M[te-8]^M[te-14]^M[te-16])<<1|j>>>31;for(var ie=0;ie<80;++ie){var se=~~(ie/20),Te=S(z)+T(se,K,Y,B)+X+M[ie]+y[se]|0;X=B,B=Y,Y=_(K),K=z,z=Te}this._a=z+this._a|0,this._b=K+this._b|0,this._c=Y+this._c|0,this._d=B+this._d|0,this._e=X+this._e|0},g.prototype._hash=function(){var I=f.allocUnsafe(20);return I.writeInt32BE(0|this._a,0),I.writeInt32BE(0|this._b,4),I.writeInt32BE(0|this._c,8),I.writeInt32BE(0|this._d,12),I.writeInt32BE(0|this._e,16),I},w.exports=g},26710(w,N,s){var h=s(56698),v=s(24107),f=s(90392),y=s(92861).Buffer,m=new Array(64);function g(){this.init(),this._w=m,f.call(this,64,56)}h(g,v),g.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},g.prototype._hash=function(){var S=y.allocUnsafe(28);return S.writeInt32BE(this._a,0),S.writeInt32BE(this._b,4),S.writeInt32BE(this._c,8),S.writeInt32BE(this._d,12),S.writeInt32BE(this._e,16),S.writeInt32BE(this._f,20),S.writeInt32BE(this._g,24),S},w.exports=g},24107(w,N,s){var h=s(56698),v=s(90392),f=s(92861).Buffer,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],m=new Array(64);function g(){this.init(),this._w=m,v.call(this,64,56)}function S(M,z,K){return K^M&(z^K)}function _(M,z,K){return M&z|K&(M|z)}function T(M){return(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10)}function I(M){return(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7)}function j(M){return(M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3}h(g,v),g.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},g.prototype._update=function(M){for(var z,K=this._w,Y=0|this._a,B=0|this._b,X=0|this._c,te=0|this._d,ie=0|this._e,se=0|this._f,Te=0|this._g,he=0|this._h,ge=0;ge<16;++ge)K[ge]=M.readInt32BE(4*ge);for(;ge<64;++ge)K[ge]=0|(((z=K[ge-2])>>>17|z<<15)^(z>>>19|z<<13)^z>>>10)+K[ge-7]+j(K[ge-15])+K[ge-16];for(var ke=0;ke<64;++ke){var Ve=he+I(ie)+S(ie,se,Te)+y[ke]+K[ke]|0,He=T(Y)+_(Y,B,X)|0;he=Te,Te=se,se=ie,ie=te+Ve|0,te=X,X=B,B=Y,Y=Ve+He|0}this._a=Y+this._a|0,this._b=B+this._b|0,this._c=X+this._c|0,this._d=te+this._d|0,this._e=ie+this._e|0,this._f=se+this._f|0,this._g=Te+this._g|0,this._h=he+this._h|0},g.prototype._hash=function(){var M=f.allocUnsafe(32);return M.writeInt32BE(this._a,0),M.writeInt32BE(this._b,4),M.writeInt32BE(this._c,8),M.writeInt32BE(this._d,12),M.writeInt32BE(this._e,16),M.writeInt32BE(this._f,20),M.writeInt32BE(this._g,24),M.writeInt32BE(this._h,28),M},w.exports=g},32827(w,N,s){var h=s(56698),v=s(82890),f=s(90392),y=s(92861).Buffer,m=new Array(160);function g(){this.init(),this._w=m,f.call(this,128,112)}h(g,v),g.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},g.prototype._hash=function(){var S=y.allocUnsafe(48);function _(T,I,j){S.writeInt32BE(T,j),S.writeInt32BE(I,j+4)}return _(this._ah,this._al,0),_(this._bh,this._bl,8),_(this._ch,this._cl,16),_(this._dh,this._dl,24),_(this._eh,this._el,32),_(this._fh,this._fl,40),S},w.exports=g},82890(w,N,s){var h=s(56698),v=s(90392),f=s(92861).Buffer,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],m=new Array(160);function g(){this.init(),this._w=m,v.call(this,128,112)}function S(B,X,te){return te^B&(X^te)}function _(B,X,te){return B&X|te&(B|X)}function T(B,X){return(B>>>28|X<<4)^(X>>>2|B<<30)^(X>>>7|B<<25)}function I(B,X){return(B>>>14|X<<18)^(B>>>18|X<<14)^(X>>>9|B<<23)}function j(B,X){return(B>>>1|X<<31)^(B>>>8|X<<24)^B>>>7}function M(B,X){return(B>>>1|X<<31)^(B>>>8|X<<24)^(B>>>7|X<<25)}function z(B,X){return(B>>>19|X<<13)^(X>>>29|B<<3)^B>>>6}function K(B,X){return(B>>>19|X<<13)^(X>>>29|B<<3)^(B>>>6|X<<26)}function Y(B,X){return B>>>0>>0?1:0}h(g,v),g.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},g.prototype._update=function(B){for(var X=this._w,te=0|this._ah,ie=0|this._bh,se=0|this._ch,Te=0|this._dh,he=0|this._eh,ge=0|this._fh,ke=0|this._gh,Ve=0|this._hh,He=0|this._al,qe=0|this._bl,nt=0|this._cl,gt=0|this._dl,Re=0|this._el,u=0|this._fl,at=0|this._gl,Xe=0|this._hl,Se=0;Se<32;Se+=2)X[Se]=B.readInt32BE(4*Se),X[Se+1]=B.readInt32BE(4*Se+4);for(;Se<160;Se+=2){var De=X[Se-30],Ke=X[Se-30+1],ft=j(De,Ke),Nt=M(Ke,De),Wt=z(De=X[Se-4],Ke=X[Se-4+1]),H=K(Ke,De),we=X[Se-14],ct=X[Se-14+1],mt=X[Se-32],ur=X[Se-32+1],ar=Nt+ct|0,Tt=ft+we+Y(ar,Nt)|0;Tt=(Tt=Tt+Wt+Y(ar=ar+H|0,H)|0)+mt+Y(ar=ar+ur|0,ur)|0,X[Se]=Tt,X[Se+1]=ar}for(var Gt=0;Gt<160;Gt+=2){Tt=X[Gt],ar=X[Gt+1];var Sr=_(te,ie,se),kt=_(He,qe,nt),yt=T(te,He),Zt=T(He,te),pe=I(he,Re),U=I(Re,he),Z=y[Gt],ne=y[Gt+1],ye=S(he,ge,ke),Ee=S(Re,u,at),Fe=Xe+U|0,St=Ve+pe+Y(Fe,Xe)|0;St=(St=(St=St+ye+Y(Fe=Fe+Ee|0,Ee)|0)+Z+Y(Fe=Fe+ne|0,ne)|0)+Tt+Y(Fe=Fe+ar|0,ar)|0;var Bt=Zt+kt|0,Qe=yt+Sr+Y(Bt,Zt)|0;Ve=ke,Xe=at,ke=ge,at=u,ge=he,u=Re,he=Te+St+Y(Re=gt+Fe|0,gt)|0,Te=se,gt=nt,se=ie,nt=qe,ie=te,qe=He,te=St+Qe+Y(He=Fe+Bt|0,Fe)|0}this._al=this._al+He|0,this._bl=this._bl+qe|0,this._cl=this._cl+nt|0,this._dl=this._dl+gt|0,this._el=this._el+Re|0,this._fl=this._fl+u|0,this._gl=this._gl+at|0,this._hl=this._hl+Xe|0,this._ah=this._ah+te+Y(this._al,He)|0,this._bh=this._bh+ie+Y(this._bl,qe)|0,this._ch=this._ch+se+Y(this._cl,nt)|0,this._dh=this._dh+Te+Y(this._dl,gt)|0,this._eh=this._eh+he+Y(this._el,Re)|0,this._fh=this._fh+ge+Y(this._fl,u)|0,this._gh=this._gh+ke+Y(this._gl,at)|0,this._hh=this._hh+Ve+Y(this._hl,Xe)|0},g.prototype._hash=function(){var B=f.allocUnsafe(64);function X(te,ie,se){B.writeInt32BE(te,se),B.writeInt32BE(ie,se+4)}return X(this._ah,this._al,0),X(this._bh,this._bl,8),X(this._ch,this._cl,16),X(this._dh,this._dl,24),X(this._eh,this._el,32),X(this._fh,this._fl,40),X(this._gh,this._gl,48),X(this._hh,this._hl,56),B},w.exports=g},8068(w){var N=(()=>{var s=Object.defineProperty,h=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=(Y,B,X)=>B in Y?s(Y,B,{enumerable:!0,configurable:!0,writable:!0,value:X}):Y[B]=X,S=(Y,B)=>{for(var X in B||(B={}))y.call(B,X)&&g(Y,X,B[X]);if(f)for(var X of f(B))m.call(B,X)&&g(Y,X,B[X]);return Y},_=(Y,B,X)=>g(Y,typeof B!="symbol"?B+"":B,X),T={};((Y,B)=>{for(var X in B)s(Y,X,{get:B[X],enumerable:!0})})(T,{DEFAULT_OPTIONS:()=>j,DEFAULT_UUID_LENGTH:()=>I,default:()=>K});var I=6,j={dictionary:"alphanum",shuffle:!0,debug:!1,length:I,counter:0},M=class{constructor(B={}){_(this,"counter"),_(this,"debug"),_(this,"dict"),_(this,"version"),_(this,"dictIndex",0),_(this,"dictRange",[]),_(this,"lowerBound",0),_(this,"upperBound",0),_(this,"dictLength",0),_(this,"uuidLength"),_(this,"_digit_first_ascii",48),_(this,"_digit_last_ascii",58),_(this,"_alpha_lower_first_ascii",97),_(this,"_alpha_lower_last_ascii",123),_(this,"_hex_last_ascii",103),_(this,"_alpha_upper_first_ascii",65),_(this,"_alpha_upper_last_ascii",91),_(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),_(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),_(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),_(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),_(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),_(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),_(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),_(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),_(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),_(this,"log",((...he)=>{const ge=[...he];ge[0]="[short-unique-id] ".concat(he[0]),this.debug!==!0||typeof console>"u"||console===null||console.log(...ge)})),_(this,"_normalizeDictionary",((he,ge)=>{let ke;if(he&&Array.isArray(he)&&he.length>1)ke=he;else{ke=[],this.dictIndex=0;const Ve="_".concat(he,"_dict_ranges"),He=this._dict_ranges[Ve];let qe=0;for(const[,gt]of Object.entries(He)){const[Re,u]=gt;qe+=Math.abs(u-Re)}ke=new Array(qe);let nt=0;for(const[,gt]of Object.entries(He)){this.dictRange=gt,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const Re=this.lowerBound<=this.upperBound,u=this.lowerBound,at=this.upperBound;if(Re)for(let Xe=u;Xeat;Xe--)ke[nt++]=String.fromCharCode(Xe),this.dictIndex=Xe}ke.length=nt}if(ge)for(let Ve=ke.length-1;Ve>0;Ve--){const He=Math.floor(Math.random()*(Ve+1));[ke[Ve],ke[He]]=[ke[He],ke[Ve]]}return ke})),_(this,"setDictionary",((he,ge)=>{this.dict=this._normalizeDictionary(he,ge),this.dictLength=this.dict.length,this.setCounter(0)})),_(this,"seq",(()=>this.sequentialUUID())),_(this,"sequentialUUID",(()=>{const he=this.dictLength,ge=this.dict;let ke=this.counter;const Ve=[];do{const qe=ke%he;ke=Math.trunc(ke/he),Ve.push(ge[qe])}while(ke!==0);const He=Ve.join("");return this.counter+=1,He})),_(this,"rnd",((he=this.uuidLength||I)=>this.randomUUID(he))),_(this,"randomUUID",((he=this.uuidLength||I)=>{if(he==null||he<1)throw new Error("Invalid UUID Length Provided");const ge=new Array(he),ke=this.dictLength,Ve=this.dict;for(let He=0;Hethis.formattedUUID(he,ge))),_(this,"formattedUUID",((he,ge)=>{const ke={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return he.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(Ve=>{const He=Ve.slice(0,2),qe=Number.parseInt(Ve.slice(2),10);return He==="$s"?ke[He]().padStart(qe,"0"):He==="$t"&&ge?ke[He](qe,ge):ke[He](qe)}))})),_(this,"availableUUIDs",((he=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**he).toFixed(0)))),_(this,"_collisionCache",new Map),_(this,"approxMaxBeforeCollision",((he=this.availableUUIDs(this.uuidLength))=>{const ge=he,ke=this._collisionCache.get(ge);if(ke!==void 0)return ke;const Ve=Number.parseFloat(Math.sqrt(Math.PI/2*he).toFixed(20));return this._collisionCache.set(ge,Ve),Ve})),_(this,"collisionProbability",((he=this.availableUUIDs(this.uuidLength),ge=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(he)/this.availableUUIDs(ge)).toFixed(20)))),_(this,"uniqueness",((he=this.availableUUIDs(this.uuidLength))=>{const ge=Number.parseFloat((1-this.approxMaxBeforeCollision(he)/he).toFixed(20));return ge>1?1:ge<0?0:ge})),_(this,"getVersion",(()=>this.version)),_(this,"stamp",((he,ge)=>{const ke=Math.floor(+(ge||new Date)/1e3).toString(16);if(typeof he=="number"&&he===0)return ke;if(typeof he!="number"||he<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join(` +`));const Ve=he-9,He=Math.round(Math.random()*(Ve>15?15:Ve)),qe=this.randomUUID(Ve);return"".concat(qe.substring(0,He)).concat(ke).concat(qe.substring(He)).concat(He.toString(16))})),_(this,"parseStamp",((he,ge)=>{if(ge&&!/t0|t[1-9]\d{1,}/.test(ge))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const ke=ge?ge.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(He=>{const qe={$r:Re=>[...Array(Re)].map((()=>"r")).join(""),$s:Re=>[...Array(Re)].map((()=>"s")).join(""),$t:Re=>[...Array(Re)].map((()=>"t")).join("")},nt=He.slice(0,2),gt=Number.parseInt(He.slice(2),10);return qe[nt](gt)})).replace(/^(.*?)(t{8,})(.*)$/g,((He,qe,nt)=>he.substring(qe.length,qe.length+nt.length))):he;if(ke.length===8)return new Date(1e3*Number.parseInt(ke,16));if(ke.length<10)throw new Error("Stamp length invalid");const Ve=Number.parseInt(ke.substring(ke.length-1),16);return new Date(1e3*Number.parseInt(ke.substring(Ve,Ve+8),16))})),_(this,"setCounter",(he=>{this.counter=he})),_(this,"validate",((he,ge)=>{const ke=ge?this._normalizeDictionary(ge):this.dict;return he.split("").every((Ve=>ke.includes(Ve)))}));const X=S(S({},j),B);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";const{dictionary:te,shuffle:ie,length:se,counter:Te}=X;this.uuidLength=se,this.setDictionary(te,ie),this.setCounter(Te),this.debug=X.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(this.counter)),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};_(M,"default",M);var z,K=M;return z=T,((Y,B,X,te)=>{if(B&&typeof B=="object"||typeof B=="function")for(let ie of v(B))y.call(Y,ie)||ie===X||s(Y,ie,{get:()=>B[ie],enumerable:!(te=h(B,ie))||te.enumerable});return Y})(s({},"__esModule",{value:!0}),z)})();w.exports=N.default,typeof window<"u"&&(N=N.default)},88310(w,N,s){w.exports=v;var h=s(37007).EventEmitter;function v(){h.call(this)}s(56698)(v,h),v.Readable=s(45412),v.Writable=s(16708),v.Duplex=s(25382),v.Transform=s(74610),v.PassThrough=s(63600),v.finished=s(86238),v.pipeline=s(57758),v.Stream=v,v.prototype.pipe=function(f,y){var m=this;function g(z){f.writable&&f.write(z)===!1&&m.pause&&m.pause()}function S(){m.readable&&m.resume&&m.resume()}m.on("data",g),f.on("drain",S),f._isStdio||y&&y.end===!1||(m.on("end",T),m.on("close",I));var _=!1;function T(){_||(_=!0,f.end())}function I(){_||(_=!0,typeof f.destroy=="function"&&f.destroy())}function j(z){if(M(),h.listenerCount(this,"error")===0)throw z}function M(){m.removeListener("data",g),f.removeListener("drain",S),m.removeListener("end",T),m.removeListener("close",I),m.removeListener("error",j),f.removeListener("error",j),m.removeListener("end",M),m.removeListener("close",M),f.removeListener("close",M)}return m.on("error",j),f.on("error",j),m.on("end",M),m.on("close",M),f.on("close",M),f.emit("pipe",m),f}},83141(w,N,s){var h=s(92861).Buffer,v=h.isEncoding||function(M){switch((M=""+M)&&M.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function f(M){var z;switch(this.encoding=(function(Y){var B=(function(te){if(!te)return"utf8";for(var ie;;)switch(te){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return te;default:if(ie)return;te=(""+te).toLowerCase(),ie=!0}})(Y);if(typeof B!="string"&&(h.isEncoding===v||!v(Y)))throw new Error("Unknown encoding: "+Y);return B||Y})(M),this.encoding){case"utf16le":this.text=g,this.end=S,z=4;break;case"utf8":this.fillLast=m,z=4;break;case"base64":this.text=_,this.end=T,z=3;break;default:return this.write=I,void(this.end=j)}this.lastNeed=0,this.lastTotal=0,this.lastChar=h.allocUnsafe(z)}function y(M){return M<=127?0:M>>5==6?2:M>>4==14?3:M>>3==30?4:M>>6==2?-1:-2}function m(M){var z=this.lastTotal-this.lastNeed,K=(function(B,X,te){if((192&X[0])!=128)return B.lastNeed=0,"�";if(B.lastNeed>1&&X.length>1){if((192&X[1])!=128)return B.lastNeed=1,"�";if(B.lastNeed>2&&X.length>2&&(192&X[2])!=128)return B.lastNeed=2,"�"}})(this,M);return K!==void 0?K:this.lastNeed<=M.length?(M.copy(this.lastChar,z,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(M.copy(this.lastChar,z,0,M.length),void(this.lastNeed-=M.length))}function g(M,z){if((M.length-z)%2==0){var K=M.toString("utf16le",z);if(K){var Y=K.charCodeAt(K.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=M[M.length-2],this.lastChar[1]=M[M.length-1],K.slice(0,-1)}return K}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=M[M.length-1],M.toString("utf16le",z,M.length-1)}function S(M){var z=M&&M.length?this.write(M):"";if(this.lastNeed){var K=this.lastTotal-this.lastNeed;return z+this.lastChar.toString("utf16le",0,K)}return z}function _(M,z){var K=(M.length-z)%3;return K===0?M.toString("base64",z):(this.lastNeed=3-K,this.lastTotal=3,K===1?this.lastChar[0]=M[M.length-1]:(this.lastChar[0]=M[M.length-2],this.lastChar[1]=M[M.length-1]),M.toString("base64",z,M.length-K))}function T(M){var z=M&&M.length?this.write(M):"";return this.lastNeed?z+this.lastChar.toString("base64",0,3-this.lastNeed):z}function I(M){return M.toString(this.encoding)}function j(M){return M&&M.length?this.write(M):""}N.I=f,f.prototype.write=function(M){if(M.length===0)return"";var z,K;if(this.lastNeed){if((z=this.fillLast(M))===void 0)return"";K=this.lastNeed,this.lastNeed=0}else K=0;return K=0?(he>0&&(te.lastNeed=he-1),he):--Te=0?(he>0&&(te.lastNeed=he-2),he):--Te=0?(he>0&&(he===2?he=0:te.lastNeed=he-3),he):0))})(this,z,K);if(!this.lastNeed)return z.toString("utf8",K);this.lastTotal=Y;var B=z.length-(Y-this.lastNeed);return z.copy(this.lastChar,0,B),z.toString("utf8",K,B)},f.prototype.fillLast=function(M){if(this.lastNeed<=M.length)return M.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);M.copy(this.lastChar,this.lastTotal-this.lastNeed,0,M.length),this.lastNeed-=M.length}},15377(w,N,s){var h=s(92861).Buffer,v=s(64634),f=s(74372),y=ArrayBuffer.isView||function(T){try{return f(T),!0}catch{return!1}},m=typeof Uint8Array<"u",g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",S=g&&(h.prototype instanceof Uint8Array||h.TYPED_ARRAY_SUPPORT);w.exports=function(T,I){if(T instanceof h)return T;if(typeof T=="string")return h.from(T,I);if(g&&y(T)){if(T.byteLength===0)return h.alloc(0);if(S){var j=h.from(T.buffer,T.byteOffset,T.byteLength);if(j.byteLength===T.byteLength)return j}var M=T instanceof Uint8Array?T:new Uint8Array(T.buffer,T.byteOffset,T.byteLength),z=h.from(M);if(z.length===T.byteLength)return z}if(m&&T instanceof Uint8Array)return h.from(T);var K=v(T);if(K)for(var Y=0;Y255||~~B!==B)throw new RangeError("Array items must be numbers in the range 0-255.")}if(K||h.isBuffer(T)&&T.constructor&&typeof T.constructor.isBuffer=="function"&&T.constructor.isBuffer(T))return h.from(T);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},16426(w){w.exports=function(){var N=document.getSelection();if(!N.rangeCount)return function(){};for(var s=document.activeElement,h=[],v=0;v=2&&(te=te.slice(2)):z(se)?te=ie[4]:se?Te&&(te=te.slice(2)):ge>=2&&z(X.protocol)&&(te=ie[4]),{protocol:se,slashes:Te||z(se),slashesCount:ge,rest:te}}function Y(B,X,te){if(B=(B=T(B)).replace(y,""),!(this instanceof Y))return new Y(B,X,te);var ie,se,Te,he,ge,ke,Ve=I.slice(),He=typeof X,qe=this,nt=0;for(He!=="object"&&He!=="string"&&(te=X,X=null),te&&typeof te!="function"&&(te=v.parse),ie=!(se=K(B||"",X=M(X))).protocol&&!se.slashes,qe.slashes=se.slashes||ie&&X.slashes,qe.protocol=se.protocol||X.protocol||"",B=se.rest,(se.protocol==="file:"&&(se.slashesCount!==2||_.test(B))||!se.slashes&&(se.protocol||se.slashesCount<2||!z(qe.protocol)))&&(Ve[3]=[/(.*)/,"pathname"]);nt"u"?s.g:globalThis,T=v(),I=y("String.prototype.slice"),j=Object.getPrototypeOf,M=y("Array.prototype.indexOf",!0)||function(Y,B){for(var X=0;X-1?B:B==="Object"&&(function(te){var ie=!1;return h(z,(function(se,Te){if(!ie)try{se(te),ie=I(Te,1)}catch{}})),ie})(Y)}return m?(function(te){var ie=!1;return h(z,(function(se,Te){if(!ie)try{"$"+se(te)===Te&&(ie=I(Te,1))}catch{}})),ie})(Y):null}},26657(w,N,s){var h=s(75208),v=function(g){return/<\/+[^>]+>/.test(g)},f=function(g){return/<[^>]+\/>/.test(g)};function y(m){return v(m)?"ClosingTag":(function(S){return(function(T){return/<[^>!]+>/.test(T)})(S)&&!v(S)&&!f(S)})(m)?"OpeningTag":f(m)?"SelfClosingTag":"Text"}w.exports=function(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=g.indentor,_=g.textNodesOnSameLine,T=0,I=[];S=S||" ";var j=(function(z){return(function(Y){return Y.split(/(<\/?[^>]+>)/g).filter((function(B){return B.trim()!==""}))})(z).map((function(K){return{value:K,type:y(K)}}))})(m).map((function(M,z,K){var Y=M.value,B=M.type;B==="ClosingTag"&&T--;var X=h(S,T),te=X+Y;if(B==="OpeningTag"&&T++,_){var ie=K[z-1],se=K[z-2];B==="ClosingTag"&&ie.type==="Text"&&se.type==="OpeningTag"&&(te=""+X+se.value+ie.value+Y,I.push(z-2,z-1))}return te}));return I.forEach((function(M){return j[M]=null})),j.filter((function(M){return!!M})).join(` +`)}},31499(w){var N={"&":"&",'"':""","'":"'","<":"<",">":">"};w.exports=function(h){return h&&h.replace?h.replace(/([&"<>'])/g,(function(v,f){return N[f]})):h}},19123(w,N,s){var h=s(65606),v=s(31499),f=s(88310).Stream;function y(g,S,_){var T,I=(function(X,te){return new Array(te||0).join(X||"")})(S,_=_||0),j=g;if(typeof g=="object"&&(j=g[T=Object.keys(g)[0]])&&j._elem)return j._elem.name=T,j._elem.icount=_,j._elem.indent=S,j._elem.indents=I,j._elem.interrupt=j,j._elem;var M,z=[],K=[];function Y(B){Object.keys(B).forEach((function(X){z.push((function(ie,se){return ie+'="'+v(se)+'"'})(X,B[X]))}))}switch(typeof j){case"object":if(j===null)break;j._attr&&Y(j._attr),j._cdata&&K.push(("/g,"]]]]>")+"]]>"),j.forEach&&(M=!1,K.push(""),j.forEach((function(B){typeof B=="object"?Object.keys(B)[0]=="_attr"?Y(B._attr):K.push(y(B,S,_+1)):(K.pop(),M=!0,K.push(v(B)))})),M||K.push(""));break;default:K.push(v(j))}return{name:T,interrupt:!1,attributes:z,content:K,icount:_,indents:I,indent:S}}function m(g,S,_){if(typeof S!="object")return g(!1,S);var T=S.interrupt?1:S.content.length;function I(){for(;S.content.length;){var M=S.content.shift();if(M!==void 0){if(j(M))return;m(g,M)}}g(!1,(T>1?S.indents:"")+(S.name?"":"")+(S.indent&&!_?` +`:"")),_&&_()}function j(M){return!!M.interrupt&&(M.interrupt.append=g,M.interrupt.end=I,M.interrupt=!1,g(!0),!0)}if(g(!1,S.indents+(S.name?"<"+S.name:"")+(S.attributes.length?" "+S.attributes.join(" "):"")+(T?S.name?">":"":S.name?"/>":"")+(S.indent&&T>1?` +`:"")),!T)return g(!1,S.indent?` +`:"");j(S)||I()}w.exports=function(S,_){typeof _!="object"&&(_={indent:_});var T=_.stream?new f:null,I="",j=!1,M=_.indent?_.indent===!0?" ":_.indent:"",z=!0;function K(te){z?h.nextTick(te):te()}function Y(te,ie){if(ie!==void 0&&(I+=ie),te&&!j&&(T=T||new f,j=!0),te&&j){var se=I;K((function(){T.emit("data",se)})),I=""}}function B(te,ie){m(Y,y(te,M,M?1:0),ie)}function X(){if(T){var te=I;K((function(){T.emit("data",te),T.emit("end"),T.readable=!1,T.emit("close")}))}}return K((function(){z=!1})),_.declaration&&(function(ie){var se={version:"1.0",encoding:ie.encoding||"UTF-8"};ie.standalone&&(se.standalone=ie.standalone),B({"?xml":{_attr:se}}),I=I.replace("/>","?>")})(_.declaration),S&&S.forEach?S.forEach((function(te,ie){var se;ie+1===S.length&&(se=X),B(te,se)})):B(S,X),T?(T.readable=!0,T):I},w.exports.element=w.exports.Element=function(){var S={_elem:y(Array.prototype.slice.call(arguments)),push:function(_){if(!this.append)throw new Error("not assigned to a parent!");var T=this,I=this._elem.indent;m(this.append,y(_,I,this._elem.icount+(I?1:0)),(function(){T.append(!0)}))},close:function(_){_!==void 0&&this.push(_),this.end&&this.end()}};return S}},86215(w,N){var s,h,v;h=[],s=(function(){var f=function(j){return j&&"getComputedStyle"in window&&window.getComputedStyle(j)["scroll-behavior"]==="smooth"};if(typeof window>"u"||!("document"in window))return{};var y=function(j,M,z){var K;M=M||999,z||z===0||(z=9);var Y=function(he){K=he},B=function(){clearTimeout(K),Y(0)},X=function(he){return Math.max(0,j.getTopOf(he)-z)},te=function(he,ge,ke){if(B(),ge===0||ge&&ge<0||f(j.body))j.toY(he),ke&&ke();else{var Ve=j.getY(),He=Math.max(0,he)-Ve,qe=new Date().getTime();ge=ge||Math.min(Math.abs(He),M),(function nt(){Y(setTimeout((function(){var gt=Math.min(1,(new Date().getTime()-qe)/ge),Re=Math.max(0,Math.floor(Ve+He*(gt<.5?2*gt*gt:gt*(4-2*gt)-1)));j.toY(Re),gt<1&&j.getHeight()+Reqe?ie(he,ge,ke):He+z>gt?te(He-qe+z,ge,ke):ke&&ke()},Te=function(he,ge,ke,Ve){te(Math.max(0,j.getTopOf(he)-j.getHeight()/2+(ke||he.getBoundingClientRect().height/2)),ge,Ve)};return{setup:function(he,ge){return(he===0||he)&&(M=he),(ge===0||ge)&&(z=ge),{defaultDuration:M,edgeOffset:z}},to:ie,toY:te,intoView:se,center:Te,stop:B,moving:function(){return!!K},getY:j.getY,getTopOf:j.getTopOf}},m=document.documentElement,g=function(){return window.scrollY||m.scrollTop},S=y({body:document.scrollingElement||document.body,toY:function(j){window.scrollTo(0,j)},getY:g,getHeight:function(){return window.innerHeight||m.clientHeight},getTopOf:function(j){return j.getBoundingClientRect().top+g()-m.offsetTop}});if(S.createScroller=function(j,M,z){return y({body:j,toY:function(K){j.scrollTop=K},getY:function(){return j.scrollTop},getHeight:function(){return Math.min(j.clientHeight,window.innerHeight||m.clientHeight)},getTopOf:function(K){return K.offsetTop}},M,z)},"addEventListener"in window&&!window.noZensmooth&&!f(document.body)){var _="history"in window&&"pushState"in history,T=_&&"scrollRestoration"in history;T&&(history.scrollRestoration="auto"),window.addEventListener("load",(function(){T&&(setTimeout((function(){history.scrollRestoration="manual"}),9),window.addEventListener("popstate",(function(j){j.state&&"zenscrollY"in j.state&&S.toY(j.state.zenscrollY)}),!1)),window.location.hash&&setTimeout((function(){var j=S.setup().edgeOffset;if(j){var M=document.getElementById(window.location.href.split("#")[1]);if(M){var z=Math.max(0,S.getTopOf(M)-j),K=S.getY()-z;0<=K&&K<9&&window.scrollTo(0,z)}}}),9)}),!1);var I=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",(function(j){for(var M=j.target;M&&M.tagName!=="A";)M=M.parentNode;if(!(!M||j.which!==1||j.shiftKey||j.metaKey||j.ctrlKey||j.altKey)){if(T){var z=history.state&&typeof history.state=="object"?history.state:{};z.zenscrollY=S.getY();try{history.replaceState(z,"")}catch{}}var K=M.getAttribute("href")||"";if(K.indexOf("#")===0&&!I.test(M.className)){var Y=0,B=document.getElementById(K.substring(1));if(K!=="#"){if(!B)return;Y=S.getTopOf(B)}j.preventDefault();var X=function(){window.location=K},te=S.setup().edgeOffset;te&&(Y=Math.max(0,Y-te),_&&(X=function(){history.pushState({},"",K)})),S.toY(Y,null,X)}}}),!1)}return S})(),(v=typeof s=="function"?s.apply(N,h):s)===void 0||(w.exports=v)},15340(){},79838(){},8628(w,N,s){w.exports=s(76343)},48675(w,N,s){w.exports=s(20850)},7666(w,N,s){var h=s(84851),v=s(953);function f(){var y;return w.exports=f=h?v(y=h).call(y):function(m){for(var g=1;g"u"?s.g:globalThis;w.exports=function(){for(var y=[],m=0;mM;)if((j=T[M++])!=j)return!0}else for(;I>M;M++)if((m||M in T)&&T[M]===S)return m||M||0;return!m&&-1}};w.exports={includes:y(!0),indexOf:y(!1)}},93427(w,N,s){var h=s(1907);w.exports=h([].slice)},45807(w,N,s){var h=s(1907),v=h({}.toString),f=h("".slice);w.exports=function(y){return f(v(y),8,-1)}},73948(w,N,s){var h=s(52623),v=s(62250),f=s(45807),y=s(76264)("toStringTag"),m=Object,g=f((function(){return arguments})())==="Arguments";w.exports=h?f:function(S){var _,T,I;return S===void 0?"Undefined":S===null?"Null":typeof(T=(function(j,M){try{return j[M]}catch{}})(_=m(S),y))=="string"?T:g?f(_):(I=f(_))==="Object"&&v(_.callee)?"Arguments":I}},19595(w,N,s){var h=s(49724),v=s(11042),f=s(13846),y=s(74284);w.exports=function(m,g,S){for(var _=v(g),T=y.f,I=f.f,j=0;j<_.length;j++){var M=_[j];h(m,M)||S&&h(S,M)||T(m,M,I(g,M))}}},25735(w,N,s){var h=s(76264)("match");w.exports=function(v){var f=/./;try{"/./"[v](f)}catch{try{return f[h]=!1,"/./"[v](f)}catch{}}return!1}},57382(w,N,s){var h=s(98828);w.exports=!h((function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}))},59550(w){w.exports=function(N,s){return{value:N,done:s}}},61626(w,N,s){var h=s(39447),v=s(74284),f=s(75817);w.exports=h?function(y,m,g){return v.f(y,m,f(1,g))}:function(y,m,g){return y[m]=g,y}},75817(w){w.exports=function(N,s){return{enumerable:!(1&N),configurable:!(2&N),writable:!(4&N),value:s}}},68055(w,N,s){var h=s(61626);w.exports=function(v,f,y,m){return m&&m.enumerable?v[f]=y:h(v,f,y),v}},2532(w,N,s){var h=s(45951),v=Object.defineProperty;w.exports=function(f,y){try{v(h,f,{value:y,configurable:!0,writable:!0})}catch{h[f]=y}return y}},39447(w,N,s){var h=s(98828);w.exports=!h((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},49552(w,N,s){var h=s(45951),v=s(46285),f=h.document,y=v(f)&&v(f.createElement);w.exports=function(m){return y?f.createElement(m):{}}},19287(w){w.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},80376(w){w.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},96794(w,N,s){var h=s(45951).navigator,v=h&&h.userAgent;w.exports=v?String(v):""},20798(w,N,s){var h,v,f=s(45951),y=s(96794),m=f.process,g=f.Deno,S=m&&m.versions||g&&g.version,_=S&&S.v8;_&&(v=(h=_.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!v&&y&&(!(h=y.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=y.match(/Chrome\/(\d+)/))&&(v=+h[1]),w.exports=v},85762(w,N,s){var h=s(1907),v=Error,f=h("".replace),y=String(new v("zxcasd").stack),m=/\n\s*at [^:]*:[^\n]*/,g=m.test(y);w.exports=function(S,_){if(g&&typeof S=="string"&&!v.prepareStackTrace)for(;_--;)S=f(S,m,"");return S}},85884(w,N,s){var h=s(61626),v=s(85762),f=s(23888),y=Error.captureStackTrace;w.exports=function(m,g,S,_){f&&(y?y(m,g):h(m,"stack",v(S,_)))}},23888(w,N,s){var h=s(98828),v=s(75817);w.exports=!h((function(){var f=new Error("a");return!("stack"in f)||(Object.defineProperty(f,"stack",v(1,7)),f.stack!==7)}))},11091(w,N,s){var h=s(45951),v=s(76024),f=s(92361),y=s(62250),m=s(13846).f,g=s(7463),S=s(92046),_=s(28311),T=s(61626),I=s(49724);s(36128);var j=function(M){var z=function(K,Y,B){if(this instanceof z){switch(arguments.length){case 0:return new M;case 1:return new M(K);case 2:return new M(K,Y)}return new M(K,Y,B)}return v(M,this,arguments)};return z.prototype=M.prototype,z};w.exports=function(M,z){var K,Y,B,X,te,ie,se,Te,he,ge=M.target,ke=M.global,Ve=M.stat,He=M.proto,qe=ke?h:Ve?h[ge]:h[ge]&&h[ge].prototype,nt=ke?S:S[ge]||T(S,ge,{})[ge],gt=nt.prototype;for(X in z)Y=!(K=g(ke?X:ge+(Ve?".":"#")+X,M.forced))&&qe&&I(qe,X),ie=nt[X],Y&&(se=M.dontCallGetSet?(he=m(qe,X))&&he.value:qe[X]),te=Y&&se?se:z[X],(K||He||typeof ie!=typeof te)&&(Te=M.bind&&Y?_(te,h):M.wrap&&Y?j(te):He&&y(te)?f(te):te,(M.sham||te&&te.sham||ie&&ie.sham)&&T(Te,"sham",!0),T(nt,X,Te),He&&(I(S,B=ge+"Prototype")||T(S,B,{}),T(S[B],X,te),M.real&>&&(K||!gt[X])&&T(gt,X,te)))}},98828(w){w.exports=function(N){try{return!!N()}catch{return!0}}},76024(w,N,s){var h=s(41505),v=Function.prototype,f=v.apply,y=v.call;w.exports=typeof Reflect=="object"&&Reflect.apply||(h?y.bind(f):function(){return y.apply(f,arguments)})},28311(w,N,s){var h=s(92361),v=s(82159),f=s(41505),y=h(h.bind);w.exports=function(m,g){return v(m),g===void 0?m:f?y(m,g):function(){return m.apply(g,arguments)}}},41505(w,N,s){var h=s(98828);w.exports=!h((function(){var v=(function(){}).bind();return typeof v!="function"||v.hasOwnProperty("prototype")}))},44673(w,N,s){var h=s(1907),v=s(82159),f=s(46285),y=s(49724),m=s(93427),g=s(41505),S=Function,_=h([].concat),T=h([].join),I={};w.exports=g?S.bind:function(M){var z=v(this),K=z.prototype,Y=m(arguments,1),B=function(){var te=_(Y,m(arguments));return this instanceof B?(function(ie,se,Te){if(!y(I,se)){for(var he=[],ge=0;geie;ie++)if((Te=u(K[ie]))&&S(z,Te))return Te;return new M(!1)}X=_(K,te)}for(he=He?K.next:X.next;!(ge=v(he,X)).done;){try{Te=u(ge.value)}catch(at){I(X,"throw",at)}if(typeof Te=="object"&&Te&&S(z,Te))return Te}return new M(!1)}},40154(w,N,s){var h=s(13930),v=s(36624),f=s(29367);w.exports=function(y,m,g){var S,_;v(y);try{if(!(S=f(y,"return"))){if(m==="throw")throw g;return g}S=h(S,y)}catch(T){_=!0,S=T}if(m==="throw")throw g;if(_)throw S;return v(S),g}},47181(w,N,s){var h=s(95116).IteratorPrototype,v=s(58075),f=s(75817),y=s(14840),m=s(93742),g=function(){return this};w.exports=function(S,_,T,I){var j=_+" Iterator";return S.prototype=v(h,{next:f(+!I,T)}),y(S,j,!1,!0),m[j]=g,S}},60183(w,N,s){var h=s(11091),v=s(13930),f=s(7376),y=s(36833),m=s(62250),g=s(47181),S=s(15972),_=s(79192),T=s(14840),I=s(61626),j=s(68055),M=s(76264),z=s(93742),K=s(95116),Y=y.PROPER,B=y.CONFIGURABLE,X=K.IteratorPrototype,te=K.BUGGY_SAFARI_ITERATORS,ie=M("iterator"),se="keys",Te="values",he="entries",ge=function(){return this};w.exports=function(ke,Ve,He,qe,nt,gt,Re){g(He,Ve,qe);var u,at,Xe,Se=function(we){if(we===nt&&Wt)return Wt;if(!te&&we&&we in ft)return ft[we];switch(we){case se:return function(){return new He(this,we)};case Te:return function(){return new He(this,we)};case he:return function(){return new He(this,we)}}return function(){return new He(this)}},De=Ve+" Iterator",Ke=!1,ft=ke.prototype,Nt=ft[ie]||ft["@@iterator"]||nt&&ft[nt],Wt=!te&&Nt||Se(nt),H=Ve==="Array"&&ft.entries||Nt;if(H&&(u=S(H.call(new ke)))!==Object.prototype&&u.next&&(f||S(u)===X||(_?_(u,X):m(u[ie])||j(u,ie,ge)),T(u,De,!0,!0),f&&(z[De]=ge)),Y&&nt===Te&&Nt&&Nt.name!==Te&&(!f&&B?I(ft,"name",Te):(Ke=!0,Wt=function(){return v(Nt,this)})),nt)if(at={values:Se(Te),keys:gt?Wt:Se(se),entries:Se(he)},Re)for(Xe in at)(te||Ke||!(Xe in ft))&&j(ft,Xe,at[Xe]);else h({target:Ve,proto:!0,forced:te||Ke},at);return f&&!Re||ft[ie]===Wt||j(ft,ie,Wt,{name:nt}),z[Ve]=Wt,at}},95116(w,N,s){var h,v,f,y=s(98828),m=s(62250),g=s(46285),S=s(58075),_=s(15972),T=s(68055),I=s(76264),j=s(7376),M=I("iterator"),z=!1;[].keys&&("next"in(f=[].keys())?(v=_(_(f)))!==Object.prototype&&(h=v):z=!0),!g(h)||y((function(){var K={};return h[M].call(K)!==K}))?h={}:j&&(h=S(h)),m(h[M])||T(h,M,(function(){return this})),w.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:z}},93742(w){w.exports={}},20575(w,N,s){var h=s(3121);w.exports=function(v){return h(v.length)}},41176(w){var N=Math.ceil,s=Math.floor;w.exports=Math.trunc||function(v){var f=+v;return(f>0?s:N)(f)}},32096(w,N,s){var h=s(90160);w.exports=function(v,f){return v===void 0?arguments.length<2?"":f:h(v)}},12074(w,N,s){var h=s(72087),v=TypeError;w.exports=function(f){if(h(f))throw new v("The method doesn't accept regular expressions");return f}},29538(w,N,s){var h=s(39447),v=s(1907),f=s(13930),y=s(98828),m=s(2875),g=s(87170),S=s(22574),_=s(39298),T=s(16946),I=Object.assign,j=Object.defineProperty,M=v([].concat);w.exports=!I||y((function(){if(h&&I({b:1},I(j({},"a",{enumerable:!0,get:function(){j(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var z={},K={},Y=Symbol("assign detection"),B="abcdefghijklmnopqrst";return z[Y]=7,B.split("").forEach((function(X){K[X]=X})),I({},z)[Y]!==7||m(I({},K)).join("")!==B}))?function(K,Y){for(var B=_(K),X=arguments.length,te=1,ie=g.f,se=S.f;X>te;)for(var Te,he=T(arguments[te++]),ge=ie?M(m(he),ie(he)):m(he),ke=ge.length,Ve=0;ke>Ve;)Te=ge[Ve++],h&&!f(se,he,Te)||(B[Te]=he[Te]);return B}:I},58075(w,N,s){var h,v=s(36624),f=s(42220),y=s(80376),m=s(38530),g=s(62416),S=s(49552),_=s(92522),T="prototype",I="script",j=_("IE_PROTO"),M=function(){},z=function(B){return"<"+I+">"+B+""},K=function(B){B.write(z("")),B.close();var X=B.parentWindow.Object;return B=null,X},Y=function(){try{h=new ActiveXObject("htmlfile")}catch{}var B,X,te;Y=typeof document<"u"?document.domain&&h?K(h):(X=S("iframe"),te="java"+I+":",X.style.display="none",g.appendChild(X),X.src=String(te),(B=X.contentWindow.document).open(),B.write(z("document.F=Object")),B.close(),B.F):K(h);for(var ie=y.length;ie--;)delete Y[T][y[ie]];return Y()};m[j]=!0,w.exports=Object.create||function(X,te){var ie;return X!==null?(M[T]=v(X),ie=new M,M[T]=null,ie[j]=X):ie=Y(),te===void 0?ie:f.f(ie,te)}},42220(w,N,s){var h=s(39447),v=s(58661),f=s(74284),y=s(36624),m=s(4993),g=s(2875);N.f=h&&!v?Object.defineProperties:function(_,T){y(_);for(var I,j=m(T),M=g(T),z=M.length,K=0;z>K;)f.f(_,I=M[K++],j[I]);return _}},74284(w,N,s){var h=s(39447),v=s(73648),f=s(58661),y=s(36624),m=s(70470),g=TypeError,S=Object.defineProperty,_=Object.getOwnPropertyDescriptor,T="enumerable",I="configurable",j="writable";N.f=h?f?function(z,K,Y){if(y(z),K=m(K),y(Y),typeof z=="function"&&K==="prototype"&&"value"in Y&&j in Y&&!Y[j]){var B=_(z,K);B&&B[j]&&(z[K]=Y.value,Y={configurable:I in Y?Y[I]:B[I],enumerable:T in Y?Y[T]:B[T],writable:!1})}return S(z,K,Y)}:S:function(z,K,Y){if(y(z),K=m(K),y(Y),v)try{return S(z,K,Y)}catch{}if("get"in Y||"set"in Y)throw new g("Accessors not supported");return"value"in Y&&(z[K]=Y.value),z}},13846(w,N,s){var h=s(39447),v=s(13930),f=s(22574),y=s(75817),m=s(4993),g=s(70470),S=s(49724),_=s(73648),T=Object.getOwnPropertyDescriptor;N.f=h?T:function(j,M){if(j=m(j),M=g(M),_)try{return T(j,M)}catch{}if(S(j,M))return y(!v(f.f,j,M),j[M])}},24443(w,N,s){var h=s(23045),v=s(80376).concat("length","prototype");N.f=Object.getOwnPropertyNames||function(y){return h(y,v)}},87170(w,N){N.f=Object.getOwnPropertySymbols},15972(w,N,s){var h=s(49724),v=s(62250),f=s(39298),y=s(92522),m=s(57382),g=y("IE_PROTO"),S=Object,_=S.prototype;w.exports=m?S.getPrototypeOf:function(T){var I=f(T);if(h(I,g))return I[g];var j=I.constructor;return v(j)&&I instanceof j?j.prototype:I instanceof S?_:null}},88280(w,N,s){var h=s(1907);w.exports=h({}.isPrototypeOf)},23045(w,N,s){var h=s(1907),v=s(49724),f=s(4993),y=s(74436).indexOf,m=s(38530),g=h([].push);w.exports=function(S,_){var T,I=f(S),j=0,M=[];for(T in I)!v(m,T)&&v(I,T)&&g(M,T);for(;_.length>j;)v(I,T=_[j++])&&(~y(M,T)||g(M,T));return M}},2875(w,N,s){var h=s(23045),v=s(80376);w.exports=Object.keys||function(y){return h(y,v)}},22574(w,N){var s={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,v=h&&!s.call({1:2},1);N.f=v?function(y){var m=h(this,y);return!!m&&m.enumerable}:s},79192(w,N,s){var h=s(51871),v=s(46285),f=s(74239),y=s(10043);w.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var m,g=!1,S={};try{(m=h(Object.prototype,"__proto__","set"))(S,[]),g=S instanceof Array}catch{}return function(T,I){return f(T),y(I),v(T)&&(g?m(T,I):T.__proto__=I),T}})():void 0)},54878(w,N,s){var h=s(52623),v=s(73948);w.exports=h?{}.toString:function(){return"[object "+v(this)+"]"}},60581(w,N,s){var h=s(13930),v=s(62250),f=s(46285),y=TypeError;w.exports=function(m,g){var S,_;if(g==="string"&&v(S=m.toString)&&!f(_=h(S,m))||v(S=m.valueOf)&&!f(_=h(S,m))||g!=="string"&&v(S=m.toString)&&!f(_=h(S,m)))return _;throw new y("Can't convert object to primitive value")}},11042(w,N,s){var h=s(85582),v=s(1907),f=s(24443),y=s(87170),m=s(36624),g=v([].concat);w.exports=h("Reflect","ownKeys")||function(_){var T=f.f(m(_)),I=y.f;return I?g(T,I(_)):T}},92046(w){w.exports={}},54829(w,N,s){var h=s(74284).f;w.exports=function(v,f,y){y in v||h(v,y,{configurable:!0,get:function(){return f[y]},set:function(m){f[y]=m}})}},74239(w,N,s){var h=s(87136),v=TypeError;w.exports=function(f){if(h(f))throw new v("Can't call method on "+f);return f}},14840(w,N,s){var h=s(52623),v=s(74284).f,f=s(61626),y=s(49724),m=s(54878),g=s(76264)("toStringTag");w.exports=function(S,_,T,I){var j=T?S:S&&S.prototype;j&&(y(j,g)||v(j,g,{configurable:!0,value:_}),I&&!h&&f(j,"toString",m))}},92522(w,N,s){var h=s(85816),v=s(6499),f=h("keys");w.exports=function(y){return f[y]||(f[y]=v(y))}},36128(w,N,s){var h=s(7376),v=s(45951),f=s(2532),y="__core-js_shared__",m=w.exports=v[y]||f(y,{});(m.versions||(m.versions=[])).push({version:"3.40.0",mode:h?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})},85816(w,N,s){var h=s(36128);w.exports=function(v,f){return h[v]||(h[v]=f||{})}},11470(w,N,s){var h=s(1907),v=s(65482),f=s(90160),y=s(74239),m=h("".charAt),g=h("".charCodeAt),S=h("".slice),_=function(T){return function(I,j){var M,z,K=f(y(I)),Y=v(j),B=K.length;return Y<0||Y>=B?T?"":void 0:(M=g(K,Y))<55296||M>56319||Y+1===B||(z=g(K,Y+1))<56320||z>57343?T?m(K,Y):M:T?S(K,Y,Y+2):z-56320+(M-55296<<10)+65536}};w.exports={codeAt:_(!1),charAt:_(!0)}},19846(w,N,s){var h=s(20798),v=s(98828),f=s(45951).String;w.exports=!!Object.getOwnPropertySymbols&&!v((function(){var y=Symbol("symbol detection");return!f(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&h&&h<41}))},34849(w,N,s){var h=s(65482),v=Math.max,f=Math.min;w.exports=function(y,m){var g=h(y);return g<0?v(g+m,0):f(g,m)}},4993(w,N,s){var h=s(16946),v=s(74239);w.exports=function(f){return h(v(f))}},65482(w,N,s){var h=s(41176);w.exports=function(v){var f=+v;return f!=f||f===0?0:h(f)}},3121(w,N,s){var h=s(65482),v=Math.min;w.exports=function(f){var y=h(f);return y>0?v(y,9007199254740991):0}},39298(w,N,s){var h=s(74239),v=Object;w.exports=function(f){return v(h(f))}},46028(w,N,s){var h=s(13930),v=s(46285),f=s(25594),y=s(29367),m=s(60581),g=s(76264),S=TypeError,_=g("toPrimitive");w.exports=function(T,I){if(!v(T)||f(T))return T;var j,M=y(T,_);if(M){if(I===void 0&&(I="default"),j=h(M,T,I),!v(j)||f(j))return j;throw new S("Can't convert object to primitive value")}return I===void 0&&(I="number"),m(T,I)}},70470(w,N,s){var h=s(46028),v=s(25594);w.exports=function(f){var y=h(f,"string");return v(y)?y:y+""}},52623(w,N,s){var h={};h[s(76264)("toStringTag")]="z",w.exports=String(h)==="[object z]"},90160(w,N,s){var h=s(73948),v=String;w.exports=function(f){if(h(f)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return v(f)}},4640(w){var N=String;w.exports=function(s){try{return N(s)}catch{return"Object"}}},6499(w,N,s){var h=s(1907),v=0,f=Math.random(),y=h(1 .toString);w.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+y(++v+f,36)}},51175(w,N,s){var h=s(19846);w.exports=h&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},58661(w,N,s){var h=s(39447),v=s(98828);w.exports=h&&v((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype!==42}))},40551(w,N,s){var h=s(45951),v=s(62250),f=h.WeakMap;w.exports=v(f)&&/native code/.test(String(f))},76264(w,N,s){var h=s(45951),v=s(85816),f=s(49724),y=s(6499),m=s(19846),g=s(51175),S=h.Symbol,_=v("wks"),T=g?S.for||S:S&&S.withoutSetter||y;w.exports=function(I){return f(_,I)||(_[I]=m&&f(S,I)?S[I]:T("Symbol."+I)),_[I]}},19358(w,N,s){var h=s(85582),v=s(49724),f=s(61626),y=s(88280),m=s(79192),g=s(19595),S=s(54829),_=s(34084),T=s(32096),I=s(39259),j=s(85884),M=s(39447),z=s(7376);w.exports=function(K,Y,B,X){var te="stackTraceLimit",ie=X?2:1,se=K.split("."),Te=se[se.length-1],he=h.apply(null,se);if(he){var ge=he.prototype;if(!z&&v(ge,"cause")&&delete ge.cause,!B)return he;var ke=h("Error"),Ve=Y((function(He,qe){var nt=T(X?qe:He,void 0),gt=X?new he(He):new he;return nt!==void 0&&f(gt,"message",nt),j(gt,Ve,gt.stack,2),this&&y(ge,this)&&_(gt,this,Ve),arguments.length>ie&&I(gt,arguments[ie]),gt}));if(Ve.prototype=ge,Te!=="Error"?m?m(Ve,ke):g(Ve,ke,{name:!0}):M&&te in he&&(S(Ve,he,te),S(Ve,he,"prepareStackTrace")),g(Ve,he),!z)try{ge.name!==Te&&f(ge,"name",Te),ge.constructor=Ve}catch{}return Ve}}},36371(w,N,s){var h=s(11091),v=s(85582),f=s(76024),y=s(98828),m=s(19358),g="AggregateError",S=v(g),_=!y((function(){return S([1]).errors[0]!==1}))&&y((function(){return S([1],g,{cause:7}).cause!==7}));h({global:!0,constructor:!0,arity:2,forced:_},{AggregateError:m(g,(function(T){return function(j,M){return f(T,this,arguments)}}),_,!0)})},82048(w,N,s){var h=s(11091),v=s(88280),f=s(15972),y=s(79192),m=s(19595),g=s(58075),S=s(61626),_=s(75817),T=s(39259),I=s(85884),j=s(24823),M=s(32096),z=s(76264)("toStringTag"),K=Error,Y=[].push,B=function(ie,se){var Te,he=v(X,this);y?Te=y(new K,he?f(this):X):(Te=he?this:g(X),S(Te,z,"Error")),se!==void 0&&S(Te,"message",M(se)),I(Te,B,Te.stack,1),arguments.length>2&&T(Te,arguments[2]);var ge=[];return j(ie,Y,{that:ge}),S(Te,"errors",ge),Te};y?y(B,K):m(B,K,{name:!0});var X=B.prototype=g(K.prototype,{constructor:_(1,B),message:_(1,""),name:_(1,"AggregateError")});h({global:!0,constructor:!0,arity:2},{AggregateError:B})},64502(w,N,s){s(82048)},19748(w,N,s){var h=s(11091),v=s(74436).includes,f=s(98828),y=s(42156);h({target:"Array",proto:!0,forced:f((function(){return!Array(1).includes()}))},{includes:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),y("includes")},99363(w,N,s){var h=s(4993),v=s(42156),f=s(93742),y=s(64932),m=s(74284).f,g=s(60183),S=s(59550),_=s(7376),T=s(39447),I="Array Iterator",j=y.set,M=y.getterFor(I);w.exports=g(Array,"Array",(function(K,Y){j(this,{type:I,target:h(K),index:0,kind:Y})}),(function(){var K=M(this),Y=K.target,B=K.index++;if(!Y||B>=Y.length)return K.target=null,S(void 0,!0);switch(K.kind){case"keys":return S(B,!1);case"values":return S(Y[B],!1)}return S([B,Y[B]],!1)}),"values");var z=f.Arguments=f.Array;if(v("keys"),v("values"),v("entries"),!_&&T&&z.name!=="values")try{m(z,"name",{value:"values"})}catch{}},96605(w,N,s){var h=s(11091),v=s(45951),f=s(76024),y=s(19358),m="WebAssembly",g=v[m],S=new Error("e",{cause:7}).cause!==7,_=function(I,j){var M={};M[I]=y(I,j,S),h({global:!0,constructor:!0,arity:1,forced:S},M)},T=function(I,j){if(g&&g[I]){var M={};M[I]=y(m+"."+I,j,S),h({target:m,stat:!0,constructor:!0,arity:1,forced:S},M)}};_("Error",(function(I){return function(M){return f(I,this,arguments)}})),_("EvalError",(function(I){return function(M){return f(I,this,arguments)}})),_("RangeError",(function(I){return function(M){return f(I,this,arguments)}})),_("ReferenceError",(function(I){return function(M){return f(I,this,arguments)}})),_("SyntaxError",(function(I){return function(M){return f(I,this,arguments)}})),_("TypeError",(function(I){return function(M){return f(I,this,arguments)}})),_("URIError",(function(I){return function(M){return f(I,this,arguments)}})),T("CompileError",(function(I){return function(M){return f(I,this,arguments)}})),T("LinkError",(function(I){return function(M){return f(I,this,arguments)}})),T("RuntimeError",(function(I){return function(M){return f(I,this,arguments)}}))},79307(w,N,s){var h=s(11091),v=s(44673);h({target:"Function",proto:!0,forced:Function.bind!==v},{bind:v})},71340(w,N,s){var h=s(11091),v=s(29538);h({target:"Object",stat:!0,arity:2,forced:Object.assign!==v},{assign:v})},19770(w,N,s){var h=s(11091),v=s(1907),f=s(12074),y=s(74239),m=s(90160),g=s(25735),S=v("".indexOf);h({target:"String",proto:!0,forced:!g("includes")},{includes:function(T){return!!~S(m(y(this)),m(f(T)),arguments.length>1?arguments[1]:void 0)}})},7057(w,N,s){var h=s(11470).charAt,v=s(90160),f=s(64932),y=s(60183),m=s(59550),g="String Iterator",S=f.set,_=f.getterFor(g);y(String,"String",(function(T){S(this,{type:g,string:v(T),index:0})}),(function(){var I,j=_(this),M=j.string,z=j.index;return z>=M.length?m(void 0,!0):(I=h(M,z),j.index+=I.length,m(I,!1))}))},91599(w,N,s){s(64502)},12560(w,N,s){s(99363);var h=s(19287),v=s(45951),f=s(14840),y=s(93742);for(var m in h)f(v[m],m),y[m]=y.Array},694(w,N,s){s(91599);var h=s(37257);s(12560),w.exports=h},19709(w,N,s){var h=s(23034);w.exports=h},76343(w,N,s){var h=s(36880);w.exports=h},40975(w,N,s){var h=s(9748);w.exports=h}},hs={};function Be(w){var N=hs[w];if(N!==void 0)return N.exports;var s=hs[w]={id:w,loaded:!1,exports:{}};return eE[w].call(s.exports,s,s.exports,Be),s.loaded=!0,s.exports}Be.n=w=>{var N=w&&w.__esModule?()=>w.default:()=>w;return Be.d(N,{a:N}),N},Be.d=(w,N)=>{for(var s in N)Be.o(N,s)&&!Be.o(w,s)&&Object.defineProperty(w,s,{enumerable:!0,get:N[s]})},Be.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),Be.o=(w,N)=>Object.prototype.hasOwnProperty.call(w,N),Be.r=w=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(w,"__esModule",{value:!0})},Be.nmd=w=>(w.paths=[],w.children||(w.children=[]),w);var Cd={};(()=>{Be.d(Cd,{default:()=>bU});var w={};Be.r(w),Be.d(w,{CLEAR:()=>pe,CLEAR_BY:()=>U,NEW_AUTH_ERR:()=>Zt,NEW_SPEC_ERR:()=>kt,NEW_SPEC_ERR_BATCH:()=>yt,NEW_THROWN_ERR:()=>Gt,NEW_THROWN_ERR_BATCH:()=>Sr,clear:()=>St,clearBy:()=>Bt,newAuthErr:()=>Fe,newSpecErr:()=>ye,newSpecErrBatch:()=>Ee,newThrownErr:()=>Z,newThrownErrBatch:()=>ne});var N={};Be.r(N),Be.d(N,{AUTHORIZE:()=>an,AUTHORIZE_OAUTH2:()=>rc,CONFIGURE_AUTH:()=>Zs,LOGOUT:()=>tc,RESTORE_AUTHORIZATION:()=>nc,SHOW_AUTH_POPUP:()=>vs,authPopup:()=>rl,authorize:()=>Ku,authorizeAccessCodeWithBasicAuthentication:()=>el,authorizeAccessCodeWithFormParams:()=>ac,authorizeApplication:()=>jo,authorizeOauth2:()=>yi,authorizeOauth2WithPersistOption:()=>bs,authorizePassword:()=>ws,authorizeRequest:()=>Es,authorizeWithPersistOption:()=>$c,configureAuth:()=>vi,logout:()=>$i,logoutWithPersistOption:()=>Co,persistAuthorizationIfNeeded:()=>tl,preAuthorizeImplicit:()=>gi,restoreAuthorization:()=>bn,showDefinitions:()=>Hu});var s={};Be.r(s),Be.d(s,{authorized:()=>zc,definitionsForRequirements:()=>ic,definitionsToAuthorize:()=>Uc,getConfigs:()=>uo,getDefinitionsByNames:()=>Gu,isAuthorized:()=>rh,selectAuthPath:()=>al,shownDefinitions:()=>wi});var h={};Be.r(h),Be.d(h,{TOGGLE_CONFIGS:()=>Bn,UPDATE_CONFIGS:()=>aa,downloadConfig:()=>n0,getConfigByUrl:()=>a0,loaded:()=>po,toggle:()=>Ya,update:()=>Ga});var v={};Be.r(v),Be.d(v,{get:()=>Pd});var f={};Be.r(f),Be.d(f,{transform:()=>Sl});var y={};Be.r(y),Be.d(y,{transform:()=>xl});var m={};Be.r(m),Be.d(m,{allErrors:()=>hc,lastError:()=>Ko});var g={};Be.r(g),Be.d(g,{SHOW:()=>Cs,UPDATE_FILTER:()=>Io,UPDATE_LAYOUT:()=>iu,UPDATE_MODE:()=>Mo,changeMode:()=>Zm,show:()=>dc,updateFilter:()=>js,updateLayout:()=>Yi});var S={};Be.r(S),Be.d(S,{current:()=>Dd,currentFilter:()=>Go,isShown:()=>Ro,showSummary:()=>Oi,whatMode:()=>Un});var _={};Be.r(_),Be.d(_,{taggedOperations:()=>eg});var T={};Be.r(T),Be.d(T,{getActiveLanguage:()=>hh,getDefaultExpanded:()=>dh,getGenerators:()=>fc,getSnippetGenerators:()=>ng});var I={};Be.r(I),Be.d(I,{JsonSchemaArrayItemFile:()=>wh,JsonSchemaArrayItemText:()=>mu,JsonSchemaForm:()=>Hd,JsonSchema_array:()=>ii,JsonSchema_boolean:()=>Kd,JsonSchema_object:()=>sg,JsonSchema_string:()=>Xi});var j={};Be.r(j),Be.d(j,{allowTryItOutFor:()=>Op,basePath:()=>Tg,canExecuteScheme:()=>Rs,consumes:()=>Ph,consumesOptionsFor:()=>Qi,contentTypeValues:()=>Cl,currentProducesFor:()=>ff,definitions:()=>pf,externalDocs:()=>Cg,findDefinition:()=>Ng,getOAS3RequiredRequestBodyContentType:()=>zg,getParameter:()=>$g,hasHost:()=>df,host:()=>Th,info:()=>Ch,isMediaTypeSchemaPropertiesEqual:()=>Vg,isOAS3:()=>Ag,lastError:()=>Sg,mutatedRequestFor:()=>Fg,mutatedRequests:()=>cr,operationScheme:()=>mf,operationWithMeta:()=>hf,operations:()=>jh,operationsWithRootInherited:()=>bu,operationsWithTags:()=>Mg,parameterInclusionSettingFor:()=>Mh,parameterValues:()=>Rh,parameterWithMeta:()=>Lg,parameterWithMetaByIdentity:()=>Eu,parametersIncludeIn:()=>ho,parametersIncludeType:()=>ci,paths:()=>lf,produces:()=>cf,producesOptionsFor:()=>Bg,requestFor:()=>Dg,requests:()=>Rg,responseFor:()=>wu,responses:()=>$a,schemes:()=>Ms,security:()=>uf,securityDefinitions:()=>Nh,semver:()=>jg,spec:()=>eo,specJS:()=>_g,specJson:()=>Za,specJsonWithResolvedSubtrees:()=>li,specResolved:()=>Og,specResolvedSubtree:()=>kg,specSource:()=>Do,specStr:()=>u0,tagDetails:()=>Ig,taggedOperations:()=>Ih,tags:()=>La,url:()=>xg,validOperationMethods:()=>Pg,validateBeforeExecute:()=>Ug,validationErrors:()=>qg,version:()=>sf});var M={};Be.r(M),Be.d(M,{CLEAR_REQUEST:()=>Pl,CLEAR_RESPONSE:()=>Ap,CLEAR_VALIDATE_PARAMS:()=>Zi,LOG_REQUEST:()=>Fo,SET_MUTATED_REQUEST:()=>vc,SET_REQUEST:()=>kp,SET_RESPONSE:()=>Su,SET_SCHEME:()=>xu,UPDATE_EMPTY_PARAM_INCLUSION:()=>yc,UPDATE_JSON:()=>jl,UPDATE_OPERATION_META_VALUE:()=>bc,UPDATE_PARAM:()=>Kn,UPDATE_RESOLVED:()=>Cp,UPDATE_RESOLVED_SUBTREE:()=>Pi,UPDATE_SPEC:()=>wa,UPDATE_URL:()=>fo,VALIDATE_PARAMS:()=>Ds,changeConsumesValue:()=>Ec,changeParam:()=>bf,changeParamByIdentity:()=>wf,changeProducesValue:()=>Kg,clearRequest:()=>_u,clearResponse:()=>Xg,clearValidateParams:()=>Sf,execute:()=>Yg,executeRequest:()=>d0,invalidateResolvedSubtreeCache:()=>Hg,logRequest:()=>h0,parseToJson:()=>$h,requestResolvedSubtree:()=>Wg,resolveSpec:()=>Tl,setMutatedRequest:()=>Bh,setRequest:()=>xf,setResponse:()=>Gg,setScheme:()=>Ou,updateEmptyParamInclusion:()=>wc,updateJsonSpec:()=>Lh,updateResolved:()=>jp,updateResolvedSubtree:()=>Il,updateSpec:()=>Fh,updateUrl:()=>vf,validateParams:()=>Ef});var z={};Be.r(z),Be.d(z,{executeRequest:()=>Zg,updateJsonSpec:()=>f0,updateSpec:()=>Gn,validateParams:()=>m0});var K={};Be.r(K),Be.d(K,{JsonPatchError:()=>zn,_areEquals:()=>xc,applyOperation:()=>Rl,applyPatch:()=>es,applyReducer:()=>ay,deepClone:()=>ny,getValueByPointer:()=>Ml,validate:()=>Ip,validator:()=>Au});var Y={};Be.r(Y),Be.d(Y,{compare:()=>i,generate:()=>_f,observe:()=>Mp,unobserve:()=>y0});var B={};Be.r(B),Be.d(B,{hasElementSourceMap:()=>Gh,includesClasses:()=>Yh,includesSymbols:()=>FC,isAnnotationElement:()=>RC,isArrayElement:()=>vo,isBooleanElement:()=>Ff,isCommentElement:()=>DC,isElement:()=>da,isLinkElement:()=>aS,isMemberElement:()=>Bs,isNullElement:()=>tb,isNumberElement:()=>eb,isObjectElement:()=>hn,isParseResultElement:()=>iS,isPrimitiveElement:()=>$p,isRefElement:()=>oS,isStringElement:()=>Ir});var X={};Be.r(X),Be.d(X,{isJSONReferenceElement:()=>cb,isJSONSchemaElement:()=>LS,isLinkDescriptionElement:()=>p3,isMediaElement:()=>$S});var te={};Be.r(te),Be.d(te,{isBooleanJsonSchemaElement:()=>sN,isCallbackElement:()=>WP,isComponentsElement:()=>HP,isContactElement:()=>KP,isDiscriminatorElement:()=>hN,isExampleElement:()=>GP,isExternalDocumentationElement:()=>YP,isHeaderElement:()=>ad,isInfoElement:()=>XP,isLicenseElement:()=>QP,isLinkElement:()=>ZP,isMediaTypeElement:()=>Jy,isOpenApi3_0Element:()=>tN,isOpenapiElement:()=>eN,isOperationElement:()=>HS,isParameterElement:()=>rN,isPathItemElement:()=>gb,isPathsElement:()=>nN,isReferenceElement:()=>Mn,isRequestBodyElement:()=>aN,isResponseElement:()=>Vy,isResponsesElement:()=>oN,isSchemaElement:()=>iN,isSecurityRequirementElement:()=>lN,isSecuritySchemeElement:()=>cN,isServerElement:()=>uN,isServerVariableElement:()=>pN,isServersElement:()=>KS});var ie={};Be.r(ie),Be.d(ie,{isJSONReferenceElement:()=>cb,isJSONSchemaElement:()=>y4,isLinkDescriptionElement:()=>v4,isMediaElement:()=>$S});var se={};Be.r(se),Be.d(se,{isJSONReferenceElement:()=>cb,isJSONSchemaElement:()=>_4,isLinkDescriptionElement:()=>O4});var Te={};Be.r(Te),Be.d(Te,{isJSONSchemaElement:()=>z4,isLinkDescriptionElement:()=>V4});var he={};Be.r(he),Be.d(he,{isJSONSchemaElement:()=>Q4,isLinkDescriptionElement:()=>Z4});var ge={};Be.r(ge),Be.d(ge,{isBooleanJsonSchemaElement:()=>a1,isCallbackElement:()=>MI,isComponentsElement:()=>RI,isContactElement:()=>DI,isExampleElement:()=>FI,isExternalDocumentationElement:()=>LI,isHeaderElement:()=>$I,isInfoElement:()=>BI,isJsonSchemaDialectElement:()=>A2,isLicenseElement:()=>qI,isLinkElement:()=>UI,isMediaTypeElement:()=>t5,isOpenApi3_1Element:()=>C2,isOpenapiElement:()=>zI,isOperationElement:()=>j2,isParameterElement:()=>VI,isPathItemElement:()=>zp,isPathItemElementExternal:()=>JI,isPathsElement:()=>WI,isReferenceElement:()=>Vp,isReferenceElementExternal:()=>HI,isRequestBodyElement:()=>KI,isResponseElement:()=>GI,isResponsesElement:()=>YI,isSchemaElement:()=>Vs,isSecurityRequirementElement:()=>XI,isSecuritySchemeElement:()=>QI,isServerElement:()=>ZI,isServerVariableElement:()=>e5});var ke={};Be.r(ke),Be.d(ke,{cookie:()=>HM,header:()=>WM,path:()=>zM,query:()=>VM});var Ve={};Be.r(Ve),Be.d(Ve,{Button:()=>C7,Col:()=>k7,Collapse:()=>T7,Container:()=>O7,Input:()=>P7,Link:()=>t_,Row:()=>A7,Select:()=>N7,TextArea:()=>j7});var He={};Be.r(He),Be.d(He,{basePath:()=>XF,consumes:()=>QF,definitions:()=>WF,findDefinition:()=>JF,hasHost:()=>HF,host:()=>YF,produces:()=>ZF,schemes:()=>eL,securityDefinitions:()=>KF,validOperationMethods:()=>GF});var qe={};Be.r(qe),Be.d(qe,{definitionsToAuthorize:()=>tL});var nt={};Be.r(nt),Be.d(nt,{callbacksOperations:()=>lL,findSchema:()=>sL,isOAS3:()=>oL,isOAS30:()=>aL,isSwagger2:()=>nL,servers:()=>iL});var gt={};Be.r(gt),Be.d(gt,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:()=>Fv,CLEAR_REQUEST_BODY_VALUE:()=>kw,SET_REQUEST_BODY_VALIDATE_ERROR:()=>Ow,UPDATE_ACTIVE_EXAMPLES_MEMBER:()=>Ew,UPDATE_REQUEST_BODY_INCLUSION:()=>ww,UPDATE_REQUEST_BODY_VALUE:()=>vw,UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:()=>bw,UPDATE_REQUEST_CONTENT_TYPE:()=>Sw,UPDATE_RESPONSE_CONTENT_TYPE:()=>xw,UPDATE_SELECTED_SERVER:()=>yw,UPDATE_SERVER_VARIABLE_VALUE:()=>_w,clearRequestBodyValidateError:()=>DL,clearRequestBodyValue:()=>LL,initRequestBodyValidateError:()=>FL,setActiveExamplesMember:()=>NL,setRequestBodyInclusion:()=>PL,setRequestBodyValidateError:()=>RL,setRequestBodyValue:()=>CL,setRequestContentType:()=>TL,setResponseContentType:()=>IL,setRetainRequestBodyValueFlag:()=>jL,setSelectedServer:()=>AL,setServerVariableValue:()=>ML});var Re={};Be.r(Re),Be.d(Re,{activeExamplesMember:()=>KL,hasUserEditedBody:()=>JL,requestBodyErrors:()=>HL,requestBodyInclusionSetting:()=>WL,requestBodyValue:()=>UL,requestContentType:()=>GL,responseContentType:()=>YL,selectDefaultRequestBodyValue:()=>VL,selectedServer:()=>qL,serverEffectiveValue:()=>ZL,serverVariableValue:()=>XL,serverVariables:()=>QL,shouldRetainRequestBodyValue:()=>zL,validOperationMethods:()=>r$,validateBeforeExecute:()=>e$,validateShallowRequired:()=>t$});var u=Be(96540);function at(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Xe=typeof Symbol=="function"&&Symbol.observable||"@@observable",Se=()=>Math.random().toString(36).substring(7).split("").join("."),De={INIT:`@@redux/INIT${Se()}`,REPLACE:`@@redux/REPLACE${Se()}`};function Ke(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function ft(t,e,r){if(typeof t!="function")throw new Error(at(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(at(0));if(typeof e=="function"&&r===void 0&&(r=e,e=void 0),r!==void 0){if(typeof r!="function")throw new Error(at(1));return r(ft)(t,e)}let n=t,a=e,o=new Map,p=o,c=0,d=!1;function E(){p===o&&(p=new Map,o.forEach(((R,L)=>{p.set(L,R)})))}function x(){if(d)throw new Error(at(3));return a}function k(R){if(typeof R!="function")throw new Error(at(4));if(d)throw new Error(at(5));let L=!0;E();const V=c++;return p.set(V,R),function(){if(L){if(d)throw new Error(at(6));L=!1,E(),p.delete(V),o=null}}}function P(R){if(!Ke(R))throw new Error(at(7));if(R.type===void 0)throw new Error(at(8));if(typeof R.type!="string")throw new Error(at(17));if(d)throw new Error(at(9));try{d=!0,a=n(a,R)}finally{d=!1}return(o=p).forEach((L=>{L()})),R}return P({type:De.INIT}),{dispatch:P,subscribe:k,getState:x,replaceReducer:function(L){if(typeof L!="function")throw new Error(at(10));n=L,P({type:De.REPLACE})},[Xe]:function(){const L=k;return{subscribe(V){if(typeof V!="object"||V===null)throw new Error(at(11));function Q(){const J=V;J.next&&J.next(x())}return Q(),{unsubscribe:L(Q)}},[Xe](){return this}}}}}function Nt(t,e){return function(...r){return e(t.apply(this,r))}}function Wt(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce(((e,r)=>(...n)=>e(r(...n))))}var H=Be(49568),we=Be(81919),ct=Be.n(we),mt=Be(89593),ur=Be(20334),ar=Be(55364),Tt=Be.n(ar);const Gt="err_new_thrown_err",Sr="err_new_thrown_err_batch",kt="err_new_spec_err",yt="err_new_spec_err_batch",Zt="err_new_auth_err",pe="err_clear",U="err_clear_by";function Z(t){return{type:Gt,payload:(0,ur.serializeError)(t)}}function ne(t){return{type:Sr,payload:t}}function ye(t){return{type:kt,payload:t}}function Ee(t){return{type:yt,payload:t}}function Fe(t){return{type:Zt,payload:t}}function St(t={}){return{type:pe,payload:t}}function Bt(t=()=>!0){return{type:U,payload:t}}const Qe=(function(){var e={location:{},history:{},open:()=>{},close:()=>{},File:function(){},FormData:function(){}};if(typeof window>"u")return e;try{e=window;for(var r of["File","Blob","FormData"])r in window&&(e[r]=window[r])}catch(n){console.error(n)}return e})();Be(84058),Be(55808);var $t=Be(50104),Pt=Be.n($t),rn=Be(7309),kr=Be.n(rn),An=Be(42426),Wr=Be.n(An),Jn=Be(75288),Ea=Be.n(Jn),Zn=Be(1882),un=Be.n(Zn),ti=Be(2205),Oo=Be.n(ti),Li=Be(53209),Fn=Be.n(Li),zo=Be(62802),Vo=Be.n(zo);const ds=H.default.Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function sr(t,{isOAS3:e}={}){if(!H.default.Map.isMap(t))return{schema:H.default.Map(),parameterContentMediaType:null};if(!e)return t.get("in")==="body"?{schema:t.get("schema",H.default.Map()),parameterContentMediaType:null}:{schema:t.filter(((r,n)=>ds.includes(n))),parameterContentMediaType:null};if(t.get("content")){const r=t.get("content",H.default.Map({})).keySeq().first();return{schema:t.getIn(["content",r,"schema"],H.default.Map()),parameterContentMediaType:r}}return{schema:t.get("schema")?t.get("schema",H.default.Map()):H.default.Map(),parameterContentMediaType:null}}var br=Be(48287).Buffer;const tn="default",Cr=t=>H.default.Iterable.isIterable(t),Mr=t=>Cr(t)?t.toJS():t;function Nn(t){return Hr(t)?Mr(t):{}}function nn(t){if(Cr(t)||t instanceof Qe.File||!Hr(t))return t;if(Array.isArray(t))return H.default.Seq(t).map(nn).toList();if(un()(t.entries)){const e=(function(n){if(!un()(n.entries))return n;const a={},o="_**[]",p={};for(let c of n.entries())a[c[0]]||p[c[0]]&&p[c[0]].containsMultiple?(p[c[0]]||(p[c[0]]={containsMultiple:!0,length:1},a[`${c[0]}${o}${p[c[0]].length}`]=a[c[0]],delete a[c[0]]),p[c[0]].length+=1,a[`${c[0]}${o}${p[c[0]].length}`]=c[1]):a[c[0]]=c[1];return a})(t);return H.default.OrderedMap(e).map(nn)}return H.default.OrderedMap(t).map(nn)}function fn(t){return Array.isArray(t)?t:[t]}function Ln(t){return typeof t=="function"}function Hr(t){return!!t&&typeof t=="object"}function ia(t){return typeof t=="function"}function za(t){return Array.isArray(t)}const fs=Pt();function ea(t,e){return Object.keys(t).reduce(((r,n)=>(r[n]=e(t[n],n),r)),{})}function di(t,e){return Object.keys(t).reduce(((r,n)=>{let a=e(t[n],n);return a&&typeof a=="object"&&Object.assign(r,a),r}),{})}function Va(t){return({dispatch:e,getState:r})=>n=>a=>typeof a=="function"?a(t()):n(a)}function Rr(t,e,r,n,a,o){if(!e)return[];let p=[],c=e.get("nullable"),d=e.get("required"),E=e.get("maximum"),x=e.get("minimum"),k=e.get("type"),P=e.get("format"),R=e.get("maxLength"),L=e.get("minLength"),V=e.get("uniqueItems"),Q=e.get("maxItems"),J=e.get("minItems"),re=e.get("pattern");const me=r||d===!0,le=t!=null,ve=me||le&&k==="array"||!(!me&&!le),be=c&&t===null;if(me&&!le&&!be&&!n&&!k)return p.push("Required field is not provided"),p;if(be||!k||!ve)return[];let ce=k==="string"&&t,_e=k==="array"&&Array.isArray(t)&&t.length,Ae=k==="array"&&H.default.List.isList(t)&&t.count(),xe=k==="array"&&typeof t=="string"&&t;const Oe=[ce,_e,Ae,k==="file"&&t instanceof Qe.File,k==="boolean"&&(t||t===!1),k==="number"&&(t||t===0),k==="integer"&&(t||t===0),k==="object"&&typeof t=="object"&&t!==null,k==="object"&&typeof t=="string"&&t],je=(o?Oe:Oe.concat(xe)).some((G=>!!G));if(me&&!je&&!n)return p.push("Required field is not provided"),p;if(k==="object"&&(a===null||a==="application/json")){let G=t;if(typeof t=="string")try{G=JSON.parse(t)}catch{return p.push("Parameter string value must be valid JSON"),p}e&&e.has("required")&&ia(d.isList)&&d.isList()&&d.forEach((de=>{G[de]===void 0&&p.push({propKey:de,error:"Required property not found"})})),e&&e.has("properties")&&e.get("properties").forEach(((de,Ne)=>{const Ye=Rr(G[Ne],de,!1,n,a,o);p.push(...Ye.map((ht=>({propKey:Ne,error:ht}))))}))}if(re){let G=((de,Ne)=>{if(!new RegExp(Ne).test(de))return"Value must follow pattern "+Ne})(t,re);G&&p.push(G)}if(J&&k==="array"){let G=((de,Ne)=>{if(!de&&Ne>=1||de&&de.length{if(de&&de.length>Ne)return`Array must not contain more then ${Ne} item${Ne===1?"":"s"}`})(t,Q);G&&p.push({needRemove:!0,error:G})}if(V&&k==="array"){let G=((de,Ne)=>{if(de&&(Ne==="true"||Ne===!0)){const Ye=(0,H.fromJS)(de),ht=Ye.toSet();if(de.length>ht.size){let Ct=(0,H.Set)();if(Ye.forEach(((_t,qt)=>{Ye.filter((It=>ia(It.equals)?It.equals(_t):It===_t)).size>1&&(Ct=Ct.add(qt))})),Ct.size!==0)return Ct.map((_t=>({index:_t,error:"No duplicates allowed."}))).toArray()}}})(t,V);G&&p.push(...G)}if(R||R===0){let G=((de,Ne)=>{if(de.length>Ne)return`Value must be no longer than ${Ne} character${Ne!==1?"s":""}`})(t,R);G&&p.push(G)}if(L){let G=((de,Ne)=>{if(de.length{if(de>Ne)return`Value must be less than or equal to ${Ne}`})(t,E);G&&p.push(G)}if(x||x===0){let G=((de,Ne)=>{if(de{if(isNaN(Date.parse(de)))return"Value must be a DateTime"})(t):P==="uuid"?(de=>{if(de=de.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(de))return"Value must be a Guid"})(t):(de=>{if(de&&typeof de!="string")return"Value must be a string"})(t),!G)return p;p.push(G)}else if(k==="boolean"){let G=(de=>{if(de!=="true"&&de!=="false"&&de!==!0&&de!==!1)return"Value must be a boolean"})(t);if(!G)return p;p.push(G)}else if(k==="number"){let G=(de=>{if(!/^-?\d+(\.?\d+)?$/.test(de))return"Value must be a number"})(t);if(!G)return p;p.push(G)}else if(k==="integer"){let G=(de=>{if(!/^-?\d+$/.test(de))return"Value must be an integer"})(t);if(!G)return p;p.push(G)}else if(k==="array"){if(!_e&&!Ae)return p;t&&t.forEach(((G,de)=>{const Ne=Rr(G,e.get("items"),!1,n,a,o);p.push(...Ne.map((Ye=>({index:de,error:Ye}))))}))}else if(k==="file"){let G=(de=>{if(de&&!(de instanceof Qe.File))return"Value must be a file"})(t);if(!G)return p;p.push(G)}return p}const ko=t=>{let e;return e=t instanceof br?t:br.from(t.toString(),"utf-8"),e.toString("base64")},Nr={operationsSorter:{alpha:(t,e)=>t.get("path").localeCompare(e.get("path")),method:(t,e)=>t.get("method").localeCompare(e.get("method"))},tagsSorter:{alpha:(t,e)=>t.localeCompare(e)}},xn=t=>{let e=[];for(let r in t){let n=t[r];n!==void 0&&n!==""&&e.push([r,"=",encodeURIComponent(n).replace(/%20/g,"+")].join(""))}return e.join("&")},fi=(t,e,r)=>!!kr()(r,(n=>Ea()(t[n],e[n])));function ta(t){return!(!t||t.indexOf("localhost")>=0||t.indexOf("127.0.0.1")>=0||t==="none")}const Jo=t=>typeof t=="string"||t instanceof String?t.trim().replace(/\s/g,"%20"):"",ms=t=>Oo()(Jo(t).replace(/%20/g,"_")),Yt=t=>/^x-/.test(t),gr=t=>H.Map.isMap(t)?t.filter(((e,r)=>Yt(r))):Object.keys(t).filter((e=>Yt(e))),mr=t=>t.filter(((e,r)=>/^pattern|maxLength|minLength|maximum|minimum/.test(r)));function Vr(t,e,r=()=>!0){if(typeof t!="object"||Array.isArray(t)||t===null||!e)return t;const n=Object.assign({},t);return Object.keys(n).forEach((a=>{a===e&&r(n[a],a)?delete n[a]:n[a]=Vr(n[a],e,r)})),n}function Gr(t){if(typeof t=="string")return t;if(t&&t.toJS&&(t=t.toJS()),typeof t=="object"&&t!==null)try{return JSON.stringify(t,null,2)}catch{return String(t)}return t==null?"":t.toString()}function sa(t,{returnAll:e=!1,allowHashes:r=!0}={}){if(!H.default.Map.isMap(t))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");const n=t.get("name"),a=t.get("in");let o=[];return t&&t.hashCode&&a&&n&&r&&o.push(`${a}.${n}.hash-${t.hashCode()}`),a&&n&&o.push(`${a}.${n}`),o.push(n),e?o:o[0]||""}function Sa(t,e){return sa(t,{returnAll:!0}).map((r=>e[r])).filter((r=>r!==void 0))[0]}function Ja(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const Wa=t=>!t||!(!Cr(t)||!t.isEmpty()),Ia=t=>t;function Yl(t,e,r){let n=[Va(r)];return ft(t,e,(Qe.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Wt)((function(...o){return p=>(c,d)=>{const E=p(c,d);let x=()=>{throw new Error(at(15))};const k={getState:E.getState,dispatch:(R,...L)=>x(R,...L)},P=o.map((R=>R(k)));return x=Wt(...P)(E.dispatch),{...E,dispatch:x}}})(...n)))}class Xl{constructor(e={}){ct()(this,{state:{},plugins:[],system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},e),this.getSystem=this._getSystem.bind(this),this.store=(function(n,a,o){return Yl(n,a,o)})(Ia,(0,H.fromJS)(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(e,r=!0){var n=gs(e,this.getSystem());lo(this.system,n),r&&this.buildSystem(),ys.call(this.system,e,this.getSystem())&&this.buildSystem()}buildSystem(e=!0){let r=this.getStore().dispatch,n=this.getStore().getState;this.boundSystem=Object.assign({},this.getRootInjects(),this.getWrappedAndBoundActions(r),this.getWrappedAndBoundSelectors(n,this.getSystem),this.getStateThunks(n),this.getFn(),this.getConfigs()),e&&this.rebuildReducer()}_getSystem(){return this.boundSystem}getRootInjects(){return Object.assign({getSystem:this.getSystem,getStore:this.getStore.bind(this),getComponents:this.getComponents.bind(this),getState:this.getStore().getState,getConfigs:this._getConfigs.bind(this),Im:H.default,React:u},this.system.rootInjects||{})}_getConfigs(){return this.system.configs}getConfigs(){return{configs:this.system.configs}}setConfigs(e){this.system.configs=e}rebuildReducer(){this.store.replaceReducer((function(r,n){return(function(o,p){let c=Object.keys(o).reduce(((d,E)=>(d[E]=(function(k,P){return(R=new H.Map,L)=>{if(!k)return R;let V=k[L.type];if(V){const Q=mi(V,P)(R,L);return Q===null?R:Q}return R}})(o[E],p),d)),{});return Object.keys(c).length?(0,mt.H)(c):Ia})(ea(r,(a=>a.reducers)),n)})(this.system.statePlugins,this.getSystem))}getType(e){let r=e[0].toUpperCase()+e.slice(1);return di(this.system.statePlugins,((n,a)=>{let o=n[e];if(o)return{[a+r]:o}}))}getSelectors(){return this.getType("selectors")}getActions(){return ea(this.getType("actions"),(e=>di(e,((r,n)=>{if(Ln(r))return{[n]:r}}))))}getWrappedAndBoundActions(e){return ea(this.getBoundActions(e),((r,n)=>{let a=this.system.statePlugins[n.slice(0,-7)].wrapActions;return a?ea(r,((o,p)=>{let c=a[p];return c?(Array.isArray(c)||(c=[c]),c.reduce(((d,E)=>{let x=(...k)=>E(d,this.getSystem())(...k);if(!Ln(x))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return mi(x,this.getSystem)}),o||Function.prototype)):o})):r}))}getWrappedAndBoundSelectors(e,r){return ea(this.getBoundSelectors(e,r),((n,a)=>{let o=[a.slice(0,-9)],p=this.system.statePlugins[o].wrapSelectors;return p?ea(n,((c,d)=>{let E=p[d];return E?(Array.isArray(E)||(E=[E]),E.reduce(((x,k)=>{let P=(...R)=>k(x,this.getSystem())(e().getIn(o),...R);if(!Ln(P))throw new TypeError("wrapSelector needs to return a function that returns a new function (ie the wrapped action)");return P}),c||Function.prototype)):c})):n}))}getStates(e){return Object.keys(this.system.statePlugins).reduce(((r,n)=>(r[n]=e.get(n),r)),{})}getStateThunks(e){return Object.keys(this.system.statePlugins).reduce(((r,n)=>(r[n]=()=>e().get(n),r)),{})}getFn(){return{fn:this.system.fn}}getComponents(e){const r=this.system.components[e];return Array.isArray(r)?r.reduce(((n,a)=>a(n,this.getSystem()))):e!==void 0?this.system.components[e]:this.system.components}getBoundSelectors(e,r){return ea(this.getSelectors(),((n,a)=>{let o=[a.slice(0,-9)];return ea(n,(p=>(...c)=>{let d=mi(p,this.getSystem).apply(null,[e().getIn(o),...c]);return typeof d=="function"&&(d=mi(d,this.getSystem)(r())),d}))}))}getBoundActions(e){e=e||this.getStore().dispatch;const r=this.getActions(),n=a=>typeof a!="function"?ea(a,(o=>n(o))):(...o)=>{var p=null;try{p=a(...o)}catch(c){p={type:Gt,error:!0,payload:(0,ur.serializeError)(c)}}finally{return p}};return ea(r,(a=>(function(p,c){if(typeof p=="function")return Nt(p,c);if(typeof p!="object"||p===null)throw new Error(at(16));const d={};for(const E in p){const x=p[E];typeof x=="function"&&(d[E]=Nt(x,c))}return d})(n(a),e)))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(e){return r=>ct()({},this.getWrappedAndBoundActions(r),this.getFn(),e)}}function gs(t,e){return Hr(t)&&!za(t)?Tt()({},t):ia(t)?gs(t(e),e):za(t)?t.map((r=>gs(r,e))).reduce(lo,{components:e.getComponents()}):{}}function ys(t,e,{hasLoaded:r}={}){let n=r;return Hr(t)&&!za(t)&&typeof t.afterLoad=="function"&&(n=!0,mi(t.afterLoad,e.getSystem).call(this,e)),ia(t)?ys.call(this,t(e),e,{hasLoaded:n}):za(t)?t.map((a=>ys.call(this,a,e,{hasLoaded:n}))):n}function lo(t={},e={}){if(!Hr(t))return{};if(!Hr(e))return t;e.wrapComponents&&(ea(e.wrapComponents,((n,a)=>{const o=t.components&&t.components[a];o&&Array.isArray(o)?(t.components[a]=o.concat([n]),delete e.wrapComponents[a]):o&&(t.components[a]=[o,n],delete e.wrapComponents[a])})),Object.keys(e.wrapComponents).length||delete e.wrapComponents);const{statePlugins:r}=t;if(Hr(r))for(let n in r){const a=r[n];if(!Hr(a))continue;const{wrapActions:o,wrapSelectors:p}=a;if(Hr(o))for(let c in o){let d=o[c];Array.isArray(d)||(d=[d],o[c]=d),e&&e.statePlugins&&e.statePlugins[n]&&e.statePlugins[n].wrapActions&&e.statePlugins[n].wrapActions[c]&&(e.statePlugins[n].wrapActions[c]=o[c].concat(e.statePlugins[n].wrapActions[c]))}if(Hr(p))for(let c in p){let d=p[c];Array.isArray(d)||(d=[d],p[c]=d),e&&e.statePlugins&&e.statePlugins[n]&&e.statePlugins[n].wrapSelectors&&e.statePlugins[n].wrapSelectors[c]&&(e.statePlugins[n].wrapSelectors[c]=p[c].concat(e.statePlugins[n].wrapSelectors[c]))}}return ct()(t,e)}function mi(t,e,{logErrors:r=!0}={}){return typeof t!="function"?t:function(...n){try{return t.call(this,...n)}catch(a){if(r){const{uncaughtExceptionHandler:o}=e().getConfigs();typeof o=="function"?o(a):console.error(a)}return null}}}const Wu=t=>{t.preventDefault();const e=t.currentTarget.closest(".swagger-ui")?.querySelector("#operations");e&&(e.focus(),e.scrollIntoView())},Ql=()=>u.createElement("a",{href:"#operations",className:"swagger-ui__skip-link",onClick:Wu},"Skip to operations"),Zl=()=>({components:{SkipToOperations:Ql}});var ec=Be(61160),Ao=Be.n(ec);const vs="show_popup",an="authorize",tc="logout",rc="authorize_oauth2",Zs="configure_auth",nc="restore_authorization";function Hu(t){return{type:vs,payload:t}}function Ku(t){return{type:an,payload:t}}const $c=t=>({authActions:e})=>{e.authorize(t),e.persistAuthorizationIfNeeded()};function $i(t){return{type:tc,payload:t}}const Co=t=>({authActions:e})=>{e.logout(t),e.persistAuthorizationIfNeeded()},gi=t=>({authActions:e,errActions:r})=>{let{auth:n,token:a,isValid:o}=t,{schema:p,name:c}=n,d=p.get("flow");delete Qe.swaggerUIRedirectOauth2,d==="accessCode"||o||r.newAuthErr({authId:c,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),a.error?r.newAuthErr({authId:c,source:"auth",level:"error",message:JSON.stringify(a)}):e.authorizeOauth2WithPersistOption({auth:n,token:a})};function yi(t){return{type:rc,payload:t}}const bs=t=>({authActions:e})=>{e.authorizeOauth2(t),e.persistAuthorizationIfNeeded()},ws=t=>({authActions:e})=>{let{schema:r,name:n,username:a,password:o,passwordType:p,clientId:c,clientSecret:d}=t,E={grant_type:"password",scope:t.scopes.join(" "),username:a,password:o},x={};switch(p){case"request-body":(function(P,R,L){R&&Object.assign(P,{client_id:R}),L&&Object.assign(P,{client_secret:L})})(E,c,d);break;case"basic":x.Authorization="Basic "+ko(c+":"+d);break;default:console.warn(`Warning: invalid passwordType ${p} was passed, not including client id and secret`)}return e.authorizeRequest({body:xn(E),url:r.get("tokenUrl"),name:n,headers:x,query:{},auth:t})},jo=t=>({authActions:e})=>{let{schema:r,scopes:n,name:a,clientId:o,clientSecret:p}=t,c={Authorization:"Basic "+ko(o+":"+p)},d={grant_type:"client_credentials",scope:n.join(" ")};return e.authorizeRequest({body:xn(d),name:a,url:r.get("tokenUrl"),auth:t,headers:c})},ac=({auth:t,redirectUrl:e})=>({authActions:r})=>{let{schema:n,name:a,clientId:o,clientSecret:p,codeVerifier:c}=t,d={grant_type:"authorization_code",code:t.code,client_id:o,client_secret:p,redirect_uri:e,code_verifier:c};return r.authorizeRequest({body:xn(d),name:a,url:n.get("tokenUrl"),auth:t})},el=({auth:t,redirectUrl:e})=>({authActions:r})=>{let{schema:n,name:a,clientId:o,clientSecret:p,codeVerifier:c}=t,d={Authorization:"Basic "+ko(o+":"+p)},E={grant_type:"authorization_code",code:t.code,client_id:o,redirect_uri:e,code_verifier:c};return r.authorizeRequest({body:xn(E),name:a,url:n.get("tokenUrl"),auth:t,headers:d})},Es=t=>({fn:e,getConfigs:r,authActions:n,errActions:a,oas3Selectors:o,specSelectors:p,authSelectors:c})=>{let d,{body:E,query:x={},headers:k={},name:P,url:R,auth:L}=t,{additionalQueryStringParams:V}=c.getConfigs()||{};if(p.isOAS3()){let re=o.serverEffectiveValue(o.selectedServer());d=Ao()(R,re,!0)}else d=Ao()(R,p.url(),!0);typeof V=="object"&&(d.query=Object.assign({},d.query,V));const Q=d.toString();let J=Object.assign({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},k);e.fetch({url:Q,method:"post",headers:J,query:x,body:E,requestInterceptor:r().requestInterceptor,responseInterceptor:r().responseInterceptor}).then((function(re){let me=JSON.parse(re.data),le=me&&(me.error||""),ve=me&&(me.parseError||"");re.ok?le||ve?a.newAuthErr({authId:P,level:"error",source:"auth",message:JSON.stringify(me)}):n.authorizeOauth2WithPersistOption({auth:L,token:me}):a.newAuthErr({authId:P,level:"error",source:"auth",message:re.statusText})})).catch((re=>{let me=new Error(re).message;if(re.response&&re.response.data){const le=re.response.data;try{const ve=typeof le=="string"?JSON.parse(le):le;ve.error&&(me+=`, error: ${ve.error}`),ve.error_description&&(me+=`, description: ${ve.error_description}`)}catch{}}a.newAuthErr({authId:P,level:"error",source:"auth",message:me})}))};function vi(t){return{type:Zs,payload:t}}function bn(t){return{type:nc,payload:t}}const tl=()=>({authSelectors:t,getConfigs:e})=>{if(!e().persistAuthorization)return;const r=t.authorized().toJS();localStorage.setItem("authorized",JSON.stringify(r))},rl=(t,e)=>()=>{Qe.swaggerUIRedirectOauth2=e,Qe.open(t)},bi={[vs]:(t,{payload:e})=>t.set("showDefinitions",e),[an]:(t,{payload:e})=>{let r=(0,H.fromJS)(e),n=t.get("authorized")||(0,H.Map)();return r.entrySeq().forEach((([a,o])=>{if(!ia(o.getIn))return t.set("authorized",n);let p=o.getIn(["schema","type"]);if(p==="apiKey"||p==="http")n=n.set(a,o);else if(p==="basic"){let c=o.getIn(["value","username"]),d=o.getIn(["value","password"]);n=n.setIn([a,"value"],{username:c,header:"Basic "+ko(c+":"+d)}),n=n.setIn([a,"schema"],o.get("schema"))}})),t.set("authorized",n)},[rc]:(t,{payload:e})=>{let r,{auth:n,token:a}=e;n.token=Object.assign({},a),r=(0,H.fromJS)(n);let o=t.get("authorized")||(0,H.Map)();return o=o.set(r.get("name"),r),t.set("authorized",o)},[tc]:(t,{payload:e})=>{let r=t.get("authorized").withMutations((n=>{e.forEach((a=>{n.delete(a)}))}));return t.set("authorized",r)},[Zs]:(t,{payload:e})=>t.set("configs",e),[nc]:(t,{payload:e})=>t.set("authorized",(0,H.fromJS)(e.authorized))};function Po(t,e="expected a function, instead received "+typeof t){if(typeof t!="function")throw new TypeError(e)}var Ma=t=>Array.isArray(t)?t:[t];function oc(t){const e=Array.isArray(t[0])?t[0]:t;return(function(n,a="expected all items to be functions, instead received the following types: "){if(!n.every((o=>typeof o=="function"))){const o=n.map((p=>typeof p=="function"?`function ${p.name||"unnamed"}()`:typeof p)).join(", ");throw new TypeError(`${a}[${o}]`)}})(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}var jd=typeof WeakRef<"u"?WeakRef:class{constructor(t){this.value=t}deref(){return this.value}};function Bc(t,e={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=e;let a,o=0;function p(){let c=r;const{length:d}=arguments;for(let k=0,P=d;k{r={s:0,v:void 0,o:null,p:null},p.resetResultsCount()},p.resultsCount=()=>o,p.resetResultsCount=()=>{o=0},p}function qc(t,...e){const r=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,n=(...a)=>{let o,p=0,c=0,d={},E=a.pop();typeof E=="object"&&(d=E,E=a.pop()),Po(E,`createSelector expects an output function after the inputs, but received: [${typeof E}]`);const x={...r,...d},{memoize:k,memoizeOptions:P=[],argsMemoize:R=Bc,argsMemoizeOptions:L=[]}=x,V=Ma(P),Q=Ma(L),J=oc(a),re=k((function(){return p++,E.apply(null,arguments)}),...V),me=R((function(){c++;const ve=(function(ce,_e){const Ae=[],{length:xe}=ce;for(let Oe=0;Oec,resetDependencyRecomputations:()=>{c=0},lastResult:()=>o,recomputations:()=>p,resetRecomputations:()=>{p=0},memoize:k,argsMemoize:R})};return Object.assign(n,{withTypes:()=>n}),n}var yr=qc(Bc),co=Object.assign(((t,e=yr)=>{(function(a,o="expected an object, instead received "+typeof a){if(typeof a!="object")throw new TypeError(o)})(t,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof t);const r=Object.keys(t);return e(r.map((n=>t[n])),((...n)=>n.reduce(((a,o,p)=>(a[r[p]]=o,a)),{})))}),{withTypes:()=>co});const nl=t=>t,wi=yr(nl,(t=>t.get("showDefinitions"))),Uc=yr(nl,(()=>({specSelectors:t})=>{let e=t.securityDefinitions()||(0,H.Map)({}),r=(0,H.List)();return e.entrySeq().forEach((([n,a])=>{let o=(0,H.Map)();o=o.set(n,a),r=r.push(o)})),r})),al=(t,e)=>({specSelectors:r})=>(0,H.List)(r.isOAS3()?["components","securitySchemes",e]:["securityDefinitions",e]),Gu=(t,e)=>({specSelectors:r})=>{console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");let n=r.securityDefinitions(),a=(0,H.List)();return e.valueSeq().forEach((o=>{let p=(0,H.Map)();o.entrySeq().forEach((([c,d])=>{let E,x=n.get(c);x.get("type")==="oauth2"&&d.size&&(E=x.get("scopes"),E.keySeq().forEach((k=>{d.contains(k)||(E=E.delete(k))})),x=x.set("allowedScopes",E)),p=p.set(c,x)})),a=a.push(p)})),a},ic=(t,e=(0,H.List)())=>({authSelectors:r})=>{const n=r.definitionsToAuthorize()||(0,H.List)();let a=(0,H.List)();return n.forEach((o=>{let p=e.find((c=>c.get(o.keySeq().first())));p&&(o.forEach(((c,d)=>{if(c.get("type")==="oauth2"){const E=p.get(d);let x=c.get("scopes");H.List.isList(E)&&H.Map.isMap(x)&&(x.keySeq().forEach((k=>{E.contains(k)||(x=x.delete(k))})),o=o.set(d,c.set("scopes",x)))}})),a=a.push(o))})),a},zc=yr(nl,(t=>t.get("authorized")||(0,H.Map)())),rh=(t,e)=>({authSelectors:r})=>{let n=r.authorized();return H.List.isList(e)?!!e.toJS().filter((a=>Object.keys(a).map((o=>!!n.get(o))).indexOf(!1)===-1)).length:null},uo=yr(nl,(t=>t.get("configs"))),Yu=(t,{authSelectors:e,specSelectors:r})=>({path:n,method:a,operation:o,extras:p})=>{let c={authorized:e.authorized()&&e.authorized().toJS(),definitions:r.securityDefinitions()&&r.securityDefinitions().toJS(),specSecurity:r.security()&&r.security().toJS()};return t({path:n,method:a,operation:o,securities:c,...p})},Vc=(t,e)=>r=>{const{getConfigs:n,authActions:a}=e,o=n();if(t(r),o.persistAuthorization){const p=localStorage.getItem("authorized");p&&a.restoreAuthorization({authorized:JSON.parse(p)})}},Bi=(t,e)=>r=>{if(t(r),e.getConfigs().persistAuthorization)try{const[{schema:n,value:a}]=Object.values(r),o=(0,H.fromJS)(n),p=o.get("type")==="apiKey",c=o.get("in")==="cookie";p&&c&&(document.cookie=`${o.get("name")}=${a}; SameSite=None; Secure`)}catch(n){console.error("Error persisting cookie based apiKey in document.cookie.",n)}},Wo=(t,e)=>r=>{const n=e.getConfigs(),a=e.authSelectors.authorized();try{n.persistAuthorization&&Array.isArray(r)&&r.forEach((o=>{const p=a.get(o,{}),c=p.getIn(["schema","type"])==="apiKey",d=p.getIn(["schema","in"])==="cookie";if(c&&d){const E=p.getIn(["schema","name"]);document.cookie=`${E}=; Max-Age=-99999999`}}))}catch(o){console.error("Error deleting cookie based apiKey from document.cookie.",o)}t(r)};var $n=Be(90179),Ha=Be.n($n);class nh extends u.Component{mapStateToProps(e,r){return{state:e,ownProps:Ha()(r,Object.keys(r.getSystem()))}}render(){const{getComponent:e,ownProps:r}=this.props,n=e("LockIcon");return u.createElement(n,r)}}const Ei=nh;class Xu extends u.Component{mapStateToProps(e,r){return{state:e,ownProps:Ha()(r,Object.keys(r.getSystem()))}}render(){const{getComponent:e,ownProps:r}=this.props,n=e("UnlockIcon");return u.createElement(n,r)}}const ol=Xu;function Ss(){return{afterLoad(t){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=t.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=il.bind(null,t),this.rootInjects.preauthorizeBasic=Qu.bind(null,t)},components:{LockAuthIcon:Ei,UnlockAuthIcon:ol,LockAuthOperationIcon:Ei,UnlockAuthOperationIcon:ol},statePlugins:{auth:{reducers:bi,actions:N,selectors:s,wrapActions:{authorize:Bi,logout:Wo}},configs:{wrapActions:{loaded:Vc}},spec:{wrapActions:{execute:Yu}}}}}function Qu(t,e,r,n){const{authActions:{authorize:a},specSelectors:{specJson:o,isOAS3:p}}=t,c=p()?["components","securitySchemes"]:["securityDefinitions"],d=o().getIn([...c,e]);return d?a({[e]:{value:{username:r,password:n},schema:d.toJS()}}):null}function il(t,e,r){const{authActions:{authorize:n},specSelectors:{specJson:a,isOAS3:o}}=t,p=o()?["components","securitySchemes"]:["securityDefinitions"],c=a().getIn([...p,e]);return c?n({[e]:{value:r,schema:c.toJS()}}):null}function ah(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ri,sl,sc,Jc,Zu,Ra,Wc,ll,Hc,ep,cl,ul,tp,xa,qi,Si,rp,Ui,pl,hl,xi,xs,No,Kc,ra,dl,fl,ni,Gc,zi,lc,Yc,ml,gl,la,Vi,Ji,Wi,np,ap,oh,Ka,_s,Xc,ca={},yl={},Da={};function Hi(){if(ri)return Da;function t(e){return e==null}return ri=1,Da.isNothing=t,Da.isObject=function(r){return typeof r=="object"&&r!==null},Da.toArray=function(r){return Array.isArray(r)?r:t(r)?[]:[r]},Da.repeat=function(r,n){let a="";for(let o=0;o=48&&o<=55}function n(o){return o>=48&&o<=57}function a(o){let p=o,c=1,d=p[0];if(d!=="-"&&d!=="+"||(d==="-"&&(c=-1),p=p.slice(1),d=p[0]),p==="0")return 0;if(d==="0"){if(p[1]==="b")return c*parseInt(p.slice(2),2);if(p[1]==="x")return c*parseInt(p.slice(2),16);if(p[1]==="o")return c*parseInt(p.slice(2),8)}return c*parseInt(p,10)}return xs=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(p){if(p===null)return!1;const c=p.length;let d=0,E=!1;if(!c)return!1;let x=p[d];if(x!=="-"&&x!=="+"||(x=p[++d]),x==="0"){if(d+1===c)return!0;if(x=p[++d],x==="b"){for(d++;d=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102))return!1;E=!0}return E&&isFinite(a(p))}if(x==="o"){for(d++;d=0?"0b"+o.toString(2):"-0b"+o.toString(2).slice(1)},octal:function(o){return o>=0?"0o"+o.toString(8):"-0o"+o.toString(8).slice(1)},decimal:function(o){return o.toString(10)},hexadecimal:function(o){return o>=0?"0x"+o.toString(16).toUpperCase():"-0x"+o.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),xs}function pc(){if(ra)return Kc;ra=1;const t=Hi(),e=_a(),r=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),n=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=/^[-+]?[0-9]+e/;return Kc=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(p){return p!==null&&!!r.test(p)&&(!!isFinite(parseFloat(p,10))||n.test(p))},construct:function(p){let c=p.toLowerCase();const d=c[0]==="-"?-1:1;return"+-".indexOf(c[0])>=0&&(c=c.slice(1)),c===".inf"?d===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:c===".nan"?NaN:d*parseFloat(c,10)},predicate:function(p){return Object.prototype.toString.call(p)==="[object Number]"&&(p%1!=0||t.isNegativeZero(p))},represent:function(p,c){if(isNaN(p))switch(c){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===p)switch(c){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===p)switch(c){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(p))return"-0.0";const d=p.toString(10);return a.test(d)?d.replace("e",".e"):d},defaultStyle:"lowercase"}),Kc}function vl(){return fl?dl:(fl=1,dl=uc().extend({implicit:[Os(),To(),Qc(),pc()]}))}function Zc(){return Gc?ni:(Gc=1,ni=vl())}function eu(){if(lc)return zi;lc=1;const t=_a(),e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return zi=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(a){return a!==null&&(e.exec(a)!==null||r.exec(a)!==null)},construct:function(a){let o=0,p=null,c=e.exec(a);if(c===null&&(c=r.exec(a)),c===null)throw new Error("Date resolve error");const d=+c[1],E=+c[2]-1,x=+c[3];if(!c[4])return new Date(Date.UTC(d,E,x));const k=+c[4],P=+c[5],R=+c[6];if(c[7]){for(o=c[7].slice(0,3);o.length<3;)o+="0";o=+o}c[9]&&(p=6e4*(60*+c[10]+ +(c[11]||0)),c[9]==="-"&&(p=-p));const L=new Date(Date.UTC(d,E,x,k,P,R,o));return p&&L.setTime(L.getTime()-p),L},instanceOf:Date,represent:function(a){return a.toISOString()}}),zi}function op(){if(ml)return Yc;ml=1;const t=_a();return Yc=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(r){return r==="<<"||r===null}})}function tu(){if(la)return gl;la=1;const t=_a(),e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;return gl=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(n){if(n===null)return!1;let a=0;const o=n.length,p=e;for(let c=0;c64)){if(d<0)return!1;a+=6}}return a%8==0},construct:function(n){const a=n.replace(/[\r\n=]/g,""),o=a.length,p=e;let c=0;const d=[];for(let x=0;x>16&255),d.push(c>>8&255),d.push(255&c)),c=c<<6|p.indexOf(a.charAt(x));const E=o%4*6;return E===0?(d.push(c>>16&255),d.push(c>>8&255),d.push(255&c)):E===18?(d.push(c>>10&255),d.push(c>>2&255)):E===12&&d.push(c>>4&255),new Uint8Array(d)},predicate:function(n){return Object.prototype.toString.call(n)==="[object Uint8Array]"},represent:function(n){let a="",o=0;const p=n.length,c=e;for(let E=0;E>18&63],a+=c[o>>12&63],a+=c[o>>6&63],a+=c[63&o]),o=(o<<8)+n[E];const d=p%3;return d===0?(a+=c[o>>18&63],a+=c[o>>12&63],a+=c[o>>6&63],a+=c[63&o]):d===2?(a+=c[o>>10&63],a+=c[o>>4&63],a+=c[o<<2&63],a+=c[64]):d===1&&(a+=c[o>>2&63],a+=c[o<<4&63],a+=c[64],a+=c[64]),a}}),gl}function ip(){if(Ji)return Vi;Ji=1;const t=_a(),e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;return Vi=new t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(a){if(a===null)return!0;const o={},p=a;for(let c=0,d=p.length;cdr&&(tr=" ... ",bt=Xt-dr+tr.length),ut-Xt>dr&&(Er=" ...",ut=Xt+dr-Er.length),{str:tr+it.slice(bt,ut).replace(/\t/g,"→")+Er,pos:Xt-bt+tr.length}}function Ft(it,bt){return $e.repeat(" ",bt-it.length)+it}return Jc=function(bt,ut){if(ut=Object.create(ut||null),!bt.buffer)return null;ut.maxLength||(ut.maxLength=79),typeof ut.indent!="number"&&(ut.indent=1),typeof ut.linesBefore!="number"&&(ut.linesBefore=3),typeof ut.linesAfter!="number"&&(ut.linesAfter=2);const Xt=/\r?\n|\r|\0/g,zt=[0],tr=[];let Er,dr=-1;for(;Er=Xt.exec(bt.buffer);)tr.push(Er.index),zt.push(Er.index+Er[0].length),bt.position<=Er.index&&dr<0&&(dr=zt.length-2);dr<0&&(dr=zt.length-1);let qr="";const en=Math.min(bt.line+ut.linesAfter,tr.length).toString().length,kn=ut.maxLength-(ut.indent+en+3);for(let jt=1;jt<=ut.linesBefore&&!(dr-jt<0);jt++){const We=Je(bt.buffer,zt[dr-jt],tr[dr-jt],bt.position-(zt[dr]-zt[dr-jt]),kn);qr=$e.repeat(" ",ut.indent)+Ft((bt.line-jt+1).toString(),en)+" | "+We.str+` +`+qr}const ln=Je(bt.buffer,zt[dr],tr[dr],bt.position,kn);qr+=$e.repeat(" ",ut.indent)+Ft((bt.line+1).toString(),en)+" | "+ln.str+` +`,qr+=$e.repeat("-",ut.indent+en+3+ln.pos)+`^ +`;for(let jt=1;jt<=ut.linesAfter&&!(dr+jt>=tr.length);jt++){const We=Je(bt.buffer,zt[dr+jt],tr[dr+jt],bt.position-(zt[dr]-zt[dr+jt]),kn);qr+=$e.repeat(" ",ut.indent)+Ft((bt.line+jt+1).toString(),en)+" | "+We.str+` +`}return qr.replace(/\n$/,"")},Jc})(),n=O(),a=Object.prototype.hasOwnProperty,o=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/[\x85\u2028\u2029]/,c=/[,\[\]{}]/,d=/^(?:!|!!|![0-9A-Za-z-]+!)$/,E=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function x(W){return Object.prototype.toString.call(W)}function k(W){return W===10||W===13}function P(W){return W===9||W===32}function R(W){return W===9||W===32||W===10||W===13}function L(W){return W===44||W===91||W===93||W===123||W===125}function V(W){if(W>=48&&W<=57)return W-48;const $e=32|W;return $e>=97&&$e<=102?$e-97+10:-1}function Q(W){switch(W){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:case 9:return" ";case 110:return` +`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function J(W){return W<=65535?String.fromCharCode(W):String.fromCharCode(55296+(W-65536>>10),56320+(W-65536&1023))}function re(W,$e,Je){$e==="__proto__"?Object.defineProperty(W,$e,{configurable:!0,enumerable:!0,writable:!0,value:Je}):W[$e]=Je}const me=new Array(256),le=new Array(256);for(let W=0;W<256;W++)me[W]=Q(W)?1:0,le[W]=Q(W);function ve(W,$e){this.input=W,this.filename=$e.filename||null,this.schema=$e.schema||n,this.onWarning=$e.onWarning||null,this.legacy=$e.legacy||!1,this.json=$e.json||!1,this.listener=$e.listener||null,this.maxDepth=typeof $e.maxDepth=="number"?$e.maxDepth:100,this.maxTotalMergeKeys=typeof $e.maxTotalMergeKeys=="number"?$e.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=W.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function be(W,$e){const Je={name:W.filename,buffer:W.input.slice(0,-1),position:W.position,line:W.line,column:W.position-W.lineStart};return Je.snippet=r(Je),new e($e,Je)}function ce(W,$e){throw be(W,$e)}function _e(W,$e){W.onWarning&&W.onWarning.call(null,be(W,$e))}function Ae(W,$e,Je){const Ft=W.anchorMapTransactions;if(Ft.length!==0){const it=Ft[Ft.length-1];a.call(it,$e)||(it[$e]={existed:a.call(W.anchorMap,$e),value:W.anchorMap[$e]})}W.anchorMap[$e]=Je}function xe(W){return{position:W.position,line:W.line,lineStart:W.lineStart,lineIndent:W.lineIndent,firstTabInLine:W.firstTabInLine,tag:W.tag,anchor:W.anchor,kind:W.kind,result:W.result}}function Oe(W,$e){W.position=$e.position,W.line=$e.line,W.lineStart=$e.lineStart,W.lineIndent=$e.lineIndent,W.firstTabInLine=$e.firstTabInLine,W.tag=$e.tag,W.anchor=$e.anchor,W.kind=$e.kind,W.result=$e.result}const je={YAML:function($e,Je,Ft){$e.version!==null&&ce($e,"duplication of %YAML directive"),Ft.length!==1&&ce($e,"YAML directive accepts exactly one argument");const it=/^([0-9]+)\.([0-9]+)$/.exec(Ft[0]);it===null&&ce($e,"ill-formed argument of the YAML directive");const bt=parseInt(it[1],10),ut=parseInt(it[2],10);bt!==1&&ce($e,"unacceptable YAML version of the document"),$e.version=Ft[0],$e.checkLineBreaks=ut<2,ut!==1&&ut!==2&&_e($e,"unsupported YAML version of the document")},TAG:function($e,Je,Ft){let it;Ft.length!==2&&ce($e,"TAG directive accepts exactly two arguments");const bt=Ft[0];it=Ft[1],d.test(bt)||ce($e,"ill-formed tag handle (first argument) of the TAG directive"),a.call($e.tagMap,bt)&&ce($e,'there is a previously declared suffix for "'+bt+'" tag handle'),E.test(it)||ce($e,"ill-formed tag prefix (second argument) of the TAG directive");try{it=decodeURIComponent(it)}catch{ce($e,"tag prefix is malformed: "+it)}$e.tagMap[bt]=it}};function G(W,$e,Je,Ft){if($e=32&&Xt<=1114111||ce(W,"expected valid JSON character")}else o.test(it)&&ce(W,"the stream contains non-printable characters");W.result+=it}}function de(W,$e,Je,Ft){t.isObject(Je)||ce(W,"cannot merge mappings; the provided source object is unacceptable");const it=Object.keys(Je);for(let bt=0,ut=it.length;btW.maxTotalMergeKeys&&ce(W,"merge keys exceeded maxTotalMergeKeys ("+W.maxTotalMergeKeys+")"),a.call($e,Xt)||(re($e,Xt,Je[Xt]),Ft[Xt]=!0)}}function Ne(W,$e,Je,Ft,it,bt,ut,Xt,zt){if(Array.isArray(it))for(let tr=0,Er=(it=Array.prototype.slice.call(it)).length;tr1&&(W.result+=t.repeat(` +`,$e-1))}function qt(W,$e){const Je=W.tag,Ft=W.anchor,it=[];let bt=!1;if(W.firstTabInLine!==-1)return!1;W.anchor!==null&&Ae(W,W.anchor,it);let ut=W.input.charCodeAt(W.position);for(;ut!==0&&(W.firstTabInLine!==-1&&(W.position=W.firstTabInLine,ce(W,"tab characters must not be used in indentation")),ut===45)&&R(W.input.charCodeAt(W.position+1));){if(bt=!0,W.position++,ht(W,!0,-1)&&W.lineIndent<=$e){it.push(null),ut=W.input.charCodeAt(W.position);continue}const Xt=W.line;if(or(W,$e,3,!1,!0),it.push(W.result),ht(W,!0,-1),ut=W.input.charCodeAt(W.position),(W.line===Xt||W.lineIndent>$e)&&ut!==0)ce(W,"bad indentation of a sequence entry");else if(W.lineIndent<$e)break}return!!bt&&(W.tag=Je,W.anchor=Ft,W.kind="sequence",W.result=it,!0)}function It(W,$e,Je){let Ft,it,bt,ut;const Xt=W.tag,zt=W.anchor,tr={},Er=Object.create(null);let dr=null,qr=null,en=null,kn=!1,ln=!1;if(W.firstTabInLine!==-1)return!1;W.anchor!==null&&Ae(W,W.anchor,tr);let jt=W.input.charCodeAt(W.position);for(;jt!==0;){kn||W.firstTabInLine===-1||(W.position=W.firstTabInLine,ce(W,"tab characters must not be used in indentation"));const We=W.input.charCodeAt(W.position+1),Kr=W.line;if(jt!==63&&jt!==58||!R(We)){if(it=W.line,bt=W.lineStart,ut=W.position,!or(W,Je,2,!1,!0))break;if(W.line===Kr){for(jt=W.input.charCodeAt(W.position);P(jt);)jt=W.input.charCodeAt(++W.position);if(jt===58)jt=W.input.charCodeAt(++W.position),R(jt)||ce(W,"a whitespace character is expected after the key-value separator within a block mapping"),kn&&(Ne(W,tr,Er,dr,qr,null,it,bt,ut),dr=qr=en=null),ln=!0,kn=!1,Ft=!1,dr=W.tag,qr=W.result;else{if(!ln)return W.tag=Xt,W.anchor=zt,!0;ce(W,"can not read an implicit mapping pair; a colon is missed")}}else{if(!ln)return W.tag=Xt,W.anchor=zt,!0;ce(W,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else jt===63?(kn&&(Ne(W,tr,Er,dr,qr,null,it,bt,ut),dr=qr=en=null),ln=!0,kn=!0,Ft=!0):kn?(kn=!1,Ft=!0):ce(W,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),W.position+=1,jt=We;if((W.line===Kr||W.lineIndent>$e)&&(kn&&(it=W.line,bt=W.lineStart,ut=W.position),or(W,$e,4,!0,Ft)&&(kn?qr=W.result:en=W.result),kn||(Ne(W,tr,Er,dr,qr,en,it,bt,ut),dr=qr=en=null),ht(W,!0,-1),jt=W.input.charCodeAt(W.position)),(W.line===Kr||W.lineIndent>$e)&&jt!==0)ce(W,"bad indentation of a mapping entry");else if(W.lineIndent<$e)break}return kn&&Ne(W,tr,Er,dr,qr,null,it,bt,ut),ln&&(W.tag=Xt,W.anchor=zt,W.kind="mapping",W.result=tr),ln}function Ot(W){let $e,Je,Ft=!1,it=!1,bt=W.input.charCodeAt(W.position);if(bt!==33)return!1;W.tag!==null&&ce(W,"duplication of a tag property"),bt=W.input.charCodeAt(++W.position),bt===60?(Ft=!0,bt=W.input.charCodeAt(++W.position)):bt===33?(it=!0,$e="!!",bt=W.input.charCodeAt(++W.position)):$e="!";let ut=W.position;if(Ft){do bt=W.input.charCodeAt(++W.position);while(bt!==0&&bt!==62);W.position=0;tr-=1){const Er=Xt[zt[tr]];Er.existed?ut.anchorMap[zt[tr]]=Er.value:delete ut.anchorMap[zt[tr]]}})(W),Oe(W,it),!1)}function or(W,$e,Je,Ft,it){let bt,ut,Xt,zt,tr,Er=1,dr=!1,qr=!1,en=null;W.depth>=W.maxDepth&&ce(W,"nesting exceeded maxDepth ("+W.maxDepth+")"),W.depth+=1,W.listener!==null&&W.listener("open",W),W.tag=null,W.anchor=null,W.kind=null,W.result=null;const kn=bt=ut=Je===4||Je===3;if(Ft&&ht(W,!0,-1)&&(dr=!0,W.lineIndent>$e?Er=1:W.lineIndent===$e?Er=0:W.lineIndent<$e&&(Er=-1)),Er===1)for(;;){const ln=W.input.charCodeAt(W.position),jt=xe(W);if(dr&&(ln===33&&W.tag!==null||ln===38&&W.anchor!==null)||!Ot(W)&&!et(W))break;en===null&&(en=jt),ht(W,!0,-1)?(dr=!0,ut=kn,W.lineIndent>$e?Er=1:W.lineIndent===$e?Er=0:W.lineIndent<$e&&(Er=-1)):ut=!1}if(ut&&(ut=dr||it),Er===1||Je===4)if(zt=Je===1||Je===2?$e:$e+1,tr=W.position-W.lineStart,Er===1)if(ut&&(qt(W,tr)||It(W,tr,zt))||(function(jt,We){let Kr,Lr,zr,yn=!0;const En=jt.tag;let Pn;const Ua=jt.anchor;let Dn,Di,vn,cn;const hi=Object.create(null);let Hl,Xs,Zo,so=jt.input.charCodeAt(jt.position);if(so===91)Dn=93,cn=!1,Pn=[];else{if(so!==123)return!1;Dn=125,cn=!0,Pn={}}for(jt.anchor!==null&&Ae(jt,jt.anchor,Pn),so=jt.input.charCodeAt(++jt.position);so!==0;){if(ht(jt,!0,We),so=jt.input.charCodeAt(jt.position),so===Dn)return jt.position++,jt.tag=En,jt.anchor=Ua,jt.kind=cn?"mapping":"sequence",jt.result=Pn,!0;yn?so===44&&ce(jt,"expected the node content, but found ','"):ce(jt,"missed comma between flow collection entries"),Xs=Hl=Zo=null,Di=vn=!1,so===63&&R(jt.input.charCodeAt(jt.position+1))&&(Di=vn=!0,jt.position++,ht(jt,!0,We)),Kr=jt.line,Lr=jt.lineStart,zr=jt.position,or(jt,We,1,!1,!0),Xs=jt.tag,Hl=jt.result,ht(jt,!0,We),so=jt.input.charCodeAt(jt.position),!vn&&jt.line!==Kr||so!==58||(Di=!0,so=jt.input.charCodeAt(++jt.position),ht(jt,!0,We),or(jt,We,1,!1,!0),Zo=jt.result),cn?Ne(jt,Pn,hi,Xs,Hl,Zo,Kr,Lr,zr):Di?Pn.push(Ne(jt,null,hi,Xs,Hl,Zo,Kr,Lr,zr)):Pn.push(Hl),ht(jt,!0,We),so=jt.input.charCodeAt(jt.position),so===44?(yn=!0,so=jt.input.charCodeAt(++jt.position)):yn=!1}ce(jt,"unexpected end of the stream within a flow collection")})(W,zt))qr=!0;else{const ln=W.input.charCodeAt(W.position);en!==null&&kn&&!ut&&ln!==124&&ln!==62&&Dt(W,en,en.position-en.lineStart,zt)||bt&&(function(We,Kr){let Lr,zr,yn=1,En=!1,Pn=!1,Ua=Kr,Dn=0,Di=!1,vn=We.input.charCodeAt(We.position);if(vn===124)Lr=!1;else{if(vn!==62)return!1;Lr=!0}for(We.kind="scalar",We.result="";vn!==0;)if(vn=We.input.charCodeAt(++We.position),vn===43||vn===45)yn===1?yn=vn===43?3:2:ce(We,"repeat of a chomping mode identifier");else{if(!((zr=(cn=vn)>=48&&cn<=57?cn-48:-1)>=0))break;zr===0?ce(We,"bad explicit indentation width of a block scalar; it cannot be less than one"):Pn?ce(We,"repeat of an indentation width identifier"):(Ua=Kr+zr-1,Pn=!0)}var cn;if(P(vn)){do vn=We.input.charCodeAt(++We.position);while(P(vn));if(vn===35)do vn=We.input.charCodeAt(++We.position);while(!k(vn)&&vn!==0)}for(;vn!==0;){for(Ye(We),We.lineIndent=0,vn=We.input.charCodeAt(We.position);(!Pn||We.lineIndentUa&&(Ua=We.lineIndent),k(vn)){Dn++;continue}if(Pn||Ua!==0||ce(We,"missing indentation for block scalar"),We.lineIndent0){let Ua=yn,Dn=0;for(;Ua>0;Ua--)En=We.input.charCodeAt(++We.position),(yn=V(En))>=0?Dn=(Dn<<4)+yn:ce(We,"expected hexadecimal character");We.result+=J(Dn),We.position++}else ce(We,"unknown escape sequence");Lr=zr=We.position}else k(En)?(G(We,Lr,zr,!0),_t(We,ht(We,!1,Kr)),Lr=zr=We.position):We.position===We.lineStart&&Ct(We)?ce(We,"unexpected end of the document within a double quoted scalar"):(We.position++,P(En)||(zr=We.position))}var Pn;ce(We,"unexpected end of the stream within a double quoted scalar")})(W,zt)?qr=!0:(function(We){let Kr=We.input.charCodeAt(We.position);if(Kr!==42)return!1;Kr=We.input.charCodeAt(++We.position);const Lr=We.position;for(;Kr!==0&&!R(Kr)&&!L(Kr);)Kr=We.input.charCodeAt(++We.position);We.position===Lr&&ce(We,"name of an alias node must contain at least one character");const zr=We.input.slice(Lr,We.position);return a.call(We.anchorMap,zr)||ce(We,'unidentified alias "'+zr+'"'),We.result=We.anchorMap[zr],ht(We,!0,-1),!0})(W)?(qr=!0,W.tag===null&&W.anchor===null||ce(W,"alias node should not have any properties")):(function(We,Kr,Lr){let zr,yn,En,Pn,Ua,Dn;const Di=We.kind,vn=We.result;let cn=We.input.charCodeAt(We.position);if(R(cn)||L(cn)||cn===35||cn===38||cn===42||cn===33||cn===124||cn===62||cn===39||cn===34||cn===37||cn===64||cn===96)return!1;if(cn===63||cn===45){const hi=We.input.charCodeAt(We.position+1);if(R(hi)||Lr&&L(hi))return!1}for(We.kind="scalar",We.result="",zr=yn=We.position,En=!1;cn!==0;){if(cn===58){const hi=We.input.charCodeAt(We.position+1);if(R(hi)||Lr&&L(hi))break}else if(cn===35){if(R(We.input.charCodeAt(We.position-1)))break}else{if(We.position===We.lineStart&&Ct(We)||Lr&&L(cn))break;if(k(cn)){if(Pn=We.line,Ua=We.lineStart,Dn=We.lineIndent,ht(We,!1,-1),We.lineIndent>=Kr){En=!0,cn=We.input.charCodeAt(We.position);continue}We.position=yn,We.line=Pn,We.lineStart=Ua,We.lineIndent=Dn;break}}En&&(G(We,zr,yn,!1),_t(We,We.line-Pn),zr=yn=We.position,En=!1),P(cn)||(yn=We.position+1),cn=We.input.charCodeAt(++We.position)}return G(We,zr,yn,!1),!!We.result||(We.kind=Di,We.result=vn,!1)})(W,zt,Je===1)&&(qr=!0,W.tag===null&&(W.tag="?")),W.anchor!==null&&Ae(W,W.anchor,W.result)}else Er===0&&(qr=ut&&qt(W,tr));if(W.tag===null)W.anchor!==null&&Ae(W,W.anchor,W.result);else if(W.tag==="?"){W.result!==null&&W.kind!=="scalar"&&ce(W,'unacceptable node kind for ! tag; it should be "scalar", not "'+W.kind+'"');for(let ln=0,jt=W.implicitTypes.length;ln"),W.result!==null&&Xt.kind!==W.kind&&ce(W,"unacceptable node kind for !<"+W.tag+'> tag; it should be "'+Xt.kind+'", not "'+W.kind+'"'),Xt.resolve(W.result,W.tag)?(W.result=Xt.construct(W.result,W.tag),W.anchor!==null&&Ae(W,W.anchor,W.result)):ce(W,"cannot resolve a node with !<"+W.tag+"> explicit tag")}return W.listener!==null&&W.listener("close",W),W.depth-=1,W.tag!==null||W.anchor!==null||qr}function Ut(W){const $e=W.position;let Je,Ft=!1;for(W.version=null,W.checkLineBreaks=W.legacy,W.tagMap=Object.create(null),W.anchorMap=Object.create(null);(Je=W.input.charCodeAt(W.position))!==0&&(ht(W,!0,-1),Je=W.input.charCodeAt(W.position),!(W.lineIndent>0||Je!==37));){Ft=!0,Je=W.input.charCodeAt(++W.position);let it=W.position;for(;Je!==0&&!R(Je);)Je=W.input.charCodeAt(++W.position);const bt=W.input.slice(it,W.position),ut=[];for(bt.length<1&&ce(W,"directive name must not be less than one character in length");Je!==0;){for(;P(Je);)Je=W.input.charCodeAt(++W.position);if(Je===35){do Je=W.input.charCodeAt(++W.position);while(Je!==0&&!k(Je));break}if(k(Je))break;for(it=W.position;Je!==0&&!R(Je);)Je=W.input.charCodeAt(++W.position);ut.push(W.input.slice(it,W.position))}Je!==0&&Ye(W),a.call(je,bt)?je[bt](W,bt,ut):_e(W,'unknown document directive "'+bt+'"')}ht(W,!0,-1),W.lineIndent===0&&W.input.charCodeAt(W.position)===45&&W.input.charCodeAt(W.position+1)===45&&W.input.charCodeAt(W.position+2)===45?(W.position+=3,ht(W,!0,-1)):Ft&&ce(W,"directives end mark is expected"),or(W,W.lineIndent-1,4,!1,!0),ht(W,!0,-1),W.checkLineBreaks&&p.test(W.input.slice($e,W.position))&&_e(W,"non-ASCII line breaks are interpreted as content"),W.documents.push(W.result),W.position===W.lineStart&&Ct(W)?W.input.charCodeAt(W.position)===46&&(W.position+=3,ht(W,!0,-1)):W.position=32&&G<=126||G>=161&&G<=55295&&G!==8232&&G!==8233||G>=57344&&G<=65533&&G!==o||G>=65536&&G<=1114111}function V(G){return L(G)&&G!==o&&G!==13&&G!==10}function Q(G,de,Ne){const Ye=V(G),ht=Ye&&!R(G);return(Ne?Ye:Ye&&G!==44&&G!==91&&G!==93&&G!==123&&G!==125)&&G!==35&&!(de===58&&!ht)||V(de)&&!R(de)&&G===35||de===58&&ht}function J(G,de){const Ne=G.charCodeAt(de);let Ye;return Ne>=55296&&Ne<=56319&&de+1=56320&&Ye<=57343)?1024*(Ne-55296)+Ye-56320+65536:Ne}function re(G){return/^\n* /.test(G)}function me(G,de,Ne,Ye,ht,Ct,_t,qt){let It,Ot=0,et=null,Dt=!1,or=!1;const Ut=Ye!==-1;let pr=-1,W=(function(Je){return L(Je)&&Je!==o&&!R(Je)&&Je!==45&&Je!==63&&Je!==58&&Je!==44&&Je!==91&&Je!==93&&Je!==123&&Je!==125&&Je!==35&&Je!==38&&Je!==42&&Je!==33&&Je!==124&&Je!==61&&Je!==62&&Je!==39&&Je!==34&&Je!==37&&Je!==64&&Je!==96})(J(G,0))&&(function(Je){return!R(Je)&&Je!==58})(J(G,G.length-1));if(de||_t)for(It=0;It=65536?It+=2:It++){if(Ot=J(G,It),!L(Ot))return 5;W=W&&Q(Ot,et,qt),et=Ot}else{for(It=0;It=65536?It+=2:It++){if(Ot=J(G,It),Ot===10)Dt=!0,Ut&&(or=or||It-pr-1>Ye&&G[pr+1]!==" ",pr=It);else if(!L(Ot))return 5;W=W&&Q(Ot,et,qt),et=Ot}or=or||Ut&&It-pr-1>Ye&&G[pr+1]!==" "}return Dt||or?Ne>9&&re(G)?5:_t?Ct===2?5:2:or?4:3:!W||_t||ht(G)?Ct===2?5:2:1}function le(G,de,Ne,Ye,ht){G.dump=(function(){if(de.length===0)return G.quotingType===2?'""':"''";if(!G.noCompatMode&&(c.indexOf(de)!==-1||d.test(de)))return G.quotingType===2?'"'+de+'"':"'"+de+"'";const Ct=G.indent*Math.max(1,Ne),_t=G.lineWidth===-1?-1:Math.max(Math.min(G.lineWidth,40),G.lineWidth-Ct),qt=Ye||G.flowLevel>-1&&Ne>=G.flowLevel;switch(me(de,qt,G.indent,_t,(function(Ot){return(function(Dt,or){for(let Ut=0,pr=Dt.implicitTypes.length;Ut"+ve(de,G.indent)+be(k((function(Ot,et){const Dt=/(\n+)([^\n]*)/g;let or,Ut,pr=(function(){let $e=Ot.indexOf(` +`);return $e=$e!==-1?$e:Ot.length,Dt.lastIndex=$e,ce(Ot.slice(0,$e),et)})(),W=Ot[0]===` +`||Ot[0]===" ";for(;Ut=Dt.exec(Ot);){const $e=Ut[1],Je=Ut[2];or=Je[0]===" ",pr+=$e+(W||or||Je===""?"":` +`)+ce(Je,et),W=or}return pr})(de,_t),Ct));case 5:return'"'+(function(Ot){let et="",Dt=0;for(let or=0;or=65536?or+=2:or++){Dt=J(Ot,or);const Ut=p[Dt];!Ut&&L(Dt)?(et+=Ot[or],Dt>=65536&&(et+=Ot[or+1])):et+=Ut||E(Dt)}return et})(de)+'"';default:throw new e("impossible error: invalid scalar style")}})()}function ve(G,de){const Ne=re(G)?String(de):"",Ye=G[G.length-1]===` +`;return Ne+(Ye&&(G[G.length-2]===` +`||G===` +`)?"+":Ye?"":"-")+` +`}function be(G){return G[G.length-1]===` +`?G.slice(0,-1):G}function ce(G,de){if(G===""||G[0]===" ")return G;const Ne=/ [^ ]/g;let Ye,ht,Ct=0,_t=0,qt=0,It="";for(;Ye=Ne.exec(G);)qt=Ye.index,qt-Ct>de&&(ht=_t>Ct?_t:qt,It+=` +`+G.slice(Ct,ht),Ct=ht+1),_t=qt;return It+=` +`,G.length-Ct>de&&_t>Ct?It+=G.slice(Ct,_t)+` +`+G.slice(_t+1):It+=G.slice(Ct),It.slice(1)}function _e(G,de,Ne,Ye){let ht="";const Ct=G.tag;for(let _t=0,qt=Ne.length;_t tag resolver accepts not "'+qt+'" style');It=_t.represent[qt](de,qt)}G.dump=It}return!0}}return!1}function xe(G,de,Ne,Ye,ht,Ct,_t){G.tag=null,G.dump=Ne,Ae(G,Ne,!1)||Ae(G,Ne,!0);const qt=n.call(G.dump),It=Ye;Ye&&(Ye=G.flowLevel<0||G.flowLevel>de);const Ot=qt==="[object Object]"||qt==="[object Array]";let et,Dt;if(Ot&&(et=G.duplicates.indexOf(Ne),Dt=et!==-1),(G.tag!==null&&G.tag!=="?"||Dt||G.indent!==2&&de>0)&&(ht=!1),Dt&&G.usedDuplicates[et])G.dump="*ref_"+et;else{if(Ot&&Dt&&!G.usedDuplicates[et]&&(G.usedDuplicates[et]=!0),qt==="[object Object]")Ye&&Object.keys(G.dump).length!==0?((function(Ut,pr,W,$e){let Je="";const Ft=Ut.tag,it=Object.keys(W);if(Ut.sortKeys===!0)it.sort();else if(typeof Ut.sortKeys=="function")it.sort(Ut.sortKeys);else if(Ut.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let bt=0,ut=it.length;bt1024;Er&&(Ut.dump&&Ut.dump.charCodeAt(0)===10?Xt+="?":Xt+="? "),Xt+=Ut.dump,Er&&(Xt+=P(Ut,pr)),xe(Ut,pr+1,tr,!0,Er)&&(Ut.dump&&Ut.dump.charCodeAt(0)===10?Xt+=":":Xt+=": ",Xt+=Ut.dump,Je+=Xt)}Ut.tag=Ft,Ut.dump=Je||"{}"})(G,de,G.dump,ht),Dt&&(G.dump="&ref_"+et+G.dump)):((function(Ut,pr,W){let $e="";const Je=Ut.tag,Ft=Object.keys(W);for(let it=0,bt=Ft.length;it1024&&(ut+="? "),ut+=Ut.dump+(Ut.condenseFlow?'"':"")+":"+(Ut.condenseFlow?"":" "),xe(Ut,pr,zt,!1,!1)&&(ut+=Ut.dump,$e+=ut))}Ut.tag=Je,Ut.dump="{"+$e+"}"})(G,de,G.dump),Dt&&(G.dump="&ref_"+et+" "+G.dump));else if(qt==="[object Array]")Ye&&G.dump.length!==0?(G.noArrayIndent&&!_t&&de>0?_e(G,de-1,G.dump,ht):_e(G,de,G.dump,ht),Dt&&(G.dump="&ref_"+et+G.dump)):((function(Ut,pr,W){let $e="";const Je=Ut.tag;for(let Ft=0,it=W.length;Ft",G.dump=or+" "+G.dump}}return!0}function Oe(G,de){const Ne=[],Ye=[];je(G,Ne,Ye);const ht=Ye.length;for(let Ct=0;Ct()=>{},n0=t=>e=>{const{fn:{fetch:r}}=e;return r(t)},a0=(t,e)=>r=>{const{specActions:n,configsActions:a}=r;if(t)return a.downloadConfig(t).then(o,o);function o(p){p instanceof Error||p.status>=400?(n.updateLoadingStatus("failedConfig"),n.updateLoadingStatus("failedConfig"),n.updateUrl(""),console.error(p.statusText+" "+t.url),e(null)):e(((c,d)=>{try{return Pe.load(c)}catch(E){return d&&d.errActions.newThrownErr(new Error(E)),{}}})(p.text,r))}},Pd=(t,e)=>t.getIn(Array.isArray(e)?e:[e]),bl={[aa]:(t,e)=>t.merge((0,H.fromJS)(e.payload)),[Bn]:(t,e)=>{const r=e.payload,n=t.get(r);return t.set(r,!n)}};function Nd(){return{statePlugins:{configs:{reducers:bl,actions:h,selectors:v}}}}const wl=t=>t?history.pushState(null,null,`#${t}`):window.location.hash="";var Ki=Be(86215),lp=Be.n(Ki);const Gi="layout_scroll_to",ih="layout_clear_scroll",o0={fn:{getScrollParent:function(e,r){const n=document.documentElement;let a=getComputedStyle(e);const o=a.position==="absolute",p=r?/(auto|scroll|hidden)/:/(auto|scroll)/;if(a.position==="fixed")return n;for(let c=e;c=c.parentElement;)if(a=getComputedStyle(c),(!o||a.position!=="static")&&p.test(a.overflow+a.overflowY+a.overflowX))return c;return n}},statePlugins:{layout:{actions:{scrollToElement:(t,e)=>r=>{try{e=e||r.fn.getScrollParent(t),lp().createScroller(e).to(t)}catch(n){console.error(n)}},scrollTo:t=>({type:Gi,payload:Array.isArray(t)?t:[t]}),clearScrollTo:()=>({type:ih}),readyToScroll:(t,e)=>r=>{const n=r.layoutSelectors.getScrollToKey();H.default.is(n,(0,H.fromJS)(t))&&(r.layoutActions.scrollToElement(e),r.layoutActions.clearScrollTo())},parseDeepLinkHash:t=>({layoutActions:e,layoutSelectors:r,getConfigs:n})=>{if(n().deepLinking&&t){let a=t.slice(1);a[0]==="!"&&(a=a.slice(1)),a[0]==="/"&&(a=a.slice(1));const o=a.split("/").map((x=>x||"")),p=r.isShownKeyFromUrlHashArray(o),[c,d="",E=""]=p;if(c==="operations"){const x=r.isShownKeyFromUrlHashArray([d]);d.indexOf("_")>-1&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),e.show(x.map((k=>k.replace(/_/g," "))),!0)),e.show(x,!0)}(d.indexOf("_")>-1||E.indexOf("_")>-1)&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),e.show(p.map((x=>x.replace(/_/g," "))),!0)),e.show(p,!0),e.scrollTo(p)}}},selectors:{getScrollToKey:t=>t.get("scrollToKey"),isShownKeyFromUrlHashArray(t,e){const[r,n]=e;return n?["operations",r,n]:r?["operations-tag",r]:[]},urlHashArrayFromIsShownKey(t,e){let[r,n,a]=e;return r=="operations"?[n,a]:r=="operations-tag"?[n]:[]}},reducers:{[Gi]:(t,e)=>t.set("scrollToKey",H.default.fromJS(e.payload)),[ih]:t=>t.delete("scrollToKey")},wrapActions:{show:(t,{getConfigs:e,layoutSelectors:r})=>(...n)=>{if(t(...n),e().deepLinking)try{let[a,o]=n;a=Array.isArray(a)?a:[a];const p=r.urlHashArrayFromIsShownKey(a);if(!p.length)return;const[c,d]=p;if(!o)return wl("/");p.length===2?wl(Jo(`/${encodeURIComponent(c)}/${encodeURIComponent(d)}`)):p.length===1&&wl(Jo(`/${encodeURIComponent(c)}`))}catch(a){console.error(a)}}}}}};var i0=Be(2209),El=Be.n(i0);const cp=(t,e)=>class extends u.Component{onLoad=n=>{const{operation:a}=this.props,{tag:o,operationId:p}=a.toObject();let{isShownKey:c}=a.toObject();c=c||["operations",o,p],e.layoutActions.readyToScroll(c,n)};render(){return u.createElement("span",{ref:this.onLoad},u.createElement(t,this.props))}},ru=(t,e)=>class extends u.Component{onLoad=n=>{const{tag:a}=this.props,o=["operations-tag",a];e.layoutActions.readyToScroll(o,n)};render(){return u.createElement("span",{ref:this.onLoad},u.createElement(t,this.props))}};function up(){return[o0,{statePlugins:{configs:{wrapActions:{loaded:(t,e)=>(...r)=>{t(...r);const n=decodeURIComponent(window.location.hash);e.layoutActions.parseDeepLinkHash(n)}}}},wrapComponents:{operation:cp,OperationTag:ru}}]}var Td=Be(40860),nu=Be.n(Td);function Sl(t){return t.map((e=>{let r="is not of a type(s)",n=e.get("message").indexOf(r);if(n>-1){let a=e.get("message").slice(n+19).split(",");return e.set("message",e.get("message").slice(0,n)+(function(p){return p.reduce(((c,d,E,x)=>E===x.length-1&&x.length>1?c+"or "+d:x[E+1]&&x.length>2?c+d+", ":x[E+1]?c+d+" ":c+d),"should be a")})(a))}return e}))}var qn=Be(58156),Cn=Be.n(qn);function xl(t,{jsSpec:e}){return t}const Xa=[f,y];function Oa(t){let e={jsSpec:{}};return nu()(Xa,((n,a)=>{try{return a.transform(n,e).filter((o=>!!o))}catch(o){return console.error("Transformer error:",o),n}}),t).filter((n=>!!n)).map((n=>(!n.get("line")&&n.get("path"),n)))}let ks={line:0,level:"error",message:"Unknown error"};const hc=yr((t=>t),(t=>t.get("errors",(0,H.List)()))),Ko=yr(hc,(t=>t.last()));function sh(t){return{statePlugins:{err:{reducers:{[Gt]:(e,{payload:r})=>{let n=Object.assign(ks,r,{type:"thrown"});return e.update("errors",(a=>(a||(0,H.List)()).push((0,H.fromJS)(n)))).update("errors",(a=>Oa(a)))},[Sr]:(e,{payload:r})=>(r=r.map((n=>(0,H.fromJS)(Object.assign(ks,n,{type:"thrown"})))),e.update("errors",(n=>(n||(0,H.List)()).concat((0,H.fromJS)(r)))).update("errors",(n=>Oa(n)))),[kt]:(e,{payload:r})=>{let n=(0,H.fromJS)(r);return n=n.set("type","spec"),e.update("errors",(a=>(a||(0,H.List)()).push((0,H.fromJS)(n)).sortBy((o=>o.get("line"))))).update("errors",(a=>Oa(a)))},[yt]:(e,{payload:r})=>(r=r.map((n=>(0,H.fromJS)(Object.assign(ks,n,{type:"spec"})))),e.update("errors",(n=>(n||(0,H.List)()).concat((0,H.fromJS)(r)))).update("errors",(n=>Oa(n)))),[Zt]:(e,{payload:r})=>{let n=(0,H.fromJS)(Object.assign({},r));return n=n.set("type","auth"),e.update("errors",(a=>(a||(0,H.List)()).push((0,H.fromJS)(n)))).update("errors",(a=>Oa(a)))},[pe]:(e,{payload:r})=>{if(!r||!e.get("errors"))return e;let n=e.get("errors").filter((a=>a.keySeq().every((o=>{const p=a.get(o),c=r[o];return!c||p!==c}))));return e.merge({errors:n})},[U]:(e,{payload:r})=>{if(!r||typeof r!="function")return e;let n=e.get("errors").filter((a=>r(a)));return e.merge({errors:n})}},actions:w,selectors:m}}}}function Xm(t,e){return t.filter(((r,n)=>n.indexOf(e)!==-1))}function Id(){return{fn:{opsFilter:Xm}}}var lh=Be(7666),Yr=Be.n(lh);const As=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),ch=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),Md=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),Qm=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),_l=({className:t=null,width:e=15,height:r=16,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 16",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("g",{transform:"translate(2, -1)"},u.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))),au=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),ou=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",Yr()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{fill:"currentColor",d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),pp=()=>({components:{ArrowUpIcon:As,ArrowDownIcon:ch,ArrowIcon:Md,CloseIcon:Qm,CopyIcon:_l,LockIcon:au,UnlockIcon:ou}}),iu="layout_update_layout",Io="layout_update_filter",Mo="layout_update_mode",Cs="layout_show";function Yi(t){return{type:iu,payload:t}}function js(t){return{type:Io,payload:t}}function dc(t,e=!0){return t=fn(t),{type:Cs,payload:{thing:t,shown:e}}}function Zm(t,e=""){return t=fn(t),{type:Mo,payload:{thing:t,mode:e}}}const Rd={[iu]:(t,e)=>t.set("layout",e.payload),[Io]:(t,e)=>t.set("filter",e.payload),[Cs]:(t,e)=>{const r=e.payload.shown,n=(0,H.fromJS)(e.payload.thing);return t.update("shown",(0,H.fromJS)({}),(a=>a.set(n,r)))},[Mo]:(t,e)=>{let r=e.payload.thing,n=e.payload.mode;return t.setIn(["modes"].concat(r),(n||"")+"")}},Dd=t=>t.get("layout"),Go=t=>t.get("filter"),Ro=(t,e,r)=>(e=fn(e),t.get("shown",(0,H.fromJS)({})).get((0,H.fromJS)(e),r)),Un=(t,e,r="")=>(e=fn(e),t.getIn(["modes",...e],r)),Oi=yr((t=>t),(t=>!Ro(t,"editor"))),eg=(t,e)=>(r,...n)=>{let a=t(r,...n);const{fn:o,layoutSelectors:p,getConfigs:c}=e.getSystem(),d=c(),{maxDisplayedTags:E}=d;let x=p.currentFilter();return x&&x!==!0&&(a=o.opsFilter(a,x)),E>=0&&(a=a.slice(0,E)),a};function Fd(){return{statePlugins:{layout:{reducers:Rd,actions:g,selectors:S},spec:{wrapSelectors:_}}}}function uh({configs:t}){const e={debug:0,info:1,log:2,warn:3,error:4},r=p=>e[p]||-1;let{logLevel:n}=t,a=r(n);function o(p,...c){r(p)>=a&&console[p](...c)}return o.warn=o.bind(null,"warn"),o.error=o.bind(null,"error"),o.info=o.bind(null,"info"),o.debug=o.bind(null,"debug"),{rootInjects:{log:o}}}let hp=!1;function Ld(){return{statePlugins:{spec:{wrapActions:{updateSpec:t=>(...e)=>(hp=!0,t(...e)),updateJsonSpec:(t,e)=>(...r)=>{const n=e.getConfigs().onComplete;return hp&&typeof n=="function"&&(setTimeout(n,0),hp=!1),t(...r)}}}}}}const dp=t=>{const e="_**[]";return t.indexOf(e)<0?t:t.split(e)[0].trim()},tg=t=>t==="-d "||/^[_\/-]/g.test(t)?t:"'"+t.replace(/'/g,"'\\''")+"'",su=t=>(t=t.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,`^ +`))==="-d "?t.replace(/-d /g,`-d ^ +`):/^[_\/-]/g.test(t)?t:'"'+t+'"',$d=t=>t==="-d "?t:/\n/.test(t)?`@" +${t.replace(/`/g,"``").replace(/\$/g,"`$")} +"@`:/^[_\/-]/.test(t)?t:`'${t.replace(/'/g,"''")}'`,Bd=(t,e,r,n="")=>{let a=!1,o="";const p=(...R)=>o+=" "+R.map(e).join(" "),c=(...R)=>o+=R.map(e).join(" "),d=()=>o+=` ${r}`,E=(R=1)=>o+=" ".repeat(R);let x=t.get("headers");o+="curl"+n;const k=t.get("curlOptions");if(H.List.isList(k)&&!k.isEmpty()&&p(...t.get("curlOptions")),p("-X",t.get("method")),d(),E(),c(`${t.get("url")}`),x&&x.size)for(let R of t.get("headers").entries()){d(),E();let[L,V]=R;c("-H",`${L}: ${V}`),a=a||/^content-type$/i.test(L)&&/^multipart\/form-data$/i.test(V)}const P=t.get("body");if(P)if(a&&["POST","PUT","PATCH"].includes(t.get("method")))for(let[R,L]of P.entrySeq()){let V=dp(R);d(),E(),c("-F"),L instanceof Qe.File&&typeof L.valueOf()=="string"?p(`${V}=${L.data}${L.type?`;type=${L.type}`:""}`):L instanceof Qe.File?p(`${V}=@${L.name}${L.type?`;type=${L.type}`:""}`):p(`${V}=${L}`)}else if(P instanceof Qe.File)d(),E(),c(`--data-binary '@${P.name}'`);else{d(),E(),c("-d ");let R=P;H.Map.isMap(R)?c((function(V){let Q=[];for(let[J,re]of V.get("body").entrySeq()){let me=dp(J);re instanceof Qe.File?Q.push(` "${me}": { + "name": "${re.name}"${re.type?`, + "type": "${re.type}"`:""} + }`):Q.push(` "${me}": ${JSON.stringify(re,null,2).replace(/(\r\n|\r|\n)/g,` + `)}`)}return`{ +${Q.join(`, +`)} +}`})(t)):(typeof R!="string"&&(R=JSON.stringify(R)),c(R))}else P||t.get("method")!=="POST"||(d(),E(),c("-d ''"));return o},fp=t=>Bd(t,$d,"`\n",".exe"),mp=t=>Bd(t,tg,`\\ +`),rg=t=>Bd(t,su,`^ +`),ph=t=>t||(0,H.Map)(),fc=yr(ph,(t=>{const e=t.get("languages"),r=t.get("generators",(0,H.Map)());return!e||e.isEmpty()?r:r.filter(((n,a)=>e.includes(a)))})),ng=t=>({fn:e})=>fc(t).map(((r,n)=>{const a=(o=>e[`requestSnippetGenerator_${o}`])(n);return typeof a!="function"?null:r.set("fn",a)})).filter((r=>r)),hh=yr(ph,(t=>t.get("activeLanguage"))),dh=yr(ph,(t=>t.get("defaultExpanded")));var lu=Be(46942),Xr=Be.n(lu),cu=Be(59399);const uu="Copy request snippet to clipboard",qd={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(250, 250, 250)",paddingBottom:"0",paddingTop:"0",border:"1px solid rgb(51, 51, 51)",borderRadius:"4px 4px 0 0",boxShadow:"none",borderBottom:"none"},pu={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(51, 51, 51)",boxShadow:"none",border:"1px solid rgb(51, 51, 51)",paddingBottom:"0",paddingTop:"0",borderRadius:"4px 4px 0 0",marginTop:"-5px",marginRight:"-5px",marginLeft:"-5px",zIndex:"9999",borderBottom:"none"},oi=({request:t,requestSnippetsSelectors:e,getComponent:r})=>{const n=(0,u.useRef)(null),a=r("ArrowUpIcon"),o=r("ArrowDownIcon"),p=r("SyntaxHighlighter",!0),[c,d]=(0,u.useState)(e.getSnippetGenerators()?.keySeq().first()),[E,x]=(0,u.useState)(e?.getDefaultExpanded()),k=e.getSnippetGenerators(),P=k.get(c),R=P.get("fn")(t),L=()=>{x(!E)},V=J=>J===c?pu:qd,Q=J=>{const{target:re,deltaY:me}=J,{scrollHeight:le,offsetHeight:ve,scrollTop:be}=re;le>ve&&(be===0&&me<0||ve+be>=le&&me>0)&&J.preventDefault()};return(0,u.useEffect)((()=>{}),[]),(0,u.useEffect)((()=>{const J=Array.from(n.current.childNodes).filter((re=>!!re.nodeType&&re.classList?.contains("curl-command")));return J.forEach((re=>re.addEventListener("mousewheel",Q,{passive:!1}))),()=>{J.forEach((re=>re.removeEventListener("mousewheel",Q)))}}),[t]),u.createElement("div",{className:"request-snippets",ref:n},u.createElement("div",{style:{width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"15px"}},u.createElement("h4",{onClick:()=>L(),style:{cursor:"pointer"}},"Snippets"),u.createElement("button",{onClick:()=>L(),style:{border:"none",background:"none"},title:E?"Collapse operation":"Expand operation"},E?u.createElement(o,{className:"arrow",width:"10",height:"10"}):u.createElement(a,{className:"arrow",width:"10",height:"10"}))),E&&u.createElement("div",{className:"curl-command"},u.createElement("div",{style:{paddingLeft:"15px",paddingRight:"10px",width:"100%",display:"flex"}},k.entrySeq().map((([J,re])=>u.createElement("div",{className:Xr()("btn",{active:J===c}),style:V(J),key:J,onClick:()=>(me=>{c!==me&&d(me)})(J)},u.createElement("h4",{style:J===c?{color:"white"}:{}},re.get("title")))))),u.createElement("div",{className:"copy-to-clipboard",title:uu,"aria-label":uu},u.createElement(cu.CopyToClipboard,{text:R},u.createElement("button",{"aria-label":uu,title:uu,type:"button"}))),u.createElement("div",null,u.createElement(p,{language:P.get("syntax"),className:"curl microlight",renderPlainText:({children:J,PlainTextViewer:re})=>u.createElement(re,{className:"curl"},J)},R))))},Ol=()=>({components:{RequestSnippets:oi},fn:{requestSnippetGenerator_curl_bash:mp,requestSnippetGenerator_curl_cmd:rg,requestSnippetGenerator_curl_powershell:fp},statePlugins:{requestSnippets:{selectors:T}}});class gp extends u.Component{static defaultProps={collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:H.default.List([])};constructor(e,r){super(e,r);let{expanded:n,collapsedContent:a}=this.props;this.state={expanded:n,collapsedContent:a||gp.defaultProps.collapsedContent}}componentDidMount(){const{hideSelfOnExpand:e,expanded:r,modelName:n}=this.props;e&&r&&this.props.onToggle(n,r)}UNSAFE_componentWillReceiveProps(e){this.props.expanded!==e.expanded&&this.setState({expanded:e.expanded})}toggleCollapsed=()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})};onLoad=e=>{if(e&&this.props.layoutSelectors){const r=this.props.layoutSelectors.getScrollToKey();H.default.is(r,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,e.parentElement)}};render(){const{title:e,classes:r}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?u.createElement("span",{className:r||""},this.props.children):u.createElement("span",{className:r||"",ref:this.onLoad},u.createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},e&&u.createElement("span",{className:"pointer"},e),u.createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&u.createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}}const ag=({initialTab:t,isExecute:e,schema:r,example:n})=>{const a=(0,u.useMemo)((()=>({example:"example",model:"model"})),[]),o=(0,u.useMemo)((()=>Object.keys(a)),[a]).includes(t)&&r&&!e?t:a.example,p=(x=>{const k=(0,u.useRef)();return(0,u.useEffect)((()=>{k.current=x})),k.current})(e),[c,d]=(0,u.useState)(o),E=(0,u.useCallback)((x=>{d(x.target.dataset.name)}),[]);return(0,u.useEffect)((()=>{p&&!e&&n&&d(a.example)}),[p,e,n]),{activeTab:c,onTabChange:E,tabs:a}},Ps=({schema:t,example:e,isExecute:r=!1,specPath:n,includeWriteOnly:a=!1,includeReadOnly:o=!1,getComponent:p,getConfigs:c,specSelectors:d})=>{const{defaultModelRendering:E,defaultModelExpandDepth:x}=c(),k=p("ModelWrapper"),P=p("HighlightCode",!0),R=Fn()(5).toString("base64"),L=Fn()(5).toString("base64"),V=Fn()(5).toString("base64"),Q=Fn()(5).toString("base64"),J=d.isOAS3(),{activeTab:re,tabs:me,onTabChange:le}=ag({initialTab:E,isExecute:r,schema:t,example:e});return u.createElement("div",{className:"model-example"},u.createElement("ul",{className:"tab",role:"tablist"},u.createElement("li",{className:Xr()("tabitem",{active:re===me.example}),role:"presentation"},u.createElement("button",{"aria-controls":L,"aria-selected":re===me.example,className:"tablinks","data-name":"example",id:R,onClick:le,role:"tab"},r?"Edit Value":"Example Value")),t&&u.createElement("li",{className:Xr()("tabitem",{active:re===me.model}),role:"presentation"},u.createElement("button",{"aria-controls":Q,"aria-selected":re===me.model,className:Xr()("tablinks",{inactive:r}),"data-name":"model",id:V,onClick:le,role:"tab"},J?"Schema":"Model"))),re===me.example&&u.createElement("div",{"aria-hidden":re!==me.example,"aria-labelledby":R,"data-name":"examplePanel",id:L,role:"tabpanel",tabIndex:"0"},e||u.createElement(P,null,"(no example available")),re===me.model&&u.createElement("div",{className:"model-container","aria-hidden":re===me.example,"aria-labelledby":V,"data-name":"modelPanel",id:Q,role:"tabpanel",tabIndex:"0"},u.createElement(k,{schema:t,getComponent:p,getConfigs:c,specSelectors:d,expandDepth:x,specPath:n,includeReadOnly:o,includeWriteOnly:a})))};class kl extends u.Component{onToggle=(e,r)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,r)};render(){let{getComponent:e,getConfigs:r}=this.props;const n=e("Model");let a;return this.props.layoutSelectors&&(a=this.props.layoutSelectors.isShown(this.props.fullPath)),u.createElement("div",{className:"model-box"},u.createElement(n,Yr()({},this.props,{getConfigs:r,expanded:a,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}function yp(t){return yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yp(t)}function og(t,e){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=(function(p,c){return function(d){if(typeof d=="string")return(0,H.is)(c[d],p[d]);if(Array.isArray(d))return(0,H.is)(ki(c,d),ki(p,d));throw new TypeError("Invalid key: expected Array or string: "+d)}})(e,r),a=t||Object.keys((function(p){for(var c=1;c1&&arguments[1]!==void 0?arguments[1]:{};return!du(this.updateOnProps,this.props,n,"updateOnProps")||!du(this.updateOnStates,this.state,a,"updateOnStates")}}]),e})(u.Component);var Al,zd=Be(5556),va=Be.n(zd);function gh(){return gh=Object.assign?Object.assign.bind():function(t){for(var e=1;eu.createElement("svg",gh({xmlns:"http://www.w3.org/2000/svg",width:200,height:200,className:"rolling-load_svg__lds-rolling",preserveAspectRatio:"xMidYMid",style:{backgroundImage:"none",backgroundPosition:"initial initial",backgroundRepeat:"initial initial"},viewBox:"0 0 100 100"},t),Al||(Al=u.createElement("circle",{cx:50,cy:50,r:35,fill:"none",stroke:"#555",strokeDasharray:"164.93361431346415 56.97787143782138",strokeWidth:10},u.createElement("animateTransform",{attributeName:"transform",begin:"0s",calcMode:"linear",dur:"1s",keyTimes:"0;1",repeatCount:"indefinite",type:"rotate",values:"0 50 50;360 50 50"})))),Wn=t=>{const e=t.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(e)}catch{return e}};class vh extends bp{static propTypes={schema:El().map.isRequired,getComponent:va().func.isRequired,getConfigs:va().func.isRequired,specSelectors:va().object.isRequired,name:va().string,displayName:va().string,isRef:va().bool,required:va().bool,expandDepth:va().number,depth:va().number,specPath:El().list.isRequired,includeReadOnly:va().bool,includeWriteOnly:va().bool};getModelName=e=>e.indexOf("#/definitions/")!==-1?Wn(e.replace(/^.*#\/definitions\//,"")):e.indexOf("#/components/schemas/")!==-1?Wn(e.replace(/^.*#\/components\/schemas\//,"")):void 0;getRefSchema=e=>{let{specSelectors:r}=this.props;return r.findDefinition(e)};render(){let{getComponent:e,getConfigs:r,specSelectors:n,schema:a,required:o,name:p,isRef:c,specPath:d,displayName:E,includeReadOnly:x,includeWriteOnly:k}=this.props;const P=e("ObjectModel"),R=e("ArrayModel"),L=e("PrimitiveModel");let V="object",Q=a&&a.get("$$ref"),J=a&&a.get("$ref");if(!p&&Q&&(p=this.getModelName(Q)),J){const me=this.getModelName(J),le=this.getRefSchema(me);H.Map.isMap(le)?(a=le.mergeDeep(a),Q||(a=a.set("$$ref",J),Q=J)):H.Map.isMap(a)&&a.size===1&&(a=null,p=J)}if(!a)return u.createElement("strong",{className:"model model-title"},u.createElement("span",{className:"model-title__text"},E||p),!J&&u.createElement(yh,{height:"20px",width:"20px"}));const re=n.isOAS3()&&a.get("deprecated");switch(c=c!==void 0?c:!!Q,V=a&&a.get("type")||V,V){case"object":return u.createElement(P,Yr()({className:"object"},this.props,{specPath:d,getConfigs:r,schema:a,name:p,deprecated:re,isRef:c,includeReadOnly:x,includeWriteOnly:k}));case"array":return u.createElement(R,Yr()({className:"array"},this.props,{getConfigs:r,schema:a,name:p,deprecated:re,required:o,includeReadOnly:x,includeWriteOnly:k}));default:return u.createElement(L,Yr()({},this.props,{getComponent:e,getConfigs:r,schema:a,name:p,deprecated:re,required:o}))}}}class Vd extends u.Component{getSchemaBasePath=()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"];getCollapsedContent=()=>" ";handleToggle=(e,r)=>{const{layoutActions:n}=this.props;n.show([...this.getSchemaBasePath(),e],r),r&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),e])};onLoadModels=e=>{e&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),e)};onLoadModel=e=>{if(e){const r=e.getAttribute("data-name");this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),r],e)}};render(){let{specSelectors:e,getComponent:r,layoutSelectors:n,layoutActions:a,getConfigs:o}=this.props,p=e.definitions(),{docExpansion:c,defaultModelsExpandDepth:d}=o();if(!p.size||d<0)return null;const E=this.getSchemaBasePath();let x=n.isShown(E,d>0&&c!=="none");const k=e.isOAS3(),P=r("ModelWrapper"),R=r("Collapse"),L=r("ModelCollapse"),V=r("JumpToPath",!0),Q=r("ArrowUpIcon"),J=r("ArrowDownIcon");return u.createElement("section",{className:x?"models is-open":"models",ref:this.onLoadModels},u.createElement("h4",null,u.createElement("button",{"aria-expanded":x,className:"models-control",onClick:()=>a.show(E,!x)},u.createElement("span",null,k?"Schemas":"Models"),x?u.createElement(Q,null):u.createElement(J,null))),u.createElement(R,{isOpened:x},p.entrySeq().map((([re])=>{const me=[...E,re],le=H.default.List(me),ve=e.specResolvedSubtree(me),be=e.specJson().getIn(me),ce=H.Map.isMap(ve)?ve:H.default.Map(),_e=H.Map.isMap(be)?be:H.default.Map(),Ae=ce.get("title")||_e.get("title")||re,xe=n.isShown(me,!1);xe&&ce.size===0&&_e.size>0&&this.props.specActions.requestResolvedSubtree(me);const Oe=u.createElement(P,{name:re,expandDepth:d,schema:ce||H.default.Map(),displayName:Ae,fullPath:me,specPath:le,getComponent:r,specSelectors:e,getConfigs:o,layoutSelectors:n,layoutActions:a,includeReadOnly:!0,includeWriteOnly:!0}),je=u.createElement("span",{className:"model-box"},u.createElement("strong",{className:"model model-title"},Ae));return u.createElement("div",{id:`model-${re}`,className:"model-container",key:`models-section-${re}`,"data-name":re,ref:this.onLoadModel},u.createElement("span",{className:"models-jump-to-path"},u.createElement(V,{path:le})),u.createElement(L,{classes:"model-box",collapsedContent:this.getCollapsedContent(re),onToggle:this.handleToggle,title:je,displayName:Ae,modelName:re,specPath:le,layoutSelectors:n,layoutActions:a,hideSelfOnExpand:!0,expanded:d>0&&xe},Oe))})).toArray()))}}const Jd=({value:t,getComponent:e})=>{let r=e("ModelCollapse"),n=u.createElement("span",null,"Array [ ",t.count()," ]");return u.createElement("span",{className:"prop-enum"},"Enum:",u.createElement("br",null),u.createElement(r,{collapsedContent:n},"[ ",t.map(String).join(", ")," ]"))};function fu(t){return t.match(/^(?:[a-z]+:)?\/\//i)}function Wd(t,e){return t?fu(t)?(function(n){return n.match(/^\/\//i)?`${window.location.protocol}${n}`:n})(t):new URL(t,e).href:e}function ba(t,e,{selectedServer:r=""}={}){try{return(function(a,o,{selectedServer:p=""}={}){if(!a)return;if(fu(a))return a;const c=Wd(p,o);return fu(c)?new URL(a,c).href:new URL(a,window.location.href).href})(t,e,{selectedServer:r})}catch{return}}function Dr(t){if(typeof t!="string"||t.trim()==="")return"";const e=t.trim(),r="about:blank";try{const n=`https://base${String(Math.random()).slice(2)}`,a=new URL(e,n),o=a.protocol.slice(0,-1);return["javascript","data","vbscript"].includes(o.toLowerCase())?r:a.origin===n?e.startsWith("/")?`${a.pathname}${a.search}${a.hash}`:e.startsWith("./")||e.startsWith("../")?`${e.match(/^(\.\.?\/)+/)[0]}${a.pathname.substring(1)}${a.search}${a.hash}`:`${a.pathname.substring(1)}${a.search}${a.hash}`:String(a)}catch{return r}}class ka extends u.Component{render(){let{schema:e,name:r,displayName:n,isRef:a,getComponent:o,getConfigs:p,depth:c,onToggle:d,expanded:E,specPath:x,...k}=this.props,{specSelectors:P,expandDepth:R,includeReadOnly:L,includeWriteOnly:V}=k;const{isOAS3:Q}=P,J=c>2||c===2&&x.last()!=="items";if(!e)return null;const{showExtensions:re}=p(),me=re?gr(e):(0,H.List)();let le=e.get("description"),ve=e.get("properties"),be=e.get("additionalProperties"),ce=e.get("title")||n||r,_e=e.get("required"),Ae=e.filter(((pr,W)=>["maxProperties","minProperties","nullable","example"].indexOf(W)!==-1)),xe=e.get("deprecated"),Oe=e.getIn(["externalDocs","url"]),je=e.getIn(["externalDocs","description"]);const G=o("JumpToPath",!0),de=o("Markdown",!0),Ne=o("Model"),Ye=o("ModelCollapse"),ht=o("Property"),Ct=o("Link"),_t=o("ModelExtensions"),qt=()=>u.createElement("span",{className:"model-jump-to-path"},u.createElement(G,{path:x})),It=u.createElement("span",null,u.createElement("span",null,"{"),"...",u.createElement("span",null,"}"),a?u.createElement(qt,null):""),Ot=P.isOAS3()?e.get("allOf"):null,et=P.isOAS3()?e.get("anyOf"):null,Dt=P.isOAS3()?e.get("oneOf"):null,or=P.isOAS3()?e.get("not"):null,Ut=ce&&u.createElement("strong",{className:"model-title"},a&&e.get("$$ref")&&u.createElement("span",{className:Xr()("model-hint",{"model-hint--embedded":J})},e.get("$$ref")),u.createElement("span",{className:"model-title__text"},ce));return u.createElement("span",{className:"model"},u.createElement(Ye,{modelName:r,title:Ut,onToggle:d,expanded:!!E||c<=R,collapsedContent:It},u.createElement("span",{className:"brace-open object"},"{"),a?u.createElement(qt,null):null,u.createElement("span",{className:"inner-object"},u.createElement("table",{className:"model"},u.createElement("tbody",null,le?u.createElement("tr",{className:"description"},u.createElement("td",null,"description:"),u.createElement("td",null,u.createElement(de,{source:le}))):null,Oe&&u.createElement("tr",{className:"external-docs"},u.createElement("td",null,"externalDocs:"),u.createElement("td",null,u.createElement(Ct,{target:"_blank",href:Dr(Oe)},je||Oe))),xe?u.createElement("tr",{className:"property"},u.createElement("td",null,"deprecated:"),u.createElement("td",null,"true")):null,ve&&ve.size?ve.entrySeq().filter((([,pr])=>(!pr.get("readOnly")||L)&&(!pr.get("writeOnly")||V))).map((([pr,W])=>{let $e=Q()&&W.get("deprecated"),Je=H.List.isList(_e)&&_e.contains(pr),Ft=["property-row"];return $e&&Ft.push("deprecated"),Je&&Ft.push("required"),u.createElement("tr",{key:pr,className:Ft.join(" ")},u.createElement("td",null,pr,Je&&u.createElement("span",{className:"star"},"*")),u.createElement("td",null,u.createElement(Ne,Yr()({key:`object-${r}-${pr}_${W}`},k,{required:Je,getComponent:o,specPath:x.push("properties",pr),getConfigs:p,schema:W,depth:c+1}))))})).toArray():null,me.size===0?null:u.createElement(u.Fragment,null,u.createElement("tr",null,u.createElement("td",null," ")),u.createElement(_t,{extensions:me,propClass:"extension"})),be&&be.size?u.createElement("tr",null,u.createElement("td",null,"< * >:"),u.createElement("td",null,u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("additionalProperties"),getConfigs:p,schema:be,depth:c+1})))):null,Ot?u.createElement("tr",null,u.createElement("td",null,"allOf ->"),u.createElement("td",null,Ot.map(((pr,W)=>u.createElement("div",{key:W},u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("allOf",W),getConfigs:p,schema:pr,depth:c+1}))))))):null,et?u.createElement("tr",null,u.createElement("td",null,"anyOf ->"),u.createElement("td",null,et.map(((pr,W)=>u.createElement("div",{key:W},u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("anyOf",W),getConfigs:p,schema:pr,depth:c+1}))))))):null,Dt?u.createElement("tr",null,u.createElement("td",null,"oneOf ->"),u.createElement("td",null,Dt.map(((pr,W)=>u.createElement("div",{key:W},u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("oneOf",W),getConfigs:p,schema:pr,depth:c+1}))))))):null,or?u.createElement("tr",null,u.createElement("td",null,"not ->"),u.createElement("td",null,u.createElement("div",null,u.createElement(Ne,Yr()({},k,{required:!1,getComponent:o,specPath:x.push("not"),getConfigs:p,schema:or,depth:c+1}))))):null))),u.createElement("span",{className:"brace-close"},"}")),Ae.size?Ae.entrySeq().map((([pr,W])=>u.createElement(ht,{key:`${pr}-${W}`,propKey:pr,propVal:W,propClass:"property"}))):null)}}class Aa extends u.Component{render(){let{getComponent:e,getConfigs:r,schema:n,depth:a,expandDepth:o,name:p,displayName:c,specPath:d}=this.props,E=n.get("description"),x=n.get("items"),k=n.get("title")||c||p,P=n.filter(((ve,be)=>["type","items","description","$$ref","externalDocs"].indexOf(be)===-1)),R=n.getIn(["externalDocs","url"]),L=n.getIn(["externalDocs","description"]);const V=e("Markdown",!0),Q=e("ModelCollapse"),J=e("Model"),re=e("Property"),me=e("Link"),le=k&&u.createElement("strong",{className:"model-title"},u.createElement("span",{className:"model-title__text"},k));return u.createElement("span",{className:"model"},u.createElement(Q,{title:le,expanded:a<=o,collapsedContent:"[...]"},"[",P.size?P.entrySeq().map((([ve,be])=>u.createElement(re,{key:`${ve}-${be}`,propKey:ve,propVal:be,propClass:"property"}))):null,E?u.createElement(V,{source:E}):P.size?u.createElement("div",{className:"markdown"}):null,R&&u.createElement("div",{className:"external-docs"},u.createElement(me,{target:"_blank",href:Dr(R)},L||R)),u.createElement("span",null,u.createElement(J,Yr()({},this.props,{getConfigs:r,specPath:d.push("items"),name:null,schema:x,required:!1,depth:a+1}))),"]"))}}const mc="property primitive";class wp extends u.Component{render(){let{schema:e,getComponent:r,getConfigs:n,name:a,displayName:o,depth:p,expandDepth:c}=this.props;const{showExtensions:d}=n();if(!e||!e.get)return u.createElement("div",null);let E=e.get("type"),x=e.get("format"),k=e.get("xml"),P=e.get("enum"),R=e.get("title")||o||a,L=e.get("description");const V=gr(e);let Q=e.filter(((xe,Oe)=>["enum","type","format","description","$$ref","externalDocs"].indexOf(Oe)===-1)).filterNot(((xe,Oe)=>V.has(Oe))),J=e.getIn(["externalDocs","url"]),re=e.getIn(["externalDocs","description"]);const me=r("Markdown",!0),le=r("EnumModel"),ve=r("Property"),be=r("ModelCollapse"),ce=r("Link"),_e=r("ModelExtensions"),Ae=R&&u.createElement("strong",{className:"model-title"},u.createElement("span",{className:"model-title__text"},R));return u.createElement("span",{className:"model"},u.createElement(be,{title:Ae,expanded:p<=c,collapsedContent:"[...]"},u.createElement("span",{className:"prop"},a&&p>1&&u.createElement("span",{className:"prop-name"},R),u.createElement("span",{className:"prop-type"},E),x&&u.createElement("span",{className:"prop-format"},"($",x,")"),Q.size?Q.entrySeq().map((([xe,Oe])=>u.createElement(ve,{key:`${xe}-${Oe}`,propKey:xe,propVal:Oe,propClass:mc}))):null,d&&V.size>0?u.createElement(_e,{extensions:V,propClass:`${mc} extension`}):null,L?u.createElement(me,{source:L}):null,J&&u.createElement("div",{className:"external-docs"},u.createElement(ce,{target:"_blank",href:Dr(J)},re||J)),k&&k.size?u.createElement("span",null,u.createElement("br",null),u.createElement("span",{className:mc},"xml:"),k.entrySeq().map((([xe,Oe])=>u.createElement("span",{key:`${xe}-${Oe}`,className:mc},u.createElement("br",null),"   ",xe,": ",String(Oe)))).toArray()):null,P&&u.createElement(le,{value:P,getComponent:r}))))}}class Ep extends u.Component{UNSAFE_componentWillMount(){let{schemes:e}=this.props;this.setScheme(e.first())}UNSAFE_componentWillReceiveProps(e){this.props.currentScheme&&e.schemes.includes(this.props.currentScheme)||this.setScheme(e.schemes.first())}onChange=e=>{this.setScheme(e.target.value)};setScheme=e=>{let{path:r,method:n,specActions:a}=this.props;a.setScheme(e,r,n)};render(){let{schemes:e,currentScheme:r}=this.props;return u.createElement("label",{htmlFor:"schemes"},u.createElement("span",{className:"schemes-title"},"Schemes"),u.createElement("select",{onChange:this.onChange,value:r,id:"schemes"},e.valueSeq().map((n=>u.createElement("option",{value:n,key:n},n))).toArray()))}}class s0 extends u.Component{render(){const{specActions:e,specSelectors:r,getComponent:n}=this.props,a=r.operationScheme(),o=r.schemes(),p=n("schemes");return o&&o.size?u.createElement(p,{currentScheme:a,schemes:o,specActions:e}):null}}var Qa=Be(24677),bh=Be.n(Qa);const Is={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,H.List)()};class Hd extends u.Component{static defaultProps=Is;componentDidMount(){const{dispatchInitialValue:e,value:r,onChange:n}=this.props;e?n(r):e===!1&&n("")}render(){let{schema:e,errors:r,value:n,onChange:a,getComponent:o,fn:p,disabled:c}=this.props;const d=e&&e.get?e.get("format"):null,E=e&&e.get?e.get("type"):null,x=p.getSchemaObjectType(e),k=p.isFileUploadIntended(e);let P=L=>o(L,!1,{failSilently:!0}),R=E?P(d?`JsonSchema_${E}_${d}`:`JsonSchema_${E}`):o("JsonSchema_string");return k||!H.List.isList(E)||x!=="array"&&x!=="object"||(R=o("JsonSchema_object")),R||(R=o("JsonSchema_string")),u.createElement(R,Yr()({},this.props,{errors:r,fn:p,getComponent:o,value:n,onChange:a,schema:e,disabled:c}))}}class Xi extends u.Component{static defaultProps=Is;onChange=e=>{const r=this.props.schema&&this.props.schema.get("type")==="file"?e.target.files[0]:e.target.value;this.props.onChange(r,this.props.keyName)};onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:r,schema:n,errors:a,required:o,description:p,disabled:c}=this.props;const d=n&&n.get?n.get("enum"):null,E=n&&n.get?n.get("format"):null,x=n&&n.get?n.get("type"):null,k=n&&n.get?n.get("in"):null;if(r?(Cr(r)||typeof r=="object")&&(r=Gr(r)):r="",a=a.toJS?a.toJS():[],d){const L=e("Select");return u.createElement(L,{className:a.length?"invalid":"",title:a.length?a:"",allowedValues:[...d],value:r,allowEmptyValue:!o,disabled:c,onChange:this.onEnumChange})}const P=c||k&&k==="formData"&&!("FormData"in window),R=e("Input");return x&&x==="file"?u.createElement(R,{type:"file",className:a.length?"invalid":"",title:a.length?a:"",onChange:this.onChange,disabled:P}):u.createElement(bh(),{type:E&&E==="password"?"password":"text",className:a.length?"invalid":"",title:a.length?a:"",value:r,minLength:0,debounceTimeout:350,placeholder:p,onChange:this.onChange,disabled:P})}}class ii extends u.PureComponent{static defaultProps=Is;constructor(e,r){super(e,r),this.state={value:Eh(e.value),schema:e.schema}}UNSAFE_componentWillReceiveProps(e){const r=Eh(e.value);r!==this.state.value&&this.setState({value:r}),e.schema!==this.state.schema&&this.setState({schema:e.schema})}onChange=()=>{this.props.onChange(this.state.value)};onItemChange=(e,r)=>{this.setState((({value:n})=>({value:n.set(r,e)})),this.onChange)};removeItem=e=>{this.setState((({value:r})=>({value:r.delete(e)})),this.onChange)};addItem=()=>{const{fn:e}=this.props;let r=Eh(this.state.value);this.setState((()=>({value:r.push(e.getSampleSchema(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))})),this.onChange)};onEnumChange=e=>{this.setState((()=>({value:e})),this.onChange)};render(){let{getComponent:e,required:r,schema:n,errors:a,fn:o,disabled:p}=this.props;a=a.toJS?a.toJS():Array.isArray(a)?a:[];const c=a.filter((ve=>typeof ve=="string")),d=a.filter((ve=>ve.needRemove!==void 0)).map((ve=>ve.error)),E=this.state.value,x=!!(E&&E.count&&E.count()>0),k=n.getIn(["items","enum"]),P=n.get("items"),R=o.getSchemaObjectType(P),L=o.getSchemaObjectTypeLabel(P),V=n.getIn(["items","format"]),Q=n.get("items");let J,re=!1,me=R==="file"||R==="string"&&V==="binary";if(R&&V?J=e(`JsonSchema_${R}_${V}`):R!=="boolean"&&R!=="array"&&R!=="object"||(J=e(`JsonSchema_${R}`)),!H.List.isList(P?.get("type"))||R!=="array"&&R!=="object"||(J=e("JsonSchema_object")),J||me||(re=!0),k){const ve=e("Select");return u.createElement(ve,{className:a.length?"invalid":"",title:a.length?a:"",multiple:!0,value:E,disabled:p,allowedValues:k,allowEmptyValue:!r,onChange:this.onEnumChange})}const le=e("Button");return u.createElement("div",{className:"json-schema-array"},x?E.map(((ve,be)=>{const ce=(0,H.fromJS)([...a.filter((_e=>_e.index===be)).map((_e=>_e.error))]);return u.createElement("div",{key:be,className:"json-schema-form-item"},me?u.createElement(wh,{value:ve,onChange:_e=>this.onItemChange(_e,be),disabled:p,errors:ce,getComponent:e}):re?u.createElement(mu,{value:ve,onChange:_e=>this.onItemChange(_e,be),disabled:p,errors:ce}):u.createElement(J,Yr()({},this.props,{value:ve,onChange:_e=>this.onItemChange(_e,be),disabled:p,errors:ce,schema:Q,getComponent:e,fn:o})),p?null:u.createElement(le,{className:`btn btn-sm json-schema-form-item-remove ${d.length?"invalid":null}`,title:d.length?d:"",onClick:()=>this.removeItem(be)}," - "))})):null,p?null:u.createElement(le,{className:`btn btn-sm json-schema-form-item-add ${c.length?"invalid":null}`,title:c.length?c:"",onClick:this.addItem},"Add ",L," item"))}}class mu extends u.Component{static defaultProps=Is;onChange=e=>{const r=e.target.value;this.props.onChange(r,this.props.keyName)};render(){let{value:e,errors:r,description:n,disabled:a}=this.props;return e?(Cr(e)||typeof e=="object")&&(e=Gr(e)):e="",r=r.toJS?r.toJS():[],u.createElement(bh(),{type:"text",className:r.length?"invalid":"",title:r.length?r:"",value:e,minLength:0,debounceTimeout:350,placeholder:n,onChange:this.onChange,disabled:a})}}class wh extends u.Component{static defaultProps=Is;onFileChange=e=>{const r=e.target.files[0];this.props.onChange(r,this.props.keyName)};render(){let{getComponent:e,errors:r,disabled:n}=this.props;const a=e("Input"),o=n||!("FormData"in window);return u.createElement(a,{type:"file",className:r.length?"invalid":"",title:r.length?r:"",onChange:this.onFileChange,disabled:o})}}class Kd extends u.Component{static defaultProps=Is;onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:r,errors:n,schema:a,required:o,disabled:p}=this.props;n=n.toJS?n.toJS():[];let c=a&&a.get?a.get("enum"):null,d=!c||!o,E=!c&&["true","false"];const x=e("Select");return u.createElement(x,{className:n.length?"invalid":"",title:n.length?n:"",value:String(r),disabled:p,allowedValues:c?[...c]:E,allowEmptyValue:d,onChange:this.onEnumChange})}}const ig=t=>t.map((e=>{const r=e.propKey!==void 0?e.propKey:e.index;let n=typeof e=="string"?e:typeof e.error=="string"?e.error:null;if(!r&&n)return n;let a=e.error,o=`/${e.propKey}`;for(;typeof a=="object";){const p=a.propKey!==void 0?a.propKey:a.index;if(p===void 0||(o+=`/${p}`,!a.error))break;a=a.error}return`${o}: ${a}`}));class sg extends u.PureComponent{constructor(){super()}static defaultProps=Is;onChange=e=>{this.props.onChange(e)};handleOnChange=e=>{const r=e.target.value;this.onChange(r)};render(){let{getComponent:e,value:r,errors:n,disabled:a}=this.props;const o=e("TextArea");return n=n.toJS?n.toJS():Array.isArray(n)?n:[],u.createElement("div",null,u.createElement(o,{className:Xr()({invalid:n.length}),title:n.length?ig(n).join(", "):"",value:Gr(r),disabled:a,onChange:this.handleOnChange}))}}function Eh(t){return H.List.isList(t)?t:Array.isArray(t)?(0,H.fromJS)(t):(0,H.List)()}const lg=({extensions:t,propClass:e=""})=>t.entrySeq().map((([r,n])=>{const a=Mr(n)??null;return u.createElement("tr",{key:r,className:e},u.createElement("td",null,r),u.createElement("td",null,JSON.stringify(a)))})).toArray();var cg=Be(11331),Ai=Be.n(cg);const ug=(t,e)=>{const r=H.Map.isMap(t);if(!r&&!Ai()(t))return!1;const n=r?t.get("type"):t.type;return e===n||Array.isArray(e)&&e.includes(n)},Gd=(t,e=new WeakSet)=>{if(t==null||e.has(t))return"any";e.add(t);const{type:r,items:n}=t;return Object.hasOwn(t,"items")?n?`array<${Gd(n,e)}>`:"array":r},Sp=t=>Gd(Mr(t)),Yd=()=>({components:{modelExample:Ps,ModelWrapper:kl,ModelCollapse:gp,Model:vh,Models:Vd,EnumModel:Jd,ObjectModel:ka,ArrayModel:Aa,PrimitiveModel:wp,ModelExtensions:lg,schemes:Ep,SchemesContainer:s0,...I},fn:{hasSchemaType:ug,getSchemaObjectTypeLabel:Sp}});var Sh=Be(19123),xp=Be.n(Sh),pg=Be(41859),xh=Be.n(pg),hg=Be(62193),Ci=Be.n(hg);const _h=t=>e=>Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every(((r,n)=>r===e[n])),dg=(...t)=>t;class Xd extends Map{delete(e){const r=Array.from(this.keys()).find(_h(e));return super.delete(r)}get(e){const r=Array.from(this.keys()).find(_h(e));return super.get(r)}has(e){return Array.from(this.keys()).findIndex(_h(e))!==-1}}const gu=(t,e=dg)=>{const{Cache:r}=Pt();Pt().Cache=Xd;const n=Pt()(t,e);return Pt().Cache=r,n},Qd={string:t=>t.pattern?(e=>{try{const r=new RegExp("(?<=(?"user@example.com","string_date-time":()=>new Date().toISOString(),string_date:()=>new Date().toISOString().substring(0,10),string_time:()=>new Date().toISOString().substring(11),string_uuid:()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",string_hostname:()=>"example.com",string_ipv4:()=>"198.51.100.42",string_ipv6:()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",number:()=>0,number_float:()=>0,integer:()=>0,boolean:t=>typeof t.default!="boolean"||t.default},Zd=t=>{t=Nn(t);let{type:e,format:r}=t,n=Qd[`${e}_${r}`]||Qd[e];return ia(n)?n(t):"Unknown Type: "+t.type},l0=t=>Vr(t,"$$ref",(e=>typeof e=="string"&&e.indexOf("#")>-1)),ef=["maxProperties","minProperties"],fg=["minItems","maxItems"],mg=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],gg=["minLength","maxLength"],gc=(t,e,r={})=>{const n={...t};if(["example","default","enum","xml","type",...ef,...fg,...mg,...gg].forEach((a=>(o=>{n[o]===void 0&&e[o]!==void 0&&(n[o]=e[o])})(a))),e.required!==void 0&&Array.isArray(e.required)&&(n.required!==void 0&&n.required.length||(n.required=[]),e.required.forEach((a=>{n.required.includes(a)||n.required.push(a)}))),e.properties){n.properties||(n.properties={});let a=Nn(e.properties);for(let o in a)Object.prototype.hasOwnProperty.call(a,o)&&(a[o]&&a[o].deprecated||a[o]&&a[o].readOnly&&!r.includeReadOnly||a[o]&&a[o].writeOnly&&!r.includeWriteOnly||n.properties[o]||(n.properties[o]=a[o],!e.required&&Array.isArray(e.required)&&e.required.indexOf(o)!==-1&&(n.required?n.required.push(o):n.required=[o])))}return e.items&&(n.items||(n.items={}),n.items=gc(n.items,e.items,r)),n},Yo=(t,e={},r=void 0,n=!1)=>{t&&ia(t.toJS)&&(t=t.toJS());let a=r!==void 0||t&&t.example!==void 0||t&&t.default!==void 0;const o=!a&&t&&t.oneOf&&t.oneOf.length>0,p=!a&&t&&t.anyOf&&t.anyOf.length>0;if(!a&&(o||p)){const G=Nn(o?t.oneOf[0]:t.anyOf[0]);if(!(t=gc(t,G,e)).xml&&G.xml&&(t.xml=G.xml),t.example!==void 0&&G.example!==void 0)a=!0;else if(G.properties){t.properties||(t.properties={});let de=Nn(G.properties);for(let Ne in de)Object.prototype.hasOwnProperty.call(de,Ne)&&(de[Ne]&&de[Ne].deprecated||de[Ne]&&de[Ne].readOnly&&!e.includeReadOnly||de[Ne]&&de[Ne].writeOnly&&!e.includeWriteOnly||t.properties[Ne]||(t.properties[Ne]=de[Ne],!G.required&&Array.isArray(G.required)&&G.required.indexOf(Ne)!==-1&&(t.required?t.required.push(Ne):t.required=[Ne])))}}const c={};let{xml:d,type:E,example:x,properties:k,additionalProperties:P,items:R}=t||{},{includeReadOnly:L,includeWriteOnly:V}=e;d=d||{};let Q,{name:J,prefix:re,namespace:me}=d,le={};n&&(J=J||"notagname",Q=(re?re+":":"")+J,me)&&(c[re?"xmlns:"+re:"xmlns"]=me),n&&(le[Q]=[]);const ve=G=>G.some((de=>Object.prototype.hasOwnProperty.call(t,de)));t&&!E&&(k||P||ve(ef)?E="object":R||ve(fg)?E="array":ve(mg)?(E="number",t.type="number"):a||t.enum||(E="string",t.type="string"));const be=G=>{if(t?.maxItems!=null&&(G=G.slice(0,t?.maxItems)),t?.minItems!=null){let de=0;for(;G.lengtht&&t.maxProperties!==null&&t.maxProperties!==void 0&&Ae>=t.maxProperties,Oe=G=>!t||t.maxProperties===null||t.maxProperties===void 0||!xe()&&(!(de=>!(t&&t.required&&t.required.length&&t.required.includes(de)))(G)||t.maxProperties-Ae-(()=>{if(!t||!t.required)return 0;let de=0;return n?t.required.forEach((Ne=>de+=le[Ne]===void 0?0:1)):t.required.forEach((Ne=>de+=le[Q]?.find((Ye=>Ye[Ne]!==void 0))===void 0?0:1)),t.required.length-de})()>0);if(_e=n?(G,de=void 0)=>{if(t&&ce[G]){if(ce[G].xml=ce[G].xml||{},ce[G].xml.attribute){const Ye=Array.isArray(ce[G].enum)?ce[G].enum[0]:void 0,ht=ce[G].example,Ct=ce[G].default;return void(c[ce[G].xml.name||G]=ht!==void 0?ht:Ct!==void 0?Ct:Ye!==void 0?Ye:Zd(ce[G]))}ce[G].xml.name=ce[G].xml.name||G}else ce[G]||P===!1||(ce[G]={xml:{name:G}});let Ne=Yo(t&&ce[G]||void 0,e,de,n);Oe(G)&&(Ae++,Array.isArray(Ne)?le[Q]=le[Q].concat(Ne):le[Q].push(Ne))}:(G,de)=>{if(Oe(G)){if(Object.prototype.hasOwnProperty.call(t,"discriminator")&&t.discriminator&&Object.prototype.hasOwnProperty.call(t.discriminator,"mapping")&&t.discriminator.mapping&&Object.prototype.hasOwnProperty.call(t,"$$ref")&&t.$$ref&&t.discriminator.propertyName===G){for(let Ne in t.discriminator.mapping)if(t.$$ref.search(t.discriminator.mapping[Ne])!==-1){le[G]=Ne;break}}else le[G]=Yo(ce[G],e,de,n);Ae++}},a){let G;if(G=l0(r!==void 0?r:x!==void 0?x:t.default),!n){if(typeof G=="number"&&E==="string")return`${G}`;if(typeof G!="string"||E==="string")return G;try{return JSON.parse(G)}catch{return G}}if(t||(E=Array.isArray(G)?"array":typeof G),E==="array"){if(!Array.isArray(G)){if(typeof G=="string")return G;G=[G]}const de=t?t.items:void 0;de&&(de.xml=de.xml||d||{},de.xml.name=de.xml.name||d.name);let Ne=G.map((Ye=>Yo(de,e,Ye,n)));return Ne=be(Ne),d.wrapped?(le[Q]=Ne,Ci()(c)||le[Q].push({_attr:c})):le=Ne,le}if(E==="object"){if(typeof G=="string")return G;for(let de in G)Object.prototype.hasOwnProperty.call(G,de)&&(t&&ce[de]&&ce[de].readOnly&&!L||t&&ce[de]&&ce[de].writeOnly&&!V||(t&&ce[de]&&ce[de].xml&&ce[de].xml.attribute?c[ce[de].xml.name||de]=G[de]:_e(de,G[de])));return Ci()(c)||le[Q].push({_attr:c}),le}return le[Q]=Ci()(c)?G:[{_attr:c},G],le}if(E==="object"){for(let G in ce)Object.prototype.hasOwnProperty.call(ce,G)&&(ce[G]&&ce[G].deprecated||ce[G]&&ce[G].readOnly&&!L||ce[G]&&ce[G].writeOnly&&!V||_e(G));if(n&&c&&le[Q].push({_attr:c}),xe())return le;if(P===!0)n?le[Q].push({additionalProp:"Anything can be here"}):le.additionalProp1={},Ae++;else if(P){const G=Nn(P),de=Yo(G,e,void 0,n);if(n&&G.xml&&G.xml.name&&G.xml.name!=="notagname")le[Q].push(de);else{const Ne=G["x-additionalPropertiesName"]||"additionalProp",Ye=t.minProperties!==null&&t.minProperties!==void 0&&AeYo(gc(de,R,e),e,void 0,n)));else if(Array.isArray(R.oneOf))G=R.oneOf.map((de=>Yo(gc(de,R,e),e,void 0,n)));else{if(!(!n||n&&d.wrapped))return Yo(R,e,void 0,n);G=[Yo(R,e,void 0,n)]}return G=be(G),n&&d.wrapped?(le[Q]=G,Ci()(c)||le[Q].push({_attr:c}),le):G}let je;if(t&&Array.isArray(t.enum))je=fn(t.enum)[0];else{if(!t)return;if(je=Zd(t),typeof je=="number"){let G=t.minimum;G!=null&&(t.exclusiveMinimum&&G++,je=G);let de=t.maximum;de!=null&&(t.exclusiveMaximum&&de--,je=de)}if(typeof je=="string"&&(t.maxLength!==null&&t.maxLength!==void 0&&(je=je.slice(0,t.maxLength)),t.minLength!==null&&t.minLength!==void 0)){let G=0;for(;je.length(t.schema&&(t=t.schema),t.properties&&(t.type="object"),t),tf=(t,e,r)=>{const n=Yo(t,e,r,!0);if(n)return typeof n=="string"?n:xp()(n,{declaration:!0,indent:" "})},rf=(t,e,r)=>Yo(t,e,r,!1),yg=(t,e,r)=>[t,JSON.stringify(e),JSON.stringify(r)],si=gu(tf,yg),Oh=gu(rf,yg),kh=t=>Mr(t)?.type??"string",vg=[{when:/json/,shouldStringifyTypes:["string"]}],bg=["object"],wg=t=>(e,r,n,a)=>{const{fn:o}=t(),p=o.memoizedSampleFromSchema(e,r,a),c=typeof p,d=vg.reduce(((E,x)=>x.when.test(n)?[...E,...x.shouldStringifyTypes]:E),bg);return Wr()(d,(E=>E===c))?JSON.stringify(p,null,2):p},nf=t=>(e,r,n,a)=>{const{fn:o}=t(),p=o.getJsonSampleSchema(e,r,n,a);let c;try{c=Pe.dump(Pe.load(p),{lineWidth:-1},{schema:Rt}),c[c.length-1]===` +`&&(c=c.slice(0,c.length-1))}catch(d){return console.error(d),"error: could not generate yaml example"}return c.replace(/\t/g," ")},yu=t=>(e,r,n)=>{const{fn:a}=t();if(e&&!e.xml&&(e.xml={}),e&&!e.xml.name){if(!e.$$ref&&(e.type||e.items||e.properties||e.additionalProperties))return` +`;if(e.$$ref){let o=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=o[1]}}return a.memoizedCreateXMLExample(e,r,n)},af=t=>(e,r="",n={},a=void 0)=>{const{fn:o}=t();return typeof a?.toJS=="function"&&(a=a.toJS()),/xml/.test(r)?(typeof e?.toJS=="function"&&(e=e.toJS()),o.getXmlSampleSchema(e,n,a)):/(yaml|yml)/.test(r)?o.getYamlSampleSchema(e,n,r,a):o.getJsonSampleSchema(e,n,r,a)},Ah=({getSystem:t})=>{const e=wg(t),r=nf(t),n=yu(t),a=af(t);return{fn:{jsonSchema5:{inferSchema:_p,sampleFromSchema:rf,sampleFromSchemaGeneric:Yo,createXMLExample:tf,memoizedSampleFromSchema:Oh,memoizedCreateXMLExample:si,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:a,mergeJsonSchema:gc},inferSchema:_p,sampleFromSchema:rf,sampleFromSchemaGeneric:Yo,createXMLExample:tf,memoizedSampleFromSchema:Oh,memoizedCreateXMLExample:si,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:a,mergeJsonSchema:gc,getSchemaObjectType:kh}}};var c0=Be(37334),vu=Be.n(c0);const Eg=["get","put","post","delete","options","head","patch","trace","query"],ji=t=>t||(0,H.Map)(),Sg=yr(ji,(t=>t.get("lastError"))),xg=yr(ji,(t=>t.get("url"))),u0=yr(ji,(t=>t.get("spec")||"")),Do=yr(ji,(t=>t.get("specSource")||"not-editor")),Za=yr(ji,(t=>t.get("json",(0,H.Map)()))),_g=yr(Za,(t=>t.toJS())),Og=yr(ji,(t=>t.get("resolved",(0,H.Map)()))),kg=(t,e)=>t.getIn(["resolvedSubtrees",...e],void 0),of=(t,e)=>H.Map.isMap(t)&&H.Map.isMap(e)?e.get("$$ref")?e:(0,H.OrderedMap)().mergeWith(of,t,e):e,li=yr(ji,(t=>(0,H.OrderedMap)().mergeWith(of,t.get("json"),t.get("resolvedSubtrees")))),eo=t=>Za(t),Ag=yr(eo,(()=>!1)),Ch=yr(eo,(t=>gf(t&&t.get("info")))),Cg=yr(eo,(t=>gf(t&&t.get("externalDocs")))),sf=yr(Ch,(t=>t&&t.get("version"))),jg=yr(sf,(t=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(t).slice(1))),lf=yr(li,(t=>t.get("paths"))),Pg=vu()(["get","put","post","delete","options","head","patch"]),jh=yr(lf,(t=>{let e=(0,H.List)();return!H.Map.isMap(t)||t.isEmpty()||t.forEach(((r,n)=>{if(!r||!r.forEach)return{};r.forEach(((a,o)=>{Eg.indexOf(o)<0||(e=e.push((0,H.fromJS)({path:n,method:o,operation:a,id:`${o}-${n}`,specPath:["paths",n,o]})))}))})),e})),Ph=yr(eo,(t=>(0,H.Set)(t.get("consumes")))),cf=yr(eo,(t=>(0,H.Set)(t.get("produces")))),uf=yr(eo,(t=>t.get("security",(0,H.List)()))),Nh=yr(eo,(t=>t.get("securityDefinitions"))),Ng=(t,e)=>{const r=t.getIn(["resolvedSubtrees","definitions",e],null),n=t.getIn(["json","definitions",e],null);return r||n||null},pf=yr(eo,(t=>{const e=t.get("definitions");return H.Map.isMap(e)?e:(0,H.Map)()})),Tg=yr(eo,(t=>t.get("basePath"))),Th=yr(eo,(t=>t.get("host"))),Ms=yr(eo,(t=>t.get("schemes",(0,H.Map)()))),bu=yr([jh,Ph,cf],((t,e,r)=>t.map((n=>n.update("operation",(a=>H.Map.isMap(a)?a.withMutations((o=>(o.get("consumes")||o.update("consumes",(p=>(0,H.Set)(p).merge(e))),o.get("produces")||o.update("produces",(p=>(0,H.Set)(p).merge(r))),o))):(0,H.Map)())))))),La=yr(eo,(t=>{const e=t.get("tags",(0,H.List)());return H.List.isList(e)?e.filter((r=>H.Map.isMap(r))):(0,H.List)()})),Ig=(t,e)=>(La(t)||(0,H.List)()).filter(H.Map.isMap).find((r=>r.get("name")===e),(0,H.Map)()),Mg=yr(bu,La,((t,e)=>t.reduce(((r,n)=>{let a=(0,H.Set)(n.getIn(["operation","tags"]));return a.count()<1?r.update("default",(0,H.List)(),(o=>o.push(n))):a.reduce(((o,p)=>o.update(p,(0,H.List)(),(c=>c.push(n)))),r)}),e.reduce(((r,n)=>r.set(n.get("name"),(0,H.List)())),(0,H.OrderedMap)())))),Ih=t=>({getConfigs:e})=>{let{tagsSorter:r,operationsSorter:n}=e();return Mg(t).sortBy(((a,o)=>o),((a,o)=>{let p=typeof r=="function"?r:Nr.tagsSorter[r];return p?p(a,o):null})).map(((a,o)=>{let p=typeof n=="function"?n:Nr.operationsSorter[n],c=p?a.sort(p):a;return(0,H.Map)({tagDetails:Ig(t,o),operations:c})}))},$a=yr(ji,(t=>t.get("responses",(0,H.Map)()))),Rg=yr(ji,(t=>t.get("requests",(0,H.Map)()))),cr=yr(ji,(t=>t.get("mutatedRequests",(0,H.Map)()))),wu=(t,e,r)=>$a(t).getIn([e,r],null),Dg=(t,e,r)=>Rg(t).getIn([e,r],null),Fg=(t,e,r)=>cr(t).getIn([e,r],null),Op=()=>!0,Eu=(t,e,r)=>{const n=li(t).getIn(["paths",...e,"parameters"],(0,H.OrderedMap)()),a=t.getIn(["meta","paths",...e,"parameters"],(0,H.OrderedMap)());return n.map((o=>{const p=a.get(`${r.get("in")}.${r.get("name")}`),c=a.get(`${r.get("in")}.${r.get("name")}.hash-${r.hashCode()}`);return(0,H.OrderedMap)().merge(o,p,c)})).find((o=>o.get("in")===r.get("in")&&o.get("name")===r.get("name")),(0,H.OrderedMap)())},Mh=(t,e,r,n)=>{const a=`${n}.${r}`;return t.getIn(["meta","paths",...e,"parameter_inclusions",a],!1)},Lg=(t,e,r,n)=>{const a=li(t).getIn(["paths",...e,"parameters"],(0,H.OrderedMap)()).find((o=>o.get("in")===n&&o.get("name")===r),(0,H.OrderedMap)());return Eu(t,e,a)},hf=(t,e,r)=>{const n=li(t).getIn(["paths",e,r],(0,H.OrderedMap)()),a=t.getIn(["meta","paths",e,r],(0,H.OrderedMap)()),o=n.get("parameters",(0,H.List)()).map((p=>Eu(t,[e,r],p)));return(0,H.OrderedMap)().merge(n,a).set("parameters",o)};function $g(t,e,r,n){return e=e||[],t.getIn(["meta","paths",...e,"parameters"],(0,H.fromJS)([])).find((a=>H.Map.isMap(a)&&a.get("name")===r&&a.get("in")===n))||(0,H.Map)()}const df=yr(eo,(t=>{const e=t.get("host");return typeof e=="string"&&e.length>0&&e[0]!=="/"}));function Rh(t,e,r){return e=e||[],hf(t,...e).get("parameters",(0,H.List)()).reduce(((n,a)=>{let o=r&&a.get("in")==="body"?a.get("value_xml"):a.get("value");return H.List.isList(o)&&(o=o.filter((p=>p!==""))),n.set(sa(a,{allowHashes:!1}),o)}),(0,H.fromJS)({}))}function ho(t,e=""){if(H.List.isList(t))return t.some((r=>H.Map.isMap(r)&&r.get("in")===e))}function ci(t,e=""){if(H.List.isList(t))return t.some((r=>H.Map.isMap(r)&&r.get("type")===e))}function Cl(t,e){e=e||[];let r=li(t).getIn(["paths",...e],(0,H.fromJS)({})),n=t.getIn(["meta","paths",...e],(0,H.fromJS)({})),a=ff(t,e);const o=r.get("parameters")||new H.List,p=n.get("consumes_value")?n.get("consumes_value"):ci(o,"file")?"multipart/form-data":ci(o,"formData")?"application/x-www-form-urlencoded":void 0;return(0,H.fromJS)({requestContentType:p,responseContentType:a})}function ff(t,e){e=e||[];const r=li(t).getIn(["paths",...e],null);if(r===null)return;const n=t.getIn(["meta","paths",...e,"produces_value"],null),a=r.getIn(["produces",0],null);return n||a||"application/json"}function Bg(t,e){e=e||[];const r=li(t),n=r.getIn(["paths",...e],null);if(n===null)return;const[a]=e,o=n.get("produces",null),p=r.getIn(["paths",a,"produces"],null),c=r.getIn(["produces"],null);return o||p||c}function Qi(t,e){e=e||[];const r=li(t),n=r.getIn(["paths",...e],null);if(n===null)return;const[a]=e,o=n.get("consumes",null),p=r.getIn(["paths",a,"consumes"],null),c=r.getIn(["consumes"],null);return o||p||c}const mf=(t,e,r)=>{let n=t.get("url").match(/^([a-z][a-z0-9+\-.]*):/),a=Array.isArray(n)?n[1]:null;return t.getIn(["scheme",e,r])||t.getIn(["scheme","_defaultScheme"])||a||""},Rs=(t,e,r)=>["http","https"].indexOf(mf(t,e,r))>-1,qg=(t,e)=>{e=e||[];const r=t.getIn(["meta","paths",...e,"parameters"],(0,H.fromJS)([])),n=[];if(r.length===0)return n;const a=(o,p=[])=>{const c=(d,E)=>{const x=[...E,d.get("propKey")||d.get("index")];return H.Map.isMap(d.get("error"))?a(d.get("error"),x):{error:d.get("error"),path:x}};return H.List.isList(o)?o.map((d=>H.Map.isMap(d)?c(d,p):{error:d,path:p})):c(o,p)};return r.forEach(((o,p)=>{const c=p.split(".").slice(1,-1).join("."),d=o.get("errors");d&&d.count()&&a(d).forEach((({error:E,path:x})=>{n.push(((k,P,R)=>`For '${R}'${(P=P.reduce(((L,V)=>typeof V=="number"?`${L}[${V}]`:L?`${L}.${V}`:V),""))?` at path '${P}'`:""}: ${k}.`)(E,x,c))}))})),n},Ug=(t,e)=>qg(t,e).length===0,zg=(t,e)=>{let r={requestBody:!1,requestContentType:{}},n=t.getIn(["resolvedSubtrees","paths",...e,"requestBody"],(0,H.fromJS)([]));if(n.size<1)return r;n.getIn(["required"])&&(r.requestBody=n.getIn(["required"]));const a=n.getIn(["content"]);return a&&a.entrySeq().forEach((o=>{const p=o[0];if(o[1].getIn(["schema","required"])){const c=o[1].getIn(["schema","required"]).toJS();r.requestContentType[p]=c}})),r},Vg=(t,e,r,n)=>{if((r||n)&&r===n)return!0;let a=t.getIn(["resolvedSubtrees","paths",...e,"requestBody","content"],(0,H.fromJS)([]));if(a.size<2||!r||!n)return!1;let o=a.getIn([r,"schema","properties"],(0,H.fromJS)([])),p=a.getIn([n,"schema","properties"],(0,H.fromJS)([]));return!!o.equals(p)};function gf(t){return H.Map.isMap(t)?t:new H.Map}var Jg=Be(85015),p0=Be.n(Jg),Dh=Be(38221),yf=Be.n(Dh),ui=Be(63560),pn=Be.n(ui),Ca=Be(56367),ua=Be.n(Ca);const wa="spec_update_spec",fo="spec_update_url",jl="spec_update_json",Kn="spec_update_param",yc="spec_update_empty_param_inclusion",Ds="spec_validate_param",Su="spec_set_response",kp="spec_set_request",vc="spec_set_mutated_request",Fo="spec_log_request",Ap="spec_clear_response",Pl="spec_clear_request",Zi="spec_clear_validate_param",bc="spec_update_operation_meta_value",Cp="spec_update_resolved",Pi="spec_update_resolved_subtree",xu="set_scheme",Nl=t=>p0()(t)?t:"";function Fh(t){const e=Nl(t).replace(/\t/g," ");if(typeof t=="string")return{type:wa,payload:e}}function jp(t){return{type:Cp,payload:t}}function vf(t){return{type:fo,payload:t}}function Lh(t){return{type:jl,payload:t}}const $h=t=>({specActions:e,specSelectors:r,errActions:n})=>{let{specStr:a}=r,o=null;try{t=t||a(),n.clear({source:"parser"}),o=Pe.load(t,{schema:Rt})}catch(p){return console.error(p),n.newSpecErr({source:"parser",level:"error",message:p.reason,line:p.mark&&p.mark.line?p.mark.line+1:void 0})}return o&&typeof o=="object"?e.updateJsonSpec(o):e.updateJsonSpec({})};let to=!1;const Tl=(t,e)=>({specActions:r,specSelectors:n,errActions:a,fn:{fetch:o,resolve:p,AST:c={}},getConfigs:d})=>{to||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),to=!0);const{modelPropertyMacro:E,parameterMacro:x,requestInterceptor:k,responseInterceptor:P}=d();t===void 0&&(t=n.specJson()),e===void 0&&(e=n.url());let R=c.getLineNumberForPath?c.getLineNumberForPath:()=>{},L=n.specStr();return p({fetch:o,spec:t,baseDoc:String(new URL(e,document.baseURI)),modelPropertyMacro:E,parameterMacro:x,requestInterceptor:k,responseInterceptor:P}).then((({spec:V,errors:Q})=>{if(a.clear({type:"thrown"}),Array.isArray(Q)&&Q.length>0){let J=Q.map((re=>(console.error(re),re.line=re.fullPath?R(L,re.fullPath):null,re.path=re.fullPath?re.fullPath.join("."):null,re.level="error",re.type="thrown",re.source="resolver",Object.defineProperty(re,"message",{enumerable:!0,value:re.message}),re)));a.newThrownErrBatch(J)}return r.updateResolved(V)}))};let Lo=[];const $o=yf()((()=>{const t=Lo.reduce(((e,{path:r,system:n})=>(e.has(n)||e.set(n,[]),e.get(n).push(r),e)),new Map);Lo=[],t.forEach((async(e,r)=>{if(!r)return void console.error("debResolveSubtrees: don't have a system to operate on, aborting.");if(!r.fn.resolveSubtree)return void console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.");const{errActions:n,errSelectors:a,fn:{resolveSubtree:o,fetch:p,AST:c={}},specSelectors:d,specActions:E}=r,x=c.getLineNumberForPath??vu()(void 0),k=d.specStr(),{modelPropertyMacro:P,parameterMacro:R,requestInterceptor:L,responseInterceptor:V}=r.getConfigs();try{const Q=await e.reduce((async(J,re)=>{let{resultMap:me,specWithCurrentSubtrees:le}=await J;const{errors:ve,spec:be}=await o(le,re,{baseDoc:String(new URL(d.url(),document.baseURI)),modelPropertyMacro:P,parameterMacro:R,requestInterceptor:L,responseInterceptor:V});if(a.allErrors().size&&n.clearBy((ce=>ce.get("type")!=="thrown"||ce.get("source")!=="resolver"||!ce.get("fullPath")?.every(((_e,Ae)=>_e===re[Ae]||re[Ae]===void 0)))),Array.isArray(ve)&&ve.length>0){let ce=ve.map((_e=>(_e.line=_e.fullPath?x(k,_e.fullPath):null,_e.path=_e.fullPath?_e.fullPath.join("."):null,_e.level="error",_e.type="thrown",_e.source="resolver",Object.defineProperty(_e,"message",{enumerable:!0,value:_e.message}),_e)));n.newThrownErrBatch(ce)}return be&&d.isOAS3()&&re[0]==="components"&&re[1]==="securitySchemes"&&await Promise.all(Object.values(be).filter((ce=>ce?.type==="openIdConnect")).map((async ce=>{const _e={url:ce.openIdConnectUrl,requestInterceptor:L,responseInterceptor:V};try{const Ae=await p(_e);Ae instanceof Error||Ae.status>=400?console.error(Ae.statusText+" "+_e.url):ce.openIdConnectData=JSON.parse(Ae.text)}catch(Ae){console.error(Ae)}}))),pn()(me,re,be),le=ua()(re,be,le),{resultMap:me,specWithCurrentSubtrees:le}}),Promise.resolve({resultMap:(d.specResolvedSubtree([])||(0,H.Map)()).toJS(),specWithCurrentSubtrees:d.specJS()}));E.updateResolvedSubtree([],Q.resultMap)}catch(Q){console.error(Q)}}))}),35),Wg=t=>e=>{Lo.find((({path:r,system:n})=>n===e&&r.toString()===t.toString()))||(Lo.push({path:t,system:e}),$o())};function bf(t,e,r,n,a){return{type:Kn,payload:{path:t,value:n,paramName:e,paramIn:r,isXml:a}}}function wf(t,e,r,n){return{type:Kn,payload:{path:t,param:e,value:r,isXml:n}}}const Il=(t,e)=>({type:Pi,payload:{path:t,value:e}}),Hg=()=>({type:Pi,payload:{path:[],value:(0,H.Map)()}}),Ef=(t,e)=>({type:Ds,payload:{pathMethod:t,isOAS3:e}}),wc=(t,e,r,n)=>({type:yc,payload:{pathMethod:t,paramName:e,paramIn:r,includeEmptyValue:n}});function Sf(t){return{type:Zi,payload:{pathMethod:t}}}function Ec(t,e){return{type:bc,payload:{path:t,value:e,key:"consumes_value"}}}function Kg(t,e){return{type:bc,payload:{path:t,value:e,key:"produces_value"}}}const Gg=(t,e,r)=>({payload:{path:t,method:e,res:r},type:Su}),xf=(t,e,r)=>({payload:{path:t,method:e,req:r},type:kp}),Bh=(t,e,r)=>({payload:{path:t,method:e,req:r},type:vc}),h0=t=>({payload:t,type:Fo}),d0=t=>({fn:e,specActions:r,specSelectors:n,getConfigs:a,oas3Selectors:o})=>{let{pathName:p,method:c,operation:d}=t,{requestInterceptor:E,responseInterceptor:x}=a(),k=d.toJS();if(d&&d.get("parameters")&&d.get("parameters").filter((L=>L&&L.get("allowEmptyValue")===!0)).forEach((L=>{if(n.parameterInclusionSettingFor([p,c],L.get("name"),L.get("in"))){t.parameters=t.parameters||{};const V=Sa(L,t.parameters);(!V||V&&V.size===0)&&(t.parameters[L.get("name")]="")}})),t.contextUrl=Ao()(n.url()).toString(),k&&k.operationId?t.operationId=k.operationId:k&&p&&c&&(t.operationId=e.opId(k,p,c)),n.isOAS3()){const L=`${p}:${c}`;t.server=o.selectedServer(L)||o.selectedServer();const V=o.serverVariables({server:t.server,namespace:L}).toJS(),Q=o.serverVariables({server:t.server}).toJS();t.serverVariables=Object.keys(V).length?V:Q,t.requestContentType=o.requestContentType(p,c),t.responseContentType=o.responseContentType(p,c)||"*/*";const J=o.requestBodyValue(p,c),re=o.requestBodyInclusionSetting(p,c);J&&J.toJS?t.requestBody=J.map((me=>H.Map.isMap(me)?me.get("value"):me)).filter(((me,le)=>(Array.isArray(me)?me.length!==0:!Wa(me))||re.get(le))).toJS():t.requestBody=J}let P=Object.assign({},t);P=e.buildRequest(P),r.setRequest(t.pathName,t.method,P),t.requestInterceptor=async L=>{let V=await E.apply(void 0,[L]),Q=Object.assign({},V);return r.setMutatedRequest(t.pathName,t.method,Q),V},t.responseInterceptor=x;const R=Date.now();return e.execute(t).then((L=>{L.duration=Date.now()-R,r.setResponse(t.pathName,t.method,L)})).catch((L=>{L.message==="Failed to fetch"&&(L.name="",L.message=`**Failed to fetch.** +**Possible Reasons:** + - CORS + - Network Failure + - URL scheme must be "http" or "https" for CORS request.`),r.setResponse(t.pathName,t.method,{error:!0,err:L})}))},Yg=({path:t,method:e,...r}={})=>n=>{let{fn:{fetch:a},specSelectors:o,specActions:p}=n,c=o.specJsonWithResolvedSubtrees().toJS(),d=o.operationScheme(t,e),{requestContentType:E,responseContentType:x}=o.contentTypeValues([t,e]).toJS(),k=/xml/i.test(E),P=o.parameterValues([t,e],k).toJS();return p.executeRequest({...r,fetch:a,spec:c,pathName:t,method:e,parameters:P,requestContentType:E,scheme:d,responseContentType:x})};function Xg(t,e){return{type:Ap,payload:{path:t,method:e}}}function _u(t,e){return{type:Pl,payload:{path:t,method:e}}}function Ou(t,e,r){return{type:xu,payload:{scheme:t,path:e,method:r}}}const Qg={[wa]:(t,e)=>typeof e.payload=="string"?t.set("spec",e.payload):t,[fo]:(t,e)=>t.set("url",e.payload+""),[jl]:(t,e)=>t.set("json",nn(e.payload)),[Cp]:(t,e)=>t.setIn(["resolved"],nn(e.payload)),[Pi]:(t,e)=>{const{value:r,path:n}=e.payload;return t.setIn(["resolvedSubtrees",...n],nn(r))},[Kn]:(t,{payload:e})=>{let{path:r,paramName:n,paramIn:a,param:o,value:p,isXml:c}=e,d=o?sa(o):`${a}.${n}`;const E=c?"value_xml":"value";return t.setIn(["meta","paths",...r,"parameters",d,E],(0,H.fromJS)(p))},[yc]:(t,{payload:e})=>{let{pathMethod:r,paramName:n,paramIn:a,includeEmptyValue:o}=e;if(!n||!a)return console.warn("Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey."),t;const p=`${a}.${n}`;return t.setIn(["meta","paths",...r,"parameter_inclusions",p],o)},[Ds]:(t,{payload:{pathMethod:e,isOAS3:r}})=>{const n=li(t).getIn(["paths",...e]),a=Rh(t,e).toJS();return t.updateIn(["meta","paths",...e,"parameters"],(0,H.fromJS)({}),(o=>n.get("parameters",(0,H.List)()).reduce(((p,c)=>{const d=Sa(c,a),E=Mh(t,e,c.get("name"),c.get("in")),x=((k,P,{isOAS3:R=!1,bypassRequiredCheck:L=!1}={})=>{let V=k.get("required"),{schema:Q,parameterContentMediaType:J}=sr(k,{isOAS3:R});return Rr(P,Q,V,L,J,R)})(c,d,{bypassRequiredCheck:E,isOAS3:r});return p.setIn([sa(c),"errors"],(0,H.fromJS)(x))}),o)))},[Zi]:(t,{payload:{pathMethod:e}})=>t.updateIn(["meta","paths",...e,"parameters"],(0,H.fromJS)([]),(r=>r.map((n=>n.set("errors",(0,H.fromJS)([])))))),[Su]:(t,{payload:{res:e,path:r,method:n}})=>{let a;a=e.error?Object.assign({error:!0,name:e.err.name,message:e.err.message,statusCode:e.err.statusCode},e.err.response):e,a.headers=a.headers||{};let o=t.setIn(["responses",r,n],nn(a));return Qe.Blob&&a.data instanceof Qe.Blob&&(o=o.setIn(["responses",r,n,"text"],a.data)),o},[kp]:(t,{payload:{req:e,path:r,method:n}})=>t.setIn(["requests",r,n],nn(e)),[vc]:(t,{payload:{req:e,path:r,method:n}})=>t.setIn(["mutatedRequests",r,n],nn(e)),[bc]:(t,{payload:{path:e,value:r,key:n}})=>{let a=["paths",...e],o=["meta","paths",...e];return t.getIn(["json",...a])||t.getIn(["resolved",...a])||t.getIn(["resolvedSubtrees",...a])?t.setIn([...o,n],(0,H.fromJS)(r)):t},[Ap]:(t,{payload:{path:e,method:r}})=>t.deleteIn(["responses",e,r]),[Pl]:(t,{payload:{path:e,method:r}})=>t.deleteIn(["requests",e,r]),[xu]:(t,{payload:{scheme:e,path:r,method:n}})=>r&&n?t.setIn(["scheme",r,n],e):r||n?void 0:t.setIn(["scheme","_defaultScheme"],e)},Gn=(t,{specActions:e})=>(...r)=>{t(...r),e.parseToJson(...r)},f0=(t,{specActions:e})=>(...r)=>{t(...r),e.invalidateResolvedSubtreeCache();const[n]=r,a=Cn()(n,["paths"])||{};Object.keys(a).forEach((o=>{const p=Cn()(a,[o]);Ai()(p)&&p.$ref&&e.requestResolvedSubtree(["paths",o])})),e.requestResolvedSubtree(["components","securitySchemes"])},Zg=(t,{specActions:e})=>r=>(e.logRequest(r),t(r)),m0=(t,{specSelectors:e})=>r=>t(r,e.isOAS3()),ey=()=>({statePlugins:{spec:{wrapActions:{...z},reducers:{...Qg},actions:{...M},selectors:{...j}}}});var ty=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)a.hasOwnProperty(o)&&(n[o]=a[o])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),g0=Object.prototype.hasOwnProperty;function Bo(t,e){return g0.call(t,e)}function Pp(t){if(Array.isArray(t)){for(var e=new Array(t.length),r=0;r=48&&e<=57))return!1;r++}return!0}function Xo(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Np(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Tp(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var e=0,r=t.length;e0&&c[E-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&k===void 0&&(d[P]===void 0?k=c.slice(0,E).join("/"):E==x-1&&(k=e.path),k!==void 0&&R(e,0,t,k)),E++,Array.isArray(d)){if(P==="-")P=d.length;else{if(r&&!ku(P))throw new zn("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,e,t);ku(P)&&(P=~~P)}if(E>=x){if(r&&e.op==="add"&&P>d.length)throw new zn("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,e,t);if((p=Uh[e.op].call(e,d,P,t)).test===!1)throw new zn("Test operation failed","TEST_OPERATION_FAILED",o,e,t);return p}}else if(E>=x){if((p=Sc[e.op].call(e,d,P,t)).test===!1)throw new zn("Test operation failed","TEST_OPERATION_FAILED",o,e,t);return p}if(d=d[P],r&&E0)throw new zn('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",e,t,r);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new zn("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new zn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&Tp(t.value))throw new zn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",e,t,r);if(r){if(t.op=="add"){var a=t.path.split("/").length,o=n.split("/").length;if(a!==o+1&&a!==o)throw new zn("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",e,t,r)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==n)throw new zn("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",e,t,r)}else if(t.op==="move"||t.op==="copy"){var p=Ip([{op:"_get",path:t.from,value:void 0}],r);if(p&&p.name==="OPERATION_PATH_UNRESOLVABLE")throw new zn("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",e,t,r)}}}function Ip(t,e,r){try{if(!Array.isArray(t))throw new zn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(e)es(pa(e),pa(t),r||!0);else{r=r||Au;for(var n=0;n0&&(t.patches=[],t.callback&&t.callback(n)),n}function ju(t,e,r,n,a){if(e!==t){typeof e.toJSON=="function"&&(e=e.toJSON());for(var o=Pp(e),p=Pp(t),c=!1,d=p.length-1;d>=0;d--){var E=t[k=p[d]];if(!Bo(e,k)||e[k]===void 0&&E!==void 0&&Array.isArray(e)===!1)Array.isArray(t)===Array.isArray(e)?(a&&r.push({op:"test",path:n+"/"+Xo(k),value:pa(E)}),r.push({op:"remove",path:n+"/"+Xo(k)}),c=!0):(a&&r.push({op:"test",path:n,value:t}),r.push({op:"replace",path:n,value:e}));else{var x=e[k];typeof E=="object"&&E!=null&&typeof x=="object"&&x!=null&&Array.isArray(E)===Array.isArray(x)?ju(E,x,r,n+"/"+Xo(k),a):E!==x&&(a&&r.push({op:"test",path:n+"/"+Xo(k),value:pa(E)}),r.push({op:"replace",path:n+"/"+Xo(k),value:pa(x)}))}}if(c||o.length!=p.length)for(d=0;da!==void 0&&n?n[a]:n),e)},applyPatch:function(e,r,n){if(n=n||{},(r={...r,path:r.path&&$(r.path)}).op==="merge"){const a=rt(e,r.path);Object.assign(a,r.value),es(e,[ee(r.path,a)])}else if(r.op==="mergeDeep"){const a=rt(e,r.path),o=b()(a,r.value,{customMerge:p=>{if(p==="enum")return(c,d)=>Array.isArray(c)&&Array.isArray(d)?[...new Set([...c,...d])]:b()(c,d)}});e=es(e,[ee(r.path,o)]).newDocument}else if(r.op==="add"&&r.path===""&<(r.value))es(e,Object.keys(r.value).reduce(((a,o)=>(a.push({op:"add",path:`/${$(o)}`,value:r.value[o]}),a)),[]));else if(r.op==="replace"&&r.path===""){let{value:a}=r;n.allowMetaPatches&&r.meta&&Ze(r)&&(Array.isArray(r.value)||lt(r.value))&&(a={...a,...r.meta}),e=a}else if(es(e,[r]),n.allowMetaPatches&&r.meta&&Ze(r)&&(Array.isArray(r.value)||lt(r.value))){const a={...rt(e,r.path),...r.meta};es(e,[ee(r.path,a)])}return e},parentPathMatch:function(e,r){if(!Array.isArray(r))return!1;for(let n=0,a=r.length;n(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:t}function ee(t,e,r){return{op:"replace",path:t,value:e,meta:r}}function ue(t,e,r){return st(ot(t.filter(Ze).map((n=>e(n.value,r,n.path)))||[]))}function Ce(t,e,r){return r=r||[],Array.isArray(t)?t.map(((n,a)=>Ce(n,e,r.concat(a)))):lt(t)?Object.keys(t).map((n=>Ce(t[n],e,r.concat(n)))):e(t,r[r.length-1],r)}function Me(t,e,r){let n=[];if((r=r||[]).length>0){const a=e(t,r[r.length-1],r);a&&(n=n.concat(a))}if(Array.isArray(t)){const a=t.map(((o,p)=>Me(o,e,r.concat(p))));a&&(n=n.concat(a))}else if(lt(t)){const a=Object.keys(t).map((o=>Me(t[o],e,r.concat(o))));a&&(n=n.concat(a))}return n=ot(n),n}function Ue(t){return Array.isArray(t)?t:[t]}function ot(t){return[].concat(...t.map((e=>Array.isArray(e)?ot(e):e)))}function st(t){return t.filter((e=>e!==void 0))}function lt(t){return t&&typeof t=="object"}function vt(t){return t&&typeof t=="function"}function Lt(t){if(Le(t)){const{op:e}=t;return e==="add"||e==="remove"||e==="replace"}return!1}function xt(t){return Lt(t)||Le(t)&&t.type==="mutation"}function Ze(t){return xt(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Le(t){return t&&typeof t=="object"}function rt(t,e){try{return Ml(t,e)}catch(r){return console.error(r),{}}}var wt=Be(48675);const nr=class extends wt{constructor(e,r,n){if(super(e,r,n),this.name=this.constructor.name,typeof r=="string"&&(this.message=r),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack,n!=null&&typeof n=="object"&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:a}=n;this.cause=a,a instanceof Error&&"stack"in a&&(this.stack=`${this.stack} +CAUSE: ${a.stack}`)}}};class Fr extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(nr,e)}constructor(e,r){if(super(e,r),this.name=this.constructor.name,typeof e=="string"&&(this.message=e),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,r!=null&&typeof r=="object"&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack} +CAUSE: ${n.stack}`)}}}const Mt=Fr,xr=class extends Mt{constructor(e,r){if(super(e,r),r!=null&&typeof r=="object"){const{cause:n,...a}=r;Object.assign(this,a)}}};function Qr(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(r){return e.apply(this,arguments)};case 2:return function(r,n){return e.apply(this,arguments)};case 3:return function(r,n,a){return e.apply(this,arguments)};case 4:return function(r,n,a,o){return e.apply(this,arguments)};case 5:return function(r,n,a,o,p){return e.apply(this,arguments)};case 6:return function(r,n,a,o,p,c){return e.apply(this,arguments)};case 7:return function(r,n,a,o,p,c,d){return e.apply(this,arguments)};case 8:return function(r,n,a,o,p,c,d,E){return e.apply(this,arguments)};case 9:return function(r,n,a,o,p,c,d,E,x){return e.apply(this,arguments)};case 10:return function(r,n,a,o,p,c,d,E,x,k){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function sn(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function wr(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function _r(t){return function e(r){return arguments.length===0||wr(r)?e:t.apply(this,arguments)}}function Tr(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return wr(r)?e:_r((function(a){return t(r,a)}));default:return wr(r)&&wr(n)?e:wr(r)?_r((function(a){return t(a,n)})):wr(n)?_r((function(a){return t(r,a)})):t(r,n)}}}function ha(t){return function e(r,n,a){switch(arguments.length){case 0:return e;case 1:return wr(r)?e:Tr((function(o,p){return t(r,o,p)}));case 2:return wr(r)&&wr(n)?e:wr(r)?Tr((function(o,p){return t(o,n,p)})):wr(n)?Tr((function(o,p){return t(r,o,p)})):_r((function(o){return t(r,n,o)}));default:return wr(r)&&wr(n)&&wr(a)?e:wr(r)&&wr(n)?Tr((function(o,p){return t(o,p,a)})):wr(r)&&wr(a)?Tr((function(o,p){return t(o,n,p)})):wr(n)&&wr(a)?Tr((function(o,p){return t(r,o,p)})):wr(r)?_r((function(o){return t(o,n,a)})):wr(n)?_r((function(o){return t(r,o,a)})):wr(a)?_r((function(o){return t(r,n,o)})):t(r,n,a)}}}const Dl=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Of(t){return Object.prototype.toString.call(t)==="[object String]"}const iy=_r((function(e){return!!Dl(e)||!!e&&typeof e=="object"&&!Of(e)&&(e.length===0||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}));var sy=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _c(t,e,r){return function(a,o,p){if(iy(p))return t(a,o,p);if(p==null)return o;if(typeof p["fantasy-land/reduce"]=="function")return e(a,o,p,"fantasy-land/reduce");if(p[sy]!=null)return r(a,o,p[sy]());if(typeof p.next=="function")return r(a,o,p);if(typeof p.reduce=="function")return e(a,o,p,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ly(t,e,r){for(var n=0,a=r.length;n=arguments.length)?d=e[p]:(d=arguments[a],a+=1),n[p]=d,wr(d)?c=!0:o-=1,p+=1}return!c&&o<=0?r.apply(this,n):Qr(Math.max(0,o),w0(t,n,r))}}const ja=Tr((function(e,r){return e===1?_r(r):Qr(e,w0(e,[],r))})),E0=_r((function(e){return ja(e.length,e)}));function S0(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function nE(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function hy(t,e,r){for(var n=0,a=r.length;n=0;)ts(r=iE[n],e)&&!mA(a,r)&&(a[a.length]=r),n-=1;return a}):(function(e){return Object(e)!==e?[]:Object.keys(e)}));const Rp=gA,Fs=_r((function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function lE(t,e,r,n){var a=nE(t);function o(p,c){return x0(p,c,r.slice(),n.slice())}return!hy((function(p,c){return!hy(o,c,p)}),nE(e),a)}function x0(t,e,r,n){if(Cf(t,e))return!0;var a=Fs(t);if(a!==Fs(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&(function(k){var P=String(k).match(/^function (\w*)/);return P==null?"":P[1]})(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!Cf(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!Cf(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var o=r.length-1;o>=0;){if(r[o]===t)return n[o]===e;o-=1}switch(a){case"Map":return t.size===e.size&&lE(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&lE(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var p=Rp(t);if(p.length!==Rp(e).length)return!1;var c=r.concat([t]),d=n.concat([e]);for(o=p.length-1;o>=0;){var E=p[o];if(!ts(E,e)||!x0(e[E],t[E],c,d))return!1;o-=1}return!0}const Pu=Tr((function(e,r){return x0(e,r,[],[])}));function dy(t,e){return(function(n,a,o){var p,c;if(typeof n.indexOf=="function")switch(typeof a){case"number":if(a===0){for(p=1/a;o=0}function fy(t,e){for(var r=0,n=e.length,a=Array(n);r":uE(p,c)},n=function(o,p){return fy((function(c){return _0(c)+": "+r(o[c])}),p.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+fy(r,t).join(", ")+"))";case"[object Array]":return"["+fy(r,t).concat(n(t,SA((function(o){return/^\d+$/.test(o)}),Rp(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):_0(yA(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+r(t.valueOf())+")":_0(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+n(t,Rp(t)).join(", ")+"}"}}const Tf=_r((function(e){return uE(e,[])})),O0=Tr((function(e,r){return ja(e+1,(function(){var n=arguments[e];if(n!=null&&S0(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Tf(n)+' does not have a method named "'+r+'"')}))})),pE=O0(1,"split");function xA(t,e){for(var r=e.length-1;r>=0&&t(e[r]);)r-=1;return kf(0,r+1,e)}var _A=(function(){function t(e,r){this.f=e,this.retained=[],this.xf=r}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.retain(e,r):this.flush(e,r)},t.prototype.flush=function(e,r){return e=v0(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,r)},t.prototype.retain=function(e,r){return this.retained.push(r),e},t})();function OA(t){return function(e){return new _A(t,e)}}const kA=Tr(Nu([],OA,xA)),hE=O0(1,"join"),gy=_r((function(e){return ja(e.length,(function(r,n){var a=Array.prototype.slice.call(arguments,0);return a[0]=n,a[1]=r,e.apply(this,a)}))}))(Tr(dy)),AA=E0((function(t,e){return mo(pE(""),kA(gy(t)),hE(""))(e)}));function CA(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function jA(t,e,r,n){return r[n](t,e)}const PA=_c(Pf,jA,CA);var NA=(function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=Nf,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t})();const yy=Tr(Nu(["fantasy-land/map","map"],(function(e){return function(r){return new NA(e,r)}}),(function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return ja(r.length,(function(){return e.call(this,r.apply(this,arguments))}));case"[object Object]":return Pf((function(n,a){return n[a]=e(r[a]),n}),{},Rp(r));default:return fy(e,r)}}))),TA=Tr((function(e,r){return typeof r["fantasy-land/ap"]=="function"?r["fantasy-land/ap"](e):typeof e.ap=="function"?e.ap(r):typeof e=="function"?function(n){return e(n)(r(n))}:PA((function(n,a){return(function(p,c){var d;c=c||[];var E=(p=p||[]).length,x=c.length,k=[];for(d=0;dE!=E>d)return E>d?E:d}var a=n(e,r);if(a!==void 0)return a;var o=n(typeof e,typeof r);if(o!==void 0)return o===typeof e?e:r;var p=Tf(e),c=n(p,Tf(r));return c!==void 0&&c===p?e:r}));var MA=Tr((function(e,r){return yy(Af(e),r)}));const mE=MA,RA=_r((function(e){return ja(Vh(fE,0,mE("length",e)),(function(){for(var r=0,n=e.length;r{var t,e;return/^win/.test((t=(e=globalThis.process)===null||e===void 0?void 0:e.platform)!==null&&t!==void 0?t:"")},C0=t=>{try{const e=new URL(t);return AA(":",e.protocol)}catch{return}},bE=(mo(C0,dE),t=>{if(globalThis.window!==void 0)return!1;const e=C0(t);return Iu(e)||e==="file"||/^[a-zA-Z]$/.test(e)}),j0=t=>{const e=C0(t);return e==="http"||e==="https"},wE=(t,e)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=uy(!1,"keepFileProtocol",e),a=uy(A0,"isWindows",e);let o=decodeURI(t);for(let c=0;c{const e=t.indexOf("#");return e!==-1?t.substring(e):"#"},In=t=>{const e=t.indexOf("#");let r=t;return e>=0&&(r=t.substring(0,e)),r},P0=()=>{var t,e;if(globalThis.window!==void 0)return In(globalThis.location.href);const r=(t=(e=globalThis.process)===null||e===void 0?void 0:e.cwd())!==null&&t!==void 0?t:"/",n=py(r);return["/","\\"].includes(n)?r:r+(A0()?"\\":"/")},go=(t,e)=>{const r=new URL(e,new URL(t,"resolve://"));if(r.protocol==="resolve:"){const{pathname:n,search:a,hash:o}=r;return n+a+o}return r.toString()},by=t=>{if(bE(t))return(e=>{const r=[/\?/g,"%3F",/#/g,"%23"];let n=e;A0()&&(n=n.replace(/\\/g,"/")),n=encodeURI(n);for(let a=0;abE(t)?wE(t):decodeURI(t);var JA=Be(8628),Yn=Be.n(JA);const SE=t=>Object.prototype.toString.call(t),N0=t=>ArrayBuffer.isView(t)&&!(t instanceof DataView),xE=Array.isArray,_E=t=>{const e=SE(t);return e==="[object Boolean]"||e==="[object Number]"||e==="[object String]"},WA=Object.getOwnPropertyDescriptor,HA=Object.prototype.propertyIsEnumerable,KA=Object.getOwnPropertySymbols,wy=Object.prototype.hasOwnProperty,OE=t=>t==="__proto__"||t==="constructor"||t==="prototype";function Ey(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0}):t[e]=r}function kE(t,e){if(e!==void 0&&t>e)throw new RangeError(`neotraverse: maximum traversal depth (${e}) exceeded`)}function T0(t){const e=Object.keys(t),r=KA(t);for(let n=0;nnew Ll(t,e);$l.get=(t,e,r)=>new Ll(t,r).get(e),$l.set=(t,e,r,n)=>new Ll(t,n).set(e,r),$l.has=(t,e,r)=>new Ll(t,r).has(e),$l.map=(t,e,r)=>new Ll(t,r).map(e),$l.forEach=(t,e,r)=>new Ll(t,r).forEach(e),$l.reduce=(t,e,r,n)=>new Ll(t,n).reduce(e,r),$l.paths=(t,e)=>new Ll(t,e).paths(),$l.nodes=(t,e)=>new Ll(t,e).nodes(),$l.clone=(t,e)=>new Ll(t,e).clone();const PE="application/json, application/yaml",Sy="https://swagger.io",YA=Object.freeze({url:"/"}),NE=3e3,XA=["properties"],QA=["properties"],ZA=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],eC=["schema/example","items/example"];function TE(t){const e=t[t.length-1],r=t[t.length-2],n=t.join("/");return XA.indexOf(e)>-1&&QA.indexOf(r)===-1||ZA.indexOf(n)>-1||eC.some((a=>n.indexOf(a)>-1))}function I0(t,e){const[r,n]=t.split("#"),a=e??"",o=r??"";let p;if(j0(a))p=go(a,o);else{const c=go(Sy,a),d=go(c,o).replace(Sy,"");p=o.startsWith("/")?d:d.substring(1)}return n?`${p}#${n}`:p}const tC=/^([a-z]+:\/\/|\/\/)/i;class Hh extends xr{}const Oc={},IE=new WeakMap,rC=[t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples",t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example",t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value",t=>t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example",t=>t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value",t=>t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"],nC={key:"$ref",plugin:(t,e,r,n)=>{const a=n.getInstance(),o=r.slice(0,-1);if(TE(o)||(V=>rC.some((Q=>Q(V))))(o))return;const{baseDoc:p}=n.getContext(r);if(typeof t!="string")return new Hh("$ref: must be a string (JSON-Ref)",{$ref:t,baseDoc:p,fullPath:r});const c=FE(t),d=c[0],E=c[1]||"";let x,k,P;try{x=p||d?DE(d,p):null}catch(V){return M0(V,{pointer:E,$ref:t,basePath:x,fullPath:r})}if((function(Q,J,re,me){let le=IE.get(me);le||(le={},IE.set(me,le));const ve=(function(je){return je.length===0?"":`/${je.map(qE).join("/")}`})(re),be=`${J||""}#${Q}`,ce=ve.replace(/allOf\/\d+\/?/g,""),_e=me.contextTree.get([]).baseDoc;if(J===_e&&F0(ce,Q))return!0;let Ae="";if(re.some((Oe=>(Ae=`${Ae}/${qE(Oe)}`,le[Ae]&&le[Ae].some((je=>F0(je,be)||F0(be,je)))))))return!0;le[ce]=(le[ce]||[]).concat(be)})(E,x,o,n)&&!a.useCircularStructures){const V=I0(t,x);return t===V?null:C.replace(r,V)}if(x==null?(P=D0(E),k=n.get(P),k===void 0&&(k=new Hh(`Could not resolve reference: ${t}`,{pointer:E,$ref:t,baseDoc:p,fullPath:r}))):(k=LE(x,E),k=k.__value!=null?k.__value:k.catch((V=>{throw M0(V,{pointer:E,$ref:t,baseDoc:p,fullPath:r})}))),k instanceof Error)return[C.remove(r),k];const R=I0(t,x),L=C.replace(o,k,{$$ref:R});if(x&&x!==p)return[L,C.context(o,{baseDoc:x})];try{if(!(function(Q,J){const re=[Q];return J.path.reduce(((le,ve)=>(re.push(le[ve]),le[ve])),Q),me(J.value);function me(le){return C.isObject(le)&&(re.indexOf(le)>=0||Object.keys(le).some((ve=>me(le[ve]))))}})(n.state,L)||a.useCircularStructures)return L}catch{return null}}},ME=Object.assign(nC,{docCache:Oc,absoluteify:DE,clearCache:function(e){e!==void 0?delete Oc[e]:Object.keys(Oc).forEach((r=>{delete Oc[r]}))},JSONRefError:Hh,wrapError:M0,getDoc:$E,split:FE,extractFromDoc:LE,fetchJSON:function(e){return fetch(e,{headers:{Accept:PE},loadSpec:!0}).then((r=>r.text())).then((r=>Pe.load(r)))},extract:R0,jsonPointerToArray:D0,unescapeJsonPointerToken:BE}),RE=ME;function DE(t,e){if(!tC.test(t)){if(!e)throw new Hh(`Tried to resolve a relative URL, without having a basePath. path: '${t}' basePath: '${e}'`);return go(e,t)}return t}function M0(t,e){let r;return r=t&&t.response&&t.response.body?`${t.response.body.code} ${t.response.body.message}`:t.message,new Hh(`Could not resolve reference: ${r}`,{...e,cause:t})}function FE(t){return(t+"").split("#")}function LE(t,e){const r=Oc[t];if(r&&!C.isPromise(r))try{const n=R0(e,r);return Object.assign(Promise.resolve(n),{__value:n})}catch(n){return Promise.reject(n)}return $E(t).then((n=>R0(e,n)))}function $E(t){const e=Oc[t];return e?C.isPromise(e)?e:Promise.resolve(e):(Oc[t]=ME.fetchJSON(t).then((r=>(Oc[t]=r,r))),Oc[t])}function R0(t,e){const r=D0(t);if(r.length<1)return e;const n=C.getIn(e,r);if(n===void 0)throw new Hh(`Could not resolve pointer: ${t} does not exist in document`,{pointer:t});return n}function D0(t){if(typeof t!="string")throw new TypeError("Expected a string, got a "+typeof t);return t[0]==="/"&&(t=t.substr(1)),t===""?[]:t.split("/").map(BE)}function BE(t){return typeof t!="string"?t:new URLSearchParams(`=${t.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function qE(t){return new URLSearchParams([["",t.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const aC=t=>!t||t==="/"||t==="#";function F0(t,e){if(aC(e))return!0;const r=t.charAt(e.length),n=e.slice(-1);return t.indexOf(e)===0&&(!r||r==="/"||r==="#")&&n!=="#"}const oC={key:"allOf",plugin:(t,e,r,n,a)=>{if(a.meta&&a.meta.$$ref)return;const o=r.slice(0,-1);if(TE(o))return;if(!Array.isArray(t)){const E=new TypeError("allOf must be an array");return E.fullPath=r,E}let p=!1,c=a.value;if(o.forEach((E=>{c&&(c=c[E])})),c={...c},Object.keys(c).length===0)return;delete c.allOf;const d=[];return d.push(n.replace(o,{})),t.forEach(((E,x)=>{if(!n.isObject(E)){if(p)return null;p=!0;const P=new TypeError("Elements in allOf must be objects");return P.fullPath=r,d.push(P)}d.push(n.mergeDeep(o,E));const k=(function(R,L,{specmap:V,getBaseUrlForNodePath:Q=re=>V.getContext([...L,...re]).baseDoc,targetKeys:J=["$ref","$$ref"]}={}){const re=[];return $l(R).forEach((function(){if(Yn()(J).call(J,this.key)&&typeof this.node=="string"){const le=this.path,ve=L.concat(this.path),be=I0(this.node,Q(le));re.push(V.replace(ve,be))}})),re})(E,r.slice(0,-1),{getBaseUrlForNodePath:P=>n.getContext([...r,x,...P]).baseDoc,specmap:n});d.push(...k)})),c.example&&d.push(n.remove([].concat(o,"example"))),d.push(n.mergeDeep(o,c)),c.$$ref||d.push(n.remove([].concat(o,"$$ref"))),d}},iC={key:"parameters",plugin:(t,e,r,n)=>{if(Array.isArray(t)&&t.length){const a=Object.assign([],t),o=r.slice(0,-1),p={...C.getIn(n.spec,o)};for(let c=0;c{const a={...t};for(const o in t)try{a[o].default=n.modelPropertyMacro(a[o])}catch(p){const c=new Error(p);return c.fullPath=r,c}return C.replace(r,a)}};class lC{constructor(e){this.root=L0(e||{})}set(e,r){const n=this.getParent(e,!0);if(!n)return void xy(this.root,r,null);const a=e[e.length-1],{children:o}=n;o[a]?xy(o[a],r,n):o[a]=L0(r,n)}get(e){if((e=e||[]).length<1)return this.root.value;let r,n,a=this.root;for(let o=0;o{if(!n)return n;const{children:o}=n;return!o[a]&&r&&(o[a]=L0(null,n)),o[a]}),this.root)}}function L0(t,e){return xy({children:{}},t,e)}function xy(t,e,r){return t.value=e||{},t.protoValue=r?{...r.protoValue,...t.value}:t.value,Object.keys(t.children).forEach((n=>{const a=t.children[n];t.children[n]=xy(a,a.value,t)})),t}const UE=()=>{};class cC{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,r){return e.filter(r)}constructor(e){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new lC,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),C,{getInstance:()=>this}),allowMetaPatches:!1},e),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(C.isFunction),this.patches.push(C.add([],this.spec)),this.patches.push(C.context([],this.context)),this.updatePatches(this.patches)}debug(e,...r){this.debugLevel===e&&console.log(...r)}verbose(e,...r){this.debugLevel==="verbose"&&console.log(`[${e}] `,...r)}wrapPlugin(e,r){const{pathDiscriminator:n}=this;let a,o=null;return e[this.pluginProp]?(o=e,a=e[this.pluginProp]):C.isFunction(e)?a=e:C.isObject(e)&&(a=(function(c){const d=(E,x)=>!Array.isArray(E)||E.every(((k,P)=>k===x[P]));return function*(x,k){const P={};for(const[L,V]of x.filter(C.isAdditiveMutation).entries()){if(!(Lthis.getMutationsForPlugin(e).length>0))}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map((e=>e.value)))}getPluginHistory(e){const r=this.constructor.getPluginName(e);return this.pluginHistory[r]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){const r=this.getPluginHistory(e);return r&&r[r.length-1]||{}}getPluginMutationIndex(e){const r=this.getPluginHistoryTip(e).mutationIndex;return typeof r!="number"?-1:r}updatePluginHistory(e,r){const n=this.constructor.getPluginName(e);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(r)}updatePatches(e){C.normalizeArray(e).forEach((r=>{if(r instanceof Error)this.errors.push(r);else try{if(!C.isObject(r))return void this.debug("updatePatches","Got a non-object patch",r);if(this.showDebug&&this.allPatches.push(r),C.isPromise(r.value))return this.promisedPatches.push(r),void this.promisedPatchThen(r);if(C.isContextPatch(r))return void this.setContext(r.path,r.value);C.isMutation(r)&&this.updateMutations(r)}catch(n){console.error(n),this.errors.push(n)}}))}updateMutations(e){typeof e.value=="object"&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});const r=C.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});r&&(this.mutations.push(e),this.state=r)}removePromisedPatch(e){const r=this.promisedPatches.indexOf(e);r<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(r,1)}promisedPatchThen(e){return e.value=e.value.then((r=>{const n={...e,value:r};this.removePromisedPatch(e),this.updatePatches(n)})).catch((r=>{this.removePromisedPatch(e),this.updatePatches(r)})),e.value}getMutations(e,r){return e=e||0,typeof r!="number"&&(r=this.mutations.length),this.mutations.slice(e,r)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const r=this.getPluginMutationIndex(e);return this.getMutations(r+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return C.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,r){return this.contextTree.set(e,r)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,r=this.nextPlugin();if(!r){const a=this.nextPromisedPatch();if(a)return a.then((()=>this.dispatch())).catch((()=>this.dispatch()));const o={spec:this.state,errors:this.errors};return this.showDebug&&(o.patches=this.allPatches),Promise.resolve(o)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(r,(e.pluginCount.get(r)||0)+1),e.pluginCount[r]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(r!==this.currentPlugin&&this.promisedPatches.length){const a=this.promisedPatches.map((o=>o.value));return Promise.all(a.map((o=>o.then(UE,UE)))).then((()=>this.dispatch()))}return(function(){e.currentPlugin=r;const o=e.getCurrentMutations(),p=e.mutations.length-1;try{if(r.isGenerator)for(const c of r(o,e.getLib()))n(c);else n(r(o,e.getLib()))}catch(c){console.error(c),n([Object.assign(Object.create(c),{plugin:r})])}finally{e.updatePluginHistory(r,{mutationIndex:p})}return e.dispatch()})();function n(a){a&&(a=C.fullyNormalizeArray(a),e.updatePatches(a,r))}}}const Kh={refs:RE,allOf:oC,parameters:iC,properties:sC};function zE(t,e={}){const{requestInterceptor:r,responseInterceptor:n}=e,a=t.withCredentials?"include":"same-origin";return o=>t({url:o,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:PE},credentials:a}).then((p=>p.body))}function $0(t,e){return e||typeof navigator>"u"||(e=navigator),e&&e.product==="ReactNative"?!(!t||typeof t!="object"||typeof t.uri!="string"):typeof File<"u"&&t instanceof File||typeof Blob<"u"&&t instanceof Blob||!!ArrayBuffer.isView(t)||t!==null&&typeof t=="object"&&typeof t.pipe=="function"}function VE(t,e){return Array.isArray(t)&&t.some((r=>$0(r,e)))}class B0 extends File{constructor(e,r="",n={}){super([e],r,n),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const uC=t=>":/?#[]@!$&'()*+,;=".indexOf(t)>-1,pC=t=>/^[a-z0-9\-._~]+$/i.test(t);function JE(t,e="reserved"){return[...t].map((r=>{if(pC(r)||uC(r)&&e==="unsafe")return r;const n=new TextEncoder;return Array.from(n.encode(r)).map((a=>`0${a.toString(16).toUpperCase()}`.slice(-2))).map((a=>`%${a}`)).join("")})).join("")}function q0(t){const{value:e}=t;return Array.isArray(e)?(function({key:n,value:a,style:o,explode:p,escape:c}){if(o==="simple")return a.map((d=>yo(d,c))).join(",");if(o==="label")return`.${a.map((d=>yo(d,c))).join(".")}`;if(o==="matrix")return a.map((d=>yo(d,c))).reduce(((d,E)=>!d||p?`${d||""};${n}=${E}`:`${d},${E}`),"");if(o==="form"){const d=p?`&${n}=`:",";return a.map((E=>yo(E,c))).join(d)}if(o==="spaceDelimited"){const d=p?`${n}=`:"";return a.map((E=>yo(E,c))).join(` ${d}`)}if(o==="pipeDelimited"){const d=p?`${n}=`:"";return a.map((E=>yo(E,c))).join(`|${d}`)}})(t):typeof e=="object"?(function({key:n,value:a,style:o,explode:p,escape:c}){const d=Object.keys(a);if(o==="simple")return d.reduce(((E,x)=>{const k=yo(a[x],c);return`${E?`${E},`:""}${x}${p?"=":","}${k}`}),"");if(o==="label")return d.reduce(((E,x)=>{const k=yo(a[x],c);return`${E?`${E}.`:"."}${x}${p?"=":"."}${k}`}),"");if(o==="matrix"&&p)return d.reduce(((E,x)=>`${E?`${E};`:";"}${x}=${yo(a[x],c)}`),"");if(o==="matrix")return d.reduce(((E,x)=>{const k=yo(a[x],c);return`${E?`${E},`:`;${n}=`}${x},${k}`}),"");if(o==="form")return d.reduce(((E,x)=>{const k=yo(a[x],c);return`${E?`${E}${p?"&":","}`:""}${x}${p?"=":","}${k}`}),"")})(t):(function({key:n,value:a,style:o,escape:p}){if(o==="simple")return yo(a,p);if(o==="label")return`.${yo(a,p)}`;if(o==="matrix")return`;${n}=${yo(a,p)}`;if(o==="form"||o==="deepObject")return yo(a,p)})(t)}function yo(t,e=!1){return Array.isArray(t)||t!==null&&typeof t=="object"?t=JSON.stringify(t):typeof t!="number"&&typeof t!="boolean"||(t=String(t)),e&&typeof t=="string"&&t.length>0?JE(t,e):t??""}const hC={form:",",spaceDelimited:"%20",pipeDelimited:"|"},dC={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function WE(t,e,r=!1){const{collectionFormat:n,allowEmptyValue:a,serializationOption:o,encoding:p}=e,c=typeof e!="object"||Array.isArray(e)?e:e.value,d=r?x=>x.toString():x=>encodeURIComponent(x),E=d(t);if(c===void 0&&a)return[[E,""]];if($0(c)||VE(c))return[[E,c]];if(o)return HE(t,c,r,o);if(p){if([typeof p.style,typeof p.explode,typeof p.allowReserved].some((x=>x!=="undefined"))){const{style:x,explode:k,allowReserved:P}=p;return HE(t,c,r,{style:x,explode:k,allowReserved:P})}if(typeof p.contentType=="string"){if(p.contentType.startsWith("application/json")){const k=d(typeof c=="string"?c:JSON.stringify(c));return[[E,new B0(k,"blob",{type:p.contentType})]]}const x=d(String(c));return[[E,new B0(x,"blob",{type:p.contentType})]]}return typeof c!="object"?[[E,d(c)]]:Array.isArray(c)&&c.every((x=>typeof x!="object"))?[[E,c.map(d).join(",")]]:[[E,d(JSON.stringify(c))]]}return typeof c!="object"?[[E,d(c)]]:Array.isArray(c)?n==="multi"?[[E,c.map(d)]]:[[E,c.map(d).join(dC[n||"csv"])]]:[[E,""]]}function HE(t,e,r,n){const a=n.style||"form",o=n.explode===void 0?a==="form":n.explode,p=!r&&(n&&n.allowReserved?"unsafe":"reserved"),c=E=>yo(E,p),d=r?E=>E:E=>c(E);return typeof e!="object"?[[d(t),c(e)]]:Array.isArray(e)?o?[[d(t),e.map(c)]]:[[d(t),e.map(c).join(hC[a])]]:a==="deepObject"?Object.keys(e).map((E=>[d(`${t}[${E}]`),c(e[E])])):o?Object.keys(e).map((E=>[d(E),c(e[E])])):[[d(t),Object.keys(e).map((E=>[`${d(E)},${c(e[E])}`])).join(",")]]}function KE(t){return((e,{encode:r=!0}={})=>{const n=(p,c,d)=>(Array.isArray(d)?d.reduce(((E,x)=>n(p,c,x)),p):d instanceof Date?p.append(c,d.toISOString()):typeof d=="object"?Object.entries(d).reduce(((E,[x,k])=>n(p,`${c}[${x}]`,k)),p):p.append(c,d),p),a=Object.entries(e).reduce(((p,[c,d])=>n(p,c,d)),new URLSearchParams),o=String(a);return r?o:decodeURIComponent(o)})(Object.keys(t).reduce(((e,r)=>{for(const[n,a]of WE(r,t[r]))e[n]=a instanceof B0?a.valueOf():a;return e}),{}),{encode:!1})}function U0(t={}){const{url:e="",query:r,form:n}=t;if(n){const a=Object.keys(n).some((p=>{const{value:c}=n[p];return $0(c)||VE(c)})),o=t.headers["content-type"]||t.headers["Content-Type"];if(a||/multipart\/form-data/i.test(o)){const p=(function(d){return Object.entries(d).reduce(((E,[x,k])=>{for(const[P,R]of WE(x,k,!0))if(Array.isArray(R))for(const L of R)if(ArrayBuffer.isView(L)){const V=new Blob([L]);E.append(P,V)}else E.append(P,L);else if(ArrayBuffer.isView(R)){const L=new Blob([R]);E.append(P,L)}else E.append(P,R);return E}),new FormData)})(t.form);t.formdata=p,t.body=p}else t.body=KE(n);delete t.form}if(r){const[a,o]=e.split("?");let p="";if(o){const d=new URLSearchParams(o);Object.keys(r).forEach((E=>d.delete(E))),p=String(d)}const c=((...d)=>{const E=d.filter((x=>x)).join("&");return E?`?${E}`:""})(p,KE(r));t.url=a+c,delete t.query}return t}function fC(t={}){return typeof t.entries!="function"?{}:Array.from(t.entries()).reduce(((e,[r,n])=>(e[r]=(function(o){return Yn()(o).call(o,", ")?o.split(", "):o})(n),e)),{})}function GE(t,e,{loadSpec:r=!1}={}){const n={ok:t.ok,url:t.url||e,status:t.status,statusText:t.statusText,headers:fC(t.headers)},a=n.headers["content-type"],o=r||((p="")=>/(json|xml|yaml|text)\b/.test(p))(a);return(o?t.text:t.blob||t.buffer).call(t).then((p=>{if(n.text=p,n.data=p,o)try{const c=(function(E,x){if(x){if(x.indexOf("application/json")===0||x.indexOf("+json")>0)return JSON.parse(E);if(x.indexOf("application/xml")===0||x.indexOf("+xml")>0)return E}return Pe.load(E)})(p,a);n.body=c,n.obj=c}catch(c){n.parseError=c}return n}))}async function Mf(t,e={}){typeof t=="object"&&(t=(e=t).url),e.headers=e.headers||{},(e=U0(e)).headers&&Object.keys(e.headers).forEach((a=>{const o=e.headers[a];typeof o=="string"&&(e.headers[a]=o.replace(/\n+/g," "))})),e.requestInterceptor&&(e=await e.requestInterceptor(e)||e);const r=e.headers["content-type"]||e.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&(delete e.headers["content-type"],delete e.headers["Content-Type"]);try{n=await(e.userFetch||fetch)(e.url,e),n=await GE(n,t,e),e.responseInterceptor&&(n=await e.responseInterceptor(n)||n)}catch(a){if(!n)throw a;const o=new Error(n.statusText||`response status is ${n.status}`);throw o.status=n.status,o.statusCode=n.status,o.responseError=a,o}if(!n.ok){const a=new Error(n.statusText||`response status is ${n.status}`);throw a.status=n.status,a.statusCode=n.status,a.response=n,a}return n}const z0=t=>{const{baseDoc:e,url:r}=t,n=e??r??"";return typeof globalThis.document?.baseURI=="string"?String(new URL(n,globalThis.document.baseURI)):n},YE=t=>{const{fetch:e,http:r}=t;return e||r||Mf};async function V0(t){const{spec:e,mode:r,allowMetaPatches:n=!0,pathDiscriminator:a,modelPropertyMacro:o,parameterMacro:p,requestInterceptor:c,responseInterceptor:d,skipNormalization:E=!1,useCircularStructures:x,strategies:k}=t,P=z0(t),R=YE(t),L=k.find((V=>V.match(e)));return(async function(Q){P&&(Kh.refs.docCache[P]=Q),Kh.refs.fetchJSON=zE(R,{requestInterceptor:c,responseInterceptor:d});const J=[Kh.refs];typeof p=="function"&&J.push(Kh.parameters),typeof o=="function"&&J.push(Kh.properties),r!=="strict"&&J.push(Kh.allOf);const re=await(function(le){return new cC(le).dispatch()})({spec:Q,context:{baseDoc:P},plugins:J,allowMetaPatches:n,pathDiscriminator:a,parameterMacro:p,modelPropertyMacro:o,useCircularStructures:x});return E||(re.spec=L.normalize(re.spec)),re})(e)}function J0(t,e){for(var r=e,n=0;nt.replace(/\W/gi,"_"),EC=new Set(["connect","delete","get","head","options","patch","post","put","query","trace"]);function Df(t,e,r="",{v2OperationIdCompatibilityMode:n}={}){return!t||typeof t!="object"?null:(t.operationId||"").replace(/\s/g,"").length?eS(t.operationId):(function(o,p,{v2OperationIdCompatibilityMode:c}={}){if(c){let d=`${p.toLowerCase()}_${o}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return d=d||`${o.substring(1)}_${p}`,d.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${EC.has(p.toLowerCase())?p.toLowerCase():p}${eS(o)}`})(e,r,{v2OperationIdCompatibilityMode:n})}function K0(t){const{spec:e}=t,{paths:r}=e,n={};if(!r||e.$$normalized)return t;for(const p in r){var a;const c=r[p];if(c==null||!Yn()(a=["object","function"]).call(a,typeof c))continue;const d=c.parameters;for(const E in c){var o;const x=c[E];if(x==null||!Yn()(o=["object","function"]).call(o,typeof x))continue;const k=Df(x,p,E);if(k){n[k]?n[k].push(x):n[k]=[x];const P=n[k];if(P.length>1)P.forEach(((R,L)=>{R.__originalOperationId=R.__originalOperationId||R.operationId,R.operationId=`${k}${L+1}`}));else if(x.operationId!==void 0){const R=P[0];R.__originalOperationId=R.__originalOperationId||x.operationId,R.operationId=k}}if(E!=="parameters"){const P=[],R={};for(const L in e)L!=="produces"&&L!=="consumes"&&L!=="security"||(R[L]=e[L],P.push(R));if(d&&(R.parameters=d,P.push(R)),P.length)for(const L of P)for(const V in L)if(Array.isArray(x[V])){if(V==="parameters")for(const Q of L[V])x[V].some((J=>!(!Ls(J)&&!Ls(Q))&&(J===Q||["name","$ref","$$ref"].some((re=>typeof J[re]=="string"&&typeof Q[re]=="string"&&J[re]===Q[re])))))||x[V].push(Q)}else x[V]=L[V]}}}return e.$$normalized=!0,t}const SC={name:"generic",match:()=>!0,normalize(t){const{spec:e}=K0({spec:t});return e},resolve:async t=>V0(t)},G0=SC,tS=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},Y0=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},rS=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.2\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},nS=t=>tS(t)||Y0(t)||rS(t),xC={name:"openapi-2",match:t=>(e=>{try{const{swagger:r}=e;return r==="2.0"}catch{return!1}})(t),normalize(t){const{spec:e}=K0({spec:t});return e},resolve:async t=>(async function(r){return V0(r)})(t)},X0=xC,_C={name:"openapi-3-0",match:t=>tS(t),normalize(t){const{spec:e}=K0({spec:t});return e},resolve:async t=>(async function(r){return V0(r)})(t)},Q0=_C;var Ge=Be(34035);function _y(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}var OC=(function(){function t(e,r){this.xf=r,this.f=e,this.all=!0}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.f(r)||(this.all=!1,e=_y(this.xf["@@transducer/step"](e,!1))),e},t})();function kC(t){return function(e){return new OC(t,e)}}var AC=Tr(Nu(["all"],kC,(function(e,r){for(var n=0;ne.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>e.element==="annotation"))}get warnings(){return this.children.filter((e=>e.element==="annotation"&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>e.element==="annotation"&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>e.element==="annotation")).isEmpty}replaceResult(e){const{result:r}=this;if(Iu(r))return!1;const n=this.content.findIndex((a=>a===r));return n!==-1&&(this.content[n]=e,!0)}}const $s=PC,NC=(t,e)=>typeof e=="object"&&e!==null&&t in e&&typeof e[t]=="function",TC=t=>typeof t=="object"&&t!=null&&"_storedElement"in t&&typeof t._storedElement=="string"&&"_content"in t,IC=(t,e)=>typeof e=="object"&&e!==null&&"primitive"in e&&typeof e.primitive=="function"&&e.primitive()===t,MC=(t,e)=>typeof e=="object"&&e!==null&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof Ge.wE)&&e.classes.includes(t),Mu=(t,e)=>typeof e=="object"&&e!==null&&"element"in e&&e.element===t,Qt=t=>t({hasMethod:NC,hasBasicElementProps:TC,primitiveEq:IC,isElementType:Mu,hasClass:MC}),da=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.Hg||t(r)&&e(void 0,r))),Ir=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.Om||t(r)&&e("string",r))),eb=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.kT||t(r)&&e("number",r))),tb=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.Os||t(r)&&e("null",r))),Ff=Qt((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Ge.bd||t(r)&&e("boolean",r))),hn=Qt((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Ge.Sh||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),vo=Qt((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Ge.wE&&!(n instanceof Ge.Sh)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Bs=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ge.Pr||t(n)&&e("member",n)&&r(void 0,n))),aS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ge.Ft||t(n)&&e("link",n)&&r(void 0,n))),oS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ge.sI||t(n)&&e("ref",n)&&r(void 0,n))),RC=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Oy||t(n)&&e("annotation",n)&&r("array",n))),DC=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ky||t(n)&&e("comment",n)&&r("string",n))),iS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $s||t(n)&&e("parseResult",n)&&r("array",n))),$p=t=>Mu("object",t)||Mu("array",t)||Mu("boolean",t)||Mu("number",t)||Mu("string",t)||Mu("null",t)||Mu("member",t),Gh=t=>!!da(t)&&Number.isInteger(t.startPositionRow)&&Number.isInteger(t.startPositionColumn)&&Number.isInteger(t.startIndex)&&Number.isInteger(t.endPositionRow)&&Number.isInteger(t.endPositionColumn)&&Number.isInteger(t.endIndex),FC=(t,e)=>{if(t.length===0)return!0;const r=e.attributes.get("symbols");return!!vo(r)&&Z0(gy(r.toValue()),t)},Yh=(t,e)=>t.length===0||Z0(gy(e.classes.toValue()),t),kc=function(){return!0},rb=function(){return!1},Ay=(t,e,r)=>{const n=t[e];if(n!=null){if(!r&&typeof n=="function")return n;const a=r?n.leave:n.enter;if(typeof a=="function")return a}else{const a=r?t.leave:t.enter;if(a!=null){if(typeof a=="function")return a;const o=a[e];if(typeof o=="function")return o}}return null},on={},Lf=t=>t?.type,sS=t=>typeof Lf(t)=="string",nb=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),Cy=(t,{visitFnGetter:e=Ay,nodeTypeGetter:r=Lf,breakSymbol:n=on,deleteNodeSymbol:a=null,skipVisitingNodeSymbol:o=!1,exposeEdits:p=!1}={})=>{const c=Symbol("skip"),d=new Array(t.length).fill(c);return{enter(E,x,k,P,R,L){let V=E,Q=!1;const J={...L,replaceWith(re,me){L.replaceWith(re,me),V=re}};for(let re=0;re{const c=Symbol("skip"),d=new Array(t.length).fill(c);return{async enter(E,x,k,P,R,L){let V=E,Q=!1;const J={...L,replaceWith(re,me){L.replaceWith(re,me),V=re}};for(let re=0;re{const R=r||{};let L,V,Q=Array.isArray(t),J=[t],re=-1,me=[],le=t;const ve=[],be=[];do{re+=1;const Ae=re===J.length;let xe;const Oe=Ae&&me.length!==0;if(Ae){if(xe=be.length===0?void 0:ve.pop(),le=V,V=be.pop(),Oe)if(Q){le=le.slice();let G=0;for(const[de,Ne]of me){const Ye=de-G;Ne===o?(le.splice(Ye,1),G+=1):le[Ye]=Ne}}else{le=x(le);for(const[G,de]of me)le[G]=de}re=L.index,J=L.keys,me=L.edits,Q=L.inArray,L=L.prev}else if(V!==o&&V!==void 0){if(xe=Q?re:J[re],le=V[xe],le===o||le===void 0)continue;ve.push(xe)}let je;if(!Array.isArray(le)){var ce;if(!E(le))throw new xr(`Invalid AST Node: ${String(le)}`,{node:le});if(k&&be.includes(le)){typeof P=="function"&&P(le,xe,V,ve,be),ve.pop();continue}const G=c(e,d(le),Ae);if(G){for(const[Ne,Ye]of Object.entries(n))e[Ne]=Ye;const de={replaceWith(Ne,Ye){typeof Ye=="function"?Ye(Ne,le,xe,V,ve,be):V&&(V[xe]=Ne),Ae||(le=Ne)}};je=G.call(e,le,xe,V,ve,be,de)}if(typeof((ce=je)===null||ce===void 0?void 0:ce.then)=="function")throw new xr("Async visitor not supported in sync mode",{visitor:e,visitFn:G});if(je===a)break;if(je===p){if(!Ae){ve.pop();continue}}else if(je!==void 0&&(me.push([xe,je]),!Ae)){if(!E(je)){ve.pop();continue}le=je}}var _e;je===void 0&&Oe&&me.push([xe,le]),!Ae&&(L={inArray:Q,index:re,keys:J,edits:me,prev:L},Q=Array.isArray(le),J=Q?le:(_e=R[d(le)])!==null&&_e!==void 0?_e:[],re=-1,me=[],V!==o&&V!==void 0&&be.push(V),V=le)}while(L!==void 0);return me.length!==0?me[me.length-1][1]:t};ab[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:a=on,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:p=!1,visitFnGetter:c=Ay,nodeTypeGetter:d=Lf,nodePredicate:E=sS,nodeCloneFn:x=nb,detectCycles:k=!0,detectCyclesCallback:P=null}={})=>{const R=r||{};let L,V,Q=Array.isArray(t),J=[t],re=-1,me=[],le=t;const ve=[],be=[];do{re+=1;const _e=re===J.length;let Ae;const xe=_e&&me.length!==0;if(_e){if(Ae=be.length===0?void 0:ve.pop(),le=V,V=be.pop(),xe)if(Q){le=le.slice();let je=0;for(const[G,de]of me){const Ne=G-je;de===o?(le.splice(Ne,1),je+=1):le[Ne]=de}}else{le=x(le);for(const[je,G]of me)le[je]=G}re=L.index,J=L.keys,me=L.edits,Q=L.inArray,L=L.prev}else if(V!==o&&V!==void 0){if(Ae=Q?re:J[re],le=V[Ae],le===o||le===void 0)continue;ve.push(Ae)}let Oe;if(!Array.isArray(le)){if(!E(le))throw new xr(`Invalid AST Node: ${String(le)}`,{node:le});if(k&&be.includes(le)){typeof P=="function"&&P(le,Ae,V,ve,be),ve.pop();continue}const je=c(e,d(le),_e);if(je){for(const[de,Ne]of Object.entries(n))e[de]=Ne;const G={replaceWith(de,Ne){typeof Ne=="function"?Ne(de,le,Ae,V,ve,be):V&&(V[Ae]=de),_e||(le=de)}};Oe=await je.call(e,le,Ae,V,ve,be,G)}if(Oe===a)break;if(Oe===p){if(!_e){ve.pop();continue}}else if(Oe!==void 0&&(me.push([Ae,Oe]),!_e)){if(!E(Oe)){ve.pop();continue}le=Oe}}var ce;Oe===void 0&&xe&&me.push([Ae,le]),!_e&&(L={inArray:Q,index:re,keys:J,edits:me,prev:L},Q=Array.isArray(le),J=Q?le:(ce=R[d(le)])!==null&&ce!==void 0?ce:[],re=-1,me=[],V!==o&&V!==void 0&&be.push(V),V=le)}while(L!==void 0);return me.length!==0?me[me.length-1][1]:t};const lS=class extends xr{value;constructor(e,r){super(e,r),r!==void 0&&(this.value=r.value)}},LC=class extends lS{},$C=class extends lS{},BC=Tr((function(e,r){return Pf((function(n,a){return n[a]=e(r[a],a,r),n}),{},Rp(r))})),jy=_r((function(e){return e==null}));var qC=Tr((function(e,r){if(e.length===0||jy(r))return!1;for(var n=r,a=0;a{const r=Jh(t,e);return BC((n=>{if(Ls(n)&&$f("$ref",n)&&VC(Lp,"$ref",n)){const a=ro(["$ref"],n),o=cS("#/",a);return ro(o.split("/"),r)}return Ls(n)?Ru(n,r):n}),t)},ob=(t,e)=>(t.startPositionRow=e?.startPositionRow,t.startPositionColumn=e?.startPositionColumn,t.startIndex=e?.startIndex,t.endPositionRow=e?.endPositionRow,t.endPositionColumn=e?.endPositionColumn,t.endIndex=e?.endIndex,t),hr=(t,e={})=>{const{visited:r=new WeakMap}=e,n={...e,visited:r};if(r.has(t))return r.get(t);if(t instanceof Ge.KeyValuePair){const{key:a,value:o}=t,p=da(a)?hr(a,n):a,c=da(o)?hr(o,n):o,d=new Ge.KeyValuePair(p,c);return r.set(t,d),d}if(t instanceof Ge.ot){const a=c=>hr(c,n),o=[...t].map(a),p=new Ge.ot(o);return r.set(t,p),p}if(t instanceof Ge.G6){const a=c=>hr(c,n),o=[...t].map(a),p=new Ge.G6(o);return r.set(t,p),p}if(da(t)){const a=no(t);if(r.set(t,a),t.content)if(da(t.content))a.content=hr(t.content,n);else if(t.content instanceof Ge.KeyValuePair)a.content=hr(t.content,n);else if(Array.isArray(t.content)){const o=p=>hr(p,n);a.content=t.content.map(o)}else a.content=t.content;else a.content=t.content;return a}throw new LC("Value provided to cloneDeep function couldn't be cloned",{value:t})};hr.safe=t=>{try{return hr(t)}catch{return t}};const uS=t=>{const{key:e,value:r}=t;return new Ge.KeyValuePair(e,r)},pS=t=>{const e=new t.constructor;if(e.element=t.element,Gh(t)&&ob(e,t),t.meta.length>0&&(e._meta=hr(t.meta)),t.attributes.length>0&&(e._attributes=hr(t.attributes)),da(t.content)){const r=t.content;e.content=pS(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof Ge.KeyValuePair?e.content=uS(t.content):e.content=t.content;return e},no=t=>{if(t instanceof Ge.KeyValuePair)return uS(t);if(t instanceof Ge.ot)return(e=>{const r=[...e];return new Ge.ot(r)})(t);if(t instanceof Ge.G6)return(e=>{const r=[...e];return new Ge.G6(r)})(t);if(da(t))return pS(t);throw new $C("Value provided to cloneShallow function couldn't be cloned",{value:t})};no.safe=t=>{try{return no(t)}catch{return t}};const Xh=t=>hn(t)?"ObjectElement":vo(t)?"ArrayElement":Bs(t)?"MemberElement":Ir(t)?"StringElement":Ff(t)?"BooleanElement":eb(t)?"NumberElement":tb(t)?"NullElement":aS(t)?"LinkElement":oS(t)?"RefElement":void 0,hS=t=>da(t)?no(t):nb(t),dS=mo(Xh,Lp),Bl={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class fS{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=rb,returnOnTrue:r,returnOnFalse:n}={}){this.result=[],this.predicate=e,this.returnOnTrue=r,this.returnOnFalse=n}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const Pa=(t,e,{keyMap:r=Bl,...n}={})=>ab(t,e,{keyMap:r,nodeTypeGetter:Xh,nodePredicate:dS,nodeCloneFn:hS,...n});Pa[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=Bl,...n}={})=>ab[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:Xh,nodePredicate:dS,nodeCloneFn:hS,...n});const mS=t=>typeof t?.type=="string"?t.type:Xh(t),gS={EphemeralObject:["content"],EphemeralArray:["content"],...Bl},yS=(t,e,{keyMap:r=gS,...n}={})=>Pa(t,e,{keyMap:r,nodeTypeGetter:mS,nodePredicate:kc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});yS[Symbol.for("nodejs.util.promisify.custom")]=async(t,{keyMap:e=gS,...r}={})=>Pa[Symbol.for("nodejs.util.promisify.custom")](t,visitor,{keyMap:e,nodeTypeGetter:mS,nodePredicate:kc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const KC=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}},GC=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class YC{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const r=new GC(e.content);return this.references.set(e,r),r}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const r=new KC(e.content);return this.references.set(e,r),r}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...r){var n;const a=r[3];return((n=a[a.length-1])===null||n===void 0?void 0:n.type)==="EphemeralObject"?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Ir(e.href)?e.href.toValue():""}}const Et=t=>da(t)?Ir(t)||eb(t)||Ff(t)||tb(t)?t.toValue():yS(t,new YC):t,XC=ha((function(e,r,n){var a,o={};for(a in n=n||{},r=r||{})ts(a,r)&&(o[a]=ts(a,n)?e(a,r[a],n[a]):r[a]);for(a in n)ts(a,n)&&!ts(a,o)&&(o[a]=n[a]);return o})),QC=ha((function t(e,r,n){return XC((function(a,o,p){return my(o)&&my(p)?t(e,o,p):e(a,o,p)}),r,n)})),Py=Tr((function(e,r){return QC((function(n,a,o){return o}),e,r)})),ZC=kf(0,-1),ej=Tr((function(e,r){return e.apply(this,r)})),tj=If(Fp);var rj=_r((function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():Dl(e)?[]:Of(e)?"":my(e)?{}:oE(e)?(function(){return arguments})():(function(n){var a=Object.prototype.toString.call(n);return a==="[object Uint8ClampedArray]"||a==="[object Int8Array]"||a==="[object Uint8Array]"||a==="[object Int16Array]"||a==="[object Uint16Array]"||a==="[object Int32Array]"||a==="[object Uint32Array]"||a==="[object Float32Array]"||a==="[object Float64Array]"||a==="[object BigInt64Array]"||a==="[object BigUint64Array]"})(e)?e.constructor.from(""):void 0}));const nj=rj,Bf=_r((function(e){return e!=null&&Pu(e,nj(e))})),vS=ja(1,Fp(Array.isArray)?Array.isArray:mo(Fs,Dp("Array"))),aj=Rf(vS,Bf);var oj=ja(3,(function(t,e,r){var n=ro(t,r),a=ro(ZC(t),r);if(!tj(n)&&!aj(t)){var o=tE(n,a);return ej(o,e)}}));const qf=oj;class bS extends Ge.g${constructor(){super(),this.register("annotation",Oy),this.register("comment",ky),this.register("parseResult",$s)}}const ij=new bS,Ac=t=>{const e=new bS;return Ls(t)&&e.use(t),e},wS=ij,ES=()=>({predicates:{...B},namespace:wS}),SS={toolboxCreator:ES,visitorOptions:{nodeTypeGetter:Xh,exposeEdits:!0}},ql=(t,e,r={})=>{if(e.length===0)return t;const n=Py(SS,r),{toolboxCreator:a,visitorOptions:o}=n,p=a(),c=e.map((x=>x(p))),d=Cy(c.map(uy({},"visitor")),{...o});c.forEach(qf(["pre"],[]));const E=Pa(t,d,o);return c.forEach(qf(["post"],[])),E};ql[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,r={})=>{if(e.length===0)return t;const n=Py(SS,r),{toolboxCreator:a,visitorOptions:o}=n,p=a(),c=e.map((P=>P(p))),d=Cy[Symbol.for("nodejs.util.promisify.custom")],E=Pa[Symbol.for("nodejs.util.promisify.custom")],x=d(c.map(uy({},"visitor")),{...o});await Promise.allSettled(c.map(qf(["pre"],[])));const k=await E(t,x,o);return await Promise.allSettled(c.map(qf(["post"],[]))),k};const sj=(t,{Type:e,plugins:r=[]})=>{const n=new e(t);return da(t)&&(t.meta.length>0&&(n.meta=hr(t.meta)),t.attributes.length>0&&(n.attributes=hr(t.attributes))),ql(n,r,{toolboxCreator:ES,visitorOptions:{nodeTypeGetter:Xh}})},qs=t=>(e,r={})=>sj(e,{...r,Type:t});Ge.Sh.refract=qs(Ge.Sh),Ge.wE.refract=qs(Ge.wE),Ge.Om.refract=qs(Ge.Om),Ge.bd.refract=qs(Ge.bd),Ge.Os.refract=qs(Ge.Os),Ge.kT.refract=qs(Ge.kT),Ge.Ft.refract=qs(Ge.Ft),Ge.sI.refract=qs(Ge.sI),Oy.refract=qs(Oy),ky.refract=qs(ky),$s.refract=qs($s);const Ny=(t,e=new WeakMap)=>(Bs(t)?(e.set(t.key,t),Ny(t.key,e),e.set(t.value,t),Ny(t.value,e)):t.children.forEach((r=>{e.set(r,t),Ny(r,e)})),e),lj=class{element;edges;constructor({element:e}){this.element=e}transclude(e,r){var n;if(e===this.element)return r;if(e===r)return this.element;this.edges=(n=this.edges)!==null&&n!==void 0?n:Ny(this.element);const a=this.edges.get(e);return Iu(a)?void 0:(hn(a)?((o,p,c)=>{const d=c.get(o);hn(d)&&(d.content=d.map(((E,x,k)=>k===o?(c.delete(o),c.set(p,d),p):k)))})(e,r,this.edges):vo(a)?((o,p,c)=>{const d=c.get(o);vo(d)&&(d.content=d.map((E=>E===o?(c.delete(o),c.set(p,d),p):E)))})(e,r,this.edges):Bs(a)&&((o,p,c)=>{const d=c.get(o);Bs(d)&&(d.key===o&&(d.key=p,c.delete(o),c.set(p,d)),d.value===o&&(d.value=p,c.delete(o),c.set(p,d)))})(e,r,this.edges),this.element)}},rs=t=>{const e=t.indexOf("#");return(r=>{try{const n=r.startsWith("#")?r.slice(1):r;return decodeURIComponent(n)}catch{return r}})(e===-1?"#":t.substring(e))},ns=function(){const e=Br,r=Ni,n=this,a="parser.js: Parser(): ";n.ast=void 0,n.stats=void 0,n.trace=void 0,n.callbacks=[];let o,p,c,d,E,x,k,P=0,R=0,L=0,V=0,Q=0,J=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};n.parse=(ve,be,ce,_e)=>{const Ae=`${a}parse(): `;P=0,R=0,L=0,V=0,Q=0,o=void 0,p=void 0,c=void 0,d=void 0,J.refresh(),E=void 0,x=void 0,k=void 0,d=r.stringToChars(ce),o=ve.rules,p=ve.udts;const xe=be.toLowerCase();let Oe;for(const G in o)if(o.hasOwnProperty(G)&&xe===o[G].lower){Oe=o[G].index;break}if(Oe===void 0)throw new Error(`${Ae}start rule name '${startRule}' not recognized`);(()=>{const G=`${a}initializeCallbacks(): `;let de,Ne;for(E=[],x=[],de=0;de{if(be.phraseLength>ce){let Ae=`${a}opRNM(${ve.name}): callback function error: `;throw Ae+=`sysData.phraseLength: ${be.phraseLength}`,Ae+=` must be <= remaining chars: ${ce}`,new Error(Ae)}switch(be.state){case e.ACTIVE:if(!_e)throw new Error(`${a}opRNM(${ve.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:be.phraseLength=0;break;case e.MATCH:be.phraseLength===0&&(be.state=e.EMPTY);break;case e.NOMATCH:be.phraseLength=0;break;default:throw new Error(`${a}opRNM(${ve.name}): callback function return error. Unrecognized return state: ${be.state}`)}},me=(ve,be)=>{let ce,_e,Ae;const xe=c[ve],Oe=p[xe.index];J.UdtIndex=Oe.index,P||(Ae=n.ast&&n.ast.udtDefined(xe.index),Ae&&(_e=o.length+xe.index,ce=n.ast.getLength(),n.ast.down(_e,Oe.name)));const je=d.length-be;x[xe.index](J,d,be,k),((G,de,Ne)=>{if(de.phraseLength>Ne){let Ye=`${a}opUDT(${G.name}): callback function error: `;throw Ye+=`sysData.phraseLength: ${de.phraseLength}`,Ye+=` must be <= remaining chars: ${Ne}`,new Error(Ye)}switch(de.state){case e.ACTIVE:throw new Error(`${a}opUDT(${G.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!G.empty)throw new Error(`${a}opUDT(${G.name}) may not return EMPTY.`);de.phraseLength=0;break;case e.MATCH:if(de.phraseLength===0){if(!G.empty)throw new Error(`${a}opUDT(${G.name}) may not return EMPTY.`);de.state=e.EMPTY}break;case e.NOMATCH:de.phraseLength=0;break;default:throw new Error(`${a}opUDT(${G.name}): callback function return error. Unrecognized return state: ${de.state}`)}})(Oe,J,je),P||Ae&&(J.state===e.NOMATCH?n.ast.setLength(ce):n.ast.up(_e,Oe.name,be,J.phraseLength))},le=(ve,be)=>{const ce=`${a}opExecute(): `,_e=c[ve];switch(V+=1,R>L&&(L=R),R+=1,J.refresh(),n.trace&&n.trace.down(_e,be),_e.type){case e.ALT:((Ae,xe)=>{const Oe=c[Ae];for(let je=0;je{let Oe,je,G,de;const Ne=c[Ae];n.ast&&(je=n.ast.getLength()),Oe=!0,G=xe,de=0;for(let Ye=0;Ye{let Oe,je,G,de;const Ne=c[Ae];if(Ne.max===0)return J.state=e.EMPTY,void(J.phraseLength=0);for(je=xe,G=0,de=0,n.ast&&(Oe=n.ast.getLength());!(je>=d.length)&&(le(Ae+1,je),J.state!==e.NOMATCH)&&J.state!==e.EMPTY&&(de+=1,G+=J.phraseLength,je+=J.phraseLength,de!==Ne.max););J.state===e.EMPTY||de>=Ne.min?(J.state=G===0?e.EMPTY:e.MATCH,J.phraseLength=G):(J.state=e.NOMATCH,J.phraseLength=0,n.ast&&n.ast.setLength(Oe))})(ve,be);break;case e.RNM:((Ae,xe)=>{let Oe,je,G;const de=c[Ae],Ne=o[de.index],Ye=E[Ne.index];if(P||(je=n.ast&&n.ast.ruleDefined(de.index),je&&(Oe=n.ast.getLength(),n.ast.down(de.index,o[de.index].name))),Ye){const ht=d.length-xe;Ye(J,d,xe,k),re(Ne,J,ht,!0),J.state===e.ACTIVE&&(G=c,c=Ne.opcodes,le(0,xe),c=G,Ye(J,d,xe,k),re(Ne,J,ht,!1))}else G=c,c=Ne.opcodes,le(0,xe),c=G;P||je&&(J.state===e.NOMATCH?n.ast.setLength(Oe):n.ast.up(de.index,Ne.name,xe,J.phraseLength))})(ve,be);break;case e.TRG:((Ae,xe)=>{const Oe=c[Ae];J.state=e.NOMATCH,xe{const Oe=c[Ae],je=Oe.string.length;if(J.state=e.NOMATCH,xe+je<=d.length){for(let G=0;G{let Oe;const je=c[Ae];J.state=e.NOMATCH;const G=je.string.length;if(G!==0){if(xe+G<=d.length){for(let de=0;de=65&&Oe<=90&&(Oe+=32),Oe!==je.string[de])return;J.state=e.MATCH,J.phraseLength=G}}else J.state=e.EMPTY})(ve,be);break;case e.UDT:me(ve,be);break;case e.AND:((Ae,xe)=>{switch(P+=1,le(Ae+1,xe),P-=1,J.phraseLength=0,J.state){case e.EMPTY:case e.MATCH:J.state=e.EMPTY;break;case e.NOMATCH:J.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${J.state}`)}})(ve,be);break;case e.NOT:((Ae,xe)=>{switch(P+=1,le(Ae+1,xe),P-=1,J.phraseLength=0,J.state){case e.EMPTY:case e.MATCH:J.state=e.NOMATCH;break;case e.NOMATCH:J.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${J.state}`)}})(ve,be);break;default:throw new Error(`${ce}unrecognized operator`)}P||be+J.phraseLength>Q&&(Q=be+J.phraseLength),n.stats&&n.stats.collect(_e,J),n.trace&&n.trace.up(_e,J.state,be,J.phraseLength),R-=1}},ib=function(){const e=Br,r=Ni,n=this;let a,o,p,c=0;const d=[],E=[],x=[];function k(P){let R="";for(;P-- >0;)R+=" ";return R}n.callbacks=[],n.init=(P,R,L)=>{let V;E.length=0,x.length=0,c=0,a=P,o=R,p=L;const Q=[];for(V=0;V!!d[P],n.udtDefined=P=>!!d[a.length+P],n.down=(P,R)=>{const L=x.length;return E.push(L),x.push({name:R,thisIndex:L,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:P,phraseIndex:void 0,phraseLength:void 0,stack:E.length}),L},n.up=(P,R,L,V)=>{const Q=x.length,J=E.pop();return x.push({name:R,thisIndex:Q,thatIndex:J,state:e.SEM_POST,callbackIndex:P,phraseIndex:L,phraseLength:V,stack:E.length}),x[J].thatIndex=Q,x[J].phraseIndex=L,x[J].phraseLength=V,Q},n.translate=P=>{let R,L;for(let V=0;V{x.length=P,E.length=P>0?x[P-1].stack:0},n.getLength=()=>x.length,n.toXml=()=>{let P="",R=0;return P+=` +`,P+=` +`,P+=` +`,P+=k(R+2),P+=r.charsToString(p),P+=` +`,x.forEach((L=>{L.state===e.SEM_PRE?(R+=1,P+=k(R),P+=` +`,P+=k(R+2),P+=r.charsToString(p,L.phraseIndex,L.phraseLength),P+=` +`):(P+=k(R),P+=` +`,R-=1)})),P+=` +`,P}},cj=function(){const e=Br,r=Ni,n="parser.js: Trace(): ";let a,o,p,c="",d=0;const E=this,x=P=>{let R="",L=0;if(P>=0)for(;P--;)L+=1,L===5?(R+="|",L=0):R+=".";return R};E.init=(P,R,L)=>{o=P,p=R,a=L};const k=P=>{let R;switch(P.type){case e.ALT:R="ALT";break;case e.CAT:R="CAT";break;case e.REP:R=P.max===1/0?`REP(${P.min},inf)`:`REP(${P.min},${P.max})`;break;case e.RNM:R=`RNM(${o[P.index].name})`;break;case e.TRG:R=`TRG(${P.min},${P.max})`;break;case e.TBS:R=P.string.length>6?`TBS(${r.charsToString(P.string,0,3)}...)`:`TBS(${r.charsToString(P.string,0,6)})`;break;case e.TLS:R=P.string.length>6?`TLS(${r.charsToString(P.string,0,3)}...)`:`TLS(${r.charsToString(P.string,0,6)})`;break;case e.UDT:R=`UDT(${p[P.index].name})`;break;case e.AND:R="AND";break;case e.NOT:R="NOT";break;default:throw new Error(`${n}Trace: opName: unrecognized opcode`)}return R};E.down=(P,R)=>{const L=x(d),V=Math.min(100,a.length-R);let Q=r.charsToString(a,R,V);V{const Q=`${n}trace.up: `;d-=1;const J=x(d);let re,me,le;switch(R){case e.EMPTY:le="|E|",me="''";break;case e.MATCH:le="|M|",re=Math.min(100,V),me=rec},uj=function(){const e=Br;let r,n,a;const o=[],p=[],c=[];this.init=(V,Q)=>{r=V,n=Q,R()},this.collect=(V,Q)=>{L(a,Q.state,Q.phraseLength),L(o[V.type],Q.state,Q.phraseLength),V.type===e.RNM&&L(p[V.index],Q.state,Q.phraseLength),V.type===e.UDT&&L(c[V.index],Q.state,Q.phraseLength)},this.displayStats=()=>{let V="";const Q={match:0,empty:0,nomatch:0,total:0},J=(re,me,le,ve,be)=>(Q.match+=me,Q.empty+=le,Q.nomatch+=ve,Q.total+=be,`${re} | ${d(me)} | ${d(le)} | ${d(ve)} | ${d(be)} | +`);return V+=` OPERATOR STATS +`,V+=` | MATCH | EMPTY | NOMATCH | TOTAL | +`,V+=J(" ALT",o[e.ALT].match,o[e.ALT].empty,o[e.ALT].nomatch,o[e.ALT].total),V+=J(" CAT",o[e.CAT].match,o[e.CAT].empty,o[e.CAT].nomatch,o[e.CAT].total),V+=J(" REP",o[e.REP].match,o[e.REP].empty,o[e.REP].nomatch,o[e.REP].total),V+=J(" RNM",o[e.RNM].match,o[e.RNM].empty,o[e.RNM].nomatch,o[e.RNM].total),V+=J(" TRG",o[e.TRG].match,o[e.TRG].empty,o[e.TRG].nomatch,o[e.TRG].total),V+=J(" TBS",o[e.TBS].match,o[e.TBS].empty,o[e.TBS].nomatch,o[e.TBS].total),V+=J(" TLS",o[e.TLS].match,o[e.TLS].empty,o[e.TLS].nomatch,o[e.TLS].total),V+=J(" UDT",o[e.UDT].match,o[e.UDT].empty,o[e.UDT].nomatch,o[e.UDT].total),V+=J(" AND",o[e.AND].match,o[e.AND].empty,o[e.AND].nomatch,o[e.AND].total),V+=J(" NOT",o[e.NOT].match,o[e.NOT].empty,o[e.NOT].nomatch,o[e.NOT].total),V+=J("TOTAL",Q.match,Q.empty,Q.nomatch,Q.total),V},this.displayHits=V=>{let Q="";const J=(re,me,le,ve,be)=>(a.match+=re,a.empty+=me,a.nomatch+=le,a.total+=ve,`| ${d(re)} | ${d(me)} | ${d(le)} | ${d(ve)} | ${be} +`);typeof V=="string"&&V.toLowerCase()[0]==="a"?(p.sort(E),c.sort(E),Q+=` RULES/UDTS ALPHABETICALLY +`):typeof V=="string"&&V.toLowerCase()[0]==="i"?(p.sort(k),c.sort(k),Q+=` RULES/UDTS BY INDEX +`):(p.sort(x),c.sort(x),Q+=` RULES/UDTS BY HIT COUNT +`),Q+=`| MATCH | EMPTY | NOMATCH | TOTAL | NAME +`;for(let re=0;reV<10?` ${V}`:V<100?` ${V}`:V<1e3?` ${V}`:V<1e4?` ${V}`:V<1e5?` ${V}`:V<1e6?` ${V}`:`${V}`,E=(V,Q)=>V.lowerQ.lower?1:0,x=(V,Q)=>V.totalQ.total?-1:E(V,Q),k=(V,Q)=>V.indexQ.index?1:0,P=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},R=()=>{o.length=0,a=new P,o[e.ALT]=new P,o[e.CAT]=new P,o[e.REP]=new P,o[e.RNM]=new P,o[e.TRG]=new P,o[e.TBS]=new P,o[e.TLS]=new P,o[e.UDT]=new P,o[e.AND]=new P,o[e.NOT]=new P,p.length=0;for(let V=0;V0){c.length=0;for(let V=0;V{switch(V.total+=1,Q){case e.EMPTY:V.empty+=1;break;case e.MATCH:V.match+=1;break;case e.NOMATCH:V.nomatch+=1;break;default:throw new Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${Q}`)}}},Ni={stringToChars:t=>[...t].map((e=>e.codePointAt(0))),charsToString:(t,e,r)=>{let n=t;for(;!(e===void 0||e<0);){if(r===void 0){n=t.slice(e);break}if(r<=0)return"";n=t.slice(e,e+r);break}return String.fromCodePoint(...n)}},Br={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:t=>{switch(t){case Br.ALT:return"ALT";case Br.CAT:return"CAT";case Br.REP:return"REP";case Br.RNM:return"RNM";case Br.TRG:return"TRG";case Br.TBS:return"TBS";case Br.TLS:return"TLS";case Br.UDT:return"UDT";case Br.AND:return"AND";case Br.NOT:return"NOT";case Br.ACTIVE:return"ACTIVE";case Br.EMPTY:return"EMPTY";case Br.MATCH:return"MATCH";case Br.NOMATCH:return"NOMATCH";case Br.SEM_PRE:return"SEM_PRE";case Br.SEM_POST:return"SEM_POST";case Br.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Uf(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){return`; JavaScript Object Notation (JSON) Pointer ABNF syntax +; https://datatracker.ietf.org/doc/html/rfc6901 +json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used +reference-token = *( unescaped / escaped ) +unescaped = %x00-2E / %x30-7D / %x7F-10FFFF + ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped' +escaped = "~" ( "0" / "1" ) + ; representing '~' and '/', respectively + +; https://datatracker.ietf.org/doc/html/rfc6901#section-4 +array-location = array-index / array-dash +array-index = %x30 / ( %x31-39 *(%x30-39) ) + ; "0", or digits without a leading "0" +array-dash = "-" + +; Surrogate named rules +slash = "/" +`}}class pj extends Error{constructor(e,r=void 0){if(super(e,r),this.name=this.constructor.name,typeof e=="string"&&(this.message=e),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,r!=null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack} +CAUSE: ${n.stack}`)}if(r!=null&&typeof r=="object"){const{cause:n,...a}=r;Object.assign(this,a)}}}const Du=pj,xS=class extends Du{},sb=t=>(e,r,n,a,o)=>{if(typeof o!="object"||o===null||Array.isArray(o))throw new xS("parser's user data must be an object");if(e===Br.SEM_PRE){const p={type:t,text:Ni.charsToString(r,n,a),start:n,length:a,children:[]};o.stack.length>0?o.stack[o.stack.length-1].children.push(p):o.root=p,o.stack.push(p)}e===Br.SEM_POST&&o.stack.pop()},hj=class extends ib{constructor(){super(),this.callbacks["json-pointer"]=sb("json-pointer"),this.callbacks["reference-token"]=sb("reference-token"),this.callbacks.slash=sb("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}},dj=t=>{if(typeof t!="string")throw new TypeError("Reference token must be a string");return t.replace(/~1/g,"/").replace(/~0/g,"~")},fj=class extends hj{getTree(){const{root:e}=super.getTree();return e.children.filter((({type:r})=>r==="reference-token")).map((({text:r})=>dj(r)))}},mj=class extends Array{toString(){return this.map((e=>`"${String(e)}"`)).join(", ")}},gj=class extends cj{inferExpectations(){const e=this.displayTrace().split(` +`),r=new Set;let n=-1;for(let a=0;an){const p=o.match(/N\|\[TLS\(([^)]+)\)]/);p&&r.add(p[1])}}return new mj(...r)}},yj=new Uf,vj=(t,{translator:e=new fj,stats:r=!1,trace:n=!1}={})=>{if(typeof t!="string")throw new TypeError("JSON Pointer must be a string");try{const a=new ns;e&&(a.ast=e),r&&(a.stats=new uj),n&&(a.trace=new gj);const o=a.parse(yj,"json-pointer",t);return{result:o,tree:o.success&&e?a.ast.getTree():void 0,stats:a.stats,trace:a.trace}}catch(a){throw new xS("Unexpected error during JSON Pointer parsing",{cause:a,jsonPointer:t})}};new Uf,new ns,new Uf,new ns;const bj=new Uf,wj=new ns,Ej=t=>{if(typeof t!="string")return!1;try{return wj.parse(bj,"array-index",t).success}catch{return!1}},Sj=new Uf,xj=new ns,_j=t=>{if(typeof t!="string")return!1;try{return xj.parse(Sj,"array-dash",t).success}catch{return!1}},Oj=t=>{if(typeof t!="string"&&typeof t!="number")throw new TypeError("Reference token must be a string or number");return String(t).replace(/~/g,"~0").replace(/\//g,"~1")},kj=class extends Du{},_S=t=>{if(!Array.isArray(t))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return t.length===0?"":`/${t.map((e=>{if(typeof e!="string"&&typeof e!="number")throw new TypeError("Reference token must be a string or number");return Oj(String(e))})).join("/")}`}catch(e){throw new kj("Unexpected error during JSON Pointer compilation",{cause:e,referenceTokens:t})}},Aj=class{#e;#t;#r;constructor(e,r={}){this.#e=e,this.#e.steps=[],this.#e.failed=!1,this.#e.failedAt=-1,this.#e.message=`JSON Pointer "${r.jsonPointer}" was successfully evaluated against the provided value`,this.#e.context={...r,realm:r.realm.name},this.#t=[],this.#r=r.realm}step({referenceToken:e,input:r,output:n,success:a=!0,reason:o}){const p=this.#t.length;this.#t.push(e);const c={referenceToken:e,referenceTokenPosition:p,input:r,inputType:this.#r.isObject(r)?"object":this.#r.isArray(r)?"array":"unrecognized",output:n,success:a};o&&(c.reason=o),this.#e.steps.push(c),a||(this.#e.failed=!0,this.#e.failedAt=p,this.#e.message=o)}},OS=class{name="";isArray(e){throw new Du("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new Du("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new Du("Realm.sizeOf(node) must be implemented in a subclass")}has(e,r){throw new Du("Realm.has(node) must be implemented in a subclass")}evaluate(e,r){throw new Du("Realm.evaluate(node) must be implemented in a subclass")}},Bp=class extends Du{},Qh=class extends Bp{},Cj=class extends OS{name="json";isArray(e){return Array.isArray(e)}isObject(e){return typeof e=="object"&&e!==null&&!this.isArray(e)}sizeOf(e){return this.isArray(e)?e.length:this.isObject(e)?Object.keys(e).length:0}has(e,r){if(this.isArray(e)){const n=Number(r),a=n>>>0;if(n!==a)throw new Qh(`Invalid array index "${r}": index must be an unsinged 32-bit integer`,{referenceToken:r,currentValue:e,realm:this.name});return a{const{result:p,tree:c,trace:d}=vj(e,{trace:!!o}),E=typeof o=="object"&&o!==null?new Aj(o,{jsonPointer:e,referenceTokens:c,strictArrays:r,strictObjects:n,realm:a,value:t}):null;try{let x;if(!p.success){let k=`Invalid JSON Pointer: "${e}". Syntax error at position ${p.maxMatched}`;throw k+=d?`, expected ${d.inferExpectations()}`:"",new Bp(k,{jsonPointer:e,currentValue:t,realm:a.name})}return c.reduce(((k,P,R)=>{if(a.isArray(k)){if(_j(P)){if(r)throw new Qh(`Invalid array index "-" at position ${R} in "${e}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});return x=a.evaluate(k,String(a.sizeOf(k))),E?.step({referenceToken:P,input:k,output:x}),x}if(!Ej(P))throw new Qh(`Invalid array index "${P}" at position ${R} in "${e}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});const L=Number(P);if(!Number.isSafeInteger(L))throw new Qh(`Invalid array index "${P}" at position ${R} in "${e}": index must be a safe integer`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});if(!a.has(k,P)&&r)throw new Qh(`Invalid array index "${P}" at position ${R} in "${e}": index not found in array`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});return x=a.evaluate(k,P),E?.step({referenceToken:P,input:k,output:x}),x}if(a.isObject(k)){if(!a.has(k,P)&&n)throw new kS(`Invalid object key "${P}" at position ${R} in "${e}": key not found in object`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name});return x=a.evaluate(k,P),E?.step({referenceToken:P,input:k,output:x}),x}throw new jj(`Invalid reference token "${P}" at position ${R} in "${e}": cannot be applied to a non-object/non-array value`,{jsonPointer:e,referenceTokens:c,referenceToken:P,referenceTokenPosition:R,currentValue:k,realm:a.name})}),t)}catch(x){throw E?.step({referenceToken:x.referenceToken,input:x.currentValue,success:!1,reason:x.message}),x instanceof Bp?x:new Bp("Unexpected error during JSON Pointer evaluation",{cause:x,jsonPointer:e,referenceTokens:c})}},Nj=class extends OS{name="apidom";isArray(e){return vo(e)}isObject(e){return hn(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,r){if(this.isArray(e)){const n=Number(r),a=n>>>0;if(n!==a)throw new Qh(`Invalid array index "${r}": index must be an unsinged 32-bit integer`,{referenceToken:r,currentValue:e,realm:this.name});return aPj(t,e,{...r,realm:new Nj});class Tj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="callback"}}const zf=Tj;class Ij extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Vf=Ij;class Mj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Jf=Mj;class Rj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Wf=Rj;class Dj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const Ty=Dj;class Fj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Hf=Fj;class Lj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Kf=Lj;class AS extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Ge.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ge.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(AS.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});const Gf=AS;class $j extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Yf=$j;class Bj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Xf=Bj;class qj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,r;return Ir(this.operationRef)?(e=this.operationRef)===null||e===void 0?void 0:e.meta.get("operation"):Ir(this.operationId)?(r=this.operationId)===null||r===void 0?void 0:r.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const Qf=qj;class Uj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const Zf=Uj;class zj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Iy=zj;class Vj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const My=Vj;class Jj extends Ge.Om{constructor(e,r,n){super(e,r,n),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const em=Jj;class Wj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Ry=Wj;class Hj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ge.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const tm=Hj;class CS extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new Ge.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ge.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(CS.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});const rm=CS;class Kj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const nm=Kj;class Gj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="paths"}}const am=Gj;class Yj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const om=Yj;class Xj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new Ge.bd(!1)}set required(e){this.set("required",e)}}const im=Xj;class Qj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const sm=Qj;class Zj extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const lm=Zj,Zr=class extends Mt{};class e3 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Zh=e3;class t3 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const ed=t3;class r3 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const cm=r3;class n3 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const um=n3,Dy=t=>{const e=t.meta.length>0?hr(t.meta):void 0,r=t.attributes.length>0?hr(t.attributes):void 0;return new t.constructor(void 0,e,r)},Fy=(t,e)=>e.clone&&e.isMergeableElement(t)?td(Dy(t),t,e):t,Ly={clone:!0,isMergeableElement:t=>hn(t)||vo(t),arrayElementMerge:(t,e,r)=>t.concat(e)["fantasy-land/map"]((n=>Fy(n,r))),objectElementMerge:(t,e,r)=>{const n=hn(t)?Dy(t):Dy(e);return hn(t)&&t.forEach(((a,o,p)=>{const c=no(p);c.value=Fy(a,r),n.content.push(c)})),e.forEach(((a,o,p)=>{const c=Et(o);let d;if(hn(t)&&t.hasKey(c)&&r.isMergeableElement(a)){const E=t.get(c);d=no(p),d.value=((x,k)=>{if(typeof k.customMerge!="function")return td;const P=k.customMerge(x,k);return typeof P=="function"?P:td})(o,r)(E,a,r)}else d=no(p),d.value=Fy(a,r);n.remove(c),n.content.push(d)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},td=(t,e,r)=>{var n,a,o;const p={...Ly,...r};p.isMergeableElement=(n=p.isMergeableElement)!==null&&n!==void 0?n:Ly.isMergeableElement,p.arrayElementMerge=(a=p.arrayElementMerge)!==null&&a!==void 0?a:Ly.arrayElementMerge,p.objectElementMerge=(o=p.objectElementMerge)!==null&&o!==void 0?o:Ly.objectElementMerge;const c=vo(e);if(c!==vo(t))return Fy(e,p);const d=c&&typeof p.arrayElementMerge=="function"?p.arrayElementMerge(t,e,p):p.objectElementMerge(t,e,p);return d.meta=(E=>typeof E.customMetaMerge!="function"?x=>hr(x):E.customMetaMerge)(p)(t.meta,e.meta),d.attributes=(E=>typeof E.customAttributesMerge!="function"?x=>hr(x):E.customAttributesMerge)(p)(t.attributes,e.attributes),d};td.all=(t,e)=>{if(!Array.isArray(t))throw new TypeError("First argument of deepmerge should be an array.");return t.length===0?new Ge.Sh:t.reduce(((r,n)=>td(r,n,e)),Dy(t[0]))};const qp=td,jS=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,r){(e.meta.length>0||r.meta.length>0)&&(r.meta=qp(r.meta,e.meta)),Gh(e)&&ob(r,e),(e.attributes.length>0||e.meta.length>0)&&(r.attributes=qp(r.attributes,e.attributes))}},gn=class extends jS{enter(e){return this.element=hr(e),on}},PS=(t,e,r=[])=>{const n=Object.getOwnPropertyDescriptors(e);for(let a of r)delete n[a];Object.defineProperties(t,n)},pm=(t,e=[t])=>{const r=Object.getPrototypeOf(t);return r===null?e:pm(r,[...e,r])},NS=(t,e,r=[])=>{var n;const a=(n=((...c)=>{if(c.length===0)return;let d;const E=c.map((x=>pm(x)));for(;E.every((x=>x.length>0));){const x=E.map((P=>P.pop())),k=x[0];if(!x.every((P=>P===k)))break;d=k}return d})(...t))!==null&&n!==void 0?n:Object.prototype,o=Object.create(a),p=pm(a);for(let c of t){let d=pm(c);for(let E=d.length-1;E>=0;E--){let x=d[E];p.indexOf(x)===-1&&(PS(o,x,["constructor",...r]),p.push(x))}}return o.constructor=e,o},lb=t=>t.filter(((e,r)=>t.indexOf(e)==r)),TS=new WeakMap,a3=t=>TS.get(t),IS=(t,e)=>{var r,n;const a=lb([...Object.getOwnPropertyNames(t),...Object.getOwnPropertyNames(e)]),o={};for(let p of a)o[p]=lb([...(r=t?.[p])!==null&&r!==void 0?r:[],...(n=e?.[p])!==null&&n!==void 0?n:[]]);return o},MS=(t,e)=>{var r,n,a,o;return{property:IS((r=t?.property)!==null&&r!==void 0?r:{},(n=e?.property)!==null&&n!==void 0?n:{}),method:IS((a=t?.method)!==null&&a!==void 0?a:{},(o=e?.method)!==null&&o!==void 0?o:{})}},o3=(t,e)=>{var r,n,a,o,p,c;return{class:lb([...(r=t?.class)!==null&&r!==void 0?r:[],...(n=e?.class)!==null&&n!==void 0?n:[]]),static:MS((a=t?.static)!==null&&a!==void 0?a:{},(o=e?.static)!==null&&o!==void 0?o:{}),instance:MS((p=t?.instance)!==null&&p!==void 0?p:{},(c=e?.instance)!==null&&c!==void 0?c:{})}},i3=new Map,s3=(...t)=>{const e=((...r)=>{var n;const a=new Set,o=new Set([...r]);for(;o.size>0;)for(let p of o){const c=pm(p.prototype).map((E=>E.constructor)),d=[...c,...(n=a3(p))!==null&&n!==void 0?n:[]].filter((E=>!a.has(E)));for(let E of d)o.add(E);a.add(p),o.delete(p)}return[...a]})(...t).map((r=>i3.get(r))).filter((r=>!!r));return e.length==0?{}:e.length==1?e[0]:e.reduce(((r,n)=>o3(r,n)))};function Vt(...t){var e,r,n;const a=t.map((E=>E.prototype));function o(...E){for(const x of t)PS(this,new x(...E))}o.prototype=NS(a,o),Object.setPrototypeOf(o,NS(t,null,["prototype"]));let p=o;{const E=s3(...t);for(let x of(e=E?.class)!==null&&e!==void 0?e:[]){const k=x(p);k&&(p=k)}RS((r=E?.static)!==null&&r!==void 0?r:{},p),RS((n=E?.instance)!==null&&n!==void 0?n:{},p.prototype)}var c,d;return c=p,d=t,TS.set(c,d),p}const RS=(t,e)=>{const r=t.property,n=t.method;if(r)for(let a in r)for(let o of r[a])o(e,a);if(n)for(let a in n)for(let o of n[a])o(e,a,Object.getOwnPropertyDescriptor(e,a))},l3=_r((function(e){return ja(Vh(fE,0,mE("length",e)),(function(){for(var r=0,n=e.length;r{if(Ir(o)&&n.includes(Et(o))&&!this.ignoredFields.includes(Et(o))){const c=this.toRefractedElement([...r,"fixedFields",Et(o)],a),d=new Ge.Pr(hr(o),c);this.copyMetaAndAttributes(p,d),d.classes.push("fixed-field"),this.element.content.push(d)}else this.ignoredFields.includes(Et(o))||this.element.content.push(hr(p))})),this.copyMetaAndAttributes(e,this.element),on}},Na=class{parent;constructor({parent:e}){this.parent=e}},LS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zh||t(n)&&e("JSONSchemaDraft4",n)&&r("object",n))),cb=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ed||t(n)&&e("JSONReference",n)&&r("object",n))),$S=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cm||t(n)&&e("media",n)&&r("object",n))),p3=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof um||t(n)&&e("linkDescription",n)&&r("object",n)));class h3 extends Vt(Up,Na,gn){constructor(e){super(e),this.element=new Zh,this.specPath=jr(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,Up.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Iu(this.parent)&&!Ir(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(LS(this.parent)&&!Ir(e.get("$schema"))){const r=Jh(Et(this.parent.meta.get("inheritedDialectIdentifier")),Et(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",r)}}handleSchemaIdentifier(e,r="id"){const n=this.parent!==void 0?hr(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new Ge.wE,a=Et(e.get(r));$y(a)&&n.push(a),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}}const BS=h3,Ul=t=>hn(t)&&t.hasKey("$ref");class d3 extends Vt(Ti,Na,gn){ObjectElement(e){const r=Ul(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(r,e),on}ArrayElement(e){return this.element=new Ge.wE,this.element.classes.push("json-schema-items"),e.forEach((r=>{const n=Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const qS=d3,f3=class extends gn{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-required"),r}},m3=class extends Ti{specPath;ignoredFields;fieldPatternPredicate=rb;constructor({specPath:e,ignoredFields:r,fieldPatternPredicate:n,...a}){super({...a}),this.specPath=e,this.ignoredFields=r||[],typeof n=="function"&&(this.fieldPatternPredicate=n)}ObjectElement(e){return e.forEach(((r,n,a)=>{if(!this.ignoredFields.includes(Et(n))&&this.fieldPatternPredicate(Et(n))){const o=this.specPath(r),p=this.toRefractedElement(o,r),c=new Ge.Pr(hr(n),p);this.copyMetaAndAttributes(a,c),c.classes.push("patterned-field"),this.element.content.push(c)}else this.ignoredFields.includes(Et(n))||this.element.content.push(hr(a))})),this.copyMetaAndAttributes(e,this.element),on}},Fu=class extends m3{constructor(e){super(e),this.fieldPatternPredicate=$y}};class g3 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-properties"),this.specPath=r=>Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const y3=g3;class v3 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=r=>Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const b3=v3;class w3 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=r=>Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const E3=w3,S3=class extends gn{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-enum"),r}},x3=class extends gn{StringElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-type"),r}ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-type"),r}};class _3 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((r=>{const n=Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const O3=_3;class k3 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((r=>{const n=Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const A3=k3;class C3 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((r=>{const n=Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const j3=C3;class P3 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=r=>Ul(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const N3=P3;class T3 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","LinkDescription"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const I3=T3;class M3 extends Vt(Up,gn){constructor(e){super(e),this.element=new ed,this.specPath=jr(["document","objects","JSONReference"])}ObjectElement(e){const r=Up.prototype.ObjectElement.call(this,e);return Ir(this.element.$ref)&&this.element.classes.push("reference-element"),r}}const R3=M3,D3=class extends gn{StringElement(e){const r=this.enter(e);return this.element.classes.push("reference-value"),r}},ub=ha((function(e,r,n){return ja(Math.max(e.length,r.length,n.length),(function(){return e.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)}))})),F3=_r((function(e){return function(r,n){return e(r,n)?-1:e(n,r)?1:0}}));var L3=Tr((function(e,r){return Array.prototype.slice.call(r,0).sort(e)}));const $3=L3;var B3=_r((function(t){return cy(0,t)}));const q3=B3,U3=_r(_y),z3=If(jy),V3=Rf(vS,DS);function J3(t){return(function(r){if(Array.isArray(r))return pb(r)})(t)||(function(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)})(t)||(function(r,n){if(r){if(typeof r=="string")return pb(r,n);var a={}.toString.call(r).slice(8,-1);return a==="Object"&&r.constructor&&(a=r.constructor.name),a==="Map"||a==="Set"?Array.from(r):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?pb(r,n):void 0}})(t)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function pb(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);re.length}))),q3,Af("length")),H3=E0((function(t,e,r){var n=r.apply(void 0,J3(t));return z3(n)?U3(n):e}));const US=ub(V3,(function(e){var r=W3(e);return ja(r,(function(){for(var n=arguments.length,a=new Array(n),o=0;oub(a,jr(o),vy))),n=US(r)(e);return this.element=this.toRefractedElement(n,e),on}},rd=class extends K3{constructor(e){super(e),this.alternator=[{predicate:Ul,specPath:["document","objects","JSONReference"]},{predicate:kc,specPath:["document","objects","JSONSchema"]}]}};class G3 extends Vt(Up,gn){constructor(e){super(e),this.element=new cm,this.specPath=jr(["document","objects","Media"])}}const Y3=G3;class X3 extends Vt(Up,gn){constructor(e){super(e),this.element=new um,this.specPath=jr(["document","objects","LinkDescription"])}}const zS=X3,bo={visitors:{value:gn,JSONSchemaOrJSONReferenceVisitor:rd,document:{objects:{JSONSchema:{$visitor:BS,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:rd,items:qS,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:f3,properties:y3,additionalProperties:rd,patternProperties:b3,dependencies:E3,enum:S3,type:x3,allOf:O3,anyOf:A3,oneOf:j3,not:rd,definitions:N3,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:I3,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:R3,fixedFields:{$ref:D3}},Media:{$visitor:Y3,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:zS,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:rd,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:rd}}}}}},hm=t=>{if(da(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},Q3={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Bl},Z3={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft4",Zh),e.register("jSONReference",ed),e.register("media",cm),e.register("linkDescription",um),e}},eP=Z3,tP=()=>{const t=Ac(eP);return{predicates:{...X,isStringElement:Ir},namespace:t}},rP=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=bo}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:tP,visitorOptions:{keyMap:Q3,nodeTypeGetter:hm}})},By=t=>(e,r={})=>rP(e,{specPath:t,...r});Zh.refract=By(["visitors","document","objects","JSONSchema","$visitor"]),ed.refract=By(["visitors","document","objects","JSONReference","$visitor"]),cm.refract=By(["visitors","document","objects","Media","$visitor"]),um.refract=By(["visitors","document","objects","LinkDescription","$visitor"]);const qy=class extends Zh{constructor(e,r,n){super(e,r,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Zr("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Zr("idProp setter in Schema class is not not supported.")}get $schema(){throw new Zr("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Zr("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new Zr("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Zr("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Zr("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Zr("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new Zr("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Zr("definitions setter in Schema class is not not supported.")}get base(){throw new Zr("base getter in Schema class is not not supported.")}set base(e){throw new Zr("base setter in Schema class is not not supported.")}get links(){throw new Zr("links getter in Schema class is not not supported.")}set links(e){throw new Zr("links setter in Schema class is not not supported.")}get media(){throw new Zr("media getter in Schema class is not not supported.")}set media(e){throw new Zr("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class nP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="securityRequirement"}}const dm=nP;class aP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const fm=aP;class oP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const mm=oP;class iP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const gm=iP;class sP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Uy=sP;class lP extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const zy=lP,VS=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,r){(e.meta.length>0||r.meta.length>0)&&(r.meta=qp(r.meta,e.meta)),Gh(e)&&ob(r,e),(e.attributes.length>0||e.meta.length>0)&&(r.attributes=qp(r.attributes,e.attributes))}},er=class extends VS{enter(e){return this.element=hr(e),on}},zs=class extends VS{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:r,openApiGenericElement:n,openApiSemanticElement:a,...o}){super({...o}),this.specObj=e,this.openApiGenericElement=n,this.openApiSemanticElement=a,Array.isArray(r)&&(this.passingOptionsNames=r)}retrievePassingOptions(){return FS(this.passingOptionsNames,this)}retrieveFixedFields(e){const r=ro(["visitors",...e,"fixedFields"],this.specObj);return typeof r=="object"&&r!==null?Object.keys(r):[]}retrieveVisitor(e){return W0(Fp,["visitors",...e],this.specObj)?ro(["visitors",...e],this.specObj):ro(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,r={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...r})}toRefractedElement(e,r,n={}){const a=this.retrieveVisitorInstance(e,n);return a instanceof er&&a?.constructor===er?hr(r):(Pa(r,a,n),a.element)}};var cP=(function(){function t(e,r){this.xf=r,this.n=e,this.i=0}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=Nf,t.prototype["@@transducer/step"]=function(e,r){this.i+=1;var n=this.n===0?e:this.xf["@@transducer/step"](e,r);return this.n>=0&&this.i>=this.n?_y(n):n},t})();function uP(t){return function(e){return new cP(t,e)}}const pP=Tr(Nu(["take"],uP,(function(e,r){return kf(0,e<0?1/0:e,r)})));var hP=Tr((function(t,e){return Pu(pP(t.length,e),t)}));const dP=hP,Vn=t=>hn(t)&&t.hasKey("$ref"),fP=hn,mP=hn,JS=t=>Ir(t.key)&&dP("x-",Et(t.key)),Jr=class extends zs{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=JS;constructor({specPath:e,ignoredFields:r,canSupportSpecificationExtensions:n,specificationExtensionPredicate:a,...o}){super({...o}),this.specPath=e,this.ignoredFields=r||[],typeof n=="boolean"&&(this.canSupportSpecificationExtensions=n),typeof a=="function"&&(this.specificationExtensionPredicate=a)}ObjectElement(e){const r=this.specPath(e),n=this.retrieveFixedFields(r);return e.forEach(((a,o,p)=>{if(Ir(o)&&n.includes(Et(o))&&!this.ignoredFields.includes(Et(o))){const c=this.toRefractedElement([...r,"fixedFields",Et(o)],a),d=new Ge.Pr(hr(o),c);this.copyMetaAndAttributes(p,d),d.classes.push("fixed-field"),this.element.content.push(d)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(p)){const c=this.toRefractedElement(["document","extension"],p);this.element.content.push(c)}else this.ignoredFields.includes(Et(o))||this.element.content.push(hr(p))})),this.copyMetaAndAttributes(e,this.element),on}};class gP extends Vt(Jr,er){constructor(e){super(e),this.element=new Ry,this.specPath=jr(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Jr.prototype.ObjectElement.call(this,e)}}const yP=gP;class vP extends Vt(zs,er){StringElement(e){const r=new em(Et(e));return this.copyMetaAndAttributes(e,r),this.element=r,on}}const bP=vP,wP=class extends zs{MemberElement(e){return this.element=hr(e),this.element.classes.push("specification-extension"),on}};class EP extends Vt(Jr,er){constructor(e){super(e),this.element=new Yf,this.specPath=jr(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const SP=EP,xP=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),r}};class _P extends Vt(Jr,er){constructor(e){super(e),this.element=new Jf,this.specPath=jr(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const OP=_P;class kP extends Vt(Jr,er){constructor(e){super(e),this.element=new Xf,this.specPath=jr(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const AP=kP;class CP extends Vt(Jr,er){constructor(e){super(e),this.element=new Qf,this.specPath=jr(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return(Ir(this.element.operationId)||Ir(this.element.operationRef))&&this.element.classes.push("reference-element"),r}}const jP=CP,PP=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}},NP=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}},nd=class extends zs{specPath;ignoredFields;fieldPatternPredicate=rb;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=JS;constructor({specPath:e,ignoredFields:r,fieldPatternPredicate:n,canSupportSpecificationExtensions:a,specificationExtensionPredicate:o,...p}){super({...p}),this.specPath=e,this.ignoredFields=r||[],typeof n=="function"&&(this.fieldPatternPredicate=n),typeof a=="boolean"&&(this.canSupportSpecificationExtensions=a),typeof o=="function"&&(this.specificationExtensionPredicate=o)}ObjectElement(e){return e.forEach(((r,n,a)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(a)){const o=this.toRefractedElement(["document","extension"],a);this.element.content.push(o)}else if(!this.ignoredFields.includes(Et(n))&&this.fieldPatternPredicate(Et(n))){const o=this.specPath(r),p=this.toRefractedElement(o,r),c=new Ge.Pr(hr(n),p);this.copyMetaAndAttributes(a,c),c.classes.push("patterned-field"),this.element.content.push(c)}else this.ignoredFields.includes(Et(n))||this.element.content.push(hr(a))})),this.copyMetaAndAttributes(e,this.element),on}},Ur=class extends nd{constructor(e){super(e),this.fieldPatternPredicate=$y}};class hb extends Ge.Sh{static primaryClass="link-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(hb.primaryClass)}}const TP=hb;class IP extends Vt(Ur,er){constructor(e){super(e),this.element=new TP,this.specPath=jr(["value"])}}const MP=IP;class RP extends Vt(Jr,er){constructor(e){super(e),this.element=new mm,this.specPath=jr(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const DP=RP,FP=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("server-url"),r}};class db extends Ge.wE{static primaryClass="servers";constructor(e,r,n){super(e,r,n),this.classes.push(db.primaryClass)}}const WS=db;class LP extends Vt(zs,er){constructor(e){super(e),this.element=new WS}ArrayElement(e){return e.forEach((r=>{const n=fP(r)?["document","objects","Server"]:["value"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const fb=LP;class $P extends Vt(Jr,er){constructor(e){super(e),this.element=new gm,this.specPath=jr(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const BP=$P;class mb extends Ge.Sh{static primaryClass="server-variables";constructor(e,r,n){super(e,r,n),this.classes.push(mb.primaryClass)}}const qP=mb;class UP extends Vt(Ur,er){constructor(e){super(e),this.element=new qP,this.specPath=jr(["document","objects","ServerVariable"])}}const zP=UP;class VP extends Vt(Jr,er){constructor(e){super(e),this.element=new Zf,this.specPath=jr(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const JP=VP,zl=class extends zs{alternator;constructor({alternator:e,...r}){super({...r}),this.alternator=e||[]}enter(e){const r=this.alternator.map((({predicate:a,specPath:o})=>ub(a,jr(o),vy))),n=US(r)(e);return this.element=this.toRefractedElement(n,e),on}},WP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof zf||t(n)&&e("callback",n)&&r("object",n))),HP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Vf||t(n)&&e("components",n)&&r("object",n))),KP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Jf||t(n)&&e("contact",n)&&r("object",n))),GP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Hf||t(n)&&e("example",n)&&r("object",n))),YP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Kf||t(n)&&e("externalDocumentation",n)&&r("object",n))),ad=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Gf||t(n)&&e("header",n)&&r("object",n))),XP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Yf||t(n)&&e("info",n)&&r("object",n))),QP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xf||t(n)&&e("license",n)&&r("object",n))),ZP=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qf||t(n)&&e("link",n)&&r("object",n))),eN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof em||t(n)&&e("openapi",n)&&r("string",n))),tN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>a=>a instanceof Ry||t(a)&&e("openApi3_0",a)&&r("object",a)&&n("api",a))),HS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof tm||t(n)&&e("operation",n)&&r("object",n))),rN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof rm||t(n)&&e("parameter",n)&&r("object",n))),gb=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof nm||t(n)&&e("pathItem",n)&&r("object",n))),nN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof am||t(n)&&e("paths",n)&&r("object",n))),Mn=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof om||t(n)&&e("reference",n)&&r("object",n))),aN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof im||t(n)&&e("requestBody",n)&&r("object",n))),Vy=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof sm||t(n)&&e("response",n)&&r("object",n))),oN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof lm||t(n)&&e("responses",n)&&r("object",n))),iN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof qy||t(n)&&e("schema",n)&&r("object",n))),sN=t=>Ff(t)&&t.classes.includes("boolean-json-schema"),lN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof dm||t(n)&&e("securityRequirement",n)&&r("object",n))),cN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fm||t(n)&&e("securityScheme",n)&&r("object",n))),uN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof mm||t(n)&&e("server",n)&&r("object",n))),pN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof gm||t(n)&&e("serverVariable",n)&&r("object",n))),Jy=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zf||t(n)&&e("mediaType",n)&&r("object",n))),KS=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>a=>a instanceof WS||t(a)&&e("array",a)&&r("array",a)&&n("servers",a))),hN=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Wf||t(n)&&e("discriminator",n)&&r("object",n)));class dN extends Vt(zl,er){constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const fN=dN;class mN extends Vt(Ur,er){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("examples"),this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","example")})),r}}const yb=mN;class vb extends Ge.Sh{static primaryClass="media-type-examples";constructor(e,r,n){super(e,r,n),this.classes.push(vb.primaryClass),this.classes.push("examples")}}const gN=vb,yN=class extends yb{constructor(e){super(e),this.element=new gN}};class bb extends Ge.Sh{static primaryClass="media-type-encoding";constructor(e,r,n){super(e,r,n),this.classes.push(bb.primaryClass)}}const vN=bb;class bN extends Vt(Ur,er){constructor(e){super(e),this.element=new vN,this.specPath=jr(["document","objects","Encoding"])}}const wN=bN;class EN extends Vt(Ur,er){constructor(e){super(e),this.element=new dm,this.specPath=jr(["value"])}}const SN=EN;class wb extends Ge.wE{static primaryClass="security";constructor(e,r,n){super(e,r,n),this.classes.push(wb.primaryClass)}}const xN=wb;class _N extends Vt(zs,er){constructor(e){super(e),this.element=new xN}ArrayElement(e){return e.forEach((r=>{if(hn(r)){const n=this.toRefractedElement(["document","objects","SecurityRequirement"],r);this.element.push(n)}else this.element.push(hr(r))})),this.copyMetaAndAttributes(e,this.element),on}}const ON=_N;class kN extends Vt(Jr,er){constructor(e){super(e),this.element=new Vf,this.specPath=jr(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const AN=kN;class CN extends Vt(Jr,er){constructor(e){super(e),this.element=new Uy,this.specPath=jr(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const jN=CN;class PN extends Vt(Jr,er){constructor(e){super(e),this.element=new om,this.specPath=jr(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return Ir(this.element.$ref)&&this.element.classes.push("reference-element"),r}}const NN=PN,TN=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}};class IN extends Vt(Jr,er){constructor(e){super(e),this.element=new rm,this.specPath=jr(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return hn(this.element.contentProp)&&this.element.contentProp.filter(Jy).forEach(((n,a)=>{n.setMetaProperty("media-type",Et(a))})),r}}const MN=IN;class RN extends Vt(zl,er){constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const DN=RN;class FN extends Vt(Jr,er){constructor(e){super(e),this.element=new Gf,this.specPath=jr(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const LN=FN;class $N extends Vt(zl,er){constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const BN=$N;class Eb extends Ge.Sh{static primaryClass="header-examples";constructor(e,r,n){super(e,r,n),this.classes.push(Eb.primaryClass),this.classes.push("examples")}}const qN=Eb,UN=class extends yb{constructor(e){super(e),this.element=new qN}};class zN extends Vt(Ur,er){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("content"),this.specPath=jr(["document","objects","MediaType"])}}const Wy=zN;class Sb extends Ge.Sh{static primaryClass="header-content";constructor(e,r,n){super(e,r,n),this.classes.push(Sb.primaryClass),this.classes.push("content")}}const VN=Sb,JN=class extends Wy{constructor(e){super(e),this.element=new VN}};class WN extends Vt(Jr,er){constructor(e){super(e),this.element=new qy,this.specPath=jr(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const HN=WN,GS=bo.visitors.document.objects.JSONSchema.fixedFields.allOf,KN=class extends GS{ArrayElement(e){const r=GS.prototype.ArrayElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}},YS=bo.visitors.document.objects.JSONSchema.fixedFields.anyOf,GN=class extends YS{ArrayElement(e){const r=YS.prototype.ArrayElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}},XS=bo.visitors.document.objects.JSONSchema.fixedFields.oneOf,YN=class extends XS{ArrayElement(e){const r=XS.prototype.ArrayElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}},QS=bo.visitors.document.objects.JSONSchema.fixedFields.items,XN=class extends QS{ObjectElement(e){const r=QS.prototype.ObjectElement.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}ArrayElement(e){return this.enter(e)}},ZS=bo.visitors.document.objects.JSONSchema.fixedFields.properties,QN=class extends ZS{ObjectElement(e){const r=ZS.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}},ZN=bo.visitors.document.objects.JSONSchema.fixedFields.type,eT=class extends ZN{ArrayElement(e){return this.enter(e)}},e2=bo.visitors.JSONSchemaOrJSONReferenceVisitor,t2=class extends e2{ObjectElement(e){const r=e2.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}};class tT extends Vt(Jr,er){constructor(e){super(e),this.element=new Wf,this.specPath=jr(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const rT=tT;class xb extends Ge.Sh{static primaryClass="discriminator-mapping";constructor(e,r,n){super(e,r,n),this.classes.push(xb.primaryClass)}}const nT=xb;class aT extends Vt(Ur,er){constructor(e){super(e),this.element=new nT,this.specPath=jr(["value"])}}const oT=aT;class iT extends Vt(Jr,er){constructor(e){super(e),this.element=new zy,this.specPath=jr(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const sT=iT;class _b extends Ge.Sh{static primaryClass="parameter-examples";constructor(e,r,n){super(e,r,n),this.classes.push(_b.primaryClass),this.classes.push("examples")}}const lT=_b,cT=class extends yb{constructor(e){super(e),this.element=new lT}};class Ob extends Ge.Sh{static primaryClass="parameter-content";constructor(e,r,n){super(e,r,n),this.classes.push(Ob.primaryClass),this.classes.push("content")}}const uT=Ob,pT=class extends Wy{constructor(e){super(e),this.element=new uT}};class kb extends Ge.Sh{static primaryClass="components-schemas";constructor(e,r,n){super(e,r,n),this.classes.push(kb.primaryClass)}}const r2=kb;class hT extends Vt(Ur,er){constructor(e){super(e),this.element=new r2,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","schema")})),r}}const dT=hT;class Ab extends Ge.Sh{static primaryClass="components-responses";constructor(e,r,n){super(e,r,n),this.classes.push(Ab.primaryClass)}}const fT=Ab;class mT extends Vt(Ur,er){constructor(e){super(e),this.element=new fT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","response")})),this.element.filter(Vy).forEach(((n,a)=>{n.setMetaProperty("http-status-code",Et(a))})),r}}const gT=mT;class Cb extends Ge.Sh{static primaryClass="components-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(Cb.primaryClass),this.classes.push("parameters")}}const yT=Cb;class vT extends Vt(Ur,er){constructor(e){super(e),this.element=new yT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","parameter")})),r}}const bT=vT;class jb extends Ge.Sh{static primaryClass="components-examples";constructor(e,r,n){super(e,r,n),this.classes.push(jb.primaryClass),this.classes.push("examples")}}const wT=jb;class ET extends Vt(Ur,er){constructor(e){super(e),this.element=new wT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","example")})),r}}const ST=ET;class Pb extends Ge.Sh{static primaryClass="components-request-bodies";constructor(e,r,n){super(e,r,n),this.classes.push(Pb.primaryClass)}}const xT=Pb;class _T extends Vt(Ur,er){constructor(e){super(e),this.element=new xT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","requestBody")})),r}}const OT=_T;class Nb extends Ge.Sh{static primaryClass="components-headers";constructor(e,r,n){super(e,r,n),this.classes.push(Nb.primaryClass)}}const kT=Nb;class AT extends Vt(Ur,er){constructor(e){super(e),this.element=new kT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","header")})),this.element.filter(ad).forEach(((n,a)=>{n.setMetaProperty("header-name",Et(a))})),r}}const CT=AT;class Tb extends Ge.Sh{static primaryClass="components-security-schemes";constructor(e,r,n){super(e,r,n),this.classes.push(Tb.primaryClass)}}const jT=Tb;class PT extends Vt(Ur,er){constructor(e){super(e),this.element=new jT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","securityScheme")})),r}}const NT=PT;class Ib extends Ge.Sh{static primaryClass="components-links";constructor(e,r,n){super(e,r,n),this.classes.push(Ib.primaryClass)}}const TT=Ib;class IT extends Vt(Ur,er){constructor(e){super(e),this.element=new TT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","link")})),r}}const MT=IT;class Mb extends Ge.Sh{static primaryClass="components-callbacks";constructor(e,r,n){super(e,r,n),this.classes.push(Mb.primaryClass)}}const RT=Mb;class DT extends Vt(Ur,er){constructor(e){super(e),this.element=new RT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","callback")})),r}}const FT=DT;class LT extends Vt(Jr,er){constructor(e){super(e),this.element=new Hf,this.specPath=jr(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return Ir(this.element.externalValue)&&this.element.classes.push("reference-element"),r}}const $T=LT,BT=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}};class qT extends Vt(Jr,er){constructor(e){super(e),this.element=new Kf,this.specPath=jr(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const UT=qT;class zT extends Vt(Jr,er){constructor(e){super(e),this.element=new Ty,this.specPath=jr(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return hn(this.element.headers)&&this.element.headers.filter(ad).forEach(((n,a)=>{n.setMetaProperty("header-name",Et(a))})),r}}const VT=zT;class Rb extends Ge.Sh{static primaryClass="encoding-headers";constructor(e,r,n){super(e,r,n),this.classes.push(Rb.primaryClass)}}const JT=Rb;class WT extends Vt(Ur,er){constructor(e){super(e),this.element=new JT,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","header")})),this.element.forEach(((n,a)=>{if(!ad(n))return;const o=Et(a);n.setMetaProperty("headerName",o)})),r}}const HT=WT;class KT extends Vt(nd,er){constructor(e){super(e),this.element=new am,this.specPath=jr(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=kc}ObjectElement(e){const r=nd.prototype.ObjectElement.call(this,e);return this.element.filter(gb).forEach(((n,a)=>{a.classes.push("openapi-path-template"),a.classes.push("path-template"),n.setMetaProperty("path",hr(a))})),r}}const GT=KT;class YT extends Vt(Jr,er){constructor(e){super(e),this.element=new im,this.specPath=jr(["document","objects","RequestBody"])}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return hn(this.element.contentProp)&&this.element.contentProp.filter(Jy).forEach(((n,a)=>{n.setMetaProperty("media-type",Et(a))})),r}}const XT=YT;class Db extends Ge.Sh{static primaryClass="request-body-content";constructor(e,r,n){super(e,r,n),this.classes.push(Db.primaryClass),this.classes.push("content")}}const QT=Db,ZT=class extends Wy{constructor(e){super(e),this.element=new QT}};class e6 extends Vt(nd,er){constructor(e){super(e),this.element=new zf,this.specPath=jr(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=r=>/{(?[^}]{1,2083})}/.test(String(r))}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(gb).forEach(((n,a)=>{n.setMetaProperty("runtime-expression",Et(a))})),r}}const t6=e6;class r6 extends Vt(Jr,er){constructor(e){super(e),this.element=new sm,this.specPath=jr(["document","objects","Response"])}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return hn(this.element.contentProp)&&this.element.contentProp.filter(Jy).forEach(((n,a)=>{n.setMetaProperty("media-type",Et(a))})),hn(this.element.headers)&&this.element.headers.filter(ad).forEach(((n,a)=>{n.setMetaProperty("header-name",Et(a))})),r}}const n6=r6;class Fb extends Ge.Sh{static primaryClass="response-headers";constructor(e,r,n){super(e,r,n),this.classes.push(Fb.primaryClass)}}const a6=Fb;class o6 extends Vt(Ur,er){constructor(e){super(e),this.element=new a6,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","header")})),this.element.forEach(((n,a)=>{if(!ad(n))return;const o=Et(a);n.setMetaProperty("header-name",o)})),r}}const i6=o6;class Lb extends Ge.Sh{static primaryClass="response-content";constructor(e,r,n){super(e,r,n),this.classes.push(Lb.primaryClass),this.classes.push("content")}}const s6=Lb,l6=class extends Wy{constructor(e){super(e),this.element=new s6}};class $b extends Ge.Sh{static primaryClass="response-links";constructor(e,r,n){super(e,r,n),this.classes.push($b.primaryClass)}}const c6=$b;class u6 extends Vt(Ur,er){constructor(e){super(e),this.element=new c6,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","link")})),r}}const p6=u6;function n2(t){return Object.prototype.toString.call(t)==="[object Number]"}var h6=Tr((function(e,r){if(!n2(e)||!n2(r))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(eVn(r)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=r=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${d6(100,600).join("|")})$`).test(String(r))}ObjectElement(e){const r=o2.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","response")})),this.element.filter(Vy).forEach(((n,a)=>{const o=hr(a);this.fieldPatternPredicate(Et(o))&&n.setMetaProperty("http-status-code",o)})),r}}const b6=v6;class w6 extends Vt(zl,er){constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","Response"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)?this.element.setMetaProperty("referenced-element","response"):Vy(this.element)&&this.element.setMetaProperty("http-status-code","default"),r}}const E6=w6;class S6 extends Vt(Jr,er){constructor(e){super(e),this.element=new tm,this.specPath=jr(["document","objects","Operation"])}}const x6=S6;class Bb extends Ge.wE{static primaryClass="operation-tags";constructor(e,r,n){super(e,r,n),this.classes.push(Bb.primaryClass)}}const _6=Bb,O6=class extends er{constructor(e){super(e),this.element=new _6}ArrayElement(e){return this.element=this.element.concat(hr(e)),on}};class qb extends Ge.wE{static primaryClass="operation-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(qb.primaryClass),this.classes.push("parameters")}}const i2=qb;class k6 extends Vt(zs,er){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((r=>{const n=Vn(r)?["document","objects","Reference"]:["document","objects","Parameter"],a=this.toRefractedElement(n,r);Mn(a)&&a.setMetaProperty("referenced-element","parameter"),this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const s2=k6,A6=class extends s2{constructor(e){super(e),this.element=new i2}},C6=class extends zl{constructor(e){super(e),this.alternator=[{predicate:Vn,specPath:["document","objects","Reference"]},{predicate:kc,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const r=zl.prototype.enter.call(this,e);return Mn(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),r}};class Ub extends Ge.Sh{static primaryClass="operation-callbacks";constructor(e,r,n){super(e,r,n),this.classes.push(Ub.primaryClass)}}const j6=Ub;class P6 extends Vt(Ur,er){specPath;constructor(e){super(e),this.element=new j6,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Mn).forEach((n=>{n.setMetaProperty("referenced-element","callback")})),r}}const N6=P6;class zb extends Ge.wE{static primaryClass="operation-security";constructor(e,r,n){super(e,r,n),this.classes.push(zb.primaryClass),this.classes.push("security")}}const l2=zb;class T6 extends Vt(zs,er){constructor(e){super(e),this.element=new l2}ArrayElement(e){return e.forEach((r=>{const n=hn(r)?["document","objects","SecurityRequirement"]:["value"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const I6=T6;class Vb extends Ge.wE{static primaryClass="operation-servers";constructor(e,r,n){super(e,r,n),this.classes.push(Vb.primaryClass),this.classes.push("servers")}}const M6=Vb,R6=class extends fb{constructor(e){super(e),this.element=new M6}};class D6 extends Vt(Jr,er){constructor(e){super(e),this.element=new nm,this.specPath=jr(["document","objects","PathItem"])}ObjectElement(e){const r=Jr.prototype.ObjectElement.call(this,e);return this.element.filter(HS).forEach(((n,a)=>{const o=hr(a);o.content=Et(o).toUpperCase(),n.setMetaProperty("http-method",o)})),Ir(this.element.$ref)&&this.element.classes.push("reference-element"),r}}const F6=D6,L6=class extends er{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}};class Jb extends Ge.wE{static primaryClass="path-item-servers";constructor(e,r,n){super(e,r,n),this.classes.push(Jb.primaryClass),this.classes.push("servers")}}const $6=Jb,B6=class extends fb{constructor(e){super(e),this.element=new $6}};class Wb extends Ge.wE{static primaryClass="path-item-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(Wb.primaryClass),this.classes.push("parameters")}}const q6=Wb,U6=class extends s2{constructor(e){super(e),this.element=new q6}};class z6 extends Vt(Jr,er){constructor(e){super(e),this.element=new fm,this.specPath=jr(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const V6=z6;class J6 extends Vt(Jr,er){constructor(e){super(e),this.element=new My,this.specPath=jr(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const W6=J6;class H6 extends Vt(Jr,er){constructor(e){super(e),this.element=new Iy,this.specPath=jr(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const K6=H6;class Hb extends Ge.Sh{static primaryClass="oauth-flow-scopes";constructor(e,r,n){super(e,r,n),this.classes.push(Hb.primaryClass)}}const G6=Hb;class Y6 extends Vt(Ur,er){constructor(e){super(e),this.element=new G6,this.specPath=jr(["value"])}}const X6=Y6;class Kb extends Ge.wE{static primaryClass="tags";constructor(e,r,n){super(e,r,n),this.classes.push(Kb.primaryClass)}}const Q6=Kb;class Z6 extends Vt(zs,er){constructor(e){super(e),this.element=new Q6}ArrayElement(e){return e.forEach((r=>{const n=mP(r)?["document","objects","Tag"]:["value"],a=this.toRefractedElement(n,r);this.element.push(a)})),this.copyMetaAndAttributes(e,this.element),on}}const e4=Z6,{fixedFields:Ba}=bo.visitors.document.objects.JSONSchema,pt={visitors:{value:er,document:{objects:{OpenApi:{$visitor:yP,fixedFields:{openapi:bP,info:{$ref:"#/visitors/document/objects/Info"},servers:fb,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:ON,tags:e4,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:SP,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:xP}},Contact:{$visitor:OP,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:AP,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:DP,fixedFields:{url:FP,description:{$ref:"#/visitors/value"},variables:zP}},ServerVariable:{$visitor:BP,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:AN,fixedFields:{schemas:dT,responses:gT,parameters:bT,examples:ST,requestBodies:OT,headers:CT,securitySchemes:NT,links:MT,callbacks:FT}},Paths:{$visitor:GT},PathItem:{$visitor:F6,fixedFields:{$ref:L6,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:B6,parameters:U6}},Operation:{$visitor:x6,fixedFields:{tags:O6,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:A6,requestBody:C6,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:N6,deprecated:{$ref:"#/visitors/value"},security:I6,servers:R6}},ExternalDocumentation:{$visitor:UT,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:MN,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:DN,example:{$ref:"#/visitors/value"},examples:cT,content:pT}},RequestBody:{$visitor:XT,fixedFields:{description:{$ref:"#/visitors/value"},content:ZT,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:JP,fixedFields:{schema:fN,example:{$ref:"#/visitors/value"},examples:yN,encoding:wN}},Encoding:{$visitor:VT,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:HT,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:b6,fixedFields:{default:E6}},Response:{$visitor:n6,fixedFields:{description:{$ref:"#/visitors/value"},headers:i6,content:l6,links:p6}},Callback:{$visitor:t6},Example:{$visitor:$T,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:BT}},Link:{$visitor:jP,fixedFields:{operationRef:PP,operationId:NP,parameters:MP,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:LN,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:BN,example:{$ref:"#/visitors/value"},examples:UN,content:JN}},Tag:{$visitor:jN,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:NN,fixedFields:{$ref:TN}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:HN,fixedFields:{title:Ba.title,multipleOf:Ba.multipleOf,maximum:Ba.maximum,exclusiveMaximum:Ba.exclusiveMaximum,minimum:Ba.minimum,exclusiveMinimum:Ba.exclusiveMinimum,maxLength:Ba.maxLength,minLength:Ba.minLength,pattern:Ba.pattern,maxItems:Ba.maxItems,minItems:Ba.minItems,uniqueItems:Ba.uniqueItems,maxProperties:Ba.maxProperties,minProperties:Ba.minProperties,required:Ba.required,enum:Ba.enum,type:eT,allOf:KN,anyOf:GN,oneOf:YN,not:t2,items:XN,properties:QN,additionalProperties:t2,description:Ba.description,format:Ba.format,default:Ba.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:rT,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:oT}},XML:{$visitor:sT,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:V6,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:W6,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:K6,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:X6}},SecurityRequirement:{$visitor:SN}},extension:{$visitor:wP}}}},t4=t=>{if(da(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},r4={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Bl},n4={namespace:t=>{const{base:e}=t;return e.register("callback",zf),e.register("components",Vf),e.register("contact",Jf),e.register("discriminator",Wf),e.register("encoding",Ty),e.register("example",Hf),e.register("externalDocumentation",Kf),e.register("header",Gf),e.register("info",Yf),e.register("license",Xf),e.register("link",Qf),e.register("mediaType",Zf),e.register("oAuthFlow",Iy),e.register("oAuthFlows",My),e.register("openapi",em),e.register("openApi3_0",Ry),e.register("operation",tm),e.register("parameter",rm),e.register("pathItem",nm),e.register("paths",am),e.register("reference",om),e.register("requestBody",im),e.register("response",sm),e.register("responses",lm),e.register("schema",qy),e.register("securityRequirement",dm),e.register("securityScheme",fm),e.register("server",mm),e.register("serverVariable",gm),e.register("tag",Uy),e.register("xml",zy),e}},a4=n4,o4=()=>{const t=Ac(a4);return{predicates:{...te,isElement:da,isStringElement:Ir,isArrayElement:vo,isObjectElement:hn,isMemberElement:Bs,includesClasses:Yh,hasElementSourceMap:Gh},namespace:t}},i4=(t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Ge.e)(t),a=Ru(pt),o=new(ro(e,a))({specObj:a});return Pa(n,o),ql(o.element,r,{toolboxCreator:o4,visitorOptions:{keyMap:r4,nodeTypeGetter:t4}})},On=t=>(e,r={})=>i4(e,{specPath:t,...r});zf.refract=On(["visitors","document","objects","Callback","$visitor"]),Vf.refract=On(["visitors","document","objects","Components","$visitor"]),Jf.refract=On(["visitors","document","objects","Contact","$visitor"]),Hf.refract=On(["visitors","document","objects","Example","$visitor"]),Wf.refract=On(["visitors","document","objects","Discriminator","$visitor"]),Ty.refract=On(["visitors","document","objects","Encoding","$visitor"]),Kf.refract=On(["visitors","document","objects","ExternalDocumentation","$visitor"]),Gf.refract=On(["visitors","document","objects","Header","$visitor"]),Yf.refract=On(["visitors","document","objects","Info","$visitor"]),Xf.refract=On(["visitors","document","objects","License","$visitor"]),Qf.refract=On(["visitors","document","objects","Link","$visitor"]),Zf.refract=On(["visitors","document","objects","MediaType","$visitor"]),Iy.refract=On(["visitors","document","objects","OAuthFlow","$visitor"]),My.refract=On(["visitors","document","objects","OAuthFlows","$visitor"]),em.refract=On(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Ry.refract=On(["visitors","document","objects","OpenApi","$visitor"]),tm.refract=On(["visitors","document","objects","Operation","$visitor"]),rm.refract=On(["visitors","document","objects","Parameter","$visitor"]),nm.refract=On(["visitors","document","objects","PathItem","$visitor"]),am.refract=On(["visitors","document","objects","Paths","$visitor"]),om.refract=On(["visitors","document","objects","Reference","$visitor"]),im.refract=On(["visitors","document","objects","RequestBody","$visitor"]),sm.refract=On(["visitors","document","objects","Response","$visitor"]),lm.refract=On(["visitors","document","objects","Responses","$visitor"]),qy.refract=On(["visitors","document","objects","Schema","$visitor"]),dm.refract=On(["visitors","document","objects","SecurityRequirement","$visitor"]),fm.refract=On(["visitors","document","objects","SecurityScheme","$visitor"]),mm.refract=On(["visitors","document","objects","Server","$visitor"]),gm.refract=On(["visitors","document","objects","ServerVariable","$visitor"]),Uy.refract=On(["visitors","document","objects","Tag","$visitor"]),zy.refract=On(["visitors","document","objects","XML","$visitor"]);const Hy=class extends zf{},Ky=class extends Vf{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}},Gy=class extends Jf{},Gb=class extends Wf{},Yb=class extends Ty{},Yy=class extends Hf{},Xy=class extends Kf{},Qy=class extends Gf{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Zy=class extends Yf{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class Xb extends Ge.Om{static default=new Xb("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,r,n){super(e,r,n),this.element="jsonSchemaDialect"}}const ym=Xb,ev=class extends Xf{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}},tv=class extends Qf{},rv=class extends Zf{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Qb=class extends Iy{},Zb=class extends My{},e1=class extends em{};class s4 extends Ge.Sh{constructor(e,r,n){super(e,r,n),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Lu=s4,vm=class extends tm{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}},nv=class extends rm{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},$u=class extends nm{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}},av=class extends am{};class t1 extends om{}Object.defineProperty(t1.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0}),Object.defineProperty(t1.prototype,"summary",{get(){return this.get("summary")},set(t){this.set("summary",t)},enumerable:!0});const od=t1,ov=class extends im{},iv=class extends sm{},sv=class extends lm{},bm=class extends Zh{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft6"}get idProp(){throw new Zr("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Zr("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}},wm=class extends um{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new Zr("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Zr("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new Zr("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Zr("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Zr("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Zr("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var l4=ha((function t(e,r,n){if(e.length===0)return r;var a=e[0];if(e.length>1){var o=!jy(n)&&ts(a,n)&&typeof n[a]=="object"?n[a]:Wh(e[1])?[]:{};r=t(Array.prototype.slice.call(e,1),r,o)}return(function(c,d,E){if(Wh(c)&&Dl(E)){var x=[].concat(E);return x[c]=d,x}var k={};for(var P in E)k[P]=E[P];return k[c]=d,k})(a,r,n)}));const Kt=l4;var c4=ha((function(e,r,n){var a=Array.prototype.slice.call(n,0);return a.splice(e,r),a}));const u4=c4;var p4=ha((function(e,r,n){return Kt([e],r,n)}));const h4=p4;var d4=Tr((function t(e,r){if(r==null)return r;switch(e.length){case 0:return r;case 1:return(function(p,c){if(c==null)return c;if(Wh(p)&&Dl(c))return u4(p,1,c);var d={};for(var E in c)d[E]=c[E];return delete d[p],d})(e[0],r);default:var n=e[0],a=Array.prototype.slice.call(e,1);return r[n]==null?(function(p,c){if(Wh(p)&&Dl(c))return[].concat(c);var d={};for(var E in c)d[E]=c[E];return d})(n,r):h4(n,t(a,r[n]),r)}}));const Ii=d4,c2=class extends BS{constructor(e){super(e),this.element=new bm}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const r=this.enter(e);return this.element.classes.push("boolean-json-schema"),r}handleSchemaIdentifier(e,r="$id"){return super.handleSchemaIdentifier(e,r)}},f4=class extends qS{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),on}},m4=class extends gn{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-examples"),r}},u2=class extends zS{constructor(e){super(e),this.element=new wm}},wo=mo(Kt(["visitors","document","objects","JSONSchema","$visitor"],c2),Ii(["visitors","document","objects","JSONSchema","fixedFields","id"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$id"],bo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","contains"],bo.visitors.JSONSchemaOrJSONReferenceVisitor),Kt(["visitors","document","objects","JSONSchema","fixedFields","items"],f4),Kt(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],bo.visitors.JSONSchemaOrJSONReferenceVisitor),Kt(["visitors","document","objects","JSONSchema","fixedFields","const"],bo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","examples"],m4),Kt(["visitors","document","objects","LinkDescription","$visitor"],u2),Kt(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],bo.visitors.JSONSchemaOrJSONReferenceVisitor),Ii(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],bo.visitors.JSONSchemaOrJSONReferenceVisitor),Ii(["visitors","document","objects","LinkDescription","fixedFields","method"]),Ii(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],bo.visitors.value))(bo),g4={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Bl},y4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof bm||t(n)&&e("JSONSchemaDraft6",n)&&r("object",n))),v4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof wm||t(n)&&e("linkDescription",n)&&r("object",n))),b4={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft6",bm),e.register("jSONReference",ed),e.register("media",cm),e.register("linkDescription",wm),e}},w4=b4,E4=()=>{const t=Ac(w4);return{predicates:{...ie,isStringElement:Ir},namespace:t}},S4=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=wo}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:E4,visitorOptions:{keyMap:g4,nodeTypeGetter:hm}})},p2=t=>(e,r={})=>S4(e,{specPath:t,...r});bm.refract=p2(["visitors","document","objects","JSONSchema","$visitor"]),wm.refract=p2(["visitors","document","objects","LinkDescription","$visitor"]);const Em=class extends bm{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new Zr('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Zr('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}},Sm=class extends wm{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new Zr("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Zr("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new Zr("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Zr("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}},h2=class extends c2{constructor(e){super(e),this.element=new Em}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}},d2=class extends u2{constructor(e){super(e),this.element=new Sm}},Bu=mo(Kt(["visitors","document","objects","JSONSchema","$visitor"],h2),Kt(["visitors","document","objects","JSONSchema","fixedFields","$comment"],wo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","if"],wo.visitors.JSONSchemaOrJSONReferenceVisitor),Kt(["visitors","document","objects","JSONSchema","fixedFields","then"],wo.visitors.JSONSchemaOrJSONReferenceVisitor),Kt(["visitors","document","objects","JSONSchema","fixedFields","else"],wo.visitors.JSONSchemaOrJSONReferenceVisitor),Ii(["visitors","document","objects","JSONSchema","fixedFields","media"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],wo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],wo.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","$visitor"],d2),Kt(["visitors","document","objects","LinkDescription","fixedFields","anchor"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],wo.visitors.value),Ii(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Kt(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","description"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","$comment"],wo.visitors.value),Kt(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],wo.visitors.JSONSchemaOrJSONReferenceVisitor),Ii(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],wo.visitors.value))(wo),x4={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Bl},_4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Em||t(n)&&e("JSONSchemaDraft7",n)&&r("object",n))),O4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Sm||t(n)&&e("linkDescription",n)&&r("object",n))),k4={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft7",Em),e.register("jSONReference",ed),e.register("linkDescription",Sm),e}},A4=k4,C4=()=>{const t=Ac(A4);return{predicates:{...se,isStringElement:Ir},namespace:t}},j4=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Bu}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:C4,visitorOptions:{keyMap:x4,nodeTypeGetter:hm}})},f2=t=>(e,r={})=>j4(e,{specPath:t,...r});Em.refract=f2(["visitors","document","objects","JSONSchema","$visitor"]),Sm.refract=f2(["visitors","document","objects","LinkDescription","$visitor"]);const xm=class extends Em{constructor(e,r,n){super(e,r,n),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new Zr("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Zr("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get dependencies(){throw new Zr("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Zr("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}},_m=class extends Sm{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}},Eo=class extends h2{constructor(e){super(e),this.element=new xm}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const r=Up.prototype.ObjectElement.call(this,e);return Ir(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}},P4=class extends gn{ObjectElement(e){const r=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),r}},N4=class extends gn{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}};class T4 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=jr(["document","objects","JSONSchema"])}}const m2=T4;class I4 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const g2=I4;class M4 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const y2=M4;class R4 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const v2=R4;class D4 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=jr(["document","objects","JSONSchema"])}}const b2=D4;class F4 extends Vt(Ti,Na,gn){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),on}ArrayElement(e){return this.element=new Ge.wE,this.element.classes.push("json-schema-items"),e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),on}}const L4=F4;class $4 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-properties"),this.specPath=jr(["document","objects","JSONSchema"])}}const w2=$4;class B4 extends Vt(Fu,Na,gn){constructor(e){super(e),this.element=new Ge.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=jr(["document","objects","JSONSchema"])}}const E2=B4,q4=class extends gn{ObjectElement(e){const r=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),r}},S2=class extends d2{constructor(e){super(e),this.element=new _m}},lv=mo(Kt(["visitors","document","objects","JSONSchema","$visitor"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],P4),Kt(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Bu.visitors.value),Ii(["visitors","document","objects","JSONReference","$visitor"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$ref"],N4),Ii(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$defs"],m2),Kt(["visitors","document","objects","JSONSchema","fixedFields","allOf"],g2),Kt(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],y2),Kt(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],v2),Kt(["visitors","document","objects","JSONSchema","fixedFields","not"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","if"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","then"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","else"],Eo),Ii(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],b2),Kt(["visitors","document","objects","JSONSchema","fixedFields","items"],L4),Kt(["visitors","document","objects","JSONSchema","fixedFields","contains"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","properties"],w2),Kt(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],E2),Kt(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Eo),Kt(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],q4),Kt(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Bu.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Eo),Kt(["visitors","document","objects","LinkDescription","$visitor"],S2),Kt(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Eo),Kt(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Eo),Kt(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Eo),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Eo))(Bu),U4={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Bl},z4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof xm||t(n)&&e("JSONSchema201909",n)&&r("object",n))),V4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof _m||t(n)&&e("linkDescription",n)&&r("object",n))),J4={namespace:t=>{const{base:e}=t;return e.register("jSONSchema201909",xm),e.register("linkDescription",_m),e}},W4=J4,H4=()=>{const t=Ac(W4);return{predicates:{...Te,isStringElement:Ir},namespace:t}},K4=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=lv}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:H4,visitorOptions:{keyMap:U4,nodeTypeGetter:hm}})},x2=t=>(e,r={})=>K4(e,{specPath:t,...r});xm.refract=x2(["visitors","document","objects","JSONSchema","$visitor"]),_m.refract=x2(["visitors","document","objects","LinkDescription","$visitor"]);const Om=class extends xm{constructor(e,r,n){super(e,r,n),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new Zr("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Zr("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new Zr("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Zr("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}},cv=class extends _m{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}},qa=class extends Eo{constructor(e){super(e),this.element=new Om}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class G4 extends Vt(Ti,Na,gn){constructor(e){super(e),this.element=new Ge.wE,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach((r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),on}}const _2=G4,Y4=class extends S2{constructor(e){super(e),this.element=new cv}},O2=mo(Kt(["visitors","document","objects","JSONSchema","$visitor"],qa),Ii(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],lv.visitors.value),Ii(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],lv.visitors.value),Kt(["visitors","document","objects","JSONSchema","fixedFields","not"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","if"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","then"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","else"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],_2),Kt(["visitors","document","objects","JSONSchema","fixedFields","items"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","contains"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],qa),Ii(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Kt(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],qa),Kt(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],qa),Kt(["visitors","document","objects","LinkDescription","$visitor"],Y4),Kt(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],qa),Kt(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],qa),Kt(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],qa),Kt(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],qa))(lv),X4={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Bl},Q4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Om||t(n)&&e("JSONSchema202012",n)&&r("object",n))),Z4=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cv||t(n)&&e("linkDescription",n)&&r("object",n))),eI={namespace:t=>{const{base:e}=t;return e.register("jSONSchema202012",Om),e.register("linkDescription",cv),e}},tI=eI,rI=()=>{const t=Ac(tI);return{predicates:{...he,isStringElement:Ir},namespace:t}},nI=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=O2}={})=>{const a=(0,Ge.e)(t),o=Ru(n),p=new(ro(e,o))({specObj:o});return Pa(a,p),ql(p.element,r,{toolboxCreator:rI,visitorOptions:{keyMap:X4,nodeTypeGetter:hm}})},k2=t=>(e,r={})=>nI(e,{specPath:t,...r});Om.refract=k2(["visitors","document","objects","JSONSchema","$visitor"]),cv.refract=k2(["visitors","document","objects","LinkDescription","$visitor"]);const qu=class extends Om{constructor(e,r,n){super(e,r,n),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}},uv=class extends dm{},pv=class extends fm{},hv=class extends mm{},dv=class extends gm{},r1=class extends Uy{},n1=class extends zy{};class aI extends Vt(Jr,er){constructor(e){super(e),this.element=new Lu,this.specPath=jr(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Jr.prototype.ObjectElement.call(this,e)}}const oI=aI,iI=pt.visitors.document.objects.Info.$visitor,sI=class extends iI{constructor(e){super(e),this.element=new Zy}},lI=pt.visitors.document.objects.Contact.$visitor,cI=class extends lI{constructor(e){super(e),this.element=new Gy}},uI=pt.visitors.document.objects.License.$visitor,pI=class extends uI{constructor(e){super(e),this.element=new ev}},hI=pt.visitors.document.objects.Link.$visitor,dI=class extends hI{constructor(e){super(e),this.element=new tv}};class fI extends Vt(zs,er){StringElement(e){const r=new ym(Et(e));return this.copyMetaAndAttributes(e,r),this.element=r,on}}const mI=fI,gI=pt.visitors.document.objects.Server.$visitor,yI=class extends gI{constructor(e){super(e),this.element=new hv}},vI=pt.visitors.document.objects.ServerVariable.$visitor,bI=class extends vI{constructor(e){super(e),this.element=new dv}},wI=pt.visitors.document.objects.MediaType.$visitor,EI=class extends wI{constructor(e){super(e),this.element=new rv}},SI=pt.visitors.document.objects.SecurityRequirement.$visitor,xI=class extends SI{constructor(e){super(e),this.element=new uv}},_I=pt.visitors.document.objects.Components.$visitor,OI=class extends _I{constructor(e){super(e),this.element=new Ky}},kI=pt.visitors.document.objects.Tag.$visitor,AI=class extends kI{constructor(e){super(e),this.element=new r1}},CI=pt.visitors.document.objects.Reference.$visitor,jI=class extends CI{constructor(e){super(e),this.element=new od}},PI=pt.visitors.document.objects.Parameter.$visitor,NI=class extends PI{constructor(e){super(e),this.element=new nv}},TI=pt.visitors.document.objects.Header.$visitor,II=class extends TI{constructor(e){super(e),this.element=new Qy}},MI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Hy||t(n)&&e("callback",n)&&r("object",n))),RI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ky||t(n)&&e("components",n)&&r("object",n))),DI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Gy||t(n)&&e("contact",n)&&r("object",n))),FI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Yy||t(n)&&e("example",n)&&r("object",n))),LI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xy||t(n)&&e("externalDocumentation",n)&&r("object",n))),$I=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qy||t(n)&&e("header",n)&&r("object",n))),BI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zy||t(n)&&e("info",n)&&r("object",n))),A2=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ym||t(n)&&e("jsonSchemaDialect",n)&&r("string",n))),qI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ev||t(n)&&e("license",n)&&r("object",n))),UI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof tv||t(n)&&e("link",n)&&r("object",n))),zI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof e1||t(n)&&e("openapi",n)&&r("string",n))),C2=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>a=>a instanceof Lu||t(a)&&e("openApi3_1",a)&&r("object",a)&&n("api",a))),j2=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof vm||t(n)&&e("operation",n)&&r("object",n))),VI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof nv||t(n)&&e("parameter",n)&&r("object",n))),zp=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $u||t(n)&&e("pathItem",n)&&r("object",n))),JI=t=>{if(!zp(t)||!Ir(t.$ref))return!1;const e=Et(t.$ref);return typeof e=="string"&&e.length>0&&!e.startsWith("#")},WI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof av||t(n)&&e("paths",n)&&r("object",n))),Vp=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof od||t(n)&&e("reference",n)&&r("object",n))),HI=t=>{if(!Vp(t)||!Ir(t.$ref))return!1;const e=Et(t.$ref);return typeof e=="string"&&e.length>0&&!e.startsWith("#")},KI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ov||t(n)&&e("requestBody",n)&&r("object",n))),GI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof iv||t(n)&&e("response",n)&&r("object",n))),YI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof sv||t(n)&&e("responses",n)&&r("object",n))),Vs=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof qu||t(n)&&e("schema",n)&&r("object",n))),a1=t=>Ff(t)&&t.classes.includes("boolean-json-schema"),XI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof uv||t(n)&&e("securityRequirement",n)&&r("object",n))),QI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pv||t(n)&&e("securityScheme",n)&&r("object",n))),ZI=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof hv||t(n)&&e("server",n)&&r("object",n))),e5=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof dv||t(n)&&e("serverVariable",n)&&r("object",n))),t5=Qt((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof rv||t(n)&&e("mediaType",n)&&r("object",n)));class r5 extends Vt(Jr,Na,er){constructor(e){super(e),this.element=new qu,this.specPath=jr(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=ym.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const r=Jr.prototype.ObjectElement.call(this,e);return Ir(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}BooleanElement(e){return qa.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=this.openApiSemanticElement!==void 0&&A2(this.openApiSemanticElement.jsonSchemaDialect)?Et(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&Ir(this.openApiGenericElement.get("jsonSchemaDialect"))?Et(this.openApiGenericElement.get("jsonSchemaDialect")):Et(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return qa.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return qa.prototype.handleSchemaIdentifier.call(this,e)}}const n5=r5,a5=class extends m2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},o5=class extends g2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},i5=class extends y2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},s5=class extends v2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},l5=class extends b2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},c5=class extends _2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},u5=class extends w2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},p5=class extends E2{constructor(e){super(e),this.passingOptionsNames.push("parent")}},h5=pt.visitors.document.objects.Discriminator.$visitor,d5=class extends h5{constructor(e){super(e),this.element=new Gb,this.canSupportSpecificationExtensions=!0}},f5=pt.visitors.document.objects.XML.$visitor,m5=class extends f5{constructor(e){super(e),this.element=new n1}};class g5 extends Vt(Ur,er){constructor(e){super(e),this.element=new r2,this.specPath=jr(["document","objects","Schema"])}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Vs).forEach(((n,a)=>{n.setMetaProperty("schemaName",Et(a))})),r}}const y5=g5;class o1 extends Ge.Sh{static primaryClass="components-path-items";constructor(e,r,n){super(e,r,n),this.classes.push(o1.primaryClass)}}const v5=o1;class b5 extends Vt(Ur,er){constructor(e){super(e),this.element=new v5,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Vp).forEach((n=>{n.setMetaProperty("referenced-element","pathItem")})),r}}const w5=b5,E5=pt.visitors.document.objects.Example.$visitor,S5=class extends E5{constructor(e){super(e),this.element=new Yy}},x5=pt.visitors.document.objects.ExternalDocumentation.$visitor,_5=class extends x5{constructor(e){super(e),this.element=new Xy}},O5=pt.visitors.document.objects.Encoding.$visitor,k5=class extends O5{constructor(e){super(e),this.element=new Yb}},A5=pt.visitors.document.objects.Paths.$visitor,C5=class extends A5{constructor(e){super(e),this.element=new av}},j5=pt.visitors.document.objects.RequestBody.$visitor,P5=class extends j5{constructor(e){super(e),this.element=new ov}},P2=pt.visitors.document.objects.Callback.$visitor,N5=class extends P2{constructor(e){super(e),this.element=new Hy,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=P2.prototype.ObjectElement.call(this,e);return this.element.filter(Vp).forEach((n=>{n.setMetaProperty("referenced-element","pathItem")})),r}},T5=pt.visitors.document.objects.Response.$visitor,I5=class extends T5{constructor(e){super(e),this.element=new iv}},M5=pt.visitors.document.objects.Responses.$visitor,R5=class extends M5{constructor(e){super(e),this.element=new sv}},D5=pt.visitors.document.objects.Operation.$visitor,F5=class extends D5{constructor(e){super(e),this.element=new vm}},L5=pt.visitors.document.objects.PathItem.$visitor,$5=class extends L5{constructor(e){super(e),this.element=new $u}},B5=pt.visitors.document.objects.SecurityScheme.$visitor,q5=class extends B5{constructor(e){super(e),this.element=new pv}},U5=pt.visitors.document.objects.OAuthFlows.$visitor,z5=class extends U5{constructor(e){super(e),this.element=new Zb}},V5=pt.visitors.document.objects.OAuthFlow.$visitor,J5=class extends V5{constructor(e){super(e),this.element=new Qb}};class i1 extends Ge.Sh{static primaryClass="webhooks";constructor(e,r,n){super(e,r,n),this.classes.push(i1.primaryClass)}}const W5=i1;class H5 extends Vt(Ur,er){constructor(e){super(e),this.element=new W5,this.specPath=r=>Vn(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=Ur.prototype.ObjectElement.call(this,e);return this.element.filter(Vp).forEach((n=>{n.setMetaProperty("referenced-element","pathItem")})),this.element.filter(zp).forEach(((n,a)=>{n.setMetaProperty("webhook-name",Et(a))})),r}}const K5=H5,{JSONSchema:G5,LinkDescription:Y5}=O2.visitors.document.objects,X5={visitors:{value:pt.visitors.value,document:{objects:{OpenApi:{$visitor:oI,fixedFields:{openapi:pt.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:mI,servers:pt.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:K5,components:{$ref:"#/visitors/document/objects/Components"},security:pt.visitors.document.objects.OpenApi.fixedFields.security,tags:pt.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:sI,fixedFields:{title:pt.visitors.document.objects.Info.fixedFields.title,description:pt.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:pt.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:pt.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:cI,fixedFields:{name:pt.visitors.document.objects.Contact.fixedFields.name,url:pt.visitors.document.objects.Contact.fixedFields.url,email:pt.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:pI,fixedFields:{name:pt.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:pt.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:yI,fixedFields:{url:pt.visitors.document.objects.Server.fixedFields.url,description:pt.visitors.document.objects.Server.fixedFields.description,variables:pt.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:bI,fixedFields:{enum:pt.visitors.document.objects.ServerVariable.fixedFields.enum,default:pt.visitors.document.objects.ServerVariable.fixedFields.default,description:pt.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:OI,fixedFields:{schemas:y5,responses:pt.visitors.document.objects.Components.fixedFields.responses,parameters:pt.visitors.document.objects.Components.fixedFields.parameters,examples:pt.visitors.document.objects.Components.fixedFields.examples,requestBodies:pt.visitors.document.objects.Components.fixedFields.requestBodies,headers:pt.visitors.document.objects.Components.fixedFields.headers,securitySchemes:pt.visitors.document.objects.Components.fixedFields.securitySchemes,links:pt.visitors.document.objects.Components.fixedFields.links,callbacks:pt.visitors.document.objects.Components.fixedFields.callbacks,pathItems:w5}},Paths:{$visitor:C5},PathItem:{$visitor:$5,fixedFields:{$ref:pt.visitors.document.objects.PathItem.fixedFields.$ref,summary:pt.visitors.document.objects.PathItem.fixedFields.summary,description:pt.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:pt.visitors.document.objects.PathItem.fixedFields.servers,parameters:pt.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:F5,fixedFields:{tags:pt.visitors.document.objects.Operation.fixedFields.tags,summary:pt.visitors.document.objects.Operation.fixedFields.summary,description:pt.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:pt.visitors.document.objects.Operation.fixedFields.operationId,parameters:pt.visitors.document.objects.Operation.fixedFields.parameters,requestBody:pt.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:pt.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:pt.visitors.document.objects.Operation.fixedFields.deprecated,security:pt.visitors.document.objects.Operation.fixedFields.security,servers:pt.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:_5,fixedFields:{description:pt.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:pt.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:NI,fixedFields:{name:pt.visitors.document.objects.Parameter.fixedFields.name,in:pt.visitors.document.objects.Parameter.fixedFields.in,description:pt.visitors.document.objects.Parameter.fixedFields.description,required:pt.visitors.document.objects.Parameter.fixedFields.required,deprecated:pt.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:pt.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:pt.visitors.document.objects.Parameter.fixedFields.style,explode:pt.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:pt.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:pt.visitors.document.objects.Parameter.fixedFields.example,examples:pt.visitors.document.objects.Parameter.fixedFields.examples,content:pt.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:P5,fixedFields:{description:pt.visitors.document.objects.RequestBody.fixedFields.description,content:pt.visitors.document.objects.RequestBody.fixedFields.content,required:pt.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:EI,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:pt.visitors.document.objects.MediaType.fixedFields.example,examples:pt.visitors.document.objects.MediaType.fixedFields.examples,encoding:pt.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:k5,fixedFields:{contentType:pt.visitors.document.objects.Encoding.fixedFields.contentType,headers:pt.visitors.document.objects.Encoding.fixedFields.headers,style:pt.visitors.document.objects.Encoding.fixedFields.style,explode:pt.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:pt.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:R5,fixedFields:{default:pt.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:I5,fixedFields:{description:pt.visitors.document.objects.Response.fixedFields.description,headers:pt.visitors.document.objects.Response.fixedFields.headers,content:pt.visitors.document.objects.Response.fixedFields.content,links:pt.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:N5},Example:{$visitor:S5,fixedFields:{summary:pt.visitors.document.objects.Example.fixedFields.summary,description:pt.visitors.document.objects.Example.fixedFields.description,value:pt.visitors.document.objects.Example.fixedFields.value,externalValue:pt.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:dI,fixedFields:{operationRef:pt.visitors.document.objects.Link.fixedFields.operationRef,operationId:pt.visitors.document.objects.Link.fixedFields.operationId,parameters:pt.visitors.document.objects.Link.fixedFields.parameters,requestBody:pt.visitors.document.objects.Link.fixedFields.requestBody,description:pt.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:II,fixedFields:{description:pt.visitors.document.objects.Header.fixedFields.description,required:pt.visitors.document.objects.Header.fixedFields.required,deprecated:pt.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:pt.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:pt.visitors.document.objects.Header.fixedFields.style,explode:pt.visitors.document.objects.Header.fixedFields.explode,allowReserved:pt.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:pt.visitors.document.objects.Header.fixedFields.example,examples:pt.visitors.document.objects.Header.fixedFields.examples,content:pt.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:AI,fixedFields:{name:pt.visitors.document.objects.Tag.fixedFields.name,description:pt.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:jI,fixedFields:{$ref:pt.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Y5},Schema:{$visitor:n5,fixedFields:{...G5.fixedFields,$defs:a5,allOf:o5,anyOf:i5,oneOf:s5,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:l5,prefixItems:c5,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:u5,patternProperties:p5,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:d5,fixedFields:{propertyName:pt.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:pt.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:m5,fixedFields:{name:pt.visitors.document.objects.XML.fixedFields.name,namespace:pt.visitors.document.objects.XML.fixedFields.namespace,prefix:pt.visitors.document.objects.XML.fixedFields.prefix,attribute:pt.visitors.document.objects.XML.fixedFields.attribute,wrapped:pt.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:q5,fixedFields:{type:pt.visitors.document.objects.SecurityScheme.fixedFields.type,description:pt.visitors.document.objects.SecurityScheme.fixedFields.description,name:pt.visitors.document.objects.SecurityScheme.fixedFields.name,in:pt.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:pt.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:pt.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:pt.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:z5,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:J5,fixedFields:{authorizationUrl:pt.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:pt.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:pt.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:pt.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:xI}},extension:{$visitor:pt.visitors.document.extension.$visitor}}}},as=t=>{if(da(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},Js={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Bl},Q5={namespace:t=>{const{base:e}=t;return e.register("callback",Hy),e.register("components",Ky),e.register("contact",Gy),e.register("discriminator",Gb),e.register("encoding",Yb),e.register("example",Yy),e.register("externalDocumentation",Xy),e.register("header",Qy),e.register("info",Zy),e.register("jsonSchemaDialect",ym),e.register("license",ev),e.register("link",tv),e.register("mediaType",rv),e.register("oAuthFlow",Qb),e.register("oAuthFlows",Zb),e.register("openapi",e1),e.register("openApi3_1",Lu),e.register("operation",vm),e.register("parameter",nv),e.register("pathItem",$u),e.register("paths",av),e.register("reference",od),e.register("requestBody",ov),e.register("response",iv),e.register("responses",sv),e.register("schema",qu),e.register("securityRequirement",uv),e.register("securityScheme",pv),e.register("server",hv),e.register("serverVariable",dv),e.register("tag",r1),e.register("xml",n1),e}},s1=Q5,Z5=t=>{const e=t.reduce(((r,n,a)=>{if(Bs(n)){const o=String(Et(n.key));r.push(o)}else if(vo(t[a-2])){const o=String(t[a-2].content.indexOf(n));r.push(o)}return r}),[]);return _S(e)},N2=()=>{const t=Ac(s1);return{predicates:{...ge,isElement:da,isStringElement:Ir,isArrayElement:vo,isObjectElement:hn,isMemberElement:Bs,isServersElement:KS,includesClasses:Yh,hasElementSourceMap:Gh},ancestorLineageToJSONPointer:Z5,namespace:t}},e8=(t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Ge.e)(t),a=Ru(X5),o=new(ro(e,a))({specObj:a});return Pa(n,o),ql(o.element,r,{toolboxCreator:N2,visitorOptions:{keyMap:Js,nodeTypeGetter:as}})},wn=t=>(e,r={})=>e8(e,{specPath:t,...r});Hy.refract=wn(["visitors","document","objects","Callback","$visitor"]),Ky.refract=wn(["visitors","document","objects","Components","$visitor"]),Gy.refract=wn(["visitors","document","objects","Contact","$visitor"]),Yy.refract=wn(["visitors","document","objects","Example","$visitor"]),Gb.refract=wn(["visitors","document","objects","Discriminator","$visitor"]),Yb.refract=wn(["visitors","document","objects","Encoding","$visitor"]),Xy.refract=wn(["visitors","document","objects","ExternalDocumentation","$visitor"]),Qy.refract=wn(["visitors","document","objects","Header","$visitor"]),Zy.refract=wn(["visitors","document","objects","Info","$visitor"]),ym.refract=wn(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),ev.refract=wn(["visitors","document","objects","License","$visitor"]),tv.refract=wn(["visitors","document","objects","Link","$visitor"]),rv.refract=wn(["visitors","document","objects","MediaType","$visitor"]),Qb.refract=wn(["visitors","document","objects","OAuthFlow","$visitor"]),Zb.refract=wn(["visitors","document","objects","OAuthFlows","$visitor"]),e1.refract=wn(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Lu.refract=wn(["visitors","document","objects","OpenApi","$visitor"]),vm.refract=wn(["visitors","document","objects","Operation","$visitor"]),nv.refract=wn(["visitors","document","objects","Parameter","$visitor"]),$u.refract=wn(["visitors","document","objects","PathItem","$visitor"]),av.refract=wn(["visitors","document","objects","Paths","$visitor"]),od.refract=wn(["visitors","document","objects","Reference","$visitor"]),ov.refract=wn(["visitors","document","objects","RequestBody","$visitor"]),iv.refract=wn(["visitors","document","objects","Response","$visitor"]),sv.refract=wn(["visitors","document","objects","Responses","$visitor"]),qu.refract=wn(["visitors","document","objects","Schema","$visitor"]),uv.refract=wn(["visitors","document","objects","SecurityRequirement","$visitor"]),pv.refract=wn(["visitors","document","objects","SecurityScheme","$visitor"]),hv.refract=wn(["visitors","document","objects","Server","$visitor"]),dv.refract=wn(["visitors","document","objects","ServerVariable","$visitor"]),r1.refract=wn(["visitors","document","objects","Tag","$visitor"]),n1.refract=wn(["visitors","document","objects","XML","$visitor"]);const l1=class extends Zr{},t8=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new l1("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new l1("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new l1("latest method in MediaTypes class is not yet implemented.")}};class c1 extends t8{filterByFormat(e="generic"){const r=e==="generic"?"openapi;version":e;return this.filter((n=>n.includes(r)))}findBy(e="3.1.0",r="generic"){const n=r==="generic"?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${r};version=${e}`;return this.find((a=>a.includes(n)))||this.unknownMediaType}latest(e="generic"){return py(this.filterByFormat(e))}}const id=new c1("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),Cc=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:r=0,refSet:n,value:a}){this.uri=e,this.value=a,this.depth=r,this.refSet=n,this.errors=[]}},sd=class{rootRef;refs;circular;constructor({refs:e=[],circular:r=!1}={}){this.refs=[],this.circular=r,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=this.rootRef===void 0?e:this.rootRef,e.refSet=this),this}merge(e){for(const r of e.values())this.add(r);return this}has(e){const r=Lp(e)?e:e.uri;return dE(this.find((n=>n.uri===r)))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach((e=>{e.refSet=void 0})),this.rootRef=void 0,this.refs.length=0}};function r8(t){return t}const T2=_r(r8),I2={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:T2,immutable:!0,dereferenceOpts:{}},bundle:{strategies:[],refSet:null,maxDepth:1/0}},n8=Tr((function(e,r){return function(n){return function(a){return yy((function(o){return r(o,a)}),n(e(a)))}}}));var M2=function(t){return{value:t,map:function(e){return M2(e(t))}}},a8=ha((function(e,r,n){return e((function(a){return M2(r(a))}))(n).value}));const o8=a8,i8=Pu(""),s8=n8(ro(["resolve","baseURI"]),Kt(["resolve","baseURI"])),l8=t=>i8(t)?P0():t,R2=(t,e)=>{const r=Py(t,e);return o8(s8,l8,r)},ld=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:r="text/plain",data:n,parseResult:a}){this.uri=e,this.mediaType=r,this.data=n,this.parseResult=a}get extension(){return Lp(this.uri)?(e=>{const r=e.lastIndexOf(".");return r>=0?e.substring(r).toLowerCase():""})(this.uri):""}toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Fs(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}},c8=class extends Mt{plugin;constructor(e,r){super(e,{cause:r.cause}),this.plugin=r.plugin}},u1=async(t,e,r)=>{const n=await Promise.all(r.map(qf([t],e)));return r.filter(((a,o)=>n[o]))},p1=async(t,e,r)=>{let n;for(const a of r)try{const o=await a[t].call(a,...e);return{plugin:a,result:o}}catch(o){n=new c8("Error while running plugin",{cause:o,plugin:a})}return Promise.reject(n)},h1=class extends Mt{},D2=class extends h1{},u8=async(t,e)=>{let r=t,n=!1;if(!iS(t)){const p=no(t);p.classes.push("result"),r=new $s([p]),n=!0}const a=new ld({uri:e.resolve.baseURI,parseResult:r,mediaType:e.parse.mediaType}),o=await u1("canDereference",[a,e],e.dereference.strategies);if(Bf(o))throw new D2(a.uri);try{const{result:p}=await p1("dereference",[a,e],o);return n?p.get(0):p}catch(p){throw new h1(`Error while dereferencing file "${a.uri}"`,{cause:p})}},d1=class extends Mt{},jc=class extends d1{},km=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:r=!0,sourceMap:n=!1,fileExtensions:a=[],mediaTypes:o=[]}){this.name=e,this.allowEmpty=r,this.sourceMap=n,this.fileExtensions=a,this.mediaTypes=o}},p8=class extends km{constructor(e){super({...e??{},name:"binary"})}canParse(e){return this.fileExtensions.length===0||this.fileExtensions.includes(e.extension)}parse(e){try{const r=unescape(encodeURIComponent(e.toString())),n=btoa(r),a=new $s;if(n.length!==0){const o=new Ge.Om(n);o.classes.push("result"),a.push(o)}return a}catch(r){throw new jc(`Error parsing "${e.uri}"`,{cause:r})}}},h8=class{name;constructor({name:e}){this.name=e}},d8=class extends h8{constructor(e){super({...e??{},name:"openapi-3-1"})}canResolve(e,r){const n=r.dereference.strategies.find((a=>a.name==="openapi-3-1"));return n!==void 0&&n.canDereference(e,r)}async resolve(e,r){const n=r.dereference.strategies.find((p=>p.name==="openapi-3-1"));if(n===void 0)throw new D2('"openapi-3-1" dereference strategy is not available.');const a=new sd,o=R2(r,{resolve:{internal:!1},dereference:{refSet:a}});return await n.dereference(e,o),a}},f8=class{name;constructor({name:e}){this.name=e}},m8=class extends f8{timeout;redirects;withCredentials;constructor(e){const{name:r="http-resolver",timeout:n=5e3,redirects:a=5,withCredentials:o=!1}=e??{};super({name:r}),this.timeout=n,this.redirects=a,this.withCredentials=o}canRead(e){return j0(e.uri)}},fv=class extends Mt{},F2=class extends fv{},{AbortController:g8,AbortSignal:y8}=globalThis;globalThis.AbortController===void 0&&(globalThis.AbortController=g8),globalThis.AbortSignal===void 0&&(globalThis.AbortSignal=y8);const v8=class extends m8{swaggerHTTPClient=Mf;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=Mf,swaggerHTTPClientConfig:r={},...n}={}){super({...n,name:"http-swagger-client"}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=r}getHttpClient(){return this.swaggerHTTPClient}async read(e){const r=this.getHttpClient(),n=new AbortController,{signal:a}=n,o=setTimeout((()=>{n.abort()}),this.timeout),p=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",c=this.redirects===0?"error":"follow",d=this.redirects>0?this.redirects:void 0;try{return(await r({url:e.uri,signal:a,userFetch:async(E,x)=>{let k=await fetch(E,x);try{k.headers.delete("Content-Type")}catch{k=new Response(k.body,{...k,headers:new Headers(k.headers)}),k.headers.delete("Content-Type")}return k},credentials:p,redirect:c,follow:d,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(E){throw new F2(`Error downloading "${e.uri}"`,{cause:E})}finally{clearTimeout(o)}}},L2=(t,e=wS)=>{if(Lp(t))try{return e.fromRefract(JSON.parse(t))}catch{}return Ls(t)&&$f("element",t)?e.fromRefract(t):e.toElement(t)},b8=class extends km{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){var r,n;const a=this.fileExtensions.length===0||Yn()(r=this.fileExtensions).call(r,e.extension),o=Yn()(n=this.mediaTypes).call(n,e.mediaType);if(!a)return!1;if(o)return!0;if(!o)try{return JSON.parse(e.toString()),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new jc("json-swagger-client parser plugin doesn't support sourceMaps option");const r=new $s,n=e.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const a=L2(JSON.parse(n));return a.classes.push("result"),r.push(a),r}catch(a){throw new jc(`Error parsing "${e.uri}"`,{cause:a})}}},w8=class extends km{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){var r,n;const a=this.fileExtensions.length===0||Yn()(r=this.fileExtensions).call(r,e.extension),o=Yn()(n=this.mediaTypes).call(n,e.mediaType);if(!a)return!1;if(o)return!0;if(!o)try{return Pe.load(e.toString(),{schema:Rt}),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new jc("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const r=new $s,n=e.toString();try{const a=Pe.load(n,{schema:Rt});if(this.allowEmpty&&a===void 0)return r;const o=L2(a);return o.classes.push("result"),r.push(o),r}catch(a){throw new jc(`Error parsing "${e.uri}"`,{cause:a})}}},E8=class extends km{detectionRegExp=/"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new c1(...id.filterByFormat("generic"),...id.filterByFormat("json")),...e})}async canParse(e){var r,n;const a=this.fileExtensions.length===0||Yn()(r=this.fileExtensions).call(r,e.extension),o=Yn()(n=this.mediaTypes).call(n,e.mediaType);if(!a)return!1;if(o)return!0;if(!o)try{const p=e.toString();return JSON.parse(p),this.detectionRegExp.test(p)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new jc("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const r=new $s,n=e.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const a=JSON.parse(n),o=Lu.refract(a,this.refractorOpts);return o.classes.push("result"),r.push(o),r}catch(a){throw new jc(`Error parsing "${e.uri}"`,{cause:a})}}},S8=class extends km{detectionRegExp=/(?^(["']?)openapi\2\s*:\s*(["']?)(?3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new c1(...id.filterByFormat("generic"),...id.filterByFormat("yaml")),...e})}async canParse(e){var r,n;const a=this.fileExtensions.length===0||Yn()(r=this.fileExtensions).call(r,e.extension),o=Yn()(n=this.mediaTypes).call(n,e.mediaType);if(!a)return!1;if(o)return!0;if(!o)try{const p=e.toString();return Pe.load(p),this.detectionRegExp.test(p)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new jc("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const r=new $s,n=e.toString();try{const a=Pe.load(n,{schema:Rt});if(this.allowEmpty&&a===void 0)return r;const o=Lu.refract(a,this.refractorOpts);return o.classes.push("result"),r.push(o),r}catch(a){throw new jc(`Error parsing "${e.uri}"`,{cause:a})}}},$2=ha((function(e,r,n){return Pu(e,Af(r,n))})),x8=class{name;constructor({name:e}){this.name=e}},_8=Tr((function(e,r){return Z0(cE(e),r)}));var O8=Be(8068);const k8=class extends xr{value;constructor(e,r){super(e,r),r!==void 0&&(this.value=r.value)}};class f1{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new O8({length:e}),this.identityMap=new WeakMap}identify(e){if(!da(e))throw new k8("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&Ir(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const r=new Ge.Om(this.generateId());return this.identityMap.set(e,r),r}forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)}generateId(){return this.uuid.randomUUID()}}new f1;const B2=ha((function(e,r,n){return Jh(e,J0(r,n))})),q2=(t,e)=>{const r=new fS({predicate:t,returnOnTrue:on});return Pa(e,r),B2(void 0,[0],r.result)},U2=class extends Mt{},A8=class extends U2{},C8=class extends U2{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},mv=t=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(t),cd=t=>{const e=EE(t);return cS("#",e)},m1=(t,e)=>{const r=(a=>{if(!mv(a))throw new C8(a);return a})(t),n=q2((a=>Vs(a)&&Et(a.$anchor)===r),e);if(Iu(n))throw new A8(`Evaluation failed on token: "${r}"`);return n},j8=(t,e)=>{const r=new fS({predicate:t});return Pa(e,r),new Ge.G6(r.result)},P8=class extends Mt{},g1=class extends P8{},z2=(t,e)=>{if(e.$ref===void 0)return;const r=EE(Et(e.$ref)),n=Et(e.meta.get("ancestorsSchemaIdentifiers"));return`${Vh(((o,p)=>go(o,by(In(p)))),t,[...n,Et(e.$ref)])}${r==="#"?"":r}`},Am=t=>{if(Am.cache.has(t))return Am.cache.get(t);const e=qu.refract(t);return Am.cache.set(t,e),e};Am.cache=new WeakMap;const qo=t=>$p(t)?Am(t):t,gv=(t,e)=>{const{cache:r}=gv,n=In(t),a=p=>Vs(p)&&p.$id!==void 0;if(!r.has(e)){const p=j8(a,e);r.set(e,Array.from(p))}const o=r.get(e).find((p=>((d,E)=>{if(E.$id===void 0)return;const x=Et(E.meta.get("ancestorsSchemaIdentifiers"));return Vh(((k,P)=>go(k,by(In(P)))),d,x)})(n,p)===n));if(Iu(o))throw new g1(`Evaluation failed on URI: "${t}"`);return mv(cd(t))?m1(cd(t),o):Us(o,rs(t))};gv.cache=new WeakMap;const ud=class extends h1{},N8=class extends fv{},V2=class extends F2{},J2="apidom-file-cache",W2=async({cacheKey:t,result:e,error:r,cacheTTL:n})=>{if(n!==0)try{const a={cachedResult:e,cachedError:r,timestamp:Date.now()},o=await caches.open(J2),p=new Response(JSON.stringify(a),{headers:{"Content-Type":"application/json"}});await o.put(t,p)}catch{console.error("CacheStorage is not available")}},T8=async(t,e)=>{const{cacheTTL:r=0}=e.resolve.resolverOpts,n=`read_${t.uri}`,{cachedResult:a,cachedError:o}=await(async({cacheKey:k,cacheTTL:P})=>{if(P===0)return{cachedResult:null,cachedError:null};try{const R=await caches.open(J2),L=await R.match(k);if(L){const{cachedResult:V,cachedError:Q,timestamp:J}=await L.json();if(Date.now()-J{const P=Object.create(k);return Object.assign(P,e.resolve.resolverOpts)})),c=await u1("canRead",[t,e],p);if(Bf(c))throw new V2(t.uri);try{const{result:k}=await p1("read",[t],c),P=new ld({...t,data:k}).toString();return await W2({cacheKey:n,result:P,error:null,cacheTTL:r}),k}catch(k){var d,E,x;throw await W2({cacheKey:n,result:null,error:(d=(E=k==null||(x=k.cause)===null||x===void 0?void 0:x.cause)!==null&&E!==void 0?E:k?.cause)!==null&&d!==void 0?d:k,cacheTTL:r}),new fv(`Error while reading file "${t.uri}"`,{cause:k})}},I8=async(t,e)=>{const r=new ld({uri:by(In(t)),mediaType:e.parse.mediaType}),n=await T8(r,e);return(async(a,o)=>{const p=o.parse.parsers.map((d=>{const E=Object.create(d);return Object.assign(E,o.parse.parserOpts)})),c=await u1("canParse",[a,o],p);if(Bf(c))throw new V2(a.uri);try{const{plugin:d,result:E}=await p1("parse",[a,o],c);return!d.allowEmpty&&E.isEmpty?Promise.reject(new d1(`Error while parsing file "${a.uri}". File is empty.`)):E}catch(d){throw new d1(`Error while parsing file "${a.uri}"`,{cause:d})}})(new ld({...r,data:n}),e)};class y1 extends Array{includesCycle(e){return this.filter((r=>r.has(e))).length>1}includes(e,r){return e instanceof Set?super.includes(e,r):this.some((n=>n.has(e)))}findItem(e){for(const r of this)for(const n of r)if(da(n)&&e(n))return n}}const yv=Pa[Symbol.for("nodejs.util.promisify.custom")],So=new f1,os=(t,e,r,n)=>{Bs(n)?n.value=t:Array.isArray(n)&&(n[r]=t)};class pd{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;errorContext;errorPropagationCache=new Map;pendingPropagations=[];constructor({reference:e,namespace:r,options:n,indirections:a=[],ancestors:o=new y1,refractCache:p=new Map,allOfDiscriminatorMapping:c=new Map,errorContext:d=[],errorPropagationCache:E=new Map,pendingPropagations:x=[]}){this.indirections=a,this.namespace=r,this.reference=e,this.options=n,this.ancestors=new y1(...o),this.refractCache=p,this.allOfDiscriminatorMapping=c,this.errorContext=d,this.errorPropagationCache=E,this.pendingPropagations=x}popErrorContext(e){if(this.errorContext[this.errorContext.length-1]===e)this.errorContext.pop();else for(let r=this.errorContext.length-1;r>=0;r-=1)if(this.errorContext[r]===e){this.errorContext.splice(r,1);break}}runPropagationPass(){let e=!1;return this.pendingPropagations.forEach((({referencingElement:r,referencedElement:n})=>{const a=this.errorPropagationCache.get(n);Array.isArray(a)&&a.length>0&&a.forEach((o=>{const p=this.errorPropagationCache.get(r);var c;p!=null&&p.includes(o)||((c=this.options.dereference.dereferenceOpts)===null||c===void 0||c.errors.push({error:o,refEl:r}),p?p.push(o):this.errorPropagationCache.set(r,[o]),e=!0)}))})),e}propagateErrors(){for(;this.runPropagationPass(););this.pendingPropagations.length=0}handleDereferenceError(e,r,n){var a;if((a=this.options.dereference.dereferenceOpts)===null||a===void 0||!a.continueOnError)throw e;{var o,p,c;const{directAncestors:x,isExternalReference:k=!1}=n??{},P=(o=(p=this.options.dereference.dereferenceOpts)===null||p===void 0?void 0:p.skipNestedExternal)!==null&&o!==void 0&&o,R=k&&P;if(x&&!R){for(const V of x){const Q=this.errorPropagationCache.get(V);Q?Q.push(e):this.errorPropagationCache.set(V,[e])}const L=[...x].find((V=>hn(V)&&V.getMetaProperty("ref-referencing-element")));var d;L&&((d=this.options.dereference.dereferenceOpts)===null||d===void 0||d.errors.push({error:e,refEl:L.getMetaProperty("ref-referencing-element")}))}if((c=this.options.dereference.dereferenceOpts)===null||c===void 0||c.errors.push({error:e,refEl:r}),!R){const L=new Set(this.errorContext);L.delete(r),this.popErrorContext(r);for(const V of L){var E;(E=this.options.dereference.dereferenceOpts)===null||E===void 0||E.errors.push({error:e,refEl:V})}}}}getNestedVisitorOptions(e){var r,n;return{...this.options,resolve:{...this.options.resolve,external:((r=this.options.dereference)===null||r===void 0||(r=r.dereferenceOpts)===null||r===void 0||!r.skipNestedExternal||!Et(e.get("$ref")).startsWith("#"))&&this.options.resolve.external},dereference:{...this.options.dereference,dereferenceOpts:{...(n=this.options.dereference)===null||n===void 0?void 0:n.dereferenceOpts,continueOnError:!1}}}}toBaseURI(e){return go(this.reference.uri,by(In(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new N8(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const r=this.toBaseURI(e),{refSet:n}=this.reference;if(n.has(r))return n.find($2(r,"uri"));const a=await I8(Fl(r),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),o=new Cc({uri:r,value:hr(a),depth:this.reference.depth+1});if(n.add(o),this.options.dereference.immutable){const p=new Cc({uri:`immutable://${r}`,value:a,depth:this.reference.depth+1});n.add(p)}return o}toAncestorLineage(e){const r=new Set(e.filter(da));return[new y1(...this.ancestors,r),r]}OpenApi3_1Element={leave:(e,r,n,a,o,p)=>{var c,d;if((c=this.options.dereference.dereferenceOpts)!==null&&c!==void 0&&c.continueOnError&&this.propagateErrors(),(d=this.options.dereference.strategyOpts["openapi-3-1"])===null||d===void 0||!d.dereferenceDiscriminatorMapping)return;const E=no(e);return E.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),p.replaceWith(E,os),n?void 0:E}};async ReferenceElement(e,r,n,a,o,p){var c,d;if(this.indirections.includes(e))return!1;const[E,x]=this.toAncestorLineage([...o,n]),k=this.toBaseURI(Et(e.$ref)),P=In(this.reference.uri)===k,R=!P;if(!this.options.resolve.internal&&P||!this.options.resolve.external&&R)return!1;let L;try{L=await this.toReference(Et(e.$ref))}catch(ce){return this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}const V=go(k,Et(e.$ref));this.indirections.push(e);const Q=rs(V);let J;try{J=Us(L.value.result,Q)}catch(ce){return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}if(J.id=So.identify(J),$p(J)){const ce=Et(e.meta.get("referenced-element")),_e=`${ce}-${Et(So.identify(J))}`;this.refractCache.has(_e)?J=this.refractCache.get(_e):Vn(J)?(J=od.refract(J),J.setMetaProperty("referenced-element",ce),this.refractCache.set(_e,J)):(J=this.namespace.getElementClass(ce).refract(J),this.refractCache.set(_e,J))}if(e===J){const ce=new Mt("Recursive Reference Object detected");return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}if(this.indirections.length>this.options.dereference.maxDepth){const ce=new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}if(E.includes(J)){if(L.refSet.circular=!0,this.options.dereference.circular==="error"){const ce=new Mt("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:x,isExternalReference:R})}if(this.options.dereference.circular==="replace"){var re,me;const ce=new Ge.sI(J.id,{type:"reference",uri:L.uri,$ref:Et(e.$ref)}),_e=((re=(me=this.options.dereference.strategyOpts["openapi-3-1"])===null||me===void 0?void 0:me.circularReplacer)!==null&&re!==void 0?re:this.options.dereference.circularReplacer)(ce);return p.replaceWith(_e,os),!n&&_e}}const le=In(L.refSet.rootRef.uri)!==L.uri,ve=["error","replace"].includes(this.options.dereference.circular);if((R||le||Vp(J)||ve)&&!E.includesCycle(J)){x.add(e),this.errorContext.push(e);const ce=new pd({reference:L,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:E,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{J=await yv(J,ce,{keyMap:Js,nodeTypeGetter:as})}catch(_e){return this.indirections.pop(),this.handleDereferenceError(_e,e,{directAncestors:x,isExternalReference:R})}x.delete(e),this.popErrorContext(e)}(c=this.options.dereference.dereferenceOpts)!==null&&c!==void 0&&c.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:J}),this.indirections.pop();const be=no(J);return be.setMetaProperty("id",So.generateId()),be.setMetaProperty("ref-fields",{$ref:Et(e.$ref),description:Et(e.description),summary:Et(e.summary)}),be.setMetaProperty("ref-origin",L.uri),be.setMetaProperty("ref-referencing-element-id",hr(So.identify(e))),(d=this.options.dereference.dereferenceOpts)!==null&&d!==void 0&&d.continueOnError&&be.setMetaProperty("ref-referencing-element",e),hn(J)&&hn(be)&&(e.hasKey("description")&&"description"in J&&(be.remove("description"),be.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in J&&(be.remove("summary"),be.set("summary",e.get("summary")))),p.replaceWith(be,os),!n&&be}async PathItemElement(e,r,n,a,o,p){var c;if(!Ir(e.$ref))return;if(this.indirections.includes(e))return!1;const[d,E]=this.toAncestorLineage([...o,n]),x=this.toBaseURI(Et(e.$ref)),k=In(this.reference.uri)===x,P=!k;if(!this.options.resolve.internal&&k||!this.options.resolve.external&&P)return;let R;try{R=await this.toReference(Et(e.$ref))}catch(be){return this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}const L=go(x,Et(e.$ref));this.indirections.push(e);const V=rs(L);let Q;try{Q=Us(R.value.result,V)}catch(be){return this.indirections.pop(),this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}if(Q.id=So.identify(Q),$p(Q)){const be=`path-item-${Et(So.identify(Q))}`;this.refractCache.has(be)?Q=this.refractCache.get(be):(Q=$u.refract(Q),this.refractCache.set(be,Q))}if(e===Q){const be=new Mt("Recursive Path Item Object reference detected");return this.indirections.pop(),this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}if(this.indirections.length>this.options.dereference.maxDepth){const be=new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}if(d.includes(Q)){if(R.refSet.circular=!0,this.options.dereference.circular==="error"){const be=new Mt("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(be,e,{directAncestors:E,isExternalReference:P})}if(this.options.dereference.circular==="replace"){var J,re;const be=new Ge.sI(Q.id,{type:"path-item",uri:R.uri,$ref:Et(e.$ref)}),ce=((J=(re=this.options.dereference.strategyOpts["openapi-3-1"])===null||re===void 0?void 0:re.circularReplacer)!==null&&J!==void 0?J:this.options.dereference.circularReplacer)(be);return p.replaceWith(ce,os),!n&&ce}}const me=In(R.refSet.rootRef.uri)!==R.uri,le=["error","replace"].includes(this.options.dereference.circular);if((P||me||zp(Q)&&Ir(Q.$ref)||le)&&!d.includesCycle(Q)){E.add(e),this.errorContext.push(e);const be=new pd({reference:R,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:d,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{Q=await yv(Q,be,{keyMap:Js,nodeTypeGetter:as})}catch(ce){return this.indirections.pop(),this.handleDereferenceError(ce,e,{directAncestors:E,isExternalReference:P})}E.delete(e),this.popErrorContext(e)}if((c=this.options.dereference.dereferenceOpts)!==null&&c!==void 0&&c.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:Q}),this.indirections.pop(),zp(Q)){var ve;const be=new $u([...Q.content],hr(Q.meta),hr(Q.attributes));be.setMetaProperty("id",So.generateId()),e.forEach(((ce,_e,Ae)=>{be.remove(Et(_e)),be.content.push(Ae)})),be.remove("$ref"),be.setMetaProperty("ref-fields",{$ref:Et(e.$ref)}),be.setMetaProperty("ref-origin",R.uri),be.setMetaProperty("ref-referencing-element-id",hr(So.identify(e))),(ve=this.options.dereference.dereferenceOpts)!==null&&ve!==void 0&&ve.continueOnError&&be.setMetaProperty("ref-referencing-element",e),Q=be}return p.replaceWith(Q,os),n?void 0:Q}async LinkElement(e,r,n,a,o,p){if(!Ir(e.operationRef)&&!Ir(e.operationId))return;if(Ir(e.operationRef)&&Ir(e.operationId)){const x=new Mt("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(x,e)}let c;if(Ir(e.operationRef)){var d;const x=rs(Et(e.operationRef)),k=this.toBaseURI(Et(e.operationRef)),P=In(this.reference.uri)===k,R=!P;if(!this.options.resolve.internal&&P||!this.options.resolve.external&&R)return;let L;try{L=await this.toReference(Et(e.operationRef)),c=Us(L.value.result,x)}catch(Q){return this.handleDereferenceError(Q,e,{isExternalReference:R})}if($p(c)){const Q=`operation-${Et(So.identify(c))}`;this.refractCache.has(Q)?c=this.refractCache.get(Q):(c=vm.refract(c),this.refractCache.set(Q,c))}c=no(c),c.setMetaProperty("ref-origin",L.uri);const V=no(e);return(d=V.operationRef)===null||d===void 0||d.meta.set("operation",c),p.replaceWith(V,os),n?void 0:V}if(Ir(e.operationId)){var E;const x=Et(e.operationId);let k;try{k=await this.toReference(Fl(this.reference.uri))}catch(R){return this.handleDereferenceError(R,e)}if(c=q2((R=>j2(R)&&da(R.operationId)&&R.operationId.equals(x)),k.value.result),Iu(c)){const R=new Mt(`OperationElement(operationId=${x}) not found.`);return this.handleDereferenceError(R,e)}const P=no(e);return(E=P.operationId)===null||E===void 0||E.meta.set("operation",c),p.replaceWith(P,os),n?void 0:P}}async ExampleElement(e,r,n,a,o,p){if(!Ir(e.externalValue))return;if(e.hasKey("value")&&Ir(e.externalValue)){const R=new Mt("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(R,e)}const c=this.toBaseURI(Et(e.externalValue)),d=In(this.reference.uri)===c,E=!d;if(!this.options.resolve.internal&&d||!this.options.resolve.external&&E)return;let x;try{x=await this.toReference(Et(e.externalValue))}catch(R){return this.handleDereferenceError(R,e,{isExternalReference:E})}const k=no(x.value.result);k.setMetaProperty("ref-origin",x.uri);const P=no(e);return P.value=k,p.replaceWith(P,os),n?void 0:P}async MemberElement(e,r,n,a,o,p){var c;const d=o[o.length-1];if(!hn(d)||!d.classes.contains("discriminator-mapping"))return;if((c=this.options.dereference.strategyOpts["openapi-3-1"])===null||c===void 0||!c.dereferenceDiscriminatorMapping||!Ir(e.key)||!Ir(e.value)||this.indirections.includes(e))return!1;this.indirections.push(e);const[E,x]=this.toAncestorLineage([...o,n]),k=[...x].findLast(Vs),P=hr(k.getMetaProperty("ancestorsSchemaIdentifiers")),R=Et(e.value),L=/^[a-zA-Z0-9\\.\\-_]+$/.test(R)?`#/components/schemas/${R}`:R,V=new qu({$ref:L});V.setMetaProperty("ancestorsSchemaIdentifiers",P),x.add(V);const Q=new pd({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(V),refractCache:this.refractCache,ancestors:E,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});let J;try{J=await yv(V,Q,{keyMap:Js,nodeTypeGetter:as})}catch(me){const le=!L.startsWith("#");return this.handleDereferenceError(me,V,{directAncestors:x,isExternalReference:le})}x.delete(V),this.indirections.pop();const re=no(e);return re.value.setMetaProperty("ref-schema",J),p.replaceWith(re,os),n?void 0:re}async SchemaElement(e,r,n,a,o,p){var c;if(!Ir(e.$ref))return;if(this.indirections.includes(e))return!1;const[d,E]=this.toAncestorLineage([...o,n]);let x;try{x=await this.toReference(Fl(this.reference.uri))}catch(je){return this.handleDereferenceError(je,e,{directAncestors:E})}let{uri:k}=x;const P=z2(k,e),R=In(P),L=new ld({uri:R}),V=_8((je=>je.canRead(L)),this.options.resolve.resolvers),Q=!V;let J,re=In(this.reference.uri)===P,me=!re;this.indirections.push(e);try{if(V||Q){k=this.toBaseURI(P);const je=P,G=qo(x.value.result);if(J=gv(je,G),J=qo(J),J.id=So.identify(J),!this.options.resolve.internal&&re||!this.options.resolve.external&&me)return}else{if(k=this.toBaseURI(P),re=In(this.reference.uri)===k,me=!re,!this.options.resolve.internal&&re||!this.options.resolve.external&&me)return;x=await this.toReference(Fl(P));const je=rs(P),G=qo(x.value.result);J=Us(G,je),J=qo(J),J.id=So.identify(J)}}catch(je){if(!(Q&&je instanceof g1))return this.indirections.pop(),this.handleDereferenceError(je,e,{directAncestors:E,isExternalReference:me});if(mv(cd(P))){if(re=In(this.reference.uri)===k,me=!re,!this.options.resolve.internal&&re||!this.options.resolve.external&&me)return;try{x=await this.toReference(Fl(P))}catch(Ne){return this.indirections.pop(),this.handleDereferenceError(Ne,e,{directAncestors:E,isExternalReference:me})}const G=cd(P),de=qo(x.value.result);try{J=m1(G,de)}catch(Ne){return this.indirections.pop(),this.handleDereferenceError(Ne,e,{directAncestors:E,isExternalReference:me})}J=qo(J),J.id=So.identify(J)}else{if(k=this.toBaseURI(P),re=In(this.reference.uri)===k,me=!re,!this.options.resolve.internal&&re||!this.options.resolve.external&&me)return;try{x=await this.toReference(Fl(P))}catch(Ne){return this.indirections.pop(),this.handleDereferenceError(Ne,e,{directAncestors:E,isExternalReference:me})}const G=rs(P),de=qo(x.value.result);try{J=Us(de,G)}catch(Ne){return this.indirections.pop(),this.handleDereferenceError(Ne,e,{directAncestors:E,isExternalReference:me})}J=qo(J),J.id=So.identify(J)}}if(e===J){const je=new Mt("Recursive Schema Object reference detected");return this.indirections.pop(),this.handleDereferenceError(je,e,{directAncestors:E,isExternalReference:me})}if(this.indirections.length>this.options.dereference.maxDepth){const je=new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(je,e,{directAncestors:E,isExternalReference:me})}if(d.includes(J)){if(x.refSet.circular=!0,this.options.dereference.circular==="error"){const je=new Mt("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(je,e,{directAncestors:E,isExternalReference:me})}if(this.options.dereference.circular==="replace"){var le,ve;const je=new Ge.sI(J.id,{type:"json-schema",uri:x.uri,$ref:Et(e.$ref)}),G=((le=(ve=this.options.dereference.strategyOpts["openapi-3-1"])===null||ve===void 0?void 0:ve.circularReplacer)!==null&&le!==void 0?le:this.options.dereference.circularReplacer)(je);return p.replaceWith(G,os),!n&&G}}const be=In(x.refSet.rootRef.uri)!==x.uri,ce=["error","replace"].includes(this.options.dereference.circular);if((me||be||Vs(J)&&Ir(J.$ref)||ce)&&!d.includesCycle(J)){E.add(e),this.errorContext.push(e);const je=new pd({reference:x,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:d,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{J=await yv(J,je,{keyMap:Js,nodeTypeGetter:as})}catch(G){return this.indirections.pop(),this.handleDereferenceError(G,e,{directAncestors:E,isExternalReference:me})}E.delete(e),this.popErrorContext(e)}if((c=this.options.dereference.dereferenceOpts)!==null&&c!==void 0&&c.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:J}),this.indirections.pop(),a1(J)){const je=hr(J);return je.setMetaProperty("id",So.generateId()),je.setMetaProperty("ref-fields",{$ref:Et(e.$ref),$refBaseURI:P}),je.setMetaProperty("ref-origin",x.uri),je.setMetaProperty("ref-referencing-element-id",hr(So.identify(e))),p.replaceWith(je,os),!n&&je}if(Vs(J)){var _e,Ae;const je=new qu([...J.content],hr(J.meta),hr(J.attributes));if(je.setMetaProperty("id",So.generateId()),e.forEach(((G,de,Ne)=>{je.remove(Et(de)),je.content.push(Ne)})),je.remove("$ref"),je.setMetaProperty("ref-fields",{$ref:Et(e.$ref),$refBaseURI:P}),je.setMetaProperty("ref-origin",x.uri),je.setMetaProperty("ref-referencing-element-id",hr(So.identify(e))),(_e=this.options.dereference.dereferenceOpts)!==null&&_e!==void 0&&_e.continueOnError&&je.setMetaProperty("ref-referencing-element",e),(Ae=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&Ae!==void 0&&Ae.dereferenceDiscriminatorMapping){var xe;const G=o[o.length-1],de=[...E].findLast(Vs),Ne=de?.getMetaProperty("schemaName"),Ye=Et(je.getMetaProperty("schemaName"));if(Ye&&Ne&&G!=null&&(xe=G.classes)!==null&&xe!==void 0&&xe.contains("json-schema-allOf")){var Oe;const ht=(Oe=this.allOfDiscriminatorMapping.get(Ye))!==null&&Oe!==void 0?Oe:[];ht.push(de),this.allOfDiscriminatorMapping.set(Ye,ht)}}J=je}return p.replaceWith(J,os),n?void 0:J}}const H2=pd,M8=Pa[Symbol.for("nodejs.util.promisify.custom")],R8=class extends x8{constructor(e){super({...e??{},name:"openapi-3-1"})}canDereference(e){var r;return e.mediaType!=="text/plain"?id.includes(e.mediaType):C2((r=e.parseResult)===null||r===void 0?void 0:r.result)}async dereference(e,r){var n;const a=Ac(s1),o=(n=r.dereference.refSet)!==null&&n!==void 0?n:new sd,p=new sd;let c,d=o;o.has(e.uri)?c=o.find($2(e.uri,"uri")):(c=new Cc({uri:e.uri,value:e.parseResult}),o.add(c)),r.dereference.immutable&&(o.refs.map((k=>new Cc({...k,value:hr(k.value)}))).forEach((k=>p.add(k))),c=p.find((k=>k.uri===e.uri)),d=p);const E=new H2({reference:c,namespace:a,options:r}),x=await M8(d.rootRef.value,E,{keyMap:Js,nodeTypeGetter:as});return r.dereference.immutable&&p.refs.filter((k=>k.uri.startsWith("immutable://"))).map((k=>new Cc({...k,uri:k.uri.replace(/^immutable:\/\//,"")}))).forEach((k=>o.add(k))),r.dereference.refSet===null&&o.clean(),p.clean(),x}},Ws=t=>{const e=(r=>r.slice(2))(t);return e.reduce(((r,n,a)=>{if(Bs(n)){const o=String(Et(n.key));r.push(o)}else if(vo(e[a-2])){const o=e[a-2].content.indexOf(n);r.push(o)}return r}),[])},D8=class{modelPropertyMacro;options;SchemaElement={leave:(e,r,n,a,o)=>{e.properties!==void 0&&hn(e.properties)&&e.properties.forEach((p=>{if(hn(p))try{const c=this.modelPropertyMacro(Et(p));p.set("default",c)}catch(c){const d=new Error(c,{cause:c});d.fullPath=[...Ws([...o,n,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(d)}}))}};constructor({modelPropertyMacro:e,options:r}){this.modelPropertyMacro=e,this.options=r}};var F8=(function(){function t(e,r){this.xf=r,this.pred=e,this.items=[]}return t.prototype["@@transducer/init"]=Tu,t.prototype["@@transducer/result"]=Nf,t.prototype["@@transducer/step"]=function(e,r){return hy(this.pred,r,this.items)?e:(this.items.push(r),this.xf["@@transducer/step"](e,r))},t})();function L8(t){return function(e){return new F8(t,e)}}var $8=Tr(Nu([],L8,(function(t,e){for(var r,n=0,a=e.length,o=[];nEt(d)==="enum"?(E,x)=>{if(Yh(["json-schema-enum"],E)&&Yh(["json-schema-enum"],x)){const k=(R,L)=>!(vo(R)||vo(L)||hn(R)||hn(L))&&R.equals(Et(L)),P=no(E);return P.content=K2(k)([...E.content,...x.content]),P}return qp(E,x)}:qp});if(e.hasKey("$$ref")||c.remove("$$ref"),e.hasKey("example")){const d=c.getMember("example");d&&(d.value=e.get("example"))}if(e.hasKey("examples")){const d=c.getMember("examples");d&&(d.value=e.get("examples"))}e.content=c.content}}}};constructor({options:e}){this.options=e}},q8=class{parameterMacro;options;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,r,n,a,o)=>{const p=this.#e?Et(this.#e):null,c=Et(e);try{const d=this.parameterMacro(p,c);e.set("default",d)}catch(d){const E=new Error(d,{cause:d});E.fullPath=Ws([...o,n]),this.options.dereference.dereferenceOpts?.errors?.push?.(E)}}};constructor({parameterMacro:e,options:r}){this.parameterMacro=e,this.options=r}},vv=t=>{if(t.cause==null)return t;let{cause:e}=t;for(;e.cause!=null;)e=e.cause;return e},U8=class extends xr{},{wrapError:v1}=RE,b1=Pa[Symbol.for("nodejs.util.promisify.custom")],is=new f1,Jp=(t,e,r,n)=>{Bs(n)?n.value=t:Array.isArray(n)&&(n[r]=t)};class Cm extends H2{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:r=!1,basePath:n=null,...a}){super(a),this.allowMetaPatches=e,this.useCircularStructures=r,this.basePath=n}async ReferenceElement(e,r,n,a,o,p){try{var c,d;if(Yn()(c=this.indirections).call(c,e))return!1;const[E,x]=this.toAncestorLineage([...o,n]),k=this.toBaseURI(Et(e.$ref)),P=In(this.reference.uri)===k,R=!P;if(!this.options.resolve.internal&&P||!this.options.resolve.external&&R)return!1;const L=await this.toReference(Et(e.$ref)),V=go(k,Et(e.$ref));this.indirections.push(e);const Q=rs(V);let J=Us(L.value.result,Q);if(J.id=is.identify(J),$p(J)){const ve=Et(e.meta.get("referenced-element")),be=`${ve}-${Et(is.identify(J))}`;this.refractCache.has(be)?J=this.refractCache.get(be):Vn(J)?(J=od.refract(J),J.setMetaProperty("referenced-element",ve),this.refractCache.set(be,J)):(J=this.namespace.getElementClass(ve).refract(J),this.refractCache.set(be,J))}if(e===J)throw new Mt("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(Yn()(E).call(E,J)){if(L.refSet.circular=!0,this.options.dereference.circular==="error")throw new Mt("Circular reference detected");if(this.options.dereference.circular==="replace"){const ve=new Ge.sI(J.id,{type:"reference",uri:L.uri,$ref:Et(e.$ref),baseURI:V,referencingElement:e}),be=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(ve);return p.replaceWith(ve,Jp),!n&&be}}const re=In(L.refSet.rootRef.uri)!==L.uri,me=Yn()(d=["error","replace"]).call(d,this.options.dereference.circular);if((R||re||Vp(J)||me)&&!E.includesCycle(J)){x.add(e);const ve=new Cm({reference:L,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:E,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...Ws([...o,n,e]),"$ref"]});J=await b1(J,ve,{keyMap:Js,nodeTypeGetter:as}),x.delete(e)}this.indirections.pop();const le=no(J);if(le.setMetaProperty("ref-fields",{$ref:Et(e.$ref),description:Et(e.description),summary:Et(e.summary)}),le.setMetaProperty("ref-origin",L.uri),le.setMetaProperty("ref-referencing-element-id",hr(is.identify(e))),hn(J)&&(e.hasKey("description")&&"description"in J&&(le.remove("description"),le.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in J&&(le.remove("summary"),le.set("summary",e.get("summary")))),this.allowMetaPatches&&hn(le)&&!le.hasKey("$$ref")){const ve=go(k,V);le.set("$$ref",ve)}return p.replaceWith(le,Jp),!n&&le}catch(E){const x=vv(E),k=v1(x,{baseDoc:this.reference.uri,$ref:Et(e.$ref),pointer:rs(Et(e.$ref)),fullPath:this.basePath??[...Ws([...o,n,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(k)}}async PathItemElement(e,r,n,a,o,p){try{var c,d;if(!Ir(e.$ref))return;if(Yn()(c=this.indirections).call(c,e)||Yh(["cycle"],e.$ref))return!1;const[E,x]=this.toAncestorLineage([...o,n]),k=this.toBaseURI(Et(e.$ref)),P=In(this.reference.uri)===k,R=!P;if(!this.options.resolve.internal&&P||!this.options.resolve.external&&R)return;const L=await this.toReference(Et(e.$ref)),V=go(k,Et(e.$ref));this.indirections.push(e);const Q=rs(V);let J=Us(L.value.result,Q);if(J.id=is.identify(J),$p(J)){const le=`path-item-${Et(is.identify(J))}`;this.refractCache.has(le)?J=this.refractCache.get(le):(J=$u.refract(J),this.refractCache.set(le,J))}if(e===J)throw new Mt("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(Yn()(E).call(E,J)){if(L.refSet.circular=!0,this.options.dereference.circular==="error")throw new Mt("Circular reference detected");if(this.options.dereference.circular==="replace"){const le=new Ge.sI(J.id,{type:"path-item",uri:L.uri,$ref:Et(e.$ref),baseURI:V,referencingElement:e}),ve=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(le);return p.replaceWith(le,Jp),!n&&ve}}const re=In(L.refSet.rootRef.uri)!==L.uri,me=Yn()(d=["error","replace"]).call(d,this.options.dereference.circular);if((R||re||zp(J)&&Ir(J.$ref)||me)&&!E.includesCycle(J)){x.add(e);const le=new Cm({reference:L,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:E,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...Ws([...o,n,e]),"$ref"]});J=await b1(J,le,{keyMap:Js,nodeTypeGetter:as}),x.delete(e)}if(this.indirections.pop(),zp(J)){const le=new $u([...J.content],hr(J.meta),hr(J.attributes));if(e.forEach(((ve,be,ce)=>{le.remove(Et(be)),le.content.push(ce)})),le.remove("$ref"),le.setMetaProperty("ref-fields",{$ref:Et(e.$ref)}),le.setMetaProperty("ref-origin",L.uri),le.setMetaProperty("ref-referencing-element-id",hr(is.identify(e))),this.allowMetaPatches&&le.get("$$ref")===void 0){const ve=go(k,V);le.set("$$ref",ve)}J=le}return p.replaceWith(J,Jp),n?void 0:J}catch(E){const x=vv(E),k=v1(x,{baseDoc:this.reference.uri,$ref:Et(e.$ref),pointer:rs(Et(e.$ref)),fullPath:this.basePath??[...Ws([...o,n,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(k)}}async SchemaElement(e,r,n,a,o,p){try{var c,d;if(!Ir(e.$ref))return;if(Yn()(c=this.indirections).call(c,e))return!1;const[E,x]=this.toAncestorLineage([...o,n]);let k=await this.toReference(Fl(this.reference.uri)),{uri:P}=k;const R=z2(P,e),L=In(R),V=new ld({uri:L}),Q=!this.options.resolve.resolvers.some((ce=>ce.canRead(V))),J=!Q;let re,me=In(this.reference.uri)===R,le=!me;this.indirections.push(e);try{if(Q||J){P=this.toBaseURI(R);const ce=R,_e=qo(k.value.result);if(re=gv(ce,_e),re=qo(re),re.id=is.identify(re),!this.options.resolve.internal&&me||!this.options.resolve.external&&le)return}else{if(P=this.toBaseURI(R),me=In(this.reference.uri)===P,le=!me,!this.options.resolve.internal&&me||!this.options.resolve.external&&le)return;k=await this.toReference(Fl(R));const ce=rs(R),_e=qo(k.value.result);re=Us(_e,ce),re=qo(re),re.id=is.identify(re)}}catch(ce){if(!(J&&ce instanceof g1))throw ce;if(mv(cd(R))){if(me=In(this.reference.uri)===P,le=!me,!this.options.resolve.internal&&me||!this.options.resolve.external&&le)return;k=await this.toReference(Fl(R));const _e=cd(R),Ae=qo(k.value.result);re=m1(_e,Ae),re=qo(re),re.id=is.identify(re)}else{if(P=this.toBaseURI(Et(R)),me=In(this.reference.uri)===P,le=!me,!this.options.resolve.internal&&me||!this.options.resolve.external&&le)return;k=await this.toReference(Fl(R));const _e=rs(R),Ae=qo(k.value.result);re=Us(Ae,_e),re=qo(re),re.id=is.identify(re)}}if(e===re)throw new Mt("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new ud(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(Yn()(E).call(E,re)){if(k.refSet.circular=!0,this.options.dereference.circular==="error")throw new Mt("Circular reference detected");if(this.options.dereference.circular==="replace"){const ce=new Ge.sI(re.id,{type:"json-schema",uri:k.uri,$ref:Et(e.$ref),baseURI:go(P,R),referencingElement:e}),_e=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(ce);return p.replaceWith(_e,Jp),!n&&_e}}const ve=In(k.refSet.rootRef.uri)!==k.uri,be=Yn()(d=["error","replace"]).call(d,this.options.dereference.circular);if((le||ve||Vs(re)&&Ir(re.$ref)||be)&&!E.includesCycle(re)){x.add(e);const ce=new Cm({reference:k,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:E,basePath:this.basePath??[...Ws([...o,n,e]),"$ref"]});re=await b1(re,ce,{keyMap:Js,nodeTypeGetter:as}),x.delete(e)}if(this.indirections.pop(),a1(re)){const ce=hr(re);return ce.setMetaProperty("ref-fields",{$ref:Et(e.$ref)}),ce.setMetaProperty("ref-origin",k.uri),ce.setMetaProperty("ref-referencing-element-id",hr(is.identify(e))),p.replaceWith(ce,Jp),!n&&ce}if(Vs(re)){const ce=new qu([...re.content],hr(re.meta),hr(re.attributes));if(e.forEach(((_e,Ae,xe)=>{ce.remove(Et(Ae)),ce.content.push(xe)})),ce.remove("$ref"),ce.setMetaProperty("ref-fields",{$ref:Et(e.$ref)}),ce.setMetaProperty("ref-origin",k.uri),ce.setMetaProperty("ref-referencing-element-id",hr(is.identify(e))),this.allowMetaPatches&&ce.get("$$ref")===void 0){const _e=go(P,R);ce.set("$$ref",_e)}re=ce}return p.replaceWith(re,Jp),n?void 0:re}catch(E){const x=vv(E),k=new U8(`Could not resolve reference: ${x.message}`,{baseDoc:this.reference.uri,$ref:Et(e.$ref),fullPath:this.basePath??[...Ws([...o,n,e]),"$ref"],cause:x});return void this.options.dereference.dereferenceOpts?.errors?.push?.(k)}}async LinkElement(){}async ExampleElement(e,r,n,a,o,p){try{return await super.ExampleElement(e,r,n,a,o,p)}catch(c){const d=vv(c),E=v1(d,{baseDoc:this.reference.uri,externalValue:Et(e.externalValue),fullPath:this.basePath??[...Ws([...o,n,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(E)}}}const z8=Cm,V8=Cy[Symbol.for("nodejs.util.promisify.custom")],J8=class{constructor({parameterMacro:e,modelPropertyMacro:r,mode:n,options:a,...o}){const p=[];p.push(new z8({...o,options:a})),typeof r=="function"&&p.push(new D8({modelPropertyMacro:r,options:a})),n!=="strict"&&p.push(new B8({options:a})),typeof e=="function"&&p.push(new q8({parameterMacro:e,options:a}));const c=V8(p,{nodeTypeGetter:as});Object.assign(this,c)}},W8=Pa[Symbol.for("nodejs.util.promisify.custom")],H8=class extends R8{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:r=null,modelPropertyMacro:n=null,mode:a="non-strict",ancestors:o=[],...p}={}){super({...p}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=r,this.modelPropertyMacro=n,this.mode=a,this.ancestors=[...o]}async dereference(e,r){const n=Ac(s1),a=r.dereference.refSet??new sd,o=new sd;let p,c=a;a.has(e.uri)?p=a.find((x=>x.uri===e.uri)):(p=new Cc({uri:e.uri,value:e.parseResult}),a.add(p)),r.dereference.immutable&&(a.refs.map((x=>new Cc({...x,value:hr(x.value)}))).forEach((x=>o.add(x))),p=o.find((x=>x.uri===e.uri)),c=o);const d=new J8({reference:p,namespace:n,options:r,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),E=await W8(c.rootRef.value,d,{keyMap:Js,nodeTypeGetter:as});return r.dereference.immutable&&o.refs.filter((x=>x.uri.startsWith("immutable://"))).map((x=>new Cc({...x,uri:x.uri.replace(/^immutable:\/\//,"")}))).forEach((x=>a.add(x))),r.dereference.refSet===null&&a.clean(),o.clean(),E}},K8=t=>{const e=Et(t.meta.get("baseURI")),r=t.meta.get("referencingElement");return new Ge.Sh({$ref:e},hr(r.meta),hr(r.attributes))},w1=async t=>{const{spec:e,timeout:r,redirects:n,requestInterceptor:a,responseInterceptor:o,pathDiscriminator:p=[],allowMetaPatches:c=!1,useCircularStructures:d=!1,skipNormalization:E=!1,parameterMacro:x=null,modelPropertyMacro:k=null,mode:P="non-strict",strategies:R}=t;try{const{cache:L}=w1,V=R.find((Ne=>Ne.match(e))),Q=j0(P0())?P0():Sy,J=z0(t),re=go(Q,J);let me;L.has(e)?me=L.get(e):(me=Lu.refract(e),me.classes.push("result"),L.set(e,me));const le=new $s([me]),ve=_S(p),be=ve===""?"":`#${ve}`,ce=Us(me,ve),_e=new Cc({uri:re,value:le}),Ae=new sd({refs:[_e]});ve!==""&&(Ae.rootRef=void 0);const xe=[new Set([ce])],Oe=[],je=await(async(Ne,Ye={})=>{const ht=R2(I2,Ye);return u8(Ne,ht)})(ce,{resolve:{baseURI:`${re}${be}`,resolvers:[new v8({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:a,responseInterceptor:o}},strategies:[new d8]},parse:{mediaType:id.latest(),parsers:[new E8({allowEmpty:!1,sourceMap:!1}),new S8({allowEmpty:!1,sourceMap:!1}),new b8({allowEmpty:!1,sourceMap:!1}),new w8({allowEmpty:!1,sourceMap:!1}),new p8({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new H8({allowMetaPatches:c,useCircularStructures:d,parameterMacro:x,modelPropertyMacro:k,mode:P,ancestors:xe})],refSet:Ae,dereferenceOpts:{errors:Oe},immutable:!1,circular:d?"ignore":"replace",circularReplacer:d?I2.dereference.circularReplacer:K8}}),G=((Ne,Ye,ht)=>new lj({element:ht}).transclude(Ne,Ye))(ce,je,me),de=E?G:V.normalize(G);return{spec:Et(de),errors:Oe}}catch(L){if(L instanceof Bp)return{spec:e,errors:[]};throw L}};w1.cache=new WeakMap;const G2=w1;function Y2(t,e,r){if(r||(r=new G8),(function(o){var p=typeof o;return o==null||p!="object"&&p!="function"})(t))return t;var n=function(o){var p=r.get(t);if(p)return p;for(var c in r.set(t,o),t)Object.prototype.hasOwnProperty.call(t,c)&&(o[c]=t[c]);return o};switch(Fs(t)){case"Object":return n(Object.create(Object.getPrototypeOf(t)));case"Array":return n(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return(function(o){return new RegExp(o.source,o.flags?o.flags:(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":"")+(o.dotAll?"s":""))})(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}var G8=(function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){var n=this.hash(e),a=this.map[n];a||(this.map[n]=a=[]),a.push([e,r]),this.length+=1},t.prototype.hash=function(e){var r=[];for(var n in e)r.push(Object.prototype.toString.call(e[n]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(var r in this.map)for(var n=this.map[r],a=0;at.replace(/\s/g,""),S1=t=>t.replace(/\W/gi,"_"),eM=(t,e,r)=>{const n=E1(t);return n.length>0?S1(n):((a,o)=>`${S1(E1(o.toLowerCase()))}${S1(E1(a))}`)(e,r)},tM=({storageField:t="x-normalized",operationIdNormalizer:e=eM}={})=>r=>{const{predicates:n,ancestorLineageToJSONPointer:a,namespace:o}=r,p=[],c=[],d=[];let E;return{visitor:{OpenApi3_1Element:{enter(x){E=new jm(x,t,"operation-ids")},leave(){const x=Z8((k=>Et(k.operationId)),c);Object.entries(x).forEach((([k,P])=>{Array.isArray(P)&&(P.length<=1||P.forEach(((R,L)=>{const V=`${k}${L+1}`;R.operationId=new o.elements.String(V)})))})),d.forEach((k=>{if(k.operationId===void 0)return;const P=String(Et(k.operationId)),R=c.find((L=>Et(L.meta.get("originalOperationId"))===P));R!==void 0&&(k.operationId=hr.safe(R.operationId),k.meta.set("originalOperationId",P),k.set("__originalOperationId",P))})),c.length=0,d.length=0,E=void 0}},PathItemElement:{enter(x){const k=Jh("path",Et(x.meta.get("path")));p.push(k)},leave(){p.pop()}},OperationElement:{enter(x,k,P,R,L){if(x.operationId===void 0)return;const V=a([...L,P,x]);if(E.includes(V))return;const Q=String(Et(x.operationId)),J=py(p),re=Jh("method",Et(x.meta.get("http-method"))),me=e(Q,J,re);Q!==me&&(x.operationId=new o.elements.String(me),x.set("__originalOperationId",Q),x.meta.set("originalOperationId",Q),c.push(x),E.append(V))}},LinkElement:{leave(x){n.isLinkElement(x)&&x.operationId!==void 0&&d.push(x)}}}}},rM=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e,a=(c,d)=>!!r.isParameterElement(c)&&!!r.isParameterElement(d)&&!!r.isStringElement(c.name)&&!!r.isStringElement(c.in)&&!!r.isStringElement(d.name)&&!!r.isStringElement(d.in)&&Et(c.name)===Et(d.name)&&Et(c.in)===Et(d.in),o=[];let p;return{visitor:{OpenApi3_1Element:{enter(c){p=new jm(c,t,"parameters")},leave(){p=void 0}},PathItemElement:{enter(c,d,E,x,k){if(k.some(r.isComponentsElement))return;const{parameters:P}=c;r.isArrayElement(P)?o.push([...P.content]):o.push([])},leave(){o.pop()}},OperationElement:{leave(c,d,E,x,k){const P=py(o);if(!Array.isArray(P)||P.length===0)return;const R=n([...k,E,c]);if(p.includes(R))return;const L=B2([],["parameters","content"],c),V=K2(a,[...L,...P]);c.parameters=new i2(V),p.append(R)}}}}},nM=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let a,o;return{visitor:{OpenApi3_1Element:{enter(p){o=new jm(p,t,"security-requirements"),r.isArrayElement(p.security)&&(a=p.security)},leave(){o=void 0,a=void 0}},OperationElement:{leave(p,c,d,E,x){if(x.some(r.isComponentsElement))return;const k=n([...x,d,p]);if(!o.includes(k)){var P;p.security===void 0&&a!==void 0&&(p.security=new l2((P=a)===null||P===void 0?void 0:P.content),o.append(k))}}}}}},aM=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let a;return{visitor:{OpenApi3_1Element:{enter(o){a=new jm(o,t,"parameter-examples")},leave(){a=void 0}},ParameterElement:{leave(o,p,c,d,E){var x,k;if(E.some(r.isComponentsElement)||o.schema===void 0||!r.isSchemaElement(o.schema)||((x=o.schema)===null||x===void 0?void 0:x.example)===void 0&&((k=o.schema)===null||k===void 0?void 0:k.examples)===void 0)return;const P=n([...E,c,o]);if(!a.includes(P)){if(o.examples!==void 0&&r.isObjectElement(o.examples)){const R=o.examples.map((L=>hr.safe(L.value)));return o.schema.examples!==void 0&&(o.schema.set("examples",R),a.append(P)),void(o.schema.example!==void 0&&(o.schema.set("example",R[0]),a.append(P)))}o.example!==void 0&&(o.schema.examples!==void 0&&(o.schema.set("examples",[hr(o.example)]),a.append(P)),o.schema.example!==void 0&&(o.schema.set("example",hr(o.example)),a.append(P)))}}}}}},oM=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let a;return{visitor:{OpenApi3_1Element:{enter(o){a=new jm(o,t,"header-examples")},leave(){a=void 0}},HeaderElement:{leave(o,p,c,d,E){var x,k;if(E.some(r.isComponentsElement)||o.schema===void 0||!r.isSchemaElement(o.schema)||((x=o.schema)===null||x===void 0?void 0:x.example)===void 0&&((k=o.schema)===null||k===void 0?void 0:k.examples)===void 0)return;const P=n([...E,c,o]);if(!a.includes(P)){if(o.examples!==void 0&&r.isObjectElement(o.examples)){const R=o.examples.map((L=>hr.safe(L.value)));return o.schema.examples!==void 0&&(o.schema.set("examples",R),a.append(P)),void(o.schema.example!==void 0&&(o.schema.set("example",R[0]),a.append(P)))}o.example!==void 0&&(o.schema.examples!==void 0&&(o.schema.set("examples",[hr(o.example)]),a.append(P)),o.schema.example!==void 0&&(o.schema.set("example",hr(o.example)),a.append(P)))}}}}}},X2=t=>{if(!hn(t))return t;const e=[tM({operationIdNormalizer:(r,n,a)=>Df({operationId:r},n,a,{v2OperationIdCompatibilityMode:!1})}),rM(),nM(),aM(),oM()];return ql(t,e,{toolboxCreator:N2,visitorOptions:{keyMap:Js,nodeTypeGetter:as}})},iM={name:"openapi-3-1-apidom",match:t=>Y0(t),normalize(t){if(!da(t)&&Ls(t)&&!t.$$normalized){const r=(e=X2,n=>{const a=Lu.refract(n);a.classes.push("result");const o=e(a),p=Et(o);return G2.cache.set(p,o),Et(o)})(t);return r.$$normalized=!0,r}var e;return da(t)?X2(t):t},resolve:async t=>G2(t)},Q2=iM,Z2=t=>async e=>(async r=>{const{spec:n,requestInterceptor:a,responseInterceptor:o}=r,p=z0(r),c=YE(r),d=n||await zE(c,{requestInterceptor:a,responseInterceptor:o})(p),E={...r,spec:d};return r.strategies.find((x=>x.match(d))).resolve(E)})({...t,...e}),sM=Z2({strategies:[Q0,X0,G0]}),lM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["server-url-template",Ni.charsToString(e,r,n)])}return Br.SEM_OK},cM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["server-variable",Ni.charsToString(e,r,n)])}return Br.SEM_OK},uM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["server-variable-name",Ni.charsToString(e,r,n)])}return Br.SEM_OK},pM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["literals",Ni.charsToString(e,r,n)])}return Br.SEM_OK},hM=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"DIGIT",lower:"digit",index:4,isBkr:!1},this.rules[5]={name:"HEXDIG",lower:"hexdig",index:5,isBkr:!1},this.rules[6]={name:"pct-encoded",lower:"pct-encoded",index:6,isBkr:!1},this.rules[7]={name:"ucschar",lower:"ucschar",index:7,isBkr:!1},this.rules[8]={name:"iprivate",lower:"iprivate",index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){return`; OpenAPI Server URL templating ABNF syntax +server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2 +server-variable = "{" server-variable-name "}" +server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI) + +; https://www.rfc-editor.org/rfc/rfc6570#section-2.1 +; https://www.rfc-editor.org/errata/eid6937 +literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B + / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate + / pct-encoded) + ; any Unicode character except: CTL, SP, + ; DQUOTE, "%" (aside from pct-encoded), + ; "<", ">", "\\", "^", "\`", "{", "|", "}" + +; https://www.rfc-editor.org/rfc/rfc6570#section-1.5 +DIGIT = %x30-39 ; 0-9 +HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive + +pct-encoded = "%" HEXDIG HEXDIG + +ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF + / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD + / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD + / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD + / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD + / %xD0000-DFFFD / %xE1000-EFFFD + +iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD +`}},ex=t=>{const e=new ns;return e.ast=new ib,e.ast.callbacks["server-url-template"]=lM,e.ast.callbacks["server-variable"]=cM,e.ast.callbacks["server-variable-name"]=uM,e.ast.callbacks.literals=pM,{result:e.parse(hM,"server-url-template",t),ast:e.ast}},dM=(t,{strict:e=!1}={})=>{try{const r=ex(t);if(!r.result.success)return!1;const n=[];r.ast.translate(n);const a=n.some((([o])=>o==="server-variable"));if(!e&&!a)try{return new URL(t,"https://vladimirgorej.com"),!0}catch{return!1}return!e||a}catch{return!1}},fM=t=>(e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}})(t)?t:encodeURIComponent(t).replace(/%5B/g,"[").replace(/%5D/g,"]"),mM=["literals","server-variable-name"],gM=(t,e,r={})=>{const n={encoder:fM,...r},a=ex(t);if(!a.result.success)return t;const o=[];return a.ast.translate(o),o.filter((([c])=>mM.includes(c))).map((([c,d])=>c==="server-variable-name"?Object.hasOwn(e,d)?n.encoder(e[d],d):`{${d}}`:d)).join("")};function tx(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path-segment",lower:"path-segment",index:1,isBkr:!1},this.rules[2]={name:"slash",lower:"slash",index:2,isBkr:!1},this.rules[3]={name:"path-literal",lower:"path-literal",index:3,isBkr:!1},this.rules[4]={name:"template-expression",lower:"template-expression",index:4,isBkr:!1},this.rules[5]={name:"template-expression-param-name",lower:"template-expression-param-name",index:5,isBkr:!1},this.rules[6]={name:"pchar",lower:"pchar",index:6,isBkr:!1},this.rules[7]={name:"unreserved",lower:"unreserved",index:7,isBkr:!1},this.rules[8]={name:"pct-encoded",lower:"pct-encoded",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ALPHA",lower:"alpha",index:10,isBkr:!1},this.rules[11]={name:"DIGIT",lower:"digit",index:11,isBkr:!1},this.rules[12]={name:"HEXDIG",lower:"hexdig",index:12,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:2},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:1},this.rules[0].opcodes[5]={type:4,index:2},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:1,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:4},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:7,string:[47]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:2,children:[1,2,3]},this.rules[4].opcodes[1]={type:7,string:[123]},this.rules[4].opcodes[2]={type:4,index:5},this.rules[4].opcodes[3]={type:7,string:[125]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:1,max:1/0},this.rules[5].opcodes[1]={type:1,children:[2,3,4]},this.rules[5].opcodes[2]={type:5,min:0,max:122},this.rules[5].opcodes[3]={type:6,string:[124]},this.rules[5].opcodes[4]={type:5,min:126,max:1114111},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[6].opcodes[4]={type:7,string:[58]},this.rules[6].opcodes[5]={type:7,string:[64]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[7].opcodes[1]={type:4,index:10},this.rules[7].opcodes[2]={type:4,index:11},this.rules[7].opcodes[3]={type:7,string:[45]},this.rules[7].opcodes[4]={type:7,string:[46]},this.rules[7].opcodes[5]={type:7,string:[95]},this.rules[7].opcodes[6]={type:7,string:[126]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2,3]},this.rules[8].opcodes[1]={type:7,string:[37]},this.rules[8].opcodes[2]={type:4,index:12},this.rules[8].opcodes[3]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){return`; OpenAPI Path Templating ABNF syntax +; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3 +path-template = slash *( path-segment slash ) [ path-segment ] +path-segment = 1*( path-literal / template-expression ) +slash = "/" +path-literal = 1*pchar +template-expression = "{" template-expression-param-name "}" +template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI) + +; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3 +pchar = unreserved / pct-encoded / sub-delims / ":" / "@" +unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" + ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3 +pct-encoded = "%" HEXDIG HEXDIG + ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1 +sub-delims = "!" / "$" / "&" / "'" / "(" / ")" + / "*" / "+" / "," / ";" / "=" + ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2 + +; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1 +ALPHA = %x41-5A / %x61-7A ; A-Z / a-z +DIGIT = %x30-39 ; 0-9 +HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" +`}}const yM=(t,e,r,n,a)=>(t===Br.SEM_PRE?a.push(["slash",Ni.charsToString(e,r,n)]):Br.SEM_POST,Br.SEM_OK),vM=(t,e,r,n,a)=>{if(t===Br.SEM_PRE){if(Array.isArray(a)===!1)throw new Error("parser's user data must be an array");a.push(["path-template",Ni.charsToString(e,r,n)])}return Br.SEM_OK},bM=(t,e,r,n,a)=>(t===Br.SEM_PRE?a.push(["path-literal",Ni.charsToString(e,r,n)]):Br.SEM_POST,Br.SEM_OK),wM=(t,e,r,n,a)=>(t===Br.SEM_PRE?a.push(["template-expression",Ni.charsToString(e,r,n)]):Br.SEM_POST,Br.SEM_OK),EM=(t,e,r,n,a)=>(t===Br.SEM_PRE?a.push(["template-expression-param-name",Ni.charsToString(e,r,n)]):Br.SEM_POST,Br.SEM_OK),SM=new tx,xM=t=>{const e=new ns;return e.ast=new ib,e.ast.callbacks["path-template"]=vM,e.ast.callbacks.slash=yM,e.ast.callbacks["path-literal"]=bM,e.ast.callbacks["template-expression"]=wM,e.ast.callbacks["template-expression-param-name"]=EM,{result:e.parse(SM,"path-template",t),ast:e.ast}},_M=t=>(e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}})(t)?t:encodeURIComponent(t).replace(/%5B/g,"[").replace(/%5D/g,"]"),OM=["slash","path-literal","template-expression-param-name"],x1=(t,e,r={})=>{const n={encoder:_M,...r},a=xM(t);if(!a.result.success)return t;const o=[];return a.ast.translate(o),o.filter((([c])=>OM.includes(c))).map((([c,d])=>c==="template-expression-param-name"?Object.prototype.hasOwnProperty.call(e,d)?n.encoder(e[d],d):`{${d}}`:d)).join("")};new tx,new ns;const kM={body:function({req:e,value:r}){r!==void 0&&(e.body=r)},header:function({req:e,parameter:r,value:n}){e.headers=e.headers||{},n!==void 0&&(e.headers[r.name]=n)},query:function({req:e,value:r,parameter:n}){if(e.query=e.query||{},r===!1&&n.type==="boolean"&&(r="false"),r===0&&["number","integer"].indexOf(n.type)>-1&&(r="0"),r)e.query[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&r!==void 0){const a=n.name;e.query[a]=e.query[a]||{},e.query[a].allowEmptyValue=!0}},path:function({req:e,value:r,parameter:n,baseURL:a}){if(r!==void 0){const o=e.url.replace(a,""),p=x1(o,{[n.name]:r});e.url=a+p}},formData:function({req:e,value:r,parameter:n}){if(r===!1&&n.type==="boolean"&&(r="false"),r===0&&["number","integer"].indexOf(n.type)>-1&&(r="0"),r)e.form=e.form||{},e.form[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&r!==void 0){e.form=e.form||{};const a=n.name;e.form[a]=e.form[a]||{},e.form[a].allowEmptyValue=!0}}};function bv(t,e){return Yn()(e).call(e,"application/json")?typeof t=="string"?t:(Array.isArray(t)&&(t=t.map((r=>{try{return JSON.parse(r)}catch{return r}}))),JSON.stringify(t)):String(t)}function Pm(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"lenient-cookie-string",lower:"lenient-cookie-string",index:0,isBkr:!1},this.rules[1]={name:"lenient-cookie-entry",lower:"lenient-cookie-entry",index:1,isBkr:!1},this.rules[2]={name:"lenient-cookie-pair",lower:"lenient-cookie-pair",index:2,isBkr:!1},this.rules[3]={name:"lenient-cookie-pair-invalid",lower:"lenient-cookie-pair-invalid",index:3,isBkr:!1},this.rules[4]={name:"lenient-cookie-name",lower:"lenient-cookie-name",index:4,isBkr:!1},this.rules[5]={name:"lenient-cookie-value",lower:"lenient-cookie-value",index:5,isBkr:!1},this.rules[6]={name:"lenient-quoted-value",lower:"lenient-quoted-value",index:6,isBkr:!1},this.rules[7]={name:"lenient-quoted-char",lower:"lenient-quoted-char",index:7,isBkr:!1},this.rules[8]={name:"lenient-cookie-octet",lower:"lenient-cookie-octet",index:8,isBkr:!1},this.rules[9]={name:"cookie-string",lower:"cookie-string",index:9,isBkr:!1},this.rules[10]={name:"cookie-pair",lower:"cookie-pair",index:10,isBkr:!1},this.rules[11]={name:"cookie-name",lower:"cookie-name",index:11,isBkr:!1},this.rules[12]={name:"cookie-value",lower:"cookie-value",index:12,isBkr:!1},this.rules[13]={name:"cookie-octet",lower:"cookie-octet",index:13,isBkr:!1},this.rules[14]={name:"OWS",lower:"ows",index:14,isBkr:!1},this.rules[15]={name:"token",lower:"token",index:15,isBkr:!1},this.rules[16]={name:"tchar",lower:"tchar",index:16,isBkr:!1},this.rules[17]={name:"CHAR",lower:"char",index:17,isBkr:!1},this.rules[18]={name:"CTL",lower:"ctl",index:18,isBkr:!1},this.rules[19]={name:"separators",lower:"separators",index:19,isBkr:!1},this.rules[20]={name:"SP",lower:"sp",index:20,isBkr:!1},this.rules[21]={name:"HT",lower:"ht",index:21,isBkr:!1},this.rules[22]={name:"ALPHA",lower:"alpha",index:22,isBkr:!1},this.rules[23]={name:"DIGIT",lower:"digit",index:23,isBkr:!1},this.rules[24]={name:"DQUOTE",lower:"dquote",index:24,isBkr:!1},this.rules[25]={name:"WSP",lower:"wsp",index:25,isBkr:!1},this.rules[26]={name:"HTAB",lower:"htab",index:26,isBkr:!1},this.rules[27]={name:"CRLF",lower:"crlf",index:27,isBkr:!1},this.rules[28]={name:"CR",lower:"cr",index:28,isBkr:!1},this.rules[29]={name:"LF",lower:"lf",index:29,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5,6]},this.rules[0].opcodes[4]={type:7,string:[59]},this.rules[0].opcodes[5]={type:4,index:14},this.rules[0].opcodes[6]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[2].opcodes[1]={type:4,index:14},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:14},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:14},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:14},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:16},this.rules[3].opcodes[4]={type:4,index:14},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4]},this.rules[4].opcodes[2]={type:5,min:33,max:58},this.rules[4].opcodes[3]={type:6,string:[60]},this.rules[4].opcodes[4]={type:5,min:62,max:126},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,6]},this.rules[5].opcodes[1]={type:2,children:[2,3]},this.rules[5].opcodes[2]={type:4,index:6},this.rules[5].opcodes[3]={type:3,min:0,max:1},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:4,index:8},this.rules[5].opcodes[6]={type:3,min:0,max:1/0},this.rules[5].opcodes[7]={type:4,index:8},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,4]},this.rules[6].opcodes[1]={type:4,index:24},this.rules[6].opcodes[2]={type:3,min:0,max:1/0},this.rules[6].opcodes[3]={type:4,index:7},this.rules[6].opcodes[4]={type:4,index:24},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:5,min:32,max:33},this.rules[7].opcodes[2]={type:5,min:35,max:126},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:33,max:43},this.rules[8].opcodes[2]={type:5,min:45,max:58},this.rules[8].opcodes[3]={type:5,min:60,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,5,6]},this.rules[9].opcodes[4]={type:7,string:[59]},this.rules[9].opcodes[5]={type:4,index:20},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,2,3]},this.rules[10].opcodes[1]={type:4,index:11},this.rules[10].opcodes[2]={type:7,string:[61]},this.rules[10].opcodes[3]={type:4,index:12},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:4,index:15},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,6]},this.rules[12].opcodes[1]={type:2,children:[2,3,5]},this.rules[12].opcodes[2]={type:4,index:24},this.rules[12].opcodes[3]={type:3,min:0,max:1/0},this.rules[12].opcodes[4]={type:4,index:13},this.rules[12].opcodes[5]={type:4,index:24},this.rules[12].opcodes[6]={type:3,min:0,max:1/0},this.rules[12].opcodes[7]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[13].opcodes[1]={type:6,string:[33]},this.rules[13].opcodes[2]={type:5,min:35,max:43},this.rules[13].opcodes[3]={type:5,min:45,max:58},this.rules[13].opcodes[4]={type:5,min:60,max:91},this.rules[13].opcodes[5]={type:5,min:93,max:126},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1/0},this.rules[14].opcodes[1]={type:2,children:[2,4]},this.rules[14].opcodes[2]={type:3,min:0,max:1},this.rules[14].opcodes[3]={type:4,index:27},this.rules[14].opcodes[4]={type:4,index:25},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:1,max:1/0},this.rules[15].opcodes[1]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[35]},this.rules[16].opcodes[3]={type:7,string:[36]},this.rules[16].opcodes[4]={type:7,string:[37]},this.rules[16].opcodes[5]={type:7,string:[38]},this.rules[16].opcodes[6]={type:7,string:[39]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[45]},this.rules[16].opcodes[10]={type:7,string:[46]},this.rules[16].opcodes[11]={type:7,string:[94]},this.rules[16].opcodes[12]={type:7,string:[95]},this.rules[16].opcodes[13]={type:7,string:[96]},this.rules[16].opcodes[14]={type:7,string:[124]},this.rules[16].opcodes[15]={type:7,string:[126]},this.rules[16].opcodes[16]={type:4,index:23},this.rules[16].opcodes[17]={type:4,index:22},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:1,max:127},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:0,max:31},this.rules[18].opcodes[2]={type:6,string:[127]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[19].opcodes[1]={type:7,string:[40]},this.rules[19].opcodes[2]={type:7,string:[41]},this.rules[19].opcodes[3]={type:7,string:[60]},this.rules[19].opcodes[4]={type:7,string:[62]},this.rules[19].opcodes[5]={type:7,string:[64]},this.rules[19].opcodes[6]={type:7,string:[44]},this.rules[19].opcodes[7]={type:7,string:[59]},this.rules[19].opcodes[8]={type:7,string:[58]},this.rules[19].opcodes[9]={type:7,string:[92]},this.rules[19].opcodes[10]={type:6,string:[34]},this.rules[19].opcodes[11]={type:7,string:[47]},this.rules[19].opcodes[12]={type:7,string:[91]},this.rules[19].opcodes[13]={type:7,string:[93]},this.rules[19].opcodes[14]={type:7,string:[63]},this.rules[19].opcodes[15]={type:7,string:[61]},this.rules[19].opcodes[16]={type:7,string:[123]},this.rules[19].opcodes[17]={type:7,string:[125]},this.rules[19].opcodes[18]={type:4,index:20},this.rules[19].opcodes[19]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:6,string:[32]},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:6,string:[9]},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2]},this.rules[22].opcodes[1]={type:5,min:65,max:90},this.rules[22].opcodes[2]={type:5,min:97,max:122},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:5,min:48,max:57},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:6,string:[34]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:1,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:20},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:6,string:[9]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:6,string:[13]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:6,string:[10]},this.toString=function(){return`; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1 +lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry ) +lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid +lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS +lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored +lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "=" +lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet +lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE +lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE +lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E + ; Allow all printable characters except CTLs, semicolon and SP + +; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1 +cookie-string = cookie-pair *( ";" SP cookie-pair ) + +; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1 +; https://www.rfc-editor.org/errata/eid5518 +cookie-pair = cookie-name "=" cookie-value +cookie-name = token +cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet + ; https://www.rfc-editor.org/errata/eid8242 +cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E + ; US-ASCII characters excluding CTLs, + ; whitespace, DQUOTE, comma, semicolon, + ; and backslash + +; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2 +OWS = *( [ CRLF ] WSP ) ; "optional" whitespace + +; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2 +token = 1*(tchar) +tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" + / "+" / "-" / "." / "^" / "_" / "\`" / "|" / "~" + / DIGIT / ALPHA + ; any VCHAR, except delimiters + +; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2 +CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127) +CTL = %x00-1F / %x7F ; any US-ASCII control character +separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT +SP = %x20 ; US-ASCII SP, space (32) +HT = %x09 ; US-ASCII HT, horizontal-tab (9) + +; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1 +ALPHA = %x41-5A / %x61-7A ; A-Z / a-z +DIGIT = %x30-39 ; 0-9 +DQUOTE = %x22 ; " (Double Quote) +WSP = SP / HTAB ; white space +HTAB = %x09 ; horizontal tab +CRLF = CR LF ; Internet standard newline +CR = %x0D ; carriage return +LF = %x0A ; linefeed +`}}new Pm;const AM=t=>{if(typeof t!="string"||[...t].length!==1)throw new TypeError("Input must be a single character string.");const e=t.codePointAt(0);return e<=127?`%${e.toString(16).toUpperCase().padStart(2,"0")}`:encodeURIComponent(t)},wv=t=>t.length>=2&&t.startsWith('"')&&t.endsWith('"'),rx=t=>wv(t)?t.slice(1,-1):t,nx=t=>`"${t}"`,ax=t=>t,CM=new ns,jM=new Pm,_1=(t,{strict:e=!0,quoted:r=null}={})=>{try{const n=e?"cookie-value":"lenient-cookie-value",a=CM.parse(jM,n,t);return typeof r=="boolean"?a.success&&r===wv(t):a.success}catch{return!1}},ox=t=>{const e=new TextEncoder().encode(t).reduce(((r,n)=>r+String.fromCharCode(n)),"");return btoa(e)},PM=(t,e=ox)=>{const r=String(t);if(_1(r))return r;const n=wv(r),a=e(n?rx(r):r);return n?nx(a):a},NM=t=>(e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""))(ox(t)),TM=t=>PM(t,NM),IM=new ns,MM=new Pm,ix=(t,{strict:e=!0}={})=>{try{const r=e?"cookie-name":"lenient-cookie-name";return IM.parse(MM,r,t).success}catch{return!1}},RM=t=>{if(!ix(t))throw new TypeError(`Invalid cookie name: ${t}`)},sx=t=>{if(!_1(t))throw new TypeError(`Invalid cookie value: ${t}`)},lx={encoders:{name:ax,value:TM},validators:{name:RM,value:sx}},DM=(t,e,r={})=>{const n={...r,encoders:{...lx.encoders,...r.encoders},validators:{...lx.validators,...r.validators}},a=n.encoders.name(t),o=n.encoders.value(e);return n.validators.name(a),n.validators.value(o),`${a}=${o}`},FM=(t,e={})=>(Array.isArray(t)?t:typeof t=="object"&&t!==null?Object.entries(t):[]).map((([r,n])=>DM(r,n,e))).join("; "),LM=new ns,$M=new Pm,BM=t=>{const e=String(t);if(_1(e))return e;const r=wv(e),n=r?rx(e):e;let a="";for(const o of n)a+=LM.parse($M,"cookie-octet",o).success?o:AM(o);return r?nx(a):a};new ns,new Pm;const qM=t=>{if(!ix(t,{strict:!1}))throw new TypeError(`Invalid cookie name: ${t}`)},UM=t=>BM(t).replace(/[=&]/gu,(e=>e==="="?"%3D":"%26")),O1=(t,e={})=>FM(t,Py({encoders:{name:ax,value:UM},validators:{name:qM,value:sx}},e));function zM({req:t,value:e,parameter:r,baseURL:n}){const{name:a,style:o,explode:p,content:c}=r;if(e===void 0)return;const d=t.url.replace(n,"");let E;if(c){const x=Object.keys(c)[0];E=x1(d,{[a]:e},{encoder:k=>JE(bv(k,x))})}else E=x1(d,{[a]:e},{encoder:x=>q0({key:r.name,value:x,style:o||"simple",explode:p??!1,escape:"reserved"})});t.url=n+E}function VM({req:t,value:e,parameter:r}){if(t.query=t.query||{},e!==void 0&&r.content){const n=bv(e,Object.keys(r.content)[0]);if(n)t.query[r.name]=n;else if(r.allowEmptyValue){const a=r.name;t.query[a]=t.query[a]||{},t.query[a].allowEmptyValue=!0}}else if(e===!1&&(e="false"),e===0&&(e="0"),e){const{style:n,explode:a,allowReserved:o}=r;t.query[r.name]={value:e,serializationOption:{style:n,explode:a,allowReserved:o}}}else if(r.allowEmptyValue&&e!==void 0){const n=r.name;t.query[n]=t.query[n]||{},t.query[n].allowEmptyValue=!0}}const JM=["accept","authorization","content-type"];function WM({req:t,parameter:e,value:r}){if(t.headers=t.headers||{},!(JM.indexOf(e.name.toLowerCase())>-1))if(r!==void 0&&e.content){const n=Object.keys(e.content)[0];t.headers[e.name]=bv(r,n)}else r===void 0||Array.isArray(r)&&r.length===0||(t.headers[e.name]=q0({key:e.name,value:r,style:e.style||"simple",explode:e.explode!==void 0&&e.explode,escape:!1}))}function HM({req:t,parameter:e,value:r}){const{name:n}=e;if(t.headers=t.headers||{},r!==void 0&&e.content){const a=bv(r,Object.keys(e.content)[0]);t.headers.Cookie=O1({[n]:a})}else if(r!==void 0&&(!Array.isArray(r)||r.length!==0)){const a=q0({key:e.name,value:r,escape:!1,style:e.style||"form",explode:e.explode??!1}),o=Array.isArray(r)&&e.explode?`${n}=${a}`:a;t.headers.Cookie=O1({[n]:o})}}const KM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,{btoa:GM}=KM,cx=GM;function YM(t,e){const{operation:r,requestBody:n,securities:a,spec:o,attachContentTypeForEmptyPayload:p}=t;let{requestContentType:c}=t;e=(function({request:P,securities:R={},operation:L={},spec:V}){const Q={...P},{authorized:J={}}=R,re=L.security||V.security||[],me=J&&!!Object.keys(J).length,le=V?.components?.securitySchemes||{};return Q.headers=Q.headers||{},Q.query=Q.query||{},!Object.keys(R).length||!me||!re||Array.isArray(L.security)&&!L.security.length?P:(re.forEach((ve=>{Object.keys(ve).forEach((be=>{const ce=J[be],_e=le[be];if(!ce)return;const Ae=ce.value||ce,{type:xe}=_e;if(ce){if(xe==="apiKey")_e.in==="query"&&(Q.query[_e.name]=Ae),_e.in==="header"&&(Q.headers[_e.name]=Ae),_e.in==="cookie"&&(Q.cookies[_e.name]=Ae);else if(xe==="http"){if(/^basic$/i.test(_e.scheme)){const Oe=Ae.username||"",je=Ae.password||"",G=cx(`${Oe}:${je}`);Q.headers.Authorization=`Basic ${G}`}/^bearer$/i.test(_e.scheme)&&(Q.headers.Authorization=`Bearer ${Ae}`)}else if(xe==="oauth2"||xe==="openIdConnect"){const Oe=ce.token||{},je=Oe[_e["x-tokenName"]||"access_token"];let G=Oe.token_type;G&&G.toLowerCase()!=="bearer"||(G="Bearer"),Q.headers.Authorization=`${G} ${je}`}}}))})),Q)})({request:e,securities:a,operation:r,spec:o});const d=r.requestBody||{},E=Object.keys(d.content||{}),x=c&&E.indexOf(c)>-1;if(n||p){if(c&&x)e.headers["Content-Type"]=c;else if(!c){const k=E[0];k&&(e.headers["Content-Type"]=k,c=k)}}else c&&x&&(e.headers["Content-Type"]=c);if(!t.responseContentType&&r.responses){const k=Object.entries(r.responses).filter((([P,R])=>{const L=parseInt(P,10);return L>=200&&L<300&&Ls(R.content)})).reduce(((P,[,R])=>P.concat(Object.keys(R.content))),[]);k.length>0&&(e.headers.accept=k.join(", "))}if(n)if(c){if(E.indexOf(c)>-1)if(c==="application/x-www-form-urlencoded"||c==="multipart/form-data")if(typeof n=="object"){const k=d.content[c]?.encoding??{};e.form={},Object.keys(n).forEach((P=>{let R;try{R=JSON.parse(n[P])}catch{R=n[P]}e.form[P]={value:R,encoding:k[P]||{}}}))}else if(typeof n=="string"){const k=d.content[c]?.encoding??{};try{e.form={};const P=JSON.parse(n);Object.entries(P).forEach((([R,L])=>{e.form[R]={value:L,encoding:k[R]||{}}}))}catch{e.form=n}}else e.form=n;else e.body=n}else e.body=n;return e}function XM(t,e){const{spec:r,operation:n,securities:a,requestContentType:o,responseContentType:p,attachContentTypeForEmptyPayload:c}=t;if(e=(function({request:E,securities:x={},operation:k={},spec:P}){const R={...E},{authorized:L={},specSecurity:V=[]}=x,Q=k.security||V,J=L&&!!Object.keys(L).length,re=P.securityDefinitions;return R.headers=R.headers||{},R.query=R.query||{},!Object.keys(x).length||!J||!Q||Array.isArray(k.security)&&!k.security.length?E:(Q.forEach((me=>{Object.keys(me).forEach((le=>{const ve=L[le];if(!ve)return;const{token:be}=ve,ce=ve.value||ve,_e=re[le],{type:Ae}=_e,xe=_e["x-tokenName"]||"access_token",Oe=be&&be[xe];let je=be&&be.token_type;if(ve)if(Ae==="apiKey"){const G=_e.in==="query"?"query":"headers";R[G]=R[G]||{},R[G][_e.name]=ce}else if(Ae==="basic")if(ce.header)R.headers.authorization=ce.header;else{const G=ce.username||"",de=ce.password||"";ce.base64=cx(`${G}:${de}`),R.headers.authorization=`Basic ${ce.base64}`}else Ae==="oauth2"&&Oe&&(je=je&&je.toLowerCase()!=="bearer"?je:"Bearer",R.headers.authorization=`${je} ${Oe}`)}))})),R)})({request:e,securities:a,operation:n,spec:r}),e.body||e.form||c)o?e.headers["Content-Type"]=o:Array.isArray(n.consumes)?[e.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[e.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter((d=>d.type==="file")).length?e.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter((d=>d.in==="formData")).length&&(e.headers["Content-Type"]="application/x-www-form-urlencoded");else if(o){const d=n.parameters&&n.parameters.filter((x=>x.in==="body")).length>0,E=n.parameters&&n.parameters.filter((x=>x.in==="formData")).length>0;(d||E)&&(e.headers["Content-Type"]=o)}return!p&&Array.isArray(n.produces)&&n.produces.length>0&&(e.headers.accept=n.produces.join(", ")),e}function QM(t,e){return(function(n,a,o){if(!n||typeof n!="object"||!n.paths||typeof n.paths!="object")return null;const{paths:p}=n,c=rS(n);for(const d in p){for(const x in p[d]){if(x.toUpperCase()==="PARAMETERS"||x==="additionalOperations")continue;const k=p[d][x];if(!k||typeof k!="object")continue;const P={spec:n,pathName:d,method:x.toUpperCase(),operation:k};if(a(P))return P}const{additionalOperations:E}=p[d];if(c&&E&&typeof E=="object")for(const x of Object.keys(E)){const k=E[x];if(!k||typeof k!="object")continue;const P={spec:n,pathName:d,method:x,operation:k};if(a(P))return P}}})(t,e)||null}function ux(t,e){return`${e.toLowerCase()}-${t}`}const px=t=>Array.isArray(t)?t:[],ZM=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,Nm=(t,{recurse:e=!0,depth:r=1}={})=>{var n,a;if(Ls(t)){if(t.type==="object"||t.type==="array"||Array.isArray(t.type)&&(Yn()(n=t.type).call(n,"object")||Yn()(a=t.type).call(a,"array")))return t;if(!(r>NE)&&e){const o=Array.isArray(t.oneOf)?t.oneOf.find((c=>Nm(c,{recurse:e,depth:r+1}))):void 0;if(o)return o;const p=Array.isArray(t.anyOf)?t.anyOf.find((c=>Nm(c,{recurse:e,depth:r+1}))):void 0;if(p)return p}}},hx=({value:t,silentFail:e=!1})=>{try{const r=JSON.parse(t);if(Ls(r)||Array.isArray(r))return r;if(!e)throw new Error("Expected JSON serialized object or array")}catch{if(!e)throw new Error("Could not parse parameter value string as JSON Object or JSON Array")}return t},k1=t=>{try{return new URL(t)}catch{const e=new URL(t,Sy),r=String(t).startsWith("/")?e.pathname:e.pathname.substring(1);return{hash:e.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:e.search,searchParams:e.searchParams}}};class eR extends xr{}const tR={buildRequest:dx};function rR({http:t,fetch:e,spec:r,operationId:n,pathName:a,method:o,parameters:p,securities:c,...d}){const E=t||e||Mf;a&&o&&!n&&(n=ux(a,o));const x=tR.buildRequest({spec:r,operationId:n,parameters:p,securities:c,http:E,...d});return x.body&&(Ls(x.body)||Array.isArray(x.body))&&(x.body=JSON.stringify(x.body)),E(x)}function dx(t){const{spec:e,operationId:r,responseContentType:n,scheme:a,requestInterceptor:o,responseInterceptor:p,contextUrl:c,userFetch:d,server:E,serverVariables:x,http:k,signal:P,serverVariableEncoder:R}=t;let{parameters:L,parameterBuilders:V,baseURL:Q}=t;const J=nS(e);V||(V=J?ke:kM);let re={url:"",credentials:k&&k.withCredentials?"include":"same-origin",headers:{},cookies:{}};P&&(re.signal=P),o&&(re.requestInterceptor=o),p&&(re.responseInterceptor=p),d&&(re.userFetch=d);const me=(function(Oe,je){return Oe&&Oe.paths?QM(Oe,(({pathName:G,method:de,operation:Ne})=>{if(!Ne||typeof Ne!="object")return!1;const Ye=Ne.operationId;return[Df(Ne,G,de),ux(G,de),Ye].some((ht=>ht&&ht===je))})):null})(e,r);if(!me)throw new eR(`Operation ${r} not found`);const{operation:le={},method:ve,pathName:be}=me;if(!(xe=>typeof xe=="string"&&ZM.test(xe))(ve))throw new Error("Invalid HTTP method");if(Q=Q??(function(Oe){return nS(Oe.spec)?(function({spec:de,pathName:Ne,method:Ye,operation:ht,server:Ct,contextUrl:_t,serverVariables:qt={},serverVariableEncoder:It}){let Ot,et=[],Dt="";const or=ht?.servers??de?.paths?.[Ne]?.[(Ye||"").toLowerCase()]?.servers,Ut=de?.paths?.[Ne]?.servers,pr=de?.servers;if(et=C1(or)?or:C1(Ut)?Ut:C1(pr)?pr:[YA],Ct&&(Ot=et.find((W=>W.url===Ct)),Ot&&(Dt=Ct)),Dt||([Ot]=et,Dt=Ot.url),dM(Dt,{strict:!0})){const W=Object.entries({...Ot.variables}).reduce((($e,[Je,Ft])=>($e[Je]=Ft.default,$e)),{});Dt=gM(Dt,{...W,...qt},{encoder:typeof It=="function"?It:T2})}return(function($e="",Je=""){const Ft=k1($e&&Je?go(Je,$e):$e),it=k1(Je),bt=A1(Ft.protocol)||A1(it.protocol),ut=Ft.host||it.host,Xt=Ft.pathname;let zt;return zt=bt&&ut?`${bt}://${ut+Xt}`:Xt,zt[zt.length-1]==="/"?zt.slice(0,-1):zt})(Dt,_t)})(Oe):(function({spec:de,scheme:Ne,contextUrl:Ye=""}){const ht=k1(Ye),Ct=Array.isArray(de.schemes)?de.schemes[0]:null,_t=Ne||Ct||A1(ht.protocol)||"http",qt=de.host||ht.host||"",It=de.basePath||"";let Ot;return Ot=qt?`${_t}://${qt+It}`:It,Ot[Ot.length-1]==="/"?Ot.slice(0,-1):Ot})(Oe)})({spec:e,scheme:a,contextUrl:c,server:E,serverVariables:x,pathName:be,method:ve,operation:le,serverVariableEncoder:R}),re.url+=Q,!r)return delete re.cookies,re;re.url+=be,re.method=ve,L=L||{};const ce=e.paths[be]||{};n&&(re.headers.accept=n);const _e=(xe=>{const Oe={};xe.forEach((G=>{Oe[G.in]||(Oe[G.in]={}),Oe[G.in][G.name]=G}));const je=[];return Object.keys(Oe).forEach((G=>{Object.keys(Oe[G]).forEach((de=>{je.push(Oe[G][de])}))})),je})([].concat(px(le.parameters)).concat(px(ce.parameters)));_e.forEach((xe=>{const Oe=V[xe.in];let je;if(xe.in==="body"&&xe.schema&&xe.schema.properties&&(je=L),je=xe&&xe.name&&L[xe.name],je===void 0?je=xe&&xe.name&&L[`${xe.in}.${xe.name}`]:((G,de)=>de.filter((Ne=>Ne.name===G)))(xe.name,_e).length>1&&console.warn(`Parameter '${xe.name}' is ambiguous because the defined spec has more than one parameter with the name: '${xe.name}' and the passed-in parameter values did not define an 'in' value.`),je!==null){if(xe.default!==void 0&&je===void 0&&(je=xe.default),je===void 0&&xe.required&&!xe.allowEmptyValue)throw new Error(`Required parameter ${xe.name} is not provided`);J&&typeof je=="string"&&($f("type",xe.schema)&&typeof xe.schema.type=="string"&&Nm(xe.schema,{recurse:!1})?je=hx({value:je,silentFail:!1}):($f("type",xe.schema)&&Array.isArray(xe.schema.type)&&Nm(xe.schema,{recurse:!1})||!$f("type",xe.schema)&&Nm(xe.schema,{recurse:!0}))&&(je=hx({value:je,silentFail:!0}))),Oe&&Oe({req:re,parameter:xe,value:je,operation:le,spec:e,baseURL:Q})}}));const Ae={...t,operation:le};if(re=J?YM(Ae,re):XM(Ae,re),re.cookies&&Object.keys(re.cookies).length>0){const xe=O1(re.cookies);$y(re.headers.Cookie)?re.headers.Cookie+=`; ${xe}`:re.headers.Cookie=xe}return re.cookies&&delete re.cookies,U0(re)}const A1=t=>t?t.replace(/\W/g,""):null,C1=t=>Array.isArray(t)&&t.length>0,nR=t=>async(e,r,n={})=>(async(a,o,p={})=>{const{returnEntireTree:c,baseDoc:d,requestInterceptor:E,responseInterceptor:x,parameterMacro:k,modelPropertyMacro:P,useCircularStructures:R,strategies:L}=p,V={spec:a,pathDiscriminator:o,baseDoc:d,requestInterceptor:E,responseInterceptor:x,parameterMacro:k,modelPropertyMacro:P,useCircularStructures:R,strategies:L},Q=L.find((re=>re.match(a))).normalize(a),J=await sM({spec:Q,...V,allowMetaPatches:!0,skipNormalization:!Y0(a)});return!c&&Array.isArray(o)&&o.length&&(J.spec=o.reduce(((re,me)=>re?.[me]),J.spec)||null),J})(e,r,{...t,...n}),aR=((t,e)=>(...r)=>{t(...r);const n=e.getConfigs().withCredentials;e.fn.fetch.withCredentials=n});function fx({configs:t,getConfigs:e}){return{fn:{fetch:(r=Mf,n=t.preFetch,a=t.postFetch,a=a||(o=>o),n=n||(o=>o),o=>(typeof o=="string"&&(o={url:o}),o=U0(o),o=n(o),a(r(o)))),buildRequest:dx,execute:rR,resolve:Z2({strategies:[Q2,Q0,X0,G0]}),resolveSubtree:async(o,p,c={})=>{const d=e(),E={modelPropertyMacro:d.modelPropertyMacro,parameterMacro:d.parameterMacro,requestInterceptor:d.requestInterceptor,responseInterceptor:d.responseInterceptor,strategies:[Q2,Q0,X0,G0]};return nR(E)(o,p,c)},serializeRes:GE,opId:Df},statePlugins:{configs:{wrapActions:{loaded:aR}}}};var r,n,a}function mx(){return{fn:{shallowEqualKeys:fi,sanitizeUrl:Dr}}}var gx=Be(40961),oR=(Be(78418),u.version.startsWith("19")),iR=Symbol.for(oR?"react.transitional.element":"react.element"),sR=Symbol.for("react.portal"),lR=Symbol.for("react.fragment"),cR=Symbol.for("react.strict_mode"),uR=Symbol.for("react.profiler"),pR=Symbol.for("react.consumer"),hR=Symbol.for("react.context"),yx=Symbol.for("react.forward_ref"),dR=Symbol.for("react.suspense"),fR=Symbol.for("react.suspense_list"),j1=Symbol.for("react.memo"),mR=Symbol.for("react.lazy"),gR=yx,yR=j1;function vR(t){if(typeof t=="object"&&t!==null){const{$$typeof:e}=t;switch(e){case iR:switch(t=t.type){case lR:case uR:case cR:case dR:case fR:return t;default:switch(t=t&&t.$$typeof){case hR:case yx:case mR:case j1:case pR:return t;default:return e}}case sR:return e}}}function bR(t,e,r,n,{areStatesEqual:a,areOwnPropsEqual:o,areStatePropsEqual:p}){let c,d,E,x,k,P=!1;function R(L,V){const Q=!o(V,d),J=!a(L,c,V,d);return c=L,d=V,Q&&J?(function(){return E=t(c,d),e.dependsOnOwnProps&&(x=e(n,d)),k=r(E,x,d),k})():Q?(function(){return t.dependsOnOwnProps&&(E=t(c,d)),e.dependsOnOwnProps&&(x=e(n,d)),k=r(E,x,d),k})():J?(function(){const me=t(c,d),le=!p(me,E);return E=me,le&&(k=r(E,x,d)),k})():k}return function(V,Q){return P?R(V,Q):(function(re,me){return c=re,d=me,E=t(c,d),x=e(n,d),k=r(E,x,d),P=!0,k})(V,Q)}}function P1(t){return function(r){const n=t(r);function a(){return n}return a.dependsOnOwnProps=!1,a}}function vx(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function bx(t,e){return function(n,{displayName:a}){const o=function(c,d){return o.dependsOnOwnProps?o.mapToProps(c,d):o.mapToProps(c,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(c,d){o.mapToProps=t,o.dependsOnOwnProps=vx(t);let E=o(c,d);return typeof E=="function"&&(o.mapToProps=E,o.dependsOnOwnProps=vx(E),E=o(c,d)),E},o}}function N1(t,e){return(r,n)=>{throw new Error(`Invalid value of type ${typeof t} for ${e} argument when connecting component ${n.wrappedComponentName}.`)}}function wR(t,e,r){return{...r,...t,...e}}function ER(t){t()}var wx={notify(){},get:()=>[]};function Ex(t,e){let r,n=wx,a=0,o=!1;function p(){E.onStateChange&&E.onStateChange()}function c(){a++,r||(r=e?e.addNestedSub(p):t.subscribe(p),n=(function(){let k=null,P=null;return{clear(){k=null,P=null},notify(){ER((()=>{let R=k;for(;R;)R.callback(),R=R.next}))},get(){const R=[];let L=k;for(;L;)R.push(L),L=L.next;return R},subscribe(R){let L=!0;const V=P={callback:R,next:null,prev:P};return V.prev?V.prev.next=V:k=V,function(){L&&k!==null&&(L=!1,V.next?V.next.prev=V.prev:P=V.prev,V.prev?V.prev.next=V.next:k=V.next)}}}})())}function d(){a--,r&&a===0&&(r(),r=void 0,n.clear(),n=wx)}const E={addNestedSub:function(k){c();const P=n.subscribe(k);let R=!1;return()=>{R||(R=!0,P(),d())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:p,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,c())},tryUnsubscribe:function(){o&&(o=!1,d())},getListeners:()=>n};return E}var SR=!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0),xR=typeof navigator<"u"&&navigator.product==="ReactNative",Ev=SR||xR?u.useLayoutEffect:u.useEffect;function Sx(t,e){return t===e?t!==0||e!==0||1/t==1/e:t!=t&&e!=e}function T1(t,e){if(Sx(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let a=0;a({})))})(t),P=(function(Q){return Q&&typeof Q=="object"?P1((J=>(function(me,le){const ve={};for(const be in me){const ce=me[be];typeof ce=="function"&&(ve[be]=(..._e)=>le(ce(..._e)))}return ve})(Q,J))):Q?typeof Q=="function"?bx(Q):N1(Q,"mapDispatchToProps"):P1((J=>({dispatch:J})))})(e),R=(function(Q){return Q?typeof Q=="function"?(function(re){return function(le,{displayName:ve,areMergedPropsEqual:be}){let ce,_e=!1;return function(xe,Oe,je){const G=re(xe,Oe,je);return _e?be(G,ce)||(ce=G):(_e=!0,ce=G),ce}}})(Q):N1(Q,"mergeProps"):()=>wR})(r),L=!!t;return V=>{const Q=V.displayName||V.name||"Component",J=`Connect(${Q})`,re={shouldHandleStateChanges:L,displayName:J,wrappedComponentName:Q,WrappedComponent:V,initMapStateToProps:k,initMapDispatchToProps:P,initMergeProps:R,areStatesEqual:a,areStatePropsEqual:p,areOwnPropsEqual:o,areMergedPropsEqual:c};function me(ve){const[be,ce,_e]=u.useMemo((()=>{const{reactReduxForwardedRef:$e,...Je}=ve;return[ve.context,$e,Je]}),[ve]),Ae=u.useMemo((()=>x),[be,x]),xe=u.useContext(Ae),Oe=!!ve.store&&!!ve.store.getState&&!!ve.store.dispatch,je=!!xe&&!!xe.store,G=Oe?ve.store:xe.store,de=je?xe.getServerState:G.getState,Ne=u.useMemo((()=>(function(Je,{initMapStateToProps:Ft,initMapDispatchToProps:it,initMergeProps:bt,...ut}){return bR(Ft(Je,ut),it(Je,ut),bt(Je,ut),Je,ut)})(G.dispatch,re)),[G]),[Ye,ht]=u.useMemo((()=>{if(!L)return MR;const $e=Ex(G,Oe?void 0:xe.subscription),Je=$e.notifyNestedSubs.bind($e);return[$e,Je]}),[G,Oe,xe]),Ct=u.useMemo((()=>Oe?xe:{...xe,subscription:Ye}),[Oe,xe,Ye]),_t=u.useRef(void 0),qt=u.useRef(_e),It=u.useRef(void 0),Ot=u.useRef(!1),et=u.useRef(!1),Dt=u.useRef(void 0);Ev((()=>(et.current=!0,()=>{et.current=!1})),[]);const or=u.useMemo((()=>()=>It.current&&_e===qt.current?It.current:Ne(G.getState(),_e)),[G,_e]),Ut=u.useMemo((()=>$e=>Ye?(function(Ft,it,bt,ut,Xt,zt,tr,Er,dr,qr,en){if(!Ft)return()=>{};let kn=!1,ln=null;const jt=()=>{if(kn||!Er.current)return;const We=it.getState();let Kr,Lr;try{Kr=ut(We,Xt.current)}catch(zr){Lr=zr,ln=zr}Lr||(ln=null),Kr===zt.current?tr.current||qr():(zt.current=Kr,dr.current=Kr,tr.current=!0,en())};return bt.onStateChange=jt,bt.trySubscribe(),jt(),()=>{if(kn=!0,bt.tryUnsubscribe(),bt.onStateChange=null,ln)throw ln}})(L,G,Ye,Ne,qt,_t,Ot,et,It,ht,$e):()=>{}),[Ye]);let pr;(function(Je,Ft,it){Ev((()=>Je(...Ft)),it)})(RR,[qt,_t,Ot,_e,It,ht]);try{pr=u.useSyncExternalStore(Ut,or,de?()=>Ne(de(),_e):or)}catch($e){throw Dt.current&&($e.message+=` +The error may be correlated with this previous error: +${Dt.current.stack} + +`),$e}Ev((()=>{Dt.current=void 0,It.current=void 0,_t.current=pr}));const W=u.useMemo((()=>u.createElement(V,{...pr,ref:ce})),[ce,V,pr]);return u.useMemo((()=>L?u.createElement(Ae.Provider,{value:Ct},W):W),[Ae,W,Ct])}const le=u.memo(me);if(le.WrappedComponent=V,le.displayName=me.displayName=J,d){const ve=u.forwardRef((function(ce,_e){return u.createElement(le,{...ce,reactReduxForwardedRef:_e})}));return ve.displayName=J,ve.WrappedComponent=V,I1(ve,V)}return I1(le,V)}}var LR=FR,$R=function(e){const{children:r,context:n,serverState:a,store:o}=e,p=u.useMemo((()=>{const E=Ex(o);return{store:o,subscription:E,getServerState:a?()=>a:void 0}}),[o,a]),c=u.useMemo((()=>o.getState()),[o]);Ev((()=>{const{subscription:E}=p;return E.onStateChange=E.notifyNestedSubs,E.trySubscribe(),c!==o.getState()&&E.notifyNestedSubs(),()=>{E.tryUnsubscribe(),E.onStateChange=void 0}}),[p,c]);const d=n||Ax;return u.createElement(d.Provider,{value:p},r)},BR=Be(83488),Cx=Be.n(BR);const qR=t=>e=>{const{fn:r}=t();class n extends u.Component{render(){return u.createElement(e,Yr()({},t(),this.props,this.context))}}return n.displayName=`WithSystem(${r.getDisplayName(e)})`,n},UR=(t,e)=>r=>{const{fn:n}=t();class a extends u.Component{render(){return u.createElement($R,{store:e},u.createElement(r,Yr()({},this.props,this.context)))}}return a.displayName=`WithRoot(${n.getDisplayName(r)})`,a},jx=(t,e,r)=>Wt(r?UR(t,r):Cx(),LR(((n,a)=>{const o={...a,...t()};return(e.prototype?.mapStateToProps||(c=>({state:c})))(n,o)})),qR(t))(e),Px=(t,e,r,n)=>{for(const a in e){const o=e[a];typeof o=="function"&&o(r[a],n[a],t())}},zR=(t,e,r)=>(n,a)=>{const{fn:o}=t(),p=r(n,"root");class c extends u.Component{constructor(E,x){super(E,x),Px(t,a,E,{})}UNSAFE_componentWillReceiveProps(E){Px(t,a,E,this.props)}render(){const E=Ha()(this.props,a?Object.keys(a):[]);return u.createElement(p,E)}}return c.displayName=`WithMappedContainer(${o.getDisplayName(p)})`,c},VR=(t,e,r,n)=>a=>{const o=r(t,e,n)("App","root"),{createRoot:p}=gx;p(a).render(u.createElement(o,null))},M1=(t,e,r)=>(n,a,o={})=>{if(typeof n!="string")throw new TypeError("Need a string, to fetch a component. Was given a "+typeof n);const p=r(n);return p?a?a==="root"?jx(t,p,e()):jx(t,p):p:(o.failSilently||t().log.warn("Could not find component:",n),null)},JR=t=>t.displayName||t.name||"Component",Nx=({getComponents:t,getStore:e,getSystem:r})=>{const n=(a=M1(r,e,t),fs(a,((...p)=>JSON.stringify(p))));var a;const o=(p=>gu(p,((...c)=>c)))(zR(r,0,n));return{rootInjects:{getComponent:n,makeMappedContainer:o,render:VR(r,e,M1,t)},fn:{getDisplayName:JR}}},Tx=({React:t,getSystem:e,getStore:r,getComponents:n})=>{const a={},o=parseInt(t?.version,10);return o>=16&&o<18&&(a.render=((p,c,d,E)=>x=>{const k=d(p,c,E)("App","root");gx.render(u.createElement(k,null),x)})(e,r,M1,n)),{rootInjects:a}};function Ix(t){let{fn:e}=t;const r={download:a=>({errActions:o,specSelectors:p,specActions:c,getConfigs:d})=>{let{fetch:E}=e;const x=d();function k(P){if(P instanceof Error||P.status>=400)return c.updateLoadingStatus("failed"),o.newThrownErr(Object.assign(new Error((P.message||P.statusText)+" "+a),{source:"fetch"})),void(!P.status&&P instanceof Error&&(function(){try{let L;if("URL"in Qe?L=new URL(a):(L=document.createElement("a"),L.href=a),L.protocol!=="https:"&&Qe.location.protocol==="https:"){const V=Object.assign(new Error(`Possible mixed-content issue? The page was loaded over https:// but a ${L.protocol}// URL was specified. Check that you are not attempting to load mixed content.`),{source:"fetch"});return void o.newThrownErr(V)}if(L.origin!==Qe.location.origin){const V=Object.assign(new Error(`Possible cross-origin (CORS) issue? The URL origin (${L.origin}) does not match the page (${Qe.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`),{source:"fetch"});o.newThrownErr(V)}}catch{return}})());c.updateLoadingStatus("success"),c.updateSpec(P.text),p.url()!==a&&c.updateUrl(a)}a=a||p.url(),c.updateLoadingStatus("loading"),o.clear({source:"fetch"}),E({url:a,loadSpec:!0,requestInterceptor:x.requestInterceptor||(P=>P),responseInterceptor:x.responseInterceptor||(P=>P),credentials:"same-origin",headers:{Accept:"application/json,*/*"}}).then(k,k)},updateLoadingStatus:a=>{let o=[null,"loading","failed","success","failedConfig"];return o.indexOf(a)===-1&&console.error(`Error: ${a} is not one of ${JSON.stringify(o)}`),{type:"spec_update_loading_status",payload:a}}};let n={loadingStatus:yr((a=>a||(0,H.Map)()),(a=>a.get("loadingStatus")||null))};return{statePlugins:{spec:{actions:r,reducers:{spec_update_loading_status:(a,o)=>typeof o.payload=="string"?a.set("loadingStatus",o.payload):a},selectors:n}}}}function R1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return(function(a){if(a.length===0||a.length===1)return a;var o=a.join(".");return L1[o]||(L1[o]=(function(c){var d=c.length;return d===0||d===1?c:d===2?[c[0],c[1],"".concat(c[0],".").concat(c[1]),"".concat(c[1],".").concat(c[0])]:d===3?[c[0],c[1],c[2],"".concat(c[0],".").concat(c[1]),"".concat(c[0],".").concat(c[2]),"".concat(c[1],".").concat(c[0]),"".concat(c[1],".").concat(c[2]),"".concat(c[2],".").concat(c[0]),"".concat(c[2],".").concat(c[1]),"".concat(c[0],".").concat(c[1],".").concat(c[2]),"".concat(c[0],".").concat(c[2],".").concat(c[1]),"".concat(c[1],".").concat(c[0],".").concat(c[2]),"".concat(c[1],".").concat(c[2],".").concat(c[0]),"".concat(c[2],".").concat(c[0],".").concat(c[1]),"".concat(c[2],".").concat(c[1],".").concat(c[0])]:d>=4?[c[0],c[1],c[2],c[3],"".concat(c[0],".").concat(c[1]),"".concat(c[0],".").concat(c[2]),"".concat(c[0],".").concat(c[3]),"".concat(c[1],".").concat(c[0]),"".concat(c[1],".").concat(c[2]),"".concat(c[1],".").concat(c[3]),"".concat(c[2],".").concat(c[0]),"".concat(c[2],".").concat(c[1]),"".concat(c[2],".").concat(c[3]),"".concat(c[3],".").concat(c[0]),"".concat(c[3],".").concat(c[1]),"".concat(c[3],".").concat(c[2]),"".concat(c[0],".").concat(c[1],".").concat(c[2]),"".concat(c[0],".").concat(c[1],".").concat(c[3]),"".concat(c[0],".").concat(c[2],".").concat(c[1]),"".concat(c[0],".").concat(c[2],".").concat(c[3]),"".concat(c[0],".").concat(c[3],".").concat(c[1]),"".concat(c[0],".").concat(c[3],".").concat(c[2]),"".concat(c[1],".").concat(c[0],".").concat(c[2]),"".concat(c[1],".").concat(c[0],".").concat(c[3]),"".concat(c[1],".").concat(c[2],".").concat(c[0]),"".concat(c[1],".").concat(c[2],".").concat(c[3]),"".concat(c[1],".").concat(c[3],".").concat(c[0]),"".concat(c[1],".").concat(c[3],".").concat(c[2]),"".concat(c[2],".").concat(c[0],".").concat(c[1]),"".concat(c[2],".").concat(c[0],".").concat(c[3]),"".concat(c[2],".").concat(c[1],".").concat(c[0]),"".concat(c[2],".").concat(c[1],".").concat(c[3]),"".concat(c[2],".").concat(c[3],".").concat(c[0]),"".concat(c[2],".").concat(c[3],".").concat(c[1]),"".concat(c[3],".").concat(c[0],".").concat(c[1]),"".concat(c[3],".").concat(c[0],".").concat(c[2]),"".concat(c[3],".").concat(c[1],".").concat(c[0]),"".concat(c[3],".").concat(c[1],".").concat(c[2]),"".concat(c[3],".").concat(c[2],".").concat(c[0]),"".concat(c[3],".").concat(c[2],".").concat(c[1]),"".concat(c[0],".").concat(c[1],".").concat(c[2],".").concat(c[3]),"".concat(c[0],".").concat(c[1],".").concat(c[3],".").concat(c[2]),"".concat(c[0],".").concat(c[2],".").concat(c[1],".").concat(c[3]),"".concat(c[0],".").concat(c[2],".").concat(c[3],".").concat(c[1]),"".concat(c[0],".").concat(c[3],".").concat(c[1],".").concat(c[2]),"".concat(c[0],".").concat(c[3],".").concat(c[2],".").concat(c[1]),"".concat(c[1],".").concat(c[0],".").concat(c[2],".").concat(c[3]),"".concat(c[1],".").concat(c[0],".").concat(c[3],".").concat(c[2]),"".concat(c[1],".").concat(c[2],".").concat(c[0],".").concat(c[3]),"".concat(c[1],".").concat(c[2],".").concat(c[3],".").concat(c[0]),"".concat(c[1],".").concat(c[3],".").concat(c[0],".").concat(c[2]),"".concat(c[1],".").concat(c[3],".").concat(c[2],".").concat(c[0]),"".concat(c[2],".").concat(c[0],".").concat(c[1],".").concat(c[3]),"".concat(c[2],".").concat(c[0],".").concat(c[3],".").concat(c[1]),"".concat(c[2],".").concat(c[1],".").concat(c[0],".").concat(c[3]),"".concat(c[2],".").concat(c[1],".").concat(c[3],".").concat(c[0]),"".concat(c[2],".").concat(c[3],".").concat(c[0],".").concat(c[1]),"".concat(c[2],".").concat(c[3],".").concat(c[1],".").concat(c[0]),"".concat(c[3],".").concat(c[0],".").concat(c[1],".").concat(c[2]),"".concat(c[3],".").concat(c[0],".").concat(c[2],".").concat(c[1]),"".concat(c[3],".").concat(c[1],".").concat(c[0],".").concat(c[2]),"".concat(c[3],".").concat(c[1],".").concat(c[2],".").concat(c[0]),"".concat(c[3],".").concat(c[2],".").concat(c[0],".").concat(c[1]),"".concat(c[3],".").concat(c[2],".").concat(c[1],".").concat(c[0])]:void 0})(a)),L1[o]})(t.filter((function(n){return n!=="token"}))).reduce((function(n,a){return hd(hd({},n),r[a])}),e)}function Dx(t){return t.join(" ")}function Fx(t){var e=t.node,r=t.stylesheet,n=t.style,a=n===void 0?{}:n,o=t.useInlineStyles,p=t.key,c=e.properties,d=e.type,E=e.tagName,x=e.value;if(d==="text")return x;if(E){var k,P=(function(re,me){var le=0;return function(ve){return le+=1,ve.map((function(be,ce){return Fx({node:be,stylesheet:re,useInlineStyles:me,key:"code-segment-".concat(le,"-").concat(ce)})}))}})(r,o);if(o){var R=Object.keys(r).reduce((function(J,re){return re.split(".").forEach((function(me){J.includes(me)||J.push(me)})),J}),[]),L=c.className&&c.className.includes("token")?["token"]:[],V=c.className&&L.concat(c.className.filter((function(J){return!R.includes(J)})));k=hd(hd({},c),{},{className:Dx(V)||void 0,style:HR(c.className,Object.assign({},c.style,a),r)})}else k=hd(hd({},c),{},{className:Dx(c.className)});var Q=P(e.children);return u.createElement(E,F1({key:p},k),Q)}}var KR=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Lx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),r.push.apply(r,n)}return r}function Wp(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];t.length===void 0&&(t=[t]);for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:[];return e||le.length>0?(function(be,ce){return Sv({children:be,lineNumber:ce,lineNumberStyle:c,largestLineNumber:p,showInlineLineNumbers:a,lineProps:r,className:arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],showLineNumbers:n,wrapLongLines:d,wrapLines:e})})(re,me,le):(function(be,ce){if(n&&ce&&a){var _e=Bx(c,ce,p);be.unshift($x(ce,_e))}return be})(re,me)}for(var V=function(){var me=x[R],le=me.children[0].value,ve=(function(_e){return _e.match(GR)})(le);if(ve){var be=le.split(` +`);be.forEach((function(ce,_e){var Ae=n&&k.length+o,xe={type:"text",value:"".concat(ce,` +`)};if(_e===0){var Oe=L(x.slice(P+1,R).concat(Sv({children:[xe],className:me.properties.className})),Ae);k.push(Oe)}else if(_e===be.length-1){var je=x[R+1]&&x[R+1].children&&x[R+1].children[0],G={type:"text",value:"".concat(ce)};if(je){var de=Sv({children:[G],className:me.properties.className});x.splice(R+1,0,de)}else{var Ne=L([G],Ae,me.properties.className);k.push(Ne)}}else{var Ye=L([xe],Ae,me.properties.className);k.push(Ye)}})),P=R}R++};R{Pc.registerLanguage("json",t9),Pc.registerLanguage("js",Jx),Pc.registerLanguage("xml",n9),Pc.registerLanguage("yaml",s9),Pc.registerLanguage("http",c9),Pc.registerLanguage("bash",o9),Pc.registerLanguage("powershell",p9),Pc.registerLanguage("javascript",Jx)},Wx={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#333",color:"white"},"hljs-name":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-code":{fontStyle:"italic",color:"#888"},"hljs-emphasis":{fontStyle:"italic"},"hljs-tag":{color:"#62c8f3"},"hljs-variable":{color:"#ade5fc"},"hljs-template-variable":{color:"#ade5fc"},"hljs-selector-id":{color:"#ade5fc"},"hljs-selector-class":{color:"#ade5fc"},"hljs-string":{color:"#a2fca2"},"hljs-bullet":{color:"#d36363"},"hljs-type":{color:"#ffa"},"hljs-title":{color:"#ffa"},"hljs-section":{color:"#ffa"},"hljs-attribute":{color:"#ffa"},"hljs-quote":{color:"#ffa"},"hljs-built_in":{color:"#ffa"},"hljs-builtin-name":{color:"#ffa"},"hljs-number":{color:"#d36363"},"hljs-symbol":{color:"#d36363"},"hljs-keyword":{color:"#fcc28c"},"hljs-selector-tag":{color:"#fcc28c"},"hljs-literal":{color:"#fcc28c"},"hljs-comment":{color:"#888"},"hljs-deletion":{color:"#333",backgroundColor:"#fc9b9b"},"hljs-regexp":{color:"#c6b4f0"},"hljs-link":{color:"#c6b4f0"},"hljs-meta":{color:"#fc9b9b"},"hljs-addition":{backgroundColor:"#a2fca2",color:"#333"}},d9={agate:Wx,arta:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#222",color:"#aaa"},"hljs-subst":{color:"#aaa"},"hljs-section":{color:"#fff",fontWeight:"bold"},"hljs-comment":{color:"#444"},"hljs-quote":{color:"#444"},"hljs-meta":{color:"#444"},"hljs-string":{color:"#ffcc33"},"hljs-symbol":{color:"#ffcc33"},"hljs-bullet":{color:"#ffcc33"},"hljs-regexp":{color:"#ffcc33"},"hljs-number":{color:"#00cc66"},"hljs-addition":{color:"#00cc66"},"hljs-built_in":{color:"#32aaee"},"hljs-builtin-name":{color:"#32aaee"},"hljs-literal":{color:"#32aaee"},"hljs-type":{color:"#32aaee"},"hljs-template-variable":{color:"#32aaee"},"hljs-attribute":{color:"#32aaee"},"hljs-link":{color:"#32aaee"},"hljs-keyword":{color:"#6644aa"},"hljs-selector-tag":{color:"#6644aa"},"hljs-name":{color:"#6644aa"},"hljs-selector-id":{color:"#6644aa"},"hljs-selector-class":{color:"#6644aa"},"hljs-title":{color:"#bb1166"},"hljs-variable":{color:"#bb1166"},"hljs-deletion":{color:"#bb1166"},"hljs-template-tag":{color:"#bb1166"},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},monokai:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#272822",color:"#ddd"},"hljs-tag":{color:"#f92672"},"hljs-keyword":{color:"#f92672",fontWeight:"bold"},"hljs-selector-tag":{color:"#f92672",fontWeight:"bold"},"hljs-literal":{color:"#f92672",fontWeight:"bold"},"hljs-strong":{color:"#f92672"},"hljs-name":{color:"#f92672"},"hljs-code":{color:"#66d9ef"},"hljs-class .hljs-title":{color:"white"},"hljs-attribute":{color:"#bf79db"},"hljs-symbol":{color:"#bf79db"},"hljs-regexp":{color:"#bf79db"},"hljs-link":{color:"#bf79db"},"hljs-string":{color:"#a6e22e"},"hljs-bullet":{color:"#a6e22e"},"hljs-subst":{color:"#a6e22e"},"hljs-title":{color:"#a6e22e",fontWeight:"bold"},"hljs-section":{color:"#a6e22e",fontWeight:"bold"},"hljs-emphasis":{color:"#a6e22e"},"hljs-type":{color:"#a6e22e",fontWeight:"bold"},"hljs-built_in":{color:"#a6e22e"},"hljs-builtin-name":{color:"#a6e22e"},"hljs-selector-attr":{color:"#a6e22e"},"hljs-selector-pseudo":{color:"#a6e22e"},"hljs-addition":{color:"#a6e22e"},"hljs-variable":{color:"#a6e22e"},"hljs-template-tag":{color:"#a6e22e"},"hljs-template-variable":{color:"#a6e22e"},"hljs-comment":{color:"#75715e"},"hljs-quote":{color:"#75715e"},"hljs-deletion":{color:"#75715e"},"hljs-meta":{color:"#75715e"},"hljs-doctag":{fontWeight:"bold"},"hljs-selector-id":{fontWeight:"bold"}},nord:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#2E3440",color:"#D8DEE9"},"hljs-subst":{color:"#D8DEE9"},"hljs-selector-tag":{color:"#81A1C1"},"hljs-selector-id":{color:"#8FBCBB",fontWeight:"bold"},"hljs-selector-class":{color:"#8FBCBB"},"hljs-selector-attr":{color:"#8FBCBB"},"hljs-selector-pseudo":{color:"#88C0D0"},"hljs-addition":{backgroundColor:"rgba(163, 190, 140, 0.5)"},"hljs-deletion":{backgroundColor:"rgba(191, 97, 106, 0.5)"},"hljs-built_in":{color:"#8FBCBB"},"hljs-type":{color:"#8FBCBB"},"hljs-class":{color:"#8FBCBB"},"hljs-function":{color:"#88C0D0"},"hljs-function > .hljs-title":{color:"#88C0D0"},"hljs-keyword":{color:"#81A1C1"},"hljs-literal":{color:"#81A1C1"},"hljs-symbol":{color:"#81A1C1"},"hljs-number":{color:"#B48EAD"},"hljs-regexp":{color:"#EBCB8B"},"hljs-string":{color:"#A3BE8C"},"hljs-title":{color:"#8FBCBB"},"hljs-params":{color:"#D8DEE9"},"hljs-bullet":{color:"#81A1C1"},"hljs-code":{color:"#8FBCBB"},"hljs-emphasis":{fontStyle:"italic"},"hljs-formula":{color:"#8FBCBB"},"hljs-strong":{fontWeight:"bold"},"hljs-link:hover":{textDecoration:"underline"},"hljs-quote":{color:"#4C566A"},"hljs-comment":{color:"#4C566A"},"hljs-doctag":{color:"#8FBCBB"},"hljs-meta":{color:"#5E81AC"},"hljs-meta-keyword":{color:"#5E81AC"},"hljs-meta-string":{color:"#A3BE8C"},"hljs-attr":{color:"#8FBCBB"},"hljs-attribute":{color:"#D8DEE9"},"hljs-builtin-name":{color:"#81A1C1"},"hljs-name":{color:"#81A1C1"},"hljs-section":{color:"#88C0D0"},"hljs-tag":{color:"#81A1C1"},"hljs-variable":{color:"#D8DEE9"},"hljs-template-variable":{color:"#D8DEE9"},"hljs-template-tag":{color:"#5E81AC"},"abnf .hljs-attribute":{color:"#88C0D0"},"abnf .hljs-symbol":{color:"#EBCB8B"},"apache .hljs-attribute":{color:"#88C0D0"},"apache .hljs-section":{color:"#81A1C1"},"arduino .hljs-built_in":{color:"#88C0D0"},"aspectj .hljs-meta":{color:"#D08770"},"aspectj > .hljs-title":{color:"#88C0D0"},"bnf .hljs-attribute":{color:"#8FBCBB"},"clojure .hljs-name":{color:"#88C0D0"},"clojure .hljs-symbol":{color:"#EBCB8B"},"coq .hljs-built_in":{color:"#88C0D0"},"cpp .hljs-meta-string":{color:"#8FBCBB"},"css .hljs-built_in":{color:"#88C0D0"},"css .hljs-keyword":{color:"#D08770"},"diff .hljs-meta":{color:"#8FBCBB"},"ebnf .hljs-attribute":{color:"#8FBCBB"},"glsl .hljs-built_in":{color:"#88C0D0"},"groovy .hljs-meta:not(:first-child)":{color:"#D08770"},"haxe .hljs-meta":{color:"#D08770"},"java .hljs-meta":{color:"#D08770"},"ldif .hljs-attribute":{color:"#8FBCBB"},"lisp .hljs-name":{color:"#88C0D0"},"lua .hljs-built_in":{color:"#88C0D0"},"moonscript .hljs-built_in":{color:"#88C0D0"},"nginx .hljs-attribute":{color:"#88C0D0"},"nginx .hljs-section":{color:"#5E81AC"},"pf .hljs-built_in":{color:"#88C0D0"},"processing .hljs-built_in":{color:"#88C0D0"},"scss .hljs-keyword":{color:"#81A1C1"},"stylus .hljs-keyword":{color:"#81A1C1"},"swift .hljs-meta":{color:"#D08770"},"vim .hljs-built_in":{color:"#88C0D0",fontStyle:"italic"},"yaml .hljs-meta":{color:"#D08770"}},obsidian:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#282b2e",color:"#e0e2e4"},"hljs-keyword":{color:"#93c763",fontWeight:"bold"},"hljs-selector-tag":{color:"#93c763",fontWeight:"bold"},"hljs-literal":{color:"#93c763",fontWeight:"bold"},"hljs-selector-id":{color:"#93c763"},"hljs-number":{color:"#ffcd22"},"hljs-attribute":{color:"#668bb0"},"hljs-code":{color:"white"},"hljs-class .hljs-title":{color:"white"},"hljs-section":{color:"white",fontWeight:"bold"},"hljs-regexp":{color:"#d39745"},"hljs-link":{color:"#d39745"},"hljs-meta":{color:"#557182"},"hljs-tag":{color:"#8cbbad"},"hljs-name":{color:"#8cbbad",fontWeight:"bold"},"hljs-bullet":{color:"#8cbbad"},"hljs-subst":{color:"#8cbbad"},"hljs-emphasis":{color:"#8cbbad"},"hljs-type":{color:"#8cbbad",fontWeight:"bold"},"hljs-built_in":{color:"#8cbbad"},"hljs-selector-attr":{color:"#8cbbad"},"hljs-selector-pseudo":{color:"#8cbbad"},"hljs-addition":{color:"#8cbbad"},"hljs-variable":{color:"#8cbbad"},"hljs-template-tag":{color:"#8cbbad"},"hljs-template-variable":{color:"#8cbbad"},"hljs-string":{color:"#ec7600"},"hljs-symbol":{color:"#ec7600"},"hljs-comment":{color:"#818e96"},"hljs-quote":{color:"#818e96"},"hljs-deletion":{color:"#818e96"},"hljs-selector-class":{color:"#A082BD"},"hljs-doctag":{fontWeight:"bold"},"hljs-title":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"}},"tomorrow-night":{"hljs-comment":{color:"#969896"},"hljs-quote":{color:"#969896"},"hljs-variable":{color:"#cc6666"},"hljs-template-variable":{color:"#cc6666"},"hljs-tag":{color:"#cc6666"},"hljs-name":{color:"#cc6666"},"hljs-selector-id":{color:"#cc6666"},"hljs-selector-class":{color:"#cc6666"},"hljs-regexp":{color:"#cc6666"},"hljs-deletion":{color:"#cc6666"},"hljs-number":{color:"#de935f"},"hljs-built_in":{color:"#de935f"},"hljs-builtin-name":{color:"#de935f"},"hljs-literal":{color:"#de935f"},"hljs-type":{color:"#de935f"},"hljs-params":{color:"#de935f"},"hljs-meta":{color:"#de935f"},"hljs-link":{color:"#de935f"},"hljs-attribute":{color:"#f0c674"},"hljs-string":{color:"#b5bd68"},"hljs-symbol":{color:"#b5bd68"},"hljs-bullet":{color:"#b5bd68"},"hljs-addition":{color:"#b5bd68"},"hljs-title":{color:"#81a2be"},"hljs-section":{color:"#81a2be"},"hljs-keyword":{color:"#b294bb"},"hljs-selector-tag":{color:"#b294bb"},hljs:{display:"block",overflowX:"auto",background:"#1d1f21",color:"#c5c8c6",padding:"0.5em"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},idea:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#000",background:"#fff"},"hljs-subst":{fontWeight:"normal",color:"#000"},"hljs-title":{fontWeight:"normal",color:"#000"},"hljs-comment":{color:"#808080",fontStyle:"italic"},"hljs-quote":{color:"#808080",fontStyle:"italic"},"hljs-meta":{color:"#808000"},"hljs-tag":{background:"#efefef"},"hljs-section":{fontWeight:"bold",color:"#000080"},"hljs-name":{fontWeight:"bold",color:"#000080"},"hljs-literal":{fontWeight:"bold",color:"#000080"},"hljs-keyword":{fontWeight:"bold",color:"#000080"},"hljs-selector-tag":{fontWeight:"bold",color:"#000080"},"hljs-type":{fontWeight:"bold",color:"#000080"},"hljs-selector-id":{fontWeight:"bold",color:"#000080"},"hljs-selector-class":{fontWeight:"bold",color:"#000080"},"hljs-attribute":{fontWeight:"bold",color:"#0000ff"},"hljs-number":{fontWeight:"normal",color:"#0000ff"},"hljs-regexp":{fontWeight:"normal",color:"#0000ff"},"hljs-link":{fontWeight:"normal",color:"#0000ff"},"hljs-string":{color:"#008000",fontWeight:"bold"},"hljs-symbol":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-bullet":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-formula":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-doctag":{textDecoration:"underline"},"hljs-variable":{color:"#660e7a"},"hljs-template-variable":{color:"#660e7a"},"hljs-addition":{background:"#baeeba"},"hljs-deletion":{background:"#ffc8bd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}}},f9=Wx,m9=({language:t,className:e="",getConfigs:r,syntaxHighlighting:n={},children:a=""})=>{const o=r().syntaxHighlight.theme,{styles:p,defaultStyle:c}=n,d=p?.[o]??c;return u.createElement(Pc,{language:t,className:e,style:d},a)};var g9=Be(5419),y9=Be.n(g9);const xv="Copy code to clipboard",v9=({fileName:t="response.txt",className:e,downloadable:r,getComponent:n,canCopy:a,language:o,children:p})=>{const c=(0,u.useRef)(null),d=n("SyntaxHighlighter",!0),E=x=>{const{target:k,deltaY:P}=x,{scrollHeight:R,offsetHeight:L,scrollTop:V}=k;R>L&&(V===0&&P<0||L+V>=R&&P>0)&&x.preventDefault()};return(0,u.useEffect)((()=>{const x=Array.from(c.current.childNodes).filter((k=>!!k.nodeType&&k.classList.contains("microlight")));return x.forEach((k=>k.addEventListener("mousewheel",E,{passive:!1}))),()=>{x.forEach((k=>k.removeEventListener("mousewheel",E)))}}),[p,e,o]),u.createElement("div",{className:"highlight-code",ref:c},a&&u.createElement("div",{className:"copy-to-clipboard",title:xv,"aria-label":xv},u.createElement(cu.CopyToClipboard,{text:p},u.createElement("button",{"aria-label":xv,title:xv,type:"button"}))),r?u.createElement("button",{className:"download-contents",onClick:()=>{y9()(p,t)}},"Download"):null,u.createElement(d,{language:o,className:Xr()(e,"microlight"),renderPlainText:({children:x,PlainTextViewer:k})=>u.createElement(k,{className:e},x)},p))},b9=({className:t="",children:e})=>u.createElement("pre",{className:Xr()("microlight",t)},e),w9=(t,e)=>({renderPlainText:r,children:n,...a})=>{const o=e.getConfigs().syntaxHighlight.activated,p=e.getComponent("PlainTextViewer");return o||typeof r!="function"?o?u.createElement(t,a,n):u.createElement(p,null,n):r({children:n,PlainTextViewer:p})},E9=()=>({afterLoad:h9,rootInjects:{syntaxHighlighting:{styles:d9,defaultStyle:f9}},components:{SyntaxHighlighter:m9,HighlightCode:v9,PlainTextViewer:b9}}),S9=()=>({wrapComponents:{SyntaxHighlighter:w9}}),Hx=()=>[E9,S9],x9=()=>{const{GIT_DIRTY:t,GIT_COMMIT:e,PACKAGE_VERSION:r,BUILD_TIME:n}={PACKAGE_VERSION:"5.32.14",GIT_COMMIT:"gfefb1df1",GIT_DIRTY:!0,BUILD_TIME:"Tue, 18 Aug 2026 12:11:43 GMT"};Qe.versions=Qe.versions||{},Qe.versions.swaggerUI={version:r,gitRevision:e,gitDirty:t,buildTimestamp:n}},Kx=()=>({afterLoad:x9});var _9=Be(47248),O9=Be.n(_9);const Gx=console.error,k9=t=>e=>{const{getComponent:r,fn:n}=t(),a=r("ErrorBoundary"),o=n.getDisplayName(e);class p extends u.Component{render(){return u.createElement(a,{targetName:o,getComponent:r,fn:n},u.createElement(e,Yr()({},this.props,this.context)))}}var c;return p.displayName=`WithErrorBoundary(${o})`,(c=e).prototype&&c.prototype.isReactComponent&&(p.prototype.mapStateToProps=e.prototype.mapStateToProps),p},Yx=({name:t})=>u.createElement("div",{className:"fallback"},"😱 ",u.createElement("i",null,"Could not render ",t==="t"?"this component":t,", see the console."));class A9 extends u.Component{static defaultProps={targetName:"this component",getComponent:()=>Yx,fn:{componentDidCatch:Gx},children:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}constructor(...e){super(...e),this.state={hasError:!1,error:null}}componentDidCatch(e,r){this.props.fn.componentDidCatch(e,r)}render(){const{getComponent:e,targetName:r,children:n}=this.props;if(this.state.hasError){const a=e("Fallback");return u.createElement(a,{name:r})}return n}}const C9=A9,Xx=({componentList:t=[],fullOverride:e=!1}={})=>({getSystem:r})=>{const n=e?t:["App","BaseLayout","VersionPragmaFilter","InfoContainer","ServersContainer","SchemesContainer","AuthorizeBtnContainer","FilterContainer","Operations","OperationContainer","parameters","responses","OperationServers","Models","ModelWrapper",...t],a=O9()(n,Array(n.length).fill(((o,{fn:p})=>p.withErrorBoundary(o))));return{fn:{componentDidCatch:Gx,withErrorBoundary:k9(r)},components:{ErrorBoundary:C9,Fallback:Yx},wrapComponents:a}};class j9 extends u.Component{getLayout(){const{getComponent:e,layoutSelectors:r}=this.props,n=r.current();return e(n,!0)||(()=>u.createElement("h1",null,' No layout defined for "',n,'" '))}render(){const e=this.getLayout();return u.createElement(e,null)}}const P9=j9;class N9 extends u.Component{close=()=>{let{authActions:e}=this.props;e.showDefinitions(!1)};handleEscKeydown=e=>{e.key==="Escape"&&this.close()};componentDidMount(){document.addEventListener("keydown",this.handleEscKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleEscKeydown)}render(){let{authSelectors:e,authActions:r,getComponent:n,errSelectors:a,specSelectors:o,fn:{AST:p={}}}=this.props,c=e.shownDefinitions();const d=n("auths"),E=n("CloseIcon");return u.createElement("div",{className:"dialog-ux"},u.createElement("div",{className:"backdrop-ux",onClick:this.close}),u.createElement("div",{className:"modal-ux"},u.createElement("div",{className:"modal-dialog-ux"},u.createElement("div",{className:"modal-ux-inner"},u.createElement("div",{className:"modal-ux-header"},u.createElement("h3",null,"Available authorizations"),u.createElement("button",{type:"button",className:"close-modal",onClick:this.close},u.createElement(E,null))),u.createElement("div",{className:"modal-ux-content"},c.valueSeq().map(((x,k)=>u.createElement(d,{key:k,AST:p,definitions:x,getComponent:n,errSelectors:a,authSelectors:e,authActions:r,specSelectors:o}))))))))}}class T9 extends u.Component{render(){let{isAuthorized:e,showPopup:r,onClick:n,getComponent:a}=this.props;const o=a("authorizationPopup",!0),p=a("LockAuthIcon",!0),c=a("UnlockAuthIcon",!0);return u.createElement("div",{className:"auth-wrapper"},u.createElement("button",{className:e?"btn authorize locked":"btn authorize unlocked",onClick:n},u.createElement("span",null,"Authorize"),e?u.createElement(p,null):u.createElement(c,null)),r&&u.createElement(o,null))}}class I9 extends u.Component{render(){const{authActions:e,authSelectors:r,specSelectors:n,getComponent:a}=this.props,o=n.securityDefinitions(),p=r.definitionsToAuthorize(),c=a("authorizeBtn");return o?u.createElement(c,{onClick:()=>e.showDefinitions(p),isAuthorized:!!r.authorized().size,showPopup:!!r.shownDefinitions(),getComponent:a}):null}}class M9 extends u.Component{onClick=e=>{e.stopPropagation();let{onClick:r}=this.props;r&&r()};render(){let{isAuthorized:e,getComponent:r}=this.props;const n=r("LockAuthOperationIcon",!0),a=r("UnlockAuthOperationIcon",!0);return u.createElement("button",{className:"authorization__btn","aria-label":e?"authorization button locked":"authorization button unlocked",onClick:this.onClick},e?u.createElement(n,{className:"locked"}):u.createElement(a,{className:"unlocked"}))}}class R9 extends u.Component{constructor(e,r){super(e,r),this.state={}}onAuthChange=e=>{let{name:r}=e;this.setState({[r]:e})};submitAuth=e=>{e.preventDefault();let{authActions:r}=this.props;r.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:r,definitions:n}=this.props,a=n.keySeq().toArray();this.setState(a.reduce(((o,p)=>(o[p]="",o)),{})),r.logoutWithPersistOption(a)};close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};render(){let{definitions:e,getComponent:r,authSelectors:n,errSelectors:a}=this.props;const o=r("AuthItem"),p=r("oauth2",!0),c=r("Button");let d=n.authorized(),E=e.filter(((P,R)=>!!d.get(R))),x=e.filter((P=>P.get("type")!=="oauth2")),k=e.filter((P=>P.get("type")==="oauth2"));return u.createElement("div",{className:"auth-container"},!!x.size&&u.createElement("form",{onSubmit:this.submitAuth},x.map(((P,R)=>u.createElement(o,{key:R,schema:P,name:R,getComponent:r,onAuthChange:this.onAuthChange,authorized:d,errSelectors:a,authSelectors:n}))).valueSeq().toArray(),u.createElement("div",{className:"auth-btn-wrapper"},x.size===E.size?u.createElement(c,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):u.createElement(c,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),u.createElement(c,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),k&&k.size?u.createElement("div",null,u.createElement("div",{className:"scope-def"},u.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),u.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),e.filter((P=>P.get("type")==="oauth2")).map(((P,R)=>u.createElement("div",{key:R},u.createElement(p,{authorized:d,schema:P,name:R})))).valueSeq().toArray()):null)}}class D9 extends u.Component{render(){let{schema:e,name:r,getComponent:n,onAuthChange:a,authorized:o,errSelectors:p,authSelectors:c}=this.props;const d=n("apiKeyAuth"),E=n("basicAuth");let x;const k=e.get("type");switch(k){case"apiKey":x=u.createElement(d,{key:r,schema:e,name:r,errSelectors:p,authorized:o,getComponent:n,onChange:a,authSelectors:c});break;case"basic":x=u.createElement(E,{key:r,schema:e,name:r,errSelectors:p,authorized:o,getComponent:n,onChange:a,authSelectors:c});break;default:x=u.createElement("div",{key:r},"Unknown security definition type ",k)}return u.createElement("div",{key:`${r}-jump`},x)}}class F9 extends u.Component{render(){let{error:e}=this.props,r=e.get("level"),n=e.get("message"),a=e.get("source");return u.createElement("div",{className:"errors"},u.createElement("b",null,a," ",r),u.createElement("span",null,n))}}class L9 extends u.Component{constructor(e,r){super(e,r);let{name:n,schema:a}=this.props,o=this.getValue();this.state={name:n,schema:a,value:o}}getValue(){let{name:e,authorized:r}=this.props;return r&&r.getIn([e,"value"])}onChange=e=>{let{onChange:r}=this.props,n=e.target.value,a=Object.assign({},this.state,{value:n});this.setState(a),r(a)};render(){let{schema:e,getComponent:r,errSelectors:n,name:a,authSelectors:o}=this.props;const p=r("Input"),c=r("Row"),d=r("Col"),E=r("authError"),x=r("Markdown",!0),k=r("JumpToPath",!0),P=o.selectAuthPath(a);let R=this.getValue(),L=n.allErrors().filter((V=>V.get("authId")===a));return u.createElement("div",null,u.createElement("h4",null,u.createElement("code",null,a||e.get("name"))," (apiKey)",u.createElement(k,{path:P})),R&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(x,{source:e.get("description")})),u.createElement(c,null,u.createElement("p",null,"Name: ",u.createElement("code",null,e.get("name")))),u.createElement(c,null,u.createElement("p",null,"In: ",u.createElement("code",null,e.get("in")))),u.createElement(c,null,u.createElement("label",{htmlFor:"api_key_value"},"Value:"),R?u.createElement("code",null," ****** "):u.createElement(d,null,u.createElement(p,{id:"api_key_value",type:"text",onChange:this.onChange,autoFocus:!0}))),L.valueSeq().map(((V,Q)=>u.createElement(E,{error:V,key:Q}))))}}class $9 extends u.Component{constructor(e,r){super(e,r);let{schema:n,name:a}=this.props,o=this.getValue().username;this.state={name:a,schema:n,value:o?{username:o}:{}}}getValue(){let{authorized:e,name:r}=this.props;return e&&e.getIn([r,"value"])||{}}onChange=e=>{let{onChange:r}=this.props,{value:n,name:a}=e.target,o=this.state.value;o[a]=n,this.setState({value:o}),r(this.state)};render(){let{schema:e,getComponent:r,name:n,errSelectors:a,authSelectors:o}=this.props;const p=r("Input"),c=r("Row"),d=r("Col"),E=r("authError"),x=r("JumpToPath",!0),k=r("Markdown",!0),P=o.selectAuthPath(n);let R=this.getValue().username,L=a.allErrors().filter((V=>V.get("authId")===n));return u.createElement("div",null,u.createElement("h4",null,"Basic authorization",u.createElement(x,{path:P})),R&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(k,{source:e.get("description")})),u.createElement(c,null,u.createElement("label",{htmlFor:"auth_username"},"Username:"),R?u.createElement("code",null," ",R," "):u.createElement(d,null,u.createElement(p,{id:"auth_username",type:"text",required:"required",name:"username",onChange:this.onChange,autoFocus:!0}))),u.createElement(c,null,u.createElement("label",{htmlFor:"auth_password"},"Password:"),R?u.createElement("code",null," ****** "):u.createElement(d,null,u.createElement(p,{id:"auth_password",autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),L.valueSeq().map(((V,Q)=>u.createElement(E,{error:V,key:Q}))))}}function B9(t){const{example:e,showValue:r,getComponent:n}=t,a=n("Markdown",!0),o=n("HighlightCode",!0);return e&&H.Map.isMap(e)?u.createElement("div",{className:"example"},e.get("description")?u.createElement("section",{className:"example__section"},u.createElement("div",{className:"example__section-header"},"Example Description"),u.createElement("p",null,u.createElement(a,{source:e.get("description")}))):null,r&&e.has("value")?u.createElement("section",{className:"example__section"},u.createElement("div",{className:"example__section-header"},"Example Value"),u.createElement(o,null,Gr(e.get("value")))):null):null}class q9 extends u.PureComponent{static defaultProps={examples:(0,H.Map)({}),onSelect:(...e)=>console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...e),currentExampleKey:null,showLabels:!0};_onSelect=(e,{isSyntheticChange:r=!1}={})=>{typeof this.props.onSelect=="function"&&this.props.onSelect(e,{isSyntheticChange:r})};_onDomSelect=e=>{if(typeof this.props.onSelect=="function"){const r=e.target.selectedOptions[0].getAttribute("value");this._onSelect(r,{isSyntheticChange:!1})}};getCurrentExample=()=>{const{examples:e,currentExampleKey:r}=this.props,n=e.get(r),a=e.keySeq().first(),o=e.get(a);return n||o||(0,H.Map)({})};componentDidMount(){const{onSelect:e,examples:r}=this.props;if(typeof e=="function"){const n=r.first(),a=r.keyOf(n);this._onSelect(a,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(e){const{currentExampleKey:r,examples:n}=e;if(n!==this.props.examples&&!n.has(r)){const a=n.first(),o=n.keyOf(a);this._onSelect(o,{isSyntheticChange:!0})}}render(){const{examples:e,currentExampleKey:r,isValueModified:n,isModifiedValueAvailable:a,showLabels:o}=this.props;return u.createElement("div",{className:"examples-select"},o?u.createElement("span",{className:"examples-select__section-label"},"Examples: "):null,u.createElement("select",{className:"examples-select-element",onChange:this._onDomSelect,value:a&&n?"__MODIFIED__VALUE__":r||""},a?u.createElement("option",{value:"__MODIFIED__VALUE__"},"[Modified value]"):null,e.map(((p,c)=>u.createElement("option",{key:c,value:c},H.Map.isMap(p)&&p.get("summary")||c))).valueSeq()))}}const $1=t=>H.List.isList(t)?t:Gr(t);class U9 extends u.PureComponent{static defaultProps={userHasEditedBody:!1,examples:(0,H.Map)({}),currentNamespace:"__DEFAULT__NAMESPACE__",setRetainRequestBodyValueFlag:()=>{},onSelect:(...e)=>console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...e),updateValue:(...e)=>console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...e)};constructor(e){super(e);const r=this._getCurrentExampleValue();this.state={[e.currentNamespace]:(0,H.Map)({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:r,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==r})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}_getStateForCurrentNamespace=()=>{const{currentNamespace:e}=this.props;return(this.state[e]||(0,H.Map)()).toObject()};_setStateForCurrentNamespace=e=>{const{currentNamespace:r}=this.props;return this._setStateForNamespace(r,e)};_setStateForNamespace=(e,r)=>{const n=(this.state[e]||(0,H.Map)()).merge(r);return this.setState({[e]:n})};_isCurrentUserInputSameAsExampleValue=()=>{const{currentUserInputValue:e}=this.props;return this._getCurrentExampleValue()===e};_getValueForExample=(e,r)=>{const{examples:n}=r||this.props;return $1((n||(0,H.Map)({})).getIn([e,"value"]))};_getCurrentExampleValue=e=>{const{currentKey:r}=e||this.props;return this._getValueForExample(r,e||this.props)};_onExamplesSelect=(e,{isSyntheticChange:r}={},...n)=>{const{onSelect:a,updateValue:o,currentUserInputValue:p,userHasEditedBody:c}=this.props,{lastUserEditedValue:d}=this._getStateForCurrentNamespace(),E=this._getValueForExample(e);if(e==="__MODIFIED__VALUE__")return o($1(d)),this._setStateForCurrentNamespace({isModifiedValueSelected:!0});typeof a=="function"&&a(e,{isSyntheticChange:r},...n),this._setStateForCurrentNamespace({lastDownstreamValue:E,isModifiedValueSelected:r&&c||!!p&&p!==E}),r||typeof o=="function"&&o($1(E))};UNSAFE_componentWillReceiveProps(e){const{currentUserInputValue:r,examples:n,onSelect:a,userHasEditedBody:o}=e,{lastUserEditedValue:p,lastDownstreamValue:c}=this._getStateForCurrentNamespace(),d=this._getValueForExample(e.currentKey,e),E=n.filter((x=>H.Map.isMap(x)&&(x.get("value")===r||Gr(x.get("value"))===r)));if(E.size){let x;x=E.has(e.currentKey)?e.currentKey:E.keySeq().first(),a(x,{isSyntheticChange:!0})}else r!==this.props.currentUserInputValue&&r!==p&&r!==c&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(e.currentNamespace,{lastUserEditedValue:e.currentUserInputValue,isModifiedValueSelected:o||r!==d}))}render(){const{currentUserInputValue:e,examples:r,currentKey:n,getComponent:a,userHasEditedBody:o}=this.props,{lastDownstreamValue:p,lastUserEditedValue:c,isModifiedValueSelected:d}=this._getStateForCurrentNamespace(),E=a("ExamplesSelect");return u.createElement(E,{examples:r,currentExampleKey:n,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!c&&c!==p,isValueModified:e!==void 0&&d&&e!==this._getCurrentExampleValue()||o})}}function z9({auth:t,authActions:e,errActions:r,configs:n,authConfigs:a={},currentServer:o}){let{schema:p,scopes:c,name:d,clientId:E}=t,x=p.get("flow"),k=[];switch(x){case"password":return void e.authorizePassword(t);case"application":case"clientCredentials":case"client_credentials":return void e.authorizeApplication(t);case"accessCode":case"authorizationCode":case"authorization_code":k.push("response_type=code");break;case"implicit":k.push("response_type=token")}typeof E=="string"&&k.push("client_id="+encodeURIComponent(E));let P=n.oauth2RedirectUrl;if(P===void 0)return void r.newAuthErr({authId:d,source:"validation",level:"error",message:"oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed."});k.push("redirect_uri="+encodeURIComponent(P));let R=[];if(Array.isArray(c)?R=c:H.default.List.isList(c)&&(R=c.toArray()),R.length>0){let le=a.scopeSeparator||" ";k.push("scope="+encodeURIComponent(R.join(le)))}let L=ko(new Date);if(k.push("state="+encodeURIComponent(L)),a.realm!==void 0&&k.push("realm="+encodeURIComponent(a.realm)),(x==="authorizationCode"||x==="authorization_code"||x==="accessCode")&&a.usePkceWithAuthorizationCodeGrant){const le=(function(){return Ja(Fn()(32).toString("base64"))})(),ve=(function(ce){return Ja(Vo()("sha256").update(ce).digest("base64"))})(le);k.push("code_challenge="+ve),k.push("code_challenge_method=S256"),t.codeVerifier=le}let{additionalQueryStringParams:V}=a;for(let le in V)V[le]!==void 0&&k.push([le,V[le]].map(encodeURIComponent).join("="));const Q=p.get("authorizationUrl");let J;J=o?Ao()(Dr(Q),o,!0).toString():Dr(Q);let re,me=[J,k.join("&")].join(typeof Q!="string"||Q.includes("?")?"&":"?");re=x==="implicit"?e.preAuthorizeImplicit:a.useBasicAuthenticationWithAccessCodeGrant?e.authorizeAccessCodeWithBasicAuthentication:e.authorizeAccessCodeWithFormParams,e.authPopup(me,{auth:t,state:L,redirectUrl:P,callback:re,errCb:r.newAuthErr})}class V9 extends u.Component{constructor(e,r){super(e,r);let{name:n,schema:a,authorized:o,authSelectors:p}=this.props,c=o&&o.get(n),d=p.getConfigs()||{},E=c&&c.get("username")||"",x=c&&c.get("clientId")||d.clientId||"",k=c&&c.get("clientSecret")||d.clientSecret||"",P=c&&c.get("passwordType")||"basic",R=c&&c.get("scopes")||d.scopes||[];typeof R=="string"&&(R=R.split(d.scopeSeparator||" ")),this.state={appName:d.appName,name:n,schema:a,scopes:R,clientId:x,clientSecret:k,username:E,password:"",passwordType:P}}close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};authorize=()=>{let{authActions:e,errActions:r,getConfigs:n,authSelectors:a,oas3Selectors:o}=this.props,p=n(),c=a.getConfigs();r.clear({authId:name,type:"auth",source:"auth"}),z9({auth:this.state,currentServer:o.serverEffectiveValue(o.selectedServer()),authActions:e,errActions:r,configs:p,authConfigs:c})};onScopeChange=e=>{let{target:r}=e,{checked:n}=r,a=r.dataset.value;if(n&&this.state.scopes.indexOf(a)===-1){let o=this.state.scopes.concat([a]);this.setState({scopes:o})}else!n&&this.state.scopes.indexOf(a)>-1&&this.setState({scopes:this.state.scopes.filter((o=>o!==a))})};onInputChange=e=>{let{target:{dataset:{name:r},value:n}}=e,a={[r]:n};this.setState(a)};selectScopes=e=>{e.target.dataset.all?this.setState({scopes:Array.from((this.props.schema.get("allowedScopes")||this.props.schema.get("scopes")).keys())}):this.setState({scopes:[]})};logout=e=>{e.preventDefault();let{authActions:r,errActions:n,name:a}=this.props;n.clear({authId:a,type:"auth",source:"auth"}),r.logoutWithPersistOption([a])};render(){let{schema:e,getComponent:r,authSelectors:n,errSelectors:a,name:o,specSelectors:p}=this.props;const c=r("Input"),d=r("Row"),E=r("Col"),x=r("Button"),k=r("authError"),P=r("JumpToPath",!0),R=r("Markdown",!0),L=r("InitializedInput"),{isOAS3:V}=p;let Q=V()?e.get("openIdConnectUrl"):null;const J="implicit",re="password",me=V()?Q?"authorization_code":"authorizationCode":"accessCode",le=V()?Q?"client_credentials":"clientCredentials":"application",ve=n.selectAuthPath(o);let be=!!(n.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,ce=e.get("flow"),_e=ce===me&&be?ce+" with PKCE":ce,Ae=e.get("allowedScopes")||e.get("scopes"),xe=!!n.authorized().get(o),Oe=a.allErrors().filter((de=>de.get("authId")===o)),je=!Oe.filter((de=>de.get("source")==="validation")).size,G=e.get("description");return u.createElement("div",null,u.createElement("h4",null,o," (OAuth2, ",_e,") ",u.createElement(P,{path:ve})),this.state.appName?u.createElement("h5",null,"Application: ",this.state.appName," "):null,G&&u.createElement(R,{source:e.get("description")}),xe&&u.createElement("h6",null,"Authorized"),Q&&u.createElement("p",null,"OpenID Connect URL: ",u.createElement("code",null,Q)),(ce===J||ce===me)&&u.createElement("p",null,"Authorization URL: ",u.createElement("code",null,e.get("authorizationUrl"))),(ce===re||ce===me||ce===le)&&u.createElement("p",null,"Token URL:",u.createElement("code",null," ",e.get("tokenUrl"))),u.createElement("p",{className:"flow"},"Flow: ",u.createElement("code",null,_e)),ce!==re?null:u.createElement(d,null,u.createElement(d,null,u.createElement("label",{htmlFor:"oauth_username"},"username:"),xe?u.createElement("code",null," ",this.state.username," "):u.createElement(E,{tablet:10,desktop:10},u.createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange,autoFocus:!0}))),u.createElement(d,null,u.createElement("label",{htmlFor:"oauth_password"},"password:"),xe?u.createElement("code",null," ****** "):u.createElement(E,{tablet:10,desktop:10},u.createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),u.createElement(d,null,u.createElement("label",{htmlFor:"password_type"},"Client credentials location:"),xe?u.createElement("code",null," ",this.state.passwordType," "):u.createElement(E,{tablet:10,desktop:10},u.createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},u.createElement("option",{value:"basic"},"Authorization header"),u.createElement("option",{value:"request-body"},"Request body"))))),(ce===le||ce===J||ce===me||ce===re)&&(!xe||xe&&this.state.clientId)&&u.createElement(d,null,u.createElement("label",{htmlFor:`client_id_${ce}`},"client_id:"),xe?u.createElement("code",null," ****** "):u.createElement(E,{tablet:10,desktop:10},u.createElement(L,{id:`client_id_${ce}`,type:"text",required:ce===re,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(ce===le||ce===me||ce===re)&&u.createElement(d,null,u.createElement("label",{htmlFor:`client_secret_${ce}`},"client_secret:"),xe?u.createElement("code",null," ****** "):u.createElement(E,{tablet:10,desktop:10},u.createElement(L,{id:`client_secret_${ce}`,initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!xe&&Ae&&Ae.size?u.createElement("div",{className:"scopes"},u.createElement("h2",null,"Scopes:",u.createElement("a",{onClick:this.selectScopes,"data-all":!0},"select all"),u.createElement("a",{onClick:this.selectScopes},"select none")),Ae.map(((de,Ne)=>u.createElement(d,{key:Ne},u.createElement("div",{className:"checkbox"},u.createElement(c,{"data-value":Ne,id:`${Ne}-${ce}-checkbox-${this.state.name}`,disabled:xe,checked:this.state.scopes.includes(Ne),type:"checkbox",onChange:this.onScopeChange}),u.createElement("label",{htmlFor:`${Ne}-${ce}-checkbox-${this.state.name}`},u.createElement("span",{className:"item"}),u.createElement("div",{className:"text"},u.createElement("p",{className:"name"},Ne),u.createElement("p",{className:"description"},de))))))).valueSeq().toArray()):null,Oe.valueSeq().map(((de,Ne)=>u.createElement(k,{error:de,key:Ne}))),u.createElement("div",{className:"auth-btn-wrapper"},je&&(xe?u.createElement(x,{className:"btn modal-btn auth authorize",onClick:this.logout,"aria-label":"Remove authorization"},"Logout"):u.createElement(x,{className:"btn modal-btn auth authorize",onClick:this.authorize,"aria-label":"Apply given OAuth2 credentials"},"Authorize")),u.createElement(x,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close")))}}class J9 extends u.Component{onClick=()=>{let{specActions:e,path:r,method:n}=this.props;e.clearResponse(r,n),e.clearRequest(r,n)};render(){return u.createElement("button",{className:"btn btn-clear opblock-control__btn",onClick:this.onClick},"Clear")}}const W9=({headers:t})=>u.createElement("div",null,u.createElement("h5",null,"Response headers"),u.createElement("pre",{className:"microlight"},t)),H9=({duration:t})=>u.createElement("div",null,u.createElement("h5",null,"Request duration"),u.createElement("pre",{className:"microlight"},t," ms"));class K9 extends u.Component{shouldComponentUpdate(e){return this.props.response!==e.response||this.props.path!==e.path||this.props.method!==e.method||this.props.displayRequestDuration!==e.displayRequestDuration}render(){const{response:e,getComponent:r,getConfigs:n,displayRequestDuration:a,specSelectors:o,path:p,method:c}=this.props,{showMutatedRequest:d,requestSnippetsEnabled:E}=n(),x=d?o.mutatedRequestFor(p,c):o.requestFor(p,c),k=e.get("status"),P=x.get("url"),R=e.get("headers").toJS(),L=e.get("notDocumented"),V=e.get("error"),Q=e.get("text"),J=e.get("duration"),re=Object.keys(R),me=R["content-type"]||R["Content-Type"],le=r("responseBody"),ve=re.map((xe=>{var Oe=Array.isArray(R[xe])?R[xe].join():R[xe];return u.createElement("span",{className:"headerline",key:xe}," ",xe,": ",Oe," ")})),be=ve.length!==0,ce=r("Markdown",!0),_e=r("RequestSnippets",!0),Ae=r("curl",!0);return u.createElement("div",null,x&&E?u.createElement(_e,{request:x}):u.createElement(Ae,{request:x}),P&&u.createElement("div",null,u.createElement("div",{className:"request-url"},u.createElement("h4",null,"Request URL"),u.createElement("pre",{className:"microlight"},P))),u.createElement("h4",null,"Server response"),u.createElement("table",{className:"responses-table live-responses-table"},u.createElement("thead",null,u.createElement("tr",{className:"responses-header"},u.createElement("td",{className:"col_header response-col_status"},"Code"),u.createElement("td",{className:"col_header response-col_description"},"Details"))),u.createElement("tbody",null,u.createElement("tr",{className:"response"},u.createElement("td",{className:"response-col_status"},k,L?u.createElement("div",{className:"response-undocumented"},u.createElement("i",null," Undocumented ")):null),u.createElement("td",{className:"response-col_description"},V?u.createElement(ce,{source:`${e.get("name")!==""?`${e.get("name")}: `:""}${e.get("message")}`}):null,Q?u.createElement(le,{content:Q,contentType:me,url:P,headers:R,getConfigs:n,getComponent:r}):null,be?u.createElement(W9,{headers:ve}):null,a&&J?u.createElement(H9,{duration:J}):null)))))}}class Qx extends u.Component{constructor(e,r){super(e,r);let{getConfigs:n}=e,{validatorUrl:a}=n();this.state={url:this.getDefinitionUrl(),validatorUrl:a===void 0?"https://validator.swagger.io/validator":a}}getDefinitionUrl=()=>{let{specSelectors:e}=this.props;return new(Ao())(e.url(),Qe.location).toString()};UNSAFE_componentWillReceiveProps(e){let{getConfigs:r}=e,{validatorUrl:n}=r();this.setState({url:this.getDefinitionUrl(),validatorUrl:n===void 0?"https://validator.swagger.io/validator":n})}render(){let{getConfigs:e}=this.props,{spec:r}=e(),n=Dr(this.state.validatorUrl);return typeof r=="object"&&Object.keys(r).length?null:this.state.url&&ta(this.state.validatorUrl)&&ta(this.state.url)?u.createElement("span",{className:"float-right"},u.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${n}/debug?url=${encodeURIComponent(this.state.url)}`},u.createElement(G9,{src:`${n}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class G9 extends u.Component{constructor(e){super(e),this.state={loaded:!1,error:!1}}componentDidMount(){const e=new Image;e.onload=()=>{this.setState({loaded:!0})},e.onerror=()=>{this.setState({error:!0})},e.src=this.props.src}UNSAFE_componentWillReceiveProps(e){if(e.src!==this.props.src){const r=new Image;r.onload=()=>{this.setState({loaded:!0})},r.onerror=()=>{this.setState({error:!0})},r.src=e.src}}render(){return this.state.error?u.createElement("img",{alt:"Error"}):this.state.loaded?u.createElement("img",{src:this.props.src,alt:this.props.alt}):null}}class Y9 extends u.Component{render(){let{specSelectors:e}=this.props;const r=e.taggedOperations();return r.size===0?u.createElement("h3",null," No operations defined in spec!"):u.createElement("div",null,r.map(this.renderOperationTag).valueSeq().toArray(),r.size<1?u.createElement("h3",null," No operations defined in spec! "):null)}renderOperationTag=(e,r)=>{const{specSelectors:n,getComponent:a,oas3Selectors:o,layoutSelectors:p,layoutActions:c,getConfigs:d}=this.props,E=n.validOperationMethods(),x=a("OperationContainer",!0),k=a("OperationTag"),P=e.get("operations");return u.createElement(k,{key:"operation-"+r,tagObj:e,tag:r,oas3Selectors:o,layoutSelectors:p,layoutActions:c,getConfigs:d,getComponent:a,specUrl:n.url()},u.createElement("div",{className:"operation-tag-content"},P.map((R=>{const L=R.get("path"),V=R.get("method"),Q=R.get("specPath");return E.indexOf(V)===-1?null:u.createElement(x,{key:`${L}-${V}`,specPath:Q,op:R,path:L,method:V,tag:r})})).toArray()))}}class X9 extends u.Component{static defaultProps={tagObj:H.default.fromJS({}),tag:""};render(){const{tagObj:e,tag:r,children:n,oas3Selectors:a,layoutSelectors:o,layoutActions:p,getConfigs:c,getComponent:d,specUrl:E}=this.props;let{docExpansion:x,deepLinking:k}=c();const P=d("Collapse"),R=d("Markdown",!0),L=d("DeepLink"),V=d("Link"),Q=d("ArrowUpIcon"),J=d("ArrowDownIcon");let re,me=e.getIn(["tagDetails","description"],null),le=e.getIn(["tagDetails","externalDocs","description"]),ve=e.getIn(["tagDetails","externalDocs","url"]);re=ia(a)&&ia(a.selectedServer)?ba(ve,E,{selectedServer:a.selectedServer()}):ve;let be=["operations-tag",r],ce=o.isShown(be,x==="full"||x==="list");return u.createElement("div",{className:ce?"opblock-tag-section is-open":"opblock-tag-section"},u.createElement("h3",{onClick:()=>p.show(be,!ce),className:me?"opblock-tag":"opblock-tag no-desc",id:be.map((_e=>ms(_e))).join("-"),"data-tag":r,"data-is-open":ce},u.createElement(L,{enabled:k,isShown:ce,path:Jo(r),text:r}),me?u.createElement("small",null,u.createElement(R,{source:me})):u.createElement("small",null),re?u.createElement("div",{className:"info__externaldocs"},u.createElement("small",null,u.createElement(V,{href:Dr(re),onClick:_e=>_e.stopPropagation(),target:"_blank"},le||re))):null,u.createElement("button",{"aria-expanded":ce,className:"expand-operation",title:ce?"Collapse operation":"Expand operation",onClick:()=>p.show(be,!ce)},ce?u.createElement(Q,{className:"arrow"}):u.createElement(J,{className:"arrow"}))),u.createElement(P,{isOpened:ce},n))}}class Q9 extends u.PureComponent{static defaultProps={operation:null,response:null,request:null,specPath:(0,H.List)(),summary:""};render(){let{specPath:e,response:r,request:n,toggleShown:a,onTryoutClick:o,onResetClick:p,onCancelClick:c,onExecute:d,fn:E,getComponent:x,getConfigs:k,specActions:P,specSelectors:R,authActions:L,authSelectors:V,oas3Actions:Q,oas3Selectors:J}=this.props,re=this.props.operation,{deprecated:me,isShown:le,path:ve,method:be,op:ce,tag:_e,operationId:Ae,allowTryItOut:xe,displayRequestDuration:Oe,tryItOutEnabled:je,executeInProgress:G}=re.toObject();const de=ce.get("description"),Ne=ce.get("externalDocs")?.toJS(),Ye=ce.get("schemes")?.toJS(),ht=Ne?ba(Ne.url,R.url(),{selectedServer:J.selectedServer()}):"";let Ct=re.getIn(["op"]),_t=Ct.get("responses"),qt=(function(dr,qr){if(!H.default.Iterable.isIterable(dr))return H.default.List();let en=dr.getIn(Array.isArray(qr)?qr:[qr]);return H.default.List.isList(en)?en:H.default.List()})(Ct,["parameters"]),It=R.operationScheme(ve,be),Ot=["operations",_e,Ae],et=gr(Ct);const Dt=x("responses",!0),or=x("parameters",!0),Ut=x("execute"),pr=x("clear"),W=x("Collapse"),$e=x("Markdown",!0),Je=x("schemes"),Ft=x("OperationServers"),it=x("OperationExt"),bt=x("OperationSummary"),ut=x("Link"),{showExtensions:Xt}=k();if(_t&&r&&r.size>0){let Er=!_t.get(String(r.get("status")))&&!_t.get("default");r=r.set("notDocumented",Er)}let zt=[ve,be];const tr=R.validationErrors([ve,be]);return u.createElement("div",{className:me?"opblock opblock-deprecated":le?`opblock opblock-${be} is-open`:`opblock opblock-${be}`,id:ms(Ot.join("-"))},u.createElement(bt,{operationProps:re,isShown:le,toggleShown:a,getComponent:x,authActions:L,authSelectors:V,specPath:e}),u.createElement(W,{isOpened:le},u.createElement("div",{className:"opblock-body"},Ct&&Ct.size||Ct===null?null:u.createElement(yh,{height:"32px",width:"32px",className:"opblock-loading-animation"}),me&&u.createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),de&&u.createElement("div",{className:"opblock-description-wrapper"},u.createElement("div",{className:"opblock-description"},u.createElement($e,{source:de}))),ht?u.createElement("div",{className:"opblock-external-docs-wrapper"},u.createElement("h4",{className:"opblock-title_normal"},"Find more details"),u.createElement("div",{className:"opblock-external-docs"},Ne.description&&u.createElement("span",{className:"opblock-external-docs__description"},u.createElement($e,{source:Ne.description})),u.createElement(ut,{target:"_blank",className:"opblock-external-docs__link",href:Dr(ht)},ht))):null,Ct&&Ct.size?u.createElement(or,{parameters:qt,specPath:e.push("parameters"),operation:Ct,onChangeKey:zt,onTryoutClick:o,onResetClick:p,onCancelClick:c,tryItOutEnabled:je,allowTryItOut:xe,fn:E,getComponent:x,specActions:P,specSelectors:R,pathMethod:[ve,be],getConfigs:k,oas3Actions:Q,oas3Selectors:J}):null,je?u.createElement(Ft,{getComponent:x,path:ve,method:be,operationServers:Ct.get("servers"),pathServers:R.paths().getIn([ve,"servers"]),getSelectedServer:J.selectedServer,setSelectedServer:Q.setSelectedServer,setServerVariableValue:Q.setServerVariableValue,getServerVariable:J.serverVariableValue,getEffectiveServerValue:J.serverEffectiveValue}):null,je&&xe&&Ye&&Ye.size?u.createElement("div",{className:"opblock-schemes"},u.createElement(Je,{schemes:Ye,path:ve,method:be,specActions:P,currentScheme:It})):null,!je||!xe||tr.length<=0?null:u.createElement("div",{className:"validation-errors errors-wrapper"},"Please correct the following validation errors and try again.",u.createElement("ul",null,tr.map(((Er,dr)=>u.createElement("li",{key:dr}," ",Er," "))))),u.createElement("div",{className:je&&r&&xe?"btn-group":"execute-wrapper"},je&&xe?u.createElement(Ut,{operation:Ct,specActions:P,specSelectors:R,oas3Selectors:J,oas3Actions:Q,path:ve,method:be,onExecute:d,disabled:G}):null,je&&r&&xe?u.createElement(pr,{specActions:P,path:ve,method:be}):null),G?u.createElement("div",{className:"loading-container"},u.createElement("div",{className:"loading"})):null,_t?u.createElement(Dt,{responses:_t,request:n,tryItOutResponse:r,getComponent:x,getConfigs:k,specSelectors:R,oas3Actions:Q,oas3Selectors:J,specActions:P,produces:R.producesOptionsFor([ve,be]),producesValue:R.currentProducesFor([ve,be]),specPath:e.push("responses"),path:ve,method:be,displayRequestDuration:Oe,fn:E}):null,Xt&&et.size?u.createElement(it,{extensions:et,getComponent:x}):null)))}}class Z9 extends u.PureComponent{constructor(e,r){super(e,r);const{tryItOutEnabled:n}=e.getConfigs();this.state={tryItOutEnabled:n,executeInProgress:!1}}static defaultProps={showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1};mapStateToProps(e,r){const{op:n,layoutSelectors:a,getConfigs:o}=r,{docExpansion:p,deepLinking:c,displayOperationId:d,displayRequestDuration:E,supportedSubmitMethods:x}=o(),k=a.showSummary(),P=n.getIn(["operation","__originalOperationId"])||n.getIn(["operation","operationId"])||Df(n.get("operation"),r.path,r.method)||n.get("id"),R=["operations",r.tag,P],L=x.indexOf(r.method)>=0&&(r.allowTryItOut===void 0?r.specSelectors.allowTryItOutFor(r.path,r.method):r.allowTryItOut),V=n.getIn(["operation","security"])||r.specSelectors.security();return{operationId:P,isDeepLinkingEnabled:c,showSummary:k,displayOperationId:d,displayRequestDuration:E,allowTryItOut:L,security:V,isAuthorized:r.authSelectors.isAuthorized(V),isShown:a.isShown(R,p==="full"),jumpToKey:`paths.${r.path}.${r.method}`,response:r.specSelectors.responseFor(r.path,r.method),request:r.specSelectors.requestFor(r.path,r.method)}}componentDidMount(){const{isShown:e}=this.props,r=this.getResolvedSubtree();e&&r===void 0&&this.requestResolvedSubtree()}componentDidUpdate(e){const{response:r,isShown:n}=this.props,a=this.getResolvedSubtree();r!==e.response&&this.setState({executeInProgress:!1}),n&&a===void 0&&this.requestResolvedSubtree()}toggleShown=()=>{let{layoutActions:e,tag:r,operationId:n,isShown:a}=this.props;const o=this.getResolvedSubtree();a||o!==void 0||this.requestResolvedSubtree(),e.show(["operations",r,n],!a)};onCancelClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onTryoutClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onResetClick=e=>{const r=this.props.oas3Selectors.selectDefaultRequestBodyValue(...e),n=this.props.oas3Selectors.requestContentType(...e);if(n==="application/x-www-form-urlencoded"||n==="multipart/form-data"){const a=JSON.parse(r);Object.entries(a).forEach((([o,p])=>{Array.isArray(p)?a[o]=a[o].map((c=>typeof c=="object"?JSON.stringify(c,null,2):c)):typeof p=="object"&&(a[o]=JSON.stringify(a[o],null,2))})),this.props.oas3Actions.setRequestBodyValue({value:(0,H.fromJS)(a),pathMethod:e})}else this.props.oas3Actions.setRequestBodyValue({value:r,pathMethod:e})};onExecute=()=>{this.setState({executeInProgress:!0})};getResolvedSubtree=()=>{const{specSelectors:e,path:r,method:n,specPath:a}=this.props;return a?e.specResolvedSubtree(a.toJS()):e.specResolvedSubtree(["paths",r,n])};requestResolvedSubtree=()=>{const{specActions:e,path:r,method:n,specPath:a}=this.props;return a?e.requestResolvedSubtree(a.toJS()):e.requestResolvedSubtree(["paths",r,n])};render(){let{op:e,tag:r,path:n,method:a,security:o,isAuthorized:p,operationId:c,showSummary:d,isShown:E,jumpToKey:x,allowTryItOut:k,response:P,request:R,displayOperationId:L,displayRequestDuration:V,isDeepLinkingEnabled:Q,specPath:J,specSelectors:re,specActions:me,getComponent:le,getConfigs:ve,layoutSelectors:be,layoutActions:ce,authActions:_e,authSelectors:Ae,oas3Actions:xe,oas3Selectors:Oe,fn:je}=this.props;const G=le("operation"),de=this.getResolvedSubtree()||(0,H.Map)(),Ne=(0,H.fromJS)({op:de,tag:r,path:n,summary:e.getIn(["operation","summary"])||"",deprecated:de.get("deprecated")||e.getIn(["operation","deprecated"])||!1,method:a,security:o,isAuthorized:p,operationId:c,originalOperationId:de.getIn(["operation","__originalOperationId"]),showSummary:d,isShown:E,jumpToKey:x,allowTryItOut:k,request:R,displayOperationId:L,displayRequestDuration:V,isDeepLinkingEnabled:Q,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return u.createElement(G,{operation:Ne,response:P,request:R,isShown:E,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:J,specActions:me,specSelectors:re,oas3Actions:xe,oas3Selectors:Oe,layoutActions:ce,layoutSelectors:be,authActions:_e,authSelectors:Ae,getComponent:le,getConfigs:ve,fn:je})}}var e7=Be(13222),t7=Be.n(e7);class r7 extends u.PureComponent{static defaultProps={operationProps:null,specPath:(0,H.List)(),summary:""};render(){let{isShown:e,toggleShown:r,getComponent:n,authActions:a,authSelectors:o,operationProps:p,specPath:c}=this.props,{summary:d,isAuthorized:E,method:x,op:k,showSummary:P,path:R,operationId:L,originalOperationId:V,displayOperationId:Q}=p.toObject();const J=k.get("summary"),re=p.get("security"),me=n("authorizeOperationBtn",!0),le=n("OperationSummaryMethod"),ve=n("OperationSummaryPath"),be=n("JumpToPath",!0),ce=n("CopyToClipboardBtn",!0),_e=n("ArrowUpIcon"),Ae=n("ArrowDownIcon"),xe=re&&!!re.count(),Oe=xe&&re.size===1&&re.first().isEmpty(),je=!xe||Oe;return u.createElement("div",{className:`opblock-summary opblock-summary-${x}`},u.createElement("button",{"aria-expanded":e,className:"opblock-summary-control",onClick:r},u.createElement(le,{method:x}),u.createElement("div",{className:"opblock-summary-path-description-wrapper"},u.createElement(ve,{getComponent:n,operationProps:p,specPath:c}),P?u.createElement("div",{className:"opblock-summary-description"},t7()(J||d)):null),Q&&(V||L)?u.createElement("span",{className:"opblock-summary-operation-id"},V||L):null),u.createElement(ce,{textToCopy:`${c.get(1)}`}),je?null:u.createElement(me,{isAuthorized:E,onClick:()=>{const G=o.definitionsForRequirements(re);a.showDefinitions(G)}}),u.createElement(be,{path:c}),u.createElement("button",{"aria-label":`${x} ${R.replace(/\//g,"​/")}`,className:"opblock-control-arrow","aria-expanded":e,tabIndex:"-1",onClick:r},e?u.createElement(_e,{className:"arrow"}):u.createElement(Ae,{className:"arrow"})))}}class n7 extends u.PureComponent{static defaultProps={operationProps:null};render(){let{method:e}=this.props;return u.createElement("span",{className:"opblock-summary-method"},e.toUpperCase())}}class a7 extends u.PureComponent{render(){let{getComponent:e,operationProps:r}=this.props,{deprecated:n,isShown:a,path:o,tag:p,operationId:c,isDeepLinkingEnabled:d}=r.toObject();const E=o.split(/(?=\/)/g);for(let k=1;k{let r=e("OperationExtRow");return u.createElement("div",{className:"opblock-section"},u.createElement("div",{className:"opblock-section-header"},u.createElement("h4",null,"Extensions")),u.createElement("div",{className:"table-container"},u.createElement("table",null,u.createElement("thead",null,u.createElement("tr",null,u.createElement("td",{className:"col_header"},"Field"),u.createElement("td",{className:"col_header"},"Value"))),u.createElement("tbody",null,t.entrySeq().map((([n,a])=>u.createElement(r,{key:`${n}-${a}`,xKey:n,xVal:a})))))))},i7=({xKey:t,xVal:e})=>{const r=e?e.toJS?e.toJS():e:null;return u.createElement("tr",null,u.createElement("td",null,t),u.createElement("td",null,JSON.stringify(r)))};function B1(t,e="_"){return t.replace(/[^\w-]/g,e)}class q1 extends u.Component{static defaultProps={tryItOutResponse:null,produces:(0,H.fromJS)(["application/json"]),displayRequestDuration:!1};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);onResponseContentTypeChange=({controlsAcceptHeader:e,value:r})=>{const{oas3Actions:n,path:a,method:o}=this.props;e&&n.setResponseContentType({value:r,path:a,method:o})};render(){let{responses:e,tryItOutResponse:r,getComponent:n,getConfigs:a,specSelectors:o,fn:p,producesValue:c,displayRequestDuration:d,specPath:E,path:x,method:k,oas3Selectors:P,oas3Actions:R}=this.props,L=(function(_e){let Ae=_e.keySeq();return Ae.contains(tn)?tn:Ae.filter((xe=>(xe+"")[0]==="2")).sort().first()})(e);const V=n("contentType"),Q=n("liveResponse"),J=n("response");let re=this.props.produces&&this.props.produces.size?this.props.produces:q1.defaultProps.produces;const me=o.isOAS3()?(function(_e){if(!H.default.OrderedMap.isOrderedMap(_e)||!_e.size)return null;const Ae=_e.find(((je,G)=>G.startsWith("2")&&Object.keys(je.get("content")||{}).length>0)),xe=_e.get("default")||H.default.OrderedMap(),Oe=(xe.get("content")||H.default.OrderedMap()).keySeq().toJS().length?xe:null;return Ae||Oe})(e):null,le=e.filter(((ce,_e)=>!Yt(_e))),ve=B1(`${k}${x}_responses`),be=`${ve}_select`;return le&&le.size?u.createElement("div",{className:"responses-wrapper"},u.createElement("div",{className:"opblock-section-header"},u.createElement("h4",null,"Responses"),o.isOAS3()?null:u.createElement("label",{htmlFor:be},u.createElement("span",null,"Response content type"),u.createElement(V,{value:c,ariaControls:ve,ariaLabel:"Response content type",className:"execute-content-type",contentTypes:re,controlId:be,onChange:this.onChangeProducesWrapper}))),u.createElement("div",{className:"responses-inner"},r?u.createElement("div",null,u.createElement(Q,{response:r,getComponent:n,getConfigs:a,specSelectors:o,path:this.props.path,method:this.props.method,displayRequestDuration:d}),u.createElement("h4",null,"Responses")):null,u.createElement("table",{"aria-live":"polite",className:"responses-table",id:ve,role:"region"},u.createElement("thead",null,u.createElement("tr",{className:"responses-header"},u.createElement("td",{className:"col_header response-col_status"},"Code"),u.createElement("td",{className:"col_header response-col_description"},"Description"),o.isOAS3()?u.createElement("td",{className:"col col_header response-col_links"},"Links"):null)),u.createElement("tbody",null,le.entrySeq().map((([ce,_e])=>{let Ae=r&&r.get("status")==ce?"response_current":"";return u.createElement(J,{key:ce,path:x,method:k,specPath:E.push(ce),isDefault:L===ce,fn:p,className:Ae,code:ce,response:_e,specSelectors:o,controlsAcceptHeader:_e===me,onContentTypeChange:this.onResponseContentTypeChange,contentType:c,getConfigs:a,activeExamplesKey:P.activeExamplesMember(x,k,"responses",ce),oas3Actions:R,getComponent:n})})).toArray())))):null}}function _v(t){return(function(n){try{return!!JSON.parse(n)}catch{return null}})(t)?"json":null}class s7 extends u.Component{constructor(e,r){super(e,r),this.state={responseContentType:""}}static defaultProps={response:(0,H.fromJS)({}),onContentTypeChange:()=>{}};_onContentTypeChange=e=>{const{onContentTypeChange:r,controlsAcceptHeader:n}=this.props;this.setState({responseContentType:e}),r({value:e,controlsAcceptHeader:n})};getTargetExamplesKey=()=>{const{response:e,contentType:r,activeExamplesKey:n}=this.props,a=this.state.responseContentType||r,o=e.getIn(["content",a],(0,H.Map)({})).get("examples",null).keySeq().first();return n||o};render(){let{path:e,method:r,code:n,response:a,className:o,specPath:p,fn:c,getComponent:d,getConfigs:E,specSelectors:x,contentType:k,controlsAcceptHeader:P,oas3Actions:R}=this.props,{inferSchema:L,getSampleSchema:V}=c,Q=x.isOAS3();const{showExtensions:J}=E();let re=J?gr(a):null,me=a.get("headers"),le=a.get("links");const ve=d("ResponseExtension"),be=d("headers"),ce=d("HighlightCode",!0),_e=d("modelExample"),Ae=d("Markdown",!0),xe=d("operationLink"),Oe=d("contentType"),je=d("ExamplesSelect"),G=d("Example");var de,Ne;const Ye=this.state.responseContentType||k,ht=a.getIn(["content",Ye],(0,H.Map)({})),Ct=ht.get("examples",null);if(Q){const Dt=ht.get("schema");de=Dt?L(Dt.toJS()):null,Ne=Dt?p.push("content",this.state.responseContentType,"schema"):p}else de=a.get("schema"),Ne=a.has("schema")?p.push("schema"):p;let _t,qt,It=!1,Ot={includeReadOnly:!0};if(Q)if(qt=ht.get("schema")?.toJS(),H.Map.isMap(Ct)&&!Ct.isEmpty()){const Dt=this.getTargetExamplesKey(),or=Ut=>H.Map.isMap(Ut)?Ut.get("value"):void 0;_t=or(Ct.get(Dt,(0,H.Map)({}))),_t===void 0&&(_t=or(Ct.values().next().value)),It=!0}else ht.get("example")!==void 0&&(_t=ht.get("example"),It=!0);else{qt=de,Ot={...Ot,includeWriteOnly:!0};const Dt=a.getIn(["examples",Ye]);Dt&&(_t=Dt,It=!0)}const et=((Dt,or)=>{if(Dt==null)return null;const Ut=_v(Dt)?"json":null;return u.createElement("div",null,u.createElement(or,{className:"example",language:Ut},Gr(Dt)))})(V(qt,Ye,Ot,It?_t:void 0),ce);return u.createElement("tr",{className:"response "+(o||""),"data-code":n},u.createElement("td",{className:"response-col_status"},n),u.createElement("td",{className:"response-col_description"},u.createElement("div",{className:"response-col_description__inner"},u.createElement(Ae,{source:a.get("description")})),J&&re.size?re.entrySeq().map((([Dt,or])=>u.createElement(ve,{key:`${Dt}-${or}`,xKey:Dt,xVal:or}))):null,Q&&a.get("content")?u.createElement("section",{className:"response-controls"},u.createElement("div",{className:Xr()("response-control-media-type",{"response-control-media-type--accept-controller":P})},u.createElement("small",{className:"response-control-media-type__title"},"Media type"),u.createElement(Oe,{value:this.state.responseContentType,contentTypes:a.get("content")?a.get("content").keySeq():(0,H.Seq)(),onChange:this._onContentTypeChange,ariaLabel:"Media Type"}),P?u.createElement("small",{className:"response-control-media-type__accept-message"},"Controls ",u.createElement("code",null,"Accept")," header."):null),H.Map.isMap(Ct)&&!Ct.isEmpty()?u.createElement("div",{className:"response-control-examples"},u.createElement("small",{className:"response-control-examples__title"},"Examples"),u.createElement(je,{examples:Ct,currentExampleKey:this.getTargetExamplesKey(),onSelect:Dt=>R.setActiveExamplesMember({name:Dt,pathMethod:[e,r],contextType:"responses",contextName:n}),showLabels:!1})):null):null,et||de?u.createElement(_e,{specPath:Ne,getComponent:d,getConfigs:E,specSelectors:x,schema:nn(de),example:et,includeReadOnly:!0}):null,Q&&Ct?u.createElement(G,{example:Ct.get(this.getTargetExamplesKey(),(0,H.Map)({})),getComponent:d,getConfigs:E,omitValue:!0}):null,me?u.createElement(be,{headers:me,getComponent:d}):null),Q?u.createElement("td",{className:"response-col_links"},le?le.toSeq().entrySeq().map((([Dt,or])=>u.createElement(xe,{key:Dt,name:Dt,link:or,getComponent:d}))):u.createElement("i",null,"No links")):null)}}const l7=({xKey:t,xVal:e})=>u.createElement("div",{className:"response__extension"},t,": ",String(e));var c7=Be(26657),u7=Be.n(c7),p7=Be(80218),Zx=Be.n(p7);class h7 extends u.PureComponent{state={parsedContent:null};updateParsedContent=e=>{const{content:r}=this.props;if(e!==r)if(r&&r instanceof Blob){var n=new FileReader;n.onload=()=>{this.setState({parsedContent:n.result})},n.readAsText(r)}else this.setState({parsedContent:r.toString()})};componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(e){this.updateParsedContent(e.content)}render(){let{content:e,contentType:r,url:n,headers:a={},getComponent:o}=this.props;const{parsedContent:p}=this.state,c=o("HighlightCode",!0),d="response_"+new Date().getTime();let E,x;if(n=n||"",(/^application\/octet-stream/i.test(r)||a["Content-Disposition"]&&/attachment/i.test(a["Content-Disposition"])||a["content-disposition"]&&/attachment/i.test(a["content-disposition"])||a["Content-Description"]&&/File Transfer/i.test(a["Content-Description"])||a["content-description"]&&/File Transfer/i.test(a["content-description"]))&&(e.size>0||e.length>0))if("Blob"in window){let k=r||"text/html",P=e instanceof Blob?e:new Blob([e],{type:k}),R=window.URL.createObjectURL(P),L=[k,n.substr(n.lastIndexOf("/")+1),R].join(":"),V=a["content-disposition"]||a["Content-Disposition"];if(V!==void 0){let Q=(function(re){let me;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some((le=>(me=le.exec(re),me!==null))),me!==null&&me.length>1)try{return decodeURIComponent(me[1])}catch(le){console.error(le)}return null})(V);Q!==null&&(L=Q)}x=Qe.navigator&&Qe.navigator.msSaveOrOpenBlob?u.createElement("div",null,u.createElement("a",{href:R,onClick:()=>Qe.navigator.msSaveOrOpenBlob(P,L)},"Download file")):u.createElement("div",null,u.createElement("a",{href:R,download:L},"Download file"))}else x=u.createElement("pre",{className:"microlight"},"Download headers detected but your browser does not support downloading binary via XHR (Blob).");else if(/json/i.test(r)){let k=null;_v(e)&&(k="json");try{E=JSON.stringify(JSON.parse(e),null," ")}catch{E=`can't parse JSON. Raw result: + +`+e}x=u.createElement(c,{language:k,downloadable:!0,fileName:`${d}.json`,canCopy:!0},E)}else/xml/i.test(r)?(E=u7()(e,{textNodesOnSameLine:!0,indentor:" "}),x=u.createElement(c,{downloadable:!0,fileName:`${d}.xml`,canCopy:!0},E)):x=Zx()(r)==="text/html"||/text\/plain/.test(r)?u.createElement(c,{downloadable:!0,fileName:`${d}.html`,canCopy:!0},e):Zx()(r)==="text/csv"||/text\/csv/.test(r)?u.createElement(c,{downloadable:!0,fileName:`${d}.csv`,canCopy:!0},e):/^image\//i.test(r)?r.includes("svg")?u.createElement("div",null," ",e," "):u.createElement("img",{src:window.URL.createObjectURL(e)}):/^audio\//i.test(r)?u.createElement("pre",{className:"microlight"},u.createElement("audio",{controls:!0,key:n},u.createElement("source",{src:n,type:r}))):typeof e=="string"?u.createElement(c,{downloadable:!0,fileName:`${d}.txt`,canCopy:!0},e):e.size>0?p?u.createElement("div",null,u.createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),u.createElement(c,{downloadable:!0,fileName:`${d}.txt`,canCopy:!0},p)):u.createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return x?u.createElement("div",null,u.createElement("h5",null,"Response body"),x):null}}class d7 extends u.Component{constructor(e){super(e),this.state={callbackVisible:!1,parametersVisible:!0}}static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]};onChange=(e,r,n)=>{let{specActions:{changeParamByIdentity:a},onChangeKey:o}=this.props;a(o,e,r,n)};onChangeConsumesWrapper=e=>{let{specActions:{changeConsumesValue:r},onChangeKey:n}=this.props;r(n,e)};toggleTab=e=>e==="parameters"?this.setState({parametersVisible:!0,callbackVisible:!1}):e==="callbacks"?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0;onChangeMediaType=({value:e,pathMethod:r})=>{let{specActions:n,oas3Selectors:a,oas3Actions:o}=this.props;const p=a.hasUserEditedBody(...r),c=a.shouldRetainRequestBodyValue(...r);o.setRequestContentType({value:e,pathMethod:r}),o.initRequestBodyValidateError({pathMethod:r}),p||(c||o.setRequestBodyValue({value:void 0,pathMethod:r}),n.clearResponse(...r),n.clearRequest(...r),n.clearValidateParams(r))};render(){let{onTryoutClick:e,onResetClick:r,parameters:n,allowTryItOut:a,tryItOutEnabled:o,specPath:p,fn:c,getComponent:d,getConfigs:E,specSelectors:x,specActions:k,pathMethod:P,oas3Actions:R,oas3Selectors:L,operation:V}=this.props;const Q=d("parameterRow"),J=d("TryItOutButton"),re=d("contentType"),me=d("Callbacks",!0),le=d("RequestBody",!0),ve=o&&a,be=x.isOAS3(),ce=`${B1(`${P[1]}${P[0]}_requests`)}_select`,_e=V.get("requestBody"),Ae=Object.values(n.reduce(((xe,Oe)=>{if(H.Map.isMap(Oe)){const je=Oe.get("in");xe[je]??=[],xe[je].push(Oe)}return xe}),{})).reduce(((xe,Oe)=>xe.concat(Oe)),[]);return u.createElement("div",{className:"opblock-section"},u.createElement("div",{className:"opblock-section-header"},be?u.createElement("div",{className:"tab-header"},u.createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},u.createElement("h4",{className:"opblock-title"},u.createElement("span",null,"Parameters"))),V.get("callbacks")?u.createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},u.createElement("h4",{className:"opblock-title"},u.createElement("span",null,"Callbacks"))):null):u.createElement("div",{className:"tab-header"},u.createElement("h4",{className:"opblock-title"},"Parameters")),a?u.createElement(J,{isOAS3:x.isOAS3(),hasUserEditedBody:L.hasUserEditedBody(...P),enabled:o,onCancelClick:this.props.onCancelClick,onTryoutClick:e,onResetClick:()=>r(P)}):null),this.state.parametersVisible?u.createElement("div",{className:"parameters-container"},Ae.length?u.createElement("div",{className:"table-container"},u.createElement("table",{className:"parameters"},u.createElement("thead",null,u.createElement("tr",null,u.createElement("th",{className:"col_header parameters-col_name"},"Name"),u.createElement("th",{className:"col_header parameters-col_description"},"Description"))),u.createElement("tbody",null,Ae.map(((xe,Oe)=>u.createElement(Q,{fn:c,specPath:p.push(Oe.toString()),getComponent:d,getConfigs:E,rawParam:xe,param:x.parameterWithMetaByIdentity(P,xe),key:`${xe.get("in")}.${xe.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:x,specActions:k,oas3Actions:R,oas3Selectors:L,pathMethod:P,isExecute:ve})))))):u.createElement("div",{className:"opblock-description-wrapper"},u.createElement("p",null,"No parameters"))):null,this.state.callbackVisible?u.createElement("div",{className:"callbacks-container opblock-description-wrapper"},u.createElement(me,{callbacks:(0,H.Map)(V.get("callbacks")),specPath:p.slice(0,-1).push("callbacks")})):null,be&&_e&&this.state.parametersVisible&&u.createElement("div",{className:"opblock-section opblock-section-request-body"},u.createElement("div",{className:"opblock-section-header"},u.createElement("h4",{className:`opblock-title parameter__name ${_e.get("required")&&"required"}`},"Request body"),u.createElement("label",{id:ce},u.createElement(re,{value:L.requestContentType(...P),contentTypes:_e.get("content",(0,H.List)()).keySeq(),onChange:xe=>{this.onChangeMediaType({value:xe,pathMethod:P})},className:"body-param-content-type",ariaLabel:"Request content type",controlId:ce}))),u.createElement("div",{className:"opblock-description-wrapper"},u.createElement(le,{setRetainRequestBodyValueFlag:xe=>R.setRetainRequestBodyValueFlag({value:xe,pathMethod:P}),userHasEditedBody:L.hasUserEditedBody(...P),specPath:p.slice(0,-1).push("requestBody"),requestBody:_e,requestBodyValue:L.requestBodyValue(...P),requestBodyInclusionSetting:L.requestBodyInclusionSetting(...P),requestBodyErrors:L.requestBodyErrors(...P),isExecute:ve,getConfigs:E,activeExamplesKey:L.activeExamplesMember(...P,"requestBody","requestBody"),updateActiveExamplesKey:xe=>{this.props.oas3Actions.setActiveExamplesMember({name:xe,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(xe,Oe)=>{if(Oe){const je=L.requestBodyValue(...P),G=H.Map.isMap(je)?je:(0,H.Map)();return R.setRequestBodyValue({pathMethod:P,value:G.setIn(Oe,xe)})}R.setRequestBodyValue({value:xe,pathMethod:P})},onChangeIncludeEmpty:(xe,Oe)=>{R.setRequestBodyInclusion({pathMethod:P,value:Oe,name:xe})},contentType:L.requestContentType(...P)}))))}}const f7=({xKey:t,xVal:e})=>u.createElement("div",{className:"parameter__extension"},t,": ",String(e)),m7={onChange:()=>{},isIncludedOptions:{}};class g7 extends u.Component{static defaultProps=m7;componentDidMount(){const{isIncludedOptions:e,onChange:r}=this.props,{shouldDispatchInit:n,defaultValue:a}=e;n&&r(a)}onCheckboxChange=e=>{const{onChange:r}=this.props;r(e.target.checked)};render(){let{isIncluded:e,isDisabled:r}=this.props;return u.createElement("div",null,u.createElement("label",{htmlFor:"include_empty_value",className:Xr()("parameter__empty_value_toggle",{disabled:r})},u.createElement("input",{id:"include_empty_value",type:"checkbox",disabled:r,checked:!r&&e,onChange:this.onCheckboxChange}),"Send empty value"))}}const U1=t=>{if(H.List.isList(t))return t;if(typeof t!="string")return null;try{const e=JSON.parse(t);return Array.isArray(e)?(0,H.List)(e):null}catch{return null}};class y7 extends u.Component{constructor(e,r){super(e,r),this.setDefaultValue()}UNSAFE_componentWillReceiveProps(e){let r,{specSelectors:n,pathMethod:a,rawParam:o}=e,p=n.isOAS3(),c=n.parameterWithMetaByIdentity(a,o)||new H.Map;if(c=c.isEmpty()?o:c,p){let{schema:x}=sr(c,{isOAS3:p});r=x?x.get("enum"):void 0}else r=c?c.get("enum"):void 0;let d,E=c?c.get("value"):void 0;E!==void 0?d=E:o.get("required")&&r&&r.size&&(d=r.first()),d!==void 0&&d!==E&&this.onChangeWrapper((function(k){return typeof k=="number"?k.toString():k})(d)),this.setDefaultValue()}onChangeWrapper=(e,r=!1)=>{let n,{onChange:a,rawParam:o}=this.props;return n=e===""||e&&e.size===0?null:e,a(o,n,r)};_onExampleSelect=e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})};onChangeIncludeEmpty=e=>{let{specActions:r,param:n,pathMethod:a}=this.props;const o=n.get("name"),p=n.get("in");return r.updateEmptyParamInclusion(a,o,p,e)};setDefaultValue=()=>{let{specSelectors:e,pathMethod:r,rawParam:n,oas3Selectors:a,fn:o}=this.props;const p=e.isOAS3(),c=e.parameterWithMetaByIdentity(r,n)||(0,H.Map)();let{schema:d}=sr(c,{isOAS3:p});const E=c.get("content",(0,H.Map)()).keySeq().first(),x=d?o.getSampleSchema(d.toJS(),E,{includeWriteOnly:!0}):null;if(c&&c.get("value")===void 0&&c.get("in")!=="body"){let k;if(e.isSwagger2())k=c.get("x-example")!==void 0?c.get("x-example"):c.getIn(["schema","example"])!==void 0?c.getIn(["schema","example"]):d&&d.getIn(["default"]);else if(p){d=this.composeJsonSchema(d);const V=a.activeExamplesMember(...r,"parameters",this.getParamKey());k=c.getIn(["examples",V,"value"])!==void 0?c.getIn(["examples",V,"value"]):c.getIn(["content",E,"example"])!==void 0?c.getIn(["content",E,"example"]):c.get("example")!==void 0?c.get("example"):(d&&d.get("example"))!==void 0?d&&d.get("example"):(d&&d.get("default"))!==void 0?d&&d.get("default"):c.get("default")}k===void 0||H.List.isList(k)||(k=Gr(k));const P=o.getSchemaObjectType(d),R=o.getSchemaObjectType(d?.get("items")),L=H.List.isList(d?.get("type"));if(p&&P==="array"&&!L&&k!==void 0){const V=U1(k);return void this.onChangeWrapper(V)}if(k!==void 0)this.onChangeWrapper(k);else if(P==="object"&&x&&!c.get("examples"))this.onChangeWrapper(H.List.isList(x)?x:Gr(x));else if(P==="array"&&R==="object"&&x&&!c.get("examples")){const V=U1(x);this.onChangeWrapper(V)}}};onExampleValueUpdate=e=>{const{specSelectors:r,pathMethod:n,rawParam:a,fn:o}=this.props,p=r.parameterWithMetaByIdentity(n,a)||(0,H.Map)();let{schema:c}=sr(p,{isOAS3:!0});c&&(c=this.composeJsonSchema(c));const d=o.getSchemaObjectType(c),E=H.List.isList(c?.get("type"));if(d!=="array"||E)this.onChangeWrapper(e);else{const x=U1(e);this.onChangeWrapper(x)}};getParamKey(){const{param:e}=this.props;return e?`${e.get("name")}-${e.get("in")}`:null}composeJsonSchema(e){const{fn:r}=this.props,n=e.get("oneOf")?.get(0)?.toJS(),a=e.get("anyOf")?.get(0)?.toJS();return(0,H.fromJS)(r.mergeJsonSchema(e.toJS(),n??a??{}))}render(){let{param:e,rawParam:r,getComponent:n,getConfigs:a,isExecute:o,fn:p,onChangeConsumes:c,specSelectors:d,pathMethod:E,specPath:x,oas3Selectors:k}=this.props,P=d.isOAS3();const{showExtensions:R,showCommonExtensions:L}=a();if(e||(e=r),!r)return null;const V=n("JsonSchemaForm"),Q=n("ParamBody");let J=e.get("in"),re=J!=="body"?null:u.createElement(Q,{getComponent:n,getConfigs:a,fn:p,param:e,consumes:d.consumesOptionsFor(E),consumesValue:d.contentTypeValues(E).get("requestContentType"),onChange:this.onChangeWrapper,onChangeConsumes:c,isExecute:o,specSelectors:d,pathMethod:E});const me=n("modelExample"),le=n("Markdown",!0),ve=n("ParameterExt"),be=n("ParameterIncludeEmpty"),ce=n("ExamplesSelectValueRetainer"),_e=n("Example");let{schema:Ae}=sr(e,{isOAS3:P}),xe=d.parameterWithMetaByIdentity(E,r)||(0,H.Map)();const Oe=xe.get("content",(0,H.Map)()).keySeq().first();P&&(Ae=this.composeJsonSchema(Ae));let je=Ae?Ae.get("format"):null,G=J==="formData",de="FormData"in Qe,Ne=e.get("required");const Ye=p.getSchemaObjectType(Ae),ht=p.getSchemaObjectType(Ae?.get("items")),Ct=p.getSchemaObjectTypeLabel(Ae),_t=!re&&Ye==="object",qt=!re&&ht==="object";let It,Ot,et,Dt,or=xe?xe.get("value"):"",Ut=L?mr(Ae):null,pr=R?gr(e):null,W=!1;e!==void 0&&Ae&&(It=Ae.get("items")),It!==void 0?(Ot=It.get("enum"),et=It.get("default")):Ae&&(Ot=Ae.get("enum")),Ot&&Ot.size&&Ot.size>0&&(W=!0),e!==void 0&&(Ae&&(et=Ae.get("default")),et===void 0&&(et=e.get("default")),Dt=e.get("example"),Dt===void 0&&(Dt=e.get("x-example")));const $e=re?null:u.createElement(V,{fn:p,getComponent:n,value:or,required:Ne,disabled:!o,description:e.get("name"),onChange:this.onChangeWrapper,errors:xe.get("errors"),schema:Ae});return u.createElement("tr",{"data-param-name":e.get("name"),"data-param-in":e.get("in")},u.createElement("td",{className:"parameters-col_name"},u.createElement("div",{className:Ne?"parameter__name required":"parameter__name"},e.get("name"),Ne?u.createElement("span",null," *"):null),u.createElement("div",{className:"parameter__type"},Ct,je&&u.createElement("span",{className:"prop-format"},"($",je,")")),u.createElement("div",{className:"parameter__deprecated"},P&&e.get("deprecated")?"deprecated":null),u.createElement("div",{className:"parameter__in"},"(",e.get("in"),")")),u.createElement("td",{className:"parameters-col_description"},e.get("description")?u.createElement(le,{source:e.get("description")}):null,!re&&o||!W?null:u.createElement(le,{className:"parameter__enum",source:"Available values : "+Ot.map((function(Je){return Je})).toArray().map(String).join(", ")}),!re&&o||et===void 0?null:u.createElement(le,{className:"parameter__default",source:"Default value : "+et}),!re&&o||Dt===void 0?null:u.createElement(le,{source:"Example : "+Dt}),G&&!de&&u.createElement("div",null,"Error: your browser does not support FormData"),P&&e.get("examples")?u.createElement("section",{className:"parameter-controls"},u.createElement(ce,{examples:e.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onExampleValueUpdate,getComponent:n,defaultToFirstExample:!0,currentKey:k.activeExamplesMember(...E,"parameters",this.getParamKey()),currentUserInputValue:or})):null,_t||qt?u.createElement(me,{getComponent:n,specPath:Oe?x.push("content",Oe,"schema"):x.push("schema"),getConfigs:a,isExecute:o,specSelectors:d,schema:Ae,example:$e}):$e,re&&Ae?u.createElement(me,{getComponent:n,specPath:x.push("schema"),getConfigs:a,isExecute:o,specSelectors:d,schema:Ae,example:re,includeWriteOnly:!0}):null,!re&&o&&e.get("allowEmptyValue")?u.createElement(be,{onChange:this.onChangeIncludeEmpty,isIncluded:d.parameterInclusionSettingFor(E,e.get("name"),e.get("in")),isDisabled:!Wa(or)}):null,P&&e.get("examples")?u.createElement(_e,{example:e.getIn(["examples",k.activeExamplesMember(...E,"parameters",this.getParamKey())]),getComponent:n,getConfigs:a}):null,L&&Ut.size?Ut.entrySeq().map((([Je,Ft])=>u.createElement(ve,{key:`${Je}-${Ft}`,xKey:Je,xVal:Ft}))):null,R&&pr.size?pr.entrySeq().map((([Je,Ft])=>u.createElement(ve,{key:`${Je}-${Ft}`,xKey:Je,xVal:Ft}))):null))}}class v7 extends u.Component{handleValidateParameters=()=>{let{specSelectors:e,specActions:r,path:n,method:a}=this.props;return r.validateParams([n,a]),e.validateBeforeExecute([n,a])};handleValidateRequestBody=()=>{let{path:e,method:r,specSelectors:n,oas3Selectors:a,oas3Actions:o}=this.props,p={missingBodyValue:!1,missingRequiredKeys:[]};o.clearRequestBodyValidateError({path:e,method:r});let c=n.getOAS3RequiredRequestBodyContentType([e,r]),d=a.requestBodyValue(e,r),E=a.validateBeforeExecute([e,r]),x=a.requestContentType(e,r);if(!E)return p.missingBodyValue=!0,o.setRequestBodyValidateError({path:e,method:r,validationErrors:p}),!1;if(!c)return!0;let k=a.validateShallowRequired({oas3RequiredRequestBodyContentType:c,oas3RequestContentType:x,oas3RequestBodyValue:d});return!k||k.length<1||(k.forEach((P=>{p.missingRequiredKeys.push(P)})),o.setRequestBodyValidateError({path:e,method:r,validationErrors:p}),!1)};handleValidationResultPass=()=>{let{specActions:e,operation:r,path:n,method:a}=this.props;this.props.onExecute&&this.props.onExecute(),e.execute({operation:r,path:n,method:a})};handleValidationResultFail=()=>{let{specActions:e,path:r,method:n}=this.props;e.clearValidateParams([r,n]),setTimeout((()=>{e.validateParams([r,n])}),40)};handleValidationResult=e=>{e?this.handleValidationResultPass():this.handleValidationResultFail()};onClick=()=>{let e=this.handleValidateParameters(),r=this.handleValidateRequestBody(),n=e&&r;this.handleValidationResult(n)};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);render(){const{disabled:e}=this.props;return u.createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:e},"Execute")}}class b7 extends u.Component{render(){let{headers:e,getComponent:r}=this.props;const n=r("Property"),a=r("Markdown",!0);return e&&e.size?u.createElement("div",{className:"headers-wrapper"},u.createElement("h4",{className:"headers__title"},"Headers:"),u.createElement("table",{className:"headers"},u.createElement("thead",null,u.createElement("tr",{className:"header-row"},u.createElement("th",{className:"header-col"},"Name"),u.createElement("th",{className:"header-col"},"Description"),u.createElement("th",{className:"header-col"},"Type"))),u.createElement("tbody",null,e.entrySeq().map((([o,p])=>{if(!H.default.Map.isMap(p))return null;const c=p.get("description"),d=p.getIn(["schema"])?p.getIn(["schema","type"]):p.getIn(["type"]),E=p.getIn(["schema","example"]);return u.createElement("tr",{key:o},u.createElement("td",{className:"header-col"},o),u.createElement("td",{className:"header-col"},c?u.createElement(a,{source:c}):null),u.createElement("td",{className:"header-col"},d," ",E?u.createElement(n,{propKey:"Example",propVal:E,propClass:"header-example"}):null))})).toArray()))):null}}class w7 extends u.Component{render(){let{editorActions:e,errSelectors:r,layoutSelectors:n,layoutActions:a,getComponent:o}=this.props;const p=o("Collapse");if(e&&e.jumpToLine)var c=e.jumpToLine;let d=r.allErrors().filter((k=>k.get("type")==="thrown"||k.get("level")==="error"));if(!d||d.count()<1)return null;let E=n.isShown(["errorPane"],!0),x=d.sortBy((k=>k.get("line")));return u.createElement("pre",{className:"errors-wrapper"},u.createElement("hgroup",{className:"error"},u.createElement("h4",{className:"errors__title"},"Errors"),u.createElement("button",{className:"btn errors__clear-btn",onClick:()=>a.show(["errorPane"],!E)},E?"Hide":"Show")),u.createElement(p,{isOpened:E,animated:!0},u.createElement("div",{className:"errors"},x.map(((k,P)=>{let R=k.get("type");return R==="thrown"||R==="auth"?u.createElement(E7,{key:P,error:k.get("error")||k,jumpToLine:c}):R==="spec"?u.createElement(S7,{key:P,error:k,jumpToLine:c}):void 0})))))}}const E7=({error:t,jumpToLine:e})=>{if(!t)return null;let r=t.get("line");return u.createElement("div",{className:"error-wrapper"},t?u.createElement("div",null,u.createElement("h4",null,t.get("source")&&t.get("level")?e_(t.get("source"))+" "+t.get("level"):"",t.get("path")?u.createElement("small",null," at ",t.get("path")):null),u.createElement("span",{className:"message thrown"},t.get("message")),u.createElement("div",{className:"error-line"},r&&e?u.createElement("a",{onClick:e.bind(null,r)},"Jump to line ",r):null)):null)},S7=({error:t,jumpToLine:e=null})=>{let r=null;return t.get("path")?r=H.List.isList(t.get("path"))?u.createElement("small",null,"at ",t.get("path").join(".")):u.createElement("small",null,"at ",t.get("path")):t.get("line")&&!e&&(r=u.createElement("small",null,"on line ",t.get("line"))),u.createElement("div",{className:"error-wrapper"},t?u.createElement("div",null,u.createElement("h4",null,e_(t.get("source"))+" "+t.get("level")," ",r),u.createElement("span",{className:"message"},t.get("message")),u.createElement("div",{className:"error-line"},e?u.createElement("a",{onClick:e.bind(null,t.get("line"))},"Jump to line ",t.get("line")):null)):null)};function e_(t){return(t||"").split(" ").map((e=>e[0].toUpperCase()+e.slice(1))).join(" ")}const x7=()=>{};class _7 extends u.Component{static defaultProps={onChange:x7,value:null,contentTypes:(0,H.fromJS)(["application/json"])};componentDidMount(){const{contentTypes:e,onChange:r}=this.props;e&&e.size&&r(e.first())}componentDidUpdate(){const{contentTypes:e,value:r,onChange:n}=this.props;e&&e.size&&(e.includes(r)||n(e.first()))}onChangeWrapper=e=>this.props.onChange(e.target.value);render(){let{ariaControls:e,ariaLabel:r,className:n,contentTypes:a,controlId:o,value:p}=this.props;return a&&a.size?u.createElement("div",{className:"content-type-wrapper "+(n||"")},u.createElement("select",{"aria-controls":e,"aria-label":r,className:"content-type",id:o,onChange:this.onChangeWrapper,value:p||""},a.map((c=>u.createElement("option",{key:c,value:c},c))).toArray())):null}}function Im(...t){return t.filter((e=>!!e)).join(" ").trim()}class O7 extends u.Component{render(){let{fullscreen:e,full:r,...n}=this.props;if(e)return u.createElement("section",n);let a="swagger-container"+(r?"-full":"");return u.createElement("section",Yr()({},n,{className:Im(n.className,a)}))}}const z1={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class k7 extends u.Component{render(){const{hide:e,keepContents:r,mobile:n,tablet:a,desktop:o,large:p,...c}=this.props;if(e&&!r)return u.createElement("span",null);let d=[];for(let x in z1){if(!Object.prototype.hasOwnProperty.call(z1,x))continue;let k=z1[x];if(x in this.props){let P=this.props[x];if(P<1){d.push("none"+k);continue}d.push("block"+k),d.push("col-"+P+k)}}e&&d.push("hidden");let E=Im(c.className,...d);return u.createElement("section",Yr()({},c,{className:E}))}}class A7 extends u.Component{render(){return u.createElement("div",Yr()({},this.props,{className:Im(this.props.className,"wrapper")}))}}class C7 extends u.Component{static defaultProps={className:""};render(){return u.createElement("button",Yr()({},this.props,{className:Im(this.props.className,"button")}))}}const j7=t=>u.createElement("textarea",t),P7=t=>u.createElement("input",t);class N7 extends u.Component{static defaultProps={multiple:!1,allowEmptyValue:!0};constructor(e,r){let n;super(e,r),n=e.value?e.value:e.multiple?[""]:"",this.state={value:n}}onChange=e=>{let r,{onChange:n,multiple:a}=this.props,o=[].slice.call(e.target.options);r=a?o.filter((function(p){return p.selected})).map((function(p){return p.value})):e.target.value,this.setState({value:r}),n&&n(r)};UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){let{allowedValues:e,multiple:r,allowEmptyValue:n,disabled:a}=this.props,o=this.state.value?.toJS?.()||this.state.value;return u.createElement("select",{className:this.props.className,multiple:r,value:o,onChange:this.onChange,disabled:a},n?u.createElement("option",{value:""},"--"):null,e.map((function(p,c){return u.createElement("option",{key:c,value:String(p)},String(p))})))}}class t_ extends u.Component{render(){return u.createElement("a",Yr()({},this.props,{rel:"noopener noreferrer",className:Im(this.props.className,"link")}))}}const r_=({children:t})=>u.createElement("div",{className:"no-margin"}," ",t," ");class T7 extends u.Component{static defaultProps={isOpened:!1,animated:!1};renderNotAnimated(){return this.props.isOpened?u.createElement(r_,null,this.props.children):u.createElement("noscript",null)}render(){let{animated:e,isOpened:r,children:n}=this.props;return e?(n=r?n:null,u.createElement(r_,null,n)):this.renderNotAnimated()}}class I7 extends u.Component{constructor(...e){super(...e),this.setTagShown=this._setTagShown.bind(this)}_setTagShown(e,r){this.props.layoutActions.show(e,r)}showOp(e,r){let{layoutActions:n}=this.props;n.show(e,r)}render(){let{specSelectors:e,layoutSelectors:r,layoutActions:n,getComponent:a}=this.props,o=e.taggedOperations();const p=a("Collapse");return u.createElement("div",null,u.createElement("h4",{className:"overview-title"},"Overview"),o.map(((c,d)=>{let E=c.get("operations"),x=["overview-tags",d],k=r.isShown(x,!0);return u.createElement("div",{key:"overview-"+d},u.createElement("h4",{onClick:()=>n.show(x,!k),className:"link overview-tag"}," ",k?"-":"+",d),u.createElement(p,{isOpened:k,animated:!0},E.map((P=>{let{path:R,method:L,id:V}=P.toObject(),Q="operations",J=V,re=r.isShown([Q,J]);return u.createElement(M7,{key:V,path:R,method:L,id:R+"-"+L,shown:re,showOpId:J,showOpIdPrefix:Q,href:`#operation-${J}`,onClick:n.show})})).toArray()))})).valueSeq().toArray(),o.size<1&&u.createElement("h3",null," No operations defined in spec! "))}}class M7 extends u.Component{constructor(e){super(e),this.onClick=this._onClick.bind(this)}_onClick(){let{showOpId:e,showOpIdPrefix:r,onClick:n,shown:a}=this.props;n([r,e],!a)}render(){let{id:e,method:r,shown:n,href:a}=this.props;return u.createElement(t_,{href:a,onClick:this.onClick,className:"block opblock-link "+(n?"shown":"")},u.createElement("div",null,u.createElement("small",{className:`bold-label-${r}`},r.toUpperCase()),u.createElement("span",{className:"bold-label"},e)))}}class R7 extends u.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:e,defaultValue:r,initialValue:n,...a}=this.props;return u.createElement("input",Yr()({},a,{ref:o=>this.inputRef=o}))}}class D7 extends u.Component{render(){const{host:e,basePath:r}=this.props;return u.createElement("pre",{className:"base-url"},"[ Base URL: ",e,r," ]")}}class F7 extends u.PureComponent{render(){const{url:e,getComponent:r}=this.props,n=r("Link");return u.createElement(n,{target:"_blank",href:Dr(e)},u.createElement("span",{className:"url"}," ",e))}}class L7 extends u.Component{render(){const{info:e,url:r,host:n,basePath:a,getComponent:o,externalDocs:p,selectedServer:c,url:d}=this.props,E=e.get("version"),x=e.get("description"),k=e.get("title"),P=ba(e.get("termsOfService"),d,{selectedServer:c}),R=e.get("contact"),L=e.get("license"),V=ba(p&&p.get("url"),d,{selectedServer:c}),Q=p&&p.get("description"),J=o("Markdown",!0),re=o("Link"),me=o("VersionStamp"),le=o("OpenAPIVersion"),ve=o("InfoUrl"),be=o("InfoBasePath"),ce=o("License"),_e=o("Contact");return u.createElement("div",{className:"info"},u.createElement("hgroup",{className:"main"},u.createElement("h1",{className:"title"},k,u.createElement("span",null,E&&u.createElement(me,{version:E}),u.createElement(le,{oasVersion:"2.0"}))),n||a?u.createElement(be,{host:n,basePath:a}):null,r&&u.createElement(ve,{getComponent:o,url:r})),u.createElement("div",{className:"description"},u.createElement(J,{source:x})),P&&u.createElement("div",{className:"info__tos"},u.createElement(re,{target:"_blank",href:Dr(P)},"Terms of service")),R?.size>0&&u.createElement(_e,{getComponent:o,data:R,selectedServer:c,url:r}),L?.size>0&&u.createElement(ce,{getComponent:o,license:L,selectedServer:c,url:r}),V?u.createElement(re,{className:"info__extdocs",target:"_blank",href:Dr(V)},Q||V):null)}}const $7=L7;class B7 extends u.Component{render(){const{specSelectors:e,getComponent:r,oas3Selectors:n}=this.props,a=e.info(),o=e.url(),p=e.basePath(),c=e.host(),d=e.externalDocs(),E=n.selectedServer(),x=r("info");return u.createElement("div",null,a&&a.count()?u.createElement(x,{info:a,url:o,host:c,basePath:p,externalDocs:d,getComponent:r,selectedServer:E}):null)}}class q7 extends u.Component{render(){const{data:e,getComponent:r,selectedServer:n,url:a}=this.props,o=e.get("name","the developer"),p=ba(e.get("url"),a,{selectedServer:n}),c=e.get("email"),d=r("Link");return u.createElement("div",{className:"info__contact"},p&&u.createElement("div",null,u.createElement(d,{href:Dr(p),target:"_blank"},o," - Website")),c&&u.createElement(d,{href:Dr(`mailto:${c}`)},p?`Send email to ${o}`:`Contact ${o}`))}}const U7=q7;class z7 extends u.Component{render(){const{license:e,getComponent:r,selectedServer:n,url:a}=this.props,o=e.get("name","License"),p=ba(e.get("url"),a,{selectedServer:n}),c=r("Link");return u.createElement("div",{className:"info__license"},p?u.createElement("div",{className:"info__license__url"},u.createElement(c,{target:"_blank",href:Dr(p)},o)):u.createElement("span",null,o))}}const V7=z7;class J7 extends u.Component{render(){return null}}const Ov="Copy path to clipboard";class W7 extends u.Component{render(){let{getComponent:e}=this.props;const r=e("CopyIcon");return u.createElement("div",{className:"view-line-link copy-to-clipboard",title:Ov,"aria-label":Ov},u.createElement(cu.CopyToClipboard,{text:this.props.textToCopy},u.createElement("button",{"aria-label":Ov,title:Ov,type:"button"},u.createElement(r,null))))}}class H7 extends u.Component{render(){return u.createElement("div",{className:"footer"})}}class K7 extends u.Component{onFilterChange=e=>{const{target:{value:r}}=e;this.props.layoutActions.updateFilter(r)};render(){const{specSelectors:e,layoutSelectors:r,getComponent:n}=this.props,a=n("Col"),o=e.loadingStatus()==="loading",p=e.loadingStatus()==="failed",c=r.currentFilter(),d=["operation-filter-input"];return p&&d.push("failed"),o&&d.push("loading"),u.createElement("div",null,c===!1?null:u.createElement("div",{className:"filter-container"},u.createElement(a,{className:"filter wrapper",mobile:12},u.createElement("input",{className:d.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:typeof c=="string"?c:"",disabled:o}))))}}const V1=Function.prototype;class J1 extends u.PureComponent{static defaultProp={consumes:(0,H.fromJS)(["application/json"]),param:(0,H.fromJS)({}),onChange:V1,onChangeConsumes:V1};constructor(e,r){super(e,r),this.state={isEditBox:!1,value:""}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(e){this.updateValues.call(this,e)}updateValues=e=>{let{param:r,isExecute:n,consumesValue:a=""}=e,o=/xml/i.test(a),p=/json/i.test(a),c=o?r.get("value_xml"):r.get("value");if(c!==void 0){let d=!c&&p?"{}":c;this.setState({value:d}),this.onChange(d,{isXml:o,isEditBox:n})}else o?this.onChange(this.sample("xml"),{isXml:o,isEditBox:n}):this.onChange(this.sample(),{isEditBox:n})};sample=e=>{let{param:r,fn:n}=this.props,a=n.inferSchema(r.toJS());return n.getSampleSchema(a,e,{includeWriteOnly:!0})};onChange=(e,{isEditBox:r,isXml:n})=>{this.setState({value:e,isEditBox:r}),this._onChange(e,n)};_onChange=(e,r)=>{(this.props.onChange||V1)(e,r)};handleOnChange=e=>{const{consumesValue:r}=this.props,n=/xml/i.test(r),a=e.target.value;this.onChange(a,{isXml:n,isEditBox:this.state.isEditBox})};toggleIsEditBox=()=>this.setState((e=>({isEditBox:!e.isEditBox})));render(){let{onChangeConsumes:e,param:r,isExecute:n,specSelectors:a,pathMethod:o,getComponent:p}=this.props;const c=p("Button"),d=p("TextArea"),E=p("HighlightCode",!0),x=p("contentType");let k=(a?a.parameterWithMetaByIdentity(o,r):r).get("errors",(0,H.List)()),P=a.contentTypeValues(o).get("requestContentType"),R=this.props.consumes&&this.props.consumes.size?this.props.consumes:J1.defaultProp.consumes,{value:L,isEditBox:V}=this.state,Q=null;_v(L)&&(Q="json");const J=`${B1(`${o[1]}${o[0]}_parameters`)}_select`;return u.createElement("div",{className:"body-param","data-param-name":r.get("name"),"data-param-in":r.get("in")},V&&n?u.createElement(d,{className:"body-param__text"+(k.count()?" invalid":""),value:L,onChange:this.handleOnChange}):L&&u.createElement(E,{className:"body-param__example",language:Q},L),u.createElement("div",{className:"body-param-options"},n?u.createElement("div",{className:"body-param-edit"},u.createElement(c,{className:V?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},V?"Cancel":"Edit")):null,u.createElement("label",{htmlFor:J},u.createElement("span",null,"Parameter content type"),u.createElement(x,{value:P,contentTypes:R,onChange:e,className:"body-param-content-type",ariaLabel:"Parameter content type",controlId:J}))))}}const kv="Copy cURL command to clipboard";class G7 extends u.Component{render(){const{request:e,getComponent:r}=this.props,n=mp(e),a=r("SyntaxHighlighter",!0);return u.createElement("div",{className:"curl-command"},u.createElement("h4",null,"Curl"),u.createElement("div",{className:"copy-to-clipboard",title:kv,"aria-label":kv},u.createElement(cu.CopyToClipboard,{text:n},u.createElement("button",{"aria-label":kv,title:kv,type:"button"}))),u.createElement("div",null,u.createElement(a,{language:"bash",className:"curl microlight",renderPlainText:({children:o,PlainTextViewer:p})=>u.createElement(p,{className:"curl"},o)},n)))}}const Y7=({propKey:t,propVal:e,propClass:r})=>u.createElement("span",{className:r},u.createElement("br",null),t,": ",Gr(e));class X7 extends u.Component{static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1};render(){const{onTryoutClick:e,onCancelClick:r,onResetClick:n,enabled:a,hasUserEditedBody:o,isOAS3:p}=this.props,c=p&&o;return u.createElement("div",{className:c?"try-out btn-group":"try-out"},a?u.createElement("button",{className:"btn try-out__btn cancel",onClick:r},"Cancel"):u.createElement("button",{className:"btn try-out__btn",onClick:e},"Try it out "),c&&u.createElement("button",{className:"btn try-out__btn reset",onClick:n},"Reset"))}}class Q7 extends u.PureComponent{static defaultProps={alsoShow:null,children:null,bypass:!1};render(){const{bypass:e,isSwagger2:r,isOAS3:n,alsoShow:a}=this.props;return e?u.createElement("div",null,this.props.children):r&&n?u.createElement("div",{className:"version-pragma"},a,u.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,u.createElement("code",null,"swagger")," and ",u.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),u.createElement("p",null,"Supported version fields are ",u.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",u.createElement("code",null,"openapi: 3.0.n")," (for example, ",u.createElement("code",null,"openapi: 3.0.4"),").")))):r||n?u.createElement("div",null,this.props.children):u.createElement("div",{className:"version-pragma"},a,u.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,"The provided definition does not specify a valid version field."),u.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",u.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",u.createElement("code",null,"openapi: 3.0.n")," (for example, ",u.createElement("code",null,"openapi: 3.0.4"),")."))))}}const Z7=({version:t})=>u.createElement("small",null,u.createElement("pre",{className:"version"}," ",t," ")),eD=({oasVersion:t})=>u.createElement("small",{className:"version-stamp"},u.createElement("pre",{className:"version"},"OAS ",t)),tD=({enabled:t,path:e,text:r})=>u.createElement("a",{className:"nostyle",onClick:t?n=>n.preventDefault():null,href:t?`#/${e}`:null},u.createElement("span",null,r)),rD=()=>u.createElement("div",null,u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},u.createElement("defs",null,u.createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},u.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},u.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"close"},u.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},u.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},u.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},u.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),u.createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},u.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),u.createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},u.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),u.createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},u.createElement("g",{transform:"translate(2, -1)"},u.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))))));var W1;function n_(t){return(W1=W1||document.createElement("textarea")).innerHTML="&"+t+";",W1.value}var nD=Object.prototype.hasOwnProperty;function aD(t,e){return!!t&&nD.call(t,e)}function a_(t){return[].slice.call(arguments,1).forEach((function(e){if(e){if(typeof e!="object")throw new TypeError(e+"must be object");Object.keys(e).forEach((function(r){t[r]=e[r]}))}})),t}var oD=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Mm(t){return t.indexOf("\\")<0?t:t.replace(oD,"$1")}function o_(t){return!(t>=55296&&t<=57343)&&!(t>=64976&&t<=65007)&&!!(65535&~t&&(65535&t)!=65534)&&!(t>=0&&t<=8)&&t!==11&&!(t>=14&&t<=31)&&!(t>=127&&t<=159)&&!(t>1114111)}function H1(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}var iD=/&([a-z#][a-z0-9]{1,31});/gi,sD=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function lD(t,e){var r=0,n=n_(e);return e!==n?n:e.charCodeAt(0)===35&&sD.test(e)&&o_(r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10))?H1(r):t}function Hp(t){return t.indexOf("&")<0?t:t.replace(iD,lD)}var cD=/[&<>"]/,uD=/[&<>"]/g,pD={"&":"&","<":"<",">":">",'"':"""};function hD(t){return pD[t]}function Mi(t){return cD.test(t)?t.replace(uD,hD):t}var fr={};function i_(t,e){return++e>=t.length-2?e:t[e].type==="paragraph_open"&&t[e].tight&&t[e+1].type==="inline"&&t[e+1].content.length===0&&t[e+2].type==="paragraph_close"&&t[e+2].tight?i_(t,e+2):e}fr.blockquote_open=function(){return`
    +`},fr.blockquote_close=function(t,e){return"
    "+Kp(t,e)},fr.code=function(t,e){return t[e].block?"
    "+Mi(t[e].content)+"
    "+Kp(t,e):""+Mi(t[e].content)+""},fr.fence=function(t,e,r,n,a){var o,p,c=t[e],d="",E=r.langPrefix;if(c.params){if(p=(o=c.params.split(/\s+/g)).join(" "),aD(a.rules.fence_custom,o[0]))return a.rules.fence_custom[o[0]](t,e,r,n,a);d=' class="'+E+Mi(Hp(Mm(p)))+'"'}return"
    "+(r.highlight&&r.highlight.apply(r.highlight,[c.content].concat(o))||Mi(c.content))+"
    "+Kp(t,e)},fr.fence_custom={},fr.heading_open=function(t,e){return""},fr.heading_close=function(t,e){return" +`},fr.hr=function(t,e,r){return(r.xhtmlOut?"
    ":"
    ")+Kp(t,e)},fr.bullet_list_open=function(){return`
      +`},fr.bullet_list_close=function(t,e){return"
    "+Kp(t,e)},fr.list_item_open=function(){return"
  • "},fr.list_item_close=function(){return`
  • +`},fr.ordered_list_open=function(t,e){var r=t[e];return"1?' start="'+r.order+'"':"")+`> +`},fr.ordered_list_close=function(t,e){return""+Kp(t,e)},fr.paragraph_open=function(t,e){return t[e].tight?"":"

    "},fr.paragraph_close=function(t,e){var r=!(t[e].tight&&e&&t[e-1].type==="inline"&&!t[e-1].content);return(t[e].tight?"":"

    ")+(r?Kp(t,e):"")},fr.link_open=function(t,e,r){var n=t[e].title?' title="'+Mi(Hp(t[e].title))+'"':"",a=r.linkTarget?' target="'+r.linkTarget+'"':"";return'"},fr.link_close=function(){return""},fr.image=function(t,e,r){var n=' src="'+Mi(t[e].src)+'"',a=t[e].title?' title="'+Mi(Hp(t[e].title))+'"':"";return""},fr.table_open=function(){return` +`},fr.table_close=function(){return`
    +`},fr.thead_open=function(){return` +`},fr.thead_close=function(){return` +`},fr.tbody_open=function(){return` +`},fr.tbody_close=function(){return` +`},fr.tr_open=function(){return""},fr.tr_close=function(){return` +`},fr.th_open=function(t,e){var r=t[e];return""},fr.th_close=function(){return""},fr.td_open=function(t,e){var r=t[e];return""},fr.td_close=function(){return""},fr.strong_open=function(){return""},fr.strong_close=function(){return""},fr.em_open=function(){return""},fr.em_close=function(){return""},fr.del_open=function(){return""},fr.del_close=function(){return""},fr.ins_open=function(){return""},fr.ins_close=function(){return""},fr.mark_open=function(){return""},fr.mark_close=function(){return""},fr.sub=function(t,e){return""+Mi(t[e].content)+""},fr.sup=function(t,e){return""+Mi(t[e].content)+""},fr.hardbreak=function(t,e,r){return r.xhtmlOut?`
    +`:`
    +`},fr.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?`
    +`:`
    +`:` +`},fr.text=function(t,e){return Mi(t[e].content)},fr.htmlblock=function(t,e){return t[e].content},fr.htmltag=function(t,e){return t[e].content},fr.abbr_open=function(t,e){return''},fr.abbr_close=function(){return""},fr.footnote_ref=function(t,e){var r=Number(t[e].id+1).toString(),n="fnref"+r;return t[e].subId>0&&(n+=":"+t[e].subId),'['+r+"]"},fr.footnote_block_open=function(t,e,r){return(r.xhtmlOut?`
    +`:`
    +`)+`
    +
      +`},fr.footnote_block_close=function(){return`
    +
    +`},fr.footnote_open=function(t,e){return'
  • '},fr.footnote_close=function(){return`
  • +`},fr.footnote_anchor=function(t,e){var r="fnref"+Number(t[e].id+1).toString();return t[e].subId>0&&(r+=":"+t[e].subId),' '},fr.dl_open=function(){return`
    +`},fr.dt_open=function(){return"
    "},fr.dd_open=function(){return"
    "},fr.dl_close=function(){return`
    +`},fr.dt_close=function(){return` +`},fr.dd_close=function(){return` +`};var Kp=fr.getBreak=function(e,r){return(r=i_(e,r))1||r===41&&--n<0)break;e++}return o!==e&&(a=Mm(t.src.slice(o,e)),!!t.parser.validateLink(a)&&(t.linkContent=a,t.pos=e,!0))}function l_(t,e){var r,n=e,a=t.posMax,o=t.src.charCodeAt(e);if(o!==34&&o!==39&&o!==40)return!1;for(e++,o===40&&(o=41);e=t.length)&&!wD.test(t[e])}function dd(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}var X1=[["block",function(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}],["abbr",function(e){var r,n,a,o,p=e.tokens;if(!e.inlineMode){for(r=1,n=p.length-1;r0?c[r].count:1,a=0;a=0;r--)if((p=o[r]).type==="text"){for(E=0,c=p.content,k.lastIndex=0,x=p.level,d=[];P=k.exec(c);)k.lastIndex>E&&d.push({type:"text",content:c.slice(E,P.index+P[1].length),level:x}),d.push({type:"abbr_open",title:e.env.abbreviations[":"+P[2]],level:x++}),d.push({type:"text",content:P[2],level:x}),d.push({type:"abbr_close",level:--x}),E=k.lastIndex-P[3].length;d.length&&(E=0;p--)if(e.tokens[p].type==="inline")for(r=(o=e.tokens[p].children).length-1;r>=0;r--)(n=o[r]).type==="text"&&(a=vD(a=n.content),mD.test(a)&&(a=a.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),n.content=a)}}],["smartquotes",function(e){var r,n,a,o,p,c,d,E,x,k,P,R,L,V,Q,J,re;if(e.options.typographer){for(re=[],Q=e.tokens.length-1;Q>=0;Q--)if(e.tokens[Q].type==="inline"){for(J=e.tokens[Q].children,re.length=0,r=0;r=0&&!(re[L].level<=d);L--);re.length=L+1,p=0,c=(a=n.content).length;e:for(;p=0&&(k=re[L],!(re[L].level=(a=t.eMarks[e])||(r=t.src.charCodeAt(n++))!==42&&r!==45&&r!==43||n=a||(r=t.src.charCodeAt(n++))<48||r>57)return-1;for(;;){if(n>=a)return-1;if(!((r=t.src.charCodeAt(n++))>=48&&r<=57)){if(r===41||r===46)break;return-1}}return n=this.eMarks[e]},Yp.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;en;)if(r!==this.src.charCodeAt(--e))return e+1;return e},Yp.prototype.getLines=function(e,r,n,a){var o,p,c,d,E,x=e;if(e>=r)return"";if(x+1===r)return p=this.bMarks[x]+Math.min(this.tShift[x],n),c=a?this.eMarks[x]+1:this.eMarks[x],this.src.slice(p,c);for(d=new Array(r-e),o=0;xn&&(E=n),E<0&&(E=0),p=this.bMarks[x]+E,c=x+1]/,SD=/^<\/([a-zA-Z]{1,15})[\s>]/;function Q1(t,e){var r=t.bMarks[e]+t.blkIndent,n=t.eMarks[e];return t.src.substr(r,n-r)}function Av(t,e){var r,n,a=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return a>=o||(n=t.src.charCodeAt(a++))!==126&&n!==58||a===(r=t.skipSpaces(a))||r>=o?-1:r}var Cv=[["code",function(e,r,n){var a,o;if(e.tShift[r]-e.blkIndent<4)return!1;for(o=a=r+1;a=4))break;o=++a}return e.line=a,e.tokens.push({type:"code",content:e.getLines(r,o,4+e.blkIndent,!0),block:!0,lines:[r,e.line],level:e.level}),!0}],["fences",function(e,r,n,a){var o,p,c,d,E,x=!1,k=e.bMarks[r]+e.tShift[r],P=e.eMarks[r];if(k+3>P||(o=e.src.charCodeAt(k))!==126&&o!==96||(E=k,(p=(k=e.skipChars(k,o))-E)<3)||(c=e.src.slice(k,P).trim()).indexOf("`")>=0)return!1;if(a)return!0;for(d=r;!(++d>=n)&&!((k=E=e.bMarks[d]+e.tShift[d])<(P=e.eMarks[d])&&e.tShift[d]=4||(k=e.skipChars(k,o))-EJ||e.src.charCodeAt(Q++)!==62||e.level>=e.options.maxNesting)return!1;if(a)return!0;for(e.src.charCodeAt(Q)===32&&Q++,E=e.blkIndent,e.blkIndent=0,d=[e.bMarks[r]],e.bMarks[r]=Q,p=(Q=Q=J,c=[e.tShift[r]],e.tShift[r]=Q-e.bMarks[r],P=e.parser.ruler.getRules("blockquote"),o=r+1;o=(J=e.eMarks[o]));o++)if(e.src.charCodeAt(Q++)!==62){if(p)break;for(V=!1,R=0,L=P.length;R=J,c.push(e.tShift[o]),e.tShift[o]=Q-e.bMarks[o];for(x=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:k=[r,0],level:e.level++}),e.parser.tokenize(e,r,o),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=x,k[1]=e.line,R=0;RE||(o=e.src.charCodeAt(d++))!==42&&o!==45&&o!==95)return!1;for(p=1;d=0)Q=!0;else{if(!((P=f_(e,r))>=0))return!1;Q=!1}if(e.level>=e.options.maxNesting)return!1;if(V=e.src.charCodeAt(P-1),a)return!0;for(re=e.tokens.length,Q?(k=e.bMarks[r]+e.tShift[r],L=Number(e.src.substr(k,P-k-1)),e.tokens.push({type:"ordered_list_open",order:L,lines:le=[r,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:le=[r,0],level:e.level++}),o=r,me=!1,be=e.parser.ruler.getRules("list");!(!(o=e.eMarks[o]?1:J-P)>4&&(R=1),R<1&&(R=1),p=P-e.bMarks[o]+R,e.tokens.push({type:"list_item_open",lines:ve=[r,0],level:e.level++}),d=e.blkIndent,E=e.tight,c=e.tShift[r],x=e.parentType,e.tShift[r]=J-e.bMarks[r],e.blkIndent=p,e.tight=!0,e.parentType="list",e.parser.tokenize(e,r,n,!0),e.tight&&!me||(xe=!1),me=e.line-r>1&&e.isEmpty(e.line-1),e.blkIndent=d,e.tShift[r]=c,e.tight=E,e.parentType=x,e.tokens.push({type:"list_item_close",level:--e.level}),o=r=e.line,ve[1]=o,J=e.bMarks[r],o>=n)||e.isEmpty(o)||e.tShift[o]k||e.src.charCodeAt(x)!==91||e.src.charCodeAt(x+1)!==94||e.level>=e.options.maxNesting)return!1;for(d=x+2;d=k||e.src.charCodeAt(++d)!==58)&&(a||(d++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),E=e.src.slice(x+2,d-2),e.env.footnotes.refs[":"+E]=-1,e.tokens.push({type:"footnote_reference_open",label:E,level:e.level++}),o=e.bMarks[r],p=e.tShift[r],c=e.parentType,e.tShift[r]=e.skipSpaces(d)-d,e.bMarks[r]=d,e.blkIndent+=4,e.parentType="footnote",e.tShift[r]=E||(o=e.src.charCodeAt(d))!==35||d>=E)return!1;for(p=1,o=e.src.charCodeAt(++d);o===35&&d6||dd&&e.src.charCodeAt(c-1)===32&&(E=c),e.line=r+1,e.tokens.push({type:"heading_open",hLevel:p,lines:[r,e.line],level:e.level}),d=n)&&!(e.tShift[c]3)&&!((o=e.bMarks[c]+e.tShift[c])>=(p=e.eMarks[c]))&&((a=e.src.charCodeAt(o))===45||a===61)&&(o=e.skipChars(o,a),!((o=e.skipSpaces(o))3||d+2>=E||e.src.charCodeAt(d)!==60)return!1;if((o=e.src.charCodeAt(d+1))===33||o===63){if(a)return!0}else{if(o!==47&&!(function(P){var R=32|P;return R>=97&&R<=122})(o))return!1;if(o===47){if(!(p=e.src.slice(d,E).match(SD)))return!1}else if(!(p=e.src.slice(d,E).match(ED)))return!1;if(g_[p[1].toLowerCase()]!==!0)return!1;if(a)return!0}for(c=r+1;cn||(E=r+1,e.tShift[E]=e.eMarks[E]||(o=e.src.charCodeAt(c))!==124&&o!==45&&o!==58||(p=Q1(e,r+1),!/^[-:| ]+$/.test(p))||(x=p.split("|"))<=2)return!1;for(P=[],d=0;d=0;if(k=r+1,e.isEmpty(k)&&++k>n||e.tShift[k]=e.options.maxNesting)return!1;x=e.tokens.length,e.tokens.push({type:"dl_open",lines:E=[r,0],level:e.level++}),c=r,p=k;e:for(;;){for(re=!0,J=!1,e.tokens.push({type:"dt_open",lines:[c,c],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(c,c+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[c,c],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:d=[k,0],level:e.level++}),Q=e.tight,R=e.ddIndent,P=e.blkIndent,V=e.tShift[p],L=e.parentType,e.blkIndent=e.ddIndent=e.tShift[p]+2,e.tShift[p]=o-e.bMarks[p],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,p,n,!0),e.tight&&!J||(re=!1),J=e.line-p>1&&e.isEmpty(e.line-1),e.tShift[p]=V,e.tight=Q,e.parentType=L,e.blkIndent=P,e.ddIndent=R,e.tokens.push({type:"dd_close",level:--e.level}),d[1]=k=e.line,k>=n||e.tShift[k]=n||(c=k,e.isEmpty(c))||e.tShift[c]=n||(e.isEmpty(p)&&p++,p>=n)||e.tShift[p]3)){for(o=!1,p=0,c=d.length;p=r))&&!(t.tShift[p]=0&&(t=t.replace(xD,(function(c,d){var E;return t.charCodeAt(d)===10?(o=d+1,p=0,c):(E=" ".slice((d-o-p)%4),p=d-o+1,E)}))),a=new Yp(t,this,e,r,n),this.tokenize(a,a.line,a.lineMax)};for(var ew=[],y_=0;y_<256;y_++)ew.push(0);function v_(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function b_(t,e){var r,n,a,o=e,p=!0,c=!0,d=t.posMax,E=t.src.charCodeAt(e);for(r=e>0?t.src.charCodeAt(e-1):-1;o=d&&(p=!1),(a=o-e)>=4?p=c=!1:((n=o?@[]^_`{|}~-".split("").forEach((function(t){ew[t.charCodeAt(0)]=1}));var AD=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,CD=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,jD=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],PD=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,ND=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function jv(t,e){return t=t.source,e=e||"",function r(n,a){return n?(a=a.source||a,t=t.replace(n,a),r):new RegExp(t,e)}}var TD=jv(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),ID=jv(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",TD)(),MD=jv(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",ID)(),RD=jv(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",MD)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/|/)("processing",/<[?].*?[?]>/)("declaration",/]*>/)("cdata",//)(),DD=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,FD=/^&([a-z][a-z0-9]{1,31});/i,tw=[["text",function(e,r){for(var n=e.pos;n=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){for(var p=n-2;p>=0;p--)if(e.pending.charCodeAt(p)!==32){e.pending=e.pending.substring(0,p+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(o++;o=d||e.src.charCodeAt(E+1)!==126||e.level>=e.options.maxNesting||(p=E>0?e.src.charCodeAt(E-1):-1,c=e.src.charCodeAt(E+2),p===126)||c===126||c===32||c===10)return!1;for(a=E+2;aE+3)return e.pos+=a-E,r||(e.pending+=e.src.slice(E,a)),!0;for(e.pos=E+2,o=1;e.pos+1=d||e.src.charCodeAt(E+1)!==43||e.level>=e.options.maxNesting||(p=E>0?e.src.charCodeAt(E-1):-1,c=e.src.charCodeAt(E+2),p===43)||c===43||c===32||c===10)return!1;for(a=E+2;a=d||e.src.charCodeAt(E+1)!==61||e.level>=e.options.maxNesting||(p=E>0?e.src.charCodeAt(E-1):-1,c=e.src.charCodeAt(E+2),p===61)||c===61||c===32||c===10)return!1;for(a=E+2;a=e.options.maxNesting)return!1;for(e.pos=k+n,d=[n];e.pos=o||e.level>=e.options.maxNesting)return!1;for(e.pos=p+1;e.pos=o||e.level>=e.options.maxNesting)return!1;for(e.pos=p+1;e.pos=e.options.maxNesting||(n=L+1,(a=Rm(e,L))<0))return!1;if((d=a+1)=R)return!1;for(L=d,s_(e,d)?(p=e.linkContent,d=e.pos):p="",L=d;d=R||e.src.charCodeAt(d)!==41)return e.pos=P,!1;d++}else{if(e.linkLevel>0)return!1;for(;d=0?o=e.src.slice(L,d++):d=L-1),o||(o===void 0&&(d=a+1),o=e.src.slice(n,a)),!(E=e.env.references[c_(o)]))return e.pos=P,!1;p=E.href,c=E.title}return r||(e.pos=n,e.posMax=a,k?e.push({type:"image",src:p,title:c,alt:e.src.substr(n,a-n),level:e.level}):(e.push({type:"link_open",href:p,title:c,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=d,e.posMax=R,!0}],["footnote_inline",function(e,r){var n,a,o,p,c=e.posMax,d=e.pos;return!(d+2>=c)&&e.src.charCodeAt(d)===94&&e.src.charCodeAt(d+1)===91&&!(e.level>=e.options.maxNesting)&&(n=d+2,!((a=Rm(e,d+1))<0)&&(r||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=n,e.posMax=a,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,p=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(p)},e.linkLevel--),e.pos=a+1,e.posMax=c,!0))}],["footnote_ref",function(e,r){var n,a,o,p,c=e.posMax,d=e.pos;if(d+3>c||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(d)!==91||e.src.charCodeAt(d+1)!==94||e.level>=e.options.maxNesting)return!1;for(a=d+2;a=c)&&(a++,n=e.src.slice(d+2,a-1),e.env.footnotes.refs[":"+n]!==void 0&&(r||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+n]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:n,count:0},e.env.footnotes.refs[":"+n]=o):o=e.env.footnotes.refs[":"+n],p=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:p,level:e.level})),e.pos=a,e.posMax=c,!0))}],["autolink",function(e,r){var n,a,o,p,c,d=e.pos;return e.src.charCodeAt(d)===60&&!((n=e.src.slice(d)).indexOf(">")<0)&&((a=n.match(ND))?!(jD.indexOf(a[1].toLowerCase())<0)&&(c=G1(p=a[0].slice(1,-1)),!!e.parser.validateLink(p)&&(r||(e.push({type:"link_open",href:c,level:e.level}),e.push({type:"text",content:p,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=a[0].length,!0)):!!(o=n.match(PD))&&(c=G1("mailto:"+(p=o[0].slice(1,-1))),!!e.parser.validateLink(c)&&(r||(e.push({type:"link_open",href:c,level:e.level}),e.push({type:"text",content:p,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=o[0].length,!0)))}],["htmltag",function(e,r){var n,a,o,p=e.pos;return!!e.options.html&&(o=e.posMax,!(e.src.charCodeAt(p)!==60||p+2>=o)&&!((n=e.src.charCodeAt(p+1))!==33&&n!==63&&n!==47&&!(function(d){var E=32|d;return E>=97&&E<=122})(n))&&!!(a=e.src.slice(p).match(RD))&&(r||e.push({type:"htmltag",content:e.src.slice(p,p+a[0].length),level:e.level}),e.pos+=a[0].length,!0))}],["entity",function(e,r){var n,a,o=e.pos,p=e.posMax;if(e.src.charCodeAt(o)!==38)return!1;if(o+10)t.pos=r;else{for(e=0;e=o)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Pv.prototype.parse=function(t,e,r,n){var a=new Gp(t,this,e,r,n);this.tokenize(a)};var $D={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function w_(t,e,r){this.src=e,this.env=r,this.options=t.options,this.tokens=[],this.inlineMode=!1,this.inline=t.inline,this.block=t.block,this.renderer=t.renderer,this.typographer=t.typographer}function Nc(t,e){typeof t!="string"&&(e=t,t="default"),e&&e.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead: + +import Remarkable from 'remarkable'; +import linkify from 'remarkable/linkify'; +new Remarkable().use(linkify) +`),this.inline=new Pv,this.block=new Z1,this.core=new d_,this.renderer=new K1,this.ruler=new Ri,this.options={},this.configure($D[t]),this.set(e||{})}Nc.prototype.set=function(t){a_(this.options,t)},Nc.prototype.configure=function(t){var e=this;if(!t)throw new Error("Wrong `remarkable` preset, check name/content");t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach((function(r){t.components[r].rules&&e[r].ruler.enable(t.components[r].rules,!0)}))},Nc.prototype.use=function(t,e){return t(this,e),this},Nc.prototype.parse=function(t,e){var r=new w_(this,t,e);return this.core.process(r),r.tokens},Nc.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},Nc.prototype.parseInline=function(t,e){var r=new w_(this,t,e);return r.inlineMode=!0,this.core.process(r),r.tokens},Nc.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};function E_(t,e){if(Array.prototype.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r=0;r--)e(t[r])===!0&&t.splice(r,1)}function rw(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}var nw=(function(){function t(e){e===void 0&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return t.prototype.setTagName=function(e){return this.tagName=e,this},t.prototype.getTagName=function(){return this.tagName||""},t.prototype.setAttr=function(e,r){return this.getAttrs()[e]=r,this},t.prototype.getAttr=function(e){return this.getAttrs()[e]},t.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},t.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},t.prototype.setClass=function(e){return this.setAttr("class",e)},t.prototype.addClass=function(e){for(var r,n=this.getClass(),a=this.whitespaceRegex,o=n?n.split(a):[],p=e.split(a);r=p.shift();)E_(o,r)===-1&&o.push(r);return this.getAttrs().class=o.join(" "),this},t.prototype.removeClass=function(e){for(var r,n=this.getClass(),a=this.whitespaceRegex,o=n?n.split(a):[],p=e.split(a);o.length&&(r=p.shift());){var c=E_(o,r);c!==-1&&o.splice(c,1)}return this.getAttrs().class=o.join(" "),this},t.prototype.getClass=function(){return this.getAttrs().class||""},t.prototype.hasClass=function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},t.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},t.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},t.prototype.getInnerHTML=function(){return this.innerHTML||""},t.prototype.getInnerHtml=function(){return this.getInnerHTML()},t.prototype.toAnchorString=function(){var e=this.getTagName(),r=this.buildAttrsStr();return["<",e,r=r?" "+r:"",">",this.getInnerHtml(),""].join("")},t.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),r=[];for(var n in e)e.hasOwnProperty(n)&&r.push(n+'="'+e[n]+'"');return r.join(" ")},t})(),S_=(function(){function t(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return t.prototype.build=function(e){return new nw({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},t.prototype.createAttrs=function(e){var r={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(r.class=n),this.newWindow&&(r.target="_blank",r.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length=R)return L.host.length==c?(L.host.substr(0,c-x)+d).substr(0,R+E):P(Q,R).substr(0,R+E);var J="";if(L.path&&(J+="/"+L.path),L.query&&(J+="?"+L.query),J){if((Q+J).length>=R)return(Q+J).length==c?(Q+J).substr(0,c):(Q+P(J,R-Q.length)).substr(0,R+E);Q+=J}if(L.fragment){var re="#"+L.fragment;if((Q+re).length>=R)return(Q+re).length==c?(Q+re).substr(0,c):(Q+P(re,R-Q.length)).substr(0,R+E);Q+=re}if(L.scheme&&L.host){var me=L.scheme+"://";if((Q+me).length0&&(le=Q.substr(-1*Math.floor(R/2))),(Q.substr(0,Math.ceil(R/2))+d+le).substr(0,R+E)})(e,n):a==="middle"?(function(p,c,d){if(p.length<=c)return p;var E,x;d==null?(d="…",E=8,x=3):(E=d.length,x=d.length);var k=c-x,P="";return k>0&&(P=p.substr(-1*Math.floor(k/2))),(p.substr(0,Math.ceil(k/2))+d+P).substr(0,k+E)})(e,n):(function(p,c,d){return(function(x,k,P){var R;return x.length>k&&(P==null?(P="…",R=3):R=P.length,x=x.substring(0,k-R)+P),x})(p,c,d)})(e,n)},t})(),fd=(function(){function t(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return t.prototype.getMatchedText=function(){return this.matchedText},t.prototype.setOffset=function(e){this.offset=e},t.prototype.getOffset=function(){return this.offset},t.prototype.getCssClassSuffixes=function(){return[this.getType()]},t.prototype.buildTag=function(){return this.tagBuilder.build(this)},t})(),aw=function(t,e){return aw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},aw(t,e)};function Vl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}aw(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var fa=function(){return fa=Object.assign||function(e){for(var r,n=1,a=arguments.length;n-1},t.isValidUriScheme=function(e){var r=e.match(this.uriSchemeRegex),n=r&&r[0].toLowerCase();return n!=="javascript:"&&n!=="vbscript:"},t.urlMatchDoesNotHaveProtocolOrDot=function(e,r){return!(!e||r&&this.hasFullProtocolRegex.test(r)||e.indexOf(".")!==-1)},t.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,r){return!(!e||!r)&&!this.hasFullProtocolRegex.test(r)&&!this.hasWordCharAfterProtocolRegex.test(e)},t.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,t.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,t.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+j_+"]"),t.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,t})(),GD=(x_=new RegExp("[/?#](?:["+ma+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+ma+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,sw(2),")","|","(","(//)?",/(?:www\.)/.source,sw(6),")","|","(","(//)?",sw(10)+"\\.",T_.source,"(?![-"+zD+"])",")",")","(?::[0-9]+)?","(?:"+x_.source+")?"].join(""),"gi")),YD=new RegExp("["+ma+"]"),M_=(function(t){function e(r){var n=t.call(this,r)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=GD,n.wordCharRegExp=YD,n.stripPrefix=r.stripPrefix,n.stripTrailingSlash=r.stripTrailingSlash,n.decodePercentEncoding=r.decodePercentEncoding,n}return Vl(e,t),e.prototype.parseMatches=function(r){for(var n,a=this.matcherRegex,o=this.stripPrefix,p=this.stripTrailingSlash,c=this.decodePercentEncoding,d=this.tagBuilder,E=[],x=function(){var P=n[0],R=n[1],L=n[4],V=n[5],Q=n[9],J=n.index,re=V||Q,me=r.charAt(J-1);if(!KD.isValid(P,R)||J>0&&me==="@"||J>0&&re&&k.wordCharRegExp.test(me))return"continue";if(/\?$/.test(P)&&(P=P.substr(0,P.length-1)),k.matchHasUnbalancedClosingParen(P))P=P.substr(0,P.length-1);else{var le=k.matchHasInvalidCharAfterTld(P,R);le>-1&&(P=P.substr(0,le))}var ve=["http://","https://"].find((function(Ae){return!!R&&R.indexOf(Ae)!==-1}));if(ve){var be=P.indexOf(ve);P=P.substr(be),R=R.substr(be),J+=be}var ce=R?"scheme":L?"www":"tld",_e=!!R;E.push(new C_({tagBuilder:d,matchedText:P,offset:J,urlMatchType:ce,url:P,protocolUrlMatch:_e,protocolRelativeMatch:!!re,stripPrefix:o,stripTrailingSlash:p,decodePercentEncoding:c}))},k=this;(n=a.exec(r))!==null;)x();return E},e.prototype.matchHasUnbalancedClosingParen=function(r){var n,a=r.charAt(r.length-1);if(a===")")n="(";else if(a==="]")n="[";else{if(a!=="}")return!1;n="{"}for(var o=0,p=0,c=r.length-1;p-1&&c-d<=140){var Q=r.slice(d,c),J=new O_({tagBuilder:n,matchedText:Q,offset:d,serviceName:a,hashtag:Q.slice(1)});o.push(J)}}},e})(md),XD=["twitter","facebook","instagram","tiktok"],QD=new RegExp("".concat(/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source),"g"),F_=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.matcherRegex=QD,r}return Vl(e,t),e.prototype.parseMatches=function(r){for(var n,a=this.matcherRegex,o=this.tagBuilder,p=[];(n=a.exec(r))!==null;){var c=n[0],d=c.replace(/[^0-9,;#]/g,""),E=!(!n[1]&&!n[2]),x=n.index==0?"":r.substr(n.index-1,1),k=r.substr(n.index+c.length,1),P=!x.match(/\d/)&&!k.match(/\d/);this.testMatch(n[3])&&this.testMatch(c)&&P&&p.push(new A_({tagBuilder:o,matchedText:c,offset:n.index,number:d,plusSign:E}))}return p},e.prototype.testMatch=function(r){return qD.test(r)},e})(md),ZD=new RegExp("@[_".concat(ma,"]{1,50}(?![_").concat(ma,"])"),"g"),eF=new RegExp("@[_.".concat(ma,"]{1,30}(?![_").concat(ma,"])"),"g"),tF=new RegExp("@[-_.".concat(ma,"]{1,50}(?![-_").concat(ma,"])"),"g"),rF=new RegExp("@[_.".concat(ma,"]{1,23}[_").concat(ma,"](?![_").concat(ma,"])"),"g"),nF=new RegExp("[^"+ma+"]"),L_=(function(t){function e(r){var n=t.call(this,r)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:ZD,instagram:eF,soundcloud:tF,tiktok:rF},n.nonWordCharRegex=nF,n.serviceName=r.serviceName,n}return Vl(e,t),e.prototype.parseMatches=function(r){var n,a=this.serviceName,o=this.matcherRegexes[this.serviceName],p=this.nonWordCharRegex,c=this.tagBuilder,d=[];if(!o)return d;for(;(n=o.exec(r))!==null;){var E=n.index,x=r.charAt(E-1);if(E===0||p.test(x)){var k=n[0].replace(/\.+$/g,""),P=k.slice(1);d.push(new k_({tagBuilder:c,matchedText:k,offset:E,serviceName:a,mention:P}))}}return d},e})(md);function aF(t,e){for(var r=e.onOpenTag,n=e.onCloseTag,a=e.onText,o=e.onComment,p=e.onDoctype,c=new Jl,d=0,E=t.length,x=0,k=0,P=c;d"?(P=new Jl(fa(fa({},P),{name:Ot()})),It()):ow.test(et)||BD.test(et)||et===":"||_t()}function J(et){et===">"?_t():ow.test(et)?x=3:_t()}function re(et){Qp.test(et)||(et==="/"?x=12:et===">"?It():et==="<"?qt():et==="="||iw.test(et)||UD.test(et)?_t():x=5)}function me(et){Qp.test(et)?x=6:et==="/"?x=12:et==="="?x=7:et===">"?It():et==="<"?qt():iw.test(et)&&_t()}function le(et){Qp.test(et)||(et==="/"?x=12:et==="="?x=7:et===">"?It():et==="<"?qt():iw.test(et)?_t():x=5)}function ve(et){Qp.test(et)||(et==='"'?x=8:et==="'"?x=9:/[>=`]/.test(et)?_t():et==="<"?qt():x=10)}function be(et){et==='"'&&(x=11)}function ce(et){et==="'"&&(x=11)}function _e(et){Qp.test(et)?x=4:et===">"?It():et==="<"&&qt()}function Ae(et){Qp.test(et)?x=4:et==="/"?x=12:et===">"?It():et==="<"?qt():(x=4,(function(){d--})())}function xe(et){et===">"?(P=new Jl(fa(fa({},P),{isClosing:!0})),It()):x=4}function Oe(et){t.substr(d,2)==="--"?(d+=2,P=new Jl(fa(fa({},P),{type:"comment"})),x=14):t.substr(d,7).toUpperCase()==="DOCTYPE"?(d+=7,P=new Jl(fa(fa({},P),{type:"doctype"})),x=20):_t()}function je(et){et==="-"?x=15:et===">"?_t():x=16}function G(et){et==="-"?x=18:et===">"?_t():x=16}function de(et){et==="-"&&(x=17)}function Ne(et){x=et==="-"?18:16}function Ye(et){et===">"?It():et==="!"?x=19:et==="-"||(x=16)}function ht(et){et==="-"?x=17:et===">"?It():x=16}function Ct(et){et===">"?It():et==="<"&&qt()}function _t(){x=0,P=c}function qt(){x=1,P=new Jl({idx:d})}function It(){var et=t.slice(k,P.idx);et&&a(et,k),P.type==="comment"?o(P.idx):P.type==="doctype"?p(P.idx):(P.isOpening&&r(P.name,P.idx),P.isClosing&&n(P.name,P.idx)),_t(),k=d+1}function Ot(){var et=P.idx+(P.isClosing?2:1);return t.slice(et,d).toLowerCase()}k=0&&a++},onText:function(p,c){if(a===0){var d=(function(k,P){if(!P.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var R,L=[],V=0;R=P.exec(k);)L.push(k.substring(V,R.index)),L.push(R[0]),V=R.index+R[0].length;return L.push(k.substring(V)),L})(p,/( | |<|<|>|>|"|"|')/gi),E=c;d.forEach((function(x,k){if(k%2==0){var P=r.parseText(x,E);o.push.apply(o,P)}E+=x.length}))}},onCloseTag:function(p){n.indexOf(p)>=0&&(a=Math.max(a-1,0))},onComment:function(p){},onDoctype:function(p){}}),o=this.compactMatches(o),o=this.removeUnwantedMatches(o)},t.prototype.compactMatches=function(e){e.sort((function(d,E){return d.getOffset()-E.getOffset()}));for(var r=0;ro?r:r+1;e.splice(c,1);continue}if(e[r+1].getOffset()/g,">"));for(var r=this.parse(e),n=[],a=0,o=0,p=r.length;o\s]/i.test(t)}function cF(t){return/^<\/a\s*>/i.test(t)}function uF(){var t=[],e=new iF({stripPrefix:!1,url:!0,email:!0,replaceFn:function(r){switch(r.getType()){case"url":t.push({text:r.matchedText,url:r.getUrl()});break;case"email":t.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")})}return!1}});return{links:t,autolinker:e}}function pF(t){var e,r,n,a,o,p,c,d,E,x,k,P,R,L=t.tokens,V=null;for(r=0,n=L.length;r=0;e--)if((o=a[e]).type!=="link_close"){if(o.type==="htmltag"&&(lF(o.content)&&k>0&&k--,cF(o.content)&&k++),!(k>0)&&o.type==="text"&&sF.test(o.content)){if(V||(P=(V=uF()).links,R=V.autolinker),p=o.content,P.length=0,R.link(p),!P.length)continue;for(c=[],x=o.level,d=0;dt.length)&&(e=t.length);for(var r=0,n=Array(e);r2?n-2:0),o=2;o1?r-1:0),a=1;a"u"?null:Ta(BigInt.prototype.toString),H_=typeof Symbol>"u"?null:Ta(Symbol.prototype.toString),ao=Ta(Object.prototype.hasOwnProperty),Mv=Ta(Object.prototype.toString),oo=Ta(RegExp.prototype.test),Zp=(function(e){return function(){for(var r=arguments.length,n=new Array(r),a=0;a1?r-1:0),a=1;a2&&arguments[2]!==void 0?arguments[2]:Fm;if(q_&&q_(t,null),!Uu(e))return t;let n=e.length;for(;n--;){let a=e[n];if(typeof a=="string"){const o=r(a);o!==a&&(fF(e)||(e[n]=o),a=o)}t[a]=!0}return t}function SF(t){for(let e=0;e/g),AF=_o(/\${[\w\W]*/g),CF=_o(/^data-[\-\w.\u00B7-\uFFFF]+$/),jF=_o(/^aria-[\-\w]+$/),Q_=_o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),PF=_o(/^(?:\w+script|data):/i),NF=_o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),TF=_o(/^html$/i),IF=_o(/^[a-z][.\w]*(-[.\w]+)+$/i),Z_=_o(/<[/\w!]/g),eO=_o(/<[/\w]/g),MF=_o(/<\/no(script|embed|frames)/i),RF=_o(/\/>/i),bd=1,DF=3,tO=7,rO=8,FF=9,LF=11,$F=function(){return typeof window>"u"?null:window},zu=function(e,r,n,a){return ao(e,r)&&Uu(e[r])?dn(a.base?Uo(a.base):{},e[r],a.transform):n};var mw=(function t(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$F();const r=rr=>t(rr);if(r.version="3.4.13",r.removed=[],!e||!e.document||e.document.nodeType!==FF||!e.Element)return r.isSupported=!1,r;let n=e.document;const a=n,o=a.currentScript;e.DocumentFragment;const p=e.HTMLTemplateElement,c=e.Node,d=e.Element,E=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const k=e.DOMParser,P=e.trustedTypes,R=d.prototype,L=Hs(R,"cloneNode"),V=Hs(R,"remove"),Q=Hs(R,"nextSibling"),J=Hs(R,"childNodes"),re=Hs(R,"parentNode"),me=Hs(R,"shadowRoot"),le=Hs(R,"attributes"),ve=c&&c.prototype?Hs(c.prototype,"nodeType"):null,be=c&&c.prototype?Hs(c.prototype,"nodeName"):null,ce=c&&c.prototype?Hs(c.prototype,"ownerDocument"):null;if(typeof p=="function"){const rr=n.createElement("template");rr.content&&rr.content.ownerDocument&&(n=rr.content.ownerDocument)}let _e,Ae,xe="",Oe=!1,je=0;const G=function(){if(je>0)throw Zp('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},de=function(Ie){G(),je++;try{return _e.createHTML(Ie)}finally{je--}},Ne=function(){return Oe||(Ae=(function(dt,Ht){if(typeof dt!="object"||typeof dt.createPolicy!="function")return null;let ir=null;const Or="data-tt-policy-suffix";Ht&&Ht.hasAttribute(Or)&&(ir=Ht.getAttribute(Or));const Pr="dompurify"+(ir?"#"+ir:"");try{return dt.createPolicy(Pr,{createHTML:$r=>$r,createScriptURL:$r=>$r})}catch{return console.warn("TrustedTypes policy "+Pr+" could not be created."),null}})(P,o),Oe=!0),Ae},Ye=n,ht=Ye.implementation,Ct=Ye.createNodeIterator,_t=Ye.createDocumentFragment,qt=Ye.getElementsByTagName,It=a.importNode;let Ot={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported=typeof B_=="function"&&typeof re=="function"&&ht&&ht.createHTMLDocument!==void 0;const et=OF,Dt=kF,or=AF,Ut=CF,pr=jF,W=PF,$e=NF,Je=IF;let Ft=Q_,it=null;const bt=dn({},[...K_,...pw,...hw,...dw,...G_]);let ut=null;const Xt=dn({},[...Y_,...fw,...X_,...Rv]);let zt=Object.seal(gd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),tr=null,Er=null;const dr=Object.seal(gd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let qr=!0,en=!0,kn=!1,ln=!0,jt=!1,We=!0,Kr=!1,Lr=!1,zr=null,yn=null,En=!1,Pn=!1,Ua=!1,Dn=!1,Di=!0,vn=!1;const cn="user-content-";let hi=!0,Hl=!1,Xs={},Zo=null;const so=dn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Bk=null;const qk=dn({},["audio","video","img","source","image","track"]);let qw=null;const Uk=dn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xv="http://www.w3.org/1998/Math/MathML",Qv="http://www.w3.org/2000/svg",Kl="http://www.w3.org/1999/xhtml";let _d=Kl,Uw=!1,zw=null;const wU=dn({},[Xv,Qv,Kl],uw),zk=xo(["mi","mo","mn","ms","mtext"]);let Vw=dn({},zk);const Vk=xo(["annotation-xml"]);let Jw=dn({},Vk);const EU=dn({},["title","style","font","a","script"]);let Jm=null;const SU=["application/xhtml+xml","text/html"];let oa=null,Od=null;const xU=n.createElement("form"),Jk=function(Ie){return Ie instanceof RegExp||Ie instanceof Function},Ww=function(){let Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Od&&Od===Ie)return;Ie&&typeof Ie=="object"||(Ie={}),Ie=Uo(Ie),Jm=SU.indexOf(Ie.PARSER_MEDIA_TYPE)===-1?"text/html":Ie.PARSER_MEDIA_TYPE,oa=Jm==="application/xhtml+xml"?uw:Fm,it=zu(Ie,"ALLOWED_TAGS",bt,{transform:oa}),ut=zu(Ie,"ALLOWED_ATTR",Xt,{transform:oa}),zw=zu(Ie,"ALLOWED_NAMESPACES",wU,{transform:uw}),qw=zu(Ie,"ADD_URI_SAFE_ATTR",Uk,{transform:oa,base:Uk}),Bk=zu(Ie,"ADD_DATA_URI_TAGS",qk,{transform:oa,base:qk}),Zo=zu(Ie,"FORBID_CONTENTS",so,{transform:oa}),tr=zu(Ie,"FORBID_TAGS",Uo({}),{transform:oa}),Er=zu(Ie,"FORBID_ATTR",Uo({}),{transform:oa}),Xs=!!ao(Ie,"USE_PROFILES")&&(Ie.USE_PROFILES&&typeof Ie.USE_PROFILES=="object"?Uo(Ie.USE_PROFILES):Ie.USE_PROFILES),qr=Ie.ALLOW_ARIA_ATTR!==!1,en=Ie.ALLOW_DATA_ATTR!==!1,kn=Ie.ALLOW_UNKNOWN_PROTOCOLS||!1,ln=Ie.ALLOW_SELF_CLOSE_IN_ATTR!==!1,jt=Ie.SAFE_FOR_TEMPLATES||!1,We=Ie.SAFE_FOR_XML!==!1,Kr=Ie.WHOLE_DOCUMENT||!1,Pn=Ie.RETURN_DOM||!1,Ua=Ie.RETURN_DOM_FRAGMENT||!1,Dn=Ie.RETURN_TRUSTED_TYPE||!1,En=Ie.FORCE_BODY||!1,Di=Ie.SANITIZE_DOM!==!1,vn=Ie.SANITIZE_NAMED_PROPS||!1,hi=Ie.KEEP_CONTENT!==!1,Hl=Ie.IN_PLACE||!1,Ft=(function(ir){try{return oo(ir,""),!0}catch{return!1}})(Ie.ALLOWED_URI_REGEXP)?Ie.ALLOWED_URI_REGEXP:Q_,_d=typeof Ie.NAMESPACE=="string"?Ie.NAMESPACE:Kl,Vw=ao(Ie,"MATHML_TEXT_INTEGRATION_POINTS")&&Ie.MATHML_TEXT_INTEGRATION_POINTS&&typeof Ie.MATHML_TEXT_INTEGRATION_POINTS=="object"?Uo(Ie.MATHML_TEXT_INTEGRATION_POINTS):dn({},zk),Jw=ao(Ie,"HTML_INTEGRATION_POINTS")&&Ie.HTML_INTEGRATION_POINTS&&typeof Ie.HTML_INTEGRATION_POINTS=="object"?Uo(Ie.HTML_INTEGRATION_POINTS):dn({},Vk);const dt=ao(Ie,"CUSTOM_ELEMENT_HANDLING")&&Ie.CUSTOM_ELEMENT_HANDLING&&typeof Ie.CUSTOM_ELEMENT_HANDLING=="object"?Uo(Ie.CUSTOM_ELEMENT_HANDLING):gd(null);if(zt=gd(null),ao(dt,"tagNameCheck")&&Jk(dt.tagNameCheck)&&(zt.tagNameCheck=dt.tagNameCheck),ao(dt,"attributeNameCheck")&&Jk(dt.attributeNameCheck)&&(zt.attributeNameCheck=dt.attributeNameCheck),ao(dt,"allowCustomizedBuiltInElements")&&typeof dt.allowCustomizedBuiltInElements=="boolean"&&(zt.allowCustomizedBuiltInElements=dt.allowCustomizedBuiltInElements),_o(zt),jt&&(en=!1),Ua&&(Pn=!0),Xs&&(it=dn({},G_),ut=gd(null),Xs.html===!0&&(dn(it,K_),dn(ut,Y_)),Xs.svg===!0&&(dn(it,pw),dn(ut,fw),dn(ut,Rv)),Xs.svgFilters===!0&&(dn(it,hw),dn(ut,fw),dn(ut,Rv)),Xs.mathMl===!0&&(dn(it,dw),dn(ut,X_),dn(ut,Rv))),dr.tagCheck=null,dr.attributeCheck=null,ao(Ie,"ADD_TAGS")&&(typeof Ie.ADD_TAGS=="function"?dr.tagCheck=Ie.ADD_TAGS:Uu(Ie.ADD_TAGS)&&(it===bt&&(it=Uo(it)),dn(it,Ie.ADD_TAGS,oa))),ao(Ie,"ADD_ATTR")&&(typeof Ie.ADD_ATTR=="function"?dr.attributeCheck=Ie.ADD_ATTR:Uu(Ie.ADD_ATTR)&&(ut===Xt&&(ut=Uo(ut)),dn(ut,Ie.ADD_ATTR,oa))),ao(Ie,"ADD_URI_SAFE_ATTR")&&Uu(Ie.ADD_URI_SAFE_ATTR)&&dn(qw,Ie.ADD_URI_SAFE_ATTR,oa),ao(Ie,"FORBID_CONTENTS")&&Uu(Ie.FORBID_CONTENTS)&&(Zo===so&&(Zo=Uo(Zo)),dn(Zo,Ie.FORBID_CONTENTS,oa)),ao(Ie,"ADD_FORBID_CONTENTS")&&Uu(Ie.ADD_FORBID_CONTENTS)&&(Zo===so&&(Zo=Uo(Zo)),dn(Zo,Ie.ADD_FORBID_CONTENTS,oa)),hi&&(it["#text"]=!0),Kr&&dn(it,["html","head","body"]),it.table&&(dn(it,["tbody"]),delete tr.tbody),Ie.TRUSTED_TYPES_POLICY){if(typeof Ie.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ie.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zp('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Ht=_e;_e=Ie.TRUSTED_TYPES_POLICY;try{xe=de("")}catch(ir){throw _e=Ht,ir}}else Ie.TRUSTED_TYPES_POLICY===null?(_e=void 0,xe=""):(_e===void 0&&(_e=Ne()),_e&&typeof xe=="string"&&(xe=de("")));xo&&xo(Ie),Od=Ie},Wk=dn({},[...pw,...hw,...xF]),Hk=dn({},[...dw,..._F]),_U=function(Ie){let dt=re(Ie);dt&&dt.tagName||(dt={namespaceURI:_d,tagName:"template"});const Ht=Fm(Ie.tagName),ir=Fm(dt.tagName);return!!zw[Ie.namespaceURI]&&(Ie.namespaceURI===Qv?(function(Pr,$r,ga){return $r.namespaceURI===Kl?Pr==="svg":$r.namespaceURI===Xv?Pr==="svg"&&(ga==="annotation-xml"||Vw[ga]):!!Wk[Pr]})(Ht,dt,ir):Ie.namespaceURI===Xv?(function(Pr,$r,ga){return $r.namespaceURI===Kl?Pr==="math":$r.namespaceURI===Qv?Pr==="math"&&Jw[ga]:!!Hk[Pr]})(Ht,dt,ir):Ie.namespaceURI===Kl?(function(Pr,$r,ga){return!($r.namespaceURI===Qv&&!Jw[ga])&&!($r.namespaceURI===Xv&&!Vw[ga])&&!Hk[Pr]&&(EU[Pr]||!Wk[Pr])})(Ht,dt,ir):!(Jm!=="application/xhtml+xml"||!zw[Ie.namespaceURI]))},Ju=function(Ie){vd(r.removed,{element:Ie});try{re(Ie).removeChild(Ie)}catch{if(V(Ie),!re(Ie))throw Zp("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Zv=function(Ie){Wm(Ie);const dt=J(Ie);if(dt){const ir=[];yd(dt,(Or=>{vd(ir,Or)})),yd(ir,(Or=>{try{V(Or)}catch{}}))}const Ht=le(Ie);if(Ht)for(let ir=Ht.length-1;ir>=0;--ir){const Or=Ht[ir],Pr=Or&&Or.name;if(typeof Pr=="string")try{Ie.removeAttribute(Pr)}catch{}}},kd=function(Ie,dt){try{vd(r.removed,{attribute:dt.getAttributeNode(Ie),from:dt})}catch{vd(r.removed,{attribute:null,from:dt})}if(dt.removeAttribute(Ie),Ie==="is")if(Pn||Ua)try{Ju(dt)}catch{}else try{dt.setAttribute(Ie,"")}catch{}},OU=function(Ie){const dt=le(Ie);if(dt)for(let Ht=dt.length-1;Ht>=0;--Ht){const ir=dt[Ht],Or=ir&&ir.name;if(typeof Or=="string"&&!ut[oa(Or)])try{Ie.removeAttribute(Or)}catch{}}},Wm=function(Ie){const dt=[Ie];for(;dt.length>0;){const Ht=dt.pop();(ve?ve(Ht):Ht.nodeType)===bd&&OU(Ht);const ir=J(Ht);if(ir)for(let Or=ir.length-1;Or>=0;--Or)dt.push(ir[Or])}},Kk=function(Ie){let dt=null,Ht=null;if(En)Ie=""+Ie;else{const Pr=V_(Ie,/^[\r\n\t ]+/);Ht=Pr&&Pr[0]}Jm==="application/xhtml+xml"&&_d===Kl&&(Ie=''+Ie+"");const ir=_e?de(Ie):Ie;if(_d===Kl)try{dt=new k().parseFromString(ir,Jm)}catch{}if(!dt||!dt.documentElement){dt=ht.createDocument(_d,"template",null);try{dt.documentElement.innerHTML=Uw?xe:ir}catch{}}const Or=dt.body||dt.documentElement;return Ie&&Ht&&Or.insertBefore(n.createTextNode(Ht),Or.childNodes[0]||null),_d===Kl?qt.call(dt,Kr?"html":"body")[0]:Kr?dt.documentElement:Or},Gk=function(Ie){const dt=ce?ce(Ie):Ie.ownerDocument;return Ct.call(dt||Ie,Ie,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},e0=function(Ie){return Ie=Lm(Ie,et," "),Ie=Lm(Ie,Dt," "),Ie=Lm(Ie,or," ")},Hw=function(Ie){var dt;Ie.normalize();const Ht=ce?ce(Ie):Ie.ownerDocument,ir=Ct.call(Ht||Ie,Ie,E.SHOW_TEXT|E.SHOW_COMMENT|E.SHOW_CDATA_SECTION|E.SHOW_PROCESSING_INSTRUCTION,null);let Or=ir.nextNode();for(;Or;)Or.data=e0(Or.data),Or=ir.nextNode();const Pr=(dt=Ie.querySelectorAll)===null||dt===void 0?void 0:dt.call(Ie,"template");Pr&&yd(Pr,($r=>{Ad($r.content)&&Hw($r.content)}))},t0=function(Ie){const dt=be?be(Ie):null;return typeof dt=="string"&&oa(dt)==="form"&&(typeof Ie.nodeName!="string"||typeof Ie.textContent!="string"||typeof Ie.removeChild!="function"||Ie.attributes!==le(Ie)||typeof Ie.removeAttribute!="function"||typeof Ie.setAttribute!="function"||typeof Ie.namespaceURI!="string"||typeof Ie.insertBefore!="function"||typeof Ie.hasChildNodes!="function"||Ie.nodeType!==ve(Ie)||Ie.childNodes!==J(Ie))},Ad=function(Ie){if(!ve||typeof Ie!="object"||Ie===null)return!1;try{return ve(Ie)===LF}catch{return!1}},Hm=function(Ie){if(!ve||typeof Ie!="object"||Ie===null)return!1;try{return typeof ve(Ie)=="number"}catch{return!1}};function Gl(rr,Ie,dt){rr.length!==0&&yd(rr,(Ht=>{Ht.call(r,Ie,dt,Od)}))}const Yk=function(Ie,dt,Ht,ir){return Ie.length===0?dt:dt===Ht||dt===ir?Uo(dt):dt},Xk=function(Ie,dt){if(Gl(Ot.beforeSanitizeElements,Ie,null),Ie!==dt&&re(Ie)===null)return Hl&&Wm(Ie),!0;if(t0(Ie))return Ju(Ie),!0;const Ht=oa(be?be(Ie):Ie.nodeName);if(it=Yk(Ot.uponSanitizeElement,it,bt,zr),Gl(Ot.uponSanitizeElement,Ie,{tagName:Ht,allowedTags:it}),Ie!==dt&&re(Ie)===null)return Hl&&Wm(Ie),!0;if((function(Or,Pr){return!!(We&&Or.hasChildNodes()&&!Hm(Or.firstElementChild)&&oo(Z_,Or.textContent)&&oo(Z_,Or.innerHTML))||!(!We||Or.namespaceURI!==Kl||Pr!=="style"||!Hm(Or.firstElementChild))||Or.nodeType===tO||!(!We||Or.nodeType!==rO||!oo(eO,Or.data))})(Ie,Ht))return Ju(Ie),!0;if(tr[Ht]||!(dr.tagCheck instanceof Function&&dr.tagCheck(Ht))&&!it[Ht]){const ir=(function(Pr,$r,ga){if(!tr[$r]&&Zk($r)&&(zt.tagNameCheck instanceof RegExp&&oo(zt.tagNameCheck,$r)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck($r)))return!1;if(hi&&!Zo[$r]){const ei=re(Pr),Sn=J(Pr);if(Sn&&ei)for(let Fi=Sn.length-1;Fi>=0;--Fi){const Qn=Pr===ga?L(Sn[Fi],!0):Sn[Fi];ei.insertBefore(Qn,Q(Pr))}}return Ju(Pr),!0})(Ie,Ht,dt);return ir===!1&&Gl(Ot.afterSanitizeElements,Ie,null),ir}if((ve?ve(Ie):Ie.nodeType)===bd&&!_U(Ie)||(Ht==="noscript"||Ht==="noembed"||Ht==="noframes")&&oo(MF,Ie.innerHTML))return Ju(Ie),!0;if(jt&&Ie.nodeType===DF){const ir=e0(Ie.textContent);Ie.textContent!==ir&&(vd(r.removed,{element:Ie.cloneNode()}),Ie.textContent=ir)}return Gl(Ot.afterSanitizeElements,Ie,null),!1},Qk=function(Ie,dt,Ht){if(Er[dt]||We&&dt==="patchsrc"||We&&dt==="for"&&Ie!=="label"&&Ie!=="output"||Di&&(dt==="id"||dt==="name")&&(Ht in n||Ht in xU))return!1;const ir=ut[dt]||dr.attributeCheck instanceof Function&&dr.attributeCheck(dt,Ie);if(!(en&&oo(Ut,dt))){if(!(qr&&oo(pr,dt))){if(ir){if(!qw[dt]){if(!oo(Ft,Lm(Ht,$e,""))){if((dt!=="src"&&dt!=="xlink:href"&&dt!=="href"||Ie==="script"||J_(Ht,"data:")!==0||!Bk[Ie])&&!(kn&&!oo(W,Lm(Ht,$e,"")))){if(Ht)return!1}}}}else if(!(Zk(Ie)&&(zt.tagNameCheck instanceof RegExp&&oo(zt.tagNameCheck,Ie)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(Ie))&&(zt.attributeNameCheck instanceof RegExp&&oo(zt.attributeNameCheck,dt)||zt.attributeNameCheck instanceof Function&&zt.attributeNameCheck(dt,Ie))||dt==="is"&&zt.allowCustomizedBuiltInElements&&(zt.tagNameCheck instanceof RegExp&&oo(zt.tagNameCheck,Ht)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(Ht))))return!1}}return!0},kU=dn({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Zk=function(Ie){return!kU[Fm(Ie)]&&oo(Je,Ie)},AU=function(Ie,dt,Ht,ir){if(_e&&typeof P=="object"&&typeof P.getAttributeType=="function"&&!Ht)switch(P.getAttributeType(Ie,dt)){case"TrustedHTML":return de(ir);case"TrustedScriptURL":return(function(Pr){G(),je++;try{return _e.createScriptURL(Pr)}finally{je--}})(ir)}return ir},CU=function(Ie,dt,Ht,ir){try{Ht?Ie.setAttributeNS(Ht,dt,ir):Ie.setAttribute(dt,ir),t0(Ie)?Ju(Ie):z_(r.removed)}catch{kd(dt,Ie)}},eA=function(Ie){Gl(Ot.beforeSanitizeAttributes,Ie,null);const dt=Ie.attributes;if(!dt||t0(Ie))return;ut=Yk(Ot.uponSanitizeAttribute,ut,Xt,yn);const Ht={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ut,forceKeepAttr:void 0};let ir=dt.length;const Or=oa(Ie.nodeName);for(;ir--;){const Pr=dt[ir],$r=Pr.name,ga=Pr.namespaceURI,ei=Pr.value,Sn=oa($r),Fi=ei;let Qn=$r==="value"?Fi:bF(Fi);Ht.attrName=Sn,Ht.attrValue=Qn,Ht.keepAttr=!0,Ht.forceKeepAttr=void 0,Gl(Ot.uponSanitizeAttribute,Ie,Ht),Qn=Ht.attrValue,!vn||Sn!=="id"&&Sn!=="name"||J_(Qn,cn)===0||(kd($r,Ie),Qn=cn+Qn),We&&oo(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Qn)||Sn==="attributename"&&V_(Qn,"href")?kd($r,Ie):Ht.forceKeepAttr||(Ht.keepAttr&&(ln||!oo(RF,Qn))?(jt&&(Qn=e0(Qn)),Qk(Or,Sn,Qn)?(Qn=AU(Or,Sn,ga,Qn),Qn!==Fi&&CU(Ie,$r,ga,Qn)):kd($r,Ie)):kd($r,Ie))}Gl(Ot.afterSanitizeAttributes,Ie,null)},r0=function(Ie){let dt=null;const Ht=Gk(Ie);for(Gl(Ot.beforeSanitizeShadowDOM,Ie,null);dt=Ht.nextNode();)if(Gl(Ot.uponSanitizeShadowNode,dt,null),Xk(dt,Ie),eA(dt),Ad(dt.content)&&r0(dt.content),(ve?ve(dt):dt.nodeType)===bd){const ir=me(dt);Ad(ir)&&(Kw(ir),r0(ir))}Gl(Ot.afterSanitizeShadowDOM,Ie,null)},Kw=function(Ie){const dt=[{node:Ie,shadow:null}];for(;dt.length>0;){const Ht=dt.pop();if(Ht.shadow){r0(Ht.shadow);continue}const ir=Ht.node,Or=(ve?ve(ir):ir.nodeType)===bd,Pr=J(ir);if(Pr)for(let $r=Pr.length-1;$r>=0;--$r)dt.push({node:Pr[$r],shadow:null});if(Or){const $r=be?be(ir):null;if(typeof $r=="string"&&oa($r)==="template"){const ga=ir.content;Ad(ga)&&dt.push({node:ga,shadow:null})}}if(Or){const $r=me(ir);Ad($r)&&dt.push({node:null,shadow:$r},{node:$r,shadow:null})}}};return r.sanitize=function(rr){let Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dt=null,Ht=null,ir=null,Or=null;if(Uw=!rr,Uw&&(rr=""),typeof rr!="string"&&!Hm(rr)&&typeof(rr=(function(Sn){switch(typeof Sn){case"string":return Sn;case"number":return wF(Sn);case"boolean":return EF(Sn);case"bigint":return W_?W_(Sn):"0";case"symbol":return H_?H_(Sn):"Symbol()";case"undefined":default:return Mv(Sn);case"function":case"object":{if(Sn===null)return Mv(Sn);const Fi=Sn,Qn=Hs(Fi,"toString");if(typeof Qn=="function"){const ps=Qn(Fi);return typeof ps=="string"?ps:Mv(ps)}return Mv(Sn)}}})(rr))!="string")throw Zp("dirty is not a string, aborting");if(!r.isSupported)return rr;Lr?(it=zr,ut=yn):Ww(Ie),(Ot.uponSanitizeElement.length>0||Ot.uponSanitizeAttribute.length>0)&&(it=Uo(it)),Ot.uponSanitizeAttribute.length>0&&(ut=Uo(ut)),r.removed=[];const Pr=Hl&&typeof rr!="string"&&Hm(rr);if(Pr){(function(Fi){if(!We)return;const Qn=[Fi];for(;Qn.length>0;){const ps=Qn.pop(),Gw=ve?ve(ps):ps.nodeType;if(Gw===tO||Gw===rO&&oo(eO,ps.data)){try{V(ps)}catch{}continue}if(Gw===bd){const Qs=ps,tA=oa(be?be(ps):ps.nodeName);try{Qs.hasAttribute&&Qs.hasAttribute("patchsrc")&&Qs.removeAttribute("patchsrc"),Qs.hasAttribute&&Qs.hasAttribute("for")&&tA!=="label"&&tA!=="output"&&Qs.removeAttribute("for")}catch{}}const Yw=J(ps);if(Yw)for(let Qs=Yw.length-1;Qs>=0;--Qs)Qn.push(Yw[Qs])}})(rr);const ei=be?be(rr):rr.nodeName;if(typeof ei=="string"){const Sn=oa(ei);if(!it[Sn]||tr[Sn])throw Zv(rr),Zp("root node is forbidden and cannot be sanitized in-place")}if(t0(rr))throw Zv(rr),Zp("root node is clobbered and cannot be sanitized in-place");try{Kw(rr)}catch(Sn){throw Zv(rr),Sn}}else if(Hm(rr))dt=Kk(""),Ht=dt.ownerDocument.importNode(rr,!0),Ht.nodeType===bd&&Ht.nodeName==="BODY"||Ht.nodeName==="HTML"?dt=Ht:dt.appendChild(Ht),Kw(Ht);else{if(!Pn&&!jt&&!Kr&&rr.indexOf("<")===-1)return _e&&Dn?de(rr):rr;if(dt=Kk(rr),!dt)return Pn?null:Dn?xe:""}dt&&En&&Ju(dt.firstChild);const $r=Pr?rr:dt;try{const ei=Gk($r);for(;ir=ei.nextNode();)Xk(ir,$r),eA(ir),Ad(ir.content)&&r0(ir.content)}catch(ei){throw Pr&&(Zv(rr),yd(r.removed,(Sn=>{Sn.element&&Wm(Sn.element)}))),ei}if(Pr)return yd(r.removed,(ei=>{ei.element&&Wm(ei.element)})),jt&&Hw(rr),rr;if(Pn){if(jt&&Hw(dt),Ua)for(Or=_t.call(dt.ownerDocument);dt.firstChild;)Or.appendChild(dt.firstChild);else Or=dt;return(ut.shadowroot||ut.shadowrootmode)&&(Or=It.call(a,Or,!0)),Or}let ga=Kr?dt.outerHTML:dt.innerHTML;return Kr&&it["!doctype"]&&dt.ownerDocument&&dt.ownerDocument.doctype&&dt.ownerDocument.doctype.name&&oo(TF,dt.ownerDocument.doctype.name)&&(ga=" +`+ga),jt&&(ga=e0(ga)),_e&&Dn?de(ga):ga},r.setConfig=function(){Ww(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Lr=!0,zr=it,yn=ut},r.clearConfig=function(){Od=null,Lr=!1,zr=null,yn=null,_e=Ae,xe=""},r.isValidAttribute=function(rr,Ie,dt){Od||Ww({});const Ht=oa(rr),ir=oa(Ie);return Qk(Ht,ir,dt)},r.addHook=function(rr,Ie){typeof Ie=="function"&&ao(Ot,rr)&&vd(Ot[rr],Ie)},r.removeHook=function(rr,Ie){if(ao(Ot,rr)){if(Ie!==void 0){const dt=yF(Ot[rr],Ie);return dt===-1?void 0:vF(Ot[rr],dt,1)[0]}return z_(Ot[rr])}},r.removeHooks=function(rr){ao(Ot,rr)&&(Ot[rr]=[])},r.removeAllHooks=function(){Ot={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r})();mw.addHook&&mw.addHook("beforeSanitizeElements",(function(t){return t.href&&t.setAttribute("rel","noopener noreferrer"),t}));const BF=function({source:e,className:r="",getConfigs:n=()=>({useUnsafeMarkdown:!1})}){if(typeof e!="string")return null;const a=new Nc({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(hF);a.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:o}=n(),p=a.render(e),c=$m(p,{useUnsafeMarkdown:o});return e&&p&&c?u.createElement("div",{className:Xr()(r,"markdown"),dangerouslySetInnerHTML:{__html:c}}):null};function $m(t,{useUnsafeMarkdown:e=!1}={}){const r=e,n=e?[]:["style","class"];return e&&!$m.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),$m.hasWarnedAboutDeprecation=!0),mw.sanitize(t,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:r,FORBID_ATTR:n})}$m.hasWarnedAboutDeprecation=!1;class qF extends u.Component{render(){const{errSelectors:e,specSelectors:r,getComponent:n}=this.props,a=n("SvgAssets"),o=n("InfoContainer",!0),p=n("VersionPragmaFilter"),c=n("operations",!0),d=n("Models",!0),E=n("Webhooks",!0),x=n("Row"),k=n("Col"),P=n("errors",!0),R=n("ServersContainer",!0),L=n("SchemesContainer",!0),V=n("AuthorizeBtnContainer",!0),Q=n("FilterContainer",!0),J=r.isSwagger2(),re=r.isOAS3(),me=r.isOAS31(),le=r.isOAS32(),ve=!r.specStr(),be=r.loadingStatus();let ce=null;if(be==="loading"&&(ce=u.createElement("div",{className:"info"},u.createElement("div",{className:"loading-container"},u.createElement("div",{className:"loading"})))),be==="failed"&&(ce=u.createElement("div",{className:"info"},u.createElement("div",{className:"loading-container"},u.createElement("h4",{className:"title"},"Failed to load API definition."),u.createElement(P,null)))),be==="failedConfig"){const G=e.lastError(),de=G?G.get("message"):"";ce=u.createElement("div",{className:"info failed-config"},u.createElement("div",{className:"loading-container"},u.createElement("h4",{className:"title"},"Failed to load remote configuration."),u.createElement("p",null,de)))}if(!ce&&ve&&(ce=u.createElement("h4",null,"No API definition provided.")),ce)return u.createElement("div",{className:"swagger-ui"},u.createElement("div",{className:"loading-container"},ce));const _e=r.servers(),Ae=r.schemes(),xe=_e&&_e.size,Oe=Ae&&Ae.size,je=!!r.securityDefinitions();return u.createElement("div",{className:"swagger-ui"},u.createElement(a,null),u.createElement(p,{isSwagger2:J,isOAS3:re,isOAS31:me,isOAS32:le,alsoShow:u.createElement(P,null)},u.createElement(P,null),u.createElement(x,{className:"information-container"},u.createElement(k,{mobile:12},u.createElement(o,null))),xe||Oe||je?u.createElement("div",{className:"scheme-container"},u.createElement(k,{className:"schemes wrapper",mobile:12},xe||Oe?u.createElement("div",{className:"schemes-server-container"},xe?u.createElement(R,null):null,Oe?u.createElement(L,null):null):null,je?u.createElement(V,null):null)):null,u.createElement(Q,null),u.createElement("main",{id:"operations",tabIndex:"-1",style:{outline:"none"}},u.createElement(x,null,u.createElement(k,{mobile:12,desktop:12},u.createElement(c,null))),me&&u.createElement(x,{className:"webhooks-container"},u.createElement(k,{mobile:12,desktop:12},u.createElement(E,null))),u.createElement(x,null,u.createElement(k,{mobile:12,desktop:12},u.createElement(d,null))))))}}const UF=()=>({components:{App:P9,authorizationPopup:N9,authorizeBtn:T9,AuthorizeBtnContainer:I9,authorizeOperationBtn:M9,auths:R9,AuthItem:D9,authError:F9,oauth2:V9,apiKeyAuth:L9,basicAuth:$9,clear:J9,liveResponse:K9,InitializedInput:R7,info:$7,InfoContainer:B7,InfoUrl:F7,InfoBasePath:D7,Contact:U7,License:V7,JumpToPath:J7,CopyToClipboardBtn:W7,onlineValidatorBadge:Qx,operations:Y9,operation:Q9,OperationSummary:r7,OperationSummaryMethod:n7,OperationSummaryPath:a7,responses:q1,response:s7,ResponseExtension:l7,responseBody:h7,parameters:d7,parameterRow:y7,execute:v7,headers:b7,errors:w7,contentType:_7,overview:I7,footer:H7,FilterContainer:K7,ParamBody:J1,curl:G7,Property:Y7,TryItOutButton:X7,Markdown:BF,BaseLayout:qF,VersionPragmaFilter:Q7,VersionStamp:Z7,OperationExt:o7,OperationExtRow:i7,ParameterExt:f7,ParameterIncludeEmpty:g7,OperationTag:X9,OperationContainer:Z9,OpenAPIVersion:eD,DeepLink:tD,SvgAssets:rD,Example:B9,ExamplesSelect:q9,ExamplesSelectValueRetainer:U9}}),zF=()=>({components:{...Ve}}),nO=()=>[Zl,Nd,mx,uh,Nx,Tx,ey,sh,pp,Fd,Yd,Ah,UF,zF,fx,Ss,Ix,up,Id,Ld,Ol,Hx,Kx,Xx()],VF=(0,H.Map)();function Bm(t){return(e,r)=>(...n)=>{if(r.getSystem().specSelectors.isOAS3()){const a=t(...n);return typeof a=="function"?a(r):a}return e(...n)}}const qm=Bm(vu()(null)),JF=Bm(((t,e)=>r=>r.getSystem().specSelectors.findSchema(e))),WF=Bm((()=>t=>{const e=t.getSystem().specSelectors.specJson().getIn(["components","schemas"]);return H.Map.isMap(e)?e:VF})),HF=Bm((()=>t=>t.getSystem().specSelectors.specJson().hasIn(["servers",0]))),KF=Bm(yr(li,(t=>t.getIn(["components","securitySchemes"])||null))),GF=(t,e)=>(r,...n)=>e.specSelectors.isOAS3()?e.oas3Selectors.validOperationMethods():t(...n),YF=qm,XF=qm,QF=qm,ZF=qm,eL=qm,tL=(function(e){return(r,n)=>(...a)=>{if(n.getSystem().specSelectors.isOAS3()){let o=n.getState().getIn(["spec","resolvedSubtrees","components","securitySchemes"]);return e(n,o,...a)}return r(...a)}})(yr((t=>t),(({specSelectors:t})=>t.securityDefinitions()),((t,e)=>{let r=(0,H.List)();return e&&e.entrySeq().forEach((([n,a])=>{const o=a?.get("type");if(o==="oauth2"&&a.get("flows").entrySeq().forEach((([p,c])=>{let d=(0,H.fromJS)({flow:p,authorizationUrl:c.get("authorizationUrl"),tokenUrl:c.get("tokenUrl"),scopes:c.get("scopes"),type:a.get("type"),description:a.get("description")});r=r.push(new H.Map({[n]:d.filter((E=>E!==void 0))}))})),o!=="http"&&o!=="apiKey"||(r=r.push(new H.Map({[n]:a}))),o==="openIdConnect"&&a.get("openIdConnectData")){let p=a.get("openIdConnectData");(p.get("grant_types_supported")||["authorization_code","implicit"]).forEach((c=>{let d=p.get("scopes_supported")&&p.get("scopes_supported").reduce(((x,k)=>x.set(k,"")),new H.Map),E=(0,H.fromJS)({flow:c,authorizationUrl:p.get("authorization_endpoint"),tokenUrl:p.get("token_endpoint"),scopes:d,type:"oauth2",openIdConnectUrl:a.get("openIdConnectUrl")});r=r.push(new H.Map({[n]:E.filter((x=>x!==void 0))}))}))}})),r})));function Um(t){return(e,r)=>n=>typeof r.specSelectors?.isOAS3=="function"?r.specSelectors.isOAS3()?u.createElement(t,Yr()({},n,r,{Ori:e})):u.createElement(e,n):(console.warn("OAS3 wrapper: couldn't get spec"),null)}const rL=(0,H.Map)(),nL=()=>t=>(function(r){const n=r.get("swagger");return typeof n=="string"&&n==="2.0"})(t.getSystem().specSelectors.specJson()),aL=()=>t=>(function(r){const n=r.get("openapi");return typeof n=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(n)})(t.getSystem().specSelectors.specJson()),oL=()=>t=>t.getSystem().specSelectors.isOAS30();function aO(t){return(e,...r)=>n=>{if(n.specSelectors.isOAS3()){const a=t(e,...r);return typeof a=="function"?a(n):a}return null}}const iL=aO((()=>t=>t.specSelectors.specJson().get("servers",rL))),sL=(t,e)=>{const r=t.getIn(["resolvedSubtrees","components","schemas",e],null),n=t.getIn(["json","components","schemas",e],null);return r||n||null},lL=aO(((t,{callbacks:e,specPath:r})=>n=>{const a=n.specSelectors.validOperationMethods();return H.Map.isMap(e)?e.reduce(((o,p,c)=>{if(!H.Map.isMap(p))return o;const d=p.reduce(((E,x,k)=>{if(!H.Map.isMap(x))return E;const P=x.entrySeq().filter((([R])=>a.includes(R))).map((([R,L])=>({operation:(0,H.Map)({operation:L}),method:R,path:k,callbackName:c,specPath:r.concat([c,k,R])})));return E.concat(P)}),(0,H.List)());return o.concat(d)}),(0,H.List)()).groupBy((o=>o.callbackName)).map((o=>o.toArray())).toObject():{}})),cL=({callbacks:t,specPath:e,specSelectors:r,getComponent:n})=>{const a=r.callbacksOperations({callbacks:t,specPath:e}),o=Object.keys(a),p=n("OperationContainer",!0);return o.length===0?u.createElement("span",null,"No callbacks"):u.createElement("div",null,o.map((c=>u.createElement("div",{key:`${c}`},u.createElement("h2",null,c),a[c].map((d=>u.createElement(p,{key:`${c}-${d.path}-${d.method}`,op:d.operation,tag:"callbacks",method:d.method,path:d.path,specPath:d.specPath,allowTryItOut:!1})))))))},Dv=(t,e,r,n)=>{const a=t.getIn(["content",e])??(0,H.OrderedMap)(),o=a.get("schema",(0,H.OrderedMap)()),p=a.get("examples")!==void 0,c=a.get("example"),d=p?a.getIn(["examples",r,"value"]):c;return Gr(n.getSampleSchema(o,e,{includeWriteOnly:!0},d))},uL=({userHasEditedBody:t,requestBody:e,requestBodyValue:r,requestBodyInclusionSetting:n,requestBodyErrors:a,getComponent:o,getConfigs:p,specSelectors:c,fn:d,contentType:E,isExecute:x,specPath:k,onChange:P,onChangeIncludeEmpty:R,activeExamplesKey:L,updateActiveExamplesKey:V,setRetainRequestBodyValueFlag:Q})=>{const J=qt=>{P(qt.target.files[0])},re=qt=>{let It={key:qt,shouldDispatchInit:!1,defaultValue:!0};return n.get(qt,"no value")==="no value"&&(It.shouldDispatchInit=!0),It},me=o("Markdown",!0),le=o("modelExample"),ve=o("RequestBodyEditor"),be=o("HighlightCode",!0),ce=o("ExamplesSelectValueRetainer"),_e=o("Example"),Ae=o("ParameterIncludeEmpty"),{showCommonExtensions:xe}=p(),Oe=e?.get("description")??null,je=e?.get("content")??new H.OrderedMap;E=E||je.keySeq().first()||"";const G=je.get(E)??(0,H.OrderedMap)(),de=G.get("schema",(0,H.OrderedMap)()),Ne=G.get("examples",null),Ye=Ne?.map(((qt,It)=>{const Ot=qt?.get("value",null);return Ot&&(qt=qt.set("value",Dv(e,E,It,d),Ot)),qt}));if(a=H.List.isList(a)?a:(0,H.List)(),d.isFileUploadIntended(G?.get("schema"),E)){const qt=o("Input");return x?u.createElement(qt,{type:"file",onChange:J}):u.createElement("i",null,"Example values are not available for ",u.createElement("code",null,E)," media types.")}if(!G.size)return null;if(d.hasSchemaType(G.get("schema"),"object")&&(E==="application/x-www-form-urlencoded"||E.indexOf("multipart/")===0)&&de.get("properties",(0,H.OrderedMap)()).size>0){const qt=o("JsonSchemaForm"),It=o("ParameterExt"),Ot=de.get("properties",(0,H.OrderedMap)());return r=H.Map.isMap(r)?r:(0,H.OrderedMap)(),u.createElement("div",{className:"table-container"},Oe&&u.createElement(me,{source:Oe}),u.createElement("table",null,u.createElement("tbody",null,H.Map.isMap(Ot)&&Ot.entrySeq().map((([et,Dt])=>{if(Dt.get("readOnly"))return;const or=Dt.get("oneOf")?.get(0)?.toJS(),Ut=Dt.get("anyOf")?.get(0)?.toJS();Dt=(0,H.fromJS)(d.mergeJsonSchema(Dt.toJS(),or??Ut??{}));let pr=xe?mr(Dt):null;const W=de.get("required",(0,H.List)()).includes(et),$e=d.getSchemaObjectType(Dt),Je=d.getSchemaObjectTypeLabel(Dt),Ft=d.getSchemaObjectType(Dt?.get("items")),it=Dt.get("format"),bt=Dt.get("description"),ut=r.getIn([et,"value"]),Xt=r.getIn([et,"errors"])||a,zt=n.get(et)||!1;let tr=d.getSampleSchema(Dt,!1,{includeWriteOnly:!0});tr===!1&&(tr="false"),tr===0&&(tr="0"),typeof tr!="string"&&$e==="object"&&(tr=Gr(tr)),typeof tr=="string"&&$e==="array"&&(tr=JSON.parse(tr));const Er=d.isFileUploadIntended(Dt),dr=u.createElement(qt,{fn:d,dispatchInitialValue:!Er,schema:Dt,description:et,getComponent:o,value:ut===void 0?tr:ut,required:W,errors:Xt,onChange:qr=>{P(qr,[et])}});return u.createElement("tr",{key:et,className:"parameters","data-property-name":et},u.createElement("td",{className:"parameters-col_name"},u.createElement("div",{className:W?"parameter__name required":"parameter__name"},et,W?u.createElement("span",null," *"):null),u.createElement("div",{className:"parameter__type"},Je,it&&u.createElement("span",{className:"prop-format"},"($",it,")"),xe&&pr.size?pr.entrySeq().map((([qr,en])=>u.createElement(It,{key:`${qr}-${en}`,xKey:qr,xVal:en}))):null),u.createElement("div",{className:"parameter__deprecated"},Dt.get("deprecated")?"deprecated":null)),u.createElement("td",{className:"parameters-col_description"},u.createElement(me,{source:bt}),x?u.createElement("div",null,$e==="object"||Ft==="object"?u.createElement(le,{getComponent:o,specPath:k.push("schema"),getConfigs:p,isExecute:x,specSelectors:c,schema:Dt,example:dr}):dr,W?null:u.createElement(Ae,{onChange:qr=>R(et,qr),isIncluded:zt,isIncludedOptions:re(et),isDisabled:Array.isArray(ut)?ut.length!==0:!Wa(ut)})):null))})))))}const ht=Dv(e,E,L,d);let Ct=null;_v(ht)&&(Ct="json");const _t=x?u.createElement(ve,{value:r,errors:a,defaultValue:ht,onChange:P,getComponent:o}):u.createElement(be,{className:"body-param__example",language:Ct},Gr(r)||ht);return u.createElement("div",null,Oe&&u.createElement(me,{source:Oe}),Ye?u.createElement(ce,{userHasEditedBody:t,examples:Ye,currentKey:L,currentUserInputValue:r,onSelect:qt=>{V(qt)},updateValue:P,defaultToFirstExample:!0,getComponent:o,setRetainRequestBodyValueFlag:Q}):null,u.createElement(le,{getComponent:o,getConfigs:p,specSelectors:c,expandDepth:1,isExecute:x,schema:G.get("schema"),specPath:k.push("content",E,"schema"),example:_t,includeWriteOnly:!0}),Ye?u.createElement(_e,{example:Ye.get(L),getComponent:o,getConfigs:p}):null)};class pL extends u.Component{render(){const{link:e,name:r,getComponent:n}=this.props,a=n("Markdown",!0);let o=e.get("operationId")||e.get("operationRef"),p=e.get("parameters")&&e.get("parameters").toJS(),c=e.get("description");return u.createElement("div",{className:"operation-link"},u.createElement("div",{className:"description"},u.createElement("b",null,u.createElement("code",null,r)),c?u.createElement(a,{source:c}):null),u.createElement("pre",null,"Operation `",o,"`",u.createElement("br",null),u.createElement("br",null),"Parameters ",(function(E,x){return typeof x!="string"?"":x.split(` +`).map(((k,P)=>P>0?Array(E+1).join(" ")+k:k)).join(` +`)})(0,JSON.stringify(p,null,2))||"{}",u.createElement("br",null)))}}const hL=pL,dL=({servers:t,currentServer:e,setSelectedServer:r,setServerVariableValue:n,getServerVariable:a,getEffectiveServerValue:o})=>{const p=(t.find((x=>x.get("url")===e))||(0,H.OrderedMap)()).get("variables")||(0,H.OrderedMap)(),c=p.size!==0;(0,u.useEffect)((()=>{e||r(t.first()?.get("url"))}),[]),(0,u.useEffect)((()=>{const x=t.find((k=>k.get("url")===e));if(!x)return void r(t.first().get("url"));(x.get("variables")||(0,H.OrderedMap)()).map(((k,P)=>{n({server:e,key:P,val:k.get("default")||""})}))}),[e,t]);const d=(0,u.useCallback)((x=>{r(x.target.value)}),[r]),E=(0,u.useCallback)((x=>{const k=x.target.getAttribute("data-variable"),P=x.target.value;n({server:e,key:k,val:P})}),[n,e]);return u.createElement("div",{className:"servers"},u.createElement("label",{htmlFor:"servers"},u.createElement("select",{onChange:d,value:e,id:"servers"},t.valueSeq().map((x=>u.createElement("option",{value:x.get("url"),key:x.get("url")},x.get("url"),x.get("description")&&` - ${x.get("description")}`))).toArray())),c&&u.createElement("div",null,u.createElement("div",{className:"computed-url"},"Computed URL:",u.createElement("code",null,o(e))),u.createElement("h4",null,"Server variables"),u.createElement("table",null,u.createElement("tbody",null,p.entrySeq().map((([x,k])=>u.createElement("tr",{key:x},u.createElement("td",null,x),u.createElement("td",null,k.get("enum")?u.createElement("select",{"data-variable":x,onChange:E},k.get("enum").map((P=>u.createElement("option",{selected:P===a(e,x),key:P,value:P},P)))):u.createElement("input",{type:"text",value:a(e,x)||"",onChange:E,"data-variable":x})))))))))};class fL extends u.Component{render(){const{specSelectors:e,oas3Selectors:r,oas3Actions:n,getComponent:a}=this.props,o=e.servers(),p=a("Servers");return o&&o.size?u.createElement("div",null,u.createElement("span",{className:"servers-title"},"Servers"),u.createElement(p,{servers:o,currentServer:r.selectedServer(),setSelectedServer:n.setSelectedServer,setServerVariableValue:n.setServerVariableValue,getServerVariable:r.serverVariableValue,getEffectiveServerValue:r.serverEffectiveValue})):null}}const mL=Function.prototype;class gL extends u.PureComponent{static defaultProps={onChange:mL,userHasEditedBody:!1};constructor(e,r){super(e,r),this.state={value:Gr(e.value)||e.defaultValue},e.onChange(e.value)}applyDefaultValue=e=>{const{onChange:r,defaultValue:n}=e||this.props;return this.setState({value:n}),r(n)};onChange=e=>{this.props.onChange(Gr(e))};onDomChange=e=>{const r=e.target.value;this.setState({value:r},(()=>this.onChange(r)))};UNSAFE_componentWillReceiveProps(e){this.props.value!==e.value&&e.value!==this.state.value&&this.setState({value:Gr(e.value)}),!e.value&&e.defaultValue&&this.state.value&&this.applyDefaultValue(e)}render(){let{getComponent:e,errors:r}=this.props,{value:n}=this.state,a=r.size>0;const o=e("TextArea");return u.createElement("div",{className:"body-param"},u.createElement(o,{className:Xr()("body-param__text",{invalid:a}),title:r.size?r.join(", "):"",value:n,onChange:this.onDomChange}))}}class yL extends u.Component{constructor(e,r){super(e,r);let{name:n,schema:a}=this.props,o=this.getValue();this.state={name:n,schema:a,value:o}}getValue(){let{name:e,authorized:r}=this.props;return r&&r.getIn([e,"value"])}onChange=e=>{let{onChange:r}=this.props,{value:n,name:a}=e.target,o=Object.assign({},this.state.value);a?o[a]=n:o=n,this.setState({value:o},(()=>r(this.state)))};render(){let{schema:e,getComponent:r,errSelectors:n,name:a,authSelectors:o}=this.props;const p=r("Input"),c=r("Row"),d=r("Col"),E=r("authError"),x=r("Markdown",!0),k=r("JumpToPath",!0),P=(e.get("scheme")||"").toLowerCase(),R=o.selectAuthPath(a);let L=this.getValue(),V=n.allErrors().filter((Q=>Q.get("authId")===a));if(P==="basic"){let Q=L?L.get("username"):null;return u.createElement("div",null,u.createElement("h4",null,u.createElement("code",null,a),"  (http, Basic)",u.createElement(k,{path:R})),Q&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(x,{source:e.get("description")})),u.createElement(c,null,u.createElement("label",{htmlFor:"auth-basic-username"},"Username:"),Q?u.createElement("code",null," ",Q," "):u.createElement(d,null,u.createElement(p,{id:"auth-basic-username",type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),u.createElement(c,null,u.createElement("label",{htmlFor:"auth-basic-password"},"Password:"),Q?u.createElement("code",null," ****** "):u.createElement(d,null,u.createElement(p,{id:"auth-basic-password",autoComplete:"new-password",name:"password",type:"password","aria-label":"auth-basic-password",onChange:this.onChange}))),V.valueSeq().map(((J,re)=>u.createElement(E,{error:J,key:re}))))}return P==="bearer"?u.createElement("div",null,u.createElement("h4",null,u.createElement("code",null,a),"  (http, Bearer)",u.createElement(k,{path:R})),L&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(x,{source:e.get("description")})),u.createElement(c,null,u.createElement("label",{htmlFor:"auth-bearer-value"},"Value:"),L?u.createElement("code",null," ****** "):u.createElement(d,null,u.createElement(p,{id:"auth-bearer-value",type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),V.valueSeq().map(((Q,J)=>u.createElement(E,{error:Q,key:J})))):u.createElement("div",null,u.createElement("em",null,u.createElement("b",null,a)," HTTP authentication: unsupported scheme ",`'${P}'`))}}class vL extends u.Component{setSelectedServer=e=>{const{path:r,method:n}=this.props;return this.forceUpdate(),this.props.setSelectedServer(e,`${r}:${n}`)};setServerVariableValue=e=>{const{path:r,method:n}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...e,namespace:`${r}:${n}`})};getSelectedServer=()=>{const{path:e,method:r}=this.props;return this.props.getSelectedServer(`${e}:${r}`)};getServerVariable=(e,r)=>{const{path:n,method:a}=this.props;return this.props.getServerVariable({namespace:`${n}:${a}`,server:e},r)};getEffectiveServerValue=e=>{const{path:r,method:n}=this.props;return this.props.getEffectiveServerValue({server:e,namespace:`${r}:${n}`})};render(){const{operationServers:e,pathServers:r,getComponent:n}=this.props;if(!e&&!r)return null;const a=n("Servers"),o=e||r,p=e?"operation":"path";return u.createElement("div",{className:"opblock-section operation-servers"},u.createElement("div",{className:"opblock-section-header"},u.createElement("div",{className:"tab-header"},u.createElement("h4",{className:"opblock-title"},"Servers"))),u.createElement("div",{className:"opblock-description-wrapper"},u.createElement("h4",{className:"message"},"These ",p,"-level options override the global server options."),u.createElement(a,{servers:o,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}const bL={Callbacks:cL,HttpAuth:yL,RequestBody:uL,Servers:dL,ServersContainer:fL,RequestBodyEditor:gL,OperationServers:vL,operationLink:hL},gw=new Nc("commonmark");gw.block.ruler.enable(["table"]),gw.set({linkTarget:"_blank"});const wL=Um((({source:t,className:e="",getConfigs:r=()=>({useUnsafeMarkdown:!1})})=>{if(typeof t!="string")return null;if(t){const{useUnsafeMarkdown:n}=r(),a=$m(gw.render(t),{useUnsafeMarkdown:n});let o;return typeof a=="string"&&(o=a.trim()),u.createElement("div",{dangerouslySetInnerHTML:{__html:o},className:Xr()(e,"renderedMarkdown")})}return null})),EL=Um((({Ori:t,...e})=>{const{schema:r,getComponent:n,errSelectors:a,authorized:o,onAuthChange:p,name:c,authSelectors:d}=e,E=n("HttpAuth");return r.get("type")==="http"?u.createElement(E,{key:c,schema:r,name:c,errSelectors:a,authorized:o,getComponent:n,onChange:p,authSelectors:d}):u.createElement(t,e)})),SL=Um(Qx);class xL extends u.Component{render(){let{getConfigs:e,schema:r,Ori:n}=this.props,a=["model-box"],o=null;return r.get("deprecated")===!0&&(a.push("deprecated"),o=u.createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),u.createElement("div",{className:a.join(" ")},o,u.createElement(n,Yr()({},this.props,{getConfigs:e,depth:1,expandDepth:this.props.expandDepth||0})))}}const _L=Um(xL),OL=Um((({Ori:t,...e})=>{const{schema:r,getComponent:n,errors:a,onChange:o,fn:p}=e,c=p.isFileUploadIntended(r),d=n("Input");return c?u.createElement(d,{type:"file",className:a.length?"invalid":"",title:a.length?a:"",onChange:E=>{o(E.target.files[0])},disabled:t.isDisabled}):u.createElement(t,e)})),kL={Markdown:wL,AuthItem:EL,OpenAPIVersion:(function(e){return(r,n)=>a=>typeof n.specSelectors?.isOAS30=="function"?n.specSelectors.isOAS30()?u.createElement(e,Yr()({},a,n,{Ori:r})):u.createElement(r,a):(console.warn("OAS30 wrapper: couldn't get spec"),null)})((t=>{const{Ori:e}=t;return u.createElement(e,{oasVersion:"3.0"})})),JsonSchema_string:OL,model:_L,onlineValidatorBadge:SL},yw="oas3_set_servers",vw="oas3_set_request_body_value",bw="oas3_set_request_body_retain_flag",ww="oas3_set_request_body_inclusion",Ew="oas3_set_active_examples_member",Sw="oas3_set_request_content_type",xw="oas3_set_response_content_type",_w="oas3_set_server_variable_value",Ow="oas3_set_request_body_validate_error",Fv="oas3_clear_request_body_validate_error",kw="oas3_clear_request_body_value";function AL(t,e){return{type:yw,payload:{selectedServerUrl:t,namespace:e}}}function CL({value:t,pathMethod:e}){return{type:vw,payload:{value:t,pathMethod:e}}}const jL=({value:t,pathMethod:e})=>({type:bw,payload:{value:t,pathMethod:e}});function PL({value:t,pathMethod:e,name:r}){return{type:ww,payload:{value:t,pathMethod:e,name:r}}}function NL({name:t,pathMethod:e,contextType:r,contextName:n}){return{type:Ew,payload:{name:t,pathMethod:e,contextType:r,contextName:n}}}function TL({value:t,pathMethod:e}){return{type:Sw,payload:{value:t,pathMethod:e}}}function IL({value:t,path:e,method:r}){return{type:xw,payload:{value:t,path:e,method:r}}}function ML({server:t,namespace:e,key:r,val:n}){return{type:_w,payload:{server:t,namespace:e,key:r,val:n}}}const RL=({path:t,method:e,validationErrors:r})=>({type:Ow,payload:{path:t,method:e,validationErrors:r}}),DL=({path:t,method:e})=>({type:Fv,payload:{path:t,method:e}}),FL=({pathMethod:t})=>({type:Fv,payload:{path:t[0],method:t[1]}}),LL=({pathMethod:t})=>({type:kw,payload:{pathMethod:t}});var $L=Be(60680),BL=Be.n($L);const ss=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS3()){const a=t(e,...r);return typeof a=="function"?a(n):a}return null},qL=ss(((t,e)=>{const r=e?[e,"selectedServer"]:["selectedServer"];return t.getIn(r)||""})),UL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"bodyValue"])||null)),zL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"retainBodyValue"])||!1)),VL=(t,e,r)=>n=>{const{oas3Selectors:a,specSelectors:o,fn:p}=n.getSystem();if(o.isOAS3()){const c=a.requestContentType(e,r);if(c)return Dv(o.specResolvedSubtree(["paths",e,r,"requestBody"]),c,a.activeExamplesMember(e,r,"requestBody","requestBody"),p)}return null},JL=ss(((t,e,r)=>n=>{const{oas3Selectors:a,specSelectors:o,fn:p}=n;let c=!1;const d=a.requestContentType(e,r);let E=a.requestBodyValue(e,r);const x=o.specResolvedSubtree(["paths",e,r,"requestBody"]);if(!x)return!1;if(H.Map.isMap(E)&&(E=Gr(E.mapEntries((k=>H.Map.isMap(k[1])?[k[0],k[1].get("value")]:k)).toJS())),H.List.isList(E)&&(E=Gr(E)),d){const k=Dv(x,d,a.activeExamplesMember(e,r,"requestBody","requestBody"),p);c=!!E&&E!==k}return c})),WL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"bodyInclusion"])||(0,H.Map)())),HL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"errors"])||null)),KL=ss(((t,e,r,n,a)=>t.getIn(["examples",e,r,n,a,"activeExample"])||null)),GL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"requestContentType"])||null)),YL=ss(((t,e,r)=>t.getIn(["requestData",e,r,"responseContentType"])||null)),XL=ss(((t,e,r)=>{let n;if(typeof e!="string"){const{server:a,namespace:o}=e;n=o?[o,"serverVariableValues",a,r]:["serverVariableValues",a,r]}else n=["serverVariableValues",e,r];return t.getIn(n)||null})),QL=ss(((t,e)=>{let r;if(typeof e!="string"){const{server:n,namespace:a}=e;r=a?[a,"serverVariableValues",n]:["serverVariableValues",n]}else r=["serverVariableValues",e];return t.getIn(r)||(0,H.OrderedMap)()})),ZL=ss(((t,e)=>{var r,n;if(typeof e!="string"){const{server:o,namespace:p}=e;n=o,r=p?t.getIn([p,"serverVariableValues",n]):t.getIn(["serverVariableValues",n])}else n=e,r=t.getIn(["serverVariableValues",n]);r=r||(0,H.OrderedMap)();let a=n;return r.map(((o,p)=>{a=a.replace(new RegExp(`{${BL()(p)}}`,"g"),o)})),a})),e$=(function(e){return(...r)=>n=>{const a=n.getSystem().specSelectors.specJson();let o=[...r][1]||[];return!a.getIn(["paths",...o,"requestBody","required"])||e(...r)}})(((t,e)=>((r,n)=>(n=n||[],!!r.getIn(["requestData",...n,"bodyValue"])))(t,e))),t$=(t,{oas3RequiredRequestBodyContentType:e,oas3RequestContentType:r,oas3RequestBodyValue:n})=>{let a=[];if(!H.Map.isMap(n))return a;let o=[];return Object.keys(e.requestContentType).forEach((p=>{p===r&&e.requestContentType[p].forEach((c=>{o.indexOf(c)<0&&o.push(c)}))})),o.forEach((p=>{n.getIn([p,"value"])||a.push(p)})),a},r$=vu()(["get","put","post","delete","options","head","patch","trace"]),n$={[yw]:(t,{payload:{selectedServerUrl:e,namespace:r}})=>{const n=r?[r,"selectedServer"]:["selectedServer"];return t.setIn(n,e)},[vw]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,a]=r;if(!H.Map.isMap(e))return t.setIn(["requestData",n,a,"bodyValue"],e);let o=t.getIn(["requestData",n,a,"bodyValue"])||(0,H.Map)();H.Map.isMap(o)||(o=(0,H.Map)());let p=o;const[...c]=e.keys();return c.forEach((d=>{let E=e.getIn([d]);p.has(d)&&H.Map.isMap(E)||(p=p.setIn([d,"value"],E))})),t.setIn(["requestData",n,a,"bodyValue"],p)},[bw]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,a]=r;return t.setIn(["requestData",n,a,"retainBodyValue"],e)},[ww]:(t,{payload:{value:e,pathMethod:r,name:n}})=>{let[a,o]=r;return t.setIn(["requestData",a,o,"bodyInclusion",n],e)},[Ew]:(t,{payload:{name:e,pathMethod:r,contextType:n,contextName:a}})=>{let[o,p]=r;return t.setIn(["examples",o,p,n,a,"activeExample"],e)},[Sw]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,a]=r;return t.setIn(["requestData",n,a,"requestContentType"],e)},[xw]:(t,{payload:{value:e,path:r,method:n}})=>t.setIn(["requestData",r,n,"responseContentType"],e),[_w]:(t,{payload:{server:e,namespace:r,key:n,val:a}})=>{const o=r?[r,"serverVariableValues",e,n]:["serverVariableValues",e,n];return t.setIn(o,a)},[Ow]:(t,{payload:{path:e,method:r,validationErrors:n}})=>{let a=[];if(a.push("Required field is not provided"),n.missingBodyValue)return t.setIn(["requestData",e,r,"errors"],(0,H.fromJS)(a));if(n.missingRequiredKeys&&n.missingRequiredKeys.length>0){const{missingRequiredKeys:o}=n;return t.updateIn(["requestData",e,r,"bodyValue"],(0,H.fromJS)({}),(p=>o.reduce(((c,d)=>c.setIn([d,"errors"],(0,H.fromJS)(a))),p)))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),t},[Fv]:(t,{payload:{path:e,method:r}})=>{const n=t.getIn(["requestData",e,r,"bodyValue"]);if(!H.Map.isMap(n))return t.setIn(["requestData",e,r,"errors"],(0,H.fromJS)([]));const[...a]=n.keys();return a?t.updateIn(["requestData",e,r,"bodyValue"],(0,H.fromJS)({}),(o=>a.reduce(((p,c)=>p.setIn([c,"errors"],(0,H.fromJS)([]))),o))):t},[kw]:(t,{payload:{pathMethod:e}})=>{let[r,n]=e;const a=t.getIn(["requestData",r,n,"bodyValue"]);return a?H.Map.isMap(a)?t.setIn(["requestData",r,n,"bodyValue"],(0,H.Map)()):t.setIn(["requestData",r,n,"bodyValue"],""):t}};function Aw({getSystem:t}){const e=(r=>(n,a=null)=>{const{getConfigs:o,fn:p}=r(),{fileUploadMediaTypes:c}=o();if(typeof a=="string"&&c.some((x=>a.startsWith(x))))return!0;const d=H.Map.isMap(n);if(!d&&!Ai()(n))return!1;const E=d?n.get("format"):n.format;return p.hasSchemaType(n,"string")&&["binary","byte"].includes(E)})(t);return{components:bL,wrapComponents:kL,statePlugins:{spec:{wrapSelectors:He,selectors:nt},auth:{wrapSelectors:qe},oas3:{actions:{...gt},reducers:n$,selectors:{...Re}}},fn:{isFileUploadIntended:e,isFileUploadIntendedOAS30:e}}}const a$=({specSelectors:t,getComponent:e})=>{const r=t.selectWebhooksOperations();if(!r)return null;const n=Object.keys(r),a=e("OperationContainer",!0);return n.length===0?null:u.createElement("div",{className:"webhooks"},u.createElement("h2",null,"Webhooks"),n.map((o=>u.createElement("div",{key:`${o}-webhook`},r[o].map((p=>u.createElement(a,{key:`${o}-${p.method}-webhook`,op:p.operation,tag:"webhooks",method:p.method,path:o,specPath:(0,H.List)(p.specPath),allowTryItOut:!1})))))))},o$=({getComponent:t,specSelectors:e})=>{const r=e.selectLicenseNameField(),n=e.selectLicenseUrl(),a=t("Link");return u.createElement("div",{className:"info__license"},n?u.createElement("div",{className:"info__license__url"},u.createElement(a,{target:"_blank",href:Dr(n)},r)):u.createElement("span",null,r))},i$=({getComponent:t,specSelectors:e})=>{const r=e.selectContactNameField(),n=e.selectContactUrl(),a=e.selectContactEmailField(),o=t("Link");return u.createElement("div",{className:"info__contact"},n&&u.createElement("div",null,u.createElement(o,{href:Dr(n),target:"_blank"},r," - Website")),a&&u.createElement(o,{href:Dr(`mailto:${a}`)},n?`Send email to ${r}`:`Contact ${r}`))},s$=({getComponent:t,specSelectors:e})=>{const r=e.version(),n=e.url(),a=e.basePath(),o=e.host(),p=e.selectInfoSummaryField(),c=e.selectInfoDescriptionField(),d=e.selectInfoTitleField(),E=e.selectInfoTermsOfServiceUrl(),x=e.selectExternalDocsUrl(),k=e.selectExternalDocsDescriptionField(),P=e.contact(),R=e.license(),L=t("Markdown",!0),V=t("Link"),Q=t("VersionStamp"),J=t("OpenAPIVersion"),re=t("InfoUrl"),me=t("InfoBasePath"),le=t("License",!0),ve=t("Contact",!0),be=t("JsonSchemaDialect",!0);return u.createElement("div",{className:"info"},u.createElement("hgroup",{className:"main"},u.createElement("h1",{className:"title"},d,u.createElement("span",null,r&&u.createElement(Q,{version:r}),u.createElement(J,{oasVersion:"3.1"}))),(o||a)&&u.createElement(me,{host:o,basePath:a}),n&&u.createElement(re,{getComponent:t,url:n})),p&&u.createElement("p",{className:"info__summary"},p),u.createElement("div",{className:"info__description description"},u.createElement(L,{source:c})),E&&u.createElement("div",{className:"info__tos"},u.createElement(V,{target:"_blank",href:Dr(E)},"Terms of service")),P.size>0&&u.createElement(ve,null),R.size>0&&u.createElement(le,null),x&&u.createElement(V,{className:"info__extdocs",target:"_blank",href:Dr(x)},k||x),u.createElement(be,null))},l$=({getComponent:t,specSelectors:e})=>{const r=e.selectJsonSchemaDialectField(),n=e.selectJsonSchemaDialectDefault(),a=t("Link");return u.createElement(u.Fragment,null,r&&r===n&&u.createElement("p",{className:"info__jsonschemadialect"},"JSON Schema dialect:"," ",u.createElement(a,{target:"_blank",href:Dr(r)},r)),r&&r!==n&&u.createElement("div",{className:"error-wrapper"},u.createElement("div",{className:"no-margin"},u.createElement("div",{className:"errors"},u.createElement("div",{className:"errors-wrapper"},u.createElement("h4",{className:"center"},"Warning"),u.createElement("p",{className:"message"},u.createElement("strong",null,"OpenAPI.jsonSchemaDialect")," field contains a value different from the default value of"," ",u.createElement(a,{target:"_blank",href:n},n),". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value."))))))},c$=({bypass:t,isSwagger2:e,isOAS3:r,isOAS31:n,alsoShow:a,children:o})=>t?u.createElement("div",null,o):e&&(r||n)?u.createElement("div",{className:"version-pragma"},a,u.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,u.createElement("code",null,"swagger")," and ",u.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),u.createElement("p",null,"Supported version fields are ",u.createElement("code",null,'swagger: "2.0"'),","," ",u.createElement("code",null,"openapi: 3.0.x"),", or ",u.createElement("code",null,"openapi: 3.1.x")," (for example, ",u.createElement("code",null,"openapi: 3.1.0"),").")))):e||r||n?u.createElement("div",null,o):u.createElement("div",{className:"version-pragma"},a,u.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,"The provided definition does not specify a valid version field."),u.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",u.createElement("code",null,'swagger: "2.0"'),","," ",u.createElement("code",null,"openapi: 3.0.x"),", or ",u.createElement("code",null,"openapi: 3.1.x")," (for example, ",u.createElement("code",null,"openapi: 3.1.0"),").")))),u$=t=>typeof t=="string"&&t.includes("#/components/schemas/")?(e=>{const r=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(r)}catch{return r}})(t.replace(/^.*#\/components\/schemas\//,"")):null,p$=(0,u.forwardRef)((({schema:t,getComponent:e,onToggle:r=()=>{},specPath:n},a)=>{const o=e("JSONSchema202012"),p=u$(t.get("$$ref")),c=(0,u.useCallback)(((d,E)=>{r(p,E)}),[p,r]);return u.createElement(o,{name:p,schema:t.toJS(),ref:a,onExpand:c,identifier:n.toJS().join("_")})})),h$=p$,d$=({specActions:t,specSelectors:e,layoutSelectors:r,layoutActions:n,getComponent:a,getConfigs:o,fn:p})=>{const c=e.selectSchemas(),d=Object.keys(c).length>0,E=["components","schemas"],{docExpansion:x,defaultModelsExpandDepth:k}=o(),P=k>0&&x!=="none",R=r.isShown(E,P),L=a("Collapse"),V=a("JSONSchema202012"),Q=a("ArrowUpIcon"),J=a("ArrowDownIcon"),{getTitle:re}=p.jsonSchema202012.useFn();(0,u.useEffect)((()=>{const ce=Object.entries(c).some((([xe])=>r.isShown([...E,xe],!1))),_e=R&&(k>1||ce),Ae=e.specResolvedSubtree(E)!=null;_e&&!Ae&&t.requestResolvedSubtree(E)}),[R,k]);const me=(0,u.useCallback)((()=>{n.show(E,!R)}),[R]),le=(0,u.useCallback)((ce=>{ce!==null&&n.readyToScroll(E,ce)}),[]),ve=ce=>_e=>{_e!==null&&n.readyToScroll([...E,ce],_e)},be=ce=>(_e,Ae)=>{const xe=[...E,ce];Ae?(e.specResolvedSubtree(xe)!=null||t.requestResolvedSubtree([...E,ce]),n.show(xe,!0)):n.show(xe,!1)};return!d||k<0?null:u.createElement("section",{className:Xr()("models",{"is-open":R}),ref:le},u.createElement("h4",null,u.createElement("button",{"aria-expanded":R,className:"models-control",onClick:me},u.createElement("span",null,"Schemas"),R?u.createElement(Q,null):u.createElement(J,null))),u.createElement(L,{isOpened:R},Object.entries(c).map((([ce,_e])=>{const Ae=re(_e,{lookup:"basic"})||ce;return u.createElement(V,{key:ce,ref:ve(ce),schema:_e,name:Ae,onExpand:be(ce)})}))))},f$=({schema:t,getComponent:e,name:r,authSelectors:n})=>{const a=e("JumpToPath",!0),o=n.selectAuthPath(r);return u.createElement("div",null,u.createElement("h4",null,r," (mutualTLS) ",u.createElement(a,{path:o})),u.createElement("p",null,"Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser."),u.createElement("p",null,t.get("description")))};class m$ extends u.Component{constructor(e,r){super(e,r),this.state={}}onAuthChange=e=>{let{name:r}=e;this.setState({[r]:e})};submitAuth=e=>{e.preventDefault();let{authActions:r}=this.props;r.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:r,definitions:n}=this.props,a=n.keySeq().toArray();this.setState(a.reduce(((o,p)=>(o[p]="",o)),{})),r.logoutWithPersistOption(a)};close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};render(){let{definitions:e,getComponent:r,authSelectors:n,errSelectors:a}=this.props;const o=r("AuthItem"),p=r("oauth2",!0),c=r("Button"),d=n.authorized(),E=e.filter(((R,L)=>!!d.get(L))),x=e.filter((R=>R.get("type")!=="oauth2"&&R.get("type")!=="mutualTLS")),k=e.filter((R=>R.get("type")==="oauth2")),P=e.filter((R=>R.get("type")==="mutualTLS"));return u.createElement("div",{className:"auth-container"},x.size>0&&u.createElement("form",{onSubmit:this.submitAuth},x.map(((R,L)=>u.createElement(o,{key:L,schema:R,name:L,getComponent:r,onAuthChange:this.onAuthChange,authorized:d,errSelectors:a,authSelectors:n}))).valueSeq().toArray(),u.createElement("div",{className:"auth-btn-wrapper"},x.size===E.size?u.createElement(c,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):u.createElement(c,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),u.createElement(c,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),k.size>0?u.createElement("div",null,u.createElement("div",{className:"scope-def"},u.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),u.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),e.filter((R=>R.get("type")==="oauth2")).map(((R,L)=>u.createElement("div",{key:L},u.createElement(p,{authorized:d,schema:R,name:L})))).valueSeq().toArray()):null,P.size>0&&u.createElement("div",null,P.map(((R,L)=>u.createElement(o,{key:L,schema:R,name:L,getComponent:r,onAuthChange:this.onAuthChange,authorized:d,errSelectors:a,authSelectors:n}))).valueSeq().toArray()))}}const g$=m$,oO=t=>{const e=t.get("openapi");return typeof e=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(e)},iO=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS31()){const a=t(e,...r);return typeof a=="function"?a(n):a}return null},sO=t=>(e,r)=>(n,...a)=>{if(r.getSystem().specSelectors.isOAS31()){const o=t(n,...a);return typeof o=="function"?o(e,r):o}return e(...a)},lO=t=>(e,...r)=>n=>{const a=t(e,n,...r);return typeof a=="function"?a(n):a},Wl=t=>(e,r)=>n=>r.specSelectors.isOAS31()?u.createElement(t,Yr()({},n,{originalComponent:e,getSystem:r.getSystem})):u.createElement(e,n),Cw=(t,e)=>{const{fn:r,specSelectors:n}=e;return Object.fromEntries(Object.entries(t).map((([a,o])=>{const p=r[a];return[a,(...c)=>n.isOAS31()?o(...c):typeof p=="function"?p(...c):void 0]})))},y$=Wl((({getSystem:t})=>{const e=t().getComponent("OAS31License",!0);return u.createElement(e,null)})),v$=Wl((({getSystem:t})=>{const e=t().getComponent("OAS31Contact",!0);return u.createElement(e,null)})),b$=Wl((({getSystem:t})=>{const e=t().getComponent("OAS31Info",!0);return u.createElement(e,null)})),w$=(t,{includeReadOnly:e,includeWriteOnly:r})=>{if(!t?.properties)return{};const n=Object.entries(t.properties).filter((([,a])=>(a?.readOnly!==!0||e)&&(a?.writeOnly!==!0||r)));return Object.fromEntries(n)},cO=t=>{if(typeof t!="function")return null;const e=t();return()=>[...e,"discriminator","xml","externalDocs","example","$$ref"]},Tc=Wl((({getSystem:t,...e})=>{const r=t(),{getComponent:n,fn:a,getConfigs:o}=r,p=o(),c=window?.location?.pathname??"/";if(Tc.ModelWithJSONSchemaContext&&Tc.pathname===c)return u.createElement(Tc.ModelWithJSONSchemaContext,e);const d=n("OAS31Model"),E=n("withJSONSchema202012SystemContext");return Tc.ModelWithJSONSchemaContext=E(d,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:p.defaultModelExpandDepth,includeReadOnly:e.includeReadOnly,includeWriteOnly:e.includeWriteOnly},fn:{getProperties:a.jsonSchema202012.getProperties,isExpandable:a.jsonSchema202012.isExpandable,getSchemaKeywords:cO(a.jsonSchema202012.getSchemaKeywords)}}),Tc.pathname=c,u.createElement(Tc.ModelWithJSONSchemaContext,e)}));Tc.ModelWithJSONSchemaContext=null,Tc.pathname=null;const E$=Tc,Ic=Wl((({getSystem:t})=>{const{getComponent:e,fn:r,getConfigs:n}=t(),a=n(),o=window?.location?.pathname??"/";if(Ic.ModelsWithJSONSchemaContext&&Ic.pathname===o)return u.createElement(Ic.ModelsWithJSONSchemaContext,null);const p=e("OAS31Models",!0),c=e("withJSONSchema202012SystemContext");return Ic.ModelsWithJSONSchemaContext=c(p,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:a.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:cO(r.jsonSchema202012.getSchemaKeywords)}}),Ic.pathname=o,u.createElement(Ic.ModelsWithJSONSchemaContext,null)}));Ic.ModelsWithJSONSchemaContext=null,Ic.pathname=null;const S$=Ic,x$=(t,e)=>r=>{const n=e.specSelectors.isOAS31(),a=e.getComponent("OAS31VersionPragmaFilter");return u.createElement(a,Yr()({isOAS31:n},r))},_$=Wl((({originalComponent:t,...e})=>{const{getComponent:r,schema:n,name:a}=e,o=r("MutualTLSAuth",!0);return n.get("type")==="mutualTLS"?u.createElement(o,{schema:n,name:a}):u.createElement(t,e)})),O$=_$,k$=Wl((({getSystem:t,...e})=>{const r=t().getComponent("OAS31Auths",!0);return u.createElement(r,e)})),jw=(0,H.Map)(),A$=yr(((t,e)=>e.specSelectors.specJson()),oO),C$=()=>t=>{const e=t.specSelectors.specJson().get("webhooks");return H.Map.isMap(e)?e:jw},j$=yr([(t,e)=>e.specSelectors.webhooks(),(t,e)=>e.specSelectors.validOperationMethods(),(t,e)=>e.specSelectors.specResolvedSubtree(["webhooks"])],((t,e)=>t.reduce(((r,n,a)=>{if(!H.Map.isMap(n))return r;const o=n.entrySeq().filter((([p])=>e.includes(p))).map((([p,c])=>({operation:(0,H.Map)({operation:c}),method:p,path:a,specPath:["webhooks",a,p]})));return r.concat(o)}),(0,H.List)()).groupBy((r=>r.path)).map((r=>r.toArray())).toObject())),P$=()=>t=>{const e=t.specSelectors.info().get("license");return H.Map.isMap(e)?e:jw},N$=()=>t=>t.specSelectors.license().get("name","License"),T$=()=>t=>t.specSelectors.license().get("url"),I$=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),M$=()=>t=>t.specSelectors.license().get("identifier"),R$=()=>t=>{const e=t.specSelectors.info().get("contact");return H.Map.isMap(e)?e:jw},D$=()=>t=>t.specSelectors.contact().get("name","the developer"),F$=()=>t=>t.specSelectors.contact().get("email"),L$=()=>t=>t.specSelectors.contact().get("url"),$$=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectContactUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),B$=()=>t=>t.specSelectors.info().get("title"),q$=()=>t=>t.specSelectors.info().get("summary"),U$=()=>t=>t.specSelectors.info().get("description"),z$=()=>t=>t.specSelectors.info().get("termsOfService"),V$=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectInfoTermsOfServiceField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),J$=()=>t=>t.specSelectors.externalDocs().get("description"),W$=()=>t=>t.specSelectors.externalDocs().get("url"),H$=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectExternalDocsUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),K$=()=>t=>t.specSelectors.specJson().get("jsonSchemaDialect"),G$=()=>"https://spec.openapis.org/oas/3.1/dialect/base",Y$=yr(((t,e)=>e.specSelectors.definitions()),((t,e)=>e.specSelectors.specResolvedSubtree(["components","schemas"])),((t,e)=>H.Map.isMap(t)?H.Map.isMap(e)?Object.entries(t.toJS()).reduce(((r,[n,a])=>{const o=e.get(n);return r[n]=o?.toJS()||a,r}),{}):t.toJS():{})),X$=(t,e)=>(r,...n)=>e.specSelectors.isOAS31()||t(...n),Q$=sO((()=>(t,e)=>e.oas31Selectors.selectLicenseUrl())),Z$=sO((()=>(t,e)=>{const r=e.specSelectors.securityDefinitions();let n=t();return r&&r.entrySeq().forEach((([a,o])=>{o?.get("type")==="mutualTLS"&&(n=n.push(new H.Map({[a]:o})))})),n})),eB=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField(),(t,e)=>e.specSelectors.selectLicenseIdentifierField()],((t,e,r,n)=>r?ba(r,t,{selectedServer:e}):n?`https://spdx.org/licenses/${n}.html`:void 0)),tB=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{hasKeyword:a}=r.jsonSchema202012.useFn(),o=n("JSONSchema202012JSONViewer");return a(t,"example")?u.createElement(o,{name:"Example",value:t.example,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--example"}):null},rB=({schema:t,getSystem:e})=>{const r=t?.xml||{},{fn:n,getComponent:a,getConfigs:o}=e(),{showExtensions:p}=o(),{useComponent:c,useIsExpanded:d,usePath:E,useLevel:x}=n.jsonSchema202012,{path:k}=E("xml"),{isExpanded:P,setExpanded:R,setCollapsed:L}=d("xml"),[V,Q]=x(),J=p?gr(r):[],re=!!(r.name||r.namespace||r.prefix||J.length>0),me=c("Accordion"),le=c("ExpandDeepButton"),ve=a("OpenAPI31Extensions"),be=a("JSONSchema202012PathContext")(),ce=a("JSONSchema202012LevelContext")(),_e=(0,u.useCallback)((()=>{P?L():R()}),[P,R,L]),Ae=(0,u.useCallback)(((xe,Oe)=>{Oe?R({deep:!0}):L({deep:!0})}),[R,L]);return Object.keys(r).length===0?null:u.createElement(be.Provider,{value:k},u.createElement(ce.Provider,{value:Q},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--xml","data-json-schema-level":V},re?u.createElement(u.Fragment,null,u.createElement(me,{expanded:P,onChange:_e},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),u.createElement(le,{expanded:P,onClick:Ae})):u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML"),r.attribute===!0&&u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"attribute"),r.wrapped===!0&&u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"wrapped"),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!P})},P&&u.createElement(u.Fragment,null,r.name&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"name"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.name))),r.namespace&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"namespace"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.namespace))),r.prefix&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"prefix"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.prefix)))),J.length>0&&u.createElement(ve,{openAPISpecObj:r,openAPIExtensions:J,getSystem:e})))))},nB=({discriminator:t})=>{const e=t?.mapping||{};return Object.keys(e).length===0?null:Object.entries(e).map((([r,n])=>u.createElement("div",{key:`${r}-${n}`,className:"json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},r),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},n))))},aB=({schema:t,getSystem:e})=>{const r=t?.discriminator||{},{fn:n,getComponent:a,getConfigs:o}=e(),{showExtensions:p}=o(),{useComponent:c,useIsExpanded:d,usePath:E,useLevel:x}=n.jsonSchema202012,k="discriminator",{path:P}=E(k),{isExpanded:R,setExpanded:L,setCollapsed:V}=d(k),[Q,J]=x(),re=p?gr(r):[],me=!!(r.mapping||re.length>0),le=c("Accordion"),ve=c("ExpandDeepButton"),be=a("OpenAPI31Extensions"),ce=a("JSONSchema202012PathContext")(),_e=a("JSONSchema202012LevelContext")(),Ae=(0,u.useCallback)((()=>{R?V():L()}),[R,L,V]),xe=(0,u.useCallback)(((Oe,je)=>{je?L({deep:!0}):V({deep:!0})}),[L,V]);return Object.keys(r).length===0?null:u.createElement(ce.Provider,{value:P},u.createElement(_e.Provider,{value:J},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator","data-json-schema-level":Q},me?u.createElement(u.Fragment,null,u.createElement(le,{expanded:R,onChange:Ae},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator")),u.createElement(ve,{expanded:R,onClick:xe})):u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator"),r.propertyName&&u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},r.propertyName),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!R})},R&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement(nB,{discriminator:r})),re.length>0&&u.createElement(be,{openAPISpecObj:r,openAPIExtensions:re,getSystem:e})))))},oB=({openAPISpecObj:t,getSystem:e,openAPIExtensions:r})=>{const{fn:n}=e(),{useComponent:a}=n.jsonSchema202012,o=a("JSONViewer");return r.map((p=>u.createElement(o,{key:p,name:p,value:t[p],className:"json-schema-2020-12-json-viewer-extension-keyword"})))},iB=({schema:t,getSystem:e})=>{const r=t?.externalDocs||{},{fn:n,getComponent:a,getConfigs:o}=e(),{showExtensions:p}=o(),{useComponent:c,useIsExpanded:d,usePath:E,useLevel:x}=n.jsonSchema202012,k="externalDocs",{path:P}=E(k),{isExpanded:R,setExpanded:L,setCollapsed:V}=d(k),[Q,J]=x(),re=p?gr(r):[],me=!!(r.description||r.url||re.length>0),le=c("Accordion"),ve=c("ExpandDeepButton"),be=a("JSONSchema202012KeywordDescription"),ce=a("Link"),_e=a("OpenAPI31Extensions"),Ae=a("JSONSchema202012PathContext")(),xe=a("JSONSchema202012LevelContext")(),Oe=(0,u.useCallback)((()=>{R?V():L()}),[R,L,V]),je=(0,u.useCallback)(((G,de)=>{de?L({deep:!0}):V({deep:!0})}),[L,V]);return Object.keys(r).length===0?null:u.createElement(Ae.Provider,{value:P},u.createElement(xe.Provider,{value:J},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs","data-json-schema-level":Q},me?u.createElement(u.Fragment,null,u.createElement(le,{expanded:R,onChange:Oe},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),u.createElement(ve,{expanded:R,onClick:je})):u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation"),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!R})},R&&u.createElement(u.Fragment,null,r.description&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement(be,{schema:r,getSystem:e})),r.url&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"url"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},u.createElement(ce,{target:"_blank",href:Dr(r.url)},r.url))))),re.length>0&&u.createElement(_e,{openAPISpecObj:r,openAPIExtensions:re,getSystem:e})))))},sB=({schema:t,getSystem:e})=>{if(!t?.description)return null;const{getComponent:r}=e(),n=r("Markdown");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},u.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},u.createElement(n,{source:t.description})))},lB=Wl(sB),cB=Wl((({schema:t,getSystem:e,originalComponent:r})=>{const{getComponent:n}=e(),a=n("JSONSchema202012KeywordDiscriminator"),o=n("JSONSchema202012KeywordXml"),p=n("JSONSchema202012KeywordExample"),c=n("JSONSchema202012KeywordExternalDocs");return u.createElement(u.Fragment,null,u.createElement(r,{schema:t}),u.createElement(a,{schema:t,getSystem:e}),u.createElement(o,{schema:t,getSystem:e}),u.createElement(c,{schema:t,getSystem:e}),u.createElement(p,{schema:t,getSystem:e}))})),uB=cB,pB=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{useComponent:a,usePath:o}=r.jsonSchema202012,{getDependentRequired:p,getProperties:c}=r.jsonSchema202012.useFn(),d=r.jsonSchema202012.useConfig(),E=Array.isArray(t?.required)?t.required:[],{path:x}=o("properties"),k=a("JSONSchema"),P=n("JSONSchema202012PathContext")(),R=c(t,d);return Object.keys(R).length===0?null:u.createElement(P.Provider,{value:x},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},u.createElement("ul",null,Object.entries(R).map((([L,V])=>{const Q=E.includes(L),J=p(L,t);return u.createElement("li",{key:L,className:Xr()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":Q})},u.createElement(k,{name:L,schema:V,dependentRequired:J}))})))))},hB=Wl(pB),dB=function({fn:e,getSystem:r}){if(e.jsonSchema202012){const o=((p,c)=>{const{fn:d}=c();if(typeof p!="function")return null;const{hasKeyword:E}=d.jsonSchema202012;return x=>p(x)||E(x,"example")||x?.xml||x?.discriminator||x?.externalDocs})(e.jsonSchema202012.isExpandable,r);Object.assign(this.fn.jsonSchema202012,{isExpandable:o,getProperties:w$})}if(typeof e.sampleFromSchema=="function"&&e.jsonSchema202012){const o=Cw({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:p=>e.jsonSchema202012.getType(Mr(p)),getSchemaObjectType:p=>e.jsonSchema202012.foldType(Mr(p)?.type)},r());Object.assign(this.fn,o)}const n=(o=>(p,c=null)=>{const{fn:d}=o();if(d.isFileUploadIntendedOAS30(p,c))return!0;const E=H.Map.isMap(p);if(!E&&!Ai()(p))return!1;const x=E?p.get("contentMediaType"):p.contentMediaType,k=E?p.get("contentEncoding"):p.contentEncoding;return typeof x=="string"&&x!==""||typeof k=="string"&&k!==""})(r),{isFileUploadIntended:a}=Cw({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=a,this.fn.isFileUploadIntendedOAS31=n,e.jsonSchema202012){const{hasSchemaType:o}=Cw({hasSchemaType:e.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=o}},fB=({fn:t})=>{const e=t.createSystemSelector||lO,r=t.createOnlyOAS31Selector||iO;return{afterLoad:dB,fn:{isOAS31:oO,createSystemSelector:lO,createOnlyOAS31Selector:iO},components:{Webhooks:a$,JsonSchemaDialect:l$,MutualTLSAuth:f$,OAS31Info:s$,OAS31License:o$,OAS31Contact:i$,OAS31VersionPragmaFilter:c$,OAS31Model:h$,OAS31Models:d$,OAS31Auths:g$,JSONSchema202012KeywordExample:tB,JSONSchema202012KeywordXml:rB,JSONSchema202012KeywordDiscriminator:aB,JSONSchema202012KeywordExternalDocs:iB,OpenAPI31Extensions:oB},wrapComponents:{InfoContainer:b$,License:y$,Contact:v$,VersionPragmaFilter:x$,Model:E$,Models:S$,AuthItem:O$,auths:k$,JSONSchema202012KeywordDescription:lB,JSONSchema202012KeywordExamples:uB,JSONSchema202012KeywordProperties:hB},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:Z$}},spec:{selectors:{isOAS31:e(A$),license:P$,selectLicenseNameField:N$,selectLicenseUrlField:T$,selectLicenseIdentifierField:r(M$),selectLicenseUrl:e(I$),contact:R$,selectContactNameField:D$,selectContactEmailField:F$,selectContactUrlField:L$,selectContactUrl:e($$),selectInfoTitleField:B$,selectInfoSummaryField:r(q$),selectInfoDescriptionField:U$,selectInfoTermsOfServiceField:z$,selectInfoTermsOfServiceUrl:e(V$),selectExternalDocsDescriptionField:J$,selectExternalDocsUrlField:W$,selectExternalDocsUrl:e(H$),webhooks:r(C$),selectWebhooksOperations:r(e(j$)),selectJsonSchemaDialectField:K$,selectJsonSchemaDialectDefault:G$,selectSchemas:e(Y$)},wrapSelectors:{isOAS3:X$,selectLicenseUrl:Q$}},oas31:{selectors:{selectLicenseUrl:r(e(eB))}}}}},mB=({bypass:t,isSwagger2:e,isOAS3:r,isOAS31:n,isOAS32:a,alsoShow:o,children:p})=>t?u.createElement("div",null,p):e&&(r||n||a)?u.createElement("div",{className:"version-pragma"},o,u.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,u.createElement("code",null,"swagger")," and ",u.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),u.createElement("p",null,"Supported version fields are ",u.createElement("code",null,'swagger: "2.0"')," ","and ",u.createElement("code",null,"openapi: 3.0.x"),", ",u.createElement("code",null,"openapi: 3.1.x"),", or"," ",u.createElement("code",null,"openapi: 3.2.x")," (for example,"," ",u.createElement("code",null,"openapi: 3.2.0"),").")))):e||r||n||a?u.createElement("div",null,p):u.createElement("div",{className:"version-pragma"},o,u.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,"The provided definition does not specify a valid version field."),u.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",u.createElement("code",null,'swagger: "2.0"')," ","and ",u.createElement("code",null,"openapi: 3.0.x"),", ",u.createElement("code",null,"openapi: 3.1.x"),", or"," ",u.createElement("code",null,"openapi: 3.2.x")," (for example,"," ",u.createElement("code",null,"openapi: 3.2.0"),").")))),uO=t=>{const e=t.get("openapi");return typeof e=="string"&&/^3\.2\.(?:[1-9]\d*|0)$/.test(e)},gB=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS32()){const a=t(e,...r);return typeof a=="function"?a(n):a}return null},pO=t=>(e,...r)=>n=>{const a=t(e,n,...r);return typeof a=="function"?a(n):a},Mc=t=>(e,r)=>n=>r.specSelectors.isOAS32()?u.createElement(t,Yr()({},n,{originalComponent:e,getSystem:r.getSystem})):u.createElement(e,n),Pw=(t,e)=>{const{fn:r,specSelectors:n}=e;return Object.fromEntries(Object.entries(t).map((([a,o])=>{const p=r[a];return[a,(...c)=>n.isOAS32()?o(...c):typeof p=="function"?p(...c):void 0]})))},yB=Mc((t=>{const{getSystem:e}=t,r=e().getComponent("OAS31Contact",!0);return u.createElement(r,t)})),vB=Mc((({getSystem:t})=>{const e=t().getComponent("OAS31Info",!0);return u.createElement(e,null)})),bB=Mc((t=>{const{getSystem:e}=t,r=e().getComponent("OAS31License",!0);return u.createElement(r,t)})),hO=t=>{if(typeof t!="function")return null;const e=t();return()=>[...e,"discriminator","xml","externalDocs","example","$$ref"]},Rc=Mc((({getSystem:t,...e})=>{const r=t(),{getComponent:n,fn:a,getConfigs:o}=r,p=o(),c=window?.location?.pathname??"/";if(Rc.ModelWithJSONSchemaContext&&Rc.pathname===c)return u.createElement(Rc.ModelWithJSONSchemaContext,e);const d=n("OAS31Model"),E=n("withJSONSchema202012SystemContext");return Rc.ModelWithJSONSchemaContext=E(d,{config:{default$schema:"https://spec.openapis.org/oas/3.2/schema/2025-09-17",defaultExpandedLevels:p.defaultModelExpandDepth,includeReadOnly:e.includeReadOnly,includeWriteOnly:e.includeWriteOnly},fn:{getProperties:a.jsonSchema202012.getProperties,isExpandable:a.jsonSchema202012.isExpandable,getSchemaKeywords:hO(a.jsonSchema202012.getSchemaKeywords)}}),Rc.pathname=c,u.createElement(Rc.ModelWithJSONSchemaContext,e)}));Rc.ModelWithJSONSchemaContext=null,Rc.pathname=null;const wB=Rc,Dc=Mc((({getSystem:t})=>{const{getComponent:e,fn:r,getConfigs:n}=t(),a=n(),o=window?.location?.pathname??"/";if(Dc.ModelsWithJSONSchemaContext&&Dc.pathname===o)return u.createElement(Dc.ModelsWithJSONSchemaContext,null);const p=e("OAS31Models",!0),c=e("withJSONSchema202012SystemContext");return Dc.ModelsWithJSONSchemaContext=c(p,{config:{default$schema:"https://spec.openapis.org/oas/3.2/schema/2025-09-17",defaultExpandedLevels:a.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:hO(r.jsonSchema202012.getSchemaKeywords)}}),Dc.pathname=o,u.createElement(Dc.ModelsWithJSONSchemaContext,null)}));Dc.ModelsWithJSONSchemaContext=null,Dc.pathname=null;const EB=Dc,SB=Mc((t=>{const{originalComponent:e}=t;return u.createElement(e,{oasVersion:"3.2"})})),xB=(t,e)=>r=>{const n=e.specSelectors.isOAS32(),a=e.getComponent("OAS32VersionPragmaFilter");return u.createElement(a,Yr()({isOAS32:n},r))},_B=({schema:t,getSystem:e})=>{if(!t?.description)return null;const{getComponent:r}=e(),n=r("Markdown");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},u.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},u.createElement(n,{source:t.description})))},OB=Mc(_B),kB=Mc((({schema:t,getSystem:e,originalComponent:r})=>{const{getComponent:n}=e(),a=n("JSONSchema202012KeywordDiscriminator"),o=n("JSONSchema202012KeywordXml"),p=n("JSONSchema202012KeywordExample"),c=n("JSONSchema202012KeywordExternalDocs");return u.createElement(u.Fragment,null,u.createElement(r,{schema:t}),u.createElement(a,{schema:t,getSystem:e}),u.createElement(o,{schema:t,getSystem:e}),u.createElement(c,{schema:t,getSystem:e}),u.createElement(p,{schema:t,getSystem:e}))})),AB=kB,CB=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{useComponent:a,usePath:o}=r.jsonSchema202012,{getDependentRequired:p,getProperties:c}=r.jsonSchema202012.useFn(),d=r.jsonSchema202012.useConfig(),E=Array.isArray(t?.required)?t.required:[],{path:x}=o("properties"),k=a("JSONSchema"),P=n("JSONSchema202012PathContext")(),R=c(t,d);return Object.keys(R).length===0?null:u.createElement(P.Provider,{value:x},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},u.createElement("ul",null,Object.entries(R).map((([L,V])=>{const Q=E.includes(L),J=p(L,t);return u.createElement("li",{key:L,className:Xr()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":Q})},u.createElement(k,{name:L,schema:V,dependentRequired:J}))})))))},jB=Mc(CB),PB=vu()(["get","put","post","delete","options","head","patch","trace","query"]),NB=(t,e)=>(r,...n)=>e.specSelectors.isOAS32()||t(...n),TB=(dO=()=>(t,e)=>e.oas32Selectors.validOperationMethods(),(t,e)=>(r,...n)=>{if(e.getSystem().specSelectors.isOAS32()){const a=dO(r,...n);return typeof a=="function"?a(t,e):a}return t(...n)});var dO;const fO=(0,H.Map)(),IB=(t,e)=>()=>{const r=e.specSelectors.specJson();return uO(r)},MB=()=>t=>{const e=t.specSelectors.info().get("license");return H.Map.isMap(e)?e:fO},RB=()=>t=>t.specSelectors.license().get("name","License"),DB=()=>t=>t.specSelectors.license().get("url"),FB=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),LB=()=>t=>t.specSelectors.license().get("identifier"),$B=()=>t=>{const e=t.specSelectors.info().get("contact");return H.Map.isMap(e)?e:fO},BB=()=>t=>t.specSelectors.contact().get("name","the developer"),qB=()=>t=>t.specSelectors.contact().get("email"),UB=()=>t=>t.specSelectors.contact().get("url"),zB=yr([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectContactUrlField()],((t,e,r)=>{if(r)return ba(r,t,{selectedServer:e})})),VB=()=>t=>t.specSelectors.info().get("summary"),JB=function({fn:e,getSystem:r}){if(typeof e.sampleFromSchema=="function"&&e.jsonSchema202012){const o=Pw({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:p=>e.jsonSchema202012.getType(Mr(p)),getSchemaObjectType:p=>e.jsonSchema202012.foldType(Mr(p)?.type)},r());Object.assign(this.fn,o)}const n=(o=>(p,c=null)=>{const{fn:d}=o();if(d.isFileUploadIntendedOAS30(p,c))return!0;const E=H.Map.isMap(p);if(!E&&!Ai()(p))return!1;const x=E?p.get("contentMediaType"):p.contentMediaType,k=E?p.get("contentEncoding"):p.contentEncoding;return typeof x=="string"&&x!==""||typeof k=="string"&&k!==""})(r),{isFileUploadIntended:a}=Pw({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=a,this.fn.isFileUploadIntendedOAS32=n,e.jsonSchema202012){const{hasSchemaType:o}=Pw({hasSchemaType:e.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=o}},WB=({fn:t})=>{const e=t.createSystemSelector||pO;return{afterLoad:JB,fn:{isOAS32:uO,createSystemSelector:pO,createOnlyOAS32Selector:gB},components:{OAS32VersionPragmaFilter:mB},wrapComponents:{Contact:yB,InfoContainer:vB,License:bB,Model:wB,Models:EB,OpenAPIVersion:SB,VersionPragmaFilter:xB,JSONSchema202012KeywordDescription:OB,JSONSchema202012KeywordExamples:AB,JSONSchema202012KeywordProperties:jB},statePlugins:{spec:{selectors:{isOAS32:e(IB),selectInfoSummaryField:VB,license:MB,selectLicenseNameField:RB,selectLicenseUrlField:DB,selectLicenseIdentifierField:LB,selectLicenseUrl:e(FB),contact:$B,selectContactNameField:BB,selectContactEmailField:qB,selectContactUrlField:UB,selectContactUrl:e(zB)},wrapSelectors:{isOAS3:NB,validOperationMethods:TB}},oas32:{selectors:{validOperationMethods:PB}}}}},HB=va().object,KB=va().bool,eh=(va().oneOfType([HB,KB]),(0,u.createContext)(null));eh.displayName="JSONSchemaContext";const ls=(0,u.createContext)(0);ls.displayName="JSONSchemaLevelContext";const Nw=(0,u.createContext)(new Set),pi=(0,u.createContext)([]);class Ks{static Collapsed="collapsed";static Expanded="expanded";static DeeplyExpanded="deeply-expanded"}const Tw=()=>{const{config:t}=(0,u.useContext)(eh);return t},Jt=t=>{const{components:e}=(0,u.useContext)(eh);return e[t]||null},Rn=(t=void 0)=>{const{fn:e}=(0,u.useContext)(eh);return t!==void 0?e[t]:e},mO=()=>{const[,t]=(0,u.useState)(null),{state:e}=(0,u.useContext)(eh);return{state:e,setState:r=>{r(e),t({})}}},cs=()=>{const t=(0,u.useContext)(ls);return[t,t+1]},Qo=t=>{const e=(0,u.useContext)(pi),{setState:r}=mO(),n=typeof t=="string"?[...e,t]:e;return{path:n,pathMutator:(a,o={deep:!1})=>{const p=n.toString(),c=E=>{E.paths[p]=a,a===Ks.Collapsed&&Object.keys(E.paths).forEach((x=>{x.startsWith(p)&&E.paths[x]===Ks.DeeplyExpanded&&(E.paths[x]=Ks.Expanded)}))},d=E=>{Object.keys(E.paths).forEach((x=>{x.startsWith(p)&&(E.paths[x]=a)}))};o.deep?r(d):r(c)}}},Gs=t=>{const[e]=cs(),{defaultExpandedLevels:r}=Tw(),{path:n,pathMutator:a}=Qo(t),{path:o}=Qo(),{state:p}=mO(),c=p.paths[n.toString()],d=p.paths[o.toString()]??p.paths[o.slice(0,-1).toString()],E=c??(r-e>0?Ks.Expanded:Ks.Collapsed),x=E!==Ks.Collapsed;return(0,u.useEffect)((()=>{a(d===Ks.DeeplyExpanded?Ks.DeeplyExpanded:E)}),[d]),{isExpanded:x,setExpanded:(0,u.useCallback)(((k={deep:!1})=>{a(k.deep?Ks.DeeplyExpanded:Ks.Expanded)}),[]),setCollapsed:(0,u.useCallback)(((k={deep:!1})=>{a(Ks.Collapsed,k)}),[])}},gO=(t=void 0)=>{if(t===void 0)return(0,u.useContext)(Nw);const e=(0,u.useContext)(Nw);return new Set([...e,t])},GB=(0,u.forwardRef)((({schema:t,name:e="",dependentRequired:r=[],onExpand:n=()=>{},identifier:a=""},o)=>{const p=Rn(),c=a||t?.$id||e,{path:d}=Qo(c),{isExpanded:E,setExpanded:x,setCollapsed:k}=Gs(c),[P,R]=cs(),L=(()=>{const[Lr]=cs();return Lr>0})(),V=p.isExpandable(t)||r.length>0,Q=(Lr=>gO().has(Lr))(t),J=gO(t),re=p.stringifyConstraints(t),me=Jt("Accordion"),le=Jt("Keyword$schema"),ve=Jt("Keyword$vocabulary"),be=Jt("Keyword$id"),ce=Jt("Keyword$anchor"),_e=Jt("Keyword$dynamicAnchor"),Ae=Jt("Keyword$ref"),xe=Jt("Keyword$dynamicRef"),Oe=Jt("Keyword$defs"),je=Jt("Keyword$comment"),G=Jt("KeywordAllOf"),de=Jt("KeywordAnyOf"),Ne=Jt("KeywordOneOf"),Ye=Jt("KeywordNot"),ht=Jt("KeywordIf"),Ct=Jt("KeywordThen"),_t=Jt("KeywordElse"),qt=Jt("KeywordDependentSchemas"),It=Jt("KeywordPrefixItems"),Ot=Jt("KeywordItems"),et=Jt("KeywordContains"),Dt=Jt("KeywordProperties"),or=Jt("KeywordPatternProperties"),Ut=Jt("KeywordAdditionalProperties"),pr=Jt("KeywordPropertyNames"),W=Jt("KeywordUnevaluatedItems"),$e=Jt("KeywordUnevaluatedProperties"),Je=Jt("KeywordType"),Ft=Jt("KeywordEnum"),it=Jt("KeywordConst"),bt=Jt("KeywordConstraint"),ut=Jt("KeywordDependentRequired"),Xt=Jt("KeywordContentSchema"),zt=Jt("KeywordTitle"),tr=Jt("KeywordDescription"),Er=Jt("KeywordDefault"),dr=Jt("KeywordDeprecated"),qr=Jt("KeywordReadOnly"),en=Jt("KeywordWriteOnly"),kn=Jt("KeywordExamples"),ln=Jt("ExtensionKeywords"),jt=Jt("ExpandDeepButton"),We=(0,u.useCallback)(((Lr,zr)=>{zr?x():k(),n(Lr,zr,!1)}),[n,x,k]),Kr=(0,u.useCallback)(((Lr,zr)=>{zr?x({deep:!0}):k({deep:!0}),n(Lr,zr,!0)}),[n,x,k]);return u.createElement(pi.Provider,{value:d},u.createElement(ls.Provider,{value:R},u.createElement(Nw.Provider,{value:J},u.createElement("article",{ref:o,"data-json-schema-level":P,className:Xr()("json-schema-2020-12",{"json-schema-2020-12--embedded":L,"json-schema-2020-12--circular":Q})},u.createElement("div",{className:"json-schema-2020-12-head"},V&&!Q?u.createElement(u.Fragment,null,u.createElement(me,{expanded:E,onChange:We},u.createElement(zt,{title:e,schema:t})),u.createElement(jt,{expanded:E,onClick:Kr})):u.createElement(zt,{title:e,schema:t}),u.createElement(dr,{schema:t}),u.createElement(qr,{schema:t}),u.createElement(en,{schema:t}),u.createElement(Je,{schema:t,isCircular:Q}),re.length>0&&re.map((Lr=>u.createElement(bt,{key:`${Lr.scope}-${Lr.value}`,constraint:Lr})))),u.createElement("div",{className:Xr()("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!E})},E&&u.createElement(u.Fragment,null,u.createElement(tr,{schema:t}),!Q&&V&&u.createElement(u.Fragment,null,u.createElement(Dt,{schema:t}),u.createElement(or,{schema:t}),u.createElement(Ut,{schema:t}),u.createElement($e,{schema:t}),u.createElement(pr,{schema:t}),u.createElement(G,{schema:t}),u.createElement(de,{schema:t}),u.createElement(Ne,{schema:t}),u.createElement(Ye,{schema:t}),u.createElement(ht,{schema:t}),u.createElement(Ct,{schema:t}),u.createElement(_t,{schema:t}),u.createElement(qt,{schema:t}),u.createElement(It,{schema:t}),u.createElement(Ot,{schema:t}),u.createElement(W,{schema:t}),u.createElement(et,{schema:t}),u.createElement(Xt,{schema:t})),u.createElement(Ft,{schema:t}),u.createElement(it,{schema:t}),u.createElement(ut,{schema:t,dependentRequired:r}),u.createElement(Er,{schema:t}),u.createElement(kn,{schema:t}),u.createElement(le,{schema:t}),u.createElement(ve,{schema:t}),u.createElement(be,{schema:t}),u.createElement(ce,{schema:t}),u.createElement(_e,{schema:t}),u.createElement(Ae,{schema:t}),!Q&&V&&u.createElement(Oe,{schema:t}),u.createElement(xe,{schema:t}),u.createElement(je,{schema:t}),u.createElement(ln,{schema:t})))))))})),yO=GB,vO=({schema:t})=>t?.$schema?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$schema"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$schema)):null,bO=({schema:t})=>{const e="$vocabulary",{path:r}=Qo(e),{isExpanded:n,setExpanded:a,setCollapsed:o}=Gs(e),p=Jt("Accordion"),c=(0,u.useCallback)((()=>{n?o():a()}),[n,a,o]);return t?.$vocabulary?typeof t.$vocabulary!="object"?null:u.createElement(pi.Provider,{value:r},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary"},u.createElement(p,{expanded:n,onChange:c},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$vocabulary")),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",null,n&&Object.entries(t.$vocabulary).map((([d,E])=>u.createElement("li",{key:d,className:Xr()("json-schema-2020-12-$vocabulary-uri",{"json-schema-2020-12-$vocabulary-uri--disabled":!E})},u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},d))))))):null},wO=({schema:t})=>t?.$id?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$id"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$id"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$id)):null,EO=({schema:t})=>t?.$anchor?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$anchor"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$anchor)):null,SO=({schema:t})=>t?.$dynamicAnchor?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicAnchor"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicAnchor)):null,xO=({schema:t})=>t?.$ref?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$ref"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$ref)):null,_O=({schema:t})=>t?.$dynamicRef?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicRef"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicRef)):null,OO=({schema:t})=>{const e=t?.$defs||{},r="$defs",{path:n}=Qo(r),{isExpanded:a,setExpanded:o,setCollapsed:p}=Gs(r),[c,d]=cs(),E=Jt("Accordion"),x=Jt("ExpandDeepButton"),k=Jt("JSONSchema"),P=(0,u.useCallback)((()=>{a?p():o()}),[a,o,p]),R=(0,u.useCallback)(((L,V)=>{V?o({deep:!0}):p({deep:!0})}),[o,p]);return Object.keys(e).length===0?null:u.createElement(pi.Provider,{value:n},u.createElement(ls.Provider,{value:d},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs","data-json-schema-level":c},u.createElement(E,{expanded:a,onChange:P},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$defs")),u.createElement(x,{expanded:a,onClick:R}),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&u.createElement(u.Fragment,null,Object.entries(e).map((([L,V])=>u.createElement("li",{key:L,className:"json-schema-2020-12-property"},u.createElement(k,{name:L,schema:V})))))))))},kO=({schema:t})=>t?.$comment?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$comment"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$comment)):null,AO=({schema:t})=>{const e=t?.allOf||[],r=Rn(),n="allOf",{path:a}=Qo(n),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(n),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=Jt("JSONSchema"),R=Jt("KeywordType"),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return Array.isArray(e)&&e.length!==0?u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf","data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"All of")),u.createElement(k,{expanded:o,onClick:V}),u.createElement(R,{schema:{allOf:e}}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(P,{name:`#${J} ${r.getTitle(Q)}`,schema:Q}))))))))):null},CO=({schema:t})=>{const e=t?.anyOf||[],r=Rn(),n="anyOf",{path:a}=Qo(n),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(n),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=Jt("JSONSchema"),R=Jt("KeywordType"),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return Array.isArray(e)&&e.length!==0?u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf","data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Any of")),u.createElement(k,{expanded:o,onClick:V}),u.createElement(R,{schema:{anyOf:e}}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(P,{name:`#${J} ${r.getTitle(Q)}`,schema:Q}))))))))):null},jO=({schema:t})=>{const e=t?.oneOf||[],r=Rn(),n="oneOf",{path:a}=Qo(n),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(n),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=Jt("JSONSchema"),R=Jt("KeywordType"),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return Array.isArray(e)&&e.length!==0?u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf","data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"One of")),u.createElement(k,{expanded:o,onClick:V}),u.createElement(R,{schema:{oneOf:e}}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(P,{name:`#${J} ${r.getTitle(Q)}`,schema:Q}))))))))):null},PO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"not"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Not");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--not"},u.createElement(r,{name:n,schema:t.not,identifier:"not"}))},NO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"if"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"If");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},u.createElement(r,{name:n,schema:t.if,identifier:"if"}))},TO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"then"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Then");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--then"},u.createElement(r,{name:n,schema:t.then,identifier:"then"}))},IO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"else"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Else");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},u.createElement(r,{name:n,schema:t.else,identifier:"else"}))},MO=({schema:t})=>{const e=t?.dependentSchemas||[],r="dependentSchemas",{path:n}=Qo(r),{isExpanded:a,setExpanded:o,setCollapsed:p}=Gs(r),[c,d]=cs(),E=Jt("Accordion"),x=Jt("ExpandDeepButton"),k=Jt("JSONSchema"),P=(0,u.useCallback)((()=>{a?p():o()}),[a,o,p]),R=(0,u.useCallback)(((L,V)=>{V?o({deep:!0}):p({deep:!0})}),[o,p]);return typeof e!="object"||Object.keys(e).length===0?null:u.createElement(pi.Provider,{value:n},u.createElement(ls.Provider,{value:d},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas","data-json-schema-level":c},u.createElement(E,{expanded:a,onChange:P},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Dependent schemas")),u.createElement(x,{expanded:a,onClick:R}),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&u.createElement(u.Fragment,null,Object.entries(e).map((([L,V])=>u.createElement("li",{key:L,className:"json-schema-2020-12-property"},u.createElement(k,{name:L,schema:V})))))))))},RO=({schema:t})=>{const e=t?.prefixItems||[],r=Rn(),n="prefixItems",{path:a}=Qo(n),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(n),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=Jt("JSONSchema"),R=Jt("KeywordType"),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return Array.isArray(e)&&e.length!==0?u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems","data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Prefix items")),u.createElement(k,{expanded:o,onClick:V}),u.createElement(R,{schema:{prefixItems:e}}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(P,{name:`#${J} ${r.getTitle(Q)}`,schema:Q}))))))))):null},DO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"items"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Items");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--items"},u.createElement(r,{name:n,schema:t.items,identifier:"items"}))},FO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"contains"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Contains");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contains"},u.createElement(r,{name:n,schema:t.contains,identifier:"contains"}))},LO=({schema:t})=>{const e=Rn(),r=t?.properties||{},n=Array.isArray(t?.required)?t.required:[],a=Jt("JSONSchema"),{path:o}=Qo("properties");return Object.keys(r).length===0?null:u.createElement(pi.Provider,{value:o},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},u.createElement("ul",null,Object.entries(r).map((([p,c])=>{const d=n.includes(p),E=e.getDependentRequired(p,t);return u.createElement("li",{key:p,className:Xr()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":d})},u.createElement(a,{name:p,schema:c,dependentRequired:E}))})))))},$O=({schema:t})=>{const e=t?.patternProperties||{},r=Jt("JSONSchema"),{path:n}=Qo("patternProperties");return Object.keys(e).length===0?null:u.createElement(pi.Provider,{value:n},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties"},u.createElement("ul",null,Object.entries(e).map((([a,o])=>u.createElement("li",{key:a,className:"json-schema-2020-12-property"},u.createElement(r,{name:a,schema:o})))))))},BO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"additionalProperties"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Additional properties");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties"},t.additionalProperties===!0?u.createElement(u.Fragment,null,n,u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"allowed")):t.additionalProperties===!1?u.createElement(u.Fragment,null,n,u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"forbidden")):u.createElement(r,{name:n,schema:t.additionalProperties,identifier:"additionalProperties"}))},qO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema"),n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Property names");return e.hasKeyword(t,"propertyNames")?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames"},u.createElement(r,{name:n,schema:t.propertyNames,identifier:"propertyNames"})):null},UO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"unevaluatedItems"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated items");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems"},u.createElement(r,{name:n,schema:t.unevaluatedItems,identifier:"unevaluatedItems"}))},zO=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"unevaluatedProperties"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated properties");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties"},u.createElement(r,{name:n,schema:t.unevaluatedProperties,identifier:"unevaluatedProperties"}))},VO=({schema:t,isCircular:e=!1})=>{const r=Rn().getType(t),n=e?" [circular]":"";return u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${r}${n}`)},JO=({schema:t})=>{const e=Jt("JSONViewer");return Array.isArray(t?.enum)?u.createElement(e,{name:"Enum",value:t.enum,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--enum"}):null},WO=({schema:t})=>{const e=Rn(),r=Jt("JSONViewer");return e.hasKeyword(t,"const")?u.createElement(r,{name:"Const",value:t.const,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--const"}):null},HO=t=>typeof t=="string"?`${t.charAt(0).toUpperCase()}${t.slice(1)}`:t,KO=t=>(e,{lookup:r="extended"}={})=>{const n=t();if(e?.title!=null)return n.upperFirst(String(e.title));if(r==="extended"){if(e?.$anchor!=null)return n.upperFirst(String(e.$anchor));if(e?.$id!=null)return String(e.$id)}return""},GO=t=>{const e=(r,n=new WeakSet)=>{const a=t();if(r==null)return"any";if(a.isBooleanJSONSchema(r))return r?"any":"never";if(typeof r!="object"||n.has(r))return"any";n.add(r);const{type:o,prefixItems:p,items:c}=r,d=()=>{if(Array.isArray(p)){const k=p.map((R=>e(R,n))),P=c?e(c,n):"any";return`array<[${k.join(", ")}], ${P}>`}return c?`array<${e(c,n)}>`:"array"};if(r.not&&e(r.not)==="any")return"never";const E=(k,P)=>Array.isArray(r[k])?`(${r[k].map((R=>e(R,n))).join(P)})`:null,x=[Array.isArray(o)?o.map((k=>k==="array"?d():k)).join(" | "):o==="array"?d():["null","boolean","object","array","number","integer","string"].includes(o)?o:(()=>{if(Object.hasOwn(r,"prefixItems")||Object.hasOwn(r,"items")||Object.hasOwn(r,"contains"))return d();if(Object.hasOwn(r,"properties")||Object.hasOwn(r,"additionalProperties")||Object.hasOwn(r,"patternProperties"))return"object";if(["int32","int64"].includes(r.format))return"integer";if(["float","double"].includes(r.format))return"number";if(Object.hasOwn(r,"minimum")||Object.hasOwn(r,"maximum")||Object.hasOwn(r,"exclusiveMinimum")||Object.hasOwn(r,"exclusiveMaximum")||Object.hasOwn(r,"multipleOf"))return"number | integer";if(Object.hasOwn(r,"pattern")||Object.hasOwn(r,"format")||Object.hasOwn(r,"minLength")||Object.hasOwn(r,"maxLength")||Object.hasOwn(r,"contentEncoding")||Object.hasOwn(r,"contentMediaType"))return"string";if(r.const!==void 0){if(r.const===null)return"null";if(typeof r.const=="boolean")return"boolean";if(typeof r.const=="number")return Number.isInteger(r.const)?"integer":"number";if(typeof r.const=="string")return"string";if(Array.isArray(r.const))return"array";if(typeof r.const=="object")return"object"}return null})(),E("oneOf"," | "),E("anyOf"," | "),E("allOf"," & ")].filter(Boolean).join(" | ");return n.delete(r),x||"any"};return e},YO=t=>typeof t=="boolean",XO=(t,e)=>t!==null&&typeof t=="object"&&Object.hasOwn(t,e),QO=t=>e=>{const r=t();return e?.$schema||e?.$vocabulary||e?.$id||e?.$anchor||e?.$dynamicAnchor||e?.$ref||e?.$dynamicRef||e?.$defs||e?.$comment||e?.allOf||e?.anyOf||e?.oneOf||r.hasKeyword(e,"not")||r.hasKeyword(e,"if")||r.hasKeyword(e,"then")||r.hasKeyword(e,"else")||e?.dependentSchemas||e?.prefixItems||r.hasKeyword(e,"items")||r.hasKeyword(e,"contains")||e?.properties||e?.patternProperties||r.hasKeyword(e,"additionalProperties")||r.hasKeyword(e,"propertyNames")||r.hasKeyword(e,"unevaluatedItems")||r.hasKeyword(e,"unevaluatedProperties")||e?.description||e?.enum||r.hasKeyword(e,"const")||r.hasKeyword(e,"contentSchema")||r.hasKeyword(e,"default")||e?.examples||r.getExtensionKeywords(e).length>0},ZO=t=>t===null||["number","bigint","boolean"].includes(typeof t)?String(t):Array.isArray(t)?`[${t.map(ZO).join(", ")}]`:JSON.stringify(t),Lv=(t,e,r)=>{const n=typeof e=="number",a=typeof r=="number";return n&&a?e===r?`${e} ${t}`:`[${e}, ${r}] ${t}`:n?`≥ ${e} ${t}`:a?`≤ ${r} ${t}`:null},YB=t=>{const e=[],r=(d=>{if(typeof d?.multipleOf!="number"||d.multipleOf<=0||d.multipleOf===1)return null;const{multipleOf:E}=d;if(Number.isInteger(E))return`multiple of ${E}`;const x=10**E.toString().split(".")[1].length;return`multiple of ${E*x}/${x}`})(t);r!==null&&e.push({scope:"number",value:r});const n=(d=>{const E=d?.minimum,x=d?.maximum,k=d?.exclusiveMinimum,P=d?.exclusiveMaximum,R=typeof E=="number",L=typeof x=="number",V=typeof k=="number",Q=typeof P=="number",J=V&&(!R||EP);return(R||V)&&(L||Q)?`${J?"(":"["}${J?k:E}, ${re?P:x}${re?")":"]"}`:R||V?`${J?">":"≥"} ${J?k:E}`:L||Q?`${re?"<":"≤"} ${re?P:x}`:null})(t);n!==null&&e.push({scope:"number",value:n}),t?.format&&e.push({scope:"string",value:t.format});const a=Lv("characters",t?.minLength,t?.maxLength);a!==null&&e.push({scope:"string",value:a}),t?.pattern&&e.push({scope:"string",value:`matches ${t?.pattern}`}),t?.contentMediaType&&e.push({scope:"string",value:`media type: ${t.contentMediaType}`}),t?.contentEncoding&&e.push({scope:"string",value:`encoding: ${t.contentEncoding}`});const o=Lv(t?.uniqueItems?"unique items":"items",t?.minItems,t?.maxItems);o!==null&&e.push({scope:"array",value:o}),t?.uniqueItems&&!o&&e.push({scope:"array",value:"unique"});const p=Lv("contained items",t?.minContains,t?.maxContains);p!==null&&e.push({scope:"array",value:p});const c=Lv("properties",t?.minProperties,t?.maxProperties);return c!==null&&e.push({scope:"object",value:c}),e},XB=(t,e)=>e?.dependentRequired?Array.from(Object.entries(e.dependentRequired).reduce(((r,[n,a])=>(Array.isArray(a)&&a.includes(t)&&r.add(n),r)),new Set)):[],$v=t=>typeof t=="object"&&t!==null&&!Array.isArray(t)&&(Object.getPrototypeOf(t)===null||Object.getPrototypeOf(t)===Object.prototype),ek=()=>["$schema","$vocabulary","$id","$anchor","$dynamicAnchor","$dynamicRef","$ref","$defs","$comment","allOf","anyOf","oneOf","not","if","then","else","dependentSchemas","prefixItems","items","contains","properties","patternProperties","additionalProperties","propertyNames","unevaluatedItems","unevaluatedProperties","type","enum","const","multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","maxContains","minContains","maxProperties","minProperties","required","dependentRequired","title","description","default","deprecated","readOnly","writeOnly","examples","format","contentEncoding","contentMediaType","contentSchema"],tk=t=>e=>{const r=t().getSchemaKeywords();return $v(e)?((n,a)=>{const o=new Set(a);return n.filter((p=>!o.has(p)))})(Object.keys(e),r):[]},QB=(t,e)=>{const r=H.Map.isMap(t);if(!r&&!$v(t))return!1;const n=o=>e===o||Array.isArray(e)&&e.includes(o),a=r?t.get("type"):t.type;return H.List.isList(a)||Array.isArray(a)?a.some((o=>n(o))):n(a)},ZB=({constraint:t})=>$v(t)&&typeof t.scope=="string"&&typeof t.value=="string"?u.createElement("span",{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${t.scope}`},t.value):null,rk=u.memo(ZB),nk=({dependentRequired:t})=>Array.isArray(t)&&t.length!==0?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Required when defined"),u.createElement("ul",null,t.map((e=>u.createElement("li",{key:e},u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning"},e)))))):null,ak=({schema:t})=>{const e=Rn(),r=Jt("JSONSchema");if(!e.hasKeyword(t,"contentSchema"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Content schema");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema"},u.createElement(r,{name:n,schema:t.contentSchema,identifier:"contentSchema"}))},ok=({title:t="",schema:e})=>{const r=Rn(),n=t||r.getTitle(e);return n?u.createElement("strong",{className:"json-schema-2020-12__title"},n):null},ik=({schema:t})=>t?.description?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},u.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},t.description)):null,sk=({schema:t})=>{const e=Rn(),r=Jt("JSONViewer");return e.hasKeyword(t,"default")?u.createElement(r,{name:"Default",value:t.default,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--default"}):null},lk=({schema:t})=>t?.deprecated!==!0?null:u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--warning"},"deprecated"),ck=({schema:t})=>t?.readOnly!==!0?null:u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"read-only"),uk=({schema:t})=>t?.writeOnly!==!0?null:u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"write-only"),pk=({schema:t})=>{const e=t?.examples||[],r=Jt("JSONViewer");return Array.isArray(e)&&e.length!==0?u.createElement(r,{name:"Examples",value:t.examples,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--examples"}):null},hk=({schema:t})=>{const e=Rn(),r="ExtensionKeywords",{path:n}=Qo(r),{isExpanded:a,setExpanded:o,setCollapsed:p}=Gs(r),[c,d]=cs(),E=Jt("Accordion"),x=Jt("ExpandDeepButton"),k=Jt("JSONViewer"),{showExtensionKeywords:P}=Tw(),R=e.getExtensionKeywords(t),L=(0,u.useCallback)((()=>{a?p():o()}),[a,o,p]),V=(0,u.useCallback)(((Q,J)=>{J?o({deep:!0}):p({deep:!0})}),[o,p]);return P&&R.length!==0?u.createElement(pi.Provider,{value:n},u.createElement(ls.Provider,{value:d},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--extension-keywords","data-json-schema-level":c},u.createElement(E,{expanded:a,onChange:L},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--extension"},"Extension Keywords")),u.createElement(x,{expanded:a,onClick:V}),u.createElement("ul",{className:Xr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&u.createElement(u.Fragment,null,R.map((Q=>u.createElement(k,{key:Q,name:Q,value:t[Q],className:"json-schema-2020-12-json-viewer-extension-keyword"})))))))):null},Iw=({name:t,value:e,className:r})=>{const n=Rn(),{path:a}=Qo(t),{isExpanded:o,setExpanded:p,setCollapsed:c}=Gs(t),[d,E]=cs(),x=Jt("Accordion"),k=Jt("ExpandDeepButton"),P=typeof e=="string"||typeof e=="number"||typeof e=="bigint"||typeof e=="boolean"||typeof e=="symbol"||e==null,R=(Q=>$v(Q)&&Object.keys(Q).length===0)(e)||(Q=>Array.isArray(Q)&&Q.length===0)(e),L=(0,u.useCallback)((()=>{o?c():p()}),[o,p,c]),V=(0,u.useCallback)(((Q,J)=>{J?p({deep:!0}):c({deep:!0})}),[p,c]);return P?u.createElement("div",{className:Xr()("json-schema-2020-12-json-viewer",r)},u.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t),u.createElement("span",{className:"json-schema-2020-12-json-viewer__value json-schema-2020-12-json-viewer__value--secondary"},n.stringify(e))):R?u.createElement("div",{className:Xr()("json-schema-2020-12-json-viewer",r)},u.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(e)?"empty array":"empty object")):u.createElement(pi.Provider,{value:a},u.createElement(ls.Provider,{value:E},u.createElement("div",{className:Xr()("json-schema-2020-12-json-viewer",r),"data-json-schema-level":d},u.createElement(x,{expanded:o,onChange:L},u.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t)),u.createElement(k,{expanded:o,onClick:V}),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(e)?"array":"object"),u.createElement("ul",{className:Xr()("json-schema-2020-12-json-viewer__children",{"json-schema-2020-12-json-viewer__children--collapsed":!o})},o&&u.createElement(u.Fragment,null,Array.isArray(e)?e.map(((Q,J)=>u.createElement("li",{key:`#${J}`,className:"json-schema-2020-12-property"},u.createElement(Iw,{name:`#${J}`,value:Q,className:r})))):Object.entries(e).map((([Q,J])=>u.createElement("li",{key:Q,className:"json-schema-2020-12-property"},u.createElement(Iw,{name:Q,value:J,className:r})))))))))},dk=Iw,fk=({expanded:t=!1,children:e,onChange:r})=>{const n=Jt("ChevronRightIcon"),a=(0,u.useCallback)((o=>{r(o,!t)}),[t,r]);return u.createElement("button",{type:"button",className:"json-schema-2020-12-accordion",onClick:a},u.createElement("div",{className:"json-schema-2020-12-accordion__children"},e),u.createElement("span",{className:Xr()("json-schema-2020-12-accordion__icon",{"json-schema-2020-12-accordion__icon--expanded":t,"json-schema-2020-12-accordion__icon--collapsed":!t})},u.createElement(n,null)))},mk=({expanded:t,onClick:e})=>{const r=(0,u.useCallback)((n=>{e(n,!t)}),[t,e]);return u.createElement("button",{type:"button",className:"json-schema-2020-12-expand-deep-button",onClick:r},t?"Collapse all":"Expand all")},gk=()=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},u.createElement("path",{fill:"currentColor",d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),yk=(t,e={})=>{const r={components:{JSONSchema:yO,Keyword$schema:vO,Keyword$vocabulary:bO,Keyword$id:wO,Keyword$anchor:EO,Keyword$dynamicAnchor:SO,Keyword$ref:xO,Keyword$dynamicRef:_O,Keyword$defs:OO,Keyword$comment:kO,KeywordAllOf:AO,KeywordAnyOf:CO,KeywordOneOf:jO,KeywordNot:PO,KeywordIf:NO,KeywordThen:TO,KeywordElse:IO,KeywordDependentSchemas:MO,KeywordPrefixItems:RO,KeywordItems:DO,KeywordContains:FO,KeywordProperties:LO,KeywordPatternProperties:$O,KeywordAdditionalProperties:BO,KeywordPropertyNames:qO,KeywordUnevaluatedItems:UO,KeywordUnevaluatedProperties:zO,KeywordType:VO,KeywordEnum:JO,KeywordConst:WO,KeywordConstraint:rk,KeywordDependentRequired:nk,KeywordContentSchema:ak,KeywordTitle:ok,KeywordDescription:ik,KeywordDefault:sk,KeywordDeprecated:lk,KeywordReadOnly:ck,KeywordWriteOnly:uk,KeywordExamples:pk,ExtensionKeywords:hk,JSONViewer:dk,Accordion:fk,ExpandDeepButton:mk,ChevronRightIcon:gk,...e.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,showExtensionKeywords:!0,...e.config},fn:{upperFirst:HO,getTitle:KO(Rn),getType:GO(Rn),isBooleanJSONSchema:YO,hasKeyword:XO,isExpandable:QO(Rn),stringify:ZO,stringifyConstraints:YB,getDependentRequired:XB,getSchemaKeywords:ek,getExtensionKeywords:tk(Rn),...e.fn},state:{paths:{}}},n=a=>u.createElement(eh.Provider,{value:r},u.createElement(t,a));return n.contexts={JSONSchemaContext:eh},n.displayName=t.displayName,n},eq=({getSystem:t})=>(e,r={})=>{const{getComponent:n,getConfigs:a}=t(),o=a(),p=n("JSONSchema202012"),c=n("JSONSchema202012Keyword$schema"),d=n("JSONSchema202012Keyword$vocabulary"),E=n("JSONSchema202012Keyword$id"),x=n("JSONSchema202012Keyword$anchor"),k=n("JSONSchema202012Keyword$dynamicAnchor"),P=n("JSONSchema202012Keyword$ref"),R=n("JSONSchema202012Keyword$dynamicRef"),L=n("JSONSchema202012Keyword$defs"),V=n("JSONSchema202012Keyword$comment"),Q=n("JSONSchema202012KeywordAllOf"),J=n("JSONSchema202012KeywordAnyOf"),re=n("JSONSchema202012KeywordOneOf"),me=n("JSONSchema202012KeywordNot"),le=n("JSONSchema202012KeywordIf"),ve=n("JSONSchema202012KeywordThen"),be=n("JSONSchema202012KeywordElse"),ce=n("JSONSchema202012KeywordDependentSchemas"),_e=n("JSONSchema202012KeywordPrefixItems"),Ae=n("JSONSchema202012KeywordItems"),xe=n("JSONSchema202012KeywordContains"),Oe=n("JSONSchema202012KeywordProperties"),je=n("JSONSchema202012KeywordPatternProperties"),G=n("JSONSchema202012KeywordAdditionalProperties"),de=n("JSONSchema202012KeywordPropertyNames"),Ne=n("JSONSchema202012KeywordUnevaluatedItems"),Ye=n("JSONSchema202012KeywordUnevaluatedProperties"),ht=n("JSONSchema202012KeywordType"),Ct=n("JSONSchema202012KeywordEnum"),_t=n("JSONSchema202012KeywordConst"),qt=n("JSONSchema202012KeywordConstraint"),It=n("JSONSchema202012KeywordDependentRequired"),Ot=n("JSONSchema202012KeywordContentSchema"),et=n("JSONSchema202012KeywordTitle"),Dt=n("JSONSchema202012KeywordDescription"),or=n("JSONSchema202012KeywordDefault"),Ut=n("JSONSchema202012KeywordDeprecated"),pr=n("JSONSchema202012KeywordReadOnly"),W=n("JSONSchema202012KeywordWriteOnly"),$e=n("JSONSchema202012KeywordExamples"),Je=n("JSONSchema202012ExtensionKeywords"),Ft=n("JSONSchema202012JSONViewer"),it=n("JSONSchema202012Accordion"),bt=n("JSONSchema202012ExpandDeepButton"),ut=n("JSONSchema202012ChevronRightIcon");return yk(e,{components:{JSONSchema:p,Keyword$schema:c,Keyword$vocabulary:d,Keyword$id:E,Keyword$anchor:x,Keyword$dynamicAnchor:k,Keyword$ref:P,Keyword$dynamicRef:R,Keyword$defs:L,Keyword$comment:V,KeywordAllOf:Q,KeywordAnyOf:J,KeywordOneOf:re,KeywordNot:me,KeywordIf:le,KeywordThen:ve,KeywordElse:be,KeywordDependentSchemas:ce,KeywordPrefixItems:_e,KeywordItems:Ae,KeywordContains:xe,KeywordProperties:Oe,KeywordPatternProperties:je,KeywordAdditionalProperties:G,KeywordPropertyNames:de,KeywordUnevaluatedItems:Ne,KeywordUnevaluatedProperties:Ye,KeywordType:ht,KeywordEnum:Ct,KeywordConst:_t,KeywordConstraint:qt,KeywordDependentRequired:It,KeywordContentSchema:Ot,KeywordTitle:et,KeywordDescription:Dt,KeywordDefault:or,KeywordDeprecated:Ut,KeywordReadOnly:pr,KeywordWriteOnly:W,KeywordExamples:$e,ExtensionKeywords:Je,JSONViewer:Ft,Accordion:it,ExpandDeepButton:bt,ChevronRightIcon:ut,...r.components},config:{showExtensionKeywords:o.showExtensions,...r.config},fn:{...r.fn}})},vk=({getSystem:t,fn:e})=>{const r=()=>({upperFirst:e.upperFirst,...e.jsonSchema202012});return{components:{JSONSchema202012:yO,JSONSchema202012Keyword$schema:vO,JSONSchema202012Keyword$vocabulary:bO,JSONSchema202012Keyword$id:wO,JSONSchema202012Keyword$anchor:EO,JSONSchema202012Keyword$dynamicAnchor:SO,JSONSchema202012Keyword$ref:xO,JSONSchema202012Keyword$dynamicRef:_O,JSONSchema202012Keyword$defs:OO,JSONSchema202012Keyword$comment:kO,JSONSchema202012KeywordAllOf:AO,JSONSchema202012KeywordAnyOf:CO,JSONSchema202012KeywordOneOf:jO,JSONSchema202012KeywordNot:PO,JSONSchema202012KeywordIf:NO,JSONSchema202012KeywordThen:TO,JSONSchema202012KeywordElse:IO,JSONSchema202012KeywordDependentSchemas:MO,JSONSchema202012KeywordPrefixItems:RO,JSONSchema202012KeywordItems:DO,JSONSchema202012KeywordContains:FO,JSONSchema202012KeywordProperties:LO,JSONSchema202012KeywordPatternProperties:$O,JSONSchema202012KeywordAdditionalProperties:BO,JSONSchema202012KeywordPropertyNames:qO,JSONSchema202012KeywordUnevaluatedItems:UO,JSONSchema202012KeywordUnevaluatedProperties:zO,JSONSchema202012KeywordType:VO,JSONSchema202012KeywordEnum:JO,JSONSchema202012KeywordConst:WO,JSONSchema202012KeywordConstraint:rk,JSONSchema202012KeywordDependentRequired:nk,JSONSchema202012KeywordContentSchema:ak,JSONSchema202012KeywordTitle:ok,JSONSchema202012KeywordDescription:ik,JSONSchema202012KeywordDefault:sk,JSONSchema202012KeywordDeprecated:lk,JSONSchema202012KeywordReadOnly:ck,JSONSchema202012KeywordWriteOnly:uk,JSONSchema202012KeywordExamples:pk,JSONSchema202012ExtensionKeywords:hk,JSONSchema202012JSONViewer:dk,JSONSchema202012Accordion:fk,JSONSchema202012ExpandDeepButton:mk,JSONSchema202012ChevronRightIcon:gk,withJSONSchema202012Context:yk,withJSONSchema202012SystemContext:eq(t()),JSONSchema202012PathContext:()=>pi,JSONSchema202012LevelContext:()=>ls},fn:{upperFirst:HO,jsonSchema202012:{getTitle:KO(r),getType:GO(r),isExpandable:QO(r),isBooleanJSONSchema:YO,hasKeyword:XO,useFn:Rn,useConfig:Tw,useComponent:Jt,useIsExpanded:Gs,usePath:Qo,useLevel:cs,getSchemaKeywords:ek,getExtensionKeywords:tk(r),hasSchemaType:QB}}}},tq=(t,{sample:e=[]}={})=>((r,n={})=>{const{minItems:a,maxItems:o,uniqueItems:p}=n,{contains:c,minContains:d,maxContains:E}=n;let x=[...r];if(c!=null&&typeof c=="object"&&Number.isInteger(d)&&d>1){const k=x.at(0);for(let P=1;P0&&(x=r.slice(0,o)),Number.isInteger(a)&&a>0)for(let k=0;x.length{throw new Error("Not implemented")},Bv=t=>Fn()(t),qv=t=>t.at(0),th=t=>typeof t=="boolean",Ys=t=>Ai()(t),Fc=t=>th(t)||Ys(t),Uv=class{data={};register(e,r){this.data[e]=r}unregister(e){e===void 0?this.data={}:delete this.data[e]}get(e){return this.data[e]}},bk=()=>0,wk=()=>0,nq=()=>.1,aq=()=>.1,oq=()=>"user@example.com",iq=()=>"실례@example.com",sq=()=>"example.com",lq=()=>"실례.com",cq=()=>"198.51.100.42",uq=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",pq=()=>"https://example.com/",hq=()=>"path/index.html",dq=()=>"https://실례.com/",fq=()=>"path/실례.html",mq=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",gq=()=>"https://example.com/dictionary/{term:1}/{term}",yq=()=>"/a/b/c",vq=()=>"1/0",bq=()=>new Date().toISOString(),wq=()=>new Date().toISOString().substring(0,10),Eq=()=>new Date().toISOString().substring(11),Sq=()=>"P3D",xq=()=>"********",_q=()=>"^[a-z]+$",zv=new class extends Uv{#e={int32:bk,int64:wk,float:nq,double:aq,email:oq,"idn-email":iq,hostname:sq,"idn-hostname":lq,ipv4:cq,ipv6:uq,uri:pq,"uri-reference":hq,iri:dq,"iri-reference":fq,uuid:mq,"uri-template":gq,"json-pointer":yq,"relative-json-pointer":vq,"date-time":bq,date:wq,time:Eq,duration:Sq,password:xq,regex:_q};data={...this.#e};get defaults(){return{...this.#e}}},Ek=(t,e)=>typeof e=="function"?zv.register(t,e):e===null?zv.unregister(t):zv.get(t);Ek.getDefaults=()=>zv.defaults;const Vv=Ek;var Oq=Be(48287).Buffer;const kq=t=>Oq.from(t).toString("ascii");var Aq=Be(48287).Buffer;const Cq=t=>Aq.from(t).toString("utf8");var jq=Be(48287).Buffer;const Pq=t=>jq.from(t).toString("binary"),Nq=t=>{let e="";for(let r=0;r=33&&n<=60||n>=62&&n<=126||n===9||n===32)e+=t.charAt(r);else if(n===13||n===10)e+=`\r +`;else if(n>126){const a=unescape(encodeURIComponent(t.charAt(r)));for(let o=0;oTq.from(t).toString("hex");var Mq=Be(48287).Buffer;const Rq=t=>{const e=Mq.from(t).toString("utf8"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let n=0,a="",o=0,p=0;for(let c=0;c=5;)a+=r.charAt(o>>>p-5&31),p-=5;p>0&&(a+=r.charAt(o<<5-p&31),n=(8-8*e.length%5)%5);for(let c=0;cDq.from(t).toString("base64");var Lq=Be(48287).Buffer;const $q=t=>Lq.from(t).toString("base64url"),Jv=new class extends Uv{#e={"7bit":kq,"8bit":Cq,binary:Pq,"quoted-printable":Nq,base16:Iq,base32:Rq,base64:Fq,base64url:$q};data={...this.#e};get defaults(){return{...this.#e}}},Sk=(t,e)=>typeof e=="function"?Jv.register(t,e):e===null?Jv.unregister(t):Jv.get(t);Sk.getDefaults=()=>Jv.defaults;const xk=Sk,Bq={"text/plain":()=>"string","text/css":()=>".selector { border: 1px solid red }","text/csv":()=>"value1,value2,value3","text/html":()=>"

    content

    ","text/calendar":()=>"BEGIN:VCALENDAR","text/javascript":()=>"console.dir('Hello world!');","text/xml":()=>'John Doe',"text/*":()=>"string"},qq={"image/*":()=>Bv(25).toString("binary")},Uq={"audio/*":()=>Bv(25).toString("binary")},zq={"video/*":()=>Bv(25).toString("binary")},Vq={"application/json":()=>'{"key":"value"}',"application/ld+json":()=>'{"name": "John Doe"}',"application/x-httpd-php":()=>"Hello World!

    '; ?>","application/rtf":()=>String.raw`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,"application/x-sh":()=>'echo "Hello World!"',"application/xhtml+xml":()=>"

    content

    ","application/*":()=>Bv(25).toString("binary")},wd=new class extends Uv{#e={...Bq,...qq,...Uq,...zq,...Vq};data={...this.#e};get defaults(){return{...this.#e}}},_k=(t,e)=>{if(typeof e=="function")return wd.register(t,e);if(e===null)return wd.unregister(t);const r=t.split(";").at(0),n=`${r.split("/").at(0)}/*`;return wd.get(t)||wd.get(r)||wd.get(n)};_k.getDefaults=()=>wd.defaults;const Ok=_k,Mw=(t,e={})=>{const{maxLength:r,minLength:n}=e;let a=t;if(Number.isInteger(r)&&r>0&&(a=a.slice(0,r)),Number.isInteger(n)&&n>0){let o=0;for(;a.length{const{contentEncoding:r,contentMediaType:n,contentSchema:a}=t,{pattern:o,format:p}=t,c=xk(r)||Cx();let d;return d=typeof o=="string"?Mw((E=>{try{const x=new RegExp("(?<=(?{const{format:x}=E,k=Vv(x);return typeof k=="function"?k(E):"string"})(t):Fc(a)&&typeof n=="string"&&e!==void 0?Array.isArray(e)||typeof e=="object"?JSON.stringify(e):Mw(String(e),t):typeof n=="string"?(E=>{const{contentMediaType:x}=E,k=Ok(x);return typeof k=="function"?k(E):"string"})(t):Mw("string",t),c(d)},kk=(t,e={})=>{const{minimum:r,maximum:n,exclusiveMinimum:a,exclusiveMaximum:o}=e,{multipleOf:p}=e,c=Number.isInteger(t)?1:Number.EPSILON;let d=typeof r=="number"?r:null,E=typeof n=="number"?n:null,x=t;if(typeof a=="number"&&(d=d!==null?Math.max(d,a+c):a+c),typeof o=="number"&&(E=E!==null?Math.min(E,o-c):o-c),x=d>E&&t||d||E||x,typeof p=="number"&&p>0){const k=x%p;x=k===0?x:x+p-k}return x},Wq=t=>{const{format:e}=t;let r;return r=typeof e=="string"?(n=>{const{format:a}=n,o=Vv(a);return typeof o=="function"?o(n):0})(t):0,kk(r,t)},Hq=t=>{const{format:e}=t;let r;return r=typeof e=="string"?(n=>{const{format:a}=n,o=Vv(a);if(typeof o=="function")return o(n);switch(a){case"int32":return bk();case"int64":return wk()}return 0})(t):0,kk(r,t)},Kq=t=>typeof t.default!="boolean"||t.default,Wv=new Proxy({array:tq,object:rq,string:Jq,number:Wq,integer:Hq,boolean:Kq,null:()=>null},{get:(t,e)=>typeof e=="string"&&Object.hasOwn(t,e)?t[e]:()=>`Unknown Type: ${e}`}),Ak=["array","object","number","integer","string","boolean","null"],zm=t=>{if(!Ys(t))return!1;const{examples:e,example:r,default:n}=t;return!!(Array.isArray(e)&&e.length>=1)||n!==void 0||r!==void 0},Rw=t=>{if(!Ys(t))return null;const{examples:e,example:r,default:n}=t;return Array.isArray(e)&&e.length>=1?e.at(0):n!==void 0?n:r!==void 0?r:void 0},Hv={array:["items","prefixItems","contains","maxContains","minContains","maxItems","minItems","uniqueItems","unevaluatedItems"],object:["properties","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","required","dependentSchemas","dependentRequired","unevaluatedProperties"],string:["pattern","format","minLength","maxLength","contentEncoding","contentMediaType","contentSchema"],integer:["minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf"]};Hv.number=Hv.integer;const Dw="string",Ck=t=>t===void 0?null:t===null?"null":Array.isArray(t)?"array":Number.isInteger(t)?"integer":typeof t,Kv=t=>{if(Array.isArray(t)&&t.length>=1){if(t.includes("array"))return"array";if(t.includes("object"))return"object";{const e=t.filter((n=>n!=="null")),r=qv(e.length>0?e:t);if(Ak.includes(r))return r}}return Ak.includes(t)?t:null},Fw=(t,e=new WeakSet)=>{if(!Ys(t)||e.has(t))return Dw;e.add(t);let{type:r,const:n}=t;if(r=Kv(r),typeof r!="string"){const a=Object.keys(Hv);e:for(let o=0;o{if(Array.isArray(t[E])){const x=t[E].map((k=>Fw(k,e)));return Kv(x)}return null},o=a("allOf"),p=a("anyOf"),c=a("oneOf"),d=t.not?Fw(t.not,e):null;(o||p||c||d)&&(r=Kv([o,p,c,d].filter(Boolean)))}if(typeof r!="string"&&zm(t)){const a=Rw(t),o=Ck(a);r=typeof o=="string"?o:r}return e.delete(t),r||Dw},jk=t=>Fw(t),Lw=t=>th(t)?(e=>e===!1?{not:{}}:{})(t):Ys(t)?t:{},Vm=(t,e,r={})=>{if(th(t)&&t===!0)return!0;if(th(t)&&t===!1)return!1;if(th(e)&&e===!0)return!0;if(th(e)&&e===!1)return!1;if(!Fc(t))return e;if(!Fc(e))return t;const n={...e,...t};if(e.type&&t.type&&Array.isArray(e.type)&&typeof e.type=="string"){const a=fn(e.type).concat(t.type);n.type=Array.from(new Set(a))}if(Array.isArray(e.required)&&Array.isArray(t.required)&&(n.required=[...new Set([...t.required,...e.required])]),e.properties&&t.properties){const a=new Set([...Object.keys(e.properties),...Object.keys(t.properties)]);n.properties={};for(const o of a){const p=e.properties[o]||{},c=t.properties[o]||{};p.readOnly&&!r.includeReadOnly||p.writeOnly&&!r.includeWriteOnly?n.required=(n.required||[]).filter((d=>d!==o)):n.properties[o]=Vm(c,p,r)}}return Fc(e.items)&&Fc(t.items)&&(n.items=Vm(t.items,e.items,r)),Fc(e.contains)&&Fc(t.contains)&&(n.contains=Vm(t.contains,e.contains,r)),Fc(e.contentSchema)&&Fc(t.contentSchema)&&(n.contentSchema=Vm(t.contentSchema,e.contentSchema,r)),n},Ed=Vm,io=(t,e={},r=void 0,n=!1)=>{if(t==null&&r===void 0)return;typeof t?.toJS=="function"&&(t=t.toJS()),t=Lw(t);let a=r!==void 0||zm(t);const o=!a&&Array.isArray(t.oneOf)&&t.oneOf.length>0,p=!a&&Array.isArray(t.anyOf)&&t.anyOf.length>0;if(!a&&(o||p)){const Oe=Lw(qv(o?t.oneOf:t.anyOf));!(t=Ed(t,Oe,e)).xml&&Oe.xml&&(t.xml=Oe.xml),zm(t)&&zm(Oe)&&(a=!0)}const c={};let{xml:d,properties:E,additionalProperties:x,items:k,contains:P}=t||{},R=jk(t),{includeReadOnly:L,includeWriteOnly:V}=e;d=d||{};let Q,{name:J,prefix:re,namespace:me}=d,le={};Object.hasOwn(t,"type")||(t.type=R),n&&(J=J||"notagname",Q=(re?`${re}:`:"")+J,me)&&(c[re?`xmlns:${re}`:"xmlns"]=me),n&&(le[Q]=[]);const ve=Nn(E);let be,ce=0;const _e=()=>Number.isInteger(t.maxProperties)&&t.maxProperties>0&&ce>=t.maxProperties,Ae=Oe=>!(Number.isInteger(t.maxProperties)&&t.maxProperties>0)||!_e()&&(!(je=>!Array.isArray(t.required)||t.required.length===0||!t.required.includes(je))(Oe)||t.maxProperties-ce-(()=>{if(!Array.isArray(t.required)||t.required.length===0)return 0;let je=0;return n?t.required.forEach((G=>je+=le[G]===void 0?0:1)):t.required.forEach((G=>{je+=le[Q]?.find((de=>de[G]!==void 0))===void 0?0:1})),t.required.length-je})()>0);if(be=n?(Oe,je=void 0)=>{if(t&&ve[Oe]){if(ve[Oe].xml=ve[Oe].xml||{},ve[Oe].xml.attribute){const de=Array.isArray(ve[Oe].enum)?qv(ve[Oe].enum):void 0;if(zm(ve[Oe]))c[ve[Oe].xml.name||Oe]=Rw(ve[Oe]);else if(de!==void 0)c[ve[Oe].xml.name||Oe]=de;else{const Ne=Lw(ve[Oe]),Ye=jk(Ne),ht=ve[Oe].xml.name||Oe;if(Ye==="array"){const Ct=io(ve[Oe],e,je,!1);c[ht]=Ct.map((_t=>Ai()(_t)?"UnknownTypeObject":Array.isArray(_t)?"UnknownTypeArray":_t)).join(" ")}else c[ht]=Ye==="object"?"UnknownTypeObject":Wv[Ye](Ne)}return}ve[Oe].xml.name=ve[Oe].xml.name||Oe}else ve[Oe]||x===!1||(ve[Oe]={xml:{name:Oe}});let G=io(ve[Oe],e,je,n);Ae(Oe)&&(ce++,Array.isArray(G)?le[Q]=le[Q].concat(G):le[Q].push(G))}:(Oe,je)=>{if(Ae(Oe)){if(Ai()(t.discriminator?.mapping)&&t.discriminator.propertyName===Oe&&typeof t.$$ref=="string"){for(const G in t.discriminator.mapping)if(t.$$ref.search(t.discriminator.mapping[G])!==-1){le[Oe]=G;break}}else le[Oe]=io(ve[Oe],e,je,n);ce++}},a){let Oe;if(Oe=r!==void 0?r:Rw(t),!n){if(typeof Oe=="number"&&R==="string")return`${Oe}`;if(typeof Oe!="string"||R==="string")return Oe;try{return JSON.parse(Oe)}catch{return Oe}}if(R==="array"){if(!Array.isArray(Oe)){if(typeof Oe=="string")return Oe;Oe=[Oe]}let je=[];return Ys(k)&&(k.xml=k.xml||d||{},k.xml.name=k.xml.name||d.name,je=Oe.map((G=>io(k,e,G,n)))),Ys(P)&&(P.xml=P.xml||d||{},P.xml.name=P.xml.name||d.name,je=[io(P,e,void 0,n),...je]),je=Wv.array(t,{sample:je}),d.wrapped?(le[Q]=je,Ci()(c)||le[Q].push({_attr:c})):le=je,le}if(R==="object"){if(typeof Oe=="string")return Oe;for(const je in Oe)Object.hasOwn(Oe,je)&&(ve[je]?.readOnly&&!L||ve[je]?.writeOnly&&!V||(ve[je]?.xml?.attribute?c[ve[je].xml.name||je]=Oe[je]:be(je,Oe[je])));return Ci()(c)||le[Q].push({_attr:c}),le}return le[Q]=Ci()(c)?Oe:[{_attr:c},Oe],le}if(R==="array"){let Oe=[];if(Ys(P))if(n&&(P.xml=P.xml||t.xml||{},P.xml.name=P.xml.name||d.name),Array.isArray(P.anyOf)){const{anyOf:je,...G}=k;Oe.push(...P.anyOf.map((de=>io(Ed(de,G,e),e,void 0,n))))}else if(Array.isArray(P.oneOf)){const{oneOf:je,...G}=k;Oe.push(...P.oneOf.map((de=>io(Ed(de,G,e),e,void 0,n))))}else{if(!(!n||n&&d.wrapped))return io(P,e,void 0,n);Oe.push(io(P,e,void 0,n))}if(Ys(k))if(n&&(k.xml=k.xml||t.xml||{},k.xml.name=k.xml.name||d.name),Array.isArray(k.anyOf)){const{anyOf:je,...G}=k;Oe.push(...k.anyOf.map((de=>io(Ed(de,G,e),e,void 0,n))))}else if(Array.isArray(k.oneOf)){const{oneOf:je,...G}=k;Oe.push(...k.oneOf.map((de=>io(Ed(de,G,e),e,void 0,n))))}else{if(!(!n||n&&d.wrapped))return io(k,e,void 0,n);Oe.push(io(k,e,void 0,n))}return Oe=Wv.array(t,{sample:Oe}),n&&d.wrapped?(le[Q]=Oe,Ci()(c)||le[Q].push({_attr:c}),le):Oe}if(R==="object"){for(let Oe in ve)Object.hasOwn(ve,Oe)&&(ve[Oe]?.deprecated||ve[Oe]?.readOnly&&!L||ve[Oe]?.writeOnly&&!V||be(Oe));if(n&&c&&le[Q].push({_attr:c}),_e())return le;if(th(x)&&x)n?le[Q].push({additionalProp:"Anything can be here"}):le.additionalProp1={},ce++;else if(Ys(x)){const Oe=x,je=io(Oe,e,void 0,n);if(n&&typeof Oe?.xml?.name=="string"&&Oe?.xml?.name!=="notagname")le[Q].push(je);else{const G=Oe?.["x-additionalPropertiesName"]||"additionalProp",de=Number.isInteger(t.minProperties)&&t.minProperties>0&&ce{const n=io(t,e,r,!0);if(n)return typeof n=="string"?n:xp()(n,{declaration:!0,indent:" "})},Nk=(t,e,r)=>io(t,e,r,!1),Tk=(t,e,r)=>[t,JSON.stringify(e),JSON.stringify(r)],Gq=gu(Pk,Tk),Yq=gu(Nk,Tk),Ik=new class extends Uv{#e={};data={...this.#e};get defaults(){return{...this.#e}}},Xq=(t,e)=>(e!==void 0&&Ik.register(t,e),Ik.get(t)),Qq=[{when:/json/,shouldStringifyTypes:["string"]}],Zq=["object"],eU=t=>(e,r,n,a)=>{const{fn:o}=t(),p=o.jsonSchema202012.memoizedSampleFromSchema(e,r,a),c=typeof p,d=Qq.reduce(((E,x)=>x.when.test(n)?[...E,...x.shouldStringifyTypes]:E),Zq);return Wr()(d,(E=>E===c))?JSON.stringify(p,null,2):p},tU=t=>(e,r,n,a)=>{const{fn:o}=t(),p=o.jsonSchema202012.getJsonSampleSchema(e,r,n,a);let c;try{c=Pe.dump(Pe.load(p),{lineWidth:-1},{schema:Rt}),c[c.length-1]===` +`&&(c=c.slice(0,c.length-1))}catch(d){return console.error(d),"error: could not generate yaml example"}return c.replace(/\t/g," ")},rU=t=>(e,r,n)=>{const{fn:a}=t();if(e&&!e.xml&&(e.xml={}),e&&!e.xml.name){if(!e.$$ref&&(e.type||e.items||e.properties||e.additionalProperties))return` +`;if(e.$$ref){let o=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=o[1]}}return a.jsonSchema202012.memoizedCreateXMLExample(e,r,n)},nU=t=>(e,r="",n={},a=void 0)=>{const{fn:o}=t();return typeof e?.toJS=="function"&&(e=e.toJS()),typeof a?.toJS=="function"&&(a=a.toJS()),/xml/.test(r)?o.jsonSchema202012.getXmlSampleSchema(e,n,a):/(yaml|yml)/.test(r)?o.jsonSchema202012.getYamlSampleSchema(e,n,r,a):o.jsonSchema202012.getJsonSampleSchema(e,n,r,a)},Mk=({getSystem:t})=>{const e=eU(t),r=tU(t),n=rU(t),a=nU(t);return{fn:{jsonSchema202012:{sampleFromSchema:Nk,sampleFromSchemaGeneric:io,sampleOptionAPI:Xq,sampleEncoderAPI:xk,sampleFormatAPI:Vv,sampleMediaTypeAPI:Ok,createXMLExample:Pk,memoizedSampleFromSchema:Yq,memoizedCreateXMLExample:Gq,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:a,mergeJsonSchema:Ed,foldType:Kv}}}};function Rk(){return[nO,Aw,vk,Mk,fB,WB]}const aU=t=>()=>({fn:t.fn,components:t.components}),oU=t=>{const e=ct()({layout:{layout:t.layout,filter:t.filter},spec:{spec:"",url:t.url},requestSnippets:t.requestSnippets},t.initialState);if(t.initialState)for(const[r,n]of Object.entries(t.initialState))n===void 0&&delete e[r];return{system:{configs:t.configs},plugins:t.presets,state:e}},iU=()=>t=>{const e=t.queryConfigEnabled?(()=>{const r=new URLSearchParams(Qe.location.search);return Object.fromEntries(r)})():{};return Object.entries(e).reduce(((r,[n,a])=>(n==="config"?r.configUrl=a:n==="urls.primaryName"?r[n]=a:r=pn()(r,n,a),r)),{})},sU=({url:t,system:e})=>async r=>{if(!t)return{};if(typeof e.configsActions?.getConfigByUrl!="function")return{};const n=(()=>{const a={};return a.promise=new Promise(((o,p)=>{a.resolve=o,a.reject=p})),a})();return e.configsActions.getConfigByUrl({url:t,loadRemoteConfig:!0,requestInterceptor:r.requestInterceptor,responseInterceptor:r.responseInterceptor},(a=>{n.resolve(a)})),n.promise},lU=()=>()=>{const t={};return globalThis.location&&(t.oauth2RedirectUrl=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname.substring(0,globalThis.location.pathname.lastIndexOf("/"))}/oauth2-redirect.html`),t},Xn=Object.freeze({dom_id:null,domNode:null,spec:{},url:"",urls:null,configUrl:null,layout:"BaseLayout",docExpansion:"list",maxDisplayedTags:-1,filter:!1,validatorUrl:"https://validator.swagger.io/validator",oauth2RedirectUrl:void 0,persistAuthorization:!1,configs:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:t=>(t.curlOptions=[],t),responseInterceptor:t=>t,showMutatedRequest:!0,defaultModelRendering:"example",defaultModelExpandDepth:1,defaultModelsExpandDepth:1,showExtensions:!1,showCommonExtensions:!1,withCredentials:!1,requestSnippetsEnabled:!1,requestSnippets:{generators:{curl_bash:{title:"cURL (bash)",syntax:"bash"},curl_powershell:{title:"cURL (PowerShell)",syntax:"powershell"},curl_cmd:{title:"cURL (CMD)",syntax:"bash"}},defaultExpanded:!0,languages:null},supportedSubmitMethods:["get","put","post","delete","options","head","patch","trace"],queryConfigEnabled:!1,presets:[Rk],plugins:[],initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"},operationsSorter:null,tagsSorter:null,onComplete:null,modelPropertyMacro:null,parameterMacro:null,fileUploadMediaTypes:["application/octet-stream","image/","audio/","video/"],uncaughtExceptionHandler:null});var cU=Be(61448),uU=Be.n(cU),pU=Be(77731),hU=Be.n(pU);const Gv=(t,e=[])=>Array.isArray(t)?t:e,us=(t,e=!1)=>t===!0||t==="true"||t===1||t==="1"||t!==!1&&t!=="false"&&t!==0&&t!=="0"&&e,dU=t=>t===null||t==="null"?null:t,fU=t=>{const e=String(t);return us(t,e)},Dk=(t,e)=>typeof t=="function"?t:e,mU=t=>Array.isArray(t)?t:null,Yv=t=>typeof t=="function"?t:null,$w=t=>t===null||t==="null"?null:String(t),Bw=(t,e=-1)=>{const r=parseInt(t,10);return Number.isNaN(r)?e:r},Sd=(t,e={})=>Ai()(t)?t:e,Fk=t=>typeof t=="function"||typeof t=="string"?t:null,xd=t=>String(t),gU=(t,e)=>Ai()(t)?t:t===!1||t==="false"||t===0||t==="0"?{activated:!1}:e,yU=t=>t===void 0||t==="undefined"?void 0:String(t),Lk={components:{typeCaster:Sd},configs:{typeCaster:Sd},configUrl:{typeCaster:$w},deepLinking:{typeCaster:us,defaultValue:Xn.deepLinking},defaultModelExpandDepth:{typeCaster:Bw,defaultValue:Xn.defaultModelExpandDepth},defaultModelRendering:{typeCaster:xd},defaultModelsExpandDepth:{typeCaster:Bw,defaultValue:Xn.defaultModelsExpandDepth},displayOperationId:{typeCaster:us,defaultValue:Xn.displayOperationId},displayRequestDuration:{typeCaster:us,defaultValue:Xn.displayRequestDuration},docExpansion:{typeCaster:xd},dom_id:{typeCaster:$w},domNode:{typeCaster:dU},fileUploadMediaTypes:{typeCaster:Gv,defaultValue:Xn.fileUploadMediaTypes},filter:{typeCaster:fU},fn:{typeCaster:Sd},initialState:{typeCaster:Sd},layout:{typeCaster:xd},maxDisplayedTags:{typeCaster:Bw,defaultValue:Xn.maxDisplayedTags},modelPropertyMacro:{typeCaster:Yv},oauth2RedirectUrl:{typeCaster:yU},onComplete:{typeCaster:Yv},operationsSorter:{typeCaster:Fk},paramaterMacro:{typeCaster:Yv},persistAuthorization:{typeCaster:us,defaultValue:Xn.persistAuthorization},plugins:{typeCaster:Gv,defaultValue:Xn.plugins},presets:{typeCaster:Gv,defaultValue:Xn.presets},requestInterceptor:{typeCaster:Dk,defaultValue:Xn.requestInterceptor},requestSnippets:{typeCaster:Sd,defaultValue:Xn.requestSnippets},requestSnippetsEnabled:{typeCaster:us,defaultValue:Xn.requestSnippetsEnabled},responseInterceptor:{typeCaster:Dk,defaultValue:Xn.responseInterceptor},showCommonExtensions:{typeCaster:us,defaultValue:Xn.showCommonExtensions},showExtensions:{typeCaster:us,defaultValue:Xn.showExtensions},showMutatedRequest:{typeCaster:us,defaultValue:Xn.showMutatedRequest},spec:{typeCaster:Sd,defaultValue:Xn.spec},supportedSubmitMethods:{typeCaster:Gv,defaultValue:Xn.supportedSubmitMethods},syntaxHighlight:{typeCaster:gU,defaultValue:Xn.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:us,defaultValue:Xn.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:xd},tagsSorter:{typeCaster:Fk},tryItOutEnabled:{typeCaster:us,defaultValue:Xn.tryItOutEnabled},url:{typeCaster:xd},urls:{typeCaster:mU},"urls.primaryName":{typeCaster:xd},validatorUrl:{typeCaster:$w},withCredentials:{typeCaster:us,defaultValue:Xn.withCredentials},uncaughtExceptionHandler:{typeCaster:Yv}},$k=t=>Object.entries(Lk).reduce(((e,[r,{typeCaster:n,defaultValue:a}])=>{if(uU()(e,r)){const o=n(Cn()(e,r),a);e=hU()(r,o,e)}return e}),{...t}),vU=(t,...e)=>{let r=Symbol.for("domNode"),n=Symbol.for("primaryName");const a=[];for(const p of e){const c={...p};Object.hasOwn(c,"domNode")&&(r=c.domNode,delete c.domNode),Object.hasOwn(c,"urls.primaryName")?(n=c["urls.primaryName"],delete c["urls.primaryName"]):Array.isArray(c.urls)&&Object.hasOwn(c.urls,"primaryName")&&(n=c.urls.primaryName,delete c.urls.primaryName),a.push(c)}const o=ct()(t,...a);return r!==Symbol.for("domNode")&&(o.domNode=r),n!==Symbol.for("primaryName")&&Array.isArray(o.urls)&&(o.urls.primaryName=n),$k(o)};function Vu(t){const e=iU()(t),r=lU()(),n=Vu.config.merge({},Vu.config.defaults,r,t,e),a=oU(n),o=aU(n),p=new Xl(a);p.register([n.plugins,o]);const c=p.getSystem(),d=k=>{p.setConfigs(k),c.configsActions.loaded()},E=k=>{!e.url&&typeof k.spec=="object"&&Object.keys(k.spec).length>0?(c.specActions.updateUrl(""),c.specActions.updateLoadingStatus("success"),c.specActions.updateSpec(JSON.stringify(k.spec))):typeof c.specActions.download=="function"&&k.url&&!k.urls&&(c.specActions.updateUrl(k.url),c.specActions.download(k.url))},x=k=>{if(k.domNode)c.render(k.domNode,"App");else if(k.dom_id){const P=document.querySelector(k.dom_id);c.render(P,"App")}else k.dom_id===null||k.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified")};return n.configUrl?((async()=>{const{configUrl:k}=n,P=await sU({url:k,system:c})(n),R=Vu.config.merge({},n,P,e);d(R),P!==null&&E(R),x(R)})(),c):(d(n),E(n),x(n),c)}Vu.System=Xl,Vu.config={defaults:Xn,merge:vU,typeCast:$k,typeCastMappings:Lk},Vu.presets={base:nO,apis:Rk},Vu.plugins={Accessibility:Zl,Auth:Ss,Configs:Nd,DeepLining:up,Err:sh,Filter:Id,Icons:pp,JSONSchema5:Yd,JSONSchema5Samples:Ah,JSONSchema202012:vk,JSONSchema202012Samples:Mk,Layout:Fd,Logs:uh,OpenAPI30:Aw,OpenAPI31:Aw,OnComplete:Ld,RequestSnippets:Ol,Spec:ey,SwaggerClient:fx,Util:mx,View:Nx,ViewLegacy:Tx,DownloadUrl:Ix,SyntaxHighlighting:Hx,Versions:Kx,SafeRender:Xx};const bU=Vu})(),Qw.exports=Cd.default})()),Qw.exports}var qU=BU();const UU=$U(qU),zU={class:"openapi-head"},VU={style:{margin:"0","font-size":"19px"}},JU={class:"hint",style:{margin:"0"}},WU={key:0,class:"card empty",style:{"margin-top":"14px"}},HU={style:{"font-weight":"600",color:"var(--c-text)"}},KU={class:"hint",style:{"max-width":"460px",margin:"0 auto"}},Zw="swagger-ui-container",GU=jU({__name:"OpenApiView",setup(eE){const{t:hs}=PU(),Be=rA("loading"),Cd=rA(!1),w=nA(()=>Cd.value?hs("openapi.sourceEmbedded"):Xw()||"/docs/openapi.yaml");NU(()=>{try{let s;oA?(Cd.value=!0,s=URL.createObjectURL(new Blob([oA],{type:"application/yaml"}))):s=Xw()||"/docs/openapi.yaml",UU({dom_id:`#${Zw}`,url:s,deepLinking:!0,docExpansion:"list",tryItOutEnabled:!0,onComplete:()=>Be.value="ok",onFailure:()=>Be.value="error"}),setTimeout(()=>{if(Be.value==="loading"){const h=document.querySelector(`#${Zw} .opblock`);Be.value=h?"ok":"error"}},6e3)}catch{Be.value="error"}});const N=nA(()=>Be.value==="ok"?hs("openapi.statusOk"):Be.value==="error"?hs("openapi.statusError"):hs("openapi.statusLoading"));return(s,h)=>(aA(),TU(LU,null,{default:IU(()=>[Lc("div",zU,[Lc("h2",VU,Km(Gm(hs)("openapi.title")),1),Lc("span",{class:MU(["badge",Be.value==="ok"?"badge-success":Be.value==="error"?"badge-danger":"badge-muted"])},Km(N.value),3),Lc("span",JU,Km(Gm(hs)("openapi.source",{source:w.value})),1)]),Be.value==="error"?(aA(),RU("div",WU,[h[0]||(h[0]=Lc("div",{class:"empty-icon"},"🧾",-1)),Lc("p",HU,Km(Gm(hs)("openapi.notAvailable")),1),Lc("p",KU,Km(Gm(hs)("openapi.notAvailableHint",{url:Gm(Xw)()||"/docs/openapi.yaml"})),1)])):DU("",!0),Lc("div",{class:"card openapi-wrap",style:{padding:"0",overflow:"hidden"}},[Lc("div",{id:Zw})])]),_:1}))}}),oH=FU(GU,[["__scopeId","data-v-0a44808c"]]);export{oH as default}; diff --git a/server/web/dist/assets/PageShell-Bv1Rpp4p.js b/server/web/dist/assets/PageShell-Bv1Rpp4p.js new file mode 100644 index 0000000..e3a2620 --- /dev/null +++ b/server/web/dist/assets/PageShell-Bv1Rpp4p.js @@ -0,0 +1 @@ +import{d as h,u as g,a as k,c as n,G as i,b as t,Q as y,e as v,f as e,t as a,g as c,q as r,A as d,F as x,h as B,O as C,o as l,_ as b}from"./index-DSPQyv0Z.js";import{_ as w}from"./SiteNav.vue_vue_type_script_setup_true_lang-DSt3Q6Wq.js";const N={class:"site-footer"},S={class:"footer-left"},F={key:0,class:"footer-text"},P={key:1,class:"footer-beian"},T={key:2},V=["aria-label"],$=h({__name:"PageShell",setup(D){const{t:s}=g(),o=k(),m=new Date().getFullYear(),u=B(()=>!!(o.footerText.trim()||o.footerBeian.trim()));return(p,_)=>{const f=C("RouterLink");return l(),n(x,null,[i(w),t("main",{class:v(["page",{"page-wide":p.$route.meta.wide}])},[y(p.$slots,"default",{},void 0,!0)],2),t("footer",N,[t("div",S,[e(o).footerText.trim()?(l(),n("span",F,a(e(o).footerText),1)):c("",!0),e(o).footerBeian.trim()?(l(),n("span",P,a(e(o).footerBeian),1)):c("",!0),u.value?c("",!0):(l(),n("span",T,a(e(s)("footer.copyright",{year:e(m),name:e(o).displayName})),1))]),_[0]||(_[0]=t("span",{class:"footer-powered"},[r(" Powered by "),t("a",{href:"https://skymirror.top",target:"_blank",rel:"noopener noreferrer"},"SKYMirror"),r(" 26.9 ")],-1)),t("nav",{"aria-label":e(s)("footer.linkNav")},[i(f,{to:"/docs"},{default:d(()=>[r(a(e(s)("footer.docs")),1)]),_:1}),i(f,{to:"/openapi"},{default:d(()=>[r(a(e(s)("footer.openapi")),1)]),_:1}),i(f,{to:"/admin/files"},{default:d(()=>[r(a(e(s)("footer.admin")),1)]),_:1})],8,V)])],64)}}}),R=b($,[["__scopeId","data-v-80685d6f"]]);export{R as P}; diff --git a/server/web/dist/assets/PageShell-D1DY7qw8.js b/server/web/dist/assets/PageShell-D1DY7qw8.js new file mode 100644 index 0000000..d42b5ed --- /dev/null +++ b/server/web/dist/assets/PageShell-D1DY7qw8.js @@ -0,0 +1 @@ +import{d as h,u as g,a as k,c as n,G as i,b as t,Q as y,e as v,f as e,t as a,g as c,q as r,A as d,F as x,h as B,O as C,o as l,_ as b}from"./index-QLbKGtH7.js";import{_ as w}from"./SiteNav.vue_vue_type_script_setup_true_lang-8XmHL8P7.js";const N={class:"site-footer"},S={class:"footer-left"},F={key:0,class:"footer-text"},P={key:1,class:"footer-beian"},T={key:2},V=["aria-label"],$=h({__name:"PageShell",setup(D){const{t:s}=g(),o=k(),m=new Date().getFullYear(),u=B(()=>!!(o.footerText.trim()||o.footerBeian.trim()));return(p,_)=>{const f=C("RouterLink");return l(),n(x,null,[i(w),t("main",{class:v(["page",{"page-wide":p.$route.meta.wide}])},[y(p.$slots,"default",{},void 0,!0)],2),t("footer",N,[t("div",S,[e(o).footerText.trim()?(l(),n("span",F,a(e(o).footerText),1)):c("",!0),e(o).footerBeian.trim()?(l(),n("span",P,a(e(o).footerBeian),1)):c("",!0),u.value?c("",!0):(l(),n("span",T,a(e(s)("footer.copyright",{year:e(m),name:e(o).displayName})),1))]),_[0]||(_[0]=t("span",{class:"footer-powered"},[r(" Powered by "),t("a",{href:"https://skymirror.top",target:"_blank",rel:"noopener noreferrer"},"SKYMirror"),r(" 26.9 ")],-1)),t("nav",{"aria-label":e(s)("footer.linkNav")},[i(f,{to:"/docs"},{default:d(()=>[r(a(e(s)("footer.docs")),1)]),_:1}),i(f,{to:"/openapi"},{default:d(()=>[r(a(e(s)("footer.openapi")),1)]),_:1}),i(f,{to:"/admin/files"},{default:d(()=>[r(a(e(s)("footer.admin")),1)]),_:1})],8,V)])],64)}}}),R=b($,[["__scopeId","data-v-80685d6f"]]);export{R as P}; diff --git a/server/web/dist/assets/PageShell-D3dyUalL.js b/server/web/dist/assets/PageShell-D3dyUalL.js new file mode 100644 index 0000000..f52e1fa --- /dev/null +++ b/server/web/dist/assets/PageShell-D3dyUalL.js @@ -0,0 +1 @@ +import{d as h,u as g,a as k,c as n,G as i,b as t,Q as y,e as v,f as e,t as a,g as c,q as r,A as d,F as x,h as B,O as C,o as l,_ as b}from"./index-D7AAbqvI.js";import{_ as w}from"./SiteNav.vue_vue_type_script_setup_true_lang-B5OHbKDQ.js";const N={class:"site-footer"},S={class:"footer-left"},F={key:0,class:"footer-text"},P={key:1,class:"footer-beian"},T={key:2},V=["aria-label"],$=h({__name:"PageShell",setup(D){const{t:s}=g(),o=k(),m=new Date().getFullYear(),u=B(()=>!!(o.footerText.trim()||o.footerBeian.trim()));return(p,_)=>{const f=C("RouterLink");return l(),n(x,null,[i(w),t("main",{class:v(["page",{"page-wide":p.$route.meta.wide}])},[y(p.$slots,"default",{},void 0,!0)],2),t("footer",N,[t("div",S,[e(o).footerText.trim()?(l(),n("span",F,a(e(o).footerText),1)):c("",!0),e(o).footerBeian.trim()?(l(),n("span",P,a(e(o).footerBeian),1)):c("",!0),u.value?c("",!0):(l(),n("span",T,a(e(s)("footer.copyright",{year:e(m),name:e(o).displayName})),1))]),_[0]||(_[0]=t("span",{class:"footer-powered"},[r(" Powered by "),t("a",{href:"https://skymirror.top",target:"_blank",rel:"noopener noreferrer"},"SKYMirror"),r(" 26.9 ")],-1)),t("nav",{"aria-label":e(s)("footer.linkNav")},[i(f,{to:"/docs"},{default:d(()=>[r(a(e(s)("footer.docs")),1)]),_:1}),i(f,{to:"/openapi"},{default:d(()=>[r(a(e(s)("footer.openapi")),1)]),_:1}),i(f,{to:"/admin/files"},{default:d(()=>[r(a(e(s)("footer.admin")),1)]),_:1})],8,V)])],64)}}}),R=b($,[["__scopeId","data-v-80685d6f"]]);export{R as P}; diff --git a/server/web/dist/assets/Pager.vue_vue_type_script_setup_true_lang-C7hYXz3z.js b/server/web/dist/assets/Pager.vue_vue_type_script_setup_true_lang-C7hYXz3z.js new file mode 100644 index 0000000..3f40bbc --- /dev/null +++ b/server/web/dist/assets/Pager.vue_vue_type_script_setup_true_lang-C7hYXz3z.js @@ -0,0 +1 @@ +import{d as b,u as p,c as r,b as o,t as i,f as c,h,o as f}from"./index-DSPQyv0Z.js";const v={class:"pager"},x={class:"pager-info"},k=["disabled"],M=["disabled"],y=b({__name:"Pager",props:{page:{},size:{},total:{}},emits:["change"],setup(t,{emit:m}){const a=t,d=m,{t:n}=p(),s=h(()=>Math.max(1,Math.ceil(a.total/a.size)));function g(l){const e=Math.min(Math.max(1,l),s.value);e!==a.page&&d("change",e,a.size)}return(l,e)=>(f(),r("div",v,[o("span",x,i(c(n)("common.pagerInfo",{total:t.total,page:t.page,pages:s.value})),1),o("button",{class:"btn btn-ghost btn-sm",type:"button",disabled:t.page<=1,onClick:e[0]||(e[0]=u=>g(t.page-1))},i(c(n)("common.previousPage")),9,k),o("button",{class:"btn btn-ghost btn-sm",type:"button",disabled:t.page>=s.value,onClick:e[1]||(e[1]=u=>g(t.page+1))},i(c(n)("common.nextPage")),9,M)]))}});export{y as _}; diff --git a/server/web/dist/assets/Pager.vue_vue_type_script_setup_true_lang-g_dGRh7Y.js b/server/web/dist/assets/Pager.vue_vue_type_script_setup_true_lang-g_dGRh7Y.js new file mode 100644 index 0000000..889620a --- /dev/null +++ b/server/web/dist/assets/Pager.vue_vue_type_script_setup_true_lang-g_dGRh7Y.js @@ -0,0 +1 @@ +import{d as b,u as p,c as r,b as o,t as i,f as c,h,o as f}from"./index-D7AAbqvI.js";const v={class:"pager"},x={class:"pager-info"},k=["disabled"],M=["disabled"],y=b({__name:"Pager",props:{page:{},size:{},total:{}},emits:["change"],setup(t,{emit:m}){const a=t,d=m,{t:n}=p(),s=h(()=>Math.max(1,Math.ceil(a.total/a.size)));function g(l){const e=Math.min(Math.max(1,l),s.value);e!==a.page&&d("change",e,a.size)}return(l,e)=>(f(),r("div",v,[o("span",x,i(c(n)("common.pagerInfo",{total:t.total,page:t.page,pages:s.value})),1),o("button",{class:"btn btn-ghost btn-sm",type:"button",disabled:t.page<=1,onClick:e[0]||(e[0]=u=>g(t.page-1))},i(c(n)("common.previousPage")),9,k),o("button",{class:"btn btn-ghost btn-sm",type:"button",disabled:t.page>=s.value,onClick:e[1]||(e[1]=u=>g(t.page+1))},i(c(n)("common.nextPage")),9,M)]))}});export{y as _}; diff --git a/server/web/dist/assets/Pager.vue_vue_type_script_setup_true_lang-pYdn-As_.js b/server/web/dist/assets/Pager.vue_vue_type_script_setup_true_lang-pYdn-As_.js new file mode 100644 index 0000000..909421e --- /dev/null +++ b/server/web/dist/assets/Pager.vue_vue_type_script_setup_true_lang-pYdn-As_.js @@ -0,0 +1 @@ +import{d as b,u as p,c as r,b as o,t as i,f as c,h,o as f}from"./index-QLbKGtH7.js";const v={class:"pager"},x={class:"pager-info"},k=["disabled"],M=["disabled"],y=b({__name:"Pager",props:{page:{},size:{},total:{}},emits:["change"],setup(t,{emit:m}){const a=t,d=m,{t:n}=p(),s=h(()=>Math.max(1,Math.ceil(a.total/a.size)));function g(l){const e=Math.min(Math.max(1,l),s.value);e!==a.page&&d("change",e,a.size)}return(l,e)=>(f(),r("div",v,[o("span",x,i(c(n)("common.pagerInfo",{total:t.total,page:t.page,pages:s.value})),1),o("button",{class:"btn btn-ghost btn-sm",type:"button",disabled:t.page<=1,onClick:e[0]||(e[0]=u=>g(t.page-1))},i(c(n)("common.previousPage")),9,k),o("button",{class:"btn btn-ghost btn-sm",type:"button",disabled:t.page>=s.value,onClick:e[1]||(e[1]=u=>g(t.page+1))},i(c(n)("common.nextPage")),9,M)]))}});export{y as _}; diff --git a/server/web/dist/assets/PickupView-BgaFApjA.js b/server/web/dist/assets/PickupView-BgaFApjA.js new file mode 100644 index 0000000..c3b9fee --- /dev/null +++ b/server/web/dist/assets/PickupView-BgaFApjA.js @@ -0,0 +1 @@ +import{d as N,u as U,i as q,I,J as b,z as L,A as R,H as C,h as T,j as p,b as t,c as u,q as z,t as s,f as n,w as E,C as H,D as $,F as y,s as _,g as w,K as j,L as J,n as K,M as B,k as W,N as G,B as O,o as l}from"./index-DSPQyv0Z.js";import{P as Q}from"./PageShell-Bv1Rpp4p.js";import{g as X,p as Y,b as Z}from"./share-DQTp5ax3.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-DSt3Q6Wq.js";const ee={class:"card",style:{"max-width":"640px",margin:"12px auto 0"}},te={key:0,class:"loading-block"},ae={class:"empty"},oe={style:{"font-weight":"600",color:"var(--c-text)"}},ne={class:"hint"},se=["placeholder"],ie={class:"btn",type:"submit"},le={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap","margin-bottom":"4px"}},ue={class:"badge"},re={style:{"font-size":"16px","word-break":"break-all"}},ce={key:0,class:"hint",style:{margin:"0"}},pe={class:"hint",style:{"margin-bottom":"18px"}},de={key:0,class:"loading-block"},me={class:"text-view"},ve={style:{display:"flex",gap:"10px","margin-top":"14px","flex-wrap":"wrap"}},ye={class:"file-summary"},ke={style:{"font-weight":"600","word-break":"break-all"}},fe={class:"hint",style:{margin:"0"}},ge={key:0,style:{margin:"16px 0 6px"}},he={class:"progress"},xe={class:"hint"},_e=["disabled"],Be=N({__name:"PickupView",setup(we){const{t:e}=U(),D=G(),F=O(),k=q(),d=T(()=>String(D.params.code??"").trim().split(/\s+/)[0]),r=p("loading"),m=p(""),o=p(null),v=p(""),f=p(!1),c=p(null);async function g(){if(!d.value){r.value="error",m.value=e("pickup.emptyCode");return}r.value="loading",m.value="",o.value=null,v.value="";try{const a=await X(d.value);if(o.value=a,r.value="ready",a.isText){f.value=!0;try{v.value=await Y(d.value)}finally{f.value=!1}}}catch(a){r.value="error",m.value=a instanceof C?a.code===404?e("pickup.notFound"):a.code===423?e("home.rateLimited"):a.code===428?e("home.notInitialized"):a.msg:e("pickup.failedDefault")}}I(g),b(d,()=>{g()}),b(()=>e("pickup.emptyCode"),()=>{r.value==="error"&&m.value&&g()});async function A(){if(o.value){c.value=0;try{const{blob:a,filename:i}=await Z(d.value,x=>c.value=x);B(a,i||o.value.name||"download"),k.success(e("pickup.downloaded"))}catch(a){k.error(a instanceof C?a.msg:e("pickup.downloadFailed"))}finally{c.value=null}}}async function M(){await W(v.value)?k.success(e("pickup.copied")):k.error(e("common.copyFailed"))}function P(){if(!o.value)return;const a=new Blob([v.value],{type:"text/plain;charset=utf-8"}),i=o.value.name?.includes(".")?o.value.name:`${o.value.name||"text"}.txt`;B(a,i)}const h=p("");function S(){const a=h.value.trim();a&&F.push({name:"pickup",params:{code:a}})}const V=T(()=>{const a=o.value;return a?a.remainingDownloads===null||a.remainingDownloads===void 0||a.remainingDownloads<0?e("pickup.remainingUnlimited"):e("pickup.remainingCount",{n:a.remainingDownloads}):""});return(a,i)=>(l(),L(Q,null,{default:R(()=>[t("section",ee,[r.value==="loading"?(l(),u("div",te,[i[1]||(i[1]=t("span",{class:"spin","aria-hidden":"true"},null,-1)),z(" "+s(n(e)("pickup.querying",{code:d.value})),1)])):r.value==="error"?(l(),u(y,{key:1},[t("div",ae,[i[2]||(i[2]=t("div",{class:"empty-icon"},"📮",-1)),t("p",oe,s(m.value||n(e)("pickup.failed")),1),t("p",ne,s(n(e)("pickup.confirmHint")),1)]),t("form",{class:"quick-pickup",style:{"margin-top":"6px","max-width":"none"},onSubmit:E(S,["prevent"])},[H(t("input",{"onUpdate:modelValue":i[0]||(i[0]=x=>h.value=x),class:"input input-mono",placeholder:n(e)("pickup.retryPlaceholder"),maxlength:"32"},null,8,se),[[$,h.value]]),t("button",ie,s(n(e)("pickup.retryButton")),1)],32)],64)):o.value?(l(),u(y,{key:2},[t("div",le,[t("span",ue,s(o.value.isText?n(e)("common.text"):n(e)("common.file")),1),t("strong",re,s(o.value.name),1),o.value.isText?w("",!0):(l(),u("span",ce,s(n(_)(o.value.size)),1))]),t("p",pe,s(V.value)+" · "+s(n(e)("pickup.expireAt",{time:o.value.expiredAt?n(j)(o.value.expiredAt):n(e)("time.permanent")}))+" · "+s(n(J)(o.value.expiredAt)),1),o.value.isText?(l(),u(y,{key:0},[f.value?(l(),u("div",de,[i[3]||(i[3]=t("span",{class:"spin","aria-hidden":"true"},null,-1)),z(" "+s(n(e)("pickup.loadingText")),1)])):(l(),u(y,{key:1},[t("pre",me,s(v.value),1),t("div",ve,[t("button",{class:"btn",type:"button",onClick:M},s(n(e)("pickup.copyContent")),1),t("button",{class:"btn btn-ghost",type:"button",onClick:P},s(n(e)("pickup.downloadTxt")),1)])],64))],64)):(l(),u(y,{key:1},[t("div",ye,[i[4]||(i[4]=t("span",{style:{"font-size":"30px"},"aria-hidden":"true"},"📄",-1)),t("div",null,[t("div",ke,s(o.value.name),1),t("div",fe,s(n(e)("pickup.sizeUsed",{size:n(_)(o.value.size),n:o.value.usedCount})),1)])]),c.value!==null?(l(),u("div",ge,[t("div",he,[t("i",{style:K({width:`${c.value}%`})},null,4)]),t("p",xe,s(n(e)("pickup.downloading",{percent:c.value})),1)])):w("",!0),t("button",{class:"btn btn-block",type:"button",disabled:c.value!==null,onClick:A}," ⬇ "+s(n(e)("pickup.downloadFile",{size:n(_)(o.value.size)})),9,_e)],64))],64)):w("",!0)])]),_:1}))}});export{Be as default}; diff --git a/server/web/dist/assets/PickupView-CVVPsUZo.js b/server/web/dist/assets/PickupView-CVVPsUZo.js new file mode 100644 index 0000000..fe8457a --- /dev/null +++ b/server/web/dist/assets/PickupView-CVVPsUZo.js @@ -0,0 +1 @@ +import{d as N,u as U,i as q,I,J as b,z as L,A as R,H as C,h as T,j as p,b as t,c as u,q as z,t as s,f as n,w as E,C as H,D as $,F as y,s as _,g as w,K as j,L as J,n as K,M as B,k as W,N as G,B as O,o as l}from"./index-D7AAbqvI.js";import{P as Q}from"./PageShell-D3dyUalL.js";import{g as X,p as Y,b as Z}from"./share-x2wQCCnt.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-B5OHbKDQ.js";const ee={class:"card",style:{"max-width":"640px",margin:"12px auto 0"}},te={key:0,class:"loading-block"},ae={class:"empty"},oe={style:{"font-weight":"600",color:"var(--c-text)"}},ne={class:"hint"},se=["placeholder"],ie={class:"btn",type:"submit"},le={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap","margin-bottom":"4px"}},ue={class:"badge"},re={style:{"font-size":"16px","word-break":"break-all"}},ce={key:0,class:"hint",style:{margin:"0"}},pe={class:"hint",style:{"margin-bottom":"18px"}},de={key:0,class:"loading-block"},me={class:"text-view"},ve={style:{display:"flex",gap:"10px","margin-top":"14px","flex-wrap":"wrap"}},ye={class:"file-summary"},ke={style:{"font-weight":"600","word-break":"break-all"}},fe={class:"hint",style:{margin:"0"}},ge={key:0,style:{margin:"16px 0 6px"}},he={class:"progress"},xe={class:"hint"},_e=["disabled"],Be=N({__name:"PickupView",setup(we){const{t:e}=U(),D=G(),F=O(),k=q(),d=T(()=>String(D.params.code??"").trim().split(/\s+/)[0]),r=p("loading"),m=p(""),o=p(null),v=p(""),f=p(!1),c=p(null);async function g(){if(!d.value){r.value="error",m.value=e("pickup.emptyCode");return}r.value="loading",m.value="",o.value=null,v.value="";try{const a=await X(d.value);if(o.value=a,r.value="ready",a.isText){f.value=!0;try{v.value=await Y(d.value)}finally{f.value=!1}}}catch(a){r.value="error",m.value=a instanceof C?a.code===404?e("pickup.notFound"):a.code===423?e("home.rateLimited"):a.code===428?e("home.notInitialized"):a.msg:e("pickup.failedDefault")}}I(g),b(d,()=>{g()}),b(()=>e("pickup.emptyCode"),()=>{r.value==="error"&&m.value&&g()});async function A(){if(o.value){c.value=0;try{const{blob:a,filename:i}=await Z(d.value,x=>c.value=x);B(a,i||o.value.name||"download"),k.success(e("pickup.downloaded"))}catch(a){k.error(a instanceof C?a.msg:e("pickup.downloadFailed"))}finally{c.value=null}}}async function M(){await W(v.value)?k.success(e("pickup.copied")):k.error(e("common.copyFailed"))}function P(){if(!o.value)return;const a=new Blob([v.value],{type:"text/plain;charset=utf-8"}),i=o.value.name?.includes(".")?o.value.name:`${o.value.name||"text"}.txt`;B(a,i)}const h=p("");function S(){const a=h.value.trim();a&&F.push({name:"pickup",params:{code:a}})}const V=T(()=>{const a=o.value;return a?a.remainingDownloads===null||a.remainingDownloads===void 0||a.remainingDownloads<0?e("pickup.remainingUnlimited"):e("pickup.remainingCount",{n:a.remainingDownloads}):""});return(a,i)=>(l(),L(Q,null,{default:R(()=>[t("section",ee,[r.value==="loading"?(l(),u("div",te,[i[1]||(i[1]=t("span",{class:"spin","aria-hidden":"true"},null,-1)),z(" "+s(n(e)("pickup.querying",{code:d.value})),1)])):r.value==="error"?(l(),u(y,{key:1},[t("div",ae,[i[2]||(i[2]=t("div",{class:"empty-icon"},"📮",-1)),t("p",oe,s(m.value||n(e)("pickup.failed")),1),t("p",ne,s(n(e)("pickup.confirmHint")),1)]),t("form",{class:"quick-pickup",style:{"margin-top":"6px","max-width":"none"},onSubmit:E(S,["prevent"])},[H(t("input",{"onUpdate:modelValue":i[0]||(i[0]=x=>h.value=x),class:"input input-mono",placeholder:n(e)("pickup.retryPlaceholder"),maxlength:"32"},null,8,se),[[$,h.value]]),t("button",ie,s(n(e)("pickup.retryButton")),1)],32)],64)):o.value?(l(),u(y,{key:2},[t("div",le,[t("span",ue,s(o.value.isText?n(e)("common.text"):n(e)("common.file")),1),t("strong",re,s(o.value.name),1),o.value.isText?w("",!0):(l(),u("span",ce,s(n(_)(o.value.size)),1))]),t("p",pe,s(V.value)+" · "+s(n(e)("pickup.expireAt",{time:o.value.expiredAt?n(j)(o.value.expiredAt):n(e)("time.permanent")}))+" · "+s(n(J)(o.value.expiredAt)),1),o.value.isText?(l(),u(y,{key:0},[f.value?(l(),u("div",de,[i[3]||(i[3]=t("span",{class:"spin","aria-hidden":"true"},null,-1)),z(" "+s(n(e)("pickup.loadingText")),1)])):(l(),u(y,{key:1},[t("pre",me,s(v.value),1),t("div",ve,[t("button",{class:"btn",type:"button",onClick:M},s(n(e)("pickup.copyContent")),1),t("button",{class:"btn btn-ghost",type:"button",onClick:P},s(n(e)("pickup.downloadTxt")),1)])],64))],64)):(l(),u(y,{key:1},[t("div",ye,[i[4]||(i[4]=t("span",{style:{"font-size":"30px"},"aria-hidden":"true"},"📄",-1)),t("div",null,[t("div",ke,s(o.value.name),1),t("div",fe,s(n(e)("pickup.sizeUsed",{size:n(_)(o.value.size),n:o.value.usedCount})),1)])]),c.value!==null?(l(),u("div",ge,[t("div",he,[t("i",{style:K({width:`${c.value}%`})},null,4)]),t("p",xe,s(n(e)("pickup.downloading",{percent:c.value})),1)])):w("",!0),t("button",{class:"btn btn-block",type:"button",disabled:c.value!==null,onClick:A}," ⬇ "+s(n(e)("pickup.downloadFile",{size:n(_)(o.value.size)})),9,_e)],64))],64)):w("",!0)])]),_:1}))}});export{Be as default}; diff --git a/server/web/dist/assets/PickupView-DgVraLBF.js b/server/web/dist/assets/PickupView-DgVraLBF.js new file mode 100644 index 0000000..6f7983c --- /dev/null +++ b/server/web/dist/assets/PickupView-DgVraLBF.js @@ -0,0 +1 @@ +import{d as N,u as U,i as q,I,J as b,z as L,A as R,H as C,h as T,j as p,b as t,c as u,q as z,t as s,f as n,w as E,C as H,D as $,F as y,s as _,g as w,K as j,L as J,n as K,M as B,k as W,N as G,B as O,o as l}from"./index-QLbKGtH7.js";import{P as Q}from"./PageShell-D1DY7qw8.js";import{g as X,p as Y,b as Z}from"./share-Y37-qxxb.js";import"./SiteNav.vue_vue_type_script_setup_true_lang-8XmHL8P7.js";const ee={class:"card",style:{"max-width":"640px",margin:"12px auto 0"}},te={key:0,class:"loading-block"},ae={class:"empty"},oe={style:{"font-weight":"600",color:"var(--c-text)"}},ne={class:"hint"},se=["placeholder"],ie={class:"btn",type:"submit"},le={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap","margin-bottom":"4px"}},ue={class:"badge"},re={style:{"font-size":"16px","word-break":"break-all"}},ce={key:0,class:"hint",style:{margin:"0"}},pe={class:"hint",style:{"margin-bottom":"18px"}},de={key:0,class:"loading-block"},me={class:"text-view"},ve={style:{display:"flex",gap:"10px","margin-top":"14px","flex-wrap":"wrap"}},ye={class:"file-summary"},ke={style:{"font-weight":"600","word-break":"break-all"}},fe={class:"hint",style:{margin:"0"}},ge={key:0,style:{margin:"16px 0 6px"}},he={class:"progress"},xe={class:"hint"},_e=["disabled"],Be=N({__name:"PickupView",setup(we){const{t:e}=U(),D=G(),F=O(),k=q(),d=T(()=>String(D.params.code??"").trim().split(/\s+/)[0]),r=p("loading"),m=p(""),o=p(null),v=p(""),f=p(!1),c=p(null);async function g(){if(!d.value){r.value="error",m.value=e("pickup.emptyCode");return}r.value="loading",m.value="",o.value=null,v.value="";try{const a=await X(d.value);if(o.value=a,r.value="ready",a.isText){f.value=!0;try{v.value=await Y(d.value)}finally{f.value=!1}}}catch(a){r.value="error",m.value=a instanceof C?a.code===404?e("pickup.notFound"):a.code===423?e("home.rateLimited"):a.code===428?e("home.notInitialized"):a.msg:e("pickup.failedDefault")}}I(g),b(d,()=>{g()}),b(()=>e("pickup.emptyCode"),()=>{r.value==="error"&&m.value&&g()});async function A(){if(o.value){c.value=0;try{const{blob:a,filename:i}=await Z(d.value,x=>c.value=x);B(a,i||o.value.name||"download"),k.success(e("pickup.downloaded"))}catch(a){k.error(a instanceof C?a.msg:e("pickup.downloadFailed"))}finally{c.value=null}}}async function M(){await W(v.value)?k.success(e("pickup.copied")):k.error(e("common.copyFailed"))}function P(){if(!o.value)return;const a=new Blob([v.value],{type:"text/plain;charset=utf-8"}),i=o.value.name?.includes(".")?o.value.name:`${o.value.name||"text"}.txt`;B(a,i)}const h=p("");function S(){const a=h.value.trim();a&&F.push({name:"pickup",params:{code:a}})}const V=T(()=>{const a=o.value;return a?a.remainingDownloads===null||a.remainingDownloads===void 0||a.remainingDownloads<0?e("pickup.remainingUnlimited"):e("pickup.remainingCount",{n:a.remainingDownloads}):""});return(a,i)=>(l(),L(Q,null,{default:R(()=>[t("section",ee,[r.value==="loading"?(l(),u("div",te,[i[1]||(i[1]=t("span",{class:"spin","aria-hidden":"true"},null,-1)),z(" "+s(n(e)("pickup.querying",{code:d.value})),1)])):r.value==="error"?(l(),u(y,{key:1},[t("div",ae,[i[2]||(i[2]=t("div",{class:"empty-icon"},"📮",-1)),t("p",oe,s(m.value||n(e)("pickup.failed")),1),t("p",ne,s(n(e)("pickup.confirmHint")),1)]),t("form",{class:"quick-pickup",style:{"margin-top":"6px","max-width":"none"},onSubmit:E(S,["prevent"])},[H(t("input",{"onUpdate:modelValue":i[0]||(i[0]=x=>h.value=x),class:"input input-mono",placeholder:n(e)("pickup.retryPlaceholder"),maxlength:"32"},null,8,se),[[$,h.value]]),t("button",ie,s(n(e)("pickup.retryButton")),1)],32)],64)):o.value?(l(),u(y,{key:2},[t("div",le,[t("span",ue,s(o.value.isText?n(e)("common.text"):n(e)("common.file")),1),t("strong",re,s(o.value.name),1),o.value.isText?w("",!0):(l(),u("span",ce,s(n(_)(o.value.size)),1))]),t("p",pe,s(V.value)+" · "+s(n(e)("pickup.expireAt",{time:o.value.expiredAt?n(j)(o.value.expiredAt):n(e)("time.permanent")}))+" · "+s(n(J)(o.value.expiredAt)),1),o.value.isText?(l(),u(y,{key:0},[f.value?(l(),u("div",de,[i[3]||(i[3]=t("span",{class:"spin","aria-hidden":"true"},null,-1)),z(" "+s(n(e)("pickup.loadingText")),1)])):(l(),u(y,{key:1},[t("pre",me,s(v.value),1),t("div",ve,[t("button",{class:"btn",type:"button",onClick:M},s(n(e)("pickup.copyContent")),1),t("button",{class:"btn btn-ghost",type:"button",onClick:P},s(n(e)("pickup.downloadTxt")),1)])],64))],64)):(l(),u(y,{key:1},[t("div",ye,[i[4]||(i[4]=t("span",{style:{"font-size":"30px"},"aria-hidden":"true"},"📄",-1)),t("div",null,[t("div",ke,s(o.value.name),1),t("div",fe,s(n(e)("pickup.sizeUsed",{size:n(_)(o.value.size),n:o.value.usedCount})),1)])]),c.value!==null?(l(),u("div",ge,[t("div",he,[t("i",{style:K({width:`${c.value}%`})},null,4)]),t("p",xe,s(n(e)("pickup.downloading",{percent:c.value})),1)])):w("",!0),t("button",{class:"btn btn-block",type:"button",disabled:c.value!==null,onClick:A}," ⬇ "+s(n(e)("pickup.downloadFile",{size:n(_)(o.value.size)})),9,_e)],64))],64)):w("",!0)])]),_:1}))}});export{Be as default}; diff --git a/server/web/dist/assets/SettingsView-CYUiuF4c.js b/server/web/dist/assets/SettingsView-CYUiuF4c.js new file mode 100644 index 0000000..e480935 --- /dev/null +++ b/server/web/dist/assets/SettingsView-CYUiuF4c.js @@ -0,0 +1,129 @@ +import{a0 as be,h as F,a1 as Qe,a2 as Fe,a3 as We,a4 as et,a5 as Ee,a6 as tt,o as w,a7 as Ne,z as ce,c as y,F as J,b as e,a8 as Ye,a9 as st,e as nt,aa as it,G as Pe,A as ot,ab as at,ac as lt,j as B,ad as He,ae as W,J as rt,I as Ge,af as dt,P as ut,ag as ct,ah as _t,d as we,ai as mt,aj as ft,ak as Me,al as b,n as ze,am as qe,an as pt,ao as ht,ap as gt,aq as X,ar as Oe,as as Je,at as Q,au as vt,u as bt,i as wt,a as yt,t as l,f as a,q as M,w as De,C as m,D as g,g as j,Z as me,s as Ie,R as Ce,S as p,H as de,B as xt,_ as kt}from"./index-DSPQyv0Z.js";import{f as St,g as Ct,h as Le,i as Rt}from"./admin-IDpKsD_2.js";import{u as Bt}from"./auth-o4aHzrA6.js";function Vt(s={},t={defaultBordered:!0}){const d=be(Fe,null);return{inlineThemeDisabled:d?.inlineThemeDisabled,mergedRtlRef:d?.mergedRtlRef,mergedComponentPropsRef:d?.mergedComponentPropsRef,mergedBreakpointsRef:d?.mergedBreakpointsRef,mergedBorderedRef:F(()=>{const{bordered:c}=s;return c!==void 0?c:d?.mergedBorderedRef.value??t.defaultBordered??!0}),mergedClsPrefixRef:d?d.mergedClsPrefixRef:Qe("n"),namespaceRef:F(()=>d?.mergedNamespaceRef.value)}}function Ut(s,t,d){if(!t)return;const c=We(),_=be(Fe,null),h=()=>{const x=d.value;t.mount({id:x===void 0?s:x+s,head:!0,anchorMetaName:Ee,props:{bPrefix:x?`.${x}-`:void 0},ssr:c,parent:_?.styleMountTarget}),_?.preflightStyleDisabled||tt.mount({id:"n-global",head:!0,anchorMetaName:Ee,ssr:c,parent:_?.styleMountTarget})};c?h():et(h)}function z(s,t=1){let d=Pe,c=!1;return typeof s=="function"&&(c=!0,w(),d=ce,s=s()),Ne(s)?c?ce(Xe(s)):Xe(s):Array.isArray(s)?c?y(J,null,s.map(_=>z(()=>_)),-2):e(J,null,s.slice()):s==null||typeof s=="boolean"?d(Ye):d(st,null,String(s),t)}function Xe(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:it(s)}const $t=s=>typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Ne(s)?s:{default:ot(()=>[z(()=>s)])},C=s=>nt(s)||null;function K(s){return typeof s=="string"?s.endsWith("px")?Number(s.slice(0,s.length-2)):Number(s):s}function Re(s){if(s!=null)return typeof s=="number"?`${s}px`:s.endsWith("px")?s:`${s}px`}function Tt(s,t,d,c){d||at("useThemeClass","cssVarsRef is not passed");const _=be(Fe,null),h=_?.mergedThemeHashRef,x=_?.styleMountTarget,R=B(""),o=We();let k;const V=`__${s}`,T=()=>{let f=V;const U=t?t.value:void 0,N=h?.value;N&&(f+=`-${N}`),U&&(f+=`-${U}`);const{themeOverrides:E,builtinThemeOverrides:Z}=c;E&&(f+=`-${He(JSON.stringify(E))}`),Z&&(f+=`-${He(JSON.stringify(Z))}`),R.value=f,k=()=>{const te=d.value;let se="";for(const ne in te)se+=`${ne}: ${te[ne]};`;W(`.${f}`,se).mount({id:f,ssr:o,parent:x}),k=void 0}};return lt(()=>{T()}),{themeClass:R,onRender:()=>{k?.()}}}function Mt(s,t){return rt(s,d=>{d!==void 0&&(t.value=d)}),F(()=>s.value===void 0?t.value:s.value)}function zt(){const s=B(!1);return Ge(()=>{s.value=!0}),dt(s)}function ge(s,...t){if(Array.isArray(s))s.forEach(d=>ge(d,...t));else return s(...t)}function Ae(s){return s.some(t=>Ne(t)?!(t.type===Ye||t.type===J&&!Ae(t.children)):!0)?s:null}function ee(s,t){return t(s&&Ae(s())||null)}function Be(s){return!(s&&Ae(s()))}const je=ct("n-form-item");function Ft(s,{defaultSize:t="medium",mergedSize:d,mergedDisabled:c}={}){const _=be(je,null);_t(je,null);const h=F(d?()=>d(_):()=>{const{size:o}=s;if(o)return o;if(_){const{mergedSize:k}=_;if(k.value!==void 0)return k.value}return t}),x=F(c?()=>c(_):()=>{const{disabled:o}=s;return o!==void 0?o:_?_.disabled.value:!1}),R=F(()=>{const{status:o}=s;return o||_?.mergedValidationStatus.value});return ut(()=>{_&&_.restoreValidation()}),{mergedSizeRef:h,mergedDisabledRef:x,mergedStatusRef:R,nTriggerFormBlur(){_&&_.handleContentBlur()},nTriggerFormChange(){_&&_.handleContentChange()},nTriggerFormFocus(){_&&_.handleContentFocus()},nTriggerFormInput(){_&&_.handleContentInput()}}}var Ze=we({name:"BaseIconSwitchTransition",setup(s,{slots:t}){const d=zt();return()=>(w(),ce(mt,{name:"icon-switch-transition",appear:d.value},$t(t),1032,["appear"]))}});const{cubicBezierEaseInOut:Nt}=ft;function ve({originalTransform:s="",left:t=0,top:d=0,transition:c=`all .3s ${Nt} !important`}={}){return[W("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${s} scale(0.75)`,left:t,top:d,opacity:0}),W("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${s}`,left:t,top:d,opacity:1}),W("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:d,transition:c})]}var Pt=W([W("@keyframes rotator",` + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + }`),Me("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; + `,[b("transition-wrapper",` + position: absolute; + width: 100%; + height: 100%; + `,[ve()]),b("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[ve({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),b("container",` + animation: rotator 3s linear infinite both; + `,[b("icon",` + height: 1em; + width: 1em; + `)])])]);const At=["viewBox"],Et=["values","dur"],Ht=["stroke-width","cx","cy","r","stroke-dasharray","stroke-dashoffset"],Ot=["values","dur"],Dt=["values","dur"],Ve="1.6s",It={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},scale:{type:Number,default:1},radius:{type:Number,default:100}};var Lt=we({name:"BaseLoading",props:{clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},...It},setup(s){Ut("-base-loading",Pt,qe(s,"clsPrefix"))},render(){const{clsPrefix:s,radius:t,strokeWidth:d,stroke:c,scale:_}=this,h=t/_;return w(),y("div",{class:C(`${s}-base-loading`),role:"img","aria-label":"loading"},[Pe(Ze,null,{default:()=>this.show?(w(),y("div",{key:"icon",class:C(`${s}-base-loading__transition-wrapper`)},[e("div",{class:C(`${s}-base-loading__container`)},[(w(),y("svg",{class:C(`${s}-base-loading__icon`),viewBox:`0 0 ${2*h} ${2*h}`,xmlns:"http://www.w3.org/2000/svg",style:ze({color:c})},[e("g",null,[e("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${h} ${h};270 ${h} ${h}`,begin:"0s",dur:Ve,fill:"freeze",repeatCount:"indefinite"},null,8,Et),e("circle",{class:C(`${s}-base-loading__icon`),fill:"none",stroke:"currentColor","stroke-width":d,"stroke-linecap":"round",cx:h,cy:h,r:t-d/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},[e("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${h} ${h};135 ${h} ${h};450 ${h} ${h}`,begin:"0s",dur:Ve,fill:"freeze",repeatCount:"indefinite"},null,8,Ot),e("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:Ve,fill:"freeze",repeatCount:"indefinite"},null,8,Dt)],10,Ht)])],14,At))],2)],2)):(w(),y("div",{key:"placeholder",class:C(`${s}-base-loading__placeholder`)},[z(()=>this.$slots.default?.())],2))},1024)],2)}});function Xt(s){const{primaryColor:t,opacityDisabled:d,borderRadius:c,textColor3:_}=s;return{...ht,iconColor:_,textColor:"white",loadingColor:t,opacityDisabled:d,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:c,railBorderRadiusMedium:c,railBorderRadiusLarge:c,buttonBorderRadiusSmall:c,buttonBorderRadiusMedium:c,buttonBorderRadiusLarge:c,boxShadowFocus:`0 0 0 2px ${gt(t,{alpha:.2})}`}}const jt={common:pt,self:Xt};var Kt=Me("switch",` + height: var(--n-height); + min-width: var(--n-width); + vertical-align: middle; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + outline: none; + justify-content: center; + align-items: center; +`,[b("children-placeholder",` + height: var(--n-rail-height); + display: flex; + flex-direction: column; + overflow: hidden; + pointer-events: none; + visibility: hidden; + `),b("rail-placeholder",` + display: flex; + flex-wrap: none; + `),b("button-placeholder",` + width: calc(1.75 * var(--n-rail-height)); + height: var(--n-rail-height); + `),Me("base-loading",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + font-size: calc(var(--n-button-width) - 4px); + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + `,[ve({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),b("checked, unchecked",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + box-sizing: border-box; + position: absolute; + white-space: nowrap; + top: 0; + bottom: 0; + display: flex; + align-items: center; + line-height: 1; + `),b("checked",` + right: 0; + padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),b("unchecked",` + left: 0; + justify-content: flex-end; + padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),W("&:focus",[b("rail",` + box-shadow: var(--n-box-shadow-focus); + `)]),X("round",[b("rail","border-radius: calc(var(--n-rail-height) / 2);",[b("button","border-radius: calc(var(--n-button-height) / 2);")])]),Oe("disabled",[Oe("icon",[X("rubber-band",[X("pressed",[b("rail",[b("button","max-width: var(--n-button-width-pressed);")])]),b("rail",[W("&:active",[b("button","max-width: var(--n-button-width-pressed);")])]),X("active",[X("pressed",[b("rail",[b("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),b("rail",[W("&:active",[b("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),X("active",[b("rail",[b("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),b("rail",` + overflow: hidden; + height: var(--n-rail-height); + min-width: var(--n-rail-width); + border-radius: var(--n-rail-border-radius); + cursor: pointer; + position: relative; + transition: + opacity .3s var(--n-bezier), + background .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-rail-color); + `,[b("button-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + font-size: calc(var(--n-button-height) - 4px); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + justify-content: center; + align-items: center; + line-height: 1; + `,[ve()]),b("button",` + align-items: center; + top: var(--n-offset); + left: var(--n-offset); + height: var(--n-button-height); + width: var(--n-button-width-pressed); + max-width: var(--n-button-width); + border-radius: var(--n-button-border-radius); + background-color: var(--n-button-color); + box-shadow: var(--n-button-box-shadow); + box-sizing: border-box; + cursor: inherit; + content: ""; + position: absolute; + transition: + background-color .3s var(--n-bezier), + left .3s var(--n-bezier), + opacity .3s var(--n-bezier), + max-width .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `)]),X("active",[b("rail","background-color: var(--n-rail-color-active);")]),X("loading",[b("rail",` + cursor: wait; + `)]),X("disabled",[b("rail",` + cursor: not-allowed; + opacity: .5; + `)])]);const Wt=["aria-checked","tabindex","onClick","onFocus","onBlur","onKeyup","onKeydown"],Yt={...Je.props,size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]};let ue;var Gt=we({name:"Switch",props:Yt,slots:Object,setup(s){ue===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?ue=CSS.supports("width","max(1px)"):ue=!1:ue=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:d,mergedComponentPropsRef:c}=Vt(s),_=Je("Switch","-switch",Kt,jt,s,t),h=Ft(s,{mergedSize(v){if(s.size!==void 0)return s.size;if(v)return v.mergedSize.value;const D=c?.value?.Switch?.size;return D||"medium"}}),{mergedSizeRef:x,mergedDisabledRef:R}=h,o=B(s.defaultValue),k=qe(s,"value"),V=Mt(k,o),T=F(()=>V.value===s.checkedValue),f=B(!1),U=B(!1),N=F(()=>{const{railStyle:v}=s;if(v)return v({focused:U.value,checked:T.value})});function E(v){const{"onUpdate:value":D,onChange:I,onUpdateValue:$}=s,{nTriggerFormInput:Y,nTriggerFormChange:G}=h;D&&ge(D,v),$&&ge($,v),I&&ge(I,v),o.value=v,Y(),G()}function Z(){const{nTriggerFormFocus:v}=h;v()}function te(){const{nTriggerFormBlur:v}=h;v()}function se(){s.loading||R.value||(V.value!==s.checkedValue?E(s.checkedValue):E(s.uncheckedValue))}function ne(){U.value=!0,Z()}function H(){U.value=!1,te(),f.value=!1}function ye(v){s.loading||R.value||v.key===" "&&(V.value!==s.checkedValue?E(s.checkedValue):E(s.uncheckedValue),f.value=!1)}function O(v){s.loading||R.value||v.key===" "&&(v.preventDefault(),f.value=!0)}const _e=F(()=>{const{value:v}=x,{self:{opacityDisabled:D,railColor:I,railColorActive:$,buttonBoxShadow:Y,buttonColor:G,boxShadowFocus:u,loadingColor:xe,textColor:le,iconColor:ke,[Q("buttonHeight",v)]:P,[Q("buttonWidth",v)]:S,[Q("buttonWidthPressed",v)]:ie,[Q("railHeight",v)]:A,[Q("railWidth",v)]:i,[Q("railBorderRadius",v)]:n,[Q("buttonBorderRadius",v)]:r},common:{cubicBezierEaseInOut:q}}=_.value;let L,re,Se;return ue?(L=`calc((${A} - ${P}) / 2)`,re=`max(${A}, ${P})`,Se=`max(${i}, calc(${i} + ${P} - ${A}))`):(L=Re((K(A)-K(P))/2),re=Re(Math.max(K(A),K(P))),Se=K(A)>K(P)?i:Re(K(i)+K(P)-K(A))),{"--n-bezier":q,"--n-button-border-radius":r,"--n-button-box-shadow":Y,"--n-button-color":G,"--n-button-width":S,"--n-button-width-pressed":ie,"--n-button-height":P,"--n-height":re,"--n-offset":L,"--n-opacity-disabled":D,"--n-rail-border-radius":n,"--n-rail-color":I,"--n-rail-color-active":$,"--n-rail-height":A,"--n-rail-width":i,"--n-width":Se,"--n-box-shadow-focus":u,"--n-loading-color":xe,"--n-text-color":le,"--n-icon-color":ke}}),ae=d?Tt("switch",F(()=>x.value[0]),_e,s):void 0;return{handleClick:se,handleBlur:H,handleFocus:ne,handleKeyup:ye,handleKeydown:O,mergedRailStyle:N,pressed:f,mergedClsPrefix:t,mergedValue:V,checked:T,mergedDisabled:R,cssVars:d?void 0:_e,themeClass:ae?.themeClass,onRender:ae?.onRender}},render(){const{mergedClsPrefix:s,mergedDisabled:t,checked:d,mergedRailStyle:c,onRender:_,$slots:h}=this;_?.();const{checked:x,unchecked:R,icon:o,"checked-icon":k,"unchecked-icon":V}=h,T=!(Be(o)&&Be(k)&&Be(V));return w(),y("div",{role:"switch","aria-checked":d,class:C([`${s}-switch`,this.themeClass,T&&`${s}-switch--icon`,d&&`${s}-switch--active`,t&&`${s}-switch--disabled`,this.round&&`${s}-switch--round`,this.loading&&`${s}-switch--loading`,this.pressed&&`${s}-switch--pressed`,this.rubberBand&&`${s}-switch--rubber-band`]),tabindex:this.mergedDisabled?void 0:0,style:ze(this.cssVars),onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},[e("div",{class:C(`${s}-switch__rail`),"aria-hidden":"true",style:ze(c)},[z(()=>ee(x,f=>ee(R,U=>f||U?(w(),y("div",{key:4,"aria-hidden":!0,class:C(`${s}-switch__children-placeholder`)},[e("div",{class:C(`${s}-switch__rail-placeholder`)},[e("div",{class:C(`${s}-switch__button-placeholder`)},null,2),z(()=>f)],2),e("div",{class:C(`${s}-switch__rail-placeholder`)},[e("div",{class:C(`${s}-switch__button-placeholder`)},null,2),z(()=>U)],2)],2)):null))),e("div",{class:C(`${s}-switch__button`)},[z(()=>ee(o,f=>ee(k,U=>ee(V,N=>(w(),ce(Ze,null,{default:()=>this.loading?(w(),ce(Lt,vt({key:"loading",clsPrefix:s,strokeWidth:20},this.spinProps),null,16,["clsPrefix"])):this.checked&&(U||f)?(w(),y("div",{class:C(`${s}-switch__button-icon`),key:U?"checked-icon":"icon"},[z(()=>U||f)],2)):!this.checked&&(N||f)?(w(),y("div",{class:C(`${s}-switch__button-icon`),key:N?"unchecked-icon":"icon"},[z(()=>N||f)],2)):null},1024)))))),z(()=>ee(x,f=>f&&(w(),y("div",{key:"checked",class:C(`${s}-switch__checked`)},[z(()=>f)],2)))),z(()=>ee(R,f=>f&&(w(),y("div",{key:"unchecked",class:C(`${s}-switch__unchecked`)},[z(()=>f)],2))))],2)],6)],46,Wt)}});const qt={class:"toolbar"},Jt={class:"page-title"},Zt={class:"page-sub"},Qt={key:0,class:"loading-block"},es={class:"card"},ts={class:"card-title"},ss={class:"field"},ns={for:"set-site-name"},is={class:"hint"},os={class:"field"},as={for:"set-site-domain"},ls={class:"hint"},rs={class:"card"},ds={class:"card-title"},us={class:"field"},cs={for:"set-logo-url"},_s={class:"logo-input-row"},ms={class:"hint"},fs={class:"logo-preview-row"},ps={class:"logo-box"},hs=["src"],gs={style:{"font-size":"13px",color:"var(--c-text-2)"}},vs={style:{display:"inline-flex","align-items":"center",gap:"8px","font-weight":"700",color:"var(--c-text)"}},bs=["src"],ws={class:"card"},ys={class:"card-title"},xs={class:"field"},ks={for:"set-favicon-url"},Ss={class:"logo-input-row"},Cs={class:"hint"},Rs={class:"logo-preview-row"},Bs={class:"logo-box",style:{width:"44px",height:"44px"}},Vs=["src"],Us={style:{"font-size":"13px",color:"var(--c-text-2)"}},$s={class:"card"},Ts={class:"card-title"},Ms={class:"field"},zs={for:"set-bg-url"},Fs={class:"hint"},Ns={key:0,class:"logo-box",style:{width:"120px"}},Ps=["src"],As={class:"card"},Es={class:"card-title"},Hs={class:"field"},Os={for:"set-footer-text"},Ds={class:"hint"},Is={class:"field"},Ls={for:"set-footer-beian"},Xs={class:"hint"},js={class:"card"},Ks={class:"card-title"},Ws={class:"field notify-switch-row"},Ys={for:"set-notify-enabled"},Gs={class:"field"},qs={for:"set-notify-title"},Js={class:"hint"},Zs={class:"field"},Qs={for:"set-notify-content"},en={class:"hint"},tn={class:"card"},sn={class:"card-title"},nn={class:"field"},on={for:"set-max-save-time"},an={class:"unit-row"},ln=["placeholder"],rn={value:"hour"},dn={value:"day"},un={class:"hint"},cn={class:"field"},_n={for:"set-max-save-count"},mn={class:"hint"},fn={class:"card"},pn={class:"card-title"},hn={class:"field"},gn={for:"set-max-file-size"},vn={class:"unit-row"},bn=["placeholder"],wn={value:"MB"},yn={value:"GB"},xn={class:"hint"},kn={class:"field"},Sn={for:"set-allowed-types"},Cn={class:"hint"},Rn={class:"card"},Bn={class:"card-title"},Vn={class:"field"},Un={class:"field"},$n={for:"set-engine-type"},Tn={class:"unit-row"},Mn={value:"local"},zn={value:"webdav"},Fn={value:"s3"},Nn=["disabled"],Pn={key:0,class:"spin","aria-hidden":"true"},An={class:"hint"},En={class:"card-sub",style:{"margin-top":"8px"}},Hn={key:0,class:"field"},On={for:"set-local-root"},Dn={class:"hint"},In={class:"field"},Ln={for:"set-webdav-url"},Xn={class:"hint"},jn={class:"field"},Kn={for:"set-webdav-root"},Wn={class:"hint"},Yn={class:"field-row"},Gn={class:"field"},qn={for:"set-webdav-user"},Jn={class:"field"},Zn={for:"set-webdav-pass"},Qn={class:"hint"},ei={class:"field-row"},ti={class:"field"},si={for:"set-s3-endpoint"},ni={class:"hint"},ii={class:"field"},oi={for:"set-s3-bucket"},ai={class:"field-row"},li={class:"field"},ri={for:"set-s3-region"},di={class:"field"},ui={for:"set-s3-style"},ci={value:"auto"},_i={value:"path"},mi={value:"virtual"},fi={class:"field-row"},pi={class:"field"},hi={for:"set-s3-ak"},gi={class:"field"},vi={for:"set-s3-sk"},bi={class:"hint"},wi={class:"field"},yi={for:"set-s3-token"},xi={class:"hint"},ki={class:"save-row"},Si=["disabled"],Ci={key:0,class:"spin","aria-hidden":"true"},Ri={class:"card"},Bi={class:"card-title"},Vi={class:"field-row"},Ui={class:"field"},$i={for:"set-upload-count"},Ti={class:"hint"},Mi={class:"field"},zi={for:"set-upload-minute"},Fi={class:"hint"},Ni={class:"field-row",style:{"margin-top":"14px"}},Pi={class:"field"},Ai={for:"set-upload-rate"},Ei={class:"unit-row"},Hi={class:"hint"},Oi={class:"field"},Di={for:"set-download-rate"},Ii={class:"unit-row"},Li={class:"hint"},Xi={class:"save-row"},ji=["disabled"],Ki={key:0,class:"spin","aria-hidden":"true"},Wi={class:"card"},Yi={class:"card-title"},Gi={class:"card-sub"},qi={class:"field"},Ji={for:"pwd-old"},Zi={class:"field"},Qi={for:"pwd-new"},eo={class:"field"},to={for:"pwd-confirm"},so={class:"save-row"},no=["disabled"],io={key:0,class:"spin","aria-hidden":"true"},oo=365*24*60*60,Ue=1e5,ao=10*1024*1024*1024,lo=128,ro=2e3,uo=2e3,co=128,_o=2048,$e=1e4,Te=1440,fe=1024,Ke=3600,pe=86400,oe=1024*1024,he=1024*1024*1024,mo=256*1024,fo="******",po=we({__name:"SettingsView",setup(s){const{t}=bt(),d=wt(),c=yt(),_=Bt(),h=xt(),x=B(!1),R=B(!1),o=Ce({site_name:"",site_domain:"",logo_url:"",favicon_url:"",background_url:"",footer_text:"",footer_beian:"",notify_enabled:!0,notify_title:"",notify_content:"",max_save_seconds:0,max_save_count:0,max_file_size:0,allowed_file_types:"",uploadCount:0,uploadMinute:0,uploadRate:0,downloadRate:0}),k=B(0),V=B("day"),T=B(0),f=B("MB");function U(i){if(i<=0)return{value:0,unit:"day"};if(i%pe===0||i>=pe){const n=i/pe;if(Number.isInteger(n))return{value:n,unit:"day"}}return{value:Math.round(i/Ke*100)/100,unit:"hour"}}function N(i){if(i<=0)return{value:0,unit:"MB"};if(i%he===0||i>=he){const n=i/he;if(Number.isInteger(n))return{value:n,unit:"GB"}}return{value:Math.round(i/oe*100)/100,unit:"MB"}}function E(i,n){const r=n==="day"?i*pe:i*Ke;return O(r,0,oo)}function Z(i,n){const r=n==="GB"?i*he:i*oe;return O(r,0,ao)}const te=F(()=>k.value<=0),se=F(()=>T.value<=0);function ne(i,n){return i==null?n:typeof i=="boolean"?i:typeof i=="number"?i!==0:String(i)!=="0"&&String(i)!=="false"&&String(i)!==""}function H(i,n){const r=Number(i);return Number.isFinite(r)?r:n}function ye(i){return Array.isArray(i)?i.map(n=>String(n).trim()).filter(Boolean):typeof i=="string"?i.split(",").map(n=>n.trim()).filter(Boolean):[]}function O(i,n,r){return Math.min(Math.max(Math.round(i)||0,n),r)}async function _e(){x.value=!0;try{const i=await St();o.site_name=String(p(i,["site_name","name"])??""),o.site_domain=String(p(i,["site_domain","siteDomain"])??""),o.logo_url=String(p(i,["logo_url"])??""),o.favicon_url=String(p(i,["favicon_url"])??""),o.background_url=String(p(i,["background_url","backgroundUrl"])??""),o.footer_text=String(p(i,["footer_text","footerText"])??""),o.footer_beian=String(p(i,["footer_beian","footerBeian"])??""),o.notify_enabled=ne(p(i,["notify_enabled","notifyEnabled"]),!0),o.notify_title=String(p(i,["notify_title","notifyTitle"])??""),o.notify_content=String(p(i,["notify_content","notifyContent"])??""),o.max_save_seconds=H(p(i,["max_save_seconds","maxSaveSeconds"]),0),o.max_save_count=H(p(i,["max_save_count","maxSaveCount"]),0),o.max_file_size=H(p(i,["max_file_size","maxFileSize"]),0);const n=U(o.max_save_seconds);k.value=n.value,V.value=n.unit;const r=N(o.max_file_size);T.value=r.value,f.value=r.unit;const q=ye(p(i,["allowed_file_types","allowedFileTypes"]));o.allowed_file_types=q.join(","),o.uploadCount=H(p(i,["uploadCount","upload_count"]),0),o.uploadMinute=H(p(i,["uploadMinute","upload_minute"]),0),o.uploadRate=Math.round(H(p(i,["upload_rate","uploadRate"]),0)/oe),o.downloadRate=Math.round(H(p(i,["download_rate","downloadRate"]),0)/oe);const L=p(i,["_engine_hint"]),re=L?String(p(L,["storage_backend"])??""):"";I.value=re||String(p(i,["storage_engine"])??"local"),$.value=I.value,xe(i)}catch(i){d.error(i instanceof de?i.msg:t("admin.settings.loadFailed"))}finally{x.value=!1}}function ae(i){const n=document.createElement("input");n.type="file",n.accept="image/*",n.onchange=()=>{const r=n.files?.[0];if(!r)return;if(r.size>mo){d.error(t("admin.settings.imageTooLarge"));return}const q=new FileReader;q.onload=()=>{const L=String(q.result??"");i==="logo"?o.logo_url=L:o.favicon_url=L,d.success(t("admin.settings.imageLoaded"))},q.onerror=()=>d.error(t("admin.settings.imageReadFailed")),q.readAsDataURL(r)},n.click()}async function v(){R.value=!0;try{const i=o.allowed_file_types.split(",").map(n=>n.trim()).filter(Boolean);await Le({site_name:o.site_name.trim(),site_domain:o.site_domain.trim(),logo_url:o.logo_url.trim(),favicon_url:o.favicon_url.trim(),background_url:o.background_url.trim(),footer_text:o.footer_text.trim(),footer_beian:o.footer_beian.trim(),notify_enabled:o.notify_enabled?1:0,notify_title:o.notify_title.trim(),notify_content:o.notify_content.trim(),max_save_seconds:E(k.value,V.value),max_save_count:O(o.max_save_count,0,Ue),max_file_size:Z(T.value,f.value),allowed_file_types:i.length?i:["*"],uploadCount:O(o.uploadCount||0,1,$e),uploadMinute:O(o.uploadMinute||0,1,Te),upload_rate:O(Number(o.uploadRate)||0,0,fe)*oe,download_rate:O(Number(o.downloadRate)||0,0,fe)*oe}),d.success(t("admin.settings.saved")),await c.load()}catch(i){d.error(i instanceof de?i.msg:t("admin.settings.saveFailed"))}finally{R.value=!1}}function D(){o.site_name="文件快传",o.site_domain="",o.logo_url="",o.favicon_url="",o.background_url="",o.footer_text="",o.footer_beian="",o.notify_enabled=!0,o.notify_title="",o.notify_content="",o.max_save_seconds=0,o.max_save_count=0,o.max_file_size=0,o.allowed_file_types="*",o.uploadCount=10,o.uploadMinute=1,o.uploadRate=0,o.downloadRate=0,k.value=0,V.value="day",T.value=0,f.value="MB",d.info(t("admin.settings.restoreDefaultsDone"))}const I=B("local"),$=B("local"),Y=B(!1),G=B(!1),u=Ce({local_storage_path:"",webdav_url:"",webdav_root_path:"filebox_storage",webdav_username:"",webdav_password:"",s3_endpoint_url:"",s3_bucket_name:"",s3_region_name:"auto",s3_access_key_id:"",s3_secret_access_key:"",aws_session_token:"",s3_addressing_style:"auto"});function xe(i){u.local_storage_path=String(p(i,["local_storage_path","localStoragePath"])??""),u.webdav_url=String(p(i,["webdav_url","webdavUrl"])??""),u.webdav_root_path=String(p(i,["webdav_root_path","webdavRootPath"])??"filebox_storage"),u.webdav_username=String(p(i,["webdav_username","webdavUsername"])??""),u.webdav_password=String(p(i,["webdav_password","webdavPassword"])??""),u.s3_endpoint_url=String(p(i,["s3_endpoint_url","s3EndpointUrl"])??""),u.s3_bucket_name=String(p(i,["s3_bucket_name","s3BucketName"])??""),u.s3_region_name=String(p(i,["s3_region_name","s3RegionName"])??"auto"),u.s3_access_key_id=String(p(i,["s3_access_key_id","s3AccessKeyId"])??""),u.s3_secret_access_key=String(p(i,["s3_secret_access_key","s3SecretAccessKey"])??""),u.aws_session_token=String(p(i,["aws_session_token","awsSessionToken"])??""),u.s3_addressing_style=String(p(i,["s3_addressing_style","s3AddressingStyle"])??"auto")}function le(i){const n=i.trim();if(!(n===""||n===fo))return n}async function ke(){Y.value=!0;try{const i=await Ct($.value);I.value=String(i)||$.value,d.success(t("admin.settings.engineSwitchOk",{engine:i})),await c.load()}catch(i){d.error(i instanceof de?i.msg:t("admin.settings.engineSwitchFail"))}finally{Y.value=!1}}async function P(){G.value=!0;try{const i={};if($.value==="local")i.local_storage_path=u.local_storage_path.trim();else if($.value==="webdav"){i.webdav_url=u.webdav_url.trim(),i.webdav_root_path=u.webdav_root_path.trim(),i.webdav_username=u.webdav_username.trim();const n=le(u.webdav_password);n!==void 0&&(i.webdav_password=n)}else{i.s3_endpoint_url=u.s3_endpoint_url.trim(),i.s3_bucket_name=u.s3_bucket_name.trim(),i.s3_region_name=u.s3_region_name.trim()||"auto",i.s3_access_key_id=u.s3_access_key_id.trim();const n=le(u.s3_secret_access_key);n!==void 0&&(i.s3_secret_access_key=n);const r=le(u.aws_session_token);r!==void 0&&(i.aws_session_token=r),i.s3_addressing_style=u.s3_addressing_style}await Le(i),d.success(t("admin.settings.engineParamsSaved"))}catch(i){d.error(i instanceof de?i.msg:t("admin.settings.saveFailed"))}finally{G.value=!1}}const S=Ce({old:"",next:"",confirm:""}),ie=B(!1);async function A(){if(!S.old||!S.next){d.error(t("admin.settings.pwdRequired"));return}if(S.next.length<6){d.error(t("admin.settings.pwdTooShort"));return}if(S.next!==S.confirm){d.error(t("admin.settings.pwdMismatch"));return}ie.value=!0;try{await Rt(S.old,S.next),d.success(t("admin.settings.pwdChanged")),S.old=S.next=S.confirm="",await _.logout(),h.replace({name:"admin-login"})}catch(i){d.error(i instanceof de?i.code===401?t("admin.settings.pwdWrong"):i.msg:t("admin.settings.pwdChangeFailed"))}finally{ie.value=!1}}return Ge(_e),(i,n)=>(w(),y("div",null,[e("div",qt,[e("div",null,[e("h2",Jt,l(a(t)("admin.settings.title")),1),e("p",Zt,l(a(t)("admin.settings.subtitle")),1)]),e("button",{class:"btn btn-ghost",type:"button",onClick:D},l(a(t)("admin.settings.restoreDefaults")),1)]),x.value?(w(),y("div",Qt,[n[38]||(n[38]=e("span",{class:"spin","aria-hidden":"true"},null,-1)),M(" "+l(a(t)("admin.settings.loading")),1)])):(w(),y("form",{key:1,class:"settings-grid",onSubmit:De(v,["prevent"])},[e("section",es,[e("h3",ts,l(a(t)("admin.settings.sectionBasic")),1),e("div",ss,[e("label",ns,l(a(t)("admin.settings.siteName")),1),m(e("input",{id:"set-site-name","onUpdate:modelValue":n[0]||(n[0]=r=>o.site_name=r),class:"input",placeholder:"文件快传",maxlength:"64"},null,512),[[g,o.site_name]]),e("p",is,l(a(t)("admin.settings.siteNameHint")),1)]),e("div",os,[e("label",as,l(a(t)("admin.settings.siteDomain")),1),m(e("input",{id:"set-site-domain","onUpdate:modelValue":n[1]||(n[1]=r=>o.site_domain=r),class:"input",placeholder:"https://share.example.com",maxlength:"256"},null,512),[[g,o.site_domain]]),e("p",ls,l(a(t)("admin.settings.siteDomainHint")),1)])]),e("section",rs,[e("h3",ds,l(a(t)("admin.settings.sectionLogo")),1),e("div",us,[e("label",cs,l(a(t)("admin.settings.logoUrl")),1),e("div",_s,[m(e("input",{id:"set-logo-url","onUpdate:modelValue":n[2]||(n[2]=r=>o.logo_url=r),class:"input",placeholder:"https://…/logo.svg"},null,512),[[g,o.logo_url]]),e("button",{class:"btn btn-ghost",type:"button",onClick:n[3]||(n[3]=r=>ae("logo"))},l(a(t)("admin.settings.uploadImage")),1)]),e("p",ms,l(a(t)("admin.settings.logoHint")),1)]),e("div",fs,[e("div",ps,[e("img",{src:o.logo_url||a(c).displayLogoUrl,alt:"Logo preview"},null,8,hs)]),e("div",gs,[M(l(a(t)("admin.settings.navPreview"))+" ",1),e("span",vs,[e("img",{src:o.logo_url||a(c).displayLogoUrl,alt:"",style:{width:"22px",height:"22px","object-fit":"contain"}},null,8,bs),M(" "+l(o.site_name||a(c).displayName),1)])])])]),e("section",ws,[e("h3",ys,l(a(t)("admin.settings.sectionFavicon")),1),e("div",xs,[e("label",ks,l(a(t)("admin.settings.faviconUrl")),1),e("div",Ss,[m(e("input",{id:"set-favicon-url","onUpdate:modelValue":n[4]||(n[4]=r=>o.favicon_url=r),class:"input",placeholder:"https://…/favicon.png"},null,512),[[g,o.favicon_url]]),e("button",{class:"btn btn-ghost",type:"button",onClick:n[5]||(n[5]=r=>ae("favicon"))},l(a(t)("admin.settings.uploadImage")),1)]),e("p",Cs,l(a(t)("admin.settings.faviconHint")),1)]),e("div",Rs,[e("div",Bs,[e("img",{src:o.favicon_url||a(c).displayFaviconUrl,alt:"Favicon preview"},null,8,Vs)]),e("span",Us,l(a(t)("admin.settings.faviconPreviewHint")),1)])]),e("section",$s,[e("h3",Ts,l(a(t)("admin.settings.sectionBackground")),1),e("div",Ms,[e("label",zs,l(a(t)("admin.settings.backgroundUrl")),1),m(e("input",{id:"set-bg-url","onUpdate:modelValue":n[6]||(n[6]=r=>o.background_url=r),class:"input",placeholder:"https://…/bg.jpg",maxlength:_o},null,512),[[g,o.background_url]]),e("p",Fs,l(a(t)("admin.settings.backgroundHint")),1)]),o.background_url.trim()?(w(),y("div",Ns,[e("img",{src:o.background_url,alt:"Background preview",style:{width:"100%",height:"100%","object-fit":"cover"}},null,8,Ps)])):j("",!0)]),e("section",As,[e("h3",Es,l(a(t)("admin.settings.sectionFooter")),1),e("div",Hs,[e("label",Os,l(a(t)("admin.settings.footerText")),1),m(e("textarea",{id:"set-footer-text","onUpdate:modelValue":n[7]||(n[7]=r=>o.footer_text=r),class:"textarea",style:{"min-height":"72px"},maxlength:uo},null,512),[[g,o.footer_text]]),e("p",Ds,l(a(t)("admin.settings.footerTextHint")),1)]),e("div",Is,[e("label",Ls,l(a(t)("admin.settings.footerBeian")),1),m(e("input",{id:"set-footer-beian","onUpdate:modelValue":n[8]||(n[8]=r=>o.footer_beian=r),class:"input",maxlength:co},null,512),[[g,o.footer_beian]]),e("p",Xs,l(a(t)("admin.settings.footerBeianHint")),1)])]),e("section",js,[e("h3",Ks,l(a(t)("admin.settings.sectionNotify")),1),e("div",Ws,[e("label",Ys,l(a(t)("admin.settings.notifyEnabled")),1),Pe(a(Gt),{id:"set-notify-enabled",value:o.notify_enabled,"onUpdate:value":n[9]||(n[9]=r=>o.notify_enabled=r),size:"small"},null,8,["value"])]),e("div",Gs,[e("label",qs,l(a(t)("admin.settings.notifyTitle")),1),m(e("input",{id:"set-notify-title","onUpdate:modelValue":n[10]||(n[10]=r=>o.notify_title=r),class:"input",maxlength:lo},null,512),[[g,o.notify_title]]),e("p",Js,l(a(t)("admin.settings.notifyTitleHint")),1)]),e("div",Zs,[e("label",Qs,l(a(t)("admin.settings.notifyContent")),1),m(e("textarea",{id:"set-notify-content","onUpdate:modelValue":n[11]||(n[11]=r=>o.notify_content=r),class:"textarea",style:{"min-height":"72px"},maxlength:ro},null,512),[[g,o.notify_content]]),e("p",en,l(a(t)("admin.settings.notifyContentHint")),1)])]),e("section",tn,[e("h3",sn,l(a(t)("admin.settings.sectionSavePolicy")),1),e("div",nn,[e("label",on,l(a(t)("admin.settings.maxSaveTime")),1),e("div",an,[m(e("input",{id:"set-max-save-time","onUpdate:modelValue":n[12]||(n[12]=r=>k.value=r),class:"input",type:"number",min:0,step:"1",placeholder:a(t)("admin.settings.saveTimeUnlimited")},null,8,ln),[[g,k.value,void 0,{number:!0}]]),m(e("select",{"onUpdate:modelValue":n[13]||(n[13]=r=>V.value=r),class:"input unit-select","aria-label":"unit"},[e("option",rn,l(a(t)("admin.settings.unitHour")),1),e("option",dn,l(a(t)("admin.settings.unitDay")),1)],512),[[me,V.value]])]),e("p",un,[M(l(a(t)("admin.settings.maxSaveTimeHint"))+" ",1),te.value?(w(),y(J,{key:0},[M("("+l(a(t)("admin.settings.saveTimeUnlimited"))+")",1)],64)):j("",!0)])]),e("div",cn,[e("label",_n,l(a(t)("admin.settings.maxSaveCount")),1),m(e("input",{id:"set-max-save-count","onUpdate:modelValue":n[14]||(n[14]=r=>o.max_save_count=r),class:"input",type:"number",min:0,max:Ue,step:"1"},null,512),[[g,o.max_save_count,void 0,{number:!0}]]),e("p",mn,l(a(t)("admin.settings.maxSaveCountHint",{max:Ue})),1)])]),e("section",fn,[e("h3",pn,l(a(t)("admin.settings.sectionStorage")),1),e("div",hn,[e("label",gn,l(a(t)("admin.settings.maxFileSizeFriendly")),1),e("div",vn,[m(e("input",{id:"set-max-file-size","onUpdate:modelValue":n[15]||(n[15]=r=>T.value=r),class:"input",type:"number",min:0,step:"1",placeholder:a(t)("admin.settings.sizeUnlimited")},null,8,bn),[[g,T.value,void 0,{number:!0}]]),m(e("select",{"onUpdate:modelValue":n[16]||(n[16]=r=>f.value=r),class:"input unit-select","aria-label":"unit"},[e("option",wn,l(a(t)("admin.settings.unitMB")),1),e("option",yn,l(a(t)("admin.settings.unitGB")),1)],512),[[me,f.value]])]),e("p",xn,[M(l(a(t)("admin.settings.maxFileSizeHintV3",{fallback:a(Ie)(a(c).uploadSize)}))+" ",1),se.value?(w(),y(J,{key:0},[M("("+l(a(t)("admin.settings.sizeUnlimited"))+")",1)],64)):(w(),y(J,{key:1},[M("("+l(a(t)("admin.settings.approxSize",{size:a(Ie)(Z(T.value,f.value))}))+")",1)],64))])]),e("div",kn,[e("label",Sn,l(a(t)("admin.settings.allowedFileTypes")),1),m(e("input",{id:"set-allowed-types","onUpdate:modelValue":n[17]||(n[17]=r=>o.allowed_file_types=r),class:"input",placeholder:"jpg, png, pdf / image/*, *"},null,512),[[g,o.allowed_file_types]]),e("p",Cn,l(a(t)("admin.settings.allowedFileTypesHint")),1)])]),e("section",Rn,[e("h3",Bn,l(a(t)("admin.settings.sectionEngine")),1),e("div",Vn,[e("label",null,[M(l(a(t)("admin.settings.engineCurrent"))+": ",1),e("strong",null,l(I.value),1)])]),e("div",Un,[e("label",$n,l(a(t)("admin.settings.sectionEngine")),1),e("div",Tn,[m(e("select",{id:"set-engine-type","onUpdate:modelValue":n[18]||(n[18]=r=>$.value=r),class:"input",style:{flex:"1"}},[e("option",Mn,l(a(t)("admin.settings.engineLocal")),1),e("option",zn,l(a(t)("admin.settings.engineWebdav")),1),e("option",Fn,l(a(t)("admin.settings.engineS3")),1)],512),[[me,$.value]]),e("button",{class:"btn",type:"button",disabled:Y.value,onClick:ke},[Y.value?(w(),y("span",Pn)):j("",!0),M(" "+l(a(t)("admin.settings.engineSwitch")),1)],8,Nn)]),e("p",An,l(a(t)("admin.settings.engineSwitchFail")),1)]),e("h4",En,l(a(t)("admin.settings.engineParamsTitle")),1),$.value==="local"?(w(),y("div",Hn,[e("label",On,l(a(t)("admin.settings.localRoot")),1),m(e("input",{id:"set-local-root","onUpdate:modelValue":n[19]||(n[19]=r=>u.local_storage_path=r),class:"input",placeholder:"/app/data/storage"},null,512),[[g,u.local_storage_path]]),e("p",Dn,l(a(t)("admin.settings.localRootHint")),1)])):j("",!0),$.value==="webdav"?(w(),y(J,{key:1},[e("div",In,[e("label",Ln,l(a(t)("admin.settings.webdavUrl")),1),m(e("input",{id:"set-webdav-url","onUpdate:modelValue":n[20]||(n[20]=r=>u.webdav_url=r),class:"input",placeholder:"https://dav.example.com/dav/"},null,512),[[g,u.webdav_url]]),e("p",Xn,l(a(t)("admin.settings.webdavUrlHint")),1)]),e("div",jn,[e("label",Kn,l(a(t)("admin.settings.webdavRoot")),1),m(e("input",{id:"set-webdav-root","onUpdate:modelValue":n[21]||(n[21]=r=>u.webdav_root_path=r),class:"input",placeholder:"filebox_storage"},null,512),[[g,u.webdav_root_path]]),e("p",Wn,l(a(t)("admin.settings.webdavRootHint")),1)]),e("div",Yn,[e("div",Gn,[e("label",qn,l(a(t)("admin.settings.webdavUser")),1),m(e("input",{id:"set-webdav-user","onUpdate:modelValue":n[22]||(n[22]=r=>u.webdav_username=r),class:"input",autocomplete:"off"},null,512),[[g,u.webdav_username]])]),e("div",Jn,[e("label",Zn,l(a(t)("admin.settings.webdavPass")),1),m(e("input",{id:"set-webdav-pass","onUpdate:modelValue":n[23]||(n[23]=r=>u.webdav_password=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,u.webdav_password]]),e("p",Qn,l(a(t)("admin.settings.secretKeepHint")),1)])])],64)):j("",!0),$.value==="s3"?(w(),y(J,{key:2},[e("div",ei,[e("div",ti,[e("label",si,l(a(t)("admin.settings.s3Endpoint")),1),m(e("input",{id:"set-s3-endpoint","onUpdate:modelValue":n[24]||(n[24]=r=>u.s3_endpoint_url=r),class:"input",placeholder:"https://s3.example.com:9000"},null,512),[[g,u.s3_endpoint_url]]),e("p",ni,l(a(t)("admin.settings.s3EndpointHint")),1)]),e("div",ii,[e("label",oi,l(a(t)("admin.settings.s3Bucket")),1),m(e("input",{id:"set-s3-bucket","onUpdate:modelValue":n[25]||(n[25]=r=>u.s3_bucket_name=r),class:"input",placeholder:"filecodebox"},null,512),[[g,u.s3_bucket_name]])])]),e("div",ai,[e("div",li,[e("label",ri,l(a(t)("admin.settings.s3Region")),1),m(e("input",{id:"set-s3-region","onUpdate:modelValue":n[26]||(n[26]=r=>u.s3_region_name=r),class:"input",placeholder:"auto"},null,512),[[g,u.s3_region_name]])]),e("div",di,[e("label",ui,l(a(t)("admin.settings.s3Style")),1),m(e("select",{id:"set-s3-style","onUpdate:modelValue":n[27]||(n[27]=r=>u.s3_addressing_style=r),class:"input"},[e("option",ci,l(a(t)("admin.settings.styleAuto")),1),e("option",_i,l(a(t)("admin.settings.stylePath")),1),e("option",mi,l(a(t)("admin.settings.styleVirtual")),1)],512),[[me,u.s3_addressing_style]])])]),e("div",fi,[e("div",pi,[e("label",hi,l(a(t)("admin.settings.s3Ak")),1),m(e("input",{id:"set-s3-ak","onUpdate:modelValue":n[28]||(n[28]=r=>u.s3_access_key_id=r),class:"input",autocomplete:"off"},null,512),[[g,u.s3_access_key_id]])]),e("div",gi,[e("label",vi,l(a(t)("admin.settings.s3Sk")),1),m(e("input",{id:"set-s3-sk","onUpdate:modelValue":n[29]||(n[29]=r=>u.s3_secret_access_key=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,u.s3_secret_access_key]]),e("p",bi,l(a(t)("admin.settings.secretKeepHint")),1)])]),e("div",wi,[e("label",yi,l(a(t)("admin.settings.s3Token")),1),m(e("input",{id:"set-s3-token","onUpdate:modelValue":n[30]||(n[30]=r=>u.aws_session_token=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,u.aws_session_token]]),e("p",xi,l(a(t)("admin.settings.secretKeepHint")),1)])],64)):j("",!0),e("div",ki,[e("button",{class:"btn",type:"button",disabled:G.value,onClick:P},[G.value?(w(),y("span",Ci)):j("",!0),M(" "+l(a(t)("admin.settings.engineParamsSave")),1)],8,Si)])]),e("section",Ri,[e("h3",Bi,l(a(t)("admin.settings.sectionUploadRate")),1),e("div",Vi,[e("div",Ui,[e("label",$i,l(a(t)("admin.settings.uploadCount")),1),m(e("input",{id:"set-upload-count","onUpdate:modelValue":n[31]||(n[31]=r=>o.uploadCount=r),class:"input",type:"number",min:1,max:$e,step:"1"},null,512),[[g,o.uploadCount,void 0,{number:!0}]]),e("p",Ti,l(a(t)("admin.settings.uploadCountHint",{max:$e})),1)]),e("div",Mi,[e("label",zi,l(a(t)("admin.settings.uploadMinute")),1),m(e("input",{id:"set-upload-minute","onUpdate:modelValue":n[32]||(n[32]=r=>o.uploadMinute=r),class:"input",type:"number",min:1,max:Te,step:"1"},null,512),[[g,o.uploadMinute,void 0,{number:!0}]]),e("p",Fi,l(a(t)("admin.settings.uploadMinuteHint",{max:Te})),1)])]),e("div",Ni,[e("div",Pi,[e("label",Ai,l(a(t)("admin.settings.uploadRate")),1),e("div",Ei,[m(e("input",{id:"set-upload-rate","onUpdate:modelValue":n[33]||(n[33]=r=>o.uploadRate=r),class:"input",type:"number",min:0,max:fe,step:"1"},null,512),[[g,o.uploadRate,void 0,{number:!0}]]),n[39]||(n[39]=e("span",{class:"unit-suffix"},"MB/s",-1))]),e("p",Hi,l(a(t)("admin.settings.uploadRateHint")),1)]),e("div",Oi,[e("label",Di,l(a(t)("admin.settings.downloadRate")),1),e("div",Ii,[m(e("input",{id:"set-download-rate","onUpdate:modelValue":n[34]||(n[34]=r=>o.downloadRate=r),class:"input",type:"number",min:0,max:fe,step:"1"},null,512),[[g,o.downloadRate,void 0,{number:!0}]]),n[40]||(n[40]=e("span",{class:"unit-suffix"},"MB/s",-1))]),e("p",Li,l(a(t)("admin.settings.downloadRateHint")),1)])])]),e("div",Xi,[e("button",{class:"btn",type:"submit",disabled:R.value},[R.value?(w(),y("span",Ki)):j("",!0),M(" "+l(a(t)("admin.settings.saveAll")),1)],8,ji)]),e("section",Wi,[e("h3",Yi,l(a(t)("admin.settings.sectionPassword")),1),e("p",Gi,l(a(t)("admin.settings.passwordHint")),1),e("form",{onSubmit:De(A,["prevent"])},[e("div",qi,[e("label",Ji,l(a(t)("admin.settings.oldPassword")),1),m(e("input",{id:"pwd-old","onUpdate:modelValue":n[35]||(n[35]=r=>S.old=r),class:"input",type:"password",autocomplete:"current-password"},null,512),[[g,S.old]])]),e("div",Zi,[e("label",Qi,l(a(t)("admin.settings.newPassword")),1),m(e("input",{id:"pwd-new","onUpdate:modelValue":n[36]||(n[36]=r=>S.next=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,S.next]])]),e("div",eo,[e("label",to,l(a(t)("admin.settings.confirmPassword")),1),m(e("input",{id:"pwd-confirm","onUpdate:modelValue":n[37]||(n[37]=r=>S.confirm=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,S.confirm]])]),e("div",so,[e("button",{class:"btn",type:"submit",disabled:ie.value},[ie.value?(w(),y("span",io)):j("",!0),M(" "+l(a(t)("common.save")),1)],8,no)])],32)])],32))]))}}),bo=kt(po,[["__scopeId","data-v-11453c11"]]);export{bo as default}; diff --git a/server/web/dist/assets/SettingsView-DKQCWWuY.js b/server/web/dist/assets/SettingsView-DKQCWWuY.js new file mode 100644 index 0000000..4c4a154 --- /dev/null +++ b/server/web/dist/assets/SettingsView-DKQCWWuY.js @@ -0,0 +1,129 @@ +import{a0 as be,h as F,a1 as Qe,a2 as Fe,a3 as We,a4 as et,a5 as Ee,a6 as tt,o as w,a7 as Ne,z as ce,c as y,F as J,b as e,a8 as Ye,a9 as st,e as nt,aa as it,G as Pe,A as ot,ab as at,ac as lt,j as B,ad as He,ae as W,J as rt,I as Ge,af as dt,P as ut,ag as ct,ah as _t,d as we,ai as mt,aj as ft,ak as Me,al as b,n as ze,am as qe,an as pt,ao as ht,ap as gt,aq as X,ar as Oe,as as Je,at as Q,au as vt,u as bt,i as wt,a as yt,t as l,f as a,q as M,w as De,C as m,D as g,g as j,Z as me,s as Ie,R as Ce,S as p,H as de,B as xt,_ as kt}from"./index-D7AAbqvI.js";import{f as St,g as Ct,h as Le,i as Rt}from"./admin-uFxGdgNa.js";import{u as Bt}from"./auth-DjiKbqje.js";function Vt(s={},t={defaultBordered:!0}){const d=be(Fe,null);return{inlineThemeDisabled:d?.inlineThemeDisabled,mergedRtlRef:d?.mergedRtlRef,mergedComponentPropsRef:d?.mergedComponentPropsRef,mergedBreakpointsRef:d?.mergedBreakpointsRef,mergedBorderedRef:F(()=>{const{bordered:c}=s;return c!==void 0?c:d?.mergedBorderedRef.value??t.defaultBordered??!0}),mergedClsPrefixRef:d?d.mergedClsPrefixRef:Qe("n"),namespaceRef:F(()=>d?.mergedNamespaceRef.value)}}function Ut(s,t,d){if(!t)return;const c=We(),_=be(Fe,null),h=()=>{const x=d.value;t.mount({id:x===void 0?s:x+s,head:!0,anchorMetaName:Ee,props:{bPrefix:x?`.${x}-`:void 0},ssr:c,parent:_?.styleMountTarget}),_?.preflightStyleDisabled||tt.mount({id:"n-global",head:!0,anchorMetaName:Ee,ssr:c,parent:_?.styleMountTarget})};c?h():et(h)}function z(s,t=1){let d=Pe,c=!1;return typeof s=="function"&&(c=!0,w(),d=ce,s=s()),Ne(s)?c?ce(Xe(s)):Xe(s):Array.isArray(s)?c?y(J,null,s.map(_=>z(()=>_)),-2):e(J,null,s.slice()):s==null||typeof s=="boolean"?d(Ye):d(st,null,String(s),t)}function Xe(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:it(s)}const $t=s=>typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Ne(s)?s:{default:ot(()=>[z(()=>s)])},C=s=>nt(s)||null;function K(s){return typeof s=="string"?s.endsWith("px")?Number(s.slice(0,s.length-2)):Number(s):s}function Re(s){if(s!=null)return typeof s=="number"?`${s}px`:s.endsWith("px")?s:`${s}px`}function Tt(s,t,d,c){d||at("useThemeClass","cssVarsRef is not passed");const _=be(Fe,null),h=_?.mergedThemeHashRef,x=_?.styleMountTarget,R=B(""),o=We();let k;const V=`__${s}`,T=()=>{let f=V;const U=t?t.value:void 0,N=h?.value;N&&(f+=`-${N}`),U&&(f+=`-${U}`);const{themeOverrides:E,builtinThemeOverrides:Z}=c;E&&(f+=`-${He(JSON.stringify(E))}`),Z&&(f+=`-${He(JSON.stringify(Z))}`),R.value=f,k=()=>{const te=d.value;let se="";for(const ne in te)se+=`${ne}: ${te[ne]};`;W(`.${f}`,se).mount({id:f,ssr:o,parent:x}),k=void 0}};return lt(()=>{T()}),{themeClass:R,onRender:()=>{k?.()}}}function Mt(s,t){return rt(s,d=>{d!==void 0&&(t.value=d)}),F(()=>s.value===void 0?t.value:s.value)}function zt(){const s=B(!1);return Ge(()=>{s.value=!0}),dt(s)}function ge(s,...t){if(Array.isArray(s))s.forEach(d=>ge(d,...t));else return s(...t)}function Ae(s){return s.some(t=>Ne(t)?!(t.type===Ye||t.type===J&&!Ae(t.children)):!0)?s:null}function ee(s,t){return t(s&&Ae(s())||null)}function Be(s){return!(s&&Ae(s()))}const je=ct("n-form-item");function Ft(s,{defaultSize:t="medium",mergedSize:d,mergedDisabled:c}={}){const _=be(je,null);_t(je,null);const h=F(d?()=>d(_):()=>{const{size:o}=s;if(o)return o;if(_){const{mergedSize:k}=_;if(k.value!==void 0)return k.value}return t}),x=F(c?()=>c(_):()=>{const{disabled:o}=s;return o!==void 0?o:_?_.disabled.value:!1}),R=F(()=>{const{status:o}=s;return o||_?.mergedValidationStatus.value});return ut(()=>{_&&_.restoreValidation()}),{mergedSizeRef:h,mergedDisabledRef:x,mergedStatusRef:R,nTriggerFormBlur(){_&&_.handleContentBlur()},nTriggerFormChange(){_&&_.handleContentChange()},nTriggerFormFocus(){_&&_.handleContentFocus()},nTriggerFormInput(){_&&_.handleContentInput()}}}var Ze=we({name:"BaseIconSwitchTransition",setup(s,{slots:t}){const d=zt();return()=>(w(),ce(mt,{name:"icon-switch-transition",appear:d.value},$t(t),1032,["appear"]))}});const{cubicBezierEaseInOut:Nt}=ft;function ve({originalTransform:s="",left:t=0,top:d=0,transition:c=`all .3s ${Nt} !important`}={}){return[W("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${s} scale(0.75)`,left:t,top:d,opacity:0}),W("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${s}`,left:t,top:d,opacity:1}),W("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:d,transition:c})]}var Pt=W([W("@keyframes rotator",` + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + }`),Me("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; + `,[b("transition-wrapper",` + position: absolute; + width: 100%; + height: 100%; + `,[ve()]),b("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[ve({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),b("container",` + animation: rotator 3s linear infinite both; + `,[b("icon",` + height: 1em; + width: 1em; + `)])])]);const At=["viewBox"],Et=["values","dur"],Ht=["stroke-width","cx","cy","r","stroke-dasharray","stroke-dashoffset"],Ot=["values","dur"],Dt=["values","dur"],Ve="1.6s",It={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},scale:{type:Number,default:1},radius:{type:Number,default:100}};var Lt=we({name:"BaseLoading",props:{clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},...It},setup(s){Ut("-base-loading",Pt,qe(s,"clsPrefix"))},render(){const{clsPrefix:s,radius:t,strokeWidth:d,stroke:c,scale:_}=this,h=t/_;return w(),y("div",{class:C(`${s}-base-loading`),role:"img","aria-label":"loading"},[Pe(Ze,null,{default:()=>this.show?(w(),y("div",{key:"icon",class:C(`${s}-base-loading__transition-wrapper`)},[e("div",{class:C(`${s}-base-loading__container`)},[(w(),y("svg",{class:C(`${s}-base-loading__icon`),viewBox:`0 0 ${2*h} ${2*h}`,xmlns:"http://www.w3.org/2000/svg",style:ze({color:c})},[e("g",null,[e("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${h} ${h};270 ${h} ${h}`,begin:"0s",dur:Ve,fill:"freeze",repeatCount:"indefinite"},null,8,Et),e("circle",{class:C(`${s}-base-loading__icon`),fill:"none",stroke:"currentColor","stroke-width":d,"stroke-linecap":"round",cx:h,cy:h,r:t-d/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},[e("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${h} ${h};135 ${h} ${h};450 ${h} ${h}`,begin:"0s",dur:Ve,fill:"freeze",repeatCount:"indefinite"},null,8,Ot),e("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:Ve,fill:"freeze",repeatCount:"indefinite"},null,8,Dt)],10,Ht)])],14,At))],2)],2)):(w(),y("div",{key:"placeholder",class:C(`${s}-base-loading__placeholder`)},[z(()=>this.$slots.default?.())],2))},1024)],2)}});function Xt(s){const{primaryColor:t,opacityDisabled:d,borderRadius:c,textColor3:_}=s;return{...ht,iconColor:_,textColor:"white",loadingColor:t,opacityDisabled:d,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:c,railBorderRadiusMedium:c,railBorderRadiusLarge:c,buttonBorderRadiusSmall:c,buttonBorderRadiusMedium:c,buttonBorderRadiusLarge:c,boxShadowFocus:`0 0 0 2px ${gt(t,{alpha:.2})}`}}const jt={common:pt,self:Xt};var Kt=Me("switch",` + height: var(--n-height); + min-width: var(--n-width); + vertical-align: middle; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + outline: none; + justify-content: center; + align-items: center; +`,[b("children-placeholder",` + height: var(--n-rail-height); + display: flex; + flex-direction: column; + overflow: hidden; + pointer-events: none; + visibility: hidden; + `),b("rail-placeholder",` + display: flex; + flex-wrap: none; + `),b("button-placeholder",` + width: calc(1.75 * var(--n-rail-height)); + height: var(--n-rail-height); + `),Me("base-loading",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + font-size: calc(var(--n-button-width) - 4px); + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + `,[ve({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),b("checked, unchecked",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + box-sizing: border-box; + position: absolute; + white-space: nowrap; + top: 0; + bottom: 0; + display: flex; + align-items: center; + line-height: 1; + `),b("checked",` + right: 0; + padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),b("unchecked",` + left: 0; + justify-content: flex-end; + padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),W("&:focus",[b("rail",` + box-shadow: var(--n-box-shadow-focus); + `)]),X("round",[b("rail","border-radius: calc(var(--n-rail-height) / 2);",[b("button","border-radius: calc(var(--n-button-height) / 2);")])]),Oe("disabled",[Oe("icon",[X("rubber-band",[X("pressed",[b("rail",[b("button","max-width: var(--n-button-width-pressed);")])]),b("rail",[W("&:active",[b("button","max-width: var(--n-button-width-pressed);")])]),X("active",[X("pressed",[b("rail",[b("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),b("rail",[W("&:active",[b("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),X("active",[b("rail",[b("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),b("rail",` + overflow: hidden; + height: var(--n-rail-height); + min-width: var(--n-rail-width); + border-radius: var(--n-rail-border-radius); + cursor: pointer; + position: relative; + transition: + opacity .3s var(--n-bezier), + background .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-rail-color); + `,[b("button-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + font-size: calc(var(--n-button-height) - 4px); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + justify-content: center; + align-items: center; + line-height: 1; + `,[ve()]),b("button",` + align-items: center; + top: var(--n-offset); + left: var(--n-offset); + height: var(--n-button-height); + width: var(--n-button-width-pressed); + max-width: var(--n-button-width); + border-radius: var(--n-button-border-radius); + background-color: var(--n-button-color); + box-shadow: var(--n-button-box-shadow); + box-sizing: border-box; + cursor: inherit; + content: ""; + position: absolute; + transition: + background-color .3s var(--n-bezier), + left .3s var(--n-bezier), + opacity .3s var(--n-bezier), + max-width .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `)]),X("active",[b("rail","background-color: var(--n-rail-color-active);")]),X("loading",[b("rail",` + cursor: wait; + `)]),X("disabled",[b("rail",` + cursor: not-allowed; + opacity: .5; + `)])]);const Wt=["aria-checked","tabindex","onClick","onFocus","onBlur","onKeyup","onKeydown"],Yt={...Je.props,size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]};let ue;var Gt=we({name:"Switch",props:Yt,slots:Object,setup(s){ue===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?ue=CSS.supports("width","max(1px)"):ue=!1:ue=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:d,mergedComponentPropsRef:c}=Vt(s),_=Je("Switch","-switch",Kt,jt,s,t),h=Ft(s,{mergedSize(v){if(s.size!==void 0)return s.size;if(v)return v.mergedSize.value;const D=c?.value?.Switch?.size;return D||"medium"}}),{mergedSizeRef:x,mergedDisabledRef:R}=h,o=B(s.defaultValue),k=qe(s,"value"),V=Mt(k,o),T=F(()=>V.value===s.checkedValue),f=B(!1),U=B(!1),N=F(()=>{const{railStyle:v}=s;if(v)return v({focused:U.value,checked:T.value})});function E(v){const{"onUpdate:value":D,onChange:I,onUpdateValue:$}=s,{nTriggerFormInput:Y,nTriggerFormChange:G}=h;D&&ge(D,v),$&&ge($,v),I&&ge(I,v),o.value=v,Y(),G()}function Z(){const{nTriggerFormFocus:v}=h;v()}function te(){const{nTriggerFormBlur:v}=h;v()}function se(){s.loading||R.value||(V.value!==s.checkedValue?E(s.checkedValue):E(s.uncheckedValue))}function ne(){U.value=!0,Z()}function H(){U.value=!1,te(),f.value=!1}function ye(v){s.loading||R.value||v.key===" "&&(V.value!==s.checkedValue?E(s.checkedValue):E(s.uncheckedValue),f.value=!1)}function O(v){s.loading||R.value||v.key===" "&&(v.preventDefault(),f.value=!0)}const _e=F(()=>{const{value:v}=x,{self:{opacityDisabled:D,railColor:I,railColorActive:$,buttonBoxShadow:Y,buttonColor:G,boxShadowFocus:u,loadingColor:xe,textColor:le,iconColor:ke,[Q("buttonHeight",v)]:P,[Q("buttonWidth",v)]:S,[Q("buttonWidthPressed",v)]:ie,[Q("railHeight",v)]:A,[Q("railWidth",v)]:i,[Q("railBorderRadius",v)]:n,[Q("buttonBorderRadius",v)]:r},common:{cubicBezierEaseInOut:q}}=_.value;let L,re,Se;return ue?(L=`calc((${A} - ${P}) / 2)`,re=`max(${A}, ${P})`,Se=`max(${i}, calc(${i} + ${P} - ${A}))`):(L=Re((K(A)-K(P))/2),re=Re(Math.max(K(A),K(P))),Se=K(A)>K(P)?i:Re(K(i)+K(P)-K(A))),{"--n-bezier":q,"--n-button-border-radius":r,"--n-button-box-shadow":Y,"--n-button-color":G,"--n-button-width":S,"--n-button-width-pressed":ie,"--n-button-height":P,"--n-height":re,"--n-offset":L,"--n-opacity-disabled":D,"--n-rail-border-radius":n,"--n-rail-color":I,"--n-rail-color-active":$,"--n-rail-height":A,"--n-rail-width":i,"--n-width":Se,"--n-box-shadow-focus":u,"--n-loading-color":xe,"--n-text-color":le,"--n-icon-color":ke}}),ae=d?Tt("switch",F(()=>x.value[0]),_e,s):void 0;return{handleClick:se,handleBlur:H,handleFocus:ne,handleKeyup:ye,handleKeydown:O,mergedRailStyle:N,pressed:f,mergedClsPrefix:t,mergedValue:V,checked:T,mergedDisabled:R,cssVars:d?void 0:_e,themeClass:ae?.themeClass,onRender:ae?.onRender}},render(){const{mergedClsPrefix:s,mergedDisabled:t,checked:d,mergedRailStyle:c,onRender:_,$slots:h}=this;_?.();const{checked:x,unchecked:R,icon:o,"checked-icon":k,"unchecked-icon":V}=h,T=!(Be(o)&&Be(k)&&Be(V));return w(),y("div",{role:"switch","aria-checked":d,class:C([`${s}-switch`,this.themeClass,T&&`${s}-switch--icon`,d&&`${s}-switch--active`,t&&`${s}-switch--disabled`,this.round&&`${s}-switch--round`,this.loading&&`${s}-switch--loading`,this.pressed&&`${s}-switch--pressed`,this.rubberBand&&`${s}-switch--rubber-band`]),tabindex:this.mergedDisabled?void 0:0,style:ze(this.cssVars),onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},[e("div",{class:C(`${s}-switch__rail`),"aria-hidden":"true",style:ze(c)},[z(()=>ee(x,f=>ee(R,U=>f||U?(w(),y("div",{key:4,"aria-hidden":!0,class:C(`${s}-switch__children-placeholder`)},[e("div",{class:C(`${s}-switch__rail-placeholder`)},[e("div",{class:C(`${s}-switch__button-placeholder`)},null,2),z(()=>f)],2),e("div",{class:C(`${s}-switch__rail-placeholder`)},[e("div",{class:C(`${s}-switch__button-placeholder`)},null,2),z(()=>U)],2)],2)):null))),e("div",{class:C(`${s}-switch__button`)},[z(()=>ee(o,f=>ee(k,U=>ee(V,N=>(w(),ce(Ze,null,{default:()=>this.loading?(w(),ce(Lt,vt({key:"loading",clsPrefix:s,strokeWidth:20},this.spinProps),null,16,["clsPrefix"])):this.checked&&(U||f)?(w(),y("div",{class:C(`${s}-switch__button-icon`),key:U?"checked-icon":"icon"},[z(()=>U||f)],2)):!this.checked&&(N||f)?(w(),y("div",{class:C(`${s}-switch__button-icon`),key:N?"unchecked-icon":"icon"},[z(()=>N||f)],2)):null},1024)))))),z(()=>ee(x,f=>f&&(w(),y("div",{key:"checked",class:C(`${s}-switch__checked`)},[z(()=>f)],2)))),z(()=>ee(R,f=>f&&(w(),y("div",{key:"unchecked",class:C(`${s}-switch__unchecked`)},[z(()=>f)],2))))],2)],6)],46,Wt)}});const qt={class:"toolbar"},Jt={class:"page-title"},Zt={class:"page-sub"},Qt={key:0,class:"loading-block"},es={class:"card"},ts={class:"card-title"},ss={class:"field"},ns={for:"set-site-name"},is={class:"hint"},os={class:"field"},as={for:"set-site-domain"},ls={class:"hint"},rs={class:"card"},ds={class:"card-title"},us={class:"field"},cs={for:"set-logo-url"},_s={class:"logo-input-row"},ms={class:"hint"},fs={class:"logo-preview-row"},ps={class:"logo-box"},hs=["src"],gs={style:{"font-size":"13px",color:"var(--c-text-2)"}},vs={style:{display:"inline-flex","align-items":"center",gap:"8px","font-weight":"700",color:"var(--c-text)"}},bs=["src"],ws={class:"card"},ys={class:"card-title"},xs={class:"field"},ks={for:"set-favicon-url"},Ss={class:"logo-input-row"},Cs={class:"hint"},Rs={class:"logo-preview-row"},Bs={class:"logo-box",style:{width:"44px",height:"44px"}},Vs=["src"],Us={style:{"font-size":"13px",color:"var(--c-text-2)"}},$s={class:"card"},Ts={class:"card-title"},Ms={class:"field"},zs={for:"set-bg-url"},Fs={class:"hint"},Ns={key:0,class:"logo-box",style:{width:"120px"}},Ps=["src"],As={class:"card"},Es={class:"card-title"},Hs={class:"field"},Os={for:"set-footer-text"},Ds={class:"hint"},Is={class:"field"},Ls={for:"set-footer-beian"},Xs={class:"hint"},js={class:"card"},Ks={class:"card-title"},Ws={class:"field notify-switch-row"},Ys={for:"set-notify-enabled"},Gs={class:"field"},qs={for:"set-notify-title"},Js={class:"hint"},Zs={class:"field"},Qs={for:"set-notify-content"},en={class:"hint"},tn={class:"card"},sn={class:"card-title"},nn={class:"field"},on={for:"set-max-save-time"},an={class:"unit-row"},ln=["placeholder"],rn={value:"hour"},dn={value:"day"},un={class:"hint"},cn={class:"field"},_n={for:"set-max-save-count"},mn={class:"hint"},fn={class:"card"},pn={class:"card-title"},hn={class:"field"},gn={for:"set-max-file-size"},vn={class:"unit-row"},bn=["placeholder"],wn={value:"MB"},yn={value:"GB"},xn={class:"hint"},kn={class:"field"},Sn={for:"set-allowed-types"},Cn={class:"hint"},Rn={class:"card"},Bn={class:"card-title"},Vn={class:"field"},Un={class:"field"},$n={for:"set-engine-type"},Tn={class:"unit-row"},Mn={value:"local"},zn={value:"webdav"},Fn={value:"s3"},Nn=["disabled"],Pn={key:0,class:"spin","aria-hidden":"true"},An={class:"hint"},En={class:"card-sub",style:{"margin-top":"8px"}},Hn={key:0,class:"field"},On={for:"set-local-root"},Dn={class:"hint"},In={class:"field"},Ln={for:"set-webdav-url"},Xn={class:"hint"},jn={class:"field"},Kn={for:"set-webdav-root"},Wn={class:"hint"},Yn={class:"field-row"},Gn={class:"field"},qn={for:"set-webdav-user"},Jn={class:"field"},Zn={for:"set-webdav-pass"},Qn={class:"hint"},ei={class:"field-row"},ti={class:"field"},si={for:"set-s3-endpoint"},ni={class:"hint"},ii={class:"field"},oi={for:"set-s3-bucket"},ai={class:"field-row"},li={class:"field"},ri={for:"set-s3-region"},di={class:"field"},ui={for:"set-s3-style"},ci={value:"auto"},_i={value:"path"},mi={value:"virtual"},fi={class:"field-row"},pi={class:"field"},hi={for:"set-s3-ak"},gi={class:"field"},vi={for:"set-s3-sk"},bi={class:"hint"},wi={class:"field"},yi={for:"set-s3-token"},xi={class:"hint"},ki={class:"save-row"},Si=["disabled"],Ci={key:0,class:"spin","aria-hidden":"true"},Ri={class:"card"},Bi={class:"card-title"},Vi={class:"field-row"},Ui={class:"field"},$i={for:"set-upload-count"},Ti={class:"hint"},Mi={class:"field"},zi={for:"set-upload-minute"},Fi={class:"hint"},Ni={class:"field-row",style:{"margin-top":"14px"}},Pi={class:"field"},Ai={for:"set-upload-rate"},Ei={class:"unit-row"},Hi={class:"hint"},Oi={class:"field"},Di={for:"set-download-rate"},Ii={class:"unit-row"},Li={class:"hint"},Xi={class:"save-row"},ji=["disabled"],Ki={key:0,class:"spin","aria-hidden":"true"},Wi={class:"card"},Yi={class:"card-title"},Gi={class:"card-sub"},qi={class:"field"},Ji={for:"pwd-old"},Zi={class:"field"},Qi={for:"pwd-new"},eo={class:"field"},to={for:"pwd-confirm"},so={class:"save-row"},no=["disabled"],io={key:0,class:"spin","aria-hidden":"true"},oo=365*24*60*60,Ue=1e5,ao=10*1024*1024*1024,lo=128,ro=2e3,uo=2e3,co=128,_o=2048,$e=1e4,Te=1440,fe=1024,Ke=3600,pe=86400,oe=1024*1024,he=1024*1024*1024,mo=256*1024,fo="******",po=we({__name:"SettingsView",setup(s){const{t}=bt(),d=wt(),c=yt(),_=Bt(),h=xt(),x=B(!1),R=B(!1),o=Ce({site_name:"",site_domain:"",logo_url:"",favicon_url:"",background_url:"",footer_text:"",footer_beian:"",notify_enabled:!0,notify_title:"",notify_content:"",max_save_seconds:0,max_save_count:0,max_file_size:0,allowed_file_types:"",uploadCount:0,uploadMinute:0,uploadRate:0,downloadRate:0}),k=B(0),V=B("day"),T=B(0),f=B("MB");function U(i){if(i<=0)return{value:0,unit:"day"};if(i%pe===0||i>=pe){const n=i/pe;if(Number.isInteger(n))return{value:n,unit:"day"}}return{value:Math.round(i/Ke*100)/100,unit:"hour"}}function N(i){if(i<=0)return{value:0,unit:"MB"};if(i%he===0||i>=he){const n=i/he;if(Number.isInteger(n))return{value:n,unit:"GB"}}return{value:Math.round(i/oe*100)/100,unit:"MB"}}function E(i,n){const r=n==="day"?i*pe:i*Ke;return O(r,0,oo)}function Z(i,n){const r=n==="GB"?i*he:i*oe;return O(r,0,ao)}const te=F(()=>k.value<=0),se=F(()=>T.value<=0);function ne(i,n){return i==null?n:typeof i=="boolean"?i:typeof i=="number"?i!==0:String(i)!=="0"&&String(i)!=="false"&&String(i)!==""}function H(i,n){const r=Number(i);return Number.isFinite(r)?r:n}function ye(i){return Array.isArray(i)?i.map(n=>String(n).trim()).filter(Boolean):typeof i=="string"?i.split(",").map(n=>n.trim()).filter(Boolean):[]}function O(i,n,r){return Math.min(Math.max(Math.round(i)||0,n),r)}async function _e(){x.value=!0;try{const i=await St();o.site_name=String(p(i,["site_name","name"])??""),o.site_domain=String(p(i,["site_domain","siteDomain"])??""),o.logo_url=String(p(i,["logo_url"])??""),o.favicon_url=String(p(i,["favicon_url"])??""),o.background_url=String(p(i,["background_url","backgroundUrl"])??""),o.footer_text=String(p(i,["footer_text","footerText"])??""),o.footer_beian=String(p(i,["footer_beian","footerBeian"])??""),o.notify_enabled=ne(p(i,["notify_enabled","notifyEnabled"]),!0),o.notify_title=String(p(i,["notify_title","notifyTitle"])??""),o.notify_content=String(p(i,["notify_content","notifyContent"])??""),o.max_save_seconds=H(p(i,["max_save_seconds","maxSaveSeconds"]),0),o.max_save_count=H(p(i,["max_save_count","maxSaveCount"]),0),o.max_file_size=H(p(i,["max_file_size","maxFileSize"]),0);const n=U(o.max_save_seconds);k.value=n.value,V.value=n.unit;const r=N(o.max_file_size);T.value=r.value,f.value=r.unit;const q=ye(p(i,["allowed_file_types","allowedFileTypes"]));o.allowed_file_types=q.join(","),o.uploadCount=H(p(i,["uploadCount","upload_count"]),0),o.uploadMinute=H(p(i,["uploadMinute","upload_minute"]),0),o.uploadRate=Math.round(H(p(i,["upload_rate","uploadRate"]),0)/oe),o.downloadRate=Math.round(H(p(i,["download_rate","downloadRate"]),0)/oe);const L=p(i,["_engine_hint"]),re=L?String(p(L,["storage_backend"])??""):"";I.value=re||String(p(i,["storage_engine"])??"local"),$.value=I.value,xe(i)}catch(i){d.error(i instanceof de?i.msg:t("admin.settings.loadFailed"))}finally{x.value=!1}}function ae(i){const n=document.createElement("input");n.type="file",n.accept="image/*",n.onchange=()=>{const r=n.files?.[0];if(!r)return;if(r.size>mo){d.error(t("admin.settings.imageTooLarge"));return}const q=new FileReader;q.onload=()=>{const L=String(q.result??"");i==="logo"?o.logo_url=L:o.favicon_url=L,d.success(t("admin.settings.imageLoaded"))},q.onerror=()=>d.error(t("admin.settings.imageReadFailed")),q.readAsDataURL(r)},n.click()}async function v(){R.value=!0;try{const i=o.allowed_file_types.split(",").map(n=>n.trim()).filter(Boolean);await Le({site_name:o.site_name.trim(),site_domain:o.site_domain.trim(),logo_url:o.logo_url.trim(),favicon_url:o.favicon_url.trim(),background_url:o.background_url.trim(),footer_text:o.footer_text.trim(),footer_beian:o.footer_beian.trim(),notify_enabled:o.notify_enabled?1:0,notify_title:o.notify_title.trim(),notify_content:o.notify_content.trim(),max_save_seconds:E(k.value,V.value),max_save_count:O(o.max_save_count,0,Ue),max_file_size:Z(T.value,f.value),allowed_file_types:i.length?i:["*"],uploadCount:O(o.uploadCount||0,1,$e),uploadMinute:O(o.uploadMinute||0,1,Te),upload_rate:O(Number(o.uploadRate)||0,0,fe)*oe,download_rate:O(Number(o.downloadRate)||0,0,fe)*oe}),d.success(t("admin.settings.saved")),await c.load()}catch(i){d.error(i instanceof de?i.msg:t("admin.settings.saveFailed"))}finally{R.value=!1}}function D(){o.site_name="文件快传",o.site_domain="",o.logo_url="",o.favicon_url="",o.background_url="",o.footer_text="",o.footer_beian="",o.notify_enabled=!0,o.notify_title="",o.notify_content="",o.max_save_seconds=0,o.max_save_count=0,o.max_file_size=0,o.allowed_file_types="*",o.uploadCount=10,o.uploadMinute=1,o.uploadRate=0,o.downloadRate=0,k.value=0,V.value="day",T.value=0,f.value="MB",d.info(t("admin.settings.restoreDefaultsDone"))}const I=B("local"),$=B("local"),Y=B(!1),G=B(!1),u=Ce({local_storage_path:"",webdav_url:"",webdav_root_path:"filebox_storage",webdav_username:"",webdav_password:"",s3_endpoint_url:"",s3_bucket_name:"",s3_region_name:"auto",s3_access_key_id:"",s3_secret_access_key:"",aws_session_token:"",s3_addressing_style:"auto"});function xe(i){u.local_storage_path=String(p(i,["local_storage_path","localStoragePath"])??""),u.webdav_url=String(p(i,["webdav_url","webdavUrl"])??""),u.webdav_root_path=String(p(i,["webdav_root_path","webdavRootPath"])??"filebox_storage"),u.webdav_username=String(p(i,["webdav_username","webdavUsername"])??""),u.webdav_password=String(p(i,["webdav_password","webdavPassword"])??""),u.s3_endpoint_url=String(p(i,["s3_endpoint_url","s3EndpointUrl"])??""),u.s3_bucket_name=String(p(i,["s3_bucket_name","s3BucketName"])??""),u.s3_region_name=String(p(i,["s3_region_name","s3RegionName"])??"auto"),u.s3_access_key_id=String(p(i,["s3_access_key_id","s3AccessKeyId"])??""),u.s3_secret_access_key=String(p(i,["s3_secret_access_key","s3SecretAccessKey"])??""),u.aws_session_token=String(p(i,["aws_session_token","awsSessionToken"])??""),u.s3_addressing_style=String(p(i,["s3_addressing_style","s3AddressingStyle"])??"auto")}function le(i){const n=i.trim();if(!(n===""||n===fo))return n}async function ke(){Y.value=!0;try{const i=await Ct($.value);I.value=String(i)||$.value,d.success(t("admin.settings.engineSwitchOk",{engine:i})),await c.load()}catch(i){d.error(i instanceof de?i.msg:t("admin.settings.engineSwitchFail"))}finally{Y.value=!1}}async function P(){G.value=!0;try{const i={};if($.value==="local")i.local_storage_path=u.local_storage_path.trim();else if($.value==="webdav"){i.webdav_url=u.webdav_url.trim(),i.webdav_root_path=u.webdav_root_path.trim(),i.webdav_username=u.webdav_username.trim();const n=le(u.webdav_password);n!==void 0&&(i.webdav_password=n)}else{i.s3_endpoint_url=u.s3_endpoint_url.trim(),i.s3_bucket_name=u.s3_bucket_name.trim(),i.s3_region_name=u.s3_region_name.trim()||"auto",i.s3_access_key_id=u.s3_access_key_id.trim();const n=le(u.s3_secret_access_key);n!==void 0&&(i.s3_secret_access_key=n);const r=le(u.aws_session_token);r!==void 0&&(i.aws_session_token=r),i.s3_addressing_style=u.s3_addressing_style}await Le(i),d.success(t("admin.settings.engineParamsSaved"))}catch(i){d.error(i instanceof de?i.msg:t("admin.settings.saveFailed"))}finally{G.value=!1}}const S=Ce({old:"",next:"",confirm:""}),ie=B(!1);async function A(){if(!S.old||!S.next){d.error(t("admin.settings.pwdRequired"));return}if(S.next.length<6){d.error(t("admin.settings.pwdTooShort"));return}if(S.next!==S.confirm){d.error(t("admin.settings.pwdMismatch"));return}ie.value=!0;try{await Rt(S.old,S.next),d.success(t("admin.settings.pwdChanged")),S.old=S.next=S.confirm="",await _.logout(),h.replace({name:"admin-login"})}catch(i){d.error(i instanceof de?i.code===401?t("admin.settings.pwdWrong"):i.msg:t("admin.settings.pwdChangeFailed"))}finally{ie.value=!1}}return Ge(_e),(i,n)=>(w(),y("div",null,[e("div",qt,[e("div",null,[e("h2",Jt,l(a(t)("admin.settings.title")),1),e("p",Zt,l(a(t)("admin.settings.subtitle")),1)]),e("button",{class:"btn btn-ghost",type:"button",onClick:D},l(a(t)("admin.settings.restoreDefaults")),1)]),x.value?(w(),y("div",Qt,[n[38]||(n[38]=e("span",{class:"spin","aria-hidden":"true"},null,-1)),M(" "+l(a(t)("admin.settings.loading")),1)])):(w(),y("form",{key:1,class:"settings-grid",onSubmit:De(v,["prevent"])},[e("section",es,[e("h3",ts,l(a(t)("admin.settings.sectionBasic")),1),e("div",ss,[e("label",ns,l(a(t)("admin.settings.siteName")),1),m(e("input",{id:"set-site-name","onUpdate:modelValue":n[0]||(n[0]=r=>o.site_name=r),class:"input",placeholder:"文件快传",maxlength:"64"},null,512),[[g,o.site_name]]),e("p",is,l(a(t)("admin.settings.siteNameHint")),1)]),e("div",os,[e("label",as,l(a(t)("admin.settings.siteDomain")),1),m(e("input",{id:"set-site-domain","onUpdate:modelValue":n[1]||(n[1]=r=>o.site_domain=r),class:"input",placeholder:"https://share.example.com",maxlength:"256"},null,512),[[g,o.site_domain]]),e("p",ls,l(a(t)("admin.settings.siteDomainHint")),1)])]),e("section",rs,[e("h3",ds,l(a(t)("admin.settings.sectionLogo")),1),e("div",us,[e("label",cs,l(a(t)("admin.settings.logoUrl")),1),e("div",_s,[m(e("input",{id:"set-logo-url","onUpdate:modelValue":n[2]||(n[2]=r=>o.logo_url=r),class:"input",placeholder:"https://…/logo.svg"},null,512),[[g,o.logo_url]]),e("button",{class:"btn btn-ghost",type:"button",onClick:n[3]||(n[3]=r=>ae("logo"))},l(a(t)("admin.settings.uploadImage")),1)]),e("p",ms,l(a(t)("admin.settings.logoHint")),1)]),e("div",fs,[e("div",ps,[e("img",{src:o.logo_url||a(c).displayLogoUrl,alt:"Logo preview"},null,8,hs)]),e("div",gs,[M(l(a(t)("admin.settings.navPreview"))+" ",1),e("span",vs,[e("img",{src:o.logo_url||a(c).displayLogoUrl,alt:"",style:{width:"22px",height:"22px","object-fit":"contain"}},null,8,bs),M(" "+l(o.site_name||a(c).displayName),1)])])])]),e("section",ws,[e("h3",ys,l(a(t)("admin.settings.sectionFavicon")),1),e("div",xs,[e("label",ks,l(a(t)("admin.settings.faviconUrl")),1),e("div",Ss,[m(e("input",{id:"set-favicon-url","onUpdate:modelValue":n[4]||(n[4]=r=>o.favicon_url=r),class:"input",placeholder:"https://…/favicon.png"},null,512),[[g,o.favicon_url]]),e("button",{class:"btn btn-ghost",type:"button",onClick:n[5]||(n[5]=r=>ae("favicon"))},l(a(t)("admin.settings.uploadImage")),1)]),e("p",Cs,l(a(t)("admin.settings.faviconHint")),1)]),e("div",Rs,[e("div",Bs,[e("img",{src:o.favicon_url||a(c).displayFaviconUrl,alt:"Favicon preview"},null,8,Vs)]),e("span",Us,l(a(t)("admin.settings.faviconPreviewHint")),1)])]),e("section",$s,[e("h3",Ts,l(a(t)("admin.settings.sectionBackground")),1),e("div",Ms,[e("label",zs,l(a(t)("admin.settings.backgroundUrl")),1),m(e("input",{id:"set-bg-url","onUpdate:modelValue":n[6]||(n[6]=r=>o.background_url=r),class:"input",placeholder:"https://…/bg.jpg",maxlength:_o},null,512),[[g,o.background_url]]),e("p",Fs,l(a(t)("admin.settings.backgroundHint")),1)]),o.background_url.trim()?(w(),y("div",Ns,[e("img",{src:o.background_url,alt:"Background preview",style:{width:"100%",height:"100%","object-fit":"cover"}},null,8,Ps)])):j("",!0)]),e("section",As,[e("h3",Es,l(a(t)("admin.settings.sectionFooter")),1),e("div",Hs,[e("label",Os,l(a(t)("admin.settings.footerText")),1),m(e("textarea",{id:"set-footer-text","onUpdate:modelValue":n[7]||(n[7]=r=>o.footer_text=r),class:"textarea",style:{"min-height":"72px"},maxlength:uo},null,512),[[g,o.footer_text]]),e("p",Ds,l(a(t)("admin.settings.footerTextHint")),1)]),e("div",Is,[e("label",Ls,l(a(t)("admin.settings.footerBeian")),1),m(e("input",{id:"set-footer-beian","onUpdate:modelValue":n[8]||(n[8]=r=>o.footer_beian=r),class:"input",maxlength:co},null,512),[[g,o.footer_beian]]),e("p",Xs,l(a(t)("admin.settings.footerBeianHint")),1)])]),e("section",js,[e("h3",Ks,l(a(t)("admin.settings.sectionNotify")),1),e("div",Ws,[e("label",Ys,l(a(t)("admin.settings.notifyEnabled")),1),Pe(a(Gt),{id:"set-notify-enabled",value:o.notify_enabled,"onUpdate:value":n[9]||(n[9]=r=>o.notify_enabled=r),size:"small"},null,8,["value"])]),e("div",Gs,[e("label",qs,l(a(t)("admin.settings.notifyTitle")),1),m(e("input",{id:"set-notify-title","onUpdate:modelValue":n[10]||(n[10]=r=>o.notify_title=r),class:"input",maxlength:lo},null,512),[[g,o.notify_title]]),e("p",Js,l(a(t)("admin.settings.notifyTitleHint")),1)]),e("div",Zs,[e("label",Qs,l(a(t)("admin.settings.notifyContent")),1),m(e("textarea",{id:"set-notify-content","onUpdate:modelValue":n[11]||(n[11]=r=>o.notify_content=r),class:"textarea",style:{"min-height":"72px"},maxlength:ro},null,512),[[g,o.notify_content]]),e("p",en,l(a(t)("admin.settings.notifyContentHint")),1)])]),e("section",tn,[e("h3",sn,l(a(t)("admin.settings.sectionSavePolicy")),1),e("div",nn,[e("label",on,l(a(t)("admin.settings.maxSaveTime")),1),e("div",an,[m(e("input",{id:"set-max-save-time","onUpdate:modelValue":n[12]||(n[12]=r=>k.value=r),class:"input",type:"number",min:0,step:"1",placeholder:a(t)("admin.settings.saveTimeUnlimited")},null,8,ln),[[g,k.value,void 0,{number:!0}]]),m(e("select",{"onUpdate:modelValue":n[13]||(n[13]=r=>V.value=r),class:"input unit-select","aria-label":"unit"},[e("option",rn,l(a(t)("admin.settings.unitHour")),1),e("option",dn,l(a(t)("admin.settings.unitDay")),1)],512),[[me,V.value]])]),e("p",un,[M(l(a(t)("admin.settings.maxSaveTimeHint"))+" ",1),te.value?(w(),y(J,{key:0},[M("("+l(a(t)("admin.settings.saveTimeUnlimited"))+")",1)],64)):j("",!0)])]),e("div",cn,[e("label",_n,l(a(t)("admin.settings.maxSaveCount")),1),m(e("input",{id:"set-max-save-count","onUpdate:modelValue":n[14]||(n[14]=r=>o.max_save_count=r),class:"input",type:"number",min:0,max:Ue,step:"1"},null,512),[[g,o.max_save_count,void 0,{number:!0}]]),e("p",mn,l(a(t)("admin.settings.maxSaveCountHint",{max:Ue})),1)])]),e("section",fn,[e("h3",pn,l(a(t)("admin.settings.sectionStorage")),1),e("div",hn,[e("label",gn,l(a(t)("admin.settings.maxFileSizeFriendly")),1),e("div",vn,[m(e("input",{id:"set-max-file-size","onUpdate:modelValue":n[15]||(n[15]=r=>T.value=r),class:"input",type:"number",min:0,step:"1",placeholder:a(t)("admin.settings.sizeUnlimited")},null,8,bn),[[g,T.value,void 0,{number:!0}]]),m(e("select",{"onUpdate:modelValue":n[16]||(n[16]=r=>f.value=r),class:"input unit-select","aria-label":"unit"},[e("option",wn,l(a(t)("admin.settings.unitMB")),1),e("option",yn,l(a(t)("admin.settings.unitGB")),1)],512),[[me,f.value]])]),e("p",xn,[M(l(a(t)("admin.settings.maxFileSizeHintV3",{fallback:a(Ie)(a(c).uploadSize)}))+" ",1),se.value?(w(),y(J,{key:0},[M("("+l(a(t)("admin.settings.sizeUnlimited"))+")",1)],64)):(w(),y(J,{key:1},[M("("+l(a(t)("admin.settings.approxSize",{size:a(Ie)(Z(T.value,f.value))}))+")",1)],64))])]),e("div",kn,[e("label",Sn,l(a(t)("admin.settings.allowedFileTypes")),1),m(e("input",{id:"set-allowed-types","onUpdate:modelValue":n[17]||(n[17]=r=>o.allowed_file_types=r),class:"input",placeholder:"jpg, png, pdf / image/*, *"},null,512),[[g,o.allowed_file_types]]),e("p",Cn,l(a(t)("admin.settings.allowedFileTypesHint")),1)])]),e("section",Rn,[e("h3",Bn,l(a(t)("admin.settings.sectionEngine")),1),e("div",Vn,[e("label",null,[M(l(a(t)("admin.settings.engineCurrent"))+": ",1),e("strong",null,l(I.value),1)])]),e("div",Un,[e("label",$n,l(a(t)("admin.settings.sectionEngine")),1),e("div",Tn,[m(e("select",{id:"set-engine-type","onUpdate:modelValue":n[18]||(n[18]=r=>$.value=r),class:"input",style:{flex:"1"}},[e("option",Mn,l(a(t)("admin.settings.engineLocal")),1),e("option",zn,l(a(t)("admin.settings.engineWebdav")),1),e("option",Fn,l(a(t)("admin.settings.engineS3")),1)],512),[[me,$.value]]),e("button",{class:"btn",type:"button",disabled:Y.value,onClick:ke},[Y.value?(w(),y("span",Pn)):j("",!0),M(" "+l(a(t)("admin.settings.engineSwitch")),1)],8,Nn)]),e("p",An,l(a(t)("admin.settings.engineSwitchFail")),1)]),e("h4",En,l(a(t)("admin.settings.engineParamsTitle")),1),$.value==="local"?(w(),y("div",Hn,[e("label",On,l(a(t)("admin.settings.localRoot")),1),m(e("input",{id:"set-local-root","onUpdate:modelValue":n[19]||(n[19]=r=>u.local_storage_path=r),class:"input",placeholder:"/app/data/storage"},null,512),[[g,u.local_storage_path]]),e("p",Dn,l(a(t)("admin.settings.localRootHint")),1)])):j("",!0),$.value==="webdav"?(w(),y(J,{key:1},[e("div",In,[e("label",Ln,l(a(t)("admin.settings.webdavUrl")),1),m(e("input",{id:"set-webdav-url","onUpdate:modelValue":n[20]||(n[20]=r=>u.webdav_url=r),class:"input",placeholder:"https://dav.example.com/dav/"},null,512),[[g,u.webdav_url]]),e("p",Xn,l(a(t)("admin.settings.webdavUrlHint")),1)]),e("div",jn,[e("label",Kn,l(a(t)("admin.settings.webdavRoot")),1),m(e("input",{id:"set-webdav-root","onUpdate:modelValue":n[21]||(n[21]=r=>u.webdav_root_path=r),class:"input",placeholder:"filebox_storage"},null,512),[[g,u.webdav_root_path]]),e("p",Wn,l(a(t)("admin.settings.webdavRootHint")),1)]),e("div",Yn,[e("div",Gn,[e("label",qn,l(a(t)("admin.settings.webdavUser")),1),m(e("input",{id:"set-webdav-user","onUpdate:modelValue":n[22]||(n[22]=r=>u.webdav_username=r),class:"input",autocomplete:"off"},null,512),[[g,u.webdav_username]])]),e("div",Jn,[e("label",Zn,l(a(t)("admin.settings.webdavPass")),1),m(e("input",{id:"set-webdav-pass","onUpdate:modelValue":n[23]||(n[23]=r=>u.webdav_password=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,u.webdav_password]]),e("p",Qn,l(a(t)("admin.settings.secretKeepHint")),1)])])],64)):j("",!0),$.value==="s3"?(w(),y(J,{key:2},[e("div",ei,[e("div",ti,[e("label",si,l(a(t)("admin.settings.s3Endpoint")),1),m(e("input",{id:"set-s3-endpoint","onUpdate:modelValue":n[24]||(n[24]=r=>u.s3_endpoint_url=r),class:"input",placeholder:"https://s3.example.com:9000"},null,512),[[g,u.s3_endpoint_url]]),e("p",ni,l(a(t)("admin.settings.s3EndpointHint")),1)]),e("div",ii,[e("label",oi,l(a(t)("admin.settings.s3Bucket")),1),m(e("input",{id:"set-s3-bucket","onUpdate:modelValue":n[25]||(n[25]=r=>u.s3_bucket_name=r),class:"input",placeholder:"filecodebox"},null,512),[[g,u.s3_bucket_name]])])]),e("div",ai,[e("div",li,[e("label",ri,l(a(t)("admin.settings.s3Region")),1),m(e("input",{id:"set-s3-region","onUpdate:modelValue":n[26]||(n[26]=r=>u.s3_region_name=r),class:"input",placeholder:"auto"},null,512),[[g,u.s3_region_name]])]),e("div",di,[e("label",ui,l(a(t)("admin.settings.s3Style")),1),m(e("select",{id:"set-s3-style","onUpdate:modelValue":n[27]||(n[27]=r=>u.s3_addressing_style=r),class:"input"},[e("option",ci,l(a(t)("admin.settings.styleAuto")),1),e("option",_i,l(a(t)("admin.settings.stylePath")),1),e("option",mi,l(a(t)("admin.settings.styleVirtual")),1)],512),[[me,u.s3_addressing_style]])])]),e("div",fi,[e("div",pi,[e("label",hi,l(a(t)("admin.settings.s3Ak")),1),m(e("input",{id:"set-s3-ak","onUpdate:modelValue":n[28]||(n[28]=r=>u.s3_access_key_id=r),class:"input",autocomplete:"off"},null,512),[[g,u.s3_access_key_id]])]),e("div",gi,[e("label",vi,l(a(t)("admin.settings.s3Sk")),1),m(e("input",{id:"set-s3-sk","onUpdate:modelValue":n[29]||(n[29]=r=>u.s3_secret_access_key=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,u.s3_secret_access_key]]),e("p",bi,l(a(t)("admin.settings.secretKeepHint")),1)])]),e("div",wi,[e("label",yi,l(a(t)("admin.settings.s3Token")),1),m(e("input",{id:"set-s3-token","onUpdate:modelValue":n[30]||(n[30]=r=>u.aws_session_token=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,u.aws_session_token]]),e("p",xi,l(a(t)("admin.settings.secretKeepHint")),1)])],64)):j("",!0),e("div",ki,[e("button",{class:"btn",type:"button",disabled:G.value,onClick:P},[G.value?(w(),y("span",Ci)):j("",!0),M(" "+l(a(t)("admin.settings.engineParamsSave")),1)],8,Si)])]),e("section",Ri,[e("h3",Bi,l(a(t)("admin.settings.sectionUploadRate")),1),e("div",Vi,[e("div",Ui,[e("label",$i,l(a(t)("admin.settings.uploadCount")),1),m(e("input",{id:"set-upload-count","onUpdate:modelValue":n[31]||(n[31]=r=>o.uploadCount=r),class:"input",type:"number",min:1,max:$e,step:"1"},null,512),[[g,o.uploadCount,void 0,{number:!0}]]),e("p",Ti,l(a(t)("admin.settings.uploadCountHint",{max:$e})),1)]),e("div",Mi,[e("label",zi,l(a(t)("admin.settings.uploadMinute")),1),m(e("input",{id:"set-upload-minute","onUpdate:modelValue":n[32]||(n[32]=r=>o.uploadMinute=r),class:"input",type:"number",min:1,max:Te,step:"1"},null,512),[[g,o.uploadMinute,void 0,{number:!0}]]),e("p",Fi,l(a(t)("admin.settings.uploadMinuteHint",{max:Te})),1)])]),e("div",Ni,[e("div",Pi,[e("label",Ai,l(a(t)("admin.settings.uploadRate")),1),e("div",Ei,[m(e("input",{id:"set-upload-rate","onUpdate:modelValue":n[33]||(n[33]=r=>o.uploadRate=r),class:"input",type:"number",min:0,max:fe,step:"1"},null,512),[[g,o.uploadRate,void 0,{number:!0}]]),n[39]||(n[39]=e("span",{class:"unit-suffix"},"MB/s",-1))]),e("p",Hi,l(a(t)("admin.settings.uploadRateHint")),1)]),e("div",Oi,[e("label",Di,l(a(t)("admin.settings.downloadRate")),1),e("div",Ii,[m(e("input",{id:"set-download-rate","onUpdate:modelValue":n[34]||(n[34]=r=>o.downloadRate=r),class:"input",type:"number",min:0,max:fe,step:"1"},null,512),[[g,o.downloadRate,void 0,{number:!0}]]),n[40]||(n[40]=e("span",{class:"unit-suffix"},"MB/s",-1))]),e("p",Li,l(a(t)("admin.settings.downloadRateHint")),1)])])]),e("div",Xi,[e("button",{class:"btn",type:"submit",disabled:R.value},[R.value?(w(),y("span",Ki)):j("",!0),M(" "+l(a(t)("admin.settings.saveAll")),1)],8,ji)]),e("section",Wi,[e("h3",Yi,l(a(t)("admin.settings.sectionPassword")),1),e("p",Gi,l(a(t)("admin.settings.passwordHint")),1),e("form",{onSubmit:De(A,["prevent"])},[e("div",qi,[e("label",Ji,l(a(t)("admin.settings.oldPassword")),1),m(e("input",{id:"pwd-old","onUpdate:modelValue":n[35]||(n[35]=r=>S.old=r),class:"input",type:"password",autocomplete:"current-password"},null,512),[[g,S.old]])]),e("div",Zi,[e("label",Qi,l(a(t)("admin.settings.newPassword")),1),m(e("input",{id:"pwd-new","onUpdate:modelValue":n[36]||(n[36]=r=>S.next=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,S.next]])]),e("div",eo,[e("label",to,l(a(t)("admin.settings.confirmPassword")),1),m(e("input",{id:"pwd-confirm","onUpdate:modelValue":n[37]||(n[37]=r=>S.confirm=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,S.confirm]])]),e("div",so,[e("button",{class:"btn",type:"submit",disabled:ie.value},[ie.value?(w(),y("span",io)):j("",!0),M(" "+l(a(t)("common.save")),1)],8,no)])],32)])],32))]))}}),bo=kt(po,[["__scopeId","data-v-11453c11"]]);export{bo as default}; diff --git a/server/web/dist/assets/SettingsView-DwNwpsFG.css b/server/web/dist/assets/SettingsView-DwNwpsFG.css new file mode 100644 index 0000000..10dfd3e --- /dev/null +++ b/server/web/dist/assets/SettingsView-DwNwpsFG.css @@ -0,0 +1 @@ +.settings-grid[data-v-11453c11]{display:grid;gap:16px}.save-row[data-v-11453c11]{display:flex;justify-content:flex-end}.notify-switch-row[data-v-11453c11]{display:flex;align-items:center;justify-content:space-between;gap:12px}.notify-switch-row label[data-v-11453c11]{margin-bottom:0}.unit-row[data-v-11453c11]{display:flex;gap:8px;align-items:center}.unit-row .input[data-v-11453c11]{flex:1}.unit-select[data-v-11453c11]{flex:0 0 110px!important} diff --git a/server/web/dist/assets/SettingsView-fRnqP1Pf.js b/server/web/dist/assets/SettingsView-fRnqP1Pf.js new file mode 100644 index 0000000..77d755b --- /dev/null +++ b/server/web/dist/assets/SettingsView-fRnqP1Pf.js @@ -0,0 +1,129 @@ +import{a0 as be,h as F,a1 as Qe,a2 as Fe,a3 as We,a4 as et,a5 as Ee,a6 as tt,o as w,a7 as Ne,z as ce,c as y,F as J,b as e,a8 as Ye,a9 as st,e as nt,aa as it,G as Pe,A as ot,ab as at,ac as lt,j as B,ad as He,ae as W,J as rt,I as Ge,af as dt,P as ut,ag as ct,ah as _t,d as we,ai as mt,aj as ft,ak as Me,al as b,n as ze,am as qe,an as pt,ao as ht,ap as gt,aq as X,ar as Oe,as as Je,at as Q,au as vt,u as bt,i as wt,a as yt,t as l,f as a,q as M,w as De,C as m,D as g,g as j,Z as me,s as Ie,R as Ce,S as p,H as de,B as xt,_ as kt}from"./index-QLbKGtH7.js";import{f as St,g as Ct,h as Le,i as Rt}from"./admin-BZX1cFNW.js";import{u as Bt}from"./auth-Yfi2oa1E.js";function Vt(s={},t={defaultBordered:!0}){const d=be(Fe,null);return{inlineThemeDisabled:d?.inlineThemeDisabled,mergedRtlRef:d?.mergedRtlRef,mergedComponentPropsRef:d?.mergedComponentPropsRef,mergedBreakpointsRef:d?.mergedBreakpointsRef,mergedBorderedRef:F(()=>{const{bordered:c}=s;return c!==void 0?c:d?.mergedBorderedRef.value??t.defaultBordered??!0}),mergedClsPrefixRef:d?d.mergedClsPrefixRef:Qe("n"),namespaceRef:F(()=>d?.mergedNamespaceRef.value)}}function Ut(s,t,d){if(!t)return;const c=We(),_=be(Fe,null),h=()=>{const x=d.value;t.mount({id:x===void 0?s:x+s,head:!0,anchorMetaName:Ee,props:{bPrefix:x?`.${x}-`:void 0},ssr:c,parent:_?.styleMountTarget}),_?.preflightStyleDisabled||tt.mount({id:"n-global",head:!0,anchorMetaName:Ee,ssr:c,parent:_?.styleMountTarget})};c?h():et(h)}function z(s,t=1){let d=Pe,c=!1;return typeof s=="function"&&(c=!0,w(),d=ce,s=s()),Ne(s)?c?ce(Xe(s)):Xe(s):Array.isArray(s)?c?y(J,null,s.map(_=>z(()=>_)),-2):e(J,null,s.slice()):s==null||typeof s=="boolean"?d(Ye):d(st,null,String(s),t)}function Xe(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:it(s)}const $t=s=>typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Ne(s)?s:{default:ot(()=>[z(()=>s)])},C=s=>nt(s)||null;function K(s){return typeof s=="string"?s.endsWith("px")?Number(s.slice(0,s.length-2)):Number(s):s}function Re(s){if(s!=null)return typeof s=="number"?`${s}px`:s.endsWith("px")?s:`${s}px`}function Tt(s,t,d,c){d||at("useThemeClass","cssVarsRef is not passed");const _=be(Fe,null),h=_?.mergedThemeHashRef,x=_?.styleMountTarget,R=B(""),o=We();let k;const V=`__${s}`,T=()=>{let f=V;const U=t?t.value:void 0,N=h?.value;N&&(f+=`-${N}`),U&&(f+=`-${U}`);const{themeOverrides:E,builtinThemeOverrides:Z}=c;E&&(f+=`-${He(JSON.stringify(E))}`),Z&&(f+=`-${He(JSON.stringify(Z))}`),R.value=f,k=()=>{const te=d.value;let se="";for(const ne in te)se+=`${ne}: ${te[ne]};`;W(`.${f}`,se).mount({id:f,ssr:o,parent:x}),k=void 0}};return lt(()=>{T()}),{themeClass:R,onRender:()=>{k?.()}}}function Mt(s,t){return rt(s,d=>{d!==void 0&&(t.value=d)}),F(()=>s.value===void 0?t.value:s.value)}function zt(){const s=B(!1);return Ge(()=>{s.value=!0}),dt(s)}function ge(s,...t){if(Array.isArray(s))s.forEach(d=>ge(d,...t));else return s(...t)}function Ae(s){return s.some(t=>Ne(t)?!(t.type===Ye||t.type===J&&!Ae(t.children)):!0)?s:null}function ee(s,t){return t(s&&Ae(s())||null)}function Be(s){return!(s&&Ae(s()))}const je=ct("n-form-item");function Ft(s,{defaultSize:t="medium",mergedSize:d,mergedDisabled:c}={}){const _=be(je,null);_t(je,null);const h=F(d?()=>d(_):()=>{const{size:o}=s;if(o)return o;if(_){const{mergedSize:k}=_;if(k.value!==void 0)return k.value}return t}),x=F(c?()=>c(_):()=>{const{disabled:o}=s;return o!==void 0?o:_?_.disabled.value:!1}),R=F(()=>{const{status:o}=s;return o||_?.mergedValidationStatus.value});return ut(()=>{_&&_.restoreValidation()}),{mergedSizeRef:h,mergedDisabledRef:x,mergedStatusRef:R,nTriggerFormBlur(){_&&_.handleContentBlur()},nTriggerFormChange(){_&&_.handleContentChange()},nTriggerFormFocus(){_&&_.handleContentFocus()},nTriggerFormInput(){_&&_.handleContentInput()}}}var Ze=we({name:"BaseIconSwitchTransition",setup(s,{slots:t}){const d=zt();return()=>(w(),ce(mt,{name:"icon-switch-transition",appear:d.value},$t(t),1032,["appear"]))}});const{cubicBezierEaseInOut:Nt}=ft;function ve({originalTransform:s="",left:t=0,top:d=0,transition:c=`all .3s ${Nt} !important`}={}){return[W("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${s} scale(0.75)`,left:t,top:d,opacity:0}),W("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${s}`,left:t,top:d,opacity:1}),W("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:d,transition:c})]}var Pt=W([W("@keyframes rotator",` + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + }`),Me("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; + `,[b("transition-wrapper",` + position: absolute; + width: 100%; + height: 100%; + `,[ve()]),b("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[ve({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),b("container",` + animation: rotator 3s linear infinite both; + `,[b("icon",` + height: 1em; + width: 1em; + `)])])]);const At=["viewBox"],Et=["values","dur"],Ht=["stroke-width","cx","cy","r","stroke-dasharray","stroke-dashoffset"],Ot=["values","dur"],Dt=["values","dur"],Ve="1.6s",It={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},scale:{type:Number,default:1},radius:{type:Number,default:100}};var Lt=we({name:"BaseLoading",props:{clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},...It},setup(s){Ut("-base-loading",Pt,qe(s,"clsPrefix"))},render(){const{clsPrefix:s,radius:t,strokeWidth:d,stroke:c,scale:_}=this,h=t/_;return w(),y("div",{class:C(`${s}-base-loading`),role:"img","aria-label":"loading"},[Pe(Ze,null,{default:()=>this.show?(w(),y("div",{key:"icon",class:C(`${s}-base-loading__transition-wrapper`)},[e("div",{class:C(`${s}-base-loading__container`)},[(w(),y("svg",{class:C(`${s}-base-loading__icon`),viewBox:`0 0 ${2*h} ${2*h}`,xmlns:"http://www.w3.org/2000/svg",style:ze({color:c})},[e("g",null,[e("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${h} ${h};270 ${h} ${h}`,begin:"0s",dur:Ve,fill:"freeze",repeatCount:"indefinite"},null,8,Et),e("circle",{class:C(`${s}-base-loading__icon`),fill:"none",stroke:"currentColor","stroke-width":d,"stroke-linecap":"round",cx:h,cy:h,r:t-d/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},[e("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${h} ${h};135 ${h} ${h};450 ${h} ${h}`,begin:"0s",dur:Ve,fill:"freeze",repeatCount:"indefinite"},null,8,Ot),e("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:Ve,fill:"freeze",repeatCount:"indefinite"},null,8,Dt)],10,Ht)])],14,At))],2)],2)):(w(),y("div",{key:"placeholder",class:C(`${s}-base-loading__placeholder`)},[z(()=>this.$slots.default?.())],2))},1024)],2)}});function Xt(s){const{primaryColor:t,opacityDisabled:d,borderRadius:c,textColor3:_}=s;return{...ht,iconColor:_,textColor:"white",loadingColor:t,opacityDisabled:d,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:c,railBorderRadiusMedium:c,railBorderRadiusLarge:c,buttonBorderRadiusSmall:c,buttonBorderRadiusMedium:c,buttonBorderRadiusLarge:c,boxShadowFocus:`0 0 0 2px ${gt(t,{alpha:.2})}`}}const jt={common:pt,self:Xt};var Kt=Me("switch",` + height: var(--n-height); + min-width: var(--n-width); + vertical-align: middle; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + outline: none; + justify-content: center; + align-items: center; +`,[b("children-placeholder",` + height: var(--n-rail-height); + display: flex; + flex-direction: column; + overflow: hidden; + pointer-events: none; + visibility: hidden; + `),b("rail-placeholder",` + display: flex; + flex-wrap: none; + `),b("button-placeholder",` + width: calc(1.75 * var(--n-rail-height)); + height: var(--n-rail-height); + `),Me("base-loading",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + font-size: calc(var(--n-button-width) - 4px); + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + `,[ve({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),b("checked, unchecked",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + box-sizing: border-box; + position: absolute; + white-space: nowrap; + top: 0; + bottom: 0; + display: flex; + align-items: center; + line-height: 1; + `),b("checked",` + right: 0; + padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),b("unchecked",` + left: 0; + justify-content: flex-end; + padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),W("&:focus",[b("rail",` + box-shadow: var(--n-box-shadow-focus); + `)]),X("round",[b("rail","border-radius: calc(var(--n-rail-height) / 2);",[b("button","border-radius: calc(var(--n-button-height) / 2);")])]),Oe("disabled",[Oe("icon",[X("rubber-band",[X("pressed",[b("rail",[b("button","max-width: var(--n-button-width-pressed);")])]),b("rail",[W("&:active",[b("button","max-width: var(--n-button-width-pressed);")])]),X("active",[X("pressed",[b("rail",[b("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),b("rail",[W("&:active",[b("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),X("active",[b("rail",[b("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),b("rail",` + overflow: hidden; + height: var(--n-rail-height); + min-width: var(--n-rail-width); + border-radius: var(--n-rail-border-radius); + cursor: pointer; + position: relative; + transition: + opacity .3s var(--n-bezier), + background .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-rail-color); + `,[b("button-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + font-size: calc(var(--n-button-height) - 4px); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + justify-content: center; + align-items: center; + line-height: 1; + `,[ve()]),b("button",` + align-items: center; + top: var(--n-offset); + left: var(--n-offset); + height: var(--n-button-height); + width: var(--n-button-width-pressed); + max-width: var(--n-button-width); + border-radius: var(--n-button-border-radius); + background-color: var(--n-button-color); + box-shadow: var(--n-button-box-shadow); + box-sizing: border-box; + cursor: inherit; + content: ""; + position: absolute; + transition: + background-color .3s var(--n-bezier), + left .3s var(--n-bezier), + opacity .3s var(--n-bezier), + max-width .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `)]),X("active",[b("rail","background-color: var(--n-rail-color-active);")]),X("loading",[b("rail",` + cursor: wait; + `)]),X("disabled",[b("rail",` + cursor: not-allowed; + opacity: .5; + `)])]);const Wt=["aria-checked","tabindex","onClick","onFocus","onBlur","onKeyup","onKeydown"],Yt={...Je.props,size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]};let ue;var Gt=we({name:"Switch",props:Yt,slots:Object,setup(s){ue===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?ue=CSS.supports("width","max(1px)"):ue=!1:ue=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:d,mergedComponentPropsRef:c}=Vt(s),_=Je("Switch","-switch",Kt,jt,s,t),h=Ft(s,{mergedSize(v){if(s.size!==void 0)return s.size;if(v)return v.mergedSize.value;const D=c?.value?.Switch?.size;return D||"medium"}}),{mergedSizeRef:x,mergedDisabledRef:R}=h,o=B(s.defaultValue),k=qe(s,"value"),V=Mt(k,o),T=F(()=>V.value===s.checkedValue),f=B(!1),U=B(!1),N=F(()=>{const{railStyle:v}=s;if(v)return v({focused:U.value,checked:T.value})});function E(v){const{"onUpdate:value":D,onChange:I,onUpdateValue:$}=s,{nTriggerFormInput:Y,nTriggerFormChange:G}=h;D&&ge(D,v),$&&ge($,v),I&&ge(I,v),o.value=v,Y(),G()}function Z(){const{nTriggerFormFocus:v}=h;v()}function te(){const{nTriggerFormBlur:v}=h;v()}function se(){s.loading||R.value||(V.value!==s.checkedValue?E(s.checkedValue):E(s.uncheckedValue))}function ne(){U.value=!0,Z()}function H(){U.value=!1,te(),f.value=!1}function ye(v){s.loading||R.value||v.key===" "&&(V.value!==s.checkedValue?E(s.checkedValue):E(s.uncheckedValue),f.value=!1)}function O(v){s.loading||R.value||v.key===" "&&(v.preventDefault(),f.value=!0)}const _e=F(()=>{const{value:v}=x,{self:{opacityDisabled:D,railColor:I,railColorActive:$,buttonBoxShadow:Y,buttonColor:G,boxShadowFocus:u,loadingColor:xe,textColor:le,iconColor:ke,[Q("buttonHeight",v)]:P,[Q("buttonWidth",v)]:S,[Q("buttonWidthPressed",v)]:ie,[Q("railHeight",v)]:A,[Q("railWidth",v)]:i,[Q("railBorderRadius",v)]:n,[Q("buttonBorderRadius",v)]:r},common:{cubicBezierEaseInOut:q}}=_.value;let L,re,Se;return ue?(L=`calc((${A} - ${P}) / 2)`,re=`max(${A}, ${P})`,Se=`max(${i}, calc(${i} + ${P} - ${A}))`):(L=Re((K(A)-K(P))/2),re=Re(Math.max(K(A),K(P))),Se=K(A)>K(P)?i:Re(K(i)+K(P)-K(A))),{"--n-bezier":q,"--n-button-border-radius":r,"--n-button-box-shadow":Y,"--n-button-color":G,"--n-button-width":S,"--n-button-width-pressed":ie,"--n-button-height":P,"--n-height":re,"--n-offset":L,"--n-opacity-disabled":D,"--n-rail-border-radius":n,"--n-rail-color":I,"--n-rail-color-active":$,"--n-rail-height":A,"--n-rail-width":i,"--n-width":Se,"--n-box-shadow-focus":u,"--n-loading-color":xe,"--n-text-color":le,"--n-icon-color":ke}}),ae=d?Tt("switch",F(()=>x.value[0]),_e,s):void 0;return{handleClick:se,handleBlur:H,handleFocus:ne,handleKeyup:ye,handleKeydown:O,mergedRailStyle:N,pressed:f,mergedClsPrefix:t,mergedValue:V,checked:T,mergedDisabled:R,cssVars:d?void 0:_e,themeClass:ae?.themeClass,onRender:ae?.onRender}},render(){const{mergedClsPrefix:s,mergedDisabled:t,checked:d,mergedRailStyle:c,onRender:_,$slots:h}=this;_?.();const{checked:x,unchecked:R,icon:o,"checked-icon":k,"unchecked-icon":V}=h,T=!(Be(o)&&Be(k)&&Be(V));return w(),y("div",{role:"switch","aria-checked":d,class:C([`${s}-switch`,this.themeClass,T&&`${s}-switch--icon`,d&&`${s}-switch--active`,t&&`${s}-switch--disabled`,this.round&&`${s}-switch--round`,this.loading&&`${s}-switch--loading`,this.pressed&&`${s}-switch--pressed`,this.rubberBand&&`${s}-switch--rubber-band`]),tabindex:this.mergedDisabled?void 0:0,style:ze(this.cssVars),onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},[e("div",{class:C(`${s}-switch__rail`),"aria-hidden":"true",style:ze(c)},[z(()=>ee(x,f=>ee(R,U=>f||U?(w(),y("div",{key:4,"aria-hidden":!0,class:C(`${s}-switch__children-placeholder`)},[e("div",{class:C(`${s}-switch__rail-placeholder`)},[e("div",{class:C(`${s}-switch__button-placeholder`)},null,2),z(()=>f)],2),e("div",{class:C(`${s}-switch__rail-placeholder`)},[e("div",{class:C(`${s}-switch__button-placeholder`)},null,2),z(()=>U)],2)],2)):null))),e("div",{class:C(`${s}-switch__button`)},[z(()=>ee(o,f=>ee(k,U=>ee(V,N=>(w(),ce(Ze,null,{default:()=>this.loading?(w(),ce(Lt,vt({key:"loading",clsPrefix:s,strokeWidth:20},this.spinProps),null,16,["clsPrefix"])):this.checked&&(U||f)?(w(),y("div",{class:C(`${s}-switch__button-icon`),key:U?"checked-icon":"icon"},[z(()=>U||f)],2)):!this.checked&&(N||f)?(w(),y("div",{class:C(`${s}-switch__button-icon`),key:N?"unchecked-icon":"icon"},[z(()=>N||f)],2)):null},1024)))))),z(()=>ee(x,f=>f&&(w(),y("div",{key:"checked",class:C(`${s}-switch__checked`)},[z(()=>f)],2)))),z(()=>ee(R,f=>f&&(w(),y("div",{key:"unchecked",class:C(`${s}-switch__unchecked`)},[z(()=>f)],2))))],2)],6)],46,Wt)}});const qt={class:"toolbar"},Jt={class:"page-title"},Zt={class:"page-sub"},Qt={key:0,class:"loading-block"},es={class:"card"},ts={class:"card-title"},ss={class:"field"},ns={for:"set-site-name"},is={class:"hint"},os={class:"field"},as={for:"set-site-domain"},ls={class:"hint"},rs={class:"card"},ds={class:"card-title"},us={class:"field"},cs={for:"set-logo-url"},_s={class:"logo-input-row"},ms={class:"hint"},fs={class:"logo-preview-row"},ps={class:"logo-box"},hs=["src"],gs={style:{"font-size":"13px",color:"var(--c-text-2)"}},vs={style:{display:"inline-flex","align-items":"center",gap:"8px","font-weight":"700",color:"var(--c-text)"}},bs=["src"],ws={class:"card"},ys={class:"card-title"},xs={class:"field"},ks={for:"set-favicon-url"},Ss={class:"logo-input-row"},Cs={class:"hint"},Rs={class:"logo-preview-row"},Bs={class:"logo-box",style:{width:"44px",height:"44px"}},Vs=["src"],Us={style:{"font-size":"13px",color:"var(--c-text-2)"}},$s={class:"card"},Ts={class:"card-title"},Ms={class:"field"},zs={for:"set-bg-url"},Fs={class:"hint"},Ns={key:0,class:"logo-box",style:{width:"120px"}},Ps=["src"],As={class:"card"},Es={class:"card-title"},Hs={class:"field"},Os={for:"set-footer-text"},Ds={class:"hint"},Is={class:"field"},Ls={for:"set-footer-beian"},Xs={class:"hint"},js={class:"card"},Ks={class:"card-title"},Ws={class:"field notify-switch-row"},Ys={for:"set-notify-enabled"},Gs={class:"field"},qs={for:"set-notify-title"},Js={class:"hint"},Zs={class:"field"},Qs={for:"set-notify-content"},en={class:"hint"},tn={class:"card"},sn={class:"card-title"},nn={class:"field"},on={for:"set-max-save-time"},an={class:"unit-row"},ln=["placeholder"],rn={value:"hour"},dn={value:"day"},un={class:"hint"},cn={class:"field"},_n={for:"set-max-save-count"},mn={class:"hint"},fn={class:"card"},pn={class:"card-title"},hn={class:"field"},gn={for:"set-max-file-size"},vn={class:"unit-row"},bn=["placeholder"],wn={value:"MB"},yn={value:"GB"},xn={class:"hint"},kn={class:"field"},Sn={for:"set-allowed-types"},Cn={class:"hint"},Rn={class:"card"},Bn={class:"card-title"},Vn={class:"field"},Un={class:"field"},$n={for:"set-engine-type"},Tn={class:"unit-row"},Mn={value:"local"},zn={value:"webdav"},Fn={value:"s3"},Nn=["disabled"],Pn={key:0,class:"spin","aria-hidden":"true"},An={class:"hint"},En={class:"card-sub",style:{"margin-top":"8px"}},Hn={key:0,class:"field"},On={for:"set-local-root"},Dn={class:"hint"},In={class:"field"},Ln={for:"set-webdav-url"},Xn={class:"hint"},jn={class:"field"},Kn={for:"set-webdav-root"},Wn={class:"hint"},Yn={class:"field-row"},Gn={class:"field"},qn={for:"set-webdav-user"},Jn={class:"field"},Zn={for:"set-webdav-pass"},Qn={class:"hint"},ei={class:"field-row"},ti={class:"field"},si={for:"set-s3-endpoint"},ni={class:"hint"},ii={class:"field"},oi={for:"set-s3-bucket"},ai={class:"field-row"},li={class:"field"},ri={for:"set-s3-region"},di={class:"field"},ui={for:"set-s3-style"},ci={value:"auto"},_i={value:"path"},mi={value:"virtual"},fi={class:"field-row"},pi={class:"field"},hi={for:"set-s3-ak"},gi={class:"field"},vi={for:"set-s3-sk"},bi={class:"hint"},wi={class:"field"},yi={for:"set-s3-token"},xi={class:"hint"},ki={class:"save-row"},Si=["disabled"],Ci={key:0,class:"spin","aria-hidden":"true"},Ri={class:"card"},Bi={class:"card-title"},Vi={class:"field-row"},Ui={class:"field"},$i={for:"set-upload-count"},Ti={class:"hint"},Mi={class:"field"},zi={for:"set-upload-minute"},Fi={class:"hint"},Ni={class:"field-row",style:{"margin-top":"14px"}},Pi={class:"field"},Ai={for:"set-upload-rate"},Ei={class:"unit-row"},Hi={class:"hint"},Oi={class:"field"},Di={for:"set-download-rate"},Ii={class:"unit-row"},Li={class:"hint"},Xi={class:"save-row"},ji=["disabled"],Ki={key:0,class:"spin","aria-hidden":"true"},Wi={class:"card"},Yi={class:"card-title"},Gi={class:"card-sub"},qi={class:"field"},Ji={for:"pwd-old"},Zi={class:"field"},Qi={for:"pwd-new"},eo={class:"field"},to={for:"pwd-confirm"},so={class:"save-row"},no=["disabled"],io={key:0,class:"spin","aria-hidden":"true"},oo=365*24*60*60,Ue=1e5,ao=10*1024*1024*1024,lo=128,ro=2e3,uo=2e3,co=128,_o=2048,$e=1e4,Te=1440,fe=1024,Ke=3600,pe=86400,oe=1024*1024,he=1024*1024*1024,mo=256*1024,fo="******",po=we({__name:"SettingsView",setup(s){const{t}=bt(),d=wt(),c=yt(),_=Bt(),h=xt(),x=B(!1),R=B(!1),o=Ce({site_name:"",site_domain:"",logo_url:"",favicon_url:"",background_url:"",footer_text:"",footer_beian:"",notify_enabled:!0,notify_title:"",notify_content:"",max_save_seconds:0,max_save_count:0,max_file_size:0,allowed_file_types:"",uploadCount:0,uploadMinute:0,uploadRate:0,downloadRate:0}),k=B(0),V=B("day"),T=B(0),f=B("MB");function U(i){if(i<=0)return{value:0,unit:"day"};if(i%pe===0||i>=pe){const n=i/pe;if(Number.isInteger(n))return{value:n,unit:"day"}}return{value:Math.round(i/Ke*100)/100,unit:"hour"}}function N(i){if(i<=0)return{value:0,unit:"MB"};if(i%he===0||i>=he){const n=i/he;if(Number.isInteger(n))return{value:n,unit:"GB"}}return{value:Math.round(i/oe*100)/100,unit:"MB"}}function E(i,n){const r=n==="day"?i*pe:i*Ke;return O(r,0,oo)}function Z(i,n){const r=n==="GB"?i*he:i*oe;return O(r,0,ao)}const te=F(()=>k.value<=0),se=F(()=>T.value<=0);function ne(i,n){return i==null?n:typeof i=="boolean"?i:typeof i=="number"?i!==0:String(i)!=="0"&&String(i)!=="false"&&String(i)!==""}function H(i,n){const r=Number(i);return Number.isFinite(r)?r:n}function ye(i){return Array.isArray(i)?i.map(n=>String(n).trim()).filter(Boolean):typeof i=="string"?i.split(",").map(n=>n.trim()).filter(Boolean):[]}function O(i,n,r){return Math.min(Math.max(Math.round(i)||0,n),r)}async function _e(){x.value=!0;try{const i=await St();o.site_name=String(p(i,["site_name","name"])??""),o.site_domain=String(p(i,["site_domain","siteDomain"])??""),o.logo_url=String(p(i,["logo_url"])??""),o.favicon_url=String(p(i,["favicon_url"])??""),o.background_url=String(p(i,["background_url","backgroundUrl"])??""),o.footer_text=String(p(i,["footer_text","footerText"])??""),o.footer_beian=String(p(i,["footer_beian","footerBeian"])??""),o.notify_enabled=ne(p(i,["notify_enabled","notifyEnabled"]),!0),o.notify_title=String(p(i,["notify_title","notifyTitle"])??""),o.notify_content=String(p(i,["notify_content","notifyContent"])??""),o.max_save_seconds=H(p(i,["max_save_seconds","maxSaveSeconds"]),0),o.max_save_count=H(p(i,["max_save_count","maxSaveCount"]),0),o.max_file_size=H(p(i,["max_file_size","maxFileSize"]),0);const n=U(o.max_save_seconds);k.value=n.value,V.value=n.unit;const r=N(o.max_file_size);T.value=r.value,f.value=r.unit;const q=ye(p(i,["allowed_file_types","allowedFileTypes"]));o.allowed_file_types=q.join(","),o.uploadCount=H(p(i,["uploadCount","upload_count"]),0),o.uploadMinute=H(p(i,["uploadMinute","upload_minute"]),0),o.uploadRate=Math.round(H(p(i,["upload_rate","uploadRate"]),0)/oe),o.downloadRate=Math.round(H(p(i,["download_rate","downloadRate"]),0)/oe);const L=p(i,["_engine_hint"]),re=L?String(p(L,["storage_backend"])??""):"";I.value=re||String(p(i,["storage_engine"])??"local"),$.value=I.value,xe(i)}catch(i){d.error(i instanceof de?i.msg:t("admin.settings.loadFailed"))}finally{x.value=!1}}function ae(i){const n=document.createElement("input");n.type="file",n.accept="image/*",n.onchange=()=>{const r=n.files?.[0];if(!r)return;if(r.size>mo){d.error(t("admin.settings.imageTooLarge"));return}const q=new FileReader;q.onload=()=>{const L=String(q.result??"");i==="logo"?o.logo_url=L:o.favicon_url=L,d.success(t("admin.settings.imageLoaded"))},q.onerror=()=>d.error(t("admin.settings.imageReadFailed")),q.readAsDataURL(r)},n.click()}async function v(){R.value=!0;try{const i=o.allowed_file_types.split(",").map(n=>n.trim()).filter(Boolean);await Le({site_name:o.site_name.trim(),site_domain:o.site_domain.trim(),logo_url:o.logo_url.trim(),favicon_url:o.favicon_url.trim(),background_url:o.background_url.trim(),footer_text:o.footer_text.trim(),footer_beian:o.footer_beian.trim(),notify_enabled:o.notify_enabled?1:0,notify_title:o.notify_title.trim(),notify_content:o.notify_content.trim(),max_save_seconds:E(k.value,V.value),max_save_count:O(o.max_save_count,0,Ue),max_file_size:Z(T.value,f.value),allowed_file_types:i.length?i:["*"],uploadCount:O(o.uploadCount||0,1,$e),uploadMinute:O(o.uploadMinute||0,1,Te),upload_rate:O(Number(o.uploadRate)||0,0,fe)*oe,download_rate:O(Number(o.downloadRate)||0,0,fe)*oe}),d.success(t("admin.settings.saved")),await c.load()}catch(i){d.error(i instanceof de?i.msg:t("admin.settings.saveFailed"))}finally{R.value=!1}}function D(){o.site_name="文件快传",o.site_domain="",o.logo_url="",o.favicon_url="",o.background_url="",o.footer_text="",o.footer_beian="",o.notify_enabled=!0,o.notify_title="",o.notify_content="",o.max_save_seconds=0,o.max_save_count=0,o.max_file_size=0,o.allowed_file_types="*",o.uploadCount=10,o.uploadMinute=1,o.uploadRate=0,o.downloadRate=0,k.value=0,V.value="day",T.value=0,f.value="MB",d.info(t("admin.settings.restoreDefaultsDone"))}const I=B("local"),$=B("local"),Y=B(!1),G=B(!1),u=Ce({local_storage_path:"",webdav_url:"",webdav_root_path:"filebox_storage",webdav_username:"",webdav_password:"",s3_endpoint_url:"",s3_bucket_name:"",s3_region_name:"auto",s3_access_key_id:"",s3_secret_access_key:"",aws_session_token:"",s3_addressing_style:"auto"});function xe(i){u.local_storage_path=String(p(i,["local_storage_path","localStoragePath"])??""),u.webdav_url=String(p(i,["webdav_url","webdavUrl"])??""),u.webdav_root_path=String(p(i,["webdav_root_path","webdavRootPath"])??"filebox_storage"),u.webdav_username=String(p(i,["webdav_username","webdavUsername"])??""),u.webdav_password=String(p(i,["webdav_password","webdavPassword"])??""),u.s3_endpoint_url=String(p(i,["s3_endpoint_url","s3EndpointUrl"])??""),u.s3_bucket_name=String(p(i,["s3_bucket_name","s3BucketName"])??""),u.s3_region_name=String(p(i,["s3_region_name","s3RegionName"])??"auto"),u.s3_access_key_id=String(p(i,["s3_access_key_id","s3AccessKeyId"])??""),u.s3_secret_access_key=String(p(i,["s3_secret_access_key","s3SecretAccessKey"])??""),u.aws_session_token=String(p(i,["aws_session_token","awsSessionToken"])??""),u.s3_addressing_style=String(p(i,["s3_addressing_style","s3AddressingStyle"])??"auto")}function le(i){const n=i.trim();if(!(n===""||n===fo))return n}async function ke(){Y.value=!0;try{const i=await Ct($.value);I.value=String(i)||$.value,d.success(t("admin.settings.engineSwitchOk",{engine:i})),await c.load()}catch(i){d.error(i instanceof de?i.msg:t("admin.settings.engineSwitchFail"))}finally{Y.value=!1}}async function P(){G.value=!0;try{const i={};if($.value==="local")i.local_storage_path=u.local_storage_path.trim();else if($.value==="webdav"){i.webdav_url=u.webdav_url.trim(),i.webdav_root_path=u.webdav_root_path.trim(),i.webdav_username=u.webdav_username.trim();const n=le(u.webdav_password);n!==void 0&&(i.webdav_password=n)}else{i.s3_endpoint_url=u.s3_endpoint_url.trim(),i.s3_bucket_name=u.s3_bucket_name.trim(),i.s3_region_name=u.s3_region_name.trim()||"auto",i.s3_access_key_id=u.s3_access_key_id.trim();const n=le(u.s3_secret_access_key);n!==void 0&&(i.s3_secret_access_key=n);const r=le(u.aws_session_token);r!==void 0&&(i.aws_session_token=r),i.s3_addressing_style=u.s3_addressing_style}await Le(i),d.success(t("admin.settings.engineParamsSaved"))}catch(i){d.error(i instanceof de?i.msg:t("admin.settings.saveFailed"))}finally{G.value=!1}}const S=Ce({old:"",next:"",confirm:""}),ie=B(!1);async function A(){if(!S.old||!S.next){d.error(t("admin.settings.pwdRequired"));return}if(S.next.length<6){d.error(t("admin.settings.pwdTooShort"));return}if(S.next!==S.confirm){d.error(t("admin.settings.pwdMismatch"));return}ie.value=!0;try{await Rt(S.old,S.next),d.success(t("admin.settings.pwdChanged")),S.old=S.next=S.confirm="",await _.logout(),h.replace({name:"admin-login"})}catch(i){d.error(i instanceof de?i.code===401?t("admin.settings.pwdWrong"):i.msg:t("admin.settings.pwdChangeFailed"))}finally{ie.value=!1}}return Ge(_e),(i,n)=>(w(),y("div",null,[e("div",qt,[e("div",null,[e("h2",Jt,l(a(t)("admin.settings.title")),1),e("p",Zt,l(a(t)("admin.settings.subtitle")),1)]),e("button",{class:"btn btn-ghost",type:"button",onClick:D},l(a(t)("admin.settings.restoreDefaults")),1)]),x.value?(w(),y("div",Qt,[n[38]||(n[38]=e("span",{class:"spin","aria-hidden":"true"},null,-1)),M(" "+l(a(t)("admin.settings.loading")),1)])):(w(),y("form",{key:1,class:"settings-grid",onSubmit:De(v,["prevent"])},[e("section",es,[e("h3",ts,l(a(t)("admin.settings.sectionBasic")),1),e("div",ss,[e("label",ns,l(a(t)("admin.settings.siteName")),1),m(e("input",{id:"set-site-name","onUpdate:modelValue":n[0]||(n[0]=r=>o.site_name=r),class:"input",placeholder:"文件快传",maxlength:"64"},null,512),[[g,o.site_name]]),e("p",is,l(a(t)("admin.settings.siteNameHint")),1)]),e("div",os,[e("label",as,l(a(t)("admin.settings.siteDomain")),1),m(e("input",{id:"set-site-domain","onUpdate:modelValue":n[1]||(n[1]=r=>o.site_domain=r),class:"input",placeholder:"https://share.example.com",maxlength:"256"},null,512),[[g,o.site_domain]]),e("p",ls,l(a(t)("admin.settings.siteDomainHint")),1)])]),e("section",rs,[e("h3",ds,l(a(t)("admin.settings.sectionLogo")),1),e("div",us,[e("label",cs,l(a(t)("admin.settings.logoUrl")),1),e("div",_s,[m(e("input",{id:"set-logo-url","onUpdate:modelValue":n[2]||(n[2]=r=>o.logo_url=r),class:"input",placeholder:"https://…/logo.svg"},null,512),[[g,o.logo_url]]),e("button",{class:"btn btn-ghost",type:"button",onClick:n[3]||(n[3]=r=>ae("logo"))},l(a(t)("admin.settings.uploadImage")),1)]),e("p",ms,l(a(t)("admin.settings.logoHint")),1)]),e("div",fs,[e("div",ps,[e("img",{src:o.logo_url||a(c).displayLogoUrl,alt:"Logo preview"},null,8,hs)]),e("div",gs,[M(l(a(t)("admin.settings.navPreview"))+" ",1),e("span",vs,[e("img",{src:o.logo_url||a(c).displayLogoUrl,alt:"",style:{width:"22px",height:"22px","object-fit":"contain"}},null,8,bs),M(" "+l(o.site_name||a(c).displayName),1)])])])]),e("section",ws,[e("h3",ys,l(a(t)("admin.settings.sectionFavicon")),1),e("div",xs,[e("label",ks,l(a(t)("admin.settings.faviconUrl")),1),e("div",Ss,[m(e("input",{id:"set-favicon-url","onUpdate:modelValue":n[4]||(n[4]=r=>o.favicon_url=r),class:"input",placeholder:"https://…/favicon.png"},null,512),[[g,o.favicon_url]]),e("button",{class:"btn btn-ghost",type:"button",onClick:n[5]||(n[5]=r=>ae("favicon"))},l(a(t)("admin.settings.uploadImage")),1)]),e("p",Cs,l(a(t)("admin.settings.faviconHint")),1)]),e("div",Rs,[e("div",Bs,[e("img",{src:o.favicon_url||a(c).displayFaviconUrl,alt:"Favicon preview"},null,8,Vs)]),e("span",Us,l(a(t)("admin.settings.faviconPreviewHint")),1)])]),e("section",$s,[e("h3",Ts,l(a(t)("admin.settings.sectionBackground")),1),e("div",Ms,[e("label",zs,l(a(t)("admin.settings.backgroundUrl")),1),m(e("input",{id:"set-bg-url","onUpdate:modelValue":n[6]||(n[6]=r=>o.background_url=r),class:"input",placeholder:"https://…/bg.jpg",maxlength:_o},null,512),[[g,o.background_url]]),e("p",Fs,l(a(t)("admin.settings.backgroundHint")),1)]),o.background_url.trim()?(w(),y("div",Ns,[e("img",{src:o.background_url,alt:"Background preview",style:{width:"100%",height:"100%","object-fit":"cover"}},null,8,Ps)])):j("",!0)]),e("section",As,[e("h3",Es,l(a(t)("admin.settings.sectionFooter")),1),e("div",Hs,[e("label",Os,l(a(t)("admin.settings.footerText")),1),m(e("textarea",{id:"set-footer-text","onUpdate:modelValue":n[7]||(n[7]=r=>o.footer_text=r),class:"textarea",style:{"min-height":"72px"},maxlength:uo},null,512),[[g,o.footer_text]]),e("p",Ds,l(a(t)("admin.settings.footerTextHint")),1)]),e("div",Is,[e("label",Ls,l(a(t)("admin.settings.footerBeian")),1),m(e("input",{id:"set-footer-beian","onUpdate:modelValue":n[8]||(n[8]=r=>o.footer_beian=r),class:"input",maxlength:co},null,512),[[g,o.footer_beian]]),e("p",Xs,l(a(t)("admin.settings.footerBeianHint")),1)])]),e("section",js,[e("h3",Ks,l(a(t)("admin.settings.sectionNotify")),1),e("div",Ws,[e("label",Ys,l(a(t)("admin.settings.notifyEnabled")),1),Pe(a(Gt),{id:"set-notify-enabled",value:o.notify_enabled,"onUpdate:value":n[9]||(n[9]=r=>o.notify_enabled=r),size:"small"},null,8,["value"])]),e("div",Gs,[e("label",qs,l(a(t)("admin.settings.notifyTitle")),1),m(e("input",{id:"set-notify-title","onUpdate:modelValue":n[10]||(n[10]=r=>o.notify_title=r),class:"input",maxlength:lo},null,512),[[g,o.notify_title]]),e("p",Js,l(a(t)("admin.settings.notifyTitleHint")),1)]),e("div",Zs,[e("label",Qs,l(a(t)("admin.settings.notifyContent")),1),m(e("textarea",{id:"set-notify-content","onUpdate:modelValue":n[11]||(n[11]=r=>o.notify_content=r),class:"textarea",style:{"min-height":"72px"},maxlength:ro},null,512),[[g,o.notify_content]]),e("p",en,l(a(t)("admin.settings.notifyContentHint")),1)])]),e("section",tn,[e("h3",sn,l(a(t)("admin.settings.sectionSavePolicy")),1),e("div",nn,[e("label",on,l(a(t)("admin.settings.maxSaveTime")),1),e("div",an,[m(e("input",{id:"set-max-save-time","onUpdate:modelValue":n[12]||(n[12]=r=>k.value=r),class:"input",type:"number",min:0,step:"1",placeholder:a(t)("admin.settings.saveTimeUnlimited")},null,8,ln),[[g,k.value,void 0,{number:!0}]]),m(e("select",{"onUpdate:modelValue":n[13]||(n[13]=r=>V.value=r),class:"input unit-select","aria-label":"unit"},[e("option",rn,l(a(t)("admin.settings.unitHour")),1),e("option",dn,l(a(t)("admin.settings.unitDay")),1)],512),[[me,V.value]])]),e("p",un,[M(l(a(t)("admin.settings.maxSaveTimeHint"))+" ",1),te.value?(w(),y(J,{key:0},[M("("+l(a(t)("admin.settings.saveTimeUnlimited"))+")",1)],64)):j("",!0)])]),e("div",cn,[e("label",_n,l(a(t)("admin.settings.maxSaveCount")),1),m(e("input",{id:"set-max-save-count","onUpdate:modelValue":n[14]||(n[14]=r=>o.max_save_count=r),class:"input",type:"number",min:0,max:Ue,step:"1"},null,512),[[g,o.max_save_count,void 0,{number:!0}]]),e("p",mn,l(a(t)("admin.settings.maxSaveCountHint",{max:Ue})),1)])]),e("section",fn,[e("h3",pn,l(a(t)("admin.settings.sectionStorage")),1),e("div",hn,[e("label",gn,l(a(t)("admin.settings.maxFileSizeFriendly")),1),e("div",vn,[m(e("input",{id:"set-max-file-size","onUpdate:modelValue":n[15]||(n[15]=r=>T.value=r),class:"input",type:"number",min:0,step:"1",placeholder:a(t)("admin.settings.sizeUnlimited")},null,8,bn),[[g,T.value,void 0,{number:!0}]]),m(e("select",{"onUpdate:modelValue":n[16]||(n[16]=r=>f.value=r),class:"input unit-select","aria-label":"unit"},[e("option",wn,l(a(t)("admin.settings.unitMB")),1),e("option",yn,l(a(t)("admin.settings.unitGB")),1)],512),[[me,f.value]])]),e("p",xn,[M(l(a(t)("admin.settings.maxFileSizeHintV3",{fallback:a(Ie)(a(c).uploadSize)}))+" ",1),se.value?(w(),y(J,{key:0},[M("("+l(a(t)("admin.settings.sizeUnlimited"))+")",1)],64)):(w(),y(J,{key:1},[M("("+l(a(t)("admin.settings.approxSize",{size:a(Ie)(Z(T.value,f.value))}))+")",1)],64))])]),e("div",kn,[e("label",Sn,l(a(t)("admin.settings.allowedFileTypes")),1),m(e("input",{id:"set-allowed-types","onUpdate:modelValue":n[17]||(n[17]=r=>o.allowed_file_types=r),class:"input",placeholder:"jpg, png, pdf / image/*, *"},null,512),[[g,o.allowed_file_types]]),e("p",Cn,l(a(t)("admin.settings.allowedFileTypesHint")),1)])]),e("section",Rn,[e("h3",Bn,l(a(t)("admin.settings.sectionEngine")),1),e("div",Vn,[e("label",null,[M(l(a(t)("admin.settings.engineCurrent"))+": ",1),e("strong",null,l(I.value),1)])]),e("div",Un,[e("label",$n,l(a(t)("admin.settings.sectionEngine")),1),e("div",Tn,[m(e("select",{id:"set-engine-type","onUpdate:modelValue":n[18]||(n[18]=r=>$.value=r),class:"input",style:{flex:"1"}},[e("option",Mn,l(a(t)("admin.settings.engineLocal")),1),e("option",zn,l(a(t)("admin.settings.engineWebdav")),1),e("option",Fn,l(a(t)("admin.settings.engineS3")),1)],512),[[me,$.value]]),e("button",{class:"btn",type:"button",disabled:Y.value,onClick:ke},[Y.value?(w(),y("span",Pn)):j("",!0),M(" "+l(a(t)("admin.settings.engineSwitch")),1)],8,Nn)]),e("p",An,l(a(t)("admin.settings.engineSwitchFail")),1)]),e("h4",En,l(a(t)("admin.settings.engineParamsTitle")),1),$.value==="local"?(w(),y("div",Hn,[e("label",On,l(a(t)("admin.settings.localRoot")),1),m(e("input",{id:"set-local-root","onUpdate:modelValue":n[19]||(n[19]=r=>u.local_storage_path=r),class:"input",placeholder:"/app/data/storage"},null,512),[[g,u.local_storage_path]]),e("p",Dn,l(a(t)("admin.settings.localRootHint")),1)])):j("",!0),$.value==="webdav"?(w(),y(J,{key:1},[e("div",In,[e("label",Ln,l(a(t)("admin.settings.webdavUrl")),1),m(e("input",{id:"set-webdav-url","onUpdate:modelValue":n[20]||(n[20]=r=>u.webdav_url=r),class:"input",placeholder:"https://dav.example.com/dav/"},null,512),[[g,u.webdav_url]]),e("p",Xn,l(a(t)("admin.settings.webdavUrlHint")),1)]),e("div",jn,[e("label",Kn,l(a(t)("admin.settings.webdavRoot")),1),m(e("input",{id:"set-webdav-root","onUpdate:modelValue":n[21]||(n[21]=r=>u.webdav_root_path=r),class:"input",placeholder:"filebox_storage"},null,512),[[g,u.webdav_root_path]]),e("p",Wn,l(a(t)("admin.settings.webdavRootHint")),1)]),e("div",Yn,[e("div",Gn,[e("label",qn,l(a(t)("admin.settings.webdavUser")),1),m(e("input",{id:"set-webdav-user","onUpdate:modelValue":n[22]||(n[22]=r=>u.webdav_username=r),class:"input",autocomplete:"off"},null,512),[[g,u.webdav_username]])]),e("div",Jn,[e("label",Zn,l(a(t)("admin.settings.webdavPass")),1),m(e("input",{id:"set-webdav-pass","onUpdate:modelValue":n[23]||(n[23]=r=>u.webdav_password=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,u.webdav_password]]),e("p",Qn,l(a(t)("admin.settings.secretKeepHint")),1)])])],64)):j("",!0),$.value==="s3"?(w(),y(J,{key:2},[e("div",ei,[e("div",ti,[e("label",si,l(a(t)("admin.settings.s3Endpoint")),1),m(e("input",{id:"set-s3-endpoint","onUpdate:modelValue":n[24]||(n[24]=r=>u.s3_endpoint_url=r),class:"input",placeholder:"https://s3.example.com:9000"},null,512),[[g,u.s3_endpoint_url]]),e("p",ni,l(a(t)("admin.settings.s3EndpointHint")),1)]),e("div",ii,[e("label",oi,l(a(t)("admin.settings.s3Bucket")),1),m(e("input",{id:"set-s3-bucket","onUpdate:modelValue":n[25]||(n[25]=r=>u.s3_bucket_name=r),class:"input",placeholder:"filecodebox"},null,512),[[g,u.s3_bucket_name]])])]),e("div",ai,[e("div",li,[e("label",ri,l(a(t)("admin.settings.s3Region")),1),m(e("input",{id:"set-s3-region","onUpdate:modelValue":n[26]||(n[26]=r=>u.s3_region_name=r),class:"input",placeholder:"auto"},null,512),[[g,u.s3_region_name]])]),e("div",di,[e("label",ui,l(a(t)("admin.settings.s3Style")),1),m(e("select",{id:"set-s3-style","onUpdate:modelValue":n[27]||(n[27]=r=>u.s3_addressing_style=r),class:"input"},[e("option",ci,l(a(t)("admin.settings.styleAuto")),1),e("option",_i,l(a(t)("admin.settings.stylePath")),1),e("option",mi,l(a(t)("admin.settings.styleVirtual")),1)],512),[[me,u.s3_addressing_style]])])]),e("div",fi,[e("div",pi,[e("label",hi,l(a(t)("admin.settings.s3Ak")),1),m(e("input",{id:"set-s3-ak","onUpdate:modelValue":n[28]||(n[28]=r=>u.s3_access_key_id=r),class:"input",autocomplete:"off"},null,512),[[g,u.s3_access_key_id]])]),e("div",gi,[e("label",vi,l(a(t)("admin.settings.s3Sk")),1),m(e("input",{id:"set-s3-sk","onUpdate:modelValue":n[29]||(n[29]=r=>u.s3_secret_access_key=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,u.s3_secret_access_key]]),e("p",bi,l(a(t)("admin.settings.secretKeepHint")),1)])]),e("div",wi,[e("label",yi,l(a(t)("admin.settings.s3Token")),1),m(e("input",{id:"set-s3-token","onUpdate:modelValue":n[30]||(n[30]=r=>u.aws_session_token=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,u.aws_session_token]]),e("p",xi,l(a(t)("admin.settings.secretKeepHint")),1)])],64)):j("",!0),e("div",ki,[e("button",{class:"btn",type:"button",disabled:G.value,onClick:P},[G.value?(w(),y("span",Ci)):j("",!0),M(" "+l(a(t)("admin.settings.engineParamsSave")),1)],8,Si)])]),e("section",Ri,[e("h3",Bi,l(a(t)("admin.settings.sectionUploadRate")),1),e("div",Vi,[e("div",Ui,[e("label",$i,l(a(t)("admin.settings.uploadCount")),1),m(e("input",{id:"set-upload-count","onUpdate:modelValue":n[31]||(n[31]=r=>o.uploadCount=r),class:"input",type:"number",min:1,max:$e,step:"1"},null,512),[[g,o.uploadCount,void 0,{number:!0}]]),e("p",Ti,l(a(t)("admin.settings.uploadCountHint",{max:$e})),1)]),e("div",Mi,[e("label",zi,l(a(t)("admin.settings.uploadMinute")),1),m(e("input",{id:"set-upload-minute","onUpdate:modelValue":n[32]||(n[32]=r=>o.uploadMinute=r),class:"input",type:"number",min:1,max:Te,step:"1"},null,512),[[g,o.uploadMinute,void 0,{number:!0}]]),e("p",Fi,l(a(t)("admin.settings.uploadMinuteHint",{max:Te})),1)])]),e("div",Ni,[e("div",Pi,[e("label",Ai,l(a(t)("admin.settings.uploadRate")),1),e("div",Ei,[m(e("input",{id:"set-upload-rate","onUpdate:modelValue":n[33]||(n[33]=r=>o.uploadRate=r),class:"input",type:"number",min:0,max:fe,step:"1"},null,512),[[g,o.uploadRate,void 0,{number:!0}]]),n[39]||(n[39]=e("span",{class:"unit-suffix"},"MB/s",-1))]),e("p",Hi,l(a(t)("admin.settings.uploadRateHint")),1)]),e("div",Oi,[e("label",Di,l(a(t)("admin.settings.downloadRate")),1),e("div",Ii,[m(e("input",{id:"set-download-rate","onUpdate:modelValue":n[34]||(n[34]=r=>o.downloadRate=r),class:"input",type:"number",min:0,max:fe,step:"1"},null,512),[[g,o.downloadRate,void 0,{number:!0}]]),n[40]||(n[40]=e("span",{class:"unit-suffix"},"MB/s",-1))]),e("p",Li,l(a(t)("admin.settings.downloadRateHint")),1)])])]),e("div",Xi,[e("button",{class:"btn",type:"submit",disabled:R.value},[R.value?(w(),y("span",Ki)):j("",!0),M(" "+l(a(t)("admin.settings.saveAll")),1)],8,ji)]),e("section",Wi,[e("h3",Yi,l(a(t)("admin.settings.sectionPassword")),1),e("p",Gi,l(a(t)("admin.settings.passwordHint")),1),e("form",{onSubmit:De(A,["prevent"])},[e("div",qi,[e("label",Ji,l(a(t)("admin.settings.oldPassword")),1),m(e("input",{id:"pwd-old","onUpdate:modelValue":n[35]||(n[35]=r=>S.old=r),class:"input",type:"password",autocomplete:"current-password"},null,512),[[g,S.old]])]),e("div",Zi,[e("label",Qi,l(a(t)("admin.settings.newPassword")),1),m(e("input",{id:"pwd-new","onUpdate:modelValue":n[36]||(n[36]=r=>S.next=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,S.next]])]),e("div",eo,[e("label",to,l(a(t)("admin.settings.confirmPassword")),1),m(e("input",{id:"pwd-confirm","onUpdate:modelValue":n[37]||(n[37]=r=>S.confirm=r),class:"input",type:"password",autocomplete:"new-password"},null,512),[[g,S.confirm]])]),e("div",so,[e("button",{class:"btn",type:"submit",disabled:ie.value},[ie.value?(w(),y("span",io)):j("",!0),M(" "+l(a(t)("common.save")),1)],8,no)])],32)])],32))]))}}),bo=kt(po,[["__scopeId","data-v-11453c11"]]);export{bo as default}; diff --git a/server/web/dist/assets/SiteNav.vue_vue_type_script_setup_true_lang-8XmHL8P7.js b/server/web/dist/assets/SiteNav.vue_vue_type_script_setup_true_lang-8XmHL8P7.js new file mode 100644 index 0000000..9edbd7f --- /dev/null +++ b/server/web/dist/assets/SiteNav.vue_vue_type_script_setup_true_lang-8XmHL8P7.js @@ -0,0 +1 @@ +import{d as z,u as E,a as x,c as i,G as B,f as t,A as m,b as a,F as _,r as v,az as S,t as r,h as d,aA as p,aB as T,O as A,o,z as M,q as V,e as b,aC as w}from"./index-QLbKGtH7.js";const D={class:"site-nav"},F=["src"],I={class:"brand-name"},O=["aria-label"],R={class:"nav-controls"},U=["aria-label"],q=["aria-checked","title","onClick"],G={class:"nav-control-icon","aria-hidden":"true"},H=["title"],K=z({__name:"SiteNav",setup($){const{t:s}=E(),c=x(),{mode:u,setMode:k}=w(),g=d(()=>[{to:"/",label:s("nav.home"),match:n=>n==="/"}]);function y(n){return n.match(location.pathname)}const C={light:"☀️",dark:"🌙",system:"💻"},f=d(()=>({light:s("theme.light"),dark:s("theme.dark"),system:s("theme.system")})),L=d(()=>p()==="zh-CN"?"中文":"English");function N(){const n=p()==="zh-CN"?"en-US":"zh-CN";T(n)}return(n,l)=>{const h=A("RouterLink");return o(),i("header",D,[B(h,{class:"brand",to:"/",title:t(s)("nav.homeTitle",{name:t(c).displayName})},{default:m(()=>[a("img",{src:t(c).displayLogoUrl,alt:"Logo",onError:l[0]||(l[0]=e=>e.target.style.visibility="hidden")},null,40,F),a("span",I,r(t(c).displayName),1)]),_:1},8,["title"]),a("nav",{class:"nav-links","aria-label":t(s)("nav.mainNav")},[(o(!0),i(_,null,v(g.value,e=>(o(),M(h,{key:e.to,to:e.to,class:b({"router-link-active":y(e)})},{default:m(()=>[V(r(e.label),1)]),_:2},1032,["to","class"]))),128))],8,O),a("div",R,[a("div",{class:"theme-seg",role:"radiogroup","aria-label":t(s)("theme.label")},[(o(!0),i(_,null,v(t(S),e=>(o(),i("button",{key:e,type:"button",role:"radio","aria-checked":t(u)===e,class:b({active:t(u)===e}),title:f.value[e],onClick:j=>t(k)(e)},[a("span",G,r(C[e]),1)],10,q))),128))],8,U),a("button",{class:"nav-control",type:"button",title:t(s)("lang.label"),onClick:N},[l[1]||(l[1]=a("span",{class:"nav-control-icon","aria-hidden":"true"},"🌐",-1)),a("span",null,r(L.value),1)],8,H)])])}}});export{K as _}; diff --git a/server/web/dist/assets/SiteNav.vue_vue_type_script_setup_true_lang-B5OHbKDQ.js b/server/web/dist/assets/SiteNav.vue_vue_type_script_setup_true_lang-B5OHbKDQ.js new file mode 100644 index 0000000..46527ac --- /dev/null +++ b/server/web/dist/assets/SiteNav.vue_vue_type_script_setup_true_lang-B5OHbKDQ.js @@ -0,0 +1 @@ +import{d as z,u as E,a as x,c as i,G as B,f as t,A as m,b as a,F as _,r as v,az as S,t as r,h as d,aA as p,aB as T,O as A,o,z as M,q as V,e as b,aC as w}from"./index-D7AAbqvI.js";const D={class:"site-nav"},F=["src"],I={class:"brand-name"},O=["aria-label"],R={class:"nav-controls"},U=["aria-label"],q=["aria-checked","title","onClick"],G={class:"nav-control-icon","aria-hidden":"true"},H=["title"],K=z({__name:"SiteNav",setup($){const{t:s}=E(),c=x(),{mode:u,setMode:k}=w(),g=d(()=>[{to:"/",label:s("nav.home"),match:n=>n==="/"}]);function y(n){return n.match(location.pathname)}const C={light:"☀️",dark:"🌙",system:"💻"},f=d(()=>({light:s("theme.light"),dark:s("theme.dark"),system:s("theme.system")})),L=d(()=>p()==="zh-CN"?"中文":"English");function N(){const n=p()==="zh-CN"?"en-US":"zh-CN";T(n)}return(n,l)=>{const h=A("RouterLink");return o(),i("header",D,[B(h,{class:"brand",to:"/",title:t(s)("nav.homeTitle",{name:t(c).displayName})},{default:m(()=>[a("img",{src:t(c).displayLogoUrl,alt:"Logo",onError:l[0]||(l[0]=e=>e.target.style.visibility="hidden")},null,40,F),a("span",I,r(t(c).displayName),1)]),_:1},8,["title"]),a("nav",{class:"nav-links","aria-label":t(s)("nav.mainNav")},[(o(!0),i(_,null,v(g.value,e=>(o(),M(h,{key:e.to,to:e.to,class:b({"router-link-active":y(e)})},{default:m(()=>[V(r(e.label),1)]),_:2},1032,["to","class"]))),128))],8,O),a("div",R,[a("div",{class:"theme-seg",role:"radiogroup","aria-label":t(s)("theme.label")},[(o(!0),i(_,null,v(t(S),e=>(o(),i("button",{key:e,type:"button",role:"radio","aria-checked":t(u)===e,class:b({active:t(u)===e}),title:f.value[e],onClick:j=>t(k)(e)},[a("span",G,r(C[e]),1)],10,q))),128))],8,U),a("button",{class:"nav-control",type:"button",title:t(s)("lang.label"),onClick:N},[l[1]||(l[1]=a("span",{class:"nav-control-icon","aria-hidden":"true"},"🌐",-1)),a("span",null,r(L.value),1)],8,H)])])}}});export{K as _}; diff --git a/server/web/dist/assets/SiteNav.vue_vue_type_script_setup_true_lang-DSt3Q6Wq.js b/server/web/dist/assets/SiteNav.vue_vue_type_script_setup_true_lang-DSt3Q6Wq.js new file mode 100644 index 0000000..0a783b5 --- /dev/null +++ b/server/web/dist/assets/SiteNav.vue_vue_type_script_setup_true_lang-DSt3Q6Wq.js @@ -0,0 +1 @@ +import{d as z,u as E,a as x,c as i,G as B,f as t,A as m,b as a,F as _,r as v,az as S,t as r,h as d,aA as p,aB as T,O as A,o,z as M,q as V,e as b,aC as w}from"./index-DSPQyv0Z.js";const D={class:"site-nav"},F=["src"],I={class:"brand-name"},O=["aria-label"],R={class:"nav-controls"},U=["aria-label"],q=["aria-checked","title","onClick"],G={class:"nav-control-icon","aria-hidden":"true"},H=["title"],K=z({__name:"SiteNav",setup($){const{t:s}=E(),c=x(),{mode:u,setMode:k}=w(),g=d(()=>[{to:"/",label:s("nav.home"),match:n=>n==="/"}]);function y(n){return n.match(location.pathname)}const C={light:"☀️",dark:"🌙",system:"💻"},f=d(()=>({light:s("theme.light"),dark:s("theme.dark"),system:s("theme.system")})),L=d(()=>p()==="zh-CN"?"中文":"English");function N(){const n=p()==="zh-CN"?"en-US":"zh-CN";T(n)}return(n,l)=>{const h=A("RouterLink");return o(),i("header",D,[B(h,{class:"brand",to:"/",title:t(s)("nav.homeTitle",{name:t(c).displayName})},{default:m(()=>[a("img",{src:t(c).displayLogoUrl,alt:"Logo",onError:l[0]||(l[0]=e=>e.target.style.visibility="hidden")},null,40,F),a("span",I,r(t(c).displayName),1)]),_:1},8,["title"]),a("nav",{class:"nav-links","aria-label":t(s)("nav.mainNav")},[(o(!0),i(_,null,v(g.value,e=>(o(),M(h,{key:e.to,to:e.to,class:b({"router-link-active":y(e)})},{default:m(()=>[V(r(e.label),1)]),_:2},1032,["to","class"]))),128))],8,O),a("div",R,[a("div",{class:"theme-seg",role:"radiogroup","aria-label":t(s)("theme.label")},[(o(!0),i(_,null,v(t(S),e=>(o(),i("button",{key:e,type:"button",role:"radio","aria-checked":t(u)===e,class:b({active:t(u)===e}),title:f.value[e],onClick:j=>t(k)(e)},[a("span",G,r(C[e]),1)],10,q))),128))],8,U),a("button",{class:"nav-control",type:"button",title:t(s)("lang.label"),onClick:N},[l[1]||(l[1]=a("span",{class:"nav-control-icon","aria-hidden":"true"},"🌐",-1)),a("span",null,r(L.value),1)],8,H)])])}}});export{K as _}; diff --git a/server/web/dist/assets/admin-BZX1cFNW.js b/server/web/dist/assets/admin-BZX1cFNW.js new file mode 100644 index 0000000..9fc26c7 --- /dev/null +++ b/server/web/dist/assets/admin-BZX1cFNW.js @@ -0,0 +1 @@ +import{v as n,S as e,x as s}from"./index-QLbKGtH7.js";function u(t){return n(s.adminLogin,{method:"POST",json:{password:t}})}function m(){return n(s.adminVerify)}async function l(){await n(s.adminLogout,{method:"POST"})}async function g(t){const a=await n(s.adminFileList,{query:{page:t.page,size:t.size,keyword:t.keyword||void 0}}),o=e(a,["data","list","items","files"])??[],d=Number(e(a,["total","count"])??o.length);return{page:Number(e(a,["page"])??t.page),size:Number(e(a,["size"])??t.size),total:d,data:o.map(i=>({id:Number(e(i,["id"])??0),code:String(e(i,["code"])??""),name:String(e(i,["name"])??`${e(i,["prefix"])??""}${e(i,["suffix"])??""}`),suffix:String(e(i,["suffix"])??""),size:Number(e(i,["size"])??0),isText:!!(e(i,["isText","is_text"])??!1),expiredAt:e(i,["expiredAt","expired_at","expires_at"])??null,expiredCount:e(i,["expiredCount","expired_count"])??null,usedCount:Number(e(i,["usedCount","used_count"])??0),createdAt:e(i,["createdAt","created_at"])??null,isExpired:!!(e(i,["isExpired","is_expired"])??!1)}))}}async function p(t){await n(s.adminFileDelete,{method:"DELETE",json:{id:t}})}async function f(t){await n(s.adminFileBatchDelete,{method:"POST",json:{ids:t}})}async function y(t){await n(s.adminFileUpdate,{method:"PATCH",json:t})}async function w(){const t=await n(s.adminConfigGet);if(t&&typeof t=="object"&&!Array.isArray(t)){const a=t;return e(a,["config","data","settings"])??a}return{}}async function S(t){await n(s.adminConfigUpdate,{method:"PATCH",json:t})}async function _(t){const a=await n(s.adminStorageSwitch,{method:"POST",json:{engine:t}});return String(a?.engine??t)}async function x(t,a){await n(s.adminPasswordUpdate,{method:"PATCH",json:{old_password:t,new_password:a}})}async function b(t){const a=await n(s.adminAuditList,{query:{page:t.page,size:t.size,action:t.action||void 0,result:t.result||void 0,ip:t.ip||void 0,start_time:t.startTime||void 0,end_time:t.endTime||void 0}}),o=e(a,["data","list","items","logs"])??[],d=Number(e(a,["total","count"])??o.length);return{page:Number(e(a,["page"])??t.page),size:Number(e(a,["size"])??t.size),total:d,data:o.map((i,r)=>({id:Number(e(i,["id"])??r+1),action:String(e(i,["action"])??""),result:String(e(i,["result"])??""),fileCode:String(e(i,["file_code","fileCode","code"])??""),fileName:String(e(i,["file_name","fileName","name"])??""),sizeBytes:e(i,["size_bytes","sizeBytes","size"])??null,transferredBytes:e(i,["transferred_bytes","transferredBytes","bytes"])??null,ip:String(e(i,["ip","client_ip","clientIp"])??""),userAgent:String(e(i,["user_agent","userAgent"])??""),deviceOs:String(e(i,["device_os","deviceOs","os"])??""),deviceBrowser:String(e(i,["device_browser","deviceBrowser","browser"])??""),deviceType:String(e(i,["device_type","deviceType"])??""),actor:String(e(i,["actor"])??""),errorMsg:String(e(i,["error_msg","errorMsg","error"])??""),durationMs:e(i,["duration_ms","durationMs","duration"])??null,createdAt:e(i,["created_at","createdAt","time"])??null}))}}export{g as a,f as b,p as c,y as d,b as e,w as f,_ as g,S as h,x as i,l as j,m as k,u as l}; diff --git a/server/web/dist/assets/admin-IDpKsD_2.js b/server/web/dist/assets/admin-IDpKsD_2.js new file mode 100644 index 0000000..363a41e --- /dev/null +++ b/server/web/dist/assets/admin-IDpKsD_2.js @@ -0,0 +1 @@ +import{v as n,S as e,x as s}from"./index-DSPQyv0Z.js";function u(t){return n(s.adminLogin,{method:"POST",json:{password:t}})}function m(){return n(s.adminVerify)}async function l(){await n(s.adminLogout,{method:"POST"})}async function g(t){const a=await n(s.adminFileList,{query:{page:t.page,size:t.size,keyword:t.keyword||void 0}}),o=e(a,["data","list","items","files"])??[],d=Number(e(a,["total","count"])??o.length);return{page:Number(e(a,["page"])??t.page),size:Number(e(a,["size"])??t.size),total:d,data:o.map(i=>({id:Number(e(i,["id"])??0),code:String(e(i,["code"])??""),name:String(e(i,["name"])??`${e(i,["prefix"])??""}${e(i,["suffix"])??""}`),suffix:String(e(i,["suffix"])??""),size:Number(e(i,["size"])??0),isText:!!(e(i,["isText","is_text"])??!1),expiredAt:e(i,["expiredAt","expired_at","expires_at"])??null,expiredCount:e(i,["expiredCount","expired_count"])??null,usedCount:Number(e(i,["usedCount","used_count"])??0),createdAt:e(i,["createdAt","created_at"])??null,isExpired:!!(e(i,["isExpired","is_expired"])??!1)}))}}async function p(t){await n(s.adminFileDelete,{method:"DELETE",json:{id:t}})}async function f(t){await n(s.adminFileBatchDelete,{method:"POST",json:{ids:t}})}async function y(t){await n(s.adminFileUpdate,{method:"PATCH",json:t})}async function w(){const t=await n(s.adminConfigGet);if(t&&typeof t=="object"&&!Array.isArray(t)){const a=t;return e(a,["config","data","settings"])??a}return{}}async function S(t){await n(s.adminConfigUpdate,{method:"PATCH",json:t})}async function _(t){const a=await n(s.adminStorageSwitch,{method:"POST",json:{engine:t}});return String(a?.engine??t)}async function x(t,a){await n(s.adminPasswordUpdate,{method:"PATCH",json:{old_password:t,new_password:a}})}async function b(t){const a=await n(s.adminAuditList,{query:{page:t.page,size:t.size,action:t.action||void 0,result:t.result||void 0,ip:t.ip||void 0,start_time:t.startTime||void 0,end_time:t.endTime||void 0}}),o=e(a,["data","list","items","logs"])??[],d=Number(e(a,["total","count"])??o.length);return{page:Number(e(a,["page"])??t.page),size:Number(e(a,["size"])??t.size),total:d,data:o.map((i,r)=>({id:Number(e(i,["id"])??r+1),action:String(e(i,["action"])??""),result:String(e(i,["result"])??""),fileCode:String(e(i,["file_code","fileCode","code"])??""),fileName:String(e(i,["file_name","fileName","name"])??""),sizeBytes:e(i,["size_bytes","sizeBytes","size"])??null,transferredBytes:e(i,["transferred_bytes","transferredBytes","bytes"])??null,ip:String(e(i,["ip","client_ip","clientIp"])??""),userAgent:String(e(i,["user_agent","userAgent"])??""),deviceOs:String(e(i,["device_os","deviceOs","os"])??""),deviceBrowser:String(e(i,["device_browser","deviceBrowser","browser"])??""),deviceType:String(e(i,["device_type","deviceType"])??""),actor:String(e(i,["actor"])??""),errorMsg:String(e(i,["error_msg","errorMsg","error"])??""),durationMs:e(i,["duration_ms","durationMs","duration"])??null,createdAt:e(i,["created_at","createdAt","time"])??null}))}}export{g as a,f as b,p as c,y as d,b as e,w as f,_ as g,S as h,x as i,l as j,m as k,u as l}; diff --git a/server/web/dist/assets/admin-uFxGdgNa.js b/server/web/dist/assets/admin-uFxGdgNa.js new file mode 100644 index 0000000..64c22f0 --- /dev/null +++ b/server/web/dist/assets/admin-uFxGdgNa.js @@ -0,0 +1 @@ +import{v as n,S as e,x as s}from"./index-D7AAbqvI.js";function u(t){return n(s.adminLogin,{method:"POST",json:{password:t}})}function m(){return n(s.adminVerify)}async function l(){await n(s.adminLogout,{method:"POST"})}async function g(t){const a=await n(s.adminFileList,{query:{page:t.page,size:t.size,keyword:t.keyword||void 0}}),o=e(a,["data","list","items","files"])??[],d=Number(e(a,["total","count"])??o.length);return{page:Number(e(a,["page"])??t.page),size:Number(e(a,["size"])??t.size),total:d,data:o.map(i=>({id:Number(e(i,["id"])??0),code:String(e(i,["code"])??""),name:String(e(i,["name"])??`${e(i,["prefix"])??""}${e(i,["suffix"])??""}`),suffix:String(e(i,["suffix"])??""),size:Number(e(i,["size"])??0),isText:!!(e(i,["isText","is_text"])??!1),expiredAt:e(i,["expiredAt","expired_at","expires_at"])??null,expiredCount:e(i,["expiredCount","expired_count"])??null,usedCount:Number(e(i,["usedCount","used_count"])??0),createdAt:e(i,["createdAt","created_at"])??null,isExpired:!!(e(i,["isExpired","is_expired"])??!1)}))}}async function p(t){await n(s.adminFileDelete,{method:"DELETE",json:{id:t}})}async function f(t){await n(s.adminFileBatchDelete,{method:"POST",json:{ids:t}})}async function y(t){await n(s.adminFileUpdate,{method:"PATCH",json:t})}async function w(){const t=await n(s.adminConfigGet);if(t&&typeof t=="object"&&!Array.isArray(t)){const a=t;return e(a,["config","data","settings"])??a}return{}}async function S(t){await n(s.adminConfigUpdate,{method:"PATCH",json:t})}async function _(t){const a=await n(s.adminStorageSwitch,{method:"POST",json:{engine:t}});return String(a?.engine??t)}async function x(t,a){await n(s.adminPasswordUpdate,{method:"PATCH",json:{old_password:t,new_password:a}})}async function b(t){const a=await n(s.adminAuditList,{query:{page:t.page,size:t.size,action:t.action||void 0,result:t.result||void 0,ip:t.ip||void 0,start_time:t.startTime||void 0,end_time:t.endTime||void 0}}),o=e(a,["data","list","items","logs"])??[],d=Number(e(a,["total","count"])??o.length);return{page:Number(e(a,["page"])??t.page),size:Number(e(a,["size"])??t.size),total:d,data:o.map((i,r)=>({id:Number(e(i,["id"])??r+1),action:String(e(i,["action"])??""),result:String(e(i,["result"])??""),fileCode:String(e(i,["file_code","fileCode","code"])??""),fileName:String(e(i,["file_name","fileName","name"])??""),sizeBytes:e(i,["size_bytes","sizeBytes","size"])??null,transferredBytes:e(i,["transferred_bytes","transferredBytes","bytes"])??null,ip:String(e(i,["ip","client_ip","clientIp"])??""),userAgent:String(e(i,["user_agent","userAgent"])??""),deviceOs:String(e(i,["device_os","deviceOs","os"])??""),deviceBrowser:String(e(i,["device_browser","deviceBrowser","browser"])??""),deviceType:String(e(i,["device_type","deviceType"])??""),actor:String(e(i,["actor"])??""),errorMsg:String(e(i,["error_msg","errorMsg","error"])??""),durationMs:e(i,["duration_ms","durationMs","duration"])??null,createdAt:e(i,["created_at","createdAt","time"])??null}))}}export{g as a,f as b,p as c,y as d,b as e,w as f,_ as g,S as h,x as i,l as j,m as k,u as l}; diff --git a/server/web/dist/assets/auth-DjiKbqje.js b/server/web/dist/assets/auth-DjiKbqje.js new file mode 100644 index 0000000..77f3613 --- /dev/null +++ b/server/web/dist/assets/auth-DjiKbqje.js @@ -0,0 +1 @@ +import{av as o,aw as a,W as r}from"./index-D7AAbqvI.js";import{j as n,k as i,l as c}from"./admin-uFxGdgNa.js";const s="fcb_admin_flag",l=o("auth",{state:()=>({token:r(),checked:!1}),getters:{isAuthed:t=>!!t.token},actions:{async login(t){const e=(await c(t))?.token;if(!e)throw new Error("登录响应缺少 token");this.token=e,a(e);try{localStorage.setItem(s,"1")}catch{}this.checked=!0},async verify(){if(!this.token)return!1;try{return await i(),this.checked=!0,!0}catch{return this.reset(),!1}},async logout(){try{this.token&&await n()}catch{}this.reset()},reset(){this.token="",this.checked=!1,a("");try{localStorage.removeItem(s)}catch{}}}});export{l as u}; diff --git a/server/web/dist/assets/auth-Yfi2oa1E.js b/server/web/dist/assets/auth-Yfi2oa1E.js new file mode 100644 index 0000000..d7a2154 --- /dev/null +++ b/server/web/dist/assets/auth-Yfi2oa1E.js @@ -0,0 +1 @@ +import{av as o,aw as a,W as r}from"./index-QLbKGtH7.js";import{j as n,k as i,l as c}from"./admin-BZX1cFNW.js";const s="fcb_admin_flag",l=o("auth",{state:()=>({token:r(),checked:!1}),getters:{isAuthed:t=>!!t.token},actions:{async login(t){const e=(await c(t))?.token;if(!e)throw new Error("登录响应缺少 token");this.token=e,a(e);try{localStorage.setItem(s,"1")}catch{}this.checked=!0},async verify(){if(!this.token)return!1;try{return await i(),this.checked=!0,!0}catch{return this.reset(),!1}},async logout(){try{this.token&&await n()}catch{}this.reset()},reset(){this.token="",this.checked=!1,a("");try{localStorage.removeItem(s)}catch{}}}});export{l as u}; diff --git a/server/web/dist/assets/auth-o4aHzrA6.js b/server/web/dist/assets/auth-o4aHzrA6.js new file mode 100644 index 0000000..440e257 --- /dev/null +++ b/server/web/dist/assets/auth-o4aHzrA6.js @@ -0,0 +1 @@ +import{av as o,aw as a,W as r}from"./index-DSPQyv0Z.js";import{j as n,k as i,l as c}from"./admin-IDpKsD_2.js";const s="fcb_admin_flag",l=o("auth",{state:()=>({token:r(),checked:!1}),getters:{isAuthed:t=>!!t.token},actions:{async login(t){const e=(await c(t))?.token;if(!e)throw new Error("登录响应缺少 token");this.token=e,a(e);try{localStorage.setItem(s,"1")}catch{}this.checked=!0},async verify(){if(!this.token)return!1;try{return await i(),this.checked=!0,!0}catch{return this.reset(),!1}},async logout(){try{this.token&&await n()}catch{}this.reset()},reset(){this.token="",this.checked=!1,a("");try{localStorage.removeItem(s)}catch{}}}});export{l as u}; diff --git a/server/web/dist/assets/docsSource-CDKA_IVC.js b/server/web/dist/assets/docsSource-CDKA_IVC.js new file mode 100644 index 0000000..8f588ec --- /dev/null +++ b/server/web/dist/assets/docsSource-CDKA_IVC.js @@ -0,0 +1,2517 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DSPQyv0Z.js","assets/index-CtyCxWf5.css"])))=>i.map(i=>d[i]); +import{ay as i}from"./index-DSPQyv0Z.js";const p='# API 概述\n\n文件快传 Go 版(26.9)对外提供一套 REST API,覆盖文本/文件分享、分片上传、\n预签名直传、管理后台与审计日志查询。本文档与 `server/internal/api/` 实际实现逐一对齐,\n交互式规范见站内 `/openapi`(源文件 `docs/openapi.yaml`)。\n\n## Base URL\n\n- 服务默认监听 `:8466`,Base URL 为 `http://:8466`(下文示例统一用 `http://localhost:8466`)。\n- **业务路由挂根路径**(与参考实现一致):`/share/*`、`/chunk/*`、`/presign/*`、`/admin/*`、`/setup`。\n- 仅两个公共接口带 `/api/v1` 前缀:`/api/v1/health`、`/api/v1/config`。\n\n## 统一响应封装\n\n所有 JSON 接口返回统一结构,HTTP 状态码与 `code` 一致;失败时 `data` 缺省:\n\n```json\n{ "code": 200, "msg": "ok", "data": { } }\n```\n\n失败示例(404):\n\n```json\n{ "code": 404, "msg": "文件不存在" }\n```\n\n个别端点直接返回原始内容而非 JSON 封装(文档中已单独标注):\n\n| 端点 | 响应形式 |\n|---|---|\n| `GET /share/select?code=`(文本分享) | `text/plain; charset=utf-8` 正文 |\n| `GET /share/select?code=`(文件分享) | 文件二进制流(200/206,支持 Range) |\n| `GET /share/download?key=&code=`(文件分享) | 文件二进制流(200/206,支持 Range) |\n| `GET /admin/file/download?id=`(文件分享) | 文件二进制流 |\n| `GET /setup` / `POST /setup`(表单) | HTML 向导/成功页 |\n\n## 字段命名约定\n\n- 接口字段以 **snake_case** 为主(`file_code`、`size_bytes`)。\n- 文件列表与审计日志的行字段同时输出 **snake_case 与 camelCase 双份**(如 `expired_at` 与 `expiredAt`),文档以 snake_case 为准,camelCase 仅为前端兼容保留。\n\n## 认证\n\n- 游客接口无需认证;是否允许游客上传由配置 `openUpload` 控制(关闭时上传类接口要求管理员 `Authorization: Bearer `,否则 403)。\n- 管理接口(`/admin/login` 除外)一律要求 `Authorization: Bearer `,无效/缺失返回 401。\n- 详情见《认证与限流》。\n\n## 限流\n\n按 IP(可信代理场景解析 `X-Forwarded-For`)维度限流,超限返回 **423**:\n\n| 规则 | 计数时机 | 默认(次/窗口) | 相关配置 |\n|---|---|---|---|\n| `upload` | **上传成功**后计数 | 10 次 / 1 分钟 | `uploadCount` / `uploadMinute` |\n| `error` | 取件失败(404/过期)时计数 | 10 次 / 1 分钟 | `errorCount` / `errorMinute` |\n| `login` | 登录失败时计数 | 5 次 / 15 分钟 | `loginCount` / `loginMinute` |\n| `metadata` | 每次访问即计数 | 同 `error` | `errorCount` / `errorMinute` |\n\n## 初始化守卫\n\n系统未初始化(未设置管理员密码)时,除 `GET|POST /setup` 与 `GET /api/v1/health` 外,\n**所有接口一律返回 428**:\n\n```json\n{ "code": 428, "msg": "系统未初始化,请先完成初始化" }\n```\n\n首次部署请先访问 `GET /setup` 获取 HTML 向导,或直接 `POST /setup` 完成初始化(见《管理后台 API》初始化章节)。\n\n## 审计\n\n所有上传/下载端点经审计中间件自动落库(操作时间/IP/UA/设备解析/动作/结果/字节数/耗时/角色),\n失败与被拒绝的请求同样记录;管理端经 `GET /admin/audit/list` 查询,详见《审计日志》。\n\n## 端点总览\n\n| 模块 | 端点 |\n|---|---|\n| 公共 | `GET /api/v1/health` · `GET /api/v1/config` · `GET /robots.txt`(输出 `robotsText` 配置) |\n| 初始化 | `GET /setup` · `POST /setup` |\n| 文本分享 | `POST /share/text` |\n| 文件分享 | `POST /share/file` |\n| 查询与取件 | `GET/POST /share/metadata` · `GET /share/select` · `POST /share/select` · `GET /share/download` |\n| 分片上传 | `POST /chunk/upload/init` · `POST /chunk/upload/{uploadID}/{chunkIndex}` · `GET /chunk/upload/status/{uploadID}` · `POST /chunk/upload/complete/{uploadID}` · `DELETE /chunk/upload/{uploadID}` |\n| 预签名直传 | `POST /presign/upload/init` · `PUT /presign/upload/proxy/{uploadID}` · `POST /presign/upload/confirm/{uploadID}` · `GET /presign/upload/status/{uploadID}` · `DELETE /presign/upload/{uploadID}` |\n| 管理后台 | `POST /admin/login` · `GET /admin/verify` · `POST /admin/logout` · `GET /admin/dashboard` · 文件管理 `/admin/file/*` · 配置 `/admin/config/*` · 密码 `/admin/settings/password` |\n| 审计日志 | `GET /admin/audit/list`(别名 `/admin/audit/logs`) |\n\n## 时间与编码\n\n- 时间字段一律 RFC 3339(如 `2025-06-01T12:00:00+08:00`);管理员会话过期时间为 Unix 秒。\n- 请求体支持 `application/json` 与 `application/x-www-form-urlencoded`(上传类为 `multipart/form-data`),文档示例以 JSON/curl 为主。\n- CORS:公开接口放开(Bearer 认证,无 Cookie CSRF 面);**管理端 `/admin/*` 已收紧**——携带 Origin 且既不同源也不在 `site_domain` 白名单时不下发 CORS 头(浏览器拦截跨域读取)。\n\n## 交互式文档\n\n- 站内文档页:`/docs`(渲染本目录 markdown,构建时内嵌)。\n- Swagger UI:`/openapi`(渲染 `docs/openapi.yaml`,构建时内嵌)。\n- OpenAPI 规范源文件为仓库内 `docs/openapi.yaml`;如需经后端直接下载,\n 需在部署时把它拷贝进前端静态产物 `web/dist/`(未拷贝时该路径按 SPA 回退返回页面)。\n',d='# 认证与限流\n\n## 角色\n\n| 角色 | 能力 |\n|---|---|\n| 游客(无 Authorization 头) | 取件、查询元信息;`openUpload=1` 时可上传 |\n| 管理员(`Authorization: Bearer `) | 全部能力 + `/admin/*` 管理接口 |\n\n## 管理员令牌\n\n- 由 `POST /admin/login` 用管理员密码换取,HS256 JWT,默认有效期 **7 天**(`adminSessionExpire`,1~365 整天,26.9 起由 30 天缩短)。\n- 请求头格式:`Authorization: Bearer `。\n- **改密/重置管理员密码会轮换 `jwt_secret`,所有已签发令牌立即失效**(401)。\n- 密码存储为 bcrypt(cost 12);历史 `sha256$`/明文格式在登录成功后自动升级重哈希,无需手动迁移。\n- 游客上传关闭(`openUpload=0`)时,上传类接口也可用管理员 Bearer 令牌通过鉴权。\n\n## 认证失败语义\n\n| 场景 | 状态码 |\n|---|---|\n| `/admin/*` 缺失/无效令牌 | 401 |\n| `POST /admin/login` 密码错误 | 401(并计入 login 限流) |\n| 游客上传被关闭且未携带有效令牌 | 403 |\n| 代理下载 `key` 校验失败 | 403 |\n\n## 未初始化(428)\n\n管理员密码未设置(`admin_token` 为空)时,除 `GET|POST /setup` 与 `GET /api/v1/health` 外全部接口返回 428。\n完成 `POST /setup` 初始化后自动解除。\n\n## 限流规则\n\n限流按 **客户端 IP** 维度(配置 `FCB_TRUSTED_PROXIES` 声明可信代理 CIDR,命中时解析 `X-Forwarded-For` 取真实 IP),\n窗口计数原子化存储于缓存(未配置 Redis 时为进程内存)。**超限一律返回 423**:\n\n```json\n{ "code": 423, "msg": "请求次数过多,请稍后再试" }\n```\n\n| 规则 | 生效端点 | 计数时机 | 默认 | 配置键 |\n|---|---|---|---|---|\n| `upload` | `/share/text`、`/share/file`、`/chunk/upload/*`、`/presign/upload/*` | **成功后**计数(进入时仅检查) | 10 次 / 1 分钟 | `uploadCount`、`uploadMinute` |\n| `error` | `/share/select`、`/share/download` | 取件失败(不存在/过期/鉴权失败)时计数 | 10 次 / 1 分钟 | `errorCount`、`errorMinute` |\n| `login` | `/admin/login` | 登录失败时计数 | 5 次 / 15 分钟 | `loginCount`、`loginMinute` |\n| `metadata` | `/share/metadata` | **每次访问即计数**(含失败) | 同 `error` | `errorCount`、`errorMinute` |\n\n- 规则值可由管理端 `PATCH /admin/config/update` 运行时修改,立即生效(无需重启)。\n- 取件成功(`/share/select`、`/share/download`)不计入 `error` 限流。\n\n## 代理下载令牌(key)\n\n`GET /share/download` 的 `key` 由服务端按窗口生成:\n`sha256(code + timeFactor + "000" + jwt_secret)`,`timeFactor = unix秒 / 1000`(约 16.7 分钟一个窗口)。\n服务端**同时接受当前与上一窗口**的令牌,避免窗口边界竞态。令牌通过 `POST /share/select` 的响应\n`download_url` 下发,客户端不应自行构造。\n\n## 示例\n\n登录获取令牌:\n\n```bash\ncurl -s http://localhost:8466/admin/login \\\n -H \'Content-Type: application/json\' \\\n -d \'{"password":"your-admin-password"}\'\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "id": "admin", "username": "admin",\n "token": "eyJhbGciOiJIUzI1NiIs...",\n "token_type": "Bearer",\n "expires_at": 1750000000,\n "expires_in": 604800\n }\n}\n```\n\n携带令牌调用管理接口:\n\n```bash\nTOKEN="eyJhbGciOiJIUzI1NiIs..."\ncurl -s http://localhost:8466/admin/dashboard -H "Authorization: Bearer $TOKEN"\n```\n\n校验令牌是否有效:\n\n```bash\ncurl -s http://localhost:8466/admin/verify -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": { "id": "admin", "username": "admin", "token": "eyJhbGciOiJIUzI1NiIs...", "token_type": "Bearer", "expires_at": 1750000000 }\n}\n```\n\n令牌失效时:\n\n```json\n{ "code": 401, "msg": "令牌无效或已过期" }\n```\n',c='# 文本分享\n\n创建纯文本分享,返回取件码。文本大小上限 **222KB**(超限建议改用文件分享);请求体全局上限 1MiB,`Content-Length` >441KB 时读前直接 403。\n经审计中间件落库(action=upload)。\n\n## POST /share/text\n\n**请求参数**(`application/x-www-form-urlencoded`,亦支持 multipart;`text` 为必需):\n\n| 参数 | 类型 | 必需 | 默认 | 说明 |\n|---|---|---|---|---|\n| `code` | string,可选;自定义提取码,5-8 位字母或数字(空=随机生成;占用 400「该提取码已被占用」) |\n| `text` | string | ✅ | - | 文本内容(≤222KB,按 UTF-8 字节数) |\n| `expire_value` | int | ❌ | `1` | 过期值(配合 `expire_style`) |\n| `expire_style` | string | ❌ | `day` | `day`/`hour`/`minute`/`count`/`forever`(须在站点允许列表内) |\n\n过期语义:\n\n- `day`/`hour`/`minute`:按时间过期,`expired_count = -1`。\n- `count`:按次数过期,取件 `expire_value` 次后失效(`expired_count = expire_value`);\n **v2 需求 ④**:`max_save_count>0` 时 `expire_value` 不得超出该上限,超限 403。\n- `forever`:永久(需站点允许;`max_save_seconds>0` 时其他方式受最长保存上限约束,超限 403)。\n\n> 可选值与上限来自公开配置 `GET /api/v1/config`(`expireStyle`、`max_save_seconds`、\n> `max_save_count`),上传页动态读取并在范围内选择;管理端改策略后立即生效。\n\n**curl 示例**:\n\n```bash\n# 自定义提取码(可选):-d \'code=MYCODE1\'\ncurl -s -X POST http://localhost:8466/share/text \\\n -d \'text=你好,文件快传\' \\\n -d \'expire_value=1\' \\\n -d \'expire_style=day\'\n```\n\n**成功响应**(200):\n\n```json\n{ "code": 200, "msg": "ok", "data": { "code": "8XQ2M" } }\n```\n\n`data.code` 为 5 位取件码(数字或大写字母+数字,取决于 `code_generate_type`)。\n\n**错误响应**:\n\n```json\n{ "code": 400, "msg": "过期时间类型错误" }\n```\n\n```json\n{ "code": 400, "msg": "过期时间值必须大于 0" }\n```\n\n```json\n{ "code": 403, "msg": "内容过多,建议采用文件形式" }\n```\n\n```json\n{ "code": 403, "msg": "限制最长时间为 7天,可换用其他方式" }\n```\n\n```json\n{ "code": 403, "msg": "限制次数最多为 5 次" }\n```\n\n```json\n{ "code": 423, "msg": "请求次数过多,请稍后再试" }\n```\n\n> 游客上传关闭(`openUpload=0`)时需携带管理员令牌,否则 403:\n> `{"code":403,"msg":"本站未开启游客上传,如需上传请先登录后台"}`\n\n## 取回文本\n\n文本分享的取回走统一的取件接口(消耗次数):\n\n- `GET /share/select?code=` → `text/plain` 正文即文本内容(响应头 `Content-Disposition` 带文件名,无扩展名时为 `.txt`)。\n- `POST /share/select`(`{"code":"8XQ2M"}`)→ JSON,`data.text` / `data.content` 为文本内容。\n\n示例:\n\n```bash\ncurl -s "http://localhost:8466/share/select?code=8XQ2M"\n```\n\n```text\n你好,文件快传\n```\n\n**v3.1 变更**:① 支持 JSON 提交(`Content-Type: application/json`,字段同名);② 空文本 400「分享内容不能为空」;③ 可选 `code` 自定义提取码(5-8 位字母数字,占用 400)。\n',l='# 文件分享\n\n上传单个文件并创建分享。支持扩展名/MIME 白名单 + **magic bytes 防伪**(读文件前 64 字节校验,\n伪造类型返回 403)。经审计中间件落库(action=upload,记录文件总大小与实际传输字节)。\n\n## POST /share/file\n\n**请求参数**(`multipart/form-data`):\n\n| 参数 | 类型 | 必需 | 默认 | 说明 |\n|---|---|---|---|---|\n| `code` | string,可选;自定义提取码,5-8 位字母或数字(空=随机生成;占用 400) |\n| `file` | file | ✅ | - | 上传的文件(大小 ≤ 生效上限:`max_file_size>0` 时为其,否则 `uploadSize`) |\n| `expire_value` | int | ❌ | `1` | 过期值(配合 `expire_style`;`count` 型受 `max_save_count` 约束) |\n| `expire_style` | string | ❌ | `day` | `day`/`hour`/`minute`/`count`/`forever`(须在 `expireStyle` 白名单内) |\n\n**curl 示例**:\n\n```bash\ncurl -s -X POST http://localhost:8466/share/file \\\n -F \'file=@./report.pdf;type=application/pdf\' \\\n -F \'expire_value=7\' \\\n -F \'expire_style=day\'\n```\n\n**成功响应**(200):\n\n```json\n{ "code": 200, "msg": "ok", "data": { "code": "K3P9W", "name": "report.pdf" } }\n```\n\n**错误响应**:\n\n```json\n{ "code": 400, "msg": "缺少上传文件 file 字段" }\n```\n\n```json\n{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" }\n```\n\n> 大小上限为动态策略(v2 需求 ④⑩):管理端改 `max_file_size`(0=回落 `uploadSize`)后\n> **下一次上传立即按新上限执行**,无需重启;上限值可经 `GET /api/v1/config` 的\n> `max_file_size`/`maxFileSize` 字段读取。\n\n```json\n{ "code": 403, "msg": "不允许上传该类型文件" }\n```\n\n```json\n{ "code": 403, "msg": "文件内容与扩展名不匹配,疑似伪造类型" }\n```\n\n```json\n{ "code": 403, "msg": "限制最长时间为 7天,可换用其他方式" }\n```\n\n```json\n{ "code": 403, "msg": "限制次数最多为 5 次" }\n```\n\n```json\n{ "code": 403, "msg": "请求次数过多,请稍后再试" }\n```\n\n```json\n{ "code": 507, "msg": "存储空间已达到管理员设置的容量上限" }\n```\n\n```json\n{ "code": 503, "msg": "存储服务不可用,请稍后再试" }\n```\n\n## 文件类型白名单\n\n由配置 `allowed_file_types` 控制(管理端可改):\n\n- `*`:不限制(默认)。\n- 扩展名规则:`.png`、`pdf`(自动补点)等,按文件名后缀匹配。\n- MIME 规则:`image/*`、`application/pdf` 等,按请求 `Content-Type` 通配匹配。\n\n已知类型(png/jpg/gif/webp/bmp/pdf/zip/rar/7z/gz/mp3/mp4/exe/elf)会做 **magic bytes 交叉校验**:\n扩展名或 Content-Type 声明了已知类型,但文件头不匹配时拒绝(403「疑似伪造类型」)。\n\n## 下载取件\n\n- `GET /share/select?code=`:消耗 1 次取件,返回文件流(`200` 全量 / `206` 区间,\n 支持 `Range` 请求头;响应含 `Accept-Ranges: bytes`、`Content-Disposition: attachment; filename*=UTF-8\'\'...`)。\n- `POST /share/select`:返回详情 JSON,`download_url` 为代理下载地址(见下)。\n- `GET /share/download?key=&code=`:代理下载,消耗 1 次,同样支持 Range。\n\nRange 示例(取前 1024 字节):\n\n```bash\ncurl -s -H \'Range: bytes=0-1023\' -o part.bin \\\n "http://localhost:8466/share/select?code=K3P9W"\n```\n\n区间越界返回:\n\n```json\n{ "code": 416, "msg": "请求范围超出文件大小" }\n```\n',m=`# 分享查询与取件 + +查询分享元信息(不消耗次数)与真正取件(消耗次数)的完整接口。 +除 \`metadata\` 每次 423 限流计数外,取件失败还会计入 \`error\` 限流。 + +## 元信息:GET /share/metadata + +按取件码查询元信息,**不消耗次数**。每次访问即计入 \`metadata\` 限流。 + +**参数**:\`code\`(query,必需)。 + +\`\`\`bash +curl -s "http://localhost:8466/share/metadata?code=K3P9W" +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "code": "K3P9W", + "name": "report.pdf", + "size": 1048576, + "type": "file", + "is_text": false, + "created_at": "2025-06-01T12:00:00+08:00", + "expired_at": "2025-06-08T12:00:00+08:00", + "expires_at": "2025-06-08T12:00:00+08:00", + "expired_count": -1, + "used_count": 3, + "remaining_downloads": null + } +} +\`\`\` + +字段说明: + +| 字段 | 说明 | +|---|---| +| \`type\` | \`text\`(文本分享)/ \`file\`(文件分享) | +| \`is_text\` | 是否文本分享 | +| \`size\` | 字节数 | +| \`expired_at\` / \`expires_at\` | 过期时间(RFC 3339);永久分享为 \`null\` | +| \`expired_count\` | \`-1\` 按时间/永久;\`>0\` 剩余可取次数(原始限额) | +| \`used_count\` | 已取次数 | +| \`remaining_downloads\` | 剩余可取次数(仅次数型分享有值,否则 \`null\`) | + +> 不返回存储路径等敏感字段。 + +**错误响应**: + +\`\`\`json +{ "code": 404, "msg": "文件不存在" } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "文件已过期" } +\`\`\` + +## 元信息(POST):POST /share/metadata + +等价的 JSON 版本(\`code\` 放请求体): + +\`\`\`bash +curl -s -X POST http://localhost:8466/share/metadata \\ + -H 'Content-Type: application/json' \\ + -d '{"code":"K3P9W"}' +\`\`\` + +响应与 GET 版本一致。 + +## 取件(消耗次数):GET /share/select + +**每调用一次消耗 1 次取件**(次数型分享扣减 \`expired_count\`;时间型扣减不计)。 + +- 文本分享:返回 \`text/plain; charset=utf-8\` 正文(非 JSON 封装),\`Content-Disposition\` 携带文件名。 +- 文件分享:返回文件流(\`200\` 全量 / \`206\` 区间),支持 \`Range\`。 + +\`\`\`bash +curl -s -OJ "http://localhost:8466/share/select?code=K3P9W" +\`\`\` + +次数耗尽或已过期: + +\`\`\`json +{ "code": 404, "msg": "文件已过期" } +\`\`\` + +超限(计入 error 限流): + +\`\`\`json +{ "code": 423, "msg": "请求次数过多,请稍后再试" } +\`\`\` + +## 取件详情:POST /share/select + +返回元信息 + 文本内容/下载地址的 JSON 详情。**消耗语义**:次数型分享(\`expired_count >= 0\`) +返回代理地址 \`download_url\` 且本次**不消耗**(消耗发生在访问代理地址时);时间型/永久/文本分享在本次消耗。 + +\`\`\`bash +curl -s -X POST http://localhost:8466/share/select \\ + -H 'Content-Type: application/json' \\ + -d '{"code":"K3P9W"}' +\`\`\` + +**文件分享响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "code": "K3P9W", + "name": "report.pdf", + "size": 1048576, + "type": "file", + "is_text": false, + "created_at": "2025-06-01T12:00:00+08:00", + "expired_at": "2025-06-08T12:00:00+08:00", + "expires_at": "2025-06-08T12:00:00+08:00", + "expired_count": -1, + "used_count": 4, + "remaining_downloads": null, + "text": "/share/download?key=9f2c…&code=K3P9W", + "download_url": "/share/download?key=9f2c…&code=K3P9W" + } +} +\`\`\` + +> S3 引擎下时间型/永久分享的 \`download_url\` 可能是预签名直链(1 小时有效)而非代理地址; +> 次数型分享恒为代理地址 \`"/share/download?key=…&code=…"\`。 + +**文本分享响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "code": "8XQ2M", "name": "Text.txt", "size": 24, "type": "text", "is_text": true, + "created_at": "2025-06-01T12:00:00+08:00", + "expired_at": "2025-06-02T12:00:00+08:00", "expires_at": "2025-06-02T12:00:00+08:00", + "expired_count": -1, "used_count": 1, "remaining_downloads": null, + "text": "你好,文件快传", + "content": "你好,文件快传", + "download_url": null + } +} +\`\`\` + +## 代理下载:GET /share/download + +\`POST /share/select\` 返回的代理地址,**每次访问消耗 1 次**,支持 Range。 + +| 参数 | 说明 | +|---|---| +| \`key\` | 窗口令牌(服务端下发,双窗口校验) | +| \`code\` | 取件码 | + +\`\`\`bash +curl -s -OJ "http://localhost:8466/share/download?key=9f2c…&code=K3P9W" +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 403, "msg": "下载鉴权失败" } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "文件已过期" } +\`\`\` + +> \`key\` 鉴权失败会计入 error 限流;文本分享经该接口返回 JSON 封装 \`data\` 为文本内容。 +`,u=`# 分片上传 + +大文件分片上传:客户端把文件切成固定大小的分片逐个上传,服务端按索引合并并做 SHA256 校验。 +支持**断点续传**(相同 \`file_hash\` + 大小 + 文件名的未完成会话自动续传)。 +需站点开启 \`enableChunk\`(公共配置 \`enableChunk\` 返回 \`true\`)。 +分片会话保留 24 小时。全部端点经审计中间件落库(action=upload)。 + +## 上传流程 + +\`\`\`text +POST /chunk/upload/init → upload_id, total_chunks +POST /chunk/upload/{id}/{index} → 逐片上传(0 起,可并发) +GET /chunk/upload/status/{id} → 断点续传时查进度 +POST /chunk/upload/complete/{id} → 合并 + SHA256 → 取件码 +DELETE /chunk/upload/{id} → 取消(可选) +\`\`\` + +## 初始化:POST /chunk/upload/init + +**请求体**(JSON,亦兼容表单): + +| 参数 | 类型 | 必需 | 默认 | 说明 | +|---|---|---|---|---| +| \`file_name\` | string | ✅ | - | 文件名(会做清理与白名单校验) | +| \`file_size\` | int | ✅ | - | 文件总字节数(>0;服务端按分片数校验上限) | +| \`chunk_size\` | int | ❌ | \`5242880\`(5MB) | 每片大小(字节),硬上限 32MiB(超出 400「chunk_size 过大」) | +| \`file_hash\` | string | ❌ | - | 整文件 SHA256(断点续传的匹配键) | + +**curl 示例**: + +\`\`\`bash +curl -s -X POST http://localhost:8466/chunk/upload/init \\ + -H 'Content-Type: application/json' \\ + -d '{"file_name":"movie.mp4","file_size":15728640,"chunk_size":5242880,"file_hash":""}' +\`\`\` + +**成功响应**(200,新建会话): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "existed": false, + "upload_id": "3f6b8c2a4d5e6f708192a3b4c5d6e7f8", + "chunk_size": 5242880, + "total_chunks": 3, + "uploaded_chunks": [] + } +} +\`\`\` + +**断点续传响应**(200,命中未完成会话):返回既有会话,\`uploaded_chunks\` 为已传分片索引列表, +客户端只需补传缺失分片(注意:\`existed\` 字段恒为 \`false\`,是否续传以 \`upload_id\` 复用且 +\`uploaded_chunks\` 非空为准): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "existed": false, + "upload_id": "3f6b8c2a4d5e6f708192a3b4c5d6e7f8", + "chunk_size": 5242880, + "total_chunks": 3, + "uploaded_chunks": [0, 1] + } +} +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 400, "msg": "file_size 必须大于 0" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "分片上传未启用" } +\`\`\` + +## 上传分片:POST /chunk/upload/{uploadID}/{chunkIndex} + +主路径(与参考实现语义一致)。\`chunkIndex\` 从 \`0\` 起。 + +**multipart 字段**:\`chunk\`(必需,该分片的二进制数据)。 + +**curl 示例**: + +\`\`\`bash +split -b 5242880 movie.mp4 part- # 本地分片 +curl -s -X POST http://localhost:8466/chunk/upload/3f6b8c2a4d5e6f708192a3b4c5d6e7f8/0 \\ + -F 'chunk=@./part-aa' +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "chunk_hash": "9af1…", "chunk_index": 0 } } +\`\`\` + +重复上传已完成的分片(幂等跳过): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "chunk_hash": "9af1…", "chunk_index": 0, "skipped": true } } +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 404, "msg": "上传会话不存在" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "无效的分片索引" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "分片大小超过声明值: 最大 5242880, 实际 5300000" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "缺少分片文件字段 chunk" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +> 约束:单分片 ≤ \`chunk_size\`(init 声明值)且 ≤ **32MiB 硬上限**(init 时 \`chunk_size>33554432\` 直接 400「chunk_size 过大」); +> 总大小(init 按分片数上限、上传/合并按累计)受**动态策略上限**约束——\`max_file_size>0\` 时为其, +> 否则回落 \`uploadSize\`(v2 需求 ④⑩,管理端改后立即生效,超限清理会话);首个分片做 magic bytes +> 防伪校验(403「文件内容校验失败:…」)。分片哈希由服务端计算;合并时与分片记录交叉校验,不一致报 400。 +> +> **enableChunk 开关**:管理端关闭分片上传后,\`/chunk/upload/*\` 全部端点返回 403「分片上传未启用」(后端强制,前端仅隐藏入口)。 + +## 查询进度:GET /chunk/upload/status/{uploadID} + +\`\`\`bash +curl -s http://localhost:8466/chunk/upload/status/3f6b8c2a4d5e6f708192a3b4c5d6e7f8 +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "upload_id": "3f6b8c2a4d5e6f708192a3b4c5d6e7f8", + "file_name": "movie.mp4", + "file_size": 15728640, + "chunk_size": 5242880, + "total_chunks": 3, + "uploaded_chunks": [0, 1], + "progress": 66.66666666666667 + } +} +\`\`\` + +## 完成合并:POST /chunk/upload/complete/{uploadID} + +全部分片到齐后调用。服务端按索引有序合并 + SHA256 校验,成功后创建分享并清理分片。 + +**请求体**(JSON,亦兼容表单): + +| 参数 | 类型 | 必需 | 默认 | 说明 | +|---|---|---|---|---| +| \`expire_value\` | int | ❌ | \`1\` | 过期值 | +| \`expire_style\` | string | ❌ | \`day\` | 过期方式(同文件分享) | + +\`\`\`bash +curl -s -X POST http://localhost:8466/chunk/upload/complete/3f6b8c2a4d5e6f708192a3b4c5d6e7f8 \\ + -H 'Content-Type: application/json' \\ + -d '{"expire_value":1,"expire_style":"day"}' +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "code": "R7T2K", "name": "movie.mp4" } } +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 400, "msg": "分片不完整" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "分片哈希校验失败,请重新上传" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +## 取消上传:DELETE /chunk/upload/{uploadID} + +清理分片文件与上传记录,释放容量预留。 + +\`\`\`bash +curl -s -X DELETE http://localhost:8466/chunk/upload/3f6b8c2a4d5e6f708192a3b4c5d6e7f8 +\`\`\` + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "message": "上传已取消" } } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "上传会话不存在" } +\`\`\` +`,g=`# 预签名直传 + +服务端预生成上传地址,客户端直接向存储引擎(或服务端代理)上传文件,最后确认建分享。 +两种模式: + +| 模式 | 引擎 | 上传方式 | +|---|---|---| +| \`direct\` | S3(含 MinIO/R2 等 S3 兼容存储) | 客户端 \`PUT\` 到预签名 URL,直连对象存储 | +| \`proxy\` | 本地 / WebDAV | 客户端 \`PUT\` multipart 到服务端代理接口 | + +> 本地 / WebDAV 引擎不支持预签名直链,init 返回正常 \`proxy\` 模式(仅当引擎预签名调用本身异常时才报错)。 +> 会话有效期 **900 秒**(15 分钟)。proxy 模式响应另含 \`legacy_proxy_upload_url\` +> (\`/api\` 前缀的兼容别名,已废弃,与 \`upload_url\` 等价)。 +> 全部端点经审计中间件落库(action=upload)。 + +## 上传流程 + +\`\`\`text +direct 模式: +POST /presign/upload/init → upload_url(S3 预签名 PUT) +PUT → 客户端直传 S3(无认证头) +POST /presign/upload/confirm/{id} → 确认 → 取件码 + +proxy 模式: +POST /presign/upload/init → upload_url = /presign/upload/proxy/{id} +PUT /presign/upload/proxy/{id} → multipart 上传,服务端转存并直接建分享 +\`\`\` + +## 初始化:POST /presign/upload/init + +**请求体**(JSON,亦兼容表单): + +| 参数 | 类型 | 必需 | 默认 | 说明 | +|---|---|---|---|---| +| \`file_name\` | string | ✅ | - | 文件名(清理 + 白名单校验) | +| \`file_size\` | int | ✅ | - | 文件字节数(≤ 生效上限:\`max_file_size>0\` 时为其,否则 \`uploadSize\`) | +| \`expire_value\` | int | ❌ | \`1\` | 过期值(\`count\` 型受 \`max_save_count\` 约束) | +| \`expire_style\` | string | ❌ | \`day\` | 过期方式(须在 \`expireStyle\` 白名单内) | + +**curl 示例**: + +\`\`\`bash +curl -s -X POST http://localhost:8466/presign/upload/init \\ + -H 'Content-Type: application/json' \\ + -d '{"file_name":"backup.zip","file_size":20971520,"expire_value":7,"expire_style":"day"}' +\`\`\` + +**S3(direct)成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "upload_id": "6a1e…", + "upload_url": "https://minio:9000/fileshare/share/data/2025/06/01/6a1e…/backup.zip?X-Amz-…", + "mode": "direct", + "expires_in": 900, + "file_path": "share/data/2025/06/01/6a1e…" + } +} +\`\`\` + +**local/WebDAV(proxy)成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "upload_id": "6a1e…", + "upload_url": "/presign/upload/proxy/6a1e…", + "proxy_upload_url": "/presign/upload/proxy/6a1e…", + "mode": "proxy", + "expires_in": 900, + "file_path": "share/data/2025/06/01/6a1e…" + } +} +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +> 大小上限为动态策略(v2 需求 ④⑩):管理端改 \`max_file_size\`(0=回落 \`uploadSize\`)后 +> 立即按新上限校验 init 声明的 \`file_size\`。 + +\`\`\`json +{ "code": 403, "msg": "不允许上传该类型文件" } +\`\`\` + +\`\`\`json +{ "code": 507, "msg": "存储空间已达到管理员设置的容量上限" } +\`\`\` + +## 直传确认:POST /presign/upload/confirm/{uploadID} + +\`direct\` 模式专用:客户端向 S3 \`PUT\` 完成后调用。服务端会核对实际对象(多引擎一致): + +- **大小核对**:实际大小与声明差 >1KB → 400「文件大小与声明不符」;超过策略上限(\`max_file_size\`)→ **删除对象、释放容量预留**并 403; +- **内容校验**:取对象前 64 字节做 magic bytes 白名单校验(失败删除对象并报错); +- 全部通过后创建分享记录。 + +\`\`\`bash +# 1) 直传 S3(注意:不要带 Authorization 头,预签名 URL 自带鉴权) +curl -X PUT "" --upload-file ./backup.zip +# 2) 确认 +curl -s -X POST http://localhost:8466/presign/upload/confirm/6a1e… +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "code": "B4N8Q", "name": "backup.zip" } } +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 404, "msg": "文件未上传或上传失败" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "文件大小与声明不符" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "文件大小超过限制" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "此会话不支持direct模式" } +\`\`\` + +## 代理上传:PUT /presign/upload/proxy/{uploadID} + +\`proxy\` 模式专用:multipart 上传到服务端,服务端流式转存到存储引擎后立即创建分享记录。 + +**multipart 字段**:\`file\`(必需)。 + +**curl 示例**: + +\`\`\`bash +curl -s -X PUT http://localhost:8466/presign/upload/proxy/6a1e… -F 'file=@./backup.zip' +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "code": "B4N8Q", "name": "backup.zip" } } +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 400, "msg": "缺少上传文件 file 字段" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "文件大小与声明不符" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +> 文件实际大小须与 init 声明的 \`file_size\` 一致(±1KB 容差);成功后会话即删除,不可重复使用。 + +## 查询会话:GET /presign/upload/status/{uploadID} + +\`\`\`bash +curl -s http://localhost:8466/presign/upload/status/6a1e… +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "upload_id": "6a1e…", + "file_name": "backup.zip", + "file_size": 20971520, + "mode": "proxy", + "created_at": "2025-06-01T12:00:00+08:00", + "expires_at": "2025-06-01T12:15:00+08:00", + "is_expired": false + } +} +\`\`\` + +## 取消会话:DELETE /presign/upload/{uploadID} + +删除会话并释放容量预留;\`direct\` 模式会尽力清理已直传到 S3 的对象。 + +\`\`\`bash +curl -s -X DELETE http://localhost:8466/presign/upload/6a1e… +\`\`\` + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "message": "上传会话已取消" } } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "上传会话不存在" } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "上传会话已过期" } +\`\`\` +`,_='# 管理后台 API\n\n管理端接口:除 `POST /admin/login` 与初始化向导 `/setup` 外,一律要求\n`Authorization: Bearer `(见《认证与限流》),无效令牌 401。\n\n## 初始化向导:GET /setup\n\n未初始化时返回 HTML 配置页(站点名称、管理员密码、上传/限流/保存策略);\n已初始化时 `303` 重定向到 `/`。\n\n```bash\ncurl -i http://localhost:8466/setup\n```\n\n## 初始化提交:POST /setup\n\n表单(浏览器向导)或 JSON 均可;成功后写入库配置 KV 并生成密码哈希与 `jwt_secret`。\n表单提交返回成功 HTML 页;JSON 提交返回 JSON。\n\n**主要字段**:\n\n| 字段 | 必需 | 默认 | 说明 |\n|---|---|---|---|\n| `admin_password` | ✅ | - | 管理员密码(≥8 位) |\n| `confirm_password` | ✅ | - | 确认密码(须一致) |\n| `site_name` | ❌ | 文件快传 | 站点名称 |\n| `upload_size_value` / `upload_size_unit` | ❌ | 10 / MB | 单文件大小限制(单位 KB/MB/GB) |\n| `save_time_value` / `save_time_unit` | ❌ | 0 / day | 最长保存秒数(0=不限) |\n| `expireStyle` | ❌ | day,hour,minute,forever,count | 过期方式(可多值/逗号分隔) |\n| `code_generate_type` | ❌ | secret | 取件码类型 `number`/`secret` |\n| `errorCount` / `errorMinute` | ❌ | 10 / 1 | 取件错误限流 |\n| `loginCount` / `loginMinute` | ❌ | 5 / 15 | 登录失败限流 |\n| `uploadCount` / `uploadMinute` | ❌ | 10 / 1 | 上传限流 |\n| `allowed_file_types` | ❌ | `*` | 逗号分隔白名单 |\n| `openUpload` / `enableChunk` | ❌ | 1 / 0 | 游客上传 / 分片开关(`1`/`true`/`on`/`yes`) |\n\n```bash\ncurl -s -X POST http://localhost:8466/setup \\\n -H \'Content-Type: application/json\' \\\n -d \'{"admin_password":"admin12345","confirm_password":"admin12345","site_name":"我的文件柜","upload_size_value":10,"upload_size_unit":"MB"}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true, "admin": "/#/admin" } }\n```\n\n**错误响应**(400,HTML 表单时内嵌错误提示):\n\n```json\n{ "code": 400, "msg": "管理员密码至少 8 位" }\n```\n\n## 登录:POST /admin/login\n\n```bash\ncurl -s -X POST http://localhost:8466/admin/login \\\n -H \'Content-Type: application/json\' \\\n -d \'{"password":"admin12345"}\'\n```\n\n**成功响应**(200):\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "id": "admin", "username": "admin",\n "token": "eyJhbGciOiJIUzI1NiIs...",\n "token_type": "Bearer",\n "expires_at": 1750000000,\n "expires_in": 604800\n }\n}\n```\n\n**错误响应**:\n\n```json\n{ "code": 401, "msg": "密码错误" }\n```\n\n```json\n{ "code": 423, "msg": "请求次数过多,请稍后再试" }\n```\n\n## 校验会话:GET /admin/verify\n\n```bash\ncurl -s http://localhost:8466/admin/verify -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "id": "admin", "username": "admin", "token": "eyJ…", "token_type": "Bearer", "expires_at": 1750000000 } }\n```\n\n## 登出:POST /admin/logout\n\n无状态 JWT,服务端仅返回确认(客户端应丢弃令牌):\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true } }\n```\n\n## 仪表盘:GET /admin/dashboard\n\n```bash\ncurl -s http://localhost:8466/admin/dashboard -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "totalFiles": 42,\n "storageUsed": "123456789",\n "sysUptime": 1750000000000,\n "yesterdayCount": 5, "yesterdaySize": "1048576",\n "todayCount": 12, "todaySize": "5242880",\n "activeCount": 40, "expiredCount": 2,\n "textCount": 10, "fileCount": 32, "chunkedCount": 3,\n "usedCount": 156,\n "storageBackend": "local",\n "uploadSizeLimit": 10485760,\n "openUpload": 1, "enableChunk": 1,\n "maxSaveSeconds": 0,\n "topSuffixes": [ { "suffix": ".pdf", "count": 12 }, { "suffix": "Text", "count": 10 } ],\n "recentFiles": [ { "id": 42, "code": "K3P9W", "name": "report.pdf", "size": 1048576, "created_at": "2025-06-01T12:00:00+08:00", "expired_at": "2025-06-08T12:00:00+08:00", "is_expired": false, "expired_count": -1, "used_count": 3, "is_text": false, "is_chunked": false, "is_permanent": false, "has_download_limit": false, "remaining_downloads": null, "file_hash": null, "prefix": "report", "suffix": ".pdf", "text": false, "createdAt": "2025-06-01T12:00:00+08:00", "expiredAt": "2025-06-08T12:00:00+08:00", "isExpired": false, "expiredCount": -1, "usedCount": 3, "isText": false, "isChunked": false, "isPermanent": false, "hasDownloadLimit": false, "remainingDownloads": null, "fileHash": null } ],\n "recentActivities": []\n }\n}\n```\n\n> `storageUsed`/`todaySize`/`yesterdaySize` 为字符串字节数;`sysUptime` 为服务启动时刻的 Unix 毫秒。\n\n## 文件列表:GET /admin/file/list\n\n**参数**:\n\n| 参数 | 默认 | 说明 |\n|---|---|---|\n| `page` / `size` | 1 / 10 | 分页(size 1~100) |\n| `keyword` | - | 模糊匹配取件码/文件名/哈希/文本内容 |\n| `status` | - | `active` / `expired` |\n| `type` | - | `text` / `file` / `chunked` |\n| `sortBy` | `created_at` | `created_at`/`expired_at`/`name`/`size`/`used_count`/`code` |\n| `sortOrder` | `desc` | `asc` / `desc` |\n\n```bash\ncurl -s "http://localhost:8466/admin/file/list?page=1&size=10&status=active&sortBy=size&sortOrder=desc" \\\n -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "page": 1, "size": 10, "total": 40,\n "summary": { "totalFiles": 42, "activeCount": 40, "expiredCount": 2, "textCount": 10, "fileCount": 32, "chunkedCount": 3, "storageUsed": 123456789, "usedCount": 156 },\n "data": [\n { "id": 42, "code": "K3P9W", "name": "report.pdf", "prefix": "report", "suffix": ".pdf", "size": 1048576, "is_text": false, "is_chunked": false, "is_expired": false, "expired_at": "2025-06-08T12:00:00+08:00", "expired_count": -1, "used_count": 3, "created_at": "2025-06-01T12:00:00+08:00", "has_download_limit": false, "is_permanent": false, "remaining_downloads": null, "file_hash": null, "text": false, "isText": false, "isChunked": false, "isExpired": false, "expiredAt": "2025-06-08T12:00:00+08:00", "expiredCount": -1, "usedCount": 3, "createdAt": "2025-06-01T12:00:00+08:00", "hasDownloadLimit": false, "isPermanent": false, "remainingDownloads": null, "fileHash": null }\n ]\n }\n}\n```\n\n## 文件详情:GET /admin/file/detail\n\n`GET ?id=42` 或 `POST {"id":42}`。返回列表条目字段;文本分享额外含 `content`(全文)。\n\n```json\n{ "code": 200, "msg": "ok", "data": { "id": 42, "code": "K3P9W", "name": "report.pdf", "size": 1048576, "is_text": false, "expired_at": "2025-06-08T12:00:00+08:00", "expired_count": -1, "used_count": 3, "created_at": "2025-06-01T12:00:00+08:00", "file_hash": null } }\n```\n\n```json\n{ "code": 404, "msg": "文件不存在" }\n```\n\n## 更新文件:PATCH /admin/file/update\n\n更新取件码/文件名(前后缀)/过期策略。**PATCH 为主名,POST 为兼容别名**。\n\n**请求体**:\n\n| 字段 | 类型 | 说明 |\n|---|---|---|\n| `id` | int | 必需 |\n| `code` | string | 新取件码(冲突 400「code已存在」) |\n| `prefix` / `suffix` | string | 文件名前后缀 |\n| `expired_at` | string | 过期时间(ISO 8601,如 `2025-07-01T00:00:00+08:00`) |\n| `expired_count` | int | 取件次数上限(`-1` 按时间/永久) |\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/file/update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"id":42,"expired_at":"2025-07-01T00:00:00+08:00","expired_count":10}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": "更新成功" }\n```\n\n```json\n{ "code": 400, "msg": "code已存在" }\n```\n\n## 删除文件:DELETE /admin/file/delete\n\n删除分享记录并连带删除存储文件(文本分享无存储文件)。`DELETE` 或 `POST`,请求体 `{"id":42}`。\n\n```bash\ncurl -s -X DELETE http://localhost:8466/admin/file/delete \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' -d \'{"id":42}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": null }\n```\n\n```json\n{ "code": 400, "msg": "请选择要删除的文件" }\n```\n\n## 批量删除:POST /admin/file/batch-delete\n\n`POST` 或 `DELETE`,请求体 `{"ids":[41,42,43]}`。返回逐条统计:\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "requestedCount": 3, "deletedCount": 2, "missingCount": 1, "failedCount": 0,\n "deleted": [41, 42], "missing": [43], "failed": [],\n "requested_count": 3, "deleted_count": 2, "missing_count": 1, "failed_count": 0\n }\n}\n```\n\n## 批量更新:PATCH /admin/file/batch-update\n\n`PATCH` 或 `POST`。请求体:`ids[]` 必需;`expired_at`(ISO 8601)/`expired_count` 二选一;\n`clearExpiredAt: true`(或 `clear_expired_at`)= 清空过期时间并置 `expired_count=-1`(永久)。\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/file/batch-update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"ids":[41,42],"clearExpiredAt":true}\'\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": { "requestedCount": 2, "updatedCount": 2, "missingCount": 0, "failedCount": 0, "updated": 2, "missing": [], "failed": [], "requested_count": 2, "updated_count": 2, "missing_count": 0, "failed_count": 0 }\n}\n```\n\n## 过期策略动作:PATCH /admin/file/policy-action\n\n对单个文件执行快捷策略。`PATCH` 或 `POST`。批量版为 `/admin/file/batch-policy-action`(`{"ids":[…]}`),响应结构同批量更新。\n\n**请求体**:\n\n| 字段 | 说明 |\n|---|---|\n| `id` | 文件 ID |\n| `action` | `extend_24h` / `extend_7d` / `make_permanent` / `reset_download_limit` |\n| `downloadLimit` | 仅 `reset_download_limit` 用:新取件次数(默认 5,须 >0) |\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/file/policy-action \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"id":42,"action":"reset_download_limit","downloadLimit":3}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "id": 42, "action": "reset_download_limit" } }\n```\n\n```json\n{ "code": 400, "msg": "不支持的策略动作" }\n```\n\n> `extend_24h`/`extend_7d` 在当前过期时间(未过期时)基础上顺延;`make_permanent` 清空过期时间并置次数 -1。\n\n## 管理员下载:GET /admin/file/download?id=\n\n下载原文件(**不消耗取件次数**);文件返回二进制流(支持 Range),文本分享返回 JSON(`data` 为文本内容)。\n\n```bash\ncurl -s -OJ "http://localhost:8466/admin/file/download?id=42" -H "Authorization: Bearer $TOKEN"\n```\n\n## 文本预览:GET /admin/file/preview\n\n仅文本分享可用(文件分享返回 400)。`maxChars` 截断长度(默认 4000,1~20000)。\n\n```bash\ncurl -s "http://localhost:8466/admin/file/preview?id=41&maxChars=100" -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "id": 41, "code": "8XQ2M", "name": "Text.txt", "type": "text",\n "content": "你好,文件快传",\n "length": 24, "previewLength": 24, "truncated": false,\n "maxChars": 100, "max_chars": 100,\n "created_at": "2025-06-01T12:00:00+08:00", "createdAt": "2025-06-01T12:00:00+08:00"\n }\n}\n```\n\n```json\n{ "code": 400, "msg": "仅文本分享支持预览" }\n```\n\n## 读取配置:GET /admin/config/get\n\n返回运行时配置 KV(含默认值与管理端修改)。`admin_token` 恒返回空串(屏蔽);\n`jwt_secret` 不下发;存储引擎为进程级单例,`_engine_hint` 提示引擎配置修改需重启。\nv2 新增键(需求 ①②③④⑩)一并返回:`background_url`、`footer_text`、`footer_beian`、\n`notify_enabled`、`max_save_count`、`max_file_size` 等。\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "site_name": "文件快传",\n "name": "文件快传",\n "description": "开箱即用的文件快传系统",\n "page_explain": "…", "keywords": "…",\n "notify_title": "系统通知", "notify_content": "…", "notify_enabled": 1,\n "logo_url": "",\n "favicon_url": "",\n "background_url": "", "footer_text": "", "footer_beian": "",\n "openUpload": 1, "uploadSize": 10485760,\n "max_file_size": 0, "max_save_count": 0,\n "allowed_file_types": ["*"], "expireStyle": ["day","hour","minute","forever","count"],\n "code_generate_type": "secret", "enableChunk": 1,\n "uploadMinute": 1, "uploadCount": 10,\n "errorMinute": 1, "errorCount": 10,\n "loginCount": 5, "loginMinute": 15,\n "max_save_seconds": 0, "storageLimit": 0,\n "opacity": 0.9, "background": "", "showAdminAddr": 0, "robotsText": "User-agent: *\\nDisallow: /",\n "adminSessionExpire": 604800,\n "storage_path": "", "local_storage_path": "/app/data",\n "file_storage": "local",\n "admin_token": "",\n "_engine_hint": { "storage_backend": "local", "note": "存储引擎为进程级单例,修改存储引擎相关配置后需重启服务生效" }\n }\n}\n```\n\n## 存储引擎热切换:POST /admin/storage/switch(v3)\n\n运行时切换存储引擎,**无需重启**:\n\n```bash\ncurl -s -X POST http://localhost:8466/admin/storage/switch \\\n -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \\\n -d \'{"engine":"s3"}\'\n# 成功:{"code":200,"msg":"ok","data":{"ok":true,"engine":"s3"}}\n# 失败:503 {"code":503,"msg":"存储引擎切换失败,已保持原引擎: …"}\n```\n\n- `engine` 仅接受 `local|s3|webdav`(400 中文错误)。\n- 切换流程:用最新 KV 参数构建新引擎 → 健康检查 → 通过才替换当前引擎并持久化 `storage_engine`。\n- 失败(构建/健康检查不过)返回 503,**原引擎与 KV 均保持不变**。\n- 切到当前引擎为幂等操作(直接返回 200)。\n- 旧文件按归属引擎(`file_codes.engine`)取回,切换后旧引擎文件仍可下载。\n\n## 更新配置:PATCH /admin/config/update\n\n部分更新(JSON 对象,未提供的键不变;表单亦可)。**PATCH 为主名,POST 为兼容别名**。\n\n- 仅接受管理端可见键(见上响应键集合),未知键忽略。\n- 数值型键自动转型:`openUpload`、`enableChunk`、`uploadSize`、`storageLimit`、限流四组、`max_save_seconds`、`adminSessionExpire`、`showAdminAddr`;v2 新增 `max_save_count`、`max_file_size`、`notify_enabled`;`opacity` 为浮点。\n- **v3.1**:`site_domain`(站点对外域名)可经本端点设置,非法格式 400(仅 http/https、主机+端口、不带路径)。\n- **v3 引擎键**:`storage_engine` 不经本端点修改(走 `POST /admin/storage/switch`);引擎参数键\n (`local_storage_path`、`webdav_url`、`webdav_root_path`、`webdav_username`、`webdav_password`、\n `s3_endpoint_url`、`s3_region_name`、`s3_bucket_name`、`s3_access_key_id`、`s3_secret_access_key`、\n `aws_session_token`、`s3_addressing_style`)可经本端点保存——保存后对应引擎实例缓存失效,\n 下次切换/构建生效;敏感键空串或 `******` 表示不修改。\n- **v2 schema 校验**(`settings.KVSchema`,越界一律 400,中文错误信息):\n - 整型边界:`max_file_size` ≤ 10GiB(10737418240)、`max_save_count` ≤ 100000、`max_save_seconds` ≤ 31536000(365 天)、`notify_enabled` ∈ {0,1}、`uploadCount` 1~10000、`uploadMinute` 1~1440 等;\n - 字符串长度:`background_url` ≤ 2048、`footer_text` ≤ 2000、`footer_beian` ≤ 128、`notify_title` ≤ 128、`notify_content` ≤ 2000 字符;\n - 列表键 `expireStyle` / `allowed_file_types`:须为字符串数组(或逗号分隔串)且至少保留一项;\n - 错误示例:`{"code":400,"msg":"max_file_size 必须是整数"}`、`{"code":400,"msg":"max_file_size 不能大于 10737418240"}`、`{"code":400,"msg":"footer_beian 长度不能超过 128 字符"}`、`{"code":400,"msg":"notify_enabled 不能大于 1"}`。\n- `background_url` 协议白名单(需求 ①,防 `javascript:` 注入):仅 `http(s)://`、`data:image/*` 与站内相对路径(`/`开头);空串=清除背景。非法值 400:\n `{"code":400,"msg":"background_url 仅支持 http(s) 地址、data:image 图片或站内相对路径"}`\n- `admin_token`:明文密码自动哈希,**并轮换 `jwt_secret`(全部管理员令牌立即失效)**;空串忽略;已是哈希格式则原样保存。\n- `adminSessionExpire` 须为 1~365 的整天秒数(86400 的整数倍),否则 400。\n- `storageLimit` 不能小于 0。\n- 修改限流/策略配置**立即生效**(无需重启:限流规则运行时同步,策略由上传链路每次实时读取);引擎相关(`file_storage`/`s3_*`/`webdav_*`/`storage_path`/`local_storage_path`)需重启。\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/config/update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"site_name":"我的文件柜","uploadSize":52428800,"openUpload":1,"footer_beian":"京ICP备20240001号","max_file_size":10485760,"max_save_count":5}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true } }\n```\n\n```json\n{ "code": 400, "msg": "adminSessionExpire 必须是 1 到 365 个整天" }\n```\n\n```json\n{ "code": 400, "msg": "background_url 仅支持 http(s) 地址、data:image 图片或站内相对路径" }\n```\n\n## 修改管理员密码:PATCH /admin/settings/password\n\n`PATCH` 或 `POST`。新密码 ≥8 位;成功后哈希保存并**轮换 `jwt_secret`,所有旧令牌失效(401)**,需重新登录。\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/settings/password \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"old_password":"admin12345","new_password":"new-pass-6789"}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true } }\n```\n\n```json\n{ "code": 400, "msg": "新密码长度至少 8 位" }\n```\n\n```json\n{ "code": 401, "msg": "旧密码错误" }\n```\n',y='# 审计日志查询\n\n所有上传/下载请求由审计中间件自动落库(需求 ③),管理端分页查询。\n认证:`Authorization: Bearer `。\n\n## 审计记录内容\n\n每条审计日志覆盖以下维度(需求 ③):\n\n| 维度 | 字段 | 说明 |\n|---|---|---|\n| 操作时间 | `created_at` | RFC 3339 |\n| 客户端 | `ip` | 可信代理场景解析 XFF 后的真实 IP |\n| 终端信息 | `user_agent` | 原始 UA |\n| 设备解析 | `device_os` / `device_browser` / `device_type` | 由 UA 解析(如 Windows/Chrome/desktop) |\n| 动作 | `action` | `upload`(上传类) / `download`(取件/下载类) / `admin`(管理端敏感操作,26.9 新增) |\n| 结果 | `result` | `success` / `denied`(拒绝:401/403/423/428)/ `failed`(失败:其余 4xx/5xx 或业务报错) |\n| 字节数 | `size_bytes` | 文件总大小;`transferred_bytes` 实际传输(**Range 下载只计实际区间字节**;下载由中间件自动统计,上传由各 handler 填充) |\n| 耗时 | `duration_ms` | 毫秒 |\n| 角色 | `actor` | `admin`(有效管理员令牌)/ `guest` |\n| 业务 | `file_code` / `file_name` | 取件码 / 文件名(分片上传时 `file_code` 为 `upload_id`) |\n| 错误 | `error_msg` | 失败/拒绝原因 |\n\n**命中审计的端点**:上传类 `POST /share/text`、`POST /share/file`、`/chunk/upload*`、`/presign*`(POST/PUT);\n下载类 `GET /share/download`、`GET /share/select`、`GET /share/metadata`;\n管理类(`action=admin`)`POST /admin/login`、`POST /admin/logout`、`PATCH|POST /admin/config/update`、\n`PATCH|POST /admin/settings/password`、`POST /admin/storage/switch`、`PATCH|DELETE /admin/file/update|delete|batch-delete|batch-update|policy-action|batch-policy-action`。\n管理类动作未显式填结果时按 HTTP 状态兜底落库(401/403/423 → `denied`,5xx → `failed`,其余 → `success`)。\n失败与被拒绝的请求同样落库。\n\n## 查询接口:GET /admin/audit/list\n\n**参数**:\n\n| 参数 | 默认 | 说明 |\n|---|---|---|\n| `page` | 1 | 页码(≥1) |\n| `size` | 20 | 每页条数(1~200;兼容 `pageSize`) |\n| `action` | - | `upload` / `download` / `admin` |\n| `result` | - | `success` / `denied` / `failed` |\n| `ip` | - | 按客户端 IP 过滤 |\n| `start_time` / `end_time` | - | 时间范围,ISO 8601(如 `2025-06-01T00:00:00+08:00`;也接受 `2006-01-02 15:04:05` / 日期) |\n\n```bash\ncurl -s "http://localhost:8466/admin/audit/list?page=1&size=20&action=download&result=success&start_time=2025-06-01T00:00:00%2B08:00" \\\n -H "Authorization: Bearer $TOKEN"\n```\n\n**成功响应**(200):\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "data": [\n {\n "id": 318,\n "action": "download",\n "file_code": "K3P9W",\n "file_name": "report.pdf",\n "size_bytes": 1048576,\n "transferred_bytes": 524288,\n "ip": "203.0.113.7",\n "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",\n "device_os": "Windows",\n "device_browser": "Chrome",\n "device_type": "desktop",\n "actor": "guest",\n "result": "success",\n "error_msg": "",\n "duration_ms": 128,\n "created_at": "2025-06-01T12:03:45+08:00",\n "fileCode": "K3P9W",\n "fileName": "report.pdf",\n "sizeBytes": 1048576,\n "transferredBytes": 524288,\n "userAgent": "Mozilla/5.0 …",\n "deviceOs": "Windows",\n "deviceBrowser": "Chrome",\n "deviceType": "desktop",\n "errorMsg": "",\n "durationMs": 128,\n "createdAt": "2025-06-01T12:03:45+08:00"\n }\n ],\n "total": 1180,\n "page": 1,\n "size": 20\n }\n}\n```\n\n> 行字段以 snake_case 为准;camelCase 为兼容双份输出(文档不再重复列出)。\n\n**错误响应**:\n\n```json\n{ "code": 400, "msg": "start_time 时间格式错误" }\n```\n\n```json\n{ "code": 401, "msg": "令牌无效或已过期" }\n```\n\n## 别名:GET /admin/audit/logs\n\n与 `/admin/audit/list` 完全相同(同一 handler 的兼容别名),参数与响应一致。\n\n## 典型查询\n\n```bash\n# 最近的下载行为\ncurl -s "http://localhost:8466/admin/audit/list?action=download&size=50" -H "Authorization: Bearer $TOKEN"\n\n# 某 IP 的全部被拒请求(限流/鉴权失败)\ncurl -s "http://localhost:8466/admin/audit/list?ip=203.0.113.7&result=denied" -H "Authorization: Bearer $TOKEN"\n\n# 今天 0 点以来的上传失败\ncurl -s "http://localhost:8466/admin/audit/list?action=upload&result=failed&start_time=2025-06-01T00:00:00%2B08:00" \\\n -H "Authorization: Bearer $TOKEN"\n```\n',h='# 存储引擎配置\n\n存储引擎只支持三种:**本地磁盘 / S3 / WebDAV**,由进程级环境变量 `FCB_STORAGE_ENGINE` 选择。\n引擎与引擎相关配置在启动时一次性读取(`storage.SetEngineOptions` → `NewEngine`),\n**运行时修改引擎 KV 需重启服务**(管理端 `GET /admin/config/get` 的 `_engine_hint` 亦有提示)。\n\n## 引擎选择\n\n```bash\nFCB_STORAGE_ENGINE=local # 启动默认(KV storage_engine 为空时生效)\nFCB_STORAGE_ENGINE=s3\nFCB_STORAGE_ENGINE=webdav\n```\n\n非法值直接启动失败:`FCB_STORAGE_ENGINE 无效值 "xxx",仅支持 local|s3|webdav`。\n\n**v3 运行时热切换**:管理端 `POST /admin/storage/switch`(或后台设置页「存储引擎」卡)可在不重启的情况下切换引擎——\n先构建新引擎并健康检查,通过才生效;失败 503 保持原引擎。当前引擎持久化在 settings KV `storage_engine`(空=回落启动值)。\n各引擎参数(存储目录/服务地址/存储桶/密钥)同样在后台设置页运行时可改;保存后对应引擎实例缓存失效,下次切换/构建生效。\n\n## 文件归属引擎(v3)\n\n每条分享记录(`file_codes.engine`)与上传会话(`upload_chunks.engine` / `presign_upload_sessions.engine`)\n在创建时戳记当时的引擎名。下载、分片合并、删除按**归属引擎**操作——切换引擎后,旧引擎里的文件仍可正常下载与删除\n(空戳为历史数据,回落当前引擎)。\n\n## 按日期目录存储\n\n文件落盘路径:`[storage_path/]share/data/YYYY/MM/DD//<文件名>`(如 `share/data/2026/09/04/…`)。\n按日嵌套目录自然排序、无日月歧义、避免单日海量文件挤在单目录;三种引擎一致适用;历史路径记录在\n`file_codes.file_path`,不受路径规则调整影响。\n\n## 配置键与环境变量\n\n引擎相关配置键(DB settings KV)可由环境变量种子注入(优先级:默认 < 环境变量 < DB KV):\n\n| KV 键 | 环境变量 | 引擎 | 说明 |\n|---|---|---|---|\n| `local_storage_path` | `FCB_LOCAL_STORAGE_PATH` | local | 本地存储根目录(容器内默认 `/app/data`) |\n| `storage_path` | `FCB_STORAGE_PATH` | 全部 | 存储相对路径前缀(空 = `share/data/…`) |\n| `s3_access_key_id` | `FCB_S3_ACCESS_KEY_ID` | s3 | 访问密钥 |\n| `s3_secret_access_key` | `FCB_S3_SECRET_ACCESS_KEY` | s3 | 私有密钥 |\n| `aws_session_token` | `FCB_AWS_SESSION_TOKEN` | s3 | 可选临时会话令牌 |\n| `s3_bucket_name` | `FCB_S3_BUCKET_NAME` | s3 | 桶名 |\n| `s3_endpoint_url` | `FCB_S3_ENDPOINT_URL` | s3 | S3 兼容端点(MinIO/R2 等;AWS 原生可空) |\n| `s3_region_name` | `FCB_S3_REGION_NAME` | s3 | 区域(默认 `auto`) |\n| `s3_addressing_style` | `FCB_S3_ADDRESSING_STYLE` | s3 | `auto`/`path`/`virtual` |\n| `webdav_url` | `FCB_WEBDAV_URL` | webdav | WebDAV 服务地址(如 `http://webdav:5000`) |\n| `webdav_username` | `FCB_WEBDAV_USERNAME` | webdav | 用户名 |\n| `webdav_password` | `FCB_WEBDAV_PASSWORD` | webdav | 密码 |\n| `webdav_root_path` | `FCB_WEBDAV_ROOT_PATH` | webdav | 根目录(默认 `filebox_storage`,不存在自动逐级创建) |\n\n`FCB_STORAGE_ENGINE` 本身不落库(`GET /admin/config/get` 中的 `file_storage` 为 KV 记忆键,\n进程实际引擎以 `FCB_STORAGE_ENGINE` 与 `_engine_hint.storage_backend` 为准)。\n\n## 各引擎要点\n\n### 本地引擎(local)\n\n- 原子写:临时文件 + fsync + rename,避免半写文件。\n- 路径安全:`SanitizePath` + 符号链接逃逸双重防穿越。\n- Range 下载基于 `SectionReader`;分片按索引有序合并 + SHA256 校验,合并后清理分片目录。\n\n### S3 引擎(s3)\n\n- 原生 multipart 流式合并(失败自动 Abort),分片落临时文件保证精确 Content-Length 与可重放。\n- 预签名 GET/PUT 直链(预签名直传唯一 `direct` 模式引擎)。\n- SDK 内置 5xx 指数退避重试;`when_required` 校验模式兼容 MinIO/R2 与纯流式转发。\n\n### WebDAV 引擎(webdav,重点优化)\n\n- **连接复用**:池化 Transport,连接复用(实测 25 次请求仅 1 条 TCP 连接)。\n- **认证**:Basic + Digest(RFC 2617 `qop=auth`,MD5/SHA-256)自动协商,401 挑战驱动。\n- **Range**:`Range` 头透传 + `206` 解析,支持分块/断点下载。\n- **重试**:5xx/429/408 指数退避(封顶 2s ± 20% 抖动,尊重 `Retry-After`)。\n- **流式**:下载经 `io.Pipe` 流式转发不落盘;上下文取消挂到响应体读完之后,防止提前断连。\n- **目录**:按需逐级 `MKCOL` + 目录缓存,避免重复建目录。\n- **超时**:可配置(`webdav_url` 同级暂无独立超时键,引擎默认值内置)。\n\n## 健康检查\n\n三引擎均实现 `HealthCheck`:local 写探针、s3 `ListObjectsV2`、webdav `PROPFIND`(根目录不存在时自建)。\n服务启动时预检失败仅告警不阻断;运行状态可经 `GET /api/v1/health` 的 `data.storage` 查看当前引擎名。\n\n## 预签名直传支持矩阵\n\n| 引擎 | `PresignPutURL` / `PresignGetURL` | init 返回 mode |\n|---|---|---|\n| s3 | ✅ | `direct` |\n| local / webdav | ❌(`ErrNotSupported`) | `proxy`(走服务端代理上传) |\n\n引擎不支持的操作经统一映射返回 501:\n\n```json\n{ "code": 501, "msg": "当前存储引擎不支持该操作" }\n```\n\n## Docker Compose 冒烟编排\n\n`deploy/docker-compose.yml` 提供可选 profile(详见 deploy/README.md):\n\n```bash\ndocker compose --profile minio up -d --build # MinIO(含 mc 自动建桶)+ FCB_STORAGE_ENGINE=s3\ndocker compose --profile webdav up -d --build # dufs WebDAV 冒烟(admin/admin123)+ FCB_STORAGE_ENGINE=webdav\ndocker compose --profile redis up -d --build # Redis 缓存增强(非引擎)\n```\n\n## 存储哨兵错误 → HTTP 状态\n\n| 哨兵错误 | HTTP | 文案 |\n|---|---|---|\n| `ErrNotFound` | 404 | 文件不存在 |\n| `ErrInvalidPath` | 400 | 非法文件路径 |\n| `ErrUnavailable` | 503 | 存储服务不可用,请稍后再试 |\n| `ErrNotSupported` | 501 | 当前存储引擎不支持该操作 |\n| `ErrRangeNotSatisfiable` | 416 | 请求范围超出文件大小 |\n| `ErrHashMismatch` | 400 | 分片哈希校验失败,请重新上传 |\n\n容量超限(`storageLimit`,经容量预留判定)返回 507:`存储空间已达到管理员设置的容量上限`。\n',f='# 环境变量与配置项\n\n配置分三层:**默认值 → `FCB_*` 环境变量 → 数据库 settings KV(管理端运行时修改)**。\nv2 起进程必需的环境变量为空集:数据库默认 **SQLite**(modernc.org/sqlite 纯 Go 驱动,零外部依赖,\nDSN 缺省落 `./data/fileshare.db`);`FCB_DB_DRIVER=postgres` 时 `FCB_DB_DSN` 必需(需求 ⑧)。\n\n## 环境变量(进程级)\n\n| 变量 | 必需 | 默认 | 说明 |\n|---|---|---|---|\n| `FCB_DB_DRIVER` | ❌ | `sqlite` | 数据库驱动:`sqlite` / `postgres`(需求 ⑧) |\n| `FCB_DB_DSN` | 视驱动 | `./data/fileshare.db` | postgres:连接串(**必需**,如 `postgres://user:pass@host:5432/filecodebox?sslmode=disable`);sqlite:数据库文件路径(可空,父目录自动创建) |\n| `FCB_REDIS_ADDR` | ❌ | 空 | Redis 地址(如 `redis:6379`),也支持 `redis://[:password@]host:port[/db]` / `rediss://`(TLS)URL 形式;**空则缓存降级为进程内存实现**(缓存故障时自动降级为进程内限流计数) |\n| `FCB_REDIS_DB` | ❌ | `0` | Redis 逻辑库号 0-15;URL 形式地址显式携带 `/N` 时以 URL 为准 |\n| `FCB_ADMIN_PASSWORD` | ❌ | 空 | 设置后服务首次启动即自动初始化管理员(≥8 位,不足告警跳过),消除 `/setup` 被抢占窗口;初始化完成后建议移除 |\n| `FCB_LISTEN` | ❌ | `:8466` | HTTP 监听地址 |\n| `FCB_STORAGE_ENGINE` | ❌ | `local` | 存储引擎:`local` / `s3` / `webdav` |\n| `FCB_TRUSTED_PROXIES` | ❌ | 空 | 可信代理 CIDR(逗号分隔),命中时从 `X-Forwarded-For` 解析真实客户端 IP |\n\n- SQLite 连接参数(驱动自动注入):`busy_timeout=10s` + `WAL` 日志模式 + `foreign_keys=1`;连接池 8/4。\n- Postgres 连接池沿用 v1 参数(32/8,1h 轮换);`FCB_DB_DRIVER=postgres` 且未设 `FCB_DB_DSN` 时**启动直接报错**。\n\n引擎相关环境变量(种子注入 settings KV,见《存储引擎配置》):`FCB_LOCAL_STORAGE_PATH`、\n`FCB_STORAGE_PATH`、`FCB_S3_ACCESS_KEY_ID`、`FCB_S3_SECRET_ACCESS_KEY`、`FCB_AWS_SESSION_TOKEN`、\n`FCB_S3_BUCKET_NAME`、`FCB_S3_ENDPOINT_URL`、`FCB_S3_REGION_NAME`、`FCB_S3_ADDRESSING_STYLE`、\n`FCB_WEBDAV_URL`、`FCB_WEBDAV_USERNAME`、`FCB_WEBDAV_PASSWORD`、`FCB_WEBDAV_ROOT_PATH`。\n\n部署用编排变量(`deploy/.env.example`):`WEB_PORT`(默认 8466)、\n`POSTGRES_USER` / `POSTGRES_PASSWORD` / `POSTGRES_DB`(默认 fileshare,仅 `--profile postgres` 时使用)。\n\n## 配置项(settings KV,默认值对齐参考实现)\n\n> 键名/类型/默认值/边界以 `server/internal/config/schema.go` 的 `KVSchema()` 为单一事实来源\n> (schema 同步测试保证与 defaults() 逐键一致);v2 新增键统一 snake_case。\n\n### 站点信息与展示(需求 ①②③)\n\n| 键 | 类型/边界 | 默认 | 说明 |\n|---|---|---|---|\n| `site_name` / `name` | string | 文件快传 | 站点名称(`site_name` 优先) |\n| `site_domain` | string,≤256 | 空 | **v3.1**:站点对外域名(`http(s)://host[:port]`,不带路径;裸主机自动补 `http://`)。配置后分享链接(结果卡/管理端复制)用该域名生成——内网部署也能把公网链接发出去;留空=用当前访问地址 |\n| `description` | string | 开箱即用的文件快传系统 | 站点描述 |\n| `page_explain` | string | (合规声明) | 页面说明文案 |\n| `keywords` | string | 文件快传, 文件分享… | SEO 关键词 |\n| `logo_url` | string | 空(前端回落本地打包 `/assets/logo-*.svg`,需求 ⑤) | 页面导航 Logo,管理端可设任意 URL |\n| `favicon_url` | string | 空(前端回落本地打包 `/assets/favicon-*.png`,需求 ⑤) | favicon / 备用 Logo |\n| `opacity` | float | 0.9 | 界面不透明度 |\n| `background` | string | 空 | 背景图 URL(参考实现既有键,v1 兼容保留) |\n| `background_url` | string,≤2048 字符 | 空 | **v2 需求 ①**:背景图 URL 或上传后地址(空=主题默认;取值时 legacy `background` 键兜底)。管理端保存时校验协议白名单:仅 `http(s)`、`data:image/*` 与站内相对路径(防 `javascript:` 注入,非法 400) |\n| `footer_text` | string,≤2000 字符 | 空 | **v2 需求 ②**:页脚自定义内容(纯文本或受控 HTML 片段) |\n| `footer_beian` | string,≤128 字符 | 空 | **v2 需求 ②**:备案号(如 `京ICP备2024xxxxxx号-1`),展示于页脚 |\n| `notify_enabled` | int(0/1) | 1 | **v2 需求 ③**:通知开关(1=前台右上角悬浮窗展示 / 0=关闭) |\n| `notify_title` | string,≤128 字符 | 系统通知 | 通知标题 |\n| `notify_content` | string,≤2000 字符 | 欢迎使用… | 通知正文(**服务端白名单净化**:仅保留纯文本与 `` 为 http(s)/站内相对/`#` 锚点的链接,其余标签与事件属性剥离,保存与读取双侧生效) |\n| `showAdminAddr` | int(0/1) | 0 | 是否展示后台入口 |\n| `robotsText` | string | `User-agent: *\\nDisallow: /` | robots.txt 内容(由公开端点 `GET /robots.txt` 输出) |\n\n### 保存策略(需求 ④,上传页动态读取并在范围内选择)\n\n| 键 | 类型/边界 | 默认 | 说明 |\n|---|---|---|---|\n| `max_save_seconds` | int64,0~31536000 | 0 | 最长保存秒数上限(0=仅默认 7 天兜底;>0 时按时间过期超限 403「限制最长时间为 X,可换用其他方式」)。**v3**:管理界面以「小时/天」下拉单位编辑(≥1 天自动显示天),提交时前端换算为秒——canonical 单位保持秒,接口语义不变 |\n| `max_save_count` | int,0~100000 | 0 | **v2 新增**:单次分享最大可取(保存)次数上限(0=不限制;`expire_style=count` 且 `expire_value` 超上限时 403「限制次数最多为 N 次」) |\n| `expireStyle` | []string | `["day","hour","minute","forever","count"]` | 允许的过期方式白名单(上传时不在白名单 400「过期时间类型错误」) |\n\n### 存储策略(需求 ④⑩)\n\n| 键 | 类型/边界 | 默认 | 说明 |\n|---|---|---|---|\n| `uploadSize` | int64,1024~10GiB | 10485760(10MB) | 单文件大小上限(字节),参考实现语义;`max_file_size=0` 时作为生效上限 |\n| `max_file_size` | int64,0~10GiB | 0 | **v2 新增**:存储策略-单文件上限(字节),0=回落 `uploadSize`;超出 403(文案 humanSize 自适应 B/KB/MB/GB)。**v3**:管理界面以「MB/GB」下拉单位编辑(≥1 GiB 自动显示 GB),提交时前端换算为字节 |\n| `allowed_file_types` | []string | `["*"]` | 允许类型白名单(扩展名/MIME 通配,`*` 不限制;非白名单 403「不允许上传该类型文件」) |\n| `storageLimit` | int64,≥0 | 0 | 站点总容量(字节),0=不限制(超限 507) |\n| `openUpload` | int(0/1) | 1 | 游客上传开关(0 时上传接口要求管理员令牌 403) |\n| `enableChunk` | int(0/1) | 0 | 启用分片上传 |\n\n### 上传频率限制(需求 ④,既有键对齐参考 ip_limit["upload"])\n\n| 键 | 类型/边界 | 默认 | 说明 |\n|---|---|---|---|\n| `uploadCount` / `uploadMinute` | int(1~10000 / 1~1440) | 10 / 1 | 窗口内允许上传次数 / 窗口分钟(上传成功才计数,超限 423;管理端修改后运行时同步限流规则,立即生效) |\n| `upload_rate` / `download_rate` | int64(0~1 GiB/s) | 0 / 0 | **v3.2**:上下行带宽字节/秒,0=不限速。令牌桶(桶容量 1s 突发);每请求动态读取最新 KV——管理端改后立即生效。下载对所有存储引擎(local/webdav/s3 代理下载)统一限速;上传对 shareFile/chunkUpload/chunkUploadFlat/presignProxy 包裹 Request.Body 限速。S3 预签名直传(客户端→S3)服务端无法限速 |\n| `errorCount` / `errorMinute` | int | 10 / 1 | 取件错误(失败计数)+ metadata 每次计数 |\n| `loginCount` / `loginMinute` | int | 5 / 15 | 登录失败计数 |\n\n### 安全与会话\n\n| 键 | 默认 | 说明 |\n|---|---|---|\n| `admin_token` | 空(未初始化) | 管理员密码哈希(`sha256$salt$hash`);GET 配置时屏蔽为空串 |\n| `jwt_secret` | 空 | JWT 签名密钥(初始化/改密时自动生成轮换;不下发;`settings.SensitiveKeys` 双模式下一致屏蔽) |\n| `adminSessionExpire` | 604800(7 天) | 管理员会话秒数(须 1~365 整天) |\n\n### 存储引擎(v3 运行时可配 + 热切换)\n\n**`storage_engine`**(v3 新增键):string,`local|s3|webdav`,默认空=回落启动值 `FCB_STORAGE_ENGINE`。\n运行时切换走 **`POST /admin/storage/switch`**(JWT 保护):构建新引擎 → 健康检查通过才生效;\n失败返回 503「存储引擎切换失败,已保持原引擎: …」且不改 KV。成功后持久化 `storage_engine`,重启沿用。\n`GET /api/v1/config` 公开下发 `storage_engine` 当前名(仅名称,任何引擎参数/凭据不下发)。\n\n引擎参数键(管理端可改;保存后对应引擎实例缓存失效,下次切换/构建生效):\n\n| 键 | 默认 |\n|---|---|\n| `file_storage` | `local` |\n| `storage_path` | 空 |\n| `local_storage_path` | 空(容器内由 `FCB_LOCAL_STORAGE_PATH=/app/data` 注入) |\n| `s3_access_key_id` / `s3_secret_access_key` / `aws_session_token` | 空 |\n| `s3_bucket_name` / `s3_endpoint_url` / `s3_hostname` | 空 |\n| `s3_region_name` | `auto` |\n| `s3_signature_version` | `s3v4` |\n| `s3_addressing_style` | `auto` |\n| `s3_proxy` | 0 |\n| `webdav_url` / `webdav_username` / `webdav_password` | 空 |\n| `webdav_root_path` | `filebox_storage` |\n| `webdav_proxy` | 0 |\n\n> 敏感键 `webdav_password` / `s3_secret_access_key` / `aws_session_token`(v3 加入 `settings.SensitiveKeys`):\n> 管理端 GET 返回掩码 `******`;PATCH 时空串或 `******` 表示不修改。直接写库 settings KV 后重启同样生效。\n\n## 策略动态生效机制(v2 需求 ④⑩)\n\n上传页通过 `GET /api/v1/config` 的 `config` 字段读取**当前策略快照**并在范围内渲染选项;\n上传链路(`/share/file`、`/chunk/*`、`/presign/*`)**每次请求实时读取** settings KV 同一组值校验:\n\n- 管理端改策略(`PATCH /admin/config/update`)→ 公开 config 即时反映 → 后续上传立即按新策略执行(含 403/400 拒绝与恢复放行)。\n- 生效上限:`max_file_size > 0` 时为 `max_file_size`,否则回落 `uploadSize`。\n- 校验点覆盖:单文件(`/share/file`)、分片 init 按分片数上限、分片上传累计、分片 complete 累计、预签名 init 声明大小,五处口径一致(`api.UploadPolicy.CheckSize`)。\n\n## 公共配置接口\n\n前端启动时经 `GET /api/v1/config` 获取站点公开配置(无需认证;v2 扩展需求 ①②③④⑩):\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "config": {\n "name": "文件快传",\n "description": "开箱即用的文件快传系统",\n "explain": "请勿上传或分享违法内容…",\n "logo_url": "",\n "favicon_url": "",\n "background_url": "",\n "footer_text": "自定义页脚内容",\n "footer_beian": "京ICP备2024xxxxxx号-1",\n "notify_enabled": 1,\n "notify_title": "系统通知",\n "notify_content": "欢迎使用文件快传…",\n "uploadSize": 10485760,\n "max_file_size": 10485760,\n "maxFileSize": 10485760,\n "allowedFileTypes": ["*"],\n "expireStyle": ["day", "hour", "minute", "forever", "count"],\n "max_save_seconds": 0,\n "maxSaveSeconds": 0,\n "max_save_count": 0,\n "maxSaveCount": 0,\n "uploadCount": 10,\n "uploadMinute": 1,\n "enableChunk": false,\n "openUpload": true\n },\n "meta": {\n "version": "26.9",\n "features": { "chunkUpload": false, "guestUpload": true }\n }\n }\n}\n```\n\n> 策略字段 snake_case 与 camelCase 双份下发(前端宽松解析);响应为白名单显式构造,\n> 任何敏感键(`admin_token`/`jwt_secret`)均不会出现。\n\n## 健康检查\n\n```bash\ncurl -s http://localhost:8466/api/v1/health\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "status": "ok",\n "version": "26.9",\n "storage": "local",\n "time": "2025-06-01T12:00:00+08:00"\n }\n}\n```\n',x='# 错误码\n\n## 响应结构\n\n```json\n{ "code": 404, "msg": "文件不存在" }\n```\n\n- `code` 与 HTTP 状态码一致;失败时无 `data` 字段。\n- `msg` 为中文可读信息,可直接展示给用户。\n\n## 业务状态码\n\n| 状态码 | 语义 | 典型场景 |\n|---|---|---|\n| 200 | 成功 | 全部正常响应 |\n| 400 | 参数/格式错误 | 缺字段、过期策略非法、时间格式错误、分片哈希不匹配、code 冲突、`chunk_size` 超 32MiB 上限、presign 实际大小与声明不符、请求体超过大小上限 |\n| 401 | 未认证 | 管理端令牌缺失/无效;登录密码错误 |\n| 403 | 拒绝 | 类型白名单拒绝、magic bytes 防伪、游客上传未开启、**分片上传未启用**(enableChunk=0)、presign 直传对象超限(服务端删除对象并释放预留)、下载 `key` 鉴权失败、超过大小/时长限制 |\n| 404 | 不存在/已过期 | 取件码不存在、文件已过期、上传会话不存在、`/api/*` 未命中路由 |\n| 409 | 冲突 | 上传容量预留信息不一致 |\n| 416 | Range 越界 | `Range: bytes=…` 超出文件大小 |\n| 423 | 限流 | upload/error/login/metadata 任一规则超限 |\n| 428 | 未初始化 | 系统未初始化时访问除 `/setup`、`/api/v1/health` 外的接口 |\n| 500 | 服务器错误 | 数据库/内部异常 |\n| 501 | 引擎不支持 | 引擎不支持预签名等操作(local/webdav 的 `PresignGetURL/PutURL`) |\n| 503 | 存储不可用 | 存储引擎连接失败/健康检查不通过时的操作 |\n| 507 | 容量超限 | 达到 `storageLimit` 上限(含上传预留判定) |\n\n## 存储哨兵错误映射\n\n存储层哨兵错误统一映射(支持错误包装链判定):\n\n| 哨兵错误 | HTTP | 响应 msg |\n|---|---|---|\n| `ErrNotFound` | 404 | 文件不存在 |\n| `ErrInvalidPath` | 400 | 非法文件路径 |\n| `ErrUnavailable` | 503 | 存储服务不可用,请稍后再试 |\n| `ErrNotSupported` | 501 | 当前存储引擎不支持该操作 |\n| `ErrRangeNotSatisfiable` | 416 | 请求范围超出文件大小 |\n| `ErrHashMismatch` | 400 | 分片哈希校验失败,请重新上传 |\n\n未识别的存储错误归入 500(`存储操作失败: …`)。\n\n## 错误结果的审计归类\n\n错误响应同时写入审计日志(需求 ③):\n\n- `denied`:401 / 403 / 423 / 429 / 428(拒绝类)。\n- `failed`:其余 4xx / 5xx 及业务显式报错。\n\n## 常见排障\n\n| 现象 | 原因与处理 |\n|---|---|\n| 全部接口 428 | 未初始化:访问 `GET /setup` 或 `POST /setup` 完成向导 |\n| 上传 403「本站未开启游客上传」 | `openUpload=0`,携带管理员 Bearer 令牌或后台开启 |\n| 上传 423 | 触发 upload 限流,等待窗口或调大 `uploadCount/uploadMinute` |\n| 取件 404「文件已过期」 | 分享过期/次数耗尽;管理员可 `PATCH /admin/file/update` 调整 |\n| 下载 403「下载鉴权失败」 | `key` 窗口令牌过期/伪造:重新 `POST /share/select` 获取新地址 |\n| 预签名 init 返回 proxy | local/webdav 引擎不支持直链,按 proxy 流程走服务端代理上传 |\n| 503 存储服务不可用 | 检查引擎配置与远端服务(S3/WebDAV)连通性;`GET /api/v1/health` 的 `storage` 字段确认引擎 |\n',b='# Logo 自定义\n\n## 默认 Logo(内置,v2 需求 ⑤)\n\n| 项 | 默认值 | 用途 |\n|---|---|---|\n| 页面导航 Logo | 前端打包本地资源 `/assets/logo-*.svg`(源:`web/src/assets/brand/logo.svg`) | 导航栏 ``;`config.logo_url` 为空时回落使用 |\n| favicon / 备用 Logo | 前端打包本地资源 `/assets/favicon-*.png`(源:`web/src/assets/brand/favicon.png`) | `index.html` `` + 动态 favicon 回落 |\n\nv2 起默认不再引用远程 URL:`GET /api/v1/config` 中 `logo_url`/`favicon_url` 默认下发空串,\n前端 `displayLogoUrl`/`displayFaviconUrl` 判空后回落到打包的本地资源。\n管理端仍可设置任意 URL 全站替换(三步如下)。\n\n## 管理端自定义(三步)\n\n1. **登录后台**:`POST /admin/login` 获取 Bearer 令牌。\n2. **保存配置**:`PATCH /admin/config/update` 更新 `logo_url`(与可选 `favicon_url`),值为图片 URL 或经管理端上传后得到的地址。\n3. **全站生效**:保存即写入 settings KV 并热更新,前端读取公共配置立即换新 Logo,无需重启。\n\ncurl 示例:\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/config/update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"logo_url":"https://cdn.example.com/logo.svg","favicon_url":"https://cdn.example.com/favicon.png"}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true } }\n```\n\n> 也可以在管理界面「系统设置」页操作(上传图片或填写 URL),效果相同。\n\n## 校验生效\n\n```bash\ncurl -s http://localhost:8466/api/v1/config\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": { "config": { "logo_url": "https://cdn.example.com/logo.svg", "favicon_url": "https://cdn.example.com/favicon.png" } }\n}\n```\n\n## 恢复默认\n\n把 `logo_url` / `favicon_url` 置回默认值(空串,前端回落本地打包资源)即可:\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/config/update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"logo_url":"","favicon_url":""}\'\n```\n\n## 相关行为\n\n- 前端运行时优先读取配置值;空值回退前端打包的本地资源(`web/src/assets/brand/logo.svg` + `favicon.png`,经 `displayLogoUrl`/`displayFaviconUrl` 判空回落)。\n- `site_name` 同样支持运行时自定义(`PATCH /admin/config/update` 的 `site_name` 键)。\n- Logo/favicon 仅涉及展示层,修改不影响会话与令牌(不轮换 `jwt_secret`)。\n',T=`openapi: 3.0.3 +info: + title: 文件快传 Go 版 API + version: 2.5.6 + description: | + 文件快传 Go 重写版(Gin + GORM)完整 API 规范,与 \`server/internal/api/\` 实现逐一对齐。 + + 约定: + - 业务路由挂根路径(/share /chunk /presign /admin),公共接口保留 /api/v1 前缀。 + - 统一响应 \`{"code":200,"msg":"ok","data":...}\`,HTTP 状态码与 code 一致,失败时 data 缺省。 + - 管理接口(/admin/login 除外)需 \`Authorization: Bearer \`。 + - 未初始化时除 /setup 与 /api/v1/health 外一律 428;限流超限 423。 + contact: + name: 文件快传 Rewrite Team +servers: + - url: / + description: 同源部署(默认 :8466) +tags: + - name: 公共 + - name: 初始化 + - name: 分享 + - name: 分片上传 + - name: 预签名直传 + - name: 管理后台 + - name: 审计日志 + +paths: + /api/v1/health: + get: + tags: [公共] + summary: 健康检查 + operationId: health + responses: + '200': + description: 服务状态 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + status: { type: string, example: ok } + version: { type: string, example: 2.5.6 } + storage: { type: string, example: local } + time: { type: string, example: '2025-06-01T12:00:00+08:00' } + /robots.txt: + get: + tags: [公共] + summary: robots.txt + operationId: robotsText + description: | + 输出管理端可配置的 \`robotsText\` 内容(text/plain)。 + 内容可在管理后台「站点配置」中自定义,默认 \`User-agent: *\\nDisallow: /\`。 + responses: + '200': + description: robots.txt 内容 + content: + text/plain: + schema: { type: string, example: 'User-agent: *\\nDisallow: /' } + + /api/v1/config: + get: + tags: [公共] + summary: 公共站点配置 + operationId: publicConfig + responses: + '200': + description: 站点公开配置与功能开关 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + config: + type: object + description: 策略字段为上传页动态读取的当前快照(管理端改后即时反映);snake_case 与 camelCase 双份 + properties: + name: { type: string } + description: { type: string } + explain: { type: string } + logo_url: { type: string } + favicon_url: { type: string } + background_url: { type: string, description: '需求 ① 背景图 URL/上传地址,空=主题默认' } + footer_text: { type: string, description: '需求 ② 页脚自定义内容' } + footer_beian: { type: string, description: '需求 ② 备案号' } + storage_engine: { type: string, description: 当前存储引擎名(仅名称,凭据不下发) } + site_domain: { type: string, description: 'v3.1 站点对外域名(空=用当前访问地址)' } + notify_enabled: { type: integer, enum: [0, 1], description: '需求 ③ 通知开关(1=右上角悬浮窗)' } + notify_title: { type: string } + notify_content: { type: string } + uploadSize: { type: integer, format: int64, description: '回落上限(max_file_size=0 时生效)' } + max_file_size: { type: integer, format: int64, description: '需求 ⑩ 存储策略-单文件上限字节(0=回落 uploadSize)' } + maxFileSize: { type: integer, format: int64, description: 同 max_file_size } + allowedFileTypes: { type: array, items: { type: string } } + expireStyle: { type: array, items: { type: string } } + max_save_seconds: { type: integer, format: int64, description: '需求 ④ 最长保存秒数上限(0=默认 7 天兜底)' } + maxSaveSeconds: { type: integer, format: int64, description: 同 max_save_seconds } + max_save_count: { type: integer, description: '需求 ④ 单次分享最大可取次数上限(0=不限制)' } + maxSaveCount: { type: integer, description: 同 max_save_count } + uploadCount: { type: integer, description: 上传频率限制-窗口内次数 } + uploadMinute: { type: integer, description: 上传频率限制-窗口分钟 } + enableChunk: { type: boolean } + openUpload: { type: boolean } + meta: + type: object + properties: + version: { type: string } + features: + type: object + properties: + chunkUpload: { type: boolean } + guestUpload: { type: boolean } + + /setup: + get: + tags: [初始化] + summary: 初始化向导页面 + operationId: setupPage + description: 未初始化返回 HTML 向导;已初始化 303 重定向到 /。 + responses: + '200': + description: HTML 向导页 + content: + text/html: + schema: { type: string } + '303': + description: 已初始化,重定向到 / + post: + tags: [初始化] + summary: 提交初始化 + operationId: setupSubmit + description: | + 表单或 JSON。管理员密码 ≥8 位;\`expireStyle\` 支持多值(复选框或逗号分隔)。 + 成功写入站点配置、密码哈希并生成 jwt_secret。表单提交返回成功 HTML,JSON 提交返回 JSON。 + requestBody: + content: + application/json: + schema: + type: object + properties: + admin_password: { type: string, minLength: 8 } + confirm_password: { type: string } + site_name: { type: string } + upload_size_value: { type: integer, default: 10 } + upload_size_unit: { type: string, enum: [KB, MB, GB], default: MB } + save_time_value: { type: integer, default: 0 } + save_time_unit: { type: string, enum: [second, minute, hour, day], default: day } + expireStyle: + oneOf: + - type: string + - type: array + items: { type: string } + code_generate_type: { type: string, enum: [number, secret], default: secret } + errorCount: { type: integer, default: 10 } + errorMinute: { type: integer, default: 1 } + loginCount: { type: integer, default: 5 } + loginMinute: { type: integer, default: 15 } + uploadCount: { type: integer, default: 10 } + uploadMinute: { type: integer, default: 1 } + allowed_file_types: { type: string, default: '*' } + openUpload: { type: boolean, default: true } + enableChunk: { type: boolean, default: false } + application/x-www-form-urlencoded: + schema: + type: object + properties: + admin_password: { type: string } + confirm_password: { type: string } + site_name: { type: string } + responses: + '200': + description: 初始化成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + ok: { type: boolean, example: true } + admin: { type: string, example: '/#/admin' } + text/html: + schema: { type: string } + '400': + $ref: '#/components/responses/BadRequest' + + /share/text: + post: + tags: [分享] + summary: 创建文本分享 + operationId: shareText + description: | + 文本 ≤222KB(请求体全局上限 1MiB,Content-Length>441KB 直接 403);上传类接口(成功计数 upload 限流,423 超限),经审计中间件落库。 + 保存策略(需求 ④):expire_style 须在 expireStyle 白名单(400);count 型受 + max_save_count 约束(403「限制次数最多为 N 次」);时间型受 max_save_seconds 约束(403)。 + v3.1:支持 JSON 提交(字段同名);空文本 400「分享内容不能为空」; + 可选 code 自定义提取码(5-8 位字母或数字,占用 400「该提取码已被占用」)。 + requestBody: + content: + application/x-www-form-urlencoded: + schema: + type: object + required: [text] + properties: + text: { type: string, maxLength: 227328 } + expire_value: { type: integer, default: 1 } + expire_style: { type: string, enum: [day, hour, minute, count, forever], default: day } + code: { type: string, minLength: 5, maxLength: 8, pattern: '^[A-Za-z0-9]+$', description: 自定义提取码(5-8 位字母数字,可省略=随机) } + responses: + '200': + description: 取件码 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + code: { type: string, example: 8XQ2M } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /share/file: + post: + tags: [分享] + summary: 上传文件并创建分享 + operationId: shareFile + description: | + multipart 上传;扩展名/MIME 白名单 + magic bytes 防伪;大小受动态策略上限限制 + (max_file_size>0 时为其,否则回落 uploadSize;403「大小超过限制,最大为10.00 MB」, + 管理端改后立即生效);保存策略同 /share/text(403/400);容量超限 507。 + requestBody: + content: + multipart/form-data: + schema: + type: object + required: [file] + properties: + code: { type: string, minLength: 5, maxLength: 8, pattern: '^[A-Za-z0-9]+$', description: 自定义提取码(5-8 位字母数字,可省略=随机) } + file: + type: string + format: binary + expire_value: { type: integer, default: 1 } + expire_style: { type: string, enum: [day, hour, minute, count, forever], default: day } + responses: + '200': + description: 取件码与文件名 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + code: { type: string, example: K3P9W } + name: { type: string, example: report.pdf } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '423': { $ref: '#/components/responses/RateLimited' } + '503': { $ref: '#/components/responses/ServiceUnavailable' } + '507': { $ref: '#/components/responses/InsufficientStorage' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /share/metadata: + get: + tags: [分享] + summary: 查询分享元信息(GET) + operationId: shareMetadataGet + description: 不消耗次数;每次访问计入 metadata 限流。 + parameters: + - $ref: '#/components/parameters/CodeQuery' + responses: + '200': + description: 元信息 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareMetadata' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [分享] + summary: 查询分享元信息(POST) + operationId: shareMetadataPost + requestBody: + content: + application/json: + schema: + type: object + required: [code] + properties: + code: { type: string } + responses: + '200': + description: 元信息(同 GET 版本) + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareMetadata' } + '400': { $ref: '#/components/responses/BadRequest' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /share/select: + get: + tags: [分享] + summary: 取件(消耗次数) + operationId: shareSelectGet + description: | + 每调用一次消耗 1 次取件。文本分享返回 text/plain 正文;文件分享返回文件流 + (200 全量 / 206 区间,支持 Range,Accept-Ranges: bytes)。失败计入 error 限流(423)。 + parameters: + - $ref: '#/components/parameters/CodeQuery' + - name: Range + in: header + required: false + schema: { type: string, example: 'bytes=0-1023' } + description: 文件分享的区间请求(单区间) + responses: + '200': + description: 文本正文或文件流 + content: + text/plain: + schema: { type: string } + application/octet-stream: + schema: { type: string, format: binary } + '206': + description: Range 区间文件流(Content-Range) + content: + application/octet-stream: + schema: { type: string, format: binary } + '404': { $ref: '#/components/responses/NotFound' } + '416': { $ref: '#/components/responses/RangeNotSatisfiable' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [分享] + summary: 取件详情(JSON) + operationId: shareSelectPost + description: | + 返回元信息 + 内容/下载地址。文本分享含 text/content;文件分享含 download_url + (代理地址或 S3 预签名直链)。次数型分享返回代理地址且本次不消耗(消耗在代理下载时)。 + requestBody: + content: + application/json: + schema: + type: object + required: [code] + properties: + code: { type: string } + responses: + '200': + description: 分享详情 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareDetail' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /share/download: + get: + tags: [分享] + summary: 代理下载(消耗次数) + operationId: shareDownload + description: key 为窗口令牌(双窗口校验,鉴权失败 403 且计入 error 限流);文件流 200/206 支持 Range。 + parameters: + - name: key + in: query + required: true + schema: { type: string } + - $ref: '#/components/parameters/CodeQuery' + responses: + '200': + description: 文本 JSON 或文件流 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + application/octet-stream: + schema: { type: string, format: binary } + '206': + description: Range 区间文件流 + content: + application/octet-stream: + schema: { type: string, format: binary } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '416': { $ref: '#/components/responses/RangeNotSatisfiable' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/init: + post: + tags: [分片上传] + summary: 初始化分片上传会话 + operationId: chunkInit + description: | + 相同 file_hash+file_size+file_name 的未完成会话自动续传(uploaded_chunks 非空即续传)。 + chunk_size 缺省 5MB、硬上限 32MiB(超出 400「chunk_size 过大」);需 enableChunk 开启(关闭时全部 /chunk 端点 403)。总大小按分片数上限受动态策略约束 + (max_file_size>0 时为其,否则 uploadSize;403);类型白名单 403。 + requestBody: + content: + application/json: + schema: + type: object + required: [file_name, file_size] + properties: + file_name: { type: string } + file_size: { type: integer, format: int64, minimum: 1 } + chunk_size: { type: integer, format: int64, default: 5242880, maximum: 33554432, description: 每片大小(字节),≤32MiB } + file_hash: { type: string, description: 整文件 SHA256,断点续传匹配键 } + responses: + '200': + description: 会话信息 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ChunkInitData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '423': { $ref: '#/components/responses/RateLimited' } + '507': { $ref: '#/components/responses/InsufficientStorage' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/{uploadID}/{chunkIndex}: + post: + tags: [分片上传] + summary: 上传单个分片 + operationId: chunkUpload + description: multipart 字段 chunk;单分片 ≤ min(chunk_size, 32MiB);重复上传幂等(skipped:true);首分片做 magic bytes 防伪。 + parameters: + - $ref: '#/components/parameters/UploadID' + - name: chunkIndex + in: path + required: true + schema: { type: integer, minimum: 0 } + requestBody: + content: + multipart/form-data: + schema: + type: object + required: [chunk] + properties: + chunk: { type: string, format: binary } + responses: + '200': + description: 分片结果 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ChunkUploadData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/status/{uploadID}: + get: + tags: [分片上传] + summary: 查询上传进度 + operationId: chunkStatus + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 进度 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ChunkStatusData' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/complete/{uploadID}: + post: + tags: [分片上传] + summary: 合并分片并创建分享 + operationId: chunkComplete + description: 分片到齐后调用;按索引有序合并 + SHA256 校验(不完整 400 / 哈希不符 400);累计大小受动态策略上限(403,超限清理会话);保存策略同 /share/text(403/400)。 + parameters: + - $ref: '#/components/parameters/UploadID' + requestBody: + content: + application/json: + schema: + type: object + properties: + expire_value: { type: integer, default: 1 } + expire_style: { type: string, enum: [day, hour, minute, count, forever], default: day } + responses: + '200': + description: 取件码与文件名 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareFileData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/{uploadID}: + delete: + tags: [分片上传] + summary: 取消上传 + operationId: chunkCancel + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 已取消 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + message: { type: string, example: 上传已取消 } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/init: + post: + tags: [预签名直传] + summary: 初始化预签名上传 + operationId: presignInit + description: | + S3 引擎返回 mode=direct(upload_url 为预签名 PUT URL);local/webdav 返回 mode=proxy + (upload_url=/presign/upload/proxy/{uploadID})。会话 900 秒有效。 + file_size 受动态策略上限(max_file_size>0 时为其,否则 uploadSize;403);保存策略同 /share/text。 + requestBody: + content: + application/json: + schema: + type: object + required: [file_name, file_size] + properties: + file_name: { type: string } + file_size: { type: integer, format: int64, minimum: 1 } + expire_value: { type: integer, default: 1 } + expire_style: { type: string, enum: [day, hour, minute, count, forever], default: day } + responses: + '200': + description: 上传会话 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/PresignInitData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '423': { $ref: '#/components/responses/RateLimited' } + '507': { $ref: '#/components/responses/InsufficientStorage' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/proxy/{uploadID}: + put: + tags: [预签名直传] + summary: 代理上传(proxy 模式) + operationId: presignProxy + description: multipart 字段 file;实际大小须与声明一致(±1KB);成功即建分享并删除会话。 + parameters: + - $ref: '#/components/parameters/UploadID' + requestBody: + content: + multipart/form-data: + schema: + type: object + required: [file] + properties: + file: { type: string, format: binary } + responses: + '200': + description: 取件码与文件名 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareFileData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/confirm/{uploadID}: + post: + tags: [预签名直传] + summary: 直传确认(direct 模式) + operationId: presignConfirm + description: | + 客户端完成 S3 PUT 后调用。服务端 HeadObject 核对实际对象: + 超过策略上限 → 删除对象、释放容量预留并 403;实际大小与声明差 >1KB → 400; + 前 64 字节做 magic bytes 校验(失败删除对象)。全部通过后创建分享记录。 + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 取件码与文件名 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareFileData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/status/{uploadID}: + get: + tags: [预签名直传] + summary: 查询预签名会话 + operationId: presignStatus + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 会话状态 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + upload_id: { type: string } + file_name: { type: string } + file_size: { type: integer, format: int64 } + mode: { type: string, enum: [direct, proxy] } + created_at: { type: string } + expires_at: { type: string } + is_expired: { type: boolean } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/{uploadID}: + delete: + tags: [预签名直传] + summary: 取消预签名会话 + operationId: presignCancel + description: direct 模式会尽力清理已直传的对象。 + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 已取消 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + message: { type: string, example: 上传会话已取消 } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/login: + post: + tags: [管理后台] + summary: 管理员登录 + operationId: adminLogin + description: 失败 401 并计入 login 限流(423 超限)。 + requestBody: + content: + application/json: + schema: + type: object + required: [password] + properties: + password: { type: string } + responses: + '200': + description: JWT 会话 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/LoginData' } + '401': { $ref: '#/components/responses/Unauthorized' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/verify: + get: + tags: [管理后台] + summary: 校验管理员会话 + operationId: adminVerify + security: [{ bearerAuth: [] }] + responses: + '200': + description: 会话信息 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/LoginData' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/logout: + post: + tags: [管理后台] + summary: 管理员登出 + operationId: adminLogout + description: 无状态 JWT,客户端丢弃令牌即可。 + security: [{ bearerAuth: [] }] + responses: + '200': + description: 确认 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/dashboard: + get: + tags: [管理后台] + summary: 管理端仪表盘统计 + operationId: adminDashboard + security: [{ bearerAuth: [] }] + responses: + '200': + description: 计数/存储用量/最近文件等 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + totalFiles: { type: integer } + storageUsed: { type: string, example: '123456789' } + sysUptime: { type: integer, nullable: true, description: 启动时刻 Unix 毫秒 } + yesterdayCount: { type: integer } + yesterdaySize: { type: string } + todayCount: { type: integer } + todaySize: { type: string } + activeCount: { type: integer } + expiredCount: { type: integer } + textCount: { type: integer } + fileCount: { type: integer } + chunkedCount: { type: integer } + usedCount: { type: integer } + storageBackend: { type: string, enum: [local, s3, webdav] } + uploadSizeLimit: { type: integer, format: int64 } + openUpload: { type: integer } + enableChunk: { type: integer } + maxSaveSeconds: { type: integer, format: int64 } + topSuffixes: + type: array + items: + type: object + properties: + suffix: { type: string } + count: { type: integer } + recentFiles: + type: array + items: { $ref: '#/components/schemas/AdminFileItem' } + recentActivities: { type: array, items: { type: object } } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/list: + get: + tags: [管理后台] + summary: 分页查询分享列表 + operationId: adminFileList + security: [{ bearerAuth: [] }] + parameters: + - { name: page, in: query, schema: { type: integer, default: 1, minimum: 1 } } + - { name: size, in: query, schema: { type: integer, default: 10, minimum: 1, maximum: 100 } } + - { name: keyword, in: query, schema: { type: string } } + - { name: status, in: query, schema: { type: string, enum: [active, expired] } } + - { name: type, in: query, schema: { type: string, enum: [text, file, chunked] } } + - { name: sortBy, in: query, schema: { type: string, enum: [created_at, expired_at, name, size, used_count, code] } } + - { name: sortOrder, in: query, schema: { type: string, enum: [asc, desc], default: desc } } + responses: + '200': + description: 列表与统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + page: { type: integer } + size: { type: integer } + total: { type: integer } + summary: + type: object + properties: + totalFiles: { type: integer } + activeCount: { type: integer } + expiredCount: { type: integer } + textCount: { type: integer } + fileCount: { type: integer } + chunkedCount: { type: integer } + storageUsed: { type: integer, format: int64 } + usedCount: { type: integer, format: int64 } + data: + type: array + items: { $ref: '#/components/schemas/AdminFileItem' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/detail: + get: + tags: [管理后台] + summary: 文件详情(GET) + operationId: adminFileDetailGet + security: [{ bearerAuth: [] }] + parameters: + - $ref: '#/components/parameters/FileIDQuery' + responses: + '200': + description: 文件条目(文本分享额外含 content 全文) + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/AdminFileItem' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 文件详情(POST) + operationId: adminFileDetailPost + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [id] + properties: + id: { type: integer, format: int64 } + responses: + '200': + description: 同 GET 版本 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/AdminFileItem' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/update: + patch: + tags: [管理后台] + summary: 更新分享字段(主名) + operationId: adminFileUpdate + description: code 冲突 400;POST /admin/file/update 为兼容别名。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: { $ref: '#/components/schemas/FileUpdateInput' } + responses: + '200': + description: 更新成功(data 为字符串“更新成功”) + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 更新分享字段(POST 别名) + operationId: adminFileUpdateAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: { $ref: '#/components/schemas/FileUpdateInput' } + responses: + '200': + description: 更新成功 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/delete: + delete: + tags: [管理后台] + summary: 删除单个分享(主名) + operationId: adminFileDelete + description: 连带删除存储文件;POST /admin/file/delete 为兼容别名。 + security: [{ bearerAuth: [] }] + parameters: + - { name: id, in: query, schema: { type: integer, format: int64 }, description: 亦可放请求体 } + requestBody: + content: + application/json: + schema: + type: object + properties: + id: { type: integer, format: int64 } + responses: + '200': + description: 删除成功(data 为 null) + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 删除单个分享(POST 别名) + operationId: adminFileDeleteAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + properties: + id: { type: integer, format: int64 } + responses: + '200': + description: 删除成功 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/batch-delete: + post: + tags: [管理后台] + summary: 批量删除 + operationId: adminFileBatchDelete + description: DELETE 方法亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + delete: + tags: [管理后台] + summary: 批量删除(DELETE 别名) + operationId: adminFileBatchDeleteAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/batch-update: + patch: + tags: [管理后台] + summary: 批量更新过期策略 + operationId: adminFileBatchUpdate + description: expired_at / expired_count / clearExpiredAt 三选一;POST 亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + expired_at: { type: string, description: ISO 8601 } + expired_count: { type: integer } + clearExpiredAt: { type: boolean, description: 清空过期时间并置 expired_count=-1(永久) } + clear_expired_at: { type: boolean, description: 同 clearExpiredAt } + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 批量更新(POST 别名) + operationId: adminFileBatchUpdateAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + expired_at: { type: string } + expired_count: { type: integer } + clearExpiredAt: { type: boolean } + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/policy-action: + patch: + tags: [管理后台] + summary: 单文件过期策略动作 + operationId: adminFilePolicyAction + description: 动作:extend_24h / extend_7d / make_permanent / reset_download_limit;POST 亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: { $ref: '#/components/schemas/PolicyInput' } + responses: + '200': + description: 执行结果 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/PolicyResult' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 单文件策略动作(POST 别名) + operationId: adminFilePolicyActionAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: { $ref: '#/components/schemas/PolicyInput' } + responses: + '200': + description: 执行结果 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/PolicyResult' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/batch-policy-action: + patch: + tags: [管理后台] + summary: 批量过期策略动作 + operationId: adminFileBatchPolicyAction + description: 响应结构同批量更新;POST 亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + allOf: + - type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + - $ref: '#/components/schemas/PolicyInput' + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 批量策略动作(POST 别名) + operationId: adminFileBatchPolicyActionAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + allOf: + - type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + - $ref: '#/components/schemas/PolicyInput' + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/download: + get: + tags: [管理后台] + summary: 管理员下载原文件 + operationId: adminFileDownload + description: 不消耗取件次数;文件返回二进制流(支持 Range),文本分享返回 JSON。 + security: [{ bearerAuth: [] }] + parameters: + - $ref: '#/components/parameters/FileIDQuery' + responses: + '200': + description: 文件流或文本 JSON + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + application/octet-stream: + schema: { type: string, format: binary } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/preview: + get: + tags: [管理后台] + summary: 文本预览 + operationId: adminFilePreview + description: 仅文本分享可用(文件分享 400);maxChars 默认 4000(1~20000)。 + security: [{ bearerAuth: [] }] + parameters: + - $ref: '#/components/parameters/FileIDQuery' + - { name: maxChars, in: query, schema: { type: integer, default: 4000, minimum: 1, maximum: 20000 } } + responses: + '200': + description: 预览内容 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + id: { type: integer, format: int64 } + code: { type: string } + name: { type: string } + type: { type: string, example: text } + content: { type: string } + length: { type: integer } + previewLength: { type: integer } + truncated: { type: boolean } + maxChars: { type: integer } + createdAt: { type: string } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/config/get: + get: + tags: [管理后台] + summary: 读取运行时配置 + operationId: adminConfigGet + description: admin_token 屏蔽(恒空串)、jwt_secret 不下发;_engine_hint 提示引擎配置需重启。 + security: [{ bearerAuth: [] }] + responses: + '200': + description: 配置 KV + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + additionalProperties: true + properties: + site_name: { type: string } + logo_url: { type: string } + favicon_url: { type: string } + background_url: { type: string } + footer_text: { type: string } + footer_beian: { type: string } + notify_enabled: { type: integer, enum: [0, 1] } + openUpload: { type: integer } + uploadSize: { type: integer, format: int64 } + max_file_size: { type: integer, format: int64, description: '0=回落 uploadSize' } + max_save_count: { type: integer, description: '0=不限制' } + max_save_seconds: { type: integer, format: int64 } + allowed_file_types: { type: array, items: { type: string } } + expireStyle: { type: array, items: { type: string } } + storageLimit: { type: integer, format: int64 } + uploadCount: { type: integer } + uploadMinute: { type: integer } + admin_token: { type: string, example: '' } + _engine_hint: + type: object + properties: + storage_backend: { type: string } + note: { type: string } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/config/update: + patch: + tags: [管理后台] + summary: 部分更新配置(主名) + operationId: adminConfigUpdate + description: | + JSON 对象部分更新,未知键忽略;数值键自动转型;v2 起新键按 settings.KVSchema 校验 + (整型边界/字符串长度/列表非空,越界 400 中文错误);background_url 协议白名单 + (http(s)/data:image/站内相对路径);admin_token 明文自动哈希并轮换 jwt_secret + (全部令牌立即失效);adminSessionExpire 须 1~365 整天(默认 604800 即 7 天);notify_content 服务端白名单净化(仅保留文本与 );策略与限流修改立即生效,引擎配置需重启。 + POST /admin/config/update 为兼容别名。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + additionalProperties: true + properties: + site_name: { type: string } + logo_url: { type: string } + favicon_url: { type: string } + background_url: + type: string + maxLength: 2048 + description: '需求 ① 背景图;仅 http(s)、data:image/* 与站内相对路径(/开头),空串清除;非法协议 400' + footer_text: { type: string, maxLength: 2000, description: '需求 ② 页脚自定义内容' } + footer_beian: { type: string, maxLength: 128, description: '需求 ② 备案号' } + notify_enabled: { type: integer, enum: [0, 1], description: '需求 ③ 通知开关' } + notify_title: { type: string, maxLength: 128 } + notify_content: { type: string, maxLength: 2000 } + openUpload: { type: integer, enum: [0, 1] } + uploadSize: { type: integer, format: int64, minimum: 1024, maximum: 10737418240 } + max_file_size: { type: integer, format: int64, minimum: 0, maximum: 10737418240, description: '需求 ⑩ 存储策略-单文件上限字节;0=回落 uploadSize' } + max_save_count: { type: integer, minimum: 0, maximum: 100000, description: '需求 ④ 单次分享最大可取次数上限;0=不限制' } + max_save_seconds: { type: integer, format: int64, minimum: 0, maximum: 31536000, description: '需求 ④ 最长保存秒数上限;0=默认 7 天兜底' } + allowed_file_types: + oneOf: + - type: array + items: { type: string } + minItems: 1 + - type: string + description: 逗号分隔亦可;"*" 不限制 + expireStyle: + oneOf: + - type: array + items: { type: string } + minItems: 1 + - type: string + description: 允许的过期方式白名单(day/hour/minute/forever/count 子集) + storageLimit: { type: integer, format: int64, minimum: 0 } + uploadCount: { type: integer, minimum: 1, maximum: 10000 } + uploadMinute: { type: integer, minimum: 1, maximum: 1440 } + errorCount: { type: integer } + errorMinute: { type: integer } + loginCount: { type: integer } + loginMinute: { type: integer } + admin_token: { type: string, description: 明文密码自动哈希并轮换 jwt_secret;空串忽略 } + adminSessionExpire: { type: integer, default: 604800, description: 秒,须 86400 的 1~365 整数倍(默认 7 天) } + responses: + '200': + description: 保存成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 部分更新配置(POST 别名) + operationId: adminConfigUpdateAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + additionalProperties: true + responses: + '200': + description: 保存成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/storage/switch: + post: + tags: [admin] + summary: 存储引擎热切换(v3) + description: | + 运行时切换存储引擎(local|s3|webdav)。构建新引擎并做健康检查, + 通过才生效;失败返回 503 且保持原引擎。成功后持久化 storage_engine KV, + 重启后沿用。 + operationId: adminStorageSwitch + security: + - bearerAuth: [] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [engine] + properties: + engine: + type: string + enum: [local, s3, webdav] + responses: + "200": + description: 切换成功 + content: + application/json: + schema: + allOf: + - $ref: "#/components/schemas/Envelope" + - type: object + properties: + data: + type: object + properties: + ok: { type: boolean } + engine: { type: string } + "400": { $ref: "#/components/responses/BadRequest" } + "401": { $ref: "#/components/responses/Unauthorized" } + "503": { $ref: "#/components/responses/ServiceUnavailable" } + + /admin/settings/password: + patch: + tags: [管理后台] + summary: 修改管理员密码(主名) + operationId: adminChangePassword + description: 新密码 ≥8 位;成功后轮换 jwt_secret,全部旧令牌失效(401)。POST 亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [old_password, new_password] + properties: + old_password: { type: string } + new_password: { type: string, minLength: 8 } + responses: + '200': + description: 修改成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 修改管理员密码(POST 别名) + operationId: adminChangePasswordAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [old_password, new_password] + properties: + old_password: { type: string } + new_password: { type: string, minLength: 8 } + responses: + '200': + description: 修改成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/audit/list: + get: + tags: [审计日志] + summary: 分页查询审计日志(主名) + operationId: adminAuditList + description: | + 需求 ③ 审计查询。行字段 snake_case 为主(camelCase 兼容双份)。 + action: upload|download;result: success|denied|failed;时间参数 ISO 8601。 + security: [{ bearerAuth: [] }] + parameters: + - { name: page, in: query, schema: { type: integer, default: 1, minimum: 1 } } + - { name: size, in: query, schema: { type: integer, default: 20, minimum: 1, maximum: 200 }, description: 兼容 pageSize } + - { name: action, in: query, schema: { type: string, enum: [upload, download] } } + - { name: result, in: query, schema: { type: string, enum: [success, denied, failed] } } + - { name: ip, in: query, schema: { type: string } } + - { name: start_time, in: query, schema: { type: string, example: '2025-06-01T00:00:00+08:00' } } + - { name: end_time, in: query, schema: { type: string, example: '2025-06-02T00:00:00+08:00' } } + responses: + '200': + description: 审计日志分页 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + data: + type: array + items: { $ref: '#/components/schemas/AuditItem' } + total: { type: integer } + page: { type: integer } + size: { type: integer } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/audit/logs: + get: + tags: [审计日志] + summary: 分页查询审计日志(别名) + operationId: adminAuditLogs + deprecated: true + description: 与 /admin/audit/list 完全相同(同一 handler 的兼容别名)。 + security: [{ bearerAuth: [] }] + parameters: + - { name: page, in: query, schema: { type: integer, default: 1 } } + - { name: size, in: query, schema: { type: integer, default: 20 } } + - { name: action, in: query, schema: { type: string, enum: [upload, download] } } + - { name: result, in: query, schema: { type: string, enum: [success, denied, failed] } } + - { name: ip, in: query, schema: { type: string } } + - { name: start_time, in: query, schema: { type: string } } + - { name: end_time, in: query, schema: { type: string } } + responses: + '200': + description: 审计日志分页 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + data: + type: array + items: { $ref: '#/components/schemas/AuditItem' } + total: { type: integer } + page: { type: integer } + size: { type: integer } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + +components: + securitySchemes: + bearerAuth: + type: http + scheme: bearer + bearerFormat: JWT + description: POST /admin/login 获取 + parameters: + CodeQuery: + name: code + in: query + required: true + schema: { type: string } + description: 取件码 + UploadID: + name: uploadID + in: path + required: true + schema: { type: string } + description: 上传会话 ID + FileIDQuery: + name: id + in: query + required: true + schema: { type: integer, format: int64 } + description: 文件记录 ID + responses: + BadRequest: + description: 参数/格式错误 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 400, msg: '过期时间类型错误' } + Unauthorized: + description: 未认证 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 401, msg: '密码错误' } + Forbidden: + description: 拒绝(类型/鉴权/上限) + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 403, msg: '不允许上传该类型文件' } + NotFound: + description: 不存在/已过期 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 404, msg: '文件不存在' } + RangeNotSatisfiable: + description: Range 越界 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 416, msg: '请求范围超出文件大小' } + RateLimited: + description: 限流超限 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 423, msg: '请求次数过多,请稍后再试' } + NotInitialized: + description: 系统未初始化(除 /setup 与 /api/v1/health 外) + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 428, msg: '系统未初始化,请先完成初始化' } + NotImplemented: + description: 引擎不支持 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 501, msg: '当前存储引擎不支持该操作' } + ServiceUnavailable: + description: 存储不可用 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 503, msg: '存储服务不可用,请稍后再试' } + InsufficientStorage: + description: 容量超限 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 507, msg: '存储空间已达到管理员设置的容量上限' } + schemas: + Envelope: + type: object + description: 统一响应封装(HTTP 状态码 = code;失败时 data 缺省) + required: [code, msg] + properties: + code: { type: integer, example: 200 } + msg: { type: string, example: ok } + data: { description: 业务数据,失败时缺省 } + OkData: + type: object + properties: + ok: { type: boolean, example: true } + ShareMetadata: + type: object + properties: + code: { type: string } + name: { type: string } + size: { type: integer, format: int64 } + type: { type: string, enum: [text, file] } + is_text: { type: boolean } + created_at: { type: string } + expired_at: { type: string, nullable: true } + expires_at: { type: string, nullable: true } + expired_count: { type: integer, description: '-1 按时间/永久;>0 次数型限额' } + used_count: { type: integer } + remaining_downloads: { type: integer, nullable: true } + ShareDetail: + allOf: + - $ref: '#/components/schemas/ShareMetadata' + - type: object + properties: + text: { type: string, description: 文本内容或下载地址 } + content: { type: string, description: 文本内容(仅文本分享) } + download_url: { type: string, nullable: true, description: 代理地址或 S3 预签名直链 } + ShareFileData: + type: object + properties: + code: { type: string } + name: { type: string } + ChunkInitData: + type: object + properties: + existed: { type: boolean, example: false } + upload_id: { type: string } + chunk_size: { type: integer, format: int64 } + total_chunks: { type: integer } + uploaded_chunks: { type: array, items: { type: integer } } + ChunkUploadData: + type: object + properties: + chunk_hash: { type: string } + chunk_index: { type: integer } + skipped: { type: boolean, description: 幂等命中已传分片时为 true } + ChunkStatusData: + type: object + properties: + upload_id: { type: string } + file_name: { type: string } + file_size: { type: integer, format: int64 } + chunk_size: { type: integer, format: int64 } + total_chunks: { type: integer } + uploaded_chunks: { type: array, items: { type: integer } } + progress: { type: number } + PresignInitData: + type: object + properties: + upload_id: { type: string } + upload_url: { type: string, description: 'direct=S3 预签名 PUT URL;proxy=/presign/upload/proxy/{id}' } + mode: { type: string, enum: [direct, proxy] } + expires_in: { type: integer, example: 900 } + file_path: { type: string } + proxy_upload_url: { type: string, description: '仅 proxy 模式,与 upload_url 等价' } + legacy_proxy_upload_url: { type: string, description: '仅 proxy 模式;/api 前缀兼容别名,已废弃' } + LoginData: + type: object + properties: + id: { type: string, example: admin } + username: { type: string, example: admin } + token: { type: string } + token_type: { type: string, example: Bearer } + expires_at: { type: integer, format: int64, description: Unix 秒 } + expires_in: { type: integer, description: 秒 } + AdminFileItem: + type: object + description: snake_case 与 camelCase 双份输出(文档以 snake_case 为准) + properties: + id: { type: integer, format: int64 } + code: { type: string } + name: { type: string } + prefix: { type: string } + suffix: { type: string } + size: { type: integer, format: int64 } + is_text: { type: boolean } + is_chunked: { type: boolean } + is_expired: { type: boolean } + expired_at: { type: string, nullable: true } + expired_count: { type: integer } + used_count: { type: integer } + created_at: { type: string } + has_download_limit: { type: boolean } + is_permanent: { type: boolean } + remaining_downloads: { type: integer, nullable: true } + file_hash: { type: string, nullable: true } + text: { type: boolean, description: true 表示为文本分享 } + FileUpdateInput: + type: object + required: [id] + properties: + id: { type: integer, format: int64 } + code: { type: string } + prefix: { type: string } + suffix: { type: string } + expired_at: { type: string, description: ISO 8601 } + expired_count: { type: integer } + PolicyInput: + type: object + required: [action] + properties: + id: { type: integer, format: int64 } + action: { type: string, enum: [extend_24h, extend_7d, make_permanent, reset_download_limit] } + downloadLimit: { type: integer, minimum: 1, description: 仅 reset_download_limit;默认 5 } + PolicyResult: + type: object + properties: + id: { type: integer, format: int64 } + action: { type: string } + BatchStats: + type: object + description: 请求/成功/缺失/失败统计(snake_case 与 camelCase 双份) + properties: + requestedCount: { type: integer } + deletedCount: { type: integer, description: 仅批量删除 } + updatedCount: { type: integer, description: 仅批量更新 } + missingCount: { type: integer } + failedCount: { type: integer } + deleted: { type: array, items: { type: integer, format: int64 } } + missing: { type: array, items: { type: integer, format: int64 } } + failed: + type: array + items: + type: object + properties: + id: { type: integer, format: int64 } + reason: { type: string } + AuditItem: + type: object + description: 需求 ③ 审计行(snake_case 与 camelCase 双份) + properties: + id: { type: integer, format: int64 } + action: { type: string, enum: [upload, download] } + file_code: { type: string } + file_name: { type: string } + size_bytes: { type: integer, format: int64 } + transferred_bytes: { type: integer, format: int64 } + ip: { type: string } + user_agent: { type: string } + device_os: { type: string } + device_browser: { type: string } + device_type: { type: string } + actor: { type: string, enum: [admin, guest] } + result: { type: string, enum: [success, denied, failed] } + error_msg: { type: string } + duration_ms: { type: integer, format: int64 } + created_at: { type: string } + +security: [] +`,S=Object.assign({"../../../docs/api/00-overview.md":p,"../../../docs/api/01-auth.md":d,"../../../docs/api/02-text-share.md":c,"../../../docs/api/03-file-share.md":l,"../../../docs/api/04-pickup.md":m,"../../../docs/api/05-chunk-upload.md":u,"../../../docs/api/06-presign.md":g,"../../../docs/api/07-admin.md":_,"../../../docs/api/08-audit.md":y,"../../../docs/api/09-storage.md":h,"../../../docs/api/10-config.md":f,"../../../docs/api/11-errors.md":x,"../../../docs/api/12-logo.md":b}),v=["README","share","chunk","presign","admin","audit","errors","config","logo","webdav","env"];function j(n){return(n.split("/").pop()??n).replace(/\.md$/,"")}function E(n,e){const o=/^#\s+(.+)$/m.exec(n);return o?o[1].trim():e}const r=Object.entries(S).map(([n,e])=>{const o=j(n),s=v.indexOf(o);return{slug:o,title:E(e,o),embedded:e,order:s>=0?s:100+o.localeCompare("")}}).sort((n,e)=>n.order-e.order||n.slug.localeCompare(e.slug));r.length>0;const k=Object.assign({"../../../docs/openapi.yaml":T}),O=Object.values(k)[0]??null;async function C(n){if(n.embedded!==null)return n.embedded;const{API_BASE:e}=await i(async()=>{const{API_BASE:t}=await import("./index-DSPQyv0Z.js").then(a=>a.aD);return{API_BASE:t}},__vite__mapDeps([0,1])),o=`${e}/docs/api/${encodeURIComponent(n.slug)}.md`,s=await fetch(o);if(!s.ok)throw new Error(`文档加载失败(HTTP ${s.status})`);return s.text()}async function I(){try{const{API_BASE:n}=await i(async()=>{const{API_BASE:t}=await import("./index-DSPQyv0Z.js").then(a=>a.aD);return{API_BASE:t}},__vite__mapDeps([0,1])),e=await fetch(`${n}/docs/api/index.json`);if(!e.ok)return[];const o=await e.json(),s=new Set(r.map(t=>t.slug));return o.filter(t=>t.slug&&!s.has(t.slug)).map(t=>({slug:t.slug,title:t.title??t.slug,embedded:null,order:200}))}catch{return[]}}export{I as a,r as d,O as e,C as l}; diff --git a/server/web/dist/assets/docsSource-CuVILP5D.js b/server/web/dist/assets/docsSource-CuVILP5D.js new file mode 100644 index 0000000..7355a2b --- /dev/null +++ b/server/web/dist/assets/docsSource-CuVILP5D.js @@ -0,0 +1,2633 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-D7AAbqvI.js","assets/index-CtyCxWf5.css"])))=>i.map(i=>d[i]); +import{ay as i}from"./index-D7AAbqvI.js";const p='# API 概述\n\n文件快传 Go 版(26.9)对外提供一套 REST API,覆盖文本/文件分享、分片上传、\n预签名直传、管理后台与审计日志查询。\n\n## 更新日志\n\n- **v3.2**:上下行带宽限速(`upload_rate` / `download_rate`,详见《[带宽限速](13-bandwidth.md)》)\n- v3.1:站点对外域名(`site_domain`)、自定义提取码(5~8 位)本文档与 `server/internal/api/` 实际实现逐一对齐,\n交互式规范见站内 `/openapi`(源文件 `docs/openapi.yaml`)。\n\n## Base URL\n\n- 服务默认监听 `:8466`,Base URL 为 `http://:8466`(下文示例统一用 `http://localhost:8466`)。\n- **业务路由挂根路径**(与参考实现一致):`/share/*`、`/chunk/*`、`/presign/*`、`/admin/*`、`/setup`。\n- 仅两个公共接口带 `/api/v1` 前缀:`/api/v1/health`、`/api/v1/config`。\n\n## 统一响应封装\n\n所有 JSON 接口返回统一结构,HTTP 状态码与 `code` 一致;失败时 `data` 缺省:\n\n```json\n{ "code": 200, "msg": "ok", "data": { } }\n```\n\n失败示例(404):\n\n```json\n{ "code": 404, "msg": "文件不存在" }\n```\n\n个别端点直接返回原始内容而非 JSON 封装(文档中已单独标注):\n\n| 端点 | 响应形式 |\n|---|---|\n| `GET /share/select?code=`(文本分享) | `text/plain; charset=utf-8` 正文 |\n| `GET /share/select?code=`(文件分享) | 文件二进制流(200/206,支持 Range) |\n| `GET /share/download?key=&code=`(文件分享) | 文件二进制流(200/206,支持 Range) |\n| `GET /admin/file/download?id=`(文件分享) | 文件二进制流 |\n| `GET /setup` / `POST /setup`(表单) | HTML 向导/成功页 |\n\n## 字段命名约定\n\n- 接口字段以 **snake_case** 为主(`file_code`、`size_bytes`)。\n- 文件列表与审计日志的行字段同时输出 **snake_case 与 camelCase 双份**(如 `expired_at` 与 `expiredAt`),文档以 snake_case 为准,camelCase 仅为前端兼容保留。\n\n## 认证\n\n- 游客接口无需认证;是否允许游客上传由配置 `openUpload` 控制(关闭时上传类接口要求管理员 `Authorization: Bearer `,否则 403)。\n- 管理接口(`/admin/login` 除外)一律要求 `Authorization: Bearer `,无效/缺失返回 401。\n- 详情见《认证与限流》。\n\n## 限流\n\n按 IP(可信代理场景解析 `X-Forwarded-For`)维度限流,超限返回 **423**:\n\n| 规则 | 计数时机 | 默认(次/窗口) | 相关配置 |\n|---|---|---|---|\n| `upload` | **上传成功**后计数 | 10 次 / 1 分钟 | `uploadCount` / `uploadMinute` |\n| `error` | 取件失败(404/过期)时计数 | 10 次 / 1 分钟 | `errorCount` / `errorMinute` |\n| `login` | 登录失败时计数 | 5 次 / 15 分钟 | `loginCount` / `loginMinute` |\n| `metadata` | 每次访问即计数 | 同 `error` | `errorCount` / `errorMinute` |\n| `bandwidth` | 每 Read 块按 `rate` 字节/秒对齐 sleep,0=不限速 | 0 / 0(不限) | `upload_rate` / `download_rate` |\n\n## 初始化守卫\n\n系统未初始化(未设置管理员密码)时,除 `GET|POST /setup` 与 `GET /api/v1/health` 外,\n**所有接口一律返回 428**:\n\n```json\n{ "code": 428, "msg": "系统未初始化,请先完成初始化" }\n```\n\n首次部署请先访问 `GET /setup` 获取 HTML 向导,或直接 `POST /setup` 完成初始化(见《管理后台 API》初始化章节)。\n\n## 审计\n\n所有上传/下载端点经审计中间件自动落库(操作时间/IP/UA/设备解析/动作/结果/字节数/耗时/角色),\n失败与被拒绝的请求同样记录;管理端经 `GET /admin/audit/list` 查询,详见《审计日志》。\n\n## 端点总览\n\n| 模块 | 端点 |\n|---|---|\n| 公共 | `GET /api/v1/health` · `GET /api/v1/config` · `GET /robots.txt`(输出 `robotsText` 配置) |\n| 初始化 | `GET /setup` · `POST /setup` |\n| 文本分享 | `POST /share/text` |\n| 文件分享 | `POST /share/file` |\n| 查询与取件 | `GET/POST /share/metadata` · `GET /share/select` · `POST /share/select` · `GET /share/download` |\n| 分片上传 | `POST /chunk/upload/init` · `POST /chunk/upload/{uploadID}/{chunkIndex}` · `GET /chunk/upload/status/{uploadID}` · `POST /chunk/upload/complete/{uploadID}` · `DELETE /chunk/upload/{uploadID}` |\n| 预签名直传 | `POST /presign/upload/init` · `PUT /presign/upload/proxy/{uploadID}` · `POST /presign/upload/confirm/{uploadID}` · `GET /presign/upload/status/{uploadID}` · `DELETE /presign/upload/{uploadID}` |\n| 管理后台 | `POST /admin/login` · `GET /admin/verify` · `POST /admin/logout` · `GET /admin/dashboard` · 文件管理 `/admin/file/*` · 配置 `/admin/config/*` · 密码 `/admin/settings/password` |\n| 审计日志 | `GET /admin/audit/list`(别名 `/admin/audit/logs`) |\n\n## 专题文档\n\n| 主题 | 文档 |\n|---|---|\n| 站点 Logo 自定义 | [12-logo.md](12-logo.md) |\n| 错误码 | [11-errors.md](11-errors.md) |\n| 带宽限速(v3.2) | [13-bandwidth.md](13-bandwidth.md) |\n\n## 时间与编码\n\n- 时间字段一律 RFC 3339(如 `2025-06-01T12:00:00+08:00`);管理员会话过期时间为 Unix 秒。\n- 请求体支持 `application/json` 与 `application/x-www-form-urlencoded`(上传类为 `multipart/form-data`),文档示例以 JSON/curl 为主。\n- CORS:公开接口放开(Bearer 认证,无 Cookie CSRF 面);**管理端 `/admin/*` 已收紧**——携带 Origin 且既不同源也不在 `site_domain` 白名单时不下发 CORS 头(浏览器拦截跨域读取)。\n\n## 交互式文档\n\n- 站内文档页:`/docs`(渲染本目录 markdown,构建时内嵌)。\n- Swagger UI:`/openapi`(渲染 `docs/openapi.yaml`,构建时内嵌)。\n- OpenAPI 规范源文件为仓库内 `docs/openapi.yaml`;如需经后端直接下载,\n 需在部署时把它拷贝进前端静态产物 `web/dist/`(未拷贝时该路径按 SPA 回退返回页面)。\n',d='# 认证与限流\n\n## 角色\n\n| 角色 | 能力 |\n|---|---|\n| 游客(无 Authorization 头) | 取件、查询元信息;`openUpload=1` 时可上传 |\n| 管理员(`Authorization: Bearer `) | 全部能力 + `/admin/*` 管理接口 |\n\n## 管理员令牌\n\n- 由 `POST /admin/login` 用管理员密码换取,HS256 JWT,默认有效期 **7 天**(`adminSessionExpire`,1~365 整天,26.9 起由 30 天缩短)。\n- 请求头格式:`Authorization: Bearer `。\n- **改密/重置管理员密码会轮换 `jwt_secret`,所有已签发令牌立即失效**(401)。\n- 密码存储为 bcrypt(cost 12);历史 `sha256$`/明文格式在登录成功后自动升级重哈希,无需手动迁移。\n- 游客上传关闭(`openUpload=0`)时,上传类接口也可用管理员 Bearer 令牌通过鉴权。\n\n## 认证失败语义\n\n| 场景 | 状态码 |\n|---|---|\n| `/admin/*` 缺失/无效令牌 | 401 |\n| `POST /admin/login` 密码错误 | 401(并计入 login 限流) |\n| 游客上传被关闭且未携带有效令牌 | 403 |\n| 代理下载 `key` 校验失败 | 403 |\n\n## 未初始化(428)\n\n管理员密码未设置(`admin_token` 为空)时,除 `GET|POST /setup` 与 `GET /api/v1/health` 外全部接口返回 428。\n完成 `POST /setup` 初始化后自动解除。\n\n## 限流规则\n\n限流按 **客户端 IP** 维度(配置 `FCB_TRUSTED_PROXIES` 声明可信代理 CIDR,命中时解析 `X-Forwarded-For` 取真实 IP),\n窗口计数原子化存储于缓存(未配置 Redis 时为进程内存)。**超限一律返回 423**:\n\n```json\n{ "code": 423, "msg": "请求次数过多,请稍后再试" }\n```\n\n| 规则 | 生效端点 | 计数时机 | 默认 | 配置键 |\n|---|---|---|---|---|\n| `upload` | `/share/text`、`/share/file`、`/chunk/upload/*`、`/presign/upload/*` | **成功后**计数(进入时仅检查) | 10 次 / 1 分钟 | `uploadCount`、`uploadMinute` |\n| `error` | `/share/select`、`/share/download` | 取件失败(不存在/过期/鉴权失败)时计数 | 10 次 / 1 分钟 | `errorCount`、`errorMinute` |\n| `login` | `/admin/login` | 登录失败时计数 | 5 次 / 15 分钟 | `loginCount`、`loginMinute` |\n| `metadata` | `/share/metadata` | **每次访问即计数**(含失败) | 同 `error` | `errorCount`、`errorMinute` |\n\n- 规则值可由管理端 `PATCH /admin/config/update` 运行时修改,立即生效(无需重启)。\n- 取件成功(`/share/select`、`/share/download`)不计入 `error` 限流。\n\n## 代理下载令牌(key)\n\n`GET /share/download` 的 `key` 由服务端按窗口生成:\n`sha256(code + timeFactor + "000" + jwt_secret)`,`timeFactor = unix秒 / 1000`(约 16.7 分钟一个窗口)。\n服务端**同时接受当前与上一窗口**的令牌,避免窗口边界竞态。令牌通过 `POST /share/select` 的响应\n`download_url` 下发,客户端不应自行构造。\n\n## 示例\n\n登录获取令牌:\n\n```bash\ncurl -s http://localhost:8466/admin/login \\\n -H \'Content-Type: application/json\' \\\n -d \'{"password":"your-admin-password"}\'\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "id": "admin", "username": "admin",\n "token": "eyJhbGciOiJIUzI1NiIs...",\n "token_type": "Bearer",\n "expires_at": 1750000000,\n "expires_in": 604800\n }\n}\n```\n\n携带令牌调用管理接口:\n\n```bash\nTOKEN="eyJhbGciOiJIUzI1NiIs..."\ncurl -s http://localhost:8466/admin/dashboard -H "Authorization: Bearer $TOKEN"\n```\n\n校验令牌是否有效:\n\n```bash\ncurl -s http://localhost:8466/admin/verify -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": { "id": "admin", "username": "admin", "token": "eyJhbGciOiJIUzI1NiIs...", "token_type": "Bearer", "expires_at": 1750000000 }\n}\n```\n\n令牌失效时:\n\n```json\n{ "code": 401, "msg": "令牌无效或已过期" }\n```\n',c='# 文本分享\n\n创建纯文本分享,返回取件码。文本大小上限 **222KB**(超限建议改用文件分享);请求体全局上限 1MiB,`Content-Length` >441KB 时读前直接 403。\n经审计中间件落库(action=upload)。\n\n## POST /share/text\n\n**请求参数**(`application/x-www-form-urlencoded`,亦支持 multipart;`text` 为必需):\n\n| 参数 | 类型 | 必需 | 默认 | 说明 |\n|---|---|---|---|---|\n| `code` | string,可选;自定义提取码,5-8 位字母或数字(空=随机生成;占用 400「该提取码已被占用」) |\n| `text` | string | ✅ | - | 文本内容(≤222KB,按 UTF-8 字节数) |\n| `expire_value` | int | ❌ | `1` | 过期值(配合 `expire_style`) |\n| `expire_style` | string | ❌ | `day` | `day`/`hour`/`minute`/`count`/`forever`(须在站点允许列表内) |\n\n过期语义:\n\n- `day`/`hour`/`minute`:按时间过期,`expired_count = -1`。\n- `count`:按次数过期,取件 `expire_value` 次后失效(`expired_count = expire_value`);\n **v2 需求 ④**:`max_save_count>0` 时 `expire_value` 不得超出该上限,超限 403。\n- `forever`:永久(需站点允许;`max_save_seconds>0` 时其他方式受最长保存上限约束,超限 403)。\n\n> 可选值与上限来自公开配置 `GET /api/v1/config`(`expireStyle`、`max_save_seconds`、\n> `max_save_count`),上传页动态读取并在范围内选择;管理端改策略后立即生效。\n\n**curl 示例**:\n\n```bash\n# 自定义提取码(可选):-d \'code=MYCODE1\'\ncurl -s -X POST http://localhost:8466/share/text \\\n -d \'text=你好,文件快传\' \\\n -d \'expire_value=1\' \\\n -d \'expire_style=day\'\n```\n\n**成功响应**(200):\n\n```json\n{ "code": 200, "msg": "ok", "data": { "code": "8XQ2M" } }\n```\n\n`data.code` 为 5 位取件码(数字或大写字母+数字,取决于 `code_generate_type`)。\n\n**错误响应**:\n\n```json\n{ "code": 400, "msg": "过期时间类型错误" }\n```\n\n```json\n{ "code": 400, "msg": "过期时间值必须大于 0" }\n```\n\n```json\n{ "code": 403, "msg": "内容过多,建议采用文件形式" }\n```\n\n```json\n{ "code": 403, "msg": "限制最长时间为 7天,可换用其他方式" }\n```\n\n```json\n{ "code": 403, "msg": "限制次数最多为 5 次" }\n```\n\n```json\n{ "code": 423, "msg": "请求次数过多,请稍后再试" }\n```\n\n> 游客上传关闭(`openUpload=0`)时需携带管理员令牌,否则 403:\n> `{"code":403,"msg":"本站未开启游客上传,如需上传请先登录后台"}`\n\n## 取回文本\n\n文本分享的取回走统一的取件接口(消耗次数):\n\n- `GET /share/select?code=` → `text/plain` 正文即文本内容(响应头 `Content-Disposition` 带文件名,无扩展名时为 `.txt`)。\n- `POST /share/select`(`{"code":"8XQ2M"}`)→ JSON,`data.text` / `data.content` 为文本内容。\n\n示例:\n\n```bash\ncurl -s "http://localhost:8466/share/select?code=8XQ2M"\n```\n\n```text\n你好,文件快传\n```\n\n**v3.1 变更**:① 支持 JSON 提交(`Content-Type: application/json`,字段同名);② 空文本 400「分享内容不能为空」;③ 可选 `code` 自定义提取码(5-8 位字母数字,占用 400)。\n',l='# 文件分享\n\n上传单个文件并创建分享。支持扩展名/MIME 白名单 + **magic bytes 防伪**(读文件前 64 字节校验,\n伪造类型返回 403)。经审计中间件落库(action=upload,记录文件总大小与实际传输字节)。\n\n## POST /share/file\n\n**请求参数**(`multipart/form-data`):\n\n| 参数 | 类型 | 必需 | 默认 | 说明 |\n|---|---|---|---|---|\n| `code` | string,可选;自定义提取码,5-8 位字母或数字(空=随机生成;占用 400) |\n| `file` | file | ✅ | - | 上传的文件(大小 ≤ 生效上限:`max_file_size>0` 时为其,否则 `uploadSize`) |\n| `expire_value` | int | ❌ | `1` | 过期值(配合 `expire_style`;`count` 型受 `max_save_count` 约束) |\n| `expire_style` | string | ❌ | `day` | `day`/`hour`/`minute`/`count`/`forever`(须在 `expireStyle` 白名单内) |\n\n**curl 示例**:\n\n```bash\ncurl -s -X POST http://localhost:8466/share/file \\\n -F \'file=@./report.pdf;type=application/pdf\' \\\n -F \'expire_value=7\' \\\n -F \'expire_style=day\'\n```\n\n**成功响应**(200):\n\n```json\n{ "code": 200, "msg": "ok", "data": { "code": "K3P9W", "name": "report.pdf" } }\n```\n\n**错误响应**:\n\n```json\n{ "code": 400, "msg": "缺少上传文件 file 字段" }\n```\n\n```json\n{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" }\n```\n\n> 大小上限为动态策略(v2 需求 ④⑩):管理端改 `max_file_size`(0=回落 `uploadSize`)后\n> **下一次上传立即按新上限执行**,无需重启;上限值可经 `GET /api/v1/config` 的\n> `max_file_size`/`maxFileSize` 字段读取。\n\n```json\n{ "code": 403, "msg": "不允许上传该类型文件" }\n```\n\n```json\n{ "code": 403, "msg": "文件内容与扩展名不匹配,疑似伪造类型" }\n```\n\n```json\n{ "code": 403, "msg": "限制最长时间为 7天,可换用其他方式" }\n```\n\n```json\n{ "code": 403, "msg": "限制次数最多为 5 次" }\n```\n\n```json\n{ "code": 403, "msg": "请求次数过多,请稍后再试" }\n```\n\n```json\n{ "code": 507, "msg": "存储空间已达到管理员设置的容量上限" }\n```\n\n```json\n{ "code": 503, "msg": "存储服务不可用,请稍后再试" }\n```\n\n## 文件类型白名单\n\n由配置 `allowed_file_types` 控制(管理端可改):\n\n- `*`:不限制(默认)。\n- 扩展名规则:`.png`、`pdf`(自动补点)等,按文件名后缀匹配。\n- MIME 规则:`image/*`、`application/pdf` 等,按请求 `Content-Type` 通配匹配。\n\n已知类型(png/jpg/gif/webp/bmp/pdf/zip/rar/7z/gz/mp3/mp4/exe/elf)会做 **magic bytes 交叉校验**:\n扩展名或 Content-Type 声明了已知类型,但文件头不匹配时拒绝(403「疑似伪造类型」)。\n\n## 下载取件\n\n- `GET /share/select?code=`:消耗 1 次取件,返回文件流(`200` 全量 / `206` 区间,\n 支持 `Range` 请求头;响应含 `Accept-Ranges: bytes`、`Content-Disposition: attachment; filename*=UTF-8\'\'...`)。\n- `POST /share/select`:返回详情 JSON,`download_url` 为代理下载地址(见下)。\n- `GET /share/download?key=&code=`:代理下载,消耗 1 次,同样支持 Range。\n\nRange 示例(取前 1024 字节):\n\n```bash\ncurl -s -H \'Range: bytes=0-1023\' -o part.bin \\\n "http://localhost:8466/share/select?code=K3P9W"\n```\n\n区间越界返回:\n\n```json\n{ "code": 416, "msg": "请求范围超出文件大小" }\n```\n',m=`# 分享查询与取件 + +查询分享元信息(不消耗次数)与真正取件(消耗次数)的完整接口。 +除 \`metadata\` 每次 423 限流计数外,取件失败还会计入 \`error\` 限流。 + +## 元信息:GET /share/metadata + +按取件码查询元信息,**不消耗次数**。每次访问即计入 \`metadata\` 限流。 + +**参数**:\`code\`(query,必需)。 + +\`\`\`bash +curl -s "http://localhost:8466/share/metadata?code=K3P9W" +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "code": "K3P9W", + "name": "report.pdf", + "size": 1048576, + "type": "file", + "is_text": false, + "created_at": "2025-06-01T12:00:00+08:00", + "expired_at": "2025-06-08T12:00:00+08:00", + "expires_at": "2025-06-08T12:00:00+08:00", + "expired_count": -1, + "used_count": 3, + "remaining_downloads": null + } +} +\`\`\` + +字段说明: + +| 字段 | 说明 | +|---|---| +| \`type\` | \`text\`(文本分享)/ \`file\`(文件分享) | +| \`is_text\` | 是否文本分享 | +| \`size\` | 字节数 | +| \`expired_at\` / \`expires_at\` | 过期时间(RFC 3339);永久分享为 \`null\` | +| \`expired_count\` | \`-1\` 按时间/永久;\`>0\` 剩余可取次数(原始限额) | +| \`used_count\` | 已取次数 | +| \`remaining_downloads\` | 剩余可取次数(仅次数型分享有值,否则 \`null\`) | + +> 不返回存储路径等敏感字段。 + +**错误响应**: + +\`\`\`json +{ "code": 404, "msg": "文件不存在" } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "文件已过期" } +\`\`\` + +## 元信息(POST):POST /share/metadata + +等价的 JSON 版本(\`code\` 放请求体): + +\`\`\`bash +curl -s -X POST http://localhost:8466/share/metadata \\ + -H 'Content-Type: application/json' \\ + -d '{"code":"K3P9W"}' +\`\`\` + +响应与 GET 版本一致。 + +## 取件(消耗次数):GET /share/select + +**每调用一次消耗 1 次取件**(次数型分享扣减 \`expired_count\`;时间型扣减不计)。 + +- 文本分享:返回 \`text/plain; charset=utf-8\` 正文(非 JSON 封装),\`Content-Disposition\` 携带文件名。 +- 文件分享:返回文件流(\`200\` 全量 / \`206\` 区间),支持 \`Range\`。 + +\`\`\`bash +curl -s -OJ "http://localhost:8466/share/select?code=K3P9W" +\`\`\` + +次数耗尽或已过期: + +\`\`\`json +{ "code": 404, "msg": "文件已过期" } +\`\`\` + +超限(计入 error 限流): + +\`\`\`json +{ "code": 423, "msg": "请求次数过多,请稍后再试" } +\`\`\` + +## 取件详情:POST /share/select + +返回元信息 + 文本内容/下载地址的 JSON 详情。**消耗语义**:次数型分享(\`expired_count >= 0\`) +返回代理地址 \`download_url\` 且本次**不消耗**(消耗发生在访问代理地址时);时间型/永久/文本分享在本次消耗。 + +\`\`\`bash +curl -s -X POST http://localhost:8466/share/select \\ + -H 'Content-Type: application/json' \\ + -d '{"code":"K3P9W"}' +\`\`\` + +**文件分享响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "code": "K3P9W", + "name": "report.pdf", + "size": 1048576, + "type": "file", + "is_text": false, + "created_at": "2025-06-01T12:00:00+08:00", + "expired_at": "2025-06-08T12:00:00+08:00", + "expires_at": "2025-06-08T12:00:00+08:00", + "expired_count": -1, + "used_count": 4, + "remaining_downloads": null, + "text": "/share/download?key=9f2c…&code=K3P9W", + "download_url": "/share/download?key=9f2c…&code=K3P9W" + } +} +\`\`\` + +> S3 引擎下时间型/永久分享的 \`download_url\` 可能是预签名直链(1 小时有效)而非代理地址; +> 次数型分享恒为代理地址 \`"/share/download?key=…&code=…"\`。 + +**文本分享响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "code": "8XQ2M", "name": "Text.txt", "size": 24, "type": "text", "is_text": true, + "created_at": "2025-06-01T12:00:00+08:00", + "expired_at": "2025-06-02T12:00:00+08:00", "expires_at": "2025-06-02T12:00:00+08:00", + "expired_count": -1, "used_count": 1, "remaining_downloads": null, + "text": "你好,文件快传", + "content": "你好,文件快传", + "download_url": null + } +} +\`\`\` + +## 代理下载:GET /share/download + +\`POST /share/select\` 返回的代理地址,**每次访问消耗 1 次**,支持 Range。 + +| 参数 | 说明 | +|---|---| +| \`key\` | 窗口令牌(服务端下发,双窗口校验) | +| \`code\` | 取件码 | + +\`\`\`bash +curl -s -OJ "http://localhost:8466/share/download?key=9f2c…&code=K3P9W" +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 403, "msg": "下载鉴权失败" } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "文件已过期" } +\`\`\` + +> \`key\` 鉴权失败会计入 error 限流;文本分享经该接口返回 JSON 封装 \`data\` 为文本内容。 +`,u=`# 分片上传 + +大文件分片上传:客户端把文件切成固定大小的分片逐个上传,服务端按索引合并并做 SHA256 校验。 +支持**断点续传**(相同 \`file_hash\` + 大小 + 文件名的未完成会话自动续传)。 +需站点开启 \`enableChunk\`(公共配置 \`enableChunk\` 返回 \`true\`)。 +分片会话保留 24 小时。全部端点经审计中间件落库(action=upload)。 + +## 上传流程 + +\`\`\`text +POST /chunk/upload/init → upload_id, total_chunks +POST /chunk/upload/{id}/{index} → 逐片上传(0 起,可并发) +GET /chunk/upload/status/{id} → 断点续传时查进度 +POST /chunk/upload/complete/{id} → 合并 + SHA256 → 取件码 +DELETE /chunk/upload/{id} → 取消(可选) +\`\`\` + +## 初始化:POST /chunk/upload/init + +**请求体**(JSON,亦兼容表单): + +| 参数 | 类型 | 必需 | 默认 | 说明 | +|---|---|---|---|---| +| \`file_name\` | string | ✅ | - | 文件名(会做清理与白名单校验) | +| \`file_size\` | int | ✅ | - | 文件总字节数(>0;服务端按分片数校验上限) | +| \`chunk_size\` | int | ❌ | \`5242880\`(5MB) | 每片大小(字节),硬上限 32MiB(超出 400「chunk_size 过大」) | +| \`file_hash\` | string | ❌ | - | 整文件 SHA256(断点续传的匹配键) | + +**curl 示例**: + +\`\`\`bash +curl -s -X POST http://localhost:8466/chunk/upload/init \\ + -H 'Content-Type: application/json' \\ + -d '{"file_name":"movie.mp4","file_size":15728640,"chunk_size":5242880,"file_hash":""}' +\`\`\` + +**成功响应**(200,新建会话): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "existed": false, + "upload_id": "3f6b8c2a4d5e6f708192a3b4c5d6e7f8", + "chunk_size": 5242880, + "total_chunks": 3, + "uploaded_chunks": [] + } +} +\`\`\` + +**断点续传响应**(200,命中未完成会话):返回既有会话,\`uploaded_chunks\` 为已传分片索引列表, +客户端只需补传缺失分片(注意:\`existed\` 字段恒为 \`false\`,是否续传以 \`upload_id\` 复用且 +\`uploaded_chunks\` 非空为准): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "existed": false, + "upload_id": "3f6b8c2a4d5e6f708192a3b4c5d6e7f8", + "chunk_size": 5242880, + "total_chunks": 3, + "uploaded_chunks": [0, 1] + } +} +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 400, "msg": "file_size 必须大于 0" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "分片上传未启用" } +\`\`\` + +## 上传分片:POST /chunk/upload/{uploadID}/{chunkIndex} + +主路径(与参考实现语义一致)。\`chunkIndex\` 从 \`0\` 起。 + +**multipart 字段**:\`chunk\`(必需,该分片的二进制数据)。 + +**curl 示例**: + +\`\`\`bash +split -b 5242880 movie.mp4 part- # 本地分片 +curl -s -X POST http://localhost:8466/chunk/upload/3f6b8c2a4d5e6f708192a3b4c5d6e7f8/0 \\ + -F 'chunk=@./part-aa' +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "chunk_hash": "9af1…", "chunk_index": 0 } } +\`\`\` + +重复上传已完成的分片(幂等跳过): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "chunk_hash": "9af1…", "chunk_index": 0, "skipped": true } } +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 404, "msg": "上传会话不存在" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "无效的分片索引" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "分片大小超过声明值: 最大 5242880, 实际 5300000" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "缺少分片文件字段 chunk" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +> 约束:单分片 ≤ \`chunk_size\`(init 声明值)且 ≤ **32MiB 硬上限**(init 时 \`chunk_size>33554432\` 直接 400「chunk_size 过大」); +> 总大小(init 按分片数上限、上传/合并按累计)受**动态策略上限**约束——\`max_file_size>0\` 时为其, +> 否则回落 \`uploadSize\`(v2 需求 ④⑩,管理端改后立即生效,超限清理会话);首个分片做 magic bytes +> 防伪校验(403「文件内容校验失败:…」)。分片哈希由服务端计算;合并时与分片记录交叉校验,不一致报 400。 +> +> **enableChunk 开关**:管理端关闭分片上传后,\`/chunk/upload/*\` 全部端点返回 403「分片上传未启用」(后端强制,前端仅隐藏入口)。 + +## 查询进度:GET /chunk/upload/status/{uploadID} + +\`\`\`bash +curl -s http://localhost:8466/chunk/upload/status/3f6b8c2a4d5e6f708192a3b4c5d6e7f8 +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "upload_id": "3f6b8c2a4d5e6f708192a3b4c5d6e7f8", + "file_name": "movie.mp4", + "file_size": 15728640, + "chunk_size": 5242880, + "total_chunks": 3, + "uploaded_chunks": [0, 1], + "progress": 66.66666666666667 + } +} +\`\`\` + +## 完成合并:POST /chunk/upload/complete/{uploadID} + +全部分片到齐后调用。服务端按索引有序合并 + SHA256 校验,成功后创建分享并清理分片。 + +**请求体**(JSON,亦兼容表单): + +| 参数 | 类型 | 必需 | 默认 | 说明 | +|---|---|---|---|---| +| \`expire_value\` | int | ❌ | \`1\` | 过期值 | +| \`expire_style\` | string | ❌ | \`day\` | 过期方式(同文件分享) | + +\`\`\`bash +curl -s -X POST http://localhost:8466/chunk/upload/complete/3f6b8c2a4d5e6f708192a3b4c5d6e7f8 \\ + -H 'Content-Type: application/json' \\ + -d '{"expire_value":1,"expire_style":"day"}' +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "code": "R7T2K", "name": "movie.mp4" } } +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 400, "msg": "分片不完整" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "分片哈希校验失败,请重新上传" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +## 取消上传:DELETE /chunk/upload/{uploadID} + +清理分片文件与上传记录,释放容量预留。 + +\`\`\`bash +curl -s -X DELETE http://localhost:8466/chunk/upload/3f6b8c2a4d5e6f708192a3b4c5d6e7f8 +\`\`\` + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "message": "上传已取消" } } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "上传会话不存在" } +\`\`\` +`,g=`# 预签名直传 + +服务端预生成上传地址,客户端直接向存储引擎(或服务端代理)上传文件,最后确认建分享。 +两种模式: + +| 模式 | 引擎 | 上传方式 | +|---|---|---| +| \`direct\` | S3(含 MinIO/R2 等 S3 兼容存储) | 客户端 \`PUT\` 到预签名 URL,直连对象存储 | +| \`proxy\` | 本地 / WebDAV | 客户端 \`PUT\` multipart 到服务端代理接口 | + +> 本地 / WebDAV 引擎不支持预签名直链,init 返回正常 \`proxy\` 模式(仅当引擎预签名调用本身异常时才报错)。 +> 会话有效期 **900 秒**(15 分钟)。proxy 模式响应另含 \`legacy_proxy_upload_url\` +> (\`/api\` 前缀的兼容别名,已废弃,与 \`upload_url\` 等价)。 +> 全部端点经审计中间件落库(action=upload)。 + +## 上传流程 + +\`\`\`text +direct 模式: +POST /presign/upload/init → upload_url(S3 预签名 PUT) +PUT → 客户端直传 S3(无认证头) +POST /presign/upload/confirm/{id} → 确认 → 取件码 + +proxy 模式: +POST /presign/upload/init → upload_url = /presign/upload/proxy/{id} +PUT /presign/upload/proxy/{id} → multipart 上传,服务端转存并直接建分享 +\`\`\` + +## 初始化:POST /presign/upload/init + +**请求体**(JSON,亦兼容表单): + +| 参数 | 类型 | 必需 | 默认 | 说明 | +|---|---|---|---|---| +| \`file_name\` | string | ✅ | - | 文件名(清理 + 白名单校验) | +| \`file_size\` | int | ✅ | - | 文件字节数(≤ 生效上限:\`max_file_size>0\` 时为其,否则 \`uploadSize\`) | +| \`expire_value\` | int | ❌ | \`1\` | 过期值(\`count\` 型受 \`max_save_count\` 约束) | +| \`expire_style\` | string | ❌ | \`day\` | 过期方式(须在 \`expireStyle\` 白名单内) | + +**curl 示例**: + +\`\`\`bash +curl -s -X POST http://localhost:8466/presign/upload/init \\ + -H 'Content-Type: application/json' \\ + -d '{"file_name":"backup.zip","file_size":20971520,"expire_value":7,"expire_style":"day"}' +\`\`\` + +**S3(direct)成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "upload_id": "6a1e…", + "upload_url": "https://minio:9000/fileshare/share/data/2025/06/01/6a1e…/backup.zip?X-Amz-…", + "mode": "direct", + "expires_in": 900, + "file_path": "share/data/2025/06/01/6a1e…" + } +} +\`\`\` + +**local/WebDAV(proxy)成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "upload_id": "6a1e…", + "upload_url": "/presign/upload/proxy/6a1e…", + "proxy_upload_url": "/presign/upload/proxy/6a1e…", + "mode": "proxy", + "expires_in": 900, + "file_path": "share/data/2025/06/01/6a1e…" + } +} +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +> 大小上限为动态策略(v2 需求 ④⑩):管理端改 \`max_file_size\`(0=回落 \`uploadSize\`)后 +> 立即按新上限校验 init 声明的 \`file_size\`。 + +\`\`\`json +{ "code": 403, "msg": "不允许上传该类型文件" } +\`\`\` + +\`\`\`json +{ "code": 507, "msg": "存储空间已达到管理员设置的容量上限" } +\`\`\` + +## 直传确认:POST /presign/upload/confirm/{uploadID} + +\`direct\` 模式专用:客户端向 S3 \`PUT\` 完成后调用。服务端会核对实际对象(多引擎一致): + +- **大小核对**:实际大小与声明差 >1KB → 400「文件大小与声明不符」;超过策略上限(\`max_file_size\`)→ **删除对象、释放容量预留**并 403; +- **内容校验**:取对象前 64 字节做 magic bytes 白名单校验(失败删除对象并报错); +- 全部通过后创建分享记录。 + +\`\`\`bash +# 1) 直传 S3(注意:不要带 Authorization 头,预签名 URL 自带鉴权) +curl -X PUT "" --upload-file ./backup.zip +# 2) 确认 +curl -s -X POST http://localhost:8466/presign/upload/confirm/6a1e… +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "code": "B4N8Q", "name": "backup.zip" } } +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 404, "msg": "文件未上传或上传失败" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "文件大小与声明不符" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "文件大小超过限制" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "此会话不支持direct模式" } +\`\`\` + +## 代理上传:PUT /presign/upload/proxy/{uploadID} + +\`proxy\` 模式专用:multipart 上传到服务端,服务端流式转存到存储引擎后立即创建分享记录。 + +**multipart 字段**:\`file\`(必需)。 + +**curl 示例**: + +\`\`\`bash +curl -s -X PUT http://localhost:8466/presign/upload/proxy/6a1e… -F 'file=@./backup.zip' +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "code": "B4N8Q", "name": "backup.zip" } } +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 400, "msg": "缺少上传文件 file 字段" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "文件大小与声明不符" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +> 文件实际大小须与 init 声明的 \`file_size\` 一致(±1KB 容差);成功后会话即删除,不可重复使用。 + +## 查询会话:GET /presign/upload/status/{uploadID} + +\`\`\`bash +curl -s http://localhost:8466/presign/upload/status/6a1e… +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "upload_id": "6a1e…", + "file_name": "backup.zip", + "file_size": 20971520, + "mode": "proxy", + "created_at": "2025-06-01T12:00:00+08:00", + "expires_at": "2025-06-01T12:15:00+08:00", + "is_expired": false + } +} +\`\`\` + +## 取消会话:DELETE /presign/upload/{uploadID} + +删除会话并释放容量预留;\`direct\` 模式会尽力清理已直传到 S3 的对象。 + +\`\`\`bash +curl -s -X DELETE http://localhost:8466/presign/upload/6a1e… +\`\`\` + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "message": "上传会话已取消" } } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "上传会话不存在" } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "上传会话已过期" } +\`\`\` +`,_='# 管理后台 API\n\n管理端接口:除 `POST /admin/login` 与初始化向导 `/setup` 外,一律要求\n`Authorization: Bearer `(见《认证与限流》),无效令牌 401。\n\n## 初始化向导:GET /setup\n\n未初始化时返回 HTML 配置页(站点名称、管理员密码、上传/限流/保存策略);\n已初始化时 `303` 重定向到 `/`。\n\n```bash\ncurl -i http://localhost:8466/setup\n```\n\n## 初始化提交:POST /setup\n\n表单(浏览器向导)或 JSON 均可;成功后写入库配置 KV 并生成密码哈希与 `jwt_secret`。\n表单提交返回成功 HTML 页;JSON 提交返回 JSON。\n\n**主要字段**:\n\n| 字段 | 必需 | 默认 | 说明 |\n|---|---|---|---|\n| `admin_password` | ✅ | - | 管理员密码(≥8 位) |\n| `confirm_password` | ✅ | - | 确认密码(须一致) |\n| `site_name` | ❌ | 文件快传 | 站点名称 |\n| `upload_size_value` / `upload_size_unit` | ❌ | 10 / MB | 单文件大小限制(单位 KB/MB/GB) |\n| `save_time_value` / `save_time_unit` | ❌ | 0 / day | 最长保存秒数(0=不限) |\n| `expireStyle` | ❌ | day,hour,minute,forever,count | 过期方式(可多值/逗号分隔) |\n| `code_generate_type` | ❌ | secret | 取件码类型 `number`/`secret` |\n| `errorCount` / `errorMinute` | ❌ | 10 / 1 | 取件错误限流 |\n| `loginCount` / `loginMinute` | ❌ | 5 / 15 | 登录失败限流 |\n| `uploadCount` / `uploadMinute` | ❌ | 10 / 1 | 上传限流 |\n| `allowed_file_types` | ❌ | `*` | 逗号分隔白名单 |\n| `openUpload` / `enableChunk` | ❌ | 1 / 0 | 游客上传 / 分片开关(`1`/`true`/`on`/`yes`) |\n\n```bash\ncurl -s -X POST http://localhost:8466/setup \\\n -H \'Content-Type: application/json\' \\\n -d \'{"admin_password":"admin12345","confirm_password":"admin12345","site_name":"我的文件柜","upload_size_value":10,"upload_size_unit":"MB"}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true, "admin": "/#/admin" } }\n```\n\n**错误响应**(400,HTML 表单时内嵌错误提示):\n\n```json\n{ "code": 400, "msg": "管理员密码至少 8 位" }\n```\n\n## 登录:POST /admin/login\n\n```bash\ncurl -s -X POST http://localhost:8466/admin/login \\\n -H \'Content-Type: application/json\' \\\n -d \'{"password":"admin12345"}\'\n```\n\n**成功响应**(200):\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "id": "admin", "username": "admin",\n "token": "eyJhbGciOiJIUzI1NiIs...",\n "token_type": "Bearer",\n "expires_at": 1750000000,\n "expires_in": 604800\n }\n}\n```\n\n**错误响应**:\n\n```json\n{ "code": 401, "msg": "密码错误" }\n```\n\n```json\n{ "code": 423, "msg": "请求次数过多,请稍后再试" }\n```\n\n## 校验会话:GET /admin/verify\n\n```bash\ncurl -s http://localhost:8466/admin/verify -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "id": "admin", "username": "admin", "token": "eyJ…", "token_type": "Bearer", "expires_at": 1750000000 } }\n```\n\n## 登出:POST /admin/logout\n\n无状态 JWT,服务端仅返回确认(客户端应丢弃令牌):\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true } }\n```\n\n## 仪表盘:GET /admin/dashboard\n\n```bash\ncurl -s http://localhost:8466/admin/dashboard -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "totalFiles": 42,\n "storageUsed": "123456789",\n "sysUptime": 1750000000000,\n "yesterdayCount": 5, "yesterdaySize": "1048576",\n "todayCount": 12, "todaySize": "5242880",\n "activeCount": 40, "expiredCount": 2,\n "textCount": 10, "fileCount": 32, "chunkedCount": 3,\n "usedCount": 156,\n "storageBackend": "local",\n "uploadSizeLimit": 10485760,\n "openUpload": 1, "enableChunk": 1,\n "maxSaveSeconds": 0,\n "topSuffixes": [ { "suffix": ".pdf", "count": 12 }, { "suffix": "Text", "count": 10 } ],\n "recentFiles": [ { "id": 42, "code": "K3P9W", "name": "report.pdf", "size": 1048576, "created_at": "2025-06-01T12:00:00+08:00", "expired_at": "2025-06-08T12:00:00+08:00", "is_expired": false, "expired_count": -1, "used_count": 3, "is_text": false, "is_chunked": false, "is_permanent": false, "has_download_limit": false, "remaining_downloads": null, "file_hash": null, "prefix": "report", "suffix": ".pdf", "text": false, "createdAt": "2025-06-01T12:00:00+08:00", "expiredAt": "2025-06-08T12:00:00+08:00", "isExpired": false, "expiredCount": -1, "usedCount": 3, "isText": false, "isChunked": false, "isPermanent": false, "hasDownloadLimit": false, "remainingDownloads": null, "fileHash": null } ],\n "recentActivities": []\n }\n}\n```\n\n> `storageUsed`/`todaySize`/`yesterdaySize` 为字符串字节数;`sysUptime` 为服务启动时刻的 Unix 毫秒。\n\n## 文件列表:GET /admin/file/list\n\n**参数**:\n\n| 参数 | 默认 | 说明 |\n|---|---|---|\n| `page` / `size` | 1 / 10 | 分页(size 1~100) |\n| `keyword` | - | 模糊匹配取件码/文件名/哈希/文本内容 |\n| `status` | - | `active` / `expired` |\n| `type` | - | `text` / `file` / `chunked` |\n| `sortBy` | `created_at` | `created_at`/`expired_at`/`name`/`size`/`used_count`/`code` |\n| `sortOrder` | `desc` | `asc` / `desc` |\n\n```bash\ncurl -s "http://localhost:8466/admin/file/list?page=1&size=10&status=active&sortBy=size&sortOrder=desc" \\\n -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "page": 1, "size": 10, "total": 40,\n "summary": { "totalFiles": 42, "activeCount": 40, "expiredCount": 2, "textCount": 10, "fileCount": 32, "chunkedCount": 3, "storageUsed": 123456789, "usedCount": 156 },\n "data": [\n { "id": 42, "code": "K3P9W", "name": "report.pdf", "prefix": "report", "suffix": ".pdf", "size": 1048576, "is_text": false, "is_chunked": false, "is_expired": false, "expired_at": "2025-06-08T12:00:00+08:00", "expired_count": -1, "used_count": 3, "created_at": "2025-06-01T12:00:00+08:00", "has_download_limit": false, "is_permanent": false, "remaining_downloads": null, "file_hash": null, "text": false, "isText": false, "isChunked": false, "isExpired": false, "expiredAt": "2025-06-08T12:00:00+08:00", "expiredCount": -1, "usedCount": 3, "createdAt": "2025-06-01T12:00:00+08:00", "hasDownloadLimit": false, "isPermanent": false, "remainingDownloads": null, "fileHash": null }\n ]\n }\n}\n```\n\n## 文件详情:GET /admin/file/detail\n\n`GET ?id=42` 或 `POST {"id":42}`。返回列表条目字段;文本分享额外含 `content`(全文)。\n\n```json\n{ "code": 200, "msg": "ok", "data": { "id": 42, "code": "K3P9W", "name": "report.pdf", "size": 1048576, "is_text": false, "expired_at": "2025-06-08T12:00:00+08:00", "expired_count": -1, "used_count": 3, "created_at": "2025-06-01T12:00:00+08:00", "file_hash": null } }\n```\n\n```json\n{ "code": 404, "msg": "文件不存在" }\n```\n\n## 更新文件:PATCH /admin/file/update\n\n更新取件码/文件名(前后缀)/过期策略。**PATCH 为主名,POST 为兼容别名**。\n\n**请求体**:\n\n| 字段 | 类型 | 说明 |\n|---|---|---|\n| `id` | int | 必需 |\n| `code` | string | 新取件码(冲突 400「code已存在」) |\n| `prefix` / `suffix` | string | 文件名前后缀 |\n| `expired_at` | string | 过期时间(ISO 8601,如 `2025-07-01T00:00:00+08:00`) |\n| `expired_count` | int | 取件次数上限(`-1` 按时间/永久) |\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/file/update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"id":42,"expired_at":"2025-07-01T00:00:00+08:00","expired_count":10}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": "更新成功" }\n```\n\n```json\n{ "code": 400, "msg": "code已存在" }\n```\n\n## 删除文件:DELETE /admin/file/delete\n\n删除分享记录并连带删除存储文件(文本分享无存储文件)。`DELETE` 或 `POST`,请求体 `{"id":42}`。\n\n```bash\ncurl -s -X DELETE http://localhost:8466/admin/file/delete \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' -d \'{"id":42}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": null }\n```\n\n```json\n{ "code": 400, "msg": "请选择要删除的文件" }\n```\n\n## 批量删除:POST /admin/file/batch-delete\n\n`POST` 或 `DELETE`,请求体 `{"ids":[41,42,43]}`。返回逐条统计:\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "requestedCount": 3, "deletedCount": 2, "missingCount": 1, "failedCount": 0,\n "deleted": [41, 42], "missing": [43], "failed": [],\n "requested_count": 3, "deleted_count": 2, "missing_count": 1, "failed_count": 0\n }\n}\n```\n\n## 批量更新:PATCH /admin/file/batch-update\n\n`PATCH` 或 `POST`。请求体:`ids[]` 必需;`expired_at`(ISO 8601)/`expired_count` 二选一;\n`clearExpiredAt: true`(或 `clear_expired_at`)= 清空过期时间并置 `expired_count=-1`(永久)。\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/file/batch-update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"ids":[41,42],"clearExpiredAt":true}\'\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": { "requestedCount": 2, "updatedCount": 2, "missingCount": 0, "failedCount": 0, "updated": 2, "missing": [], "failed": [], "requested_count": 2, "updated_count": 2, "missing_count": 0, "failed_count": 0 }\n}\n```\n\n## 过期策略动作:PATCH /admin/file/policy-action\n\n对单个文件执行快捷策略。`PATCH` 或 `POST`。批量版为 `/admin/file/batch-policy-action`(`{"ids":[…]}`),响应结构同批量更新。\n\n**请求体**:\n\n| 字段 | 说明 |\n|---|---|\n| `id` | 文件 ID |\n| `action` | `extend_24h` / `extend_7d` / `make_permanent` / `reset_download_limit` |\n| `downloadLimit` | 仅 `reset_download_limit` 用:新取件次数(默认 5,须 >0) |\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/file/policy-action \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"id":42,"action":"reset_download_limit","downloadLimit":3}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "id": 42, "action": "reset_download_limit" } }\n```\n\n```json\n{ "code": 400, "msg": "不支持的策略动作" }\n```\n\n> `extend_24h`/`extend_7d` 在当前过期时间(未过期时)基础上顺延;`make_permanent` 清空过期时间并置次数 -1。\n\n## 管理员下载:GET /admin/file/download?id=\n\n下载原文件(**不消耗取件次数**);文件返回二进制流(支持 Range),文本分享返回 JSON(`data` 为文本内容)。\n\n```bash\ncurl -s -OJ "http://localhost:8466/admin/file/download?id=42" -H "Authorization: Bearer $TOKEN"\n```\n\n## 文本预览:GET /admin/file/preview\n\n仅文本分享可用(文件分享返回 400)。`maxChars` 截断长度(默认 4000,1~20000)。\n\n```bash\ncurl -s "http://localhost:8466/admin/file/preview?id=41&maxChars=100" -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "id": 41, "code": "8XQ2M", "name": "Text.txt", "type": "text",\n "content": "你好,文件快传",\n "length": 24, "previewLength": 24, "truncated": false,\n "maxChars": 100, "max_chars": 100,\n "created_at": "2025-06-01T12:00:00+08:00", "createdAt": "2025-06-01T12:00:00+08:00"\n }\n}\n```\n\n```json\n{ "code": 400, "msg": "仅文本分享支持预览" }\n```\n\n## 读取配置:GET /admin/config/get\n\n返回运行时配置 KV(含默认值与管理端修改)。`admin_token` 恒返回空串(屏蔽);\n`jwt_secret` 不下发;存储引擎为进程级单例,`_engine_hint` 提示引擎配置修改需重启。\nv2 新增键(需求 ①②③④⑩)一并返回:`background_url`、`footer_text`、`footer_beian`、\n`notify_enabled`、`max_save_count`、`max_file_size` 等。\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "site_name": "文件快传",\n "name": "文件快传",\n "description": "开箱即用的文件快传系统",\n "page_explain": "…", "keywords": "…",\n "notify_title": "系统通知", "notify_content": "…", "notify_enabled": 1,\n "logo_url": "",\n "favicon_url": "",\n "background_url": "", "footer_text": "", "footer_beian": "",\n "openUpload": 1, "uploadSize": 10485760,\n "max_file_size": 0, "max_save_count": 0,\n "allowed_file_types": ["*"], "expireStyle": ["day","hour","minute","forever","count"],\n "code_generate_type": "secret", "enableChunk": 1,\n "uploadMinute": 1, "uploadCount": 10,\n "errorMinute": 1, "errorCount": 10,\n "loginCount": 5, "loginMinute": 15,\n "max_save_seconds": 0, "storageLimit": 0,\n "opacity": 0.9, "background": "", "showAdminAddr": 0, "robotsText": "User-agent: *\\nDisallow: /",\n "adminSessionExpire": 604800,\n "storage_path": "", "local_storage_path": "/app/data",\n "file_storage": "local",\n "admin_token": "",\n "_engine_hint": { "storage_backend": "local", "note": "存储引擎为进程级单例,修改存储引擎相关配置后需重启服务生效" }\n }\n}\n```\n\n## 存储引擎热切换:POST /admin/storage/switch(v3)\n\n运行时切换存储引擎,**无需重启**:\n\n```bash\ncurl -s -X POST http://localhost:8466/admin/storage/switch \\\n -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \\\n -d \'{"engine":"s3"}\'\n# 成功:{"code":200,"msg":"ok","data":{"ok":true,"engine":"s3"}}\n# 失败:503 {"code":503,"msg":"存储引擎切换失败,已保持原引擎: …"}\n```\n\n- `engine` 仅接受 `local|s3|webdav`(400 中文错误)。\n- 切换流程:用最新 KV 参数构建新引擎 → 健康检查 → 通过才替换当前引擎并持久化 `storage_engine`。\n- 失败(构建/健康检查不过)返回 503,**原引擎与 KV 均保持不变**。\n- 切到当前引擎为幂等操作(直接返回 200)。\n- 旧文件按归属引擎(`file_codes.engine`)取回,切换后旧引擎文件仍可下载。\n\n## 更新配置:PATCH /admin/config/update\n\n部分更新(JSON 对象,未提供的键不变;表单亦可)。**PATCH 为主名,POST 为兼容别名**。\n\n- 仅接受管理端可见键(见上响应键集合),未知键忽略。\n- 数值型键自动转型:`openUpload`、`enableChunk`、`uploadSize`、`storageLimit`、限流四组、`max_save_seconds`、`adminSessionExpire`、`showAdminAddr`;v2 新增 `max_save_count`、`max_file_size`、`notify_enabled`;`opacity` 为浮点。\n- **v3.1**:`site_domain`(站点对外域名)可经本端点设置,非法格式 400(仅 http/https、主机+端口、不带路径)。\n- **v3 引擎键**:`storage_engine` 不经本端点修改(走 `POST /admin/storage/switch`);引擎参数键\n (`local_storage_path`、`webdav_url`、`webdav_root_path`、`webdav_username`、`webdav_password`、\n `s3_endpoint_url`、`s3_region_name`、`s3_bucket_name`、`s3_access_key_id`、`s3_secret_access_key`、\n `aws_session_token`、`s3_addressing_style`)可经本端点保存——保存后对应引擎实例缓存失效,\n 下次切换/构建生效;敏感键空串或 `******` 表示不修改。\n- **v2 schema 校验**(`settings.KVSchema`,越界一律 400,中文错误信息):\n - 整型边界:`max_file_size` ≤ 10GiB(10737418240)、`max_save_count` ≤ 100000、`max_save_seconds` ≤ 31536000(365 天)、`notify_enabled` ∈ {0,1}、`uploadCount` 1~10000、`uploadMinute` 1~1440 等;\n - 字符串长度:`background_url` ≤ 2048、`footer_text` ≤ 2000、`footer_beian` ≤ 128、`notify_title` ≤ 128、`notify_content` ≤ 2000 字符;\n - 列表键 `expireStyle` / `allowed_file_types`:须为字符串数组(或逗号分隔串)且至少保留一项;\n - 错误示例:`{"code":400,"msg":"max_file_size 必须是整数"}`、`{"code":400,"msg":"max_file_size 不能大于 10737418240"}`、`{"code":400,"msg":"footer_beian 长度不能超过 128 字符"}`、`{"code":400,"msg":"notify_enabled 不能大于 1"}`。\n- `background_url` 协议白名单(需求 ①,防 `javascript:` 注入):仅 `http(s)://`、`data:image/*` 与站内相对路径(`/`开头);空串=清除背景。非法值 400:\n `{"code":400,"msg":"background_url 仅支持 http(s) 地址、data:image 图片或站内相对路径"}`\n- `admin_token`:明文密码自动哈希,**并轮换 `jwt_secret`(全部管理员令牌立即失效)**;空串忽略;已是哈希格式则原样保存。\n- `adminSessionExpire` 须为 1~365 的整天秒数(86400 的整数倍),否则 400。\n- `storageLimit` 不能小于 0。\n- 修改限流/策略配置**立即生效**(无需重启:限流规则运行时同步,策略由上传链路每次实时读取);引擎相关(`file_storage`/`s3_*`/`webdav_*`/`storage_path`/`local_storage_path`)需重启。\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/config/update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"site_name":"我的文件柜","uploadSize":52428800,"openUpload":1,"footer_beian":"京ICP备20240001号","max_file_size":10485760,"max_save_count":5}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true } }\n```\n\n```json\n{ "code": 400, "msg": "adminSessionExpire 必须是 1 到 365 个整天" }\n```\n\n```json\n{ "code": 400, "msg": "background_url 仅支持 http(s) 地址、data:image 图片或站内相对路径" }\n```\n\n## 修改管理员密码:PATCH /admin/settings/password\n\n`PATCH` 或 `POST`。新密码 ≥8 位;成功后哈希保存并**轮换 `jwt_secret`,所有旧令牌失效(401)**,需重新登录。\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/settings/password \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"old_password":"admin12345","new_password":"new-pass-6789"}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true } }\n```\n\n```json\n{ "code": 400, "msg": "新密码长度至少 8 位" }\n```\n\n```json\n{ "code": 401, "msg": "旧密码错误" }\n```\n',y='# 审计日志查询\n\n所有上传/下载请求由审计中间件自动落库(需求 ③),管理端分页查询。\n认证:`Authorization: Bearer `。\n\n## 审计记录内容\n\n每条审计日志覆盖以下维度(需求 ③):\n\n| 维度 | 字段 | 说明 |\n|---|---|---|\n| 操作时间 | `created_at` | RFC 3339 |\n| 客户端 | `ip` | 可信代理场景解析 XFF 后的真实 IP |\n| 终端信息 | `user_agent` | 原始 UA |\n| 设备解析 | `device_os` / `device_browser` / `device_type` | 由 UA 解析(如 Windows/Chrome/desktop) |\n| 动作 | `action` | `upload`(上传类) / `download`(取件/下载类) / `admin`(管理端敏感操作,26.9 新增) |\n| 结果 | `result` | `success` / `denied`(拒绝:401/403/423/428)/ `failed`(失败:其余 4xx/5xx 或业务报错) |\n| 字节数 | `size_bytes` | 文件总大小;`transferred_bytes` 实际传输(**Range 下载只计实际区间字节**;下载由中间件自动统计,上传由各 handler 填充) |\n| 耗时 | `duration_ms` | 毫秒 |\n| 角色 | `actor` | `admin`(有效管理员令牌)/ `guest` |\n| 业务 | `file_code` / `file_name` | 取件码 / 文件名(分片上传时 `file_code` 为 `upload_id`) |\n| 错误 | `error_msg` | 失败/拒绝原因 |\n\n**命中审计的端点**:上传类 `POST /share/text`、`POST /share/file`、`/chunk/upload*`、`/presign*`(POST/PUT);\n下载类 `GET /share/download`、`GET /share/select`、`GET /share/metadata`;\n管理类(`action=admin`)`POST /admin/login`、`POST /admin/logout`、`PATCH|POST /admin/config/update`、\n`PATCH|POST /admin/settings/password`、`POST /admin/storage/switch`、`PATCH|DELETE /admin/file/update|delete|batch-delete|batch-update|policy-action|batch-policy-action`。\n管理类动作未显式填结果时按 HTTP 状态兜底落库(401/403/423 → `denied`,5xx → `failed`,其余 → `success`)。\n失败与被拒绝的请求同样落库。\n\n## 查询接口:GET /admin/audit/list\n\n**参数**:\n\n| 参数 | 默认 | 说明 |\n|---|---|---|\n| `page` | 1 | 页码(≥1) |\n| `size` | 20 | 每页条数(1~200;兼容 `pageSize`) |\n| `action` | - | `upload` / `download` / `admin` |\n| `result` | - | `success` / `denied` / `failed` |\n| `ip` | - | 按客户端 IP 过滤 |\n| `start_time` / `end_time` | - | 时间范围,ISO 8601(如 `2025-06-01T00:00:00+08:00`;也接受 `2006-01-02 15:04:05` / 日期) |\n\n```bash\ncurl -s "http://localhost:8466/admin/audit/list?page=1&size=20&action=download&result=success&start_time=2025-06-01T00:00:00%2B08:00" \\\n -H "Authorization: Bearer $TOKEN"\n```\n\n**成功响应**(200):\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "data": [\n {\n "id": 318,\n "action": "download",\n "file_code": "K3P9W",\n "file_name": "report.pdf",\n "size_bytes": 1048576,\n "transferred_bytes": 524288,\n "ip": "203.0.113.7",\n "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",\n "device_os": "Windows",\n "device_browser": "Chrome",\n "device_type": "desktop",\n "actor": "guest",\n "result": "success",\n "error_msg": "",\n "duration_ms": 128,\n "created_at": "2025-06-01T12:03:45+08:00",\n "fileCode": "K3P9W",\n "fileName": "report.pdf",\n "sizeBytes": 1048576,\n "transferredBytes": 524288,\n "userAgent": "Mozilla/5.0 …",\n "deviceOs": "Windows",\n "deviceBrowser": "Chrome",\n "deviceType": "desktop",\n "errorMsg": "",\n "durationMs": 128,\n "createdAt": "2025-06-01T12:03:45+08:00"\n }\n ],\n "total": 1180,\n "page": 1,\n "size": 20\n }\n}\n```\n\n> 行字段以 snake_case 为准;camelCase 为兼容双份输出(文档不再重复列出)。\n\n**错误响应**:\n\n```json\n{ "code": 400, "msg": "start_time 时间格式错误" }\n```\n\n```json\n{ "code": 401, "msg": "令牌无效或已过期" }\n```\n\n## 别名:GET /admin/audit/logs\n\n与 `/admin/audit/list` 完全相同(同一 handler 的兼容别名),参数与响应一致。\n\n## 典型查询\n\n```bash\n# 最近的下载行为\ncurl -s "http://localhost:8466/admin/audit/list?action=download&size=50" -H "Authorization: Bearer $TOKEN"\n\n# 某 IP 的全部被拒请求(限流/鉴权失败)\ncurl -s "http://localhost:8466/admin/audit/list?ip=203.0.113.7&result=denied" -H "Authorization: Bearer $TOKEN"\n\n# 今天 0 点以来的上传失败\ncurl -s "http://localhost:8466/admin/audit/list?action=upload&result=failed&start_time=2025-06-01T00:00:00%2B08:00" \\\n -H "Authorization: Bearer $TOKEN"\n```\n',h='# 存储引擎配置\n\n存储引擎只支持三种:**本地磁盘 / S3 / WebDAV**,由进程级环境变量 `FCB_STORAGE_ENGINE` 选择。\n引擎与引擎相关配置在启动时一次性读取(`storage.SetEngineOptions` → `NewEngine`),\n**运行时修改引擎 KV 需重启服务**(管理端 `GET /admin/config/get` 的 `_engine_hint` 亦有提示)。\n\n## 引擎选择\n\n```bash\nFCB_STORAGE_ENGINE=local # 启动默认(KV storage_engine 为空时生效)\nFCB_STORAGE_ENGINE=s3\nFCB_STORAGE_ENGINE=webdav\n```\n\n非法值直接启动失败:`FCB_STORAGE_ENGINE 无效值 "xxx",仅支持 local|s3|webdav`。\n\n**v3 运行时热切换**:管理端 `POST /admin/storage/switch`(或后台设置页「存储引擎」卡)可在不重启的情况下切换引擎——\n先构建新引擎并健康检查,通过才生效;失败 503 保持原引擎。当前引擎持久化在 settings KV `storage_engine`(空=回落启动值)。\n各引擎参数(存储目录/服务地址/存储桶/密钥)同样在后台设置页运行时可改;保存后对应引擎实例缓存失效,下次切换/构建生效。\n\n## 文件归属引擎(v3)\n\n每条分享记录(`file_codes.engine`)与上传会话(`upload_chunks.engine` / `presign_upload_sessions.engine`)\n在创建时戳记当时的引擎名。下载、分片合并、删除按**归属引擎**操作——切换引擎后,旧引擎里的文件仍可正常下载与删除\n(空戳为历史数据,回落当前引擎)。\n\n## 按日期目录存储\n\n文件落盘路径:`[storage_path/]share/data/YYYY/MM/DD//<文件名>`(如 `share/data/2026/09/04/…`)。\n按日嵌套目录自然排序、无日月歧义、避免单日海量文件挤在单目录;三种引擎一致适用;历史路径记录在\n`file_codes.file_path`,不受路径规则调整影响。\n\n## 配置键与环境变量\n\n引擎相关配置键(DB settings KV)可由环境变量种子注入(优先级:默认 < 环境变量 < DB KV):\n\n| KV 键 | 环境变量 | 引擎 | 说明 |\n|---|---|---|---|\n| `local_storage_path` | `FCB_LOCAL_STORAGE_PATH` | local | 本地存储根目录(容器内默认 `/app/data`) |\n| `storage_path` | `FCB_STORAGE_PATH` | 全部 | 存储相对路径前缀(空 = `share/data/…`) |\n| `s3_access_key_id` | `FCB_S3_ACCESS_KEY_ID` | s3 | 访问密钥 |\n| `s3_secret_access_key` | `FCB_S3_SECRET_ACCESS_KEY` | s3 | 私有密钥 |\n| `aws_session_token` | `FCB_AWS_SESSION_TOKEN` | s3 | 可选临时会话令牌 |\n| `s3_bucket_name` | `FCB_S3_BUCKET_NAME` | s3 | 桶名 |\n| `s3_endpoint_url` | `FCB_S3_ENDPOINT_URL` | s3 | S3 兼容端点(MinIO/R2 等;AWS 原生可空) |\n| `s3_region_name` | `FCB_S3_REGION_NAME` | s3 | 区域(默认 `auto`) |\n| `s3_addressing_style` | `FCB_S3_ADDRESSING_STYLE` | s3 | `auto`/`path`/`virtual` |\n| `webdav_url` | `FCB_WEBDAV_URL` | webdav | WebDAV 服务地址(如 `http://webdav:5000`) |\n| `webdav_username` | `FCB_WEBDAV_USERNAME` | webdav | 用户名 |\n| `webdav_password` | `FCB_WEBDAV_PASSWORD` | webdav | 密码 |\n| `webdav_root_path` | `FCB_WEBDAV_ROOT_PATH` | webdav | 根目录(默认 `filebox_storage`,不存在自动逐级创建) |\n\n`FCB_STORAGE_ENGINE` 本身不落库(`GET /admin/config/get` 中的 `file_storage` 为 KV 记忆键,\n进程实际引擎以 `FCB_STORAGE_ENGINE` 与 `_engine_hint.storage_backend` 为准)。\n\n## 各引擎要点\n\n### 本地引擎(local)\n\n- 原子写:临时文件 + fsync + rename,避免半写文件。\n- 路径安全:`SanitizePath` + 符号链接逃逸双重防穿越。\n- Range 下载基于 `SectionReader`;分片按索引有序合并 + SHA256 校验,合并后清理分片目录。\n\n### S3 引擎(s3)\n\n- 原生 multipart 流式合并(失败自动 Abort),分片落临时文件保证精确 Content-Length 与可重放。\n- 预签名 GET/PUT 直链(预签名直传唯一 `direct` 模式引擎)。\n- SDK 内置 5xx 指数退避重试;`when_required` 校验模式兼容 MinIO/R2 与纯流式转发。\n\n### WebDAV 引擎(webdav,重点优化)\n\n- **连接复用**:池化 Transport,连接复用(实测 25 次请求仅 1 条 TCP 连接)。\n- **认证**:Basic + Digest(RFC 2617 `qop=auth`,MD5/SHA-256)自动协商,401 挑战驱动。\n- **Range**:`Range` 头透传 + `206` 解析,支持分块/断点下载。\n- **重试**:5xx/429/408 指数退避(封顶 2s ± 20% 抖动,尊重 `Retry-After`)。\n- **流式**:下载经 `io.Pipe` 流式转发不落盘;上下文取消挂到响应体读完之后,防止提前断连。\n- **目录**:按需逐级 `MKCOL` + 目录缓存,避免重复建目录。\n- **超时**:可配置(`webdav_url` 同级暂无独立超时键,引擎默认值内置)。\n\n## 健康检查\n\n三引擎均实现 `HealthCheck`:local 写探针、s3 `ListObjectsV2`、webdav `PROPFIND`(根目录不存在时自建)。\n服务启动时预检失败仅告警不阻断;运行状态可经 `GET /api/v1/health` 的 `data.storage` 查看当前引擎名。\n\n## 预签名直传支持矩阵\n\n| 引擎 | `PresignPutURL` / `PresignGetURL` | init 返回 mode |\n|---|---|---|\n| s3 | ✅ | `direct` |\n| local / webdav | ❌(`ErrNotSupported`) | `proxy`(走服务端代理上传) |\n\n引擎不支持的操作经统一映射返回 501:\n\n```json\n{ "code": 501, "msg": "当前存储引擎不支持该操作" }\n```\n\n## Docker Compose 冒烟编排\n\n`deploy/docker-compose.yml` 提供可选 profile(详见 deploy/README.md):\n\n```bash\ndocker compose --profile minio up -d --build # MinIO(含 mc 自动建桶)+ FCB_STORAGE_ENGINE=s3\ndocker compose --profile webdav up -d --build # dufs WebDAV 冒烟(admin/admin123)+ FCB_STORAGE_ENGINE=webdav\ndocker compose --profile redis up -d --build # Redis 缓存增强(非引擎)\n```\n\n## 存储哨兵错误 → HTTP 状态\n\n| 哨兵错误 | HTTP | 文案 |\n|---|---|---|\n| `ErrNotFound` | 404 | 文件不存在 |\n| `ErrInvalidPath` | 400 | 非法文件路径 |\n| `ErrUnavailable` | 503 | 存储服务不可用,请稍后再试 |\n| `ErrNotSupported` | 501 | 当前存储引擎不支持该操作 |\n| `ErrRangeNotSatisfiable` | 416 | 请求范围超出文件大小 |\n| `ErrHashMismatch` | 400 | 分片哈希校验失败,请重新上传 |\n\n容量超限(`storageLimit`,经容量预留判定)返回 507:`存储空间已达到管理员设置的容量上限`。\n',f='# 环境变量与配置项\n\n配置分三层:**默认值 → `FCB_*` 环境变量 → 数据库 settings KV(管理端运行时修改)**。\nv2 起进程必需的环境变量为空集:数据库默认 **SQLite**(modernc.org/sqlite 纯 Go 驱动,零外部依赖,\nDSN 缺省落 `./data/fileshare.db`);`FCB_DB_DRIVER=postgres` 时 `FCB_DB_DSN` 必需(需求 ⑧)。\n\n## 环境变量(进程级)\n\n| 变量 | 必需 | 默认 | 说明 |\n|---|---|---|---|\n| `FCB_DB_DRIVER` | ❌ | `sqlite` | 数据库驱动:`sqlite` / `postgres`(需求 ⑧) |\n| `FCB_DB_DSN` | 视驱动 | `./data/fileshare.db` | postgres:连接串(**必需**,如 `postgres://user:pass@host:5432/filecodebox?sslmode=disable`);sqlite:数据库文件路径(可空,父目录自动创建) |\n| `FCB_REDIS_ADDR` | ❌ | 空 | Redis 地址(如 `redis:6379`),也支持 `redis://[:password@]host:port[/db]` / `rediss://`(TLS)URL 形式;**空则缓存降级为进程内存实现**(缓存故障时自动降级为进程内限流计数) |\n| `FCB_REDIS_DB` | ❌ | `0` | Redis 逻辑库号 0-15;URL 形式地址显式携带 `/N` 时以 URL 为准 |\n| `FCB_ADMIN_PASSWORD` | ❌ | 空 | 设置后服务首次启动即自动初始化管理员(≥8 位,不足告警跳过),消除 `/setup` 被抢占窗口;初始化完成后建议移除 |\n| `FCB_LISTEN` | ❌ | `:8466` | HTTP 监听地址 |\n| `FCB_STORAGE_ENGINE` | ❌ | `local` | 存储引擎:`local` / `s3` / `webdav` |\n| `FCB_TRUSTED_PROXIES` | ❌ | 空 | 可信代理 CIDR(逗号分隔),命中时从 `X-Forwarded-For` 解析真实客户端 IP |\n\n- SQLite 连接参数(驱动自动注入):`busy_timeout=10s` + `WAL` 日志模式 + `foreign_keys=1`;连接池 8/4。\n- Postgres 连接池沿用 v1 参数(32/8,1h 轮换);`FCB_DB_DRIVER=postgres` 且未设 `FCB_DB_DSN` 时**启动直接报错**。\n\n引擎相关环境变量(种子注入 settings KV,见《存储引擎配置》):`FCB_LOCAL_STORAGE_PATH`、\n`FCB_STORAGE_PATH`、`FCB_S3_ACCESS_KEY_ID`、`FCB_S3_SECRET_ACCESS_KEY`、`FCB_AWS_SESSION_TOKEN`、\n`FCB_S3_BUCKET_NAME`、`FCB_S3_ENDPOINT_URL`、`FCB_S3_REGION_NAME`、`FCB_S3_ADDRESSING_STYLE`、\n`FCB_WEBDAV_URL`、`FCB_WEBDAV_USERNAME`、`FCB_WEBDAV_PASSWORD`、`FCB_WEBDAV_ROOT_PATH`。\n\n部署用编排变量(`deploy/.env.example`):`WEB_PORT`(默认 8466)、\n`POSTGRES_USER` / `POSTGRES_PASSWORD` / `POSTGRES_DB`(默认 fileshare,仅 `--profile postgres` 时使用)。\n\n## 配置项(settings KV,默认值对齐参考实现)\n\n> 键名/类型/默认值/边界以 `server/internal/config/schema.go` 的 `KVSchema()` 为单一事实来源\n> (schema 同步测试保证与 defaults() 逐键一致);v2 新增键统一 snake_case。\n\n### 站点信息与展示(需求 ①②③)\n\n| 键 | 类型/边界 | 默认 | 说明 |\n|---|---|---|---|\n| `site_name` / `name` | string | 文件快传 | 站点名称(`site_name` 优先) |\n| `site_domain` | string,≤256 | 空 | **v3.1**:站点对外域名(`http(s)://host[:port]`,不带路径;裸主机自动补 `http://`)。配置后分享链接(结果卡/管理端复制)用该域名生成——内网部署也能把公网链接发出去;留空=用当前访问地址 |\n| `description` | string | 开箱即用的文件快传系统 | 站点描述 |\n| `page_explain` | string | (合规声明) | 页面说明文案 |\n| `keywords` | string | 文件快传, 文件分享… | SEO 关键词 |\n| `logo_url` | string | 空(前端回落本地打包 `/assets/logo-*.svg`,需求 ⑤) | 页面导航 Logo,管理端可设任意 URL |\n| `favicon_url` | string | 空(前端回落本地打包 `/assets/favicon-*.png`,需求 ⑤) | favicon / 备用 Logo |\n| `opacity` | float | 0.9 | 界面不透明度 |\n| `background` | string | 空 | 背景图 URL(参考实现既有键,v1 兼容保留) |\n| `background_url` | string,≤2048 字符 | 空 | **v2 需求 ①**:背景图 URL 或上传后地址(空=主题默认;取值时 legacy `background` 键兜底)。管理端保存时校验协议白名单:仅 `http(s)`、`data:image/*` 与站内相对路径(防 `javascript:` 注入,非法 400) |\n| `footer_text` | string,≤2000 字符 | 空 | **v2 需求 ②**:页脚自定义内容(纯文本或受控 HTML 片段) |\n| `footer_beian` | string,≤128 字符 | 空 | **v2 需求 ②**:备案号(如 `京ICP备2024xxxxxx号-1`),展示于页脚 |\n| `notify_enabled` | int(0/1) | 1 | **v2 需求 ③**:通知开关(1=前台右上角悬浮窗展示 / 0=关闭) |\n| `notify_title` | string,≤128 字符 | 系统通知 | 通知标题 |\n| `notify_content` | string,≤2000 字符 | 欢迎使用… | 通知正文(**服务端白名单净化**:仅保留纯文本与 `` 为 http(s)/站内相对/`#` 锚点的链接,其余标签与事件属性剥离,保存与读取双侧生效) |\n| `showAdminAddr` | int(0/1) | 0 | 是否展示后台入口 |\n| `robotsText` | string | `User-agent: *\\nDisallow: /` | robots.txt 内容(由公开端点 `GET /robots.txt` 输出) |\n\n### 保存策略(需求 ④,上传页动态读取并在范围内选择)\n\n| 键 | 类型/边界 | 默认 | 说明 |\n|---|---|---|---|\n| `max_save_seconds` | int64,0~31536000 | 0 | 最长保存秒数上限(0=仅默认 7 天兜底;>0 时按时间过期超限 403「限制最长时间为 X,可换用其他方式」)。**v3**:管理界面以「小时/天」下拉单位编辑(≥1 天自动显示天),提交时前端换算为秒——canonical 单位保持秒,接口语义不变 |\n| `max_save_count` | int,0~100000 | 0 | **v2 新增**:单次分享最大可取(保存)次数上限(0=不限制;`expire_style=count` 且 `expire_value` 超上限时 403「限制次数最多为 N 次」) |\n| `expireStyle` | []string | `["day","hour","minute","forever","count"]` | 允许的过期方式白名单(上传时不在白名单 400「过期时间类型错误」) |\n\n### 存储策略(需求 ④⑩)\n\n| 键 | 类型/边界 | 默认 | 说明 |\n|---|---|---|---|\n| `uploadSize` | int64,1024~10GiB | 10485760(10MB) | 单文件大小上限(字节),参考实现语义;`max_file_size=0` 时作为生效上限 |\n| `max_file_size` | int64,0~10GiB | 0 | **v2 新增**:存储策略-单文件上限(字节),0=回落 `uploadSize`;超出 403(文案 humanSize 自适应 B/KB/MB/GB)。**v3**:管理界面以「MB/GB」下拉单位编辑(≥1 GiB 自动显示 GB),提交时前端换算为字节 |\n| `allowed_file_types` | []string | `["*"]` | 允许类型白名单(扩展名/MIME 通配,`*` 不限制;非白名单 403「不允许上传该类型文件」) |\n| `storageLimit` | int64,≥0 | 0 | 站点总容量(字节),0=不限制(超限 507) |\n| `openUpload` | int(0/1) | 1 | 游客上传开关(0 时上传接口要求管理员令牌 403) |\n| `enableChunk` | int(0/1) | 0 | 启用分片上传 |\n\n### 上传频率限制(需求 ④,既有键对齐参考 ip_limit["upload"])\n\n| 键 | 类型/边界 | 默认 | 说明 |\n|---|---|---|---|\n| `uploadCount` / `uploadMinute` | int(1~10000 / 1~1440) | 10 / 1 | 窗口内允许上传次数 / 窗口分钟(上传成功才计数,超限 423;管理端修改后运行时同步限流规则,立即生效) |\n| `upload_rate` / `download_rate` | int64(0~1 GiB/s) | 0 / 0 | **v3.2**:上下行带宽字节/秒,0=不限速;管理端改后立即生效(每请求动态读 KV)。详见《[带宽限速](13-bandwidth.md)》 |\n| `errorCount` / `errorMinute` | int | 10 / 1 | 取件错误(失败计数)+ metadata 每次计数 |\n| `loginCount` / `loginMinute` | int | 5 / 15 | 登录失败计数 |\n\n### 安全与会话\n\n| 键 | 默认 | 说明 |\n|---|---|---|\n| `admin_token` | 空(未初始化) | 管理员密码哈希(`sha256$salt$hash`);GET 配置时屏蔽为空串 |\n| `jwt_secret` | 空 | JWT 签名密钥(初始化/改密时自动生成轮换;不下发;`settings.SensitiveKeys` 双模式下一致屏蔽) |\n| `adminSessionExpire` | 604800(7 天) | 管理员会话秒数(须 1~365 整天) |\n\n### 存储引擎(v3 运行时可配 + 热切换)\n\n**`storage_engine`**(v3 新增键):string,`local|s3|webdav`,默认空=回落启动值 `FCB_STORAGE_ENGINE`。\n运行时切换走 **`POST /admin/storage/switch`**(JWT 保护):构建新引擎 → 健康检查通过才生效;\n失败返回 503「存储引擎切换失败,已保持原引擎: …」且不改 KV。成功后持久化 `storage_engine`,重启沿用。\n`GET /api/v1/config` 公开下发 `storage_engine` 当前名(仅名称,任何引擎参数/凭据不下发)。\n\n引擎参数键(管理端可改;保存后对应引擎实例缓存失效,下次切换/构建生效):\n\n| 键 | 默认 |\n|---|---|\n| `file_storage` | `local` |\n| `storage_path` | 空 |\n| `local_storage_path` | 空(容器内由 `FCB_LOCAL_STORAGE_PATH=/app/data` 注入) |\n| `s3_access_key_id` / `s3_secret_access_key` / `aws_session_token` | 空 |\n| `s3_bucket_name` / `s3_endpoint_url` / `s3_hostname` | 空 |\n| `s3_region_name` | `auto` |\n| `s3_signature_version` | `s3v4` |\n| `s3_addressing_style` | `auto` |\n| `s3_proxy` | 0 |\n| `webdav_url` / `webdav_username` / `webdav_password` | 空 |\n| `webdav_root_path` | `filebox_storage` |\n| `webdav_proxy` | 0 |\n\n> 敏感键 `webdav_password` / `s3_secret_access_key` / `aws_session_token`(v3 加入 `settings.SensitiveKeys`):\n> 管理端 GET 返回掩码 `******`;PATCH 时空串或 `******` 表示不修改。直接写库 settings KV 后重启同样生效。\n\n## 策略动态生效机制(v2 需求 ④⑩)\n\n上传页通过 `GET /api/v1/config` 的 `config` 字段读取**当前策略快照**并在范围内渲染选项;\n上传链路(`/share/file`、`/chunk/*`、`/presign/*`)**每次请求实时读取** settings KV 同一组值校验:\n\n- 管理端改策略(`PATCH /admin/config/update`)→ 公开 config 即时反映 → 后续上传立即按新策略执行(含 403/400 拒绝与恢复放行)。\n- 生效上限:`max_file_size > 0` 时为 `max_file_size`,否则回落 `uploadSize`。\n- 校验点覆盖:单文件(`/share/file`)、分片 init 按分片数上限、分片上传累计、分片 complete 累计、预签名 init 声明大小,五处口径一致(`api.UploadPolicy.CheckSize`)。\n\n## 公共配置接口\n\n前端启动时经 `GET /api/v1/config` 获取站点公开配置(无需认证;v2 扩展需求 ①②③④⑩):\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "config": {\n "name": "文件快传",\n "description": "开箱即用的文件快传系统",\n "explain": "请勿上传或分享违法内容…",\n "logo_url": "",\n "favicon_url": "",\n "background_url": "",\n "footer_text": "自定义页脚内容",\n "footer_beian": "京ICP备2024xxxxxx号-1",\n "notify_enabled": 1,\n "notify_title": "系统通知",\n "notify_content": "欢迎使用文件快传…",\n "uploadSize": 10485760,\n "max_file_size": 10485760,\n "maxFileSize": 10485760,\n "allowedFileTypes": ["*"],\n "expireStyle": ["day", "hour", "minute", "forever", "count"],\n "max_save_seconds": 0,\n "maxSaveSeconds": 0,\n "max_save_count": 0,\n "maxSaveCount": 0,\n "uploadCount": 10,\n "uploadMinute": 1,\n "enableChunk": false,\n "openUpload": true\n },\n "meta": {\n "version": "26.9",\n "features": { "chunkUpload": false, "guestUpload": true }\n }\n }\n}\n```\n\n> 策略字段 snake_case 与 camelCase 双份下发(前端宽松解析);响应为白名单显式构造,\n> 任何敏感键(`admin_token`/`jwt_secret`)均不会出现。\n\n## 健康检查\n\n```bash\ncurl -s http://localhost:8466/api/v1/health\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "status": "ok",\n "version": "26.9",\n "storage": "local",\n "time": "2025-06-01T12:00:00+08:00"\n }\n}\n```\n',b='# 错误码\n\n## 响应结构\n\n```json\n{ "code": 404, "msg": "文件不存在" }\n```\n\n- `code` 与 HTTP 状态码一致;失败时无 `data` 字段。\n- `msg` 为中文可读信息,可直接展示给用户。\n\n## 业务状态码\n\n| 状态码 | 语义 | 典型场景 |\n|---|---|---|\n| 200 | 成功 | 全部正常响应 |\n| 400 | 参数/格式错误 | 缺字段、过期策略非法、时间格式错误、分片哈希不匹配、code 冲突、`chunk_size` 超 32MiB 上限、presign 实际大小与声明不符、请求体超过大小上限 |\n| 401 | 未认证 | 管理端令牌缺失/无效;登录密码错误 |\n| 403 | 拒绝 | 类型白名单拒绝、magic bytes 防伪、游客上传未开启、**分片上传未启用**(enableChunk=0)、presign 直传对象超限(服务端删除对象并释放预留)、下载 `key` 鉴权失败、超过大小/时长限制 |\n| 404 | 不存在/已过期 | 取件码不存在、文件已过期、上传会话不存在、`/api/*` 未命中路由 |\n| 409 | 冲突 | 上传容量预留信息不一致 |\n| 416 | Range 越界 | `Range: bytes=…` 超出文件大小 |\n| 423 | 限流 | upload/error/login/metadata 任一规则超限 |\n| 428 | 未初始化 | 系统未初始化时访问除 `/setup`、`/api/v1/health` 外的接口 |\n| 500 | 服务器错误 | 数据库/内部异常 |\n| 501 | 引擎不支持 | 引擎不支持预签名等操作(local/webdav 的 `PresignGetURL/PutURL`) |\n| 503 | 存储不可用 | 存储引擎连接失败/健康检查不通过时的操作 |\n| 507 | 容量超限 | 达到 `storageLimit` 上限(含上传预留判定) |\n\n## 存储哨兵错误映射\n\n存储层哨兵错误统一映射(支持错误包装链判定):\n\n| 哨兵错误 | HTTP | 响应 msg |\n|---|---|---|\n| `ErrNotFound` | 404 | 文件不存在 |\n| `ErrInvalidPath` | 400 | 非法文件路径 |\n| `ErrUnavailable` | 503 | 存储服务不可用,请稍后再试 |\n| `ErrNotSupported` | 501 | 当前存储引擎不支持该操作 |\n| `ErrRangeNotSatisfiable` | 416 | 请求范围超出文件大小 |\n| `ErrHashMismatch` | 400 | 分片哈希校验失败,请重新上传 |\n\n未识别的存储错误归入 500(`存储操作失败: …`)。\n\n## 错误结果的审计归类\n\n错误响应同时写入审计日志(需求 ③):\n\n- `denied`:401 / 403 / 423 / 429 / 428(拒绝类)。\n- `failed`:其余 4xx / 5xx 及业务显式报错。\n\n## 常见排障\n\n| 现象 | 原因与处理 |\n|---|---|\n| 全部接口 428 | 未初始化:访问 `GET /setup` 或 `POST /setup` 完成向导 |\n| 上传 403「本站未开启游客上传」 | `openUpload=0`,携带管理员 Bearer 令牌或后台开启 |\n| 上传 423 | 触发 upload 限流,等待窗口或调大 `uploadCount/uploadMinute` |\n| 取件 404「文件已过期」 | 分享过期/次数耗尽;管理员可 `PATCH /admin/file/update` 调整 |\n| 下载 403「下载鉴权失败」 | `key` 窗口令牌过期/伪造:重新 `POST /share/select` 获取新地址 |\n| 预签名 init 返回 proxy | local/webdav 引擎不支持直链,按 proxy 流程走服务端代理上传 |\n| 503 存储服务不可用 | 检查引擎配置与远端服务(S3/WebDAV)连通性;`GET /api/v1/health` 的 `storage` 字段确认引擎 |\n',x='# Logo 自定义\n\n## 默认 Logo(内置,v2 需求 ⑤)\n\n| 项 | 默认值 | 用途 |\n|---|---|---|\n| 页面导航 Logo | 前端打包本地资源 `/assets/logo-*.svg`(源:`web/src/assets/brand/logo.svg`) | 导航栏 ``;`config.logo_url` 为空时回落使用 |\n| favicon / 备用 Logo | 前端打包本地资源 `/assets/favicon-*.png`(源:`web/src/assets/brand/favicon.png`) | `index.html` `` + 动态 favicon 回落 |\n\nv2 起默认不再引用远程 URL:`GET /api/v1/config` 中 `logo_url`/`favicon_url` 默认下发空串,\n前端 `displayLogoUrl`/`displayFaviconUrl` 判空后回落到打包的本地资源。\n管理端仍可设置任意 URL 全站替换(三步如下)。\n\n## 管理端自定义(三步)\n\n1. **登录后台**:`POST /admin/login` 获取 Bearer 令牌。\n2. **保存配置**:`PATCH /admin/config/update` 更新 `logo_url`(与可选 `favicon_url`),值为图片 URL 或经管理端上传后得到的地址。\n3. **全站生效**:保存即写入 settings KV 并热更新,前端读取公共配置立即换新 Logo,无需重启。\n\ncurl 示例:\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/config/update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"logo_url":"https://cdn.example.com/logo.svg","favicon_url":"https://cdn.example.com/favicon.png"}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true } }\n```\n\n> 也可以在管理界面「系统设置」页操作(上传图片或填写 URL),效果相同。\n\n## 校验生效\n\n```bash\ncurl -s http://localhost:8466/api/v1/config\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": { "config": { "logo_url": "https://cdn.example.com/logo.svg", "favicon_url": "https://cdn.example.com/favicon.png" } }\n}\n```\n\n## 恢复默认\n\n把 `logo_url` / `favicon_url` 置回默认值(空串,前端回落本地打包资源)即可:\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/config/update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"logo_url":"","favicon_url":""}\'\n```\n\n## 相关行为\n\n- 前端运行时优先读取配置值;空值回退前端打包的本地资源(`web/src/assets/brand/logo.svg` + `favicon.png`,经 `displayLogoUrl`/`displayFaviconUrl` 判空回落)。\n- `site_name` 同样支持运行时自定义(`PATCH /admin/config/update` 的 `site_name` 键)。\n- Logo/favicon 仅涉及展示层,修改不影响会话与令牌(不轮换 `jwt_secret`)。\n',T=`# 带宽限速(v3.2) + +> v3.2 新增。管理端可独立设置**上行(上传)/ 下行(下载)带宽**,单位字节/秒(前端 UI 友好单位为 MB/s), +> 0=不限速。修改后**立即生效**(每请求动态读取最新 KV,不需重启容器/进程)。 + +## 适用对象 + +| 方向 | 范围 | 说明 | +|---|---|---| +| 上行 | \`POST /share/file\`、\`POST /chunk/upload/{id}/{idx}\`、\`POST /chunk/upload\`(扁平兼容)、\`PUT /presign/upload/proxy/{id}\` | 包裹 \`c.Request.Body\`,对 multipart 解析与表单字段读取天然节流 | +| 下行 | \`GET /share/download?key=&code=\`、\`GET /share/select?code=\`(文件流)、\`GET /admin/file/download?id=\` | 包裹 \`storage.ReadCloser\`(local/webdav/s3 代理下载),Range 分段也按节流后的字节流推进 | + +> **不在限速范围**:S3 预签名**直传**(客户端 → S3 桶直连,**服务端无法介入**); +> 文本分享下载(GET \`/share/select\` 命中 \`text\` 字段时直接返回 JSON 字符串,体积通常远小于 1MB)。 + +## 配置项 + +| 键 | 类型/边界 | 默认 | 说明 | +|---|---|---|---| +| \`upload_rate\` | int64(0 ~ 1 073 741 824,即 1 GiB/s) | 0 | 上行字节/秒;0=不限速 | +| \`download_rate\` | int64(0 ~ 1 073 741 824) | 0 | 下行字节/秒;0=不限速 | + +UI 输入:管理端「系统设置 → 上传频率限制」卡底部两个字段,**MB/s** 整数,0=不限速。 +保存时前端把 \`MB/s × 1024 × 1024\` 换算为字节/秒写入 KV。 + +## 算法(实现原理) + +基于**时间窗的精确调度**,每个 \`Read\` 调用: + +\`\`\` +start ← 首次 Read 的时刻 +bytes ← 累计已读字节(每次 Read 累加返回值 n) +expected = start + bytes / rate // 按限速值推算"应到达时间" +if now < expected: + sleep(expected - now) // 超前则阻塞补齐 +return n, err +\`\`\` + +保证长期速率严格 ≤ \`rate\`,瞬时由调用方 Read 块大小自然突发。**不按字节微睡眠**——避免单次 Read 在低速场景下被调度抖动放大。 + +> 早期版本按每字节 sleep 1/rate 秒,被 Mac 调度粒度(约 10µs)放大后实际速率只有目标值的 1/3;v3.2.1 修正为整块对齐 sleep。 + +## 公开接口 + +\`GET /api/v1/config\` 与 \`GET /admin/config/get\` 均下发当前生效值(数值型,字节/秒): + +\`\`\`json +{ + "data": { + "config": { + "upload_rate": 0, + "download_rate": 0, + ... + } + } +} +\`\`\` + +## 修改(管理端) + +\`\`\`bash +# PATCH /admin/config/update +curl -X PATCH http://localhost:8466/admin/config/update \\ + -H "Authorization: Bearer " \\ + -H "Content-Type: application/json" \\ + -d '{"upload_rate": 1048576, "download_rate": 524288}' +# ↑ 上行 1 MB/s、下行 512 KB/s +\`\`\` + +边界校验(来自 \`settings.KVSchema\`,越界 400 中文错误): + +- \`upload_rate\` / \`download_rate\` 必须是整数,0 ≤ 值 ≤ 1073741824 + +## 验证(端到端) + +\`\`\`bash +# 1) 设下载限速 200 KB/s +curl -X PATCH http://localhost:8466/admin/config/update \\ + -H "Authorization: Bearer " -H "Content-Type: application/json" \\ + -d '{"download_rate": 204800}' -w '\\nHTTP %{http_code}\\n' +# 2) 上传 2 MB 测试文件(自动随机取件码或自定义 5~8 位) +curl -X POST http://localhost:8466/share/file -F file=@/tmp/2mb.bin \\ + -F "expire_value=1" -F "expire_style=day" -F "code=" +# 3) 管理员接口下载(不消耗取件次数,便于压测) +ID=$(curl -s "http://localhost:8466/admin/file/list?page=1&size=20" \\ + -H "Authorization: Bearer " | jq '.data.data[0].id') +time curl -s -o /tmp/dl.bin "http://localhost:8466/admin/file/download?id=$ID" \\ + -H "Authorization: Bearer " +# 期望 ~10s(2 097 152 字节 / 200 000 B/s = 10.486 s) +# 实测 10.65s(误差 1.5%,含 HTTP 头/响应开销) +\`\`\` + +> 测完记得恢复:\`PATCH /admin/config/update\` 设回 0。 + +## 性能开销 + +- 0 速率路径:完全透传,无任何额外分配/锁/计时。 +- 限速路径:每次 Read 多两次 \`time.Now()\` 与一次整数除法;\`mutex.Lock\` 仅在并发复用同一 reader 时阻塞(每请求独立实例,正常无争用)。 + +## 边界与注意 + +1. **S3 预签名直传不可限速**:客户端拿到预签名 URL 后直连 S3 桶,不经本服务。\`PUT /presign/upload/proxy/{id}\`(**代理模式**)仍受上行限速;前端实现可在管理端提示用户这一点。 +2. **共享存储后端的"突发"**:令牌桶改为时间窗对齐后,单次 Read 仍可能瞬时突发到调用方请求的块大小(典型 32~64 KB)。需更严格平滑的可在调用方调小读取块大小(如 4 KB)。 +3. **代理/反代层限速**:如部署在 Nginx / Cloudflare 后,公网入站还会经过代理的限速/带宽上限;本服务限速只对服务进程侧可见。 +4. **Range 多区间**:HTTP Range 单区间请求的字节流仍按限速推进;多区间未实现,回退全量。 +5. **重置**:UI 「恢复默认」按钮把两个速率归 0(不限速)。 + +## 相关 + +- 配置 KV 概览:见《环境变量与配置》\`upload_rate\` / \`download_rate\` 条目 +- 管理端修改示例:见《管理后台 API》\`PATCH /admin/config/update\` +- OpenAPI schema:\`docs/openapi.yaml\` 的 \`/admin/config/update\` requestBody.properties +`,S=`openapi: 3.0.3 +info: + title: 文件快传 Go 版 API + version: 2.5.6 + description: | + 文件快传 Go 重写版(Gin + GORM)完整 API 规范,与 \`server/internal/api/\` 实现逐一对齐。 + + 约定: + - 业务路由挂根路径(/share /chunk /presign /admin),公共接口保留 /api/v1 前缀。 + - 统一响应 \`{"code":200,"msg":"ok","data":...}\`,HTTP 状态码与 code 一致,失败时 data 缺省。 + - 管理接口(/admin/login 除外)需 \`Authorization: Bearer \`。 + - 未初始化时除 /setup 与 /api/v1/health 外一律 428;限流超限 423。 + contact: + name: 文件快传 Rewrite Team +servers: + - url: / + description: 同源部署(默认 :8466) +tags: + - name: 公共 + - name: 初始化 + - name: 分享 + - name: 分片上传 + - name: 预签名直传 + - name: 管理后台 + - name: 审计日志 + +paths: + /api/v1/health: + get: + tags: [公共] + summary: 健康检查 + operationId: health + responses: + '200': + description: 服务状态 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + status: { type: string, example: ok } + version: { type: string, example: 2.5.6 } + storage: { type: string, example: local } + time: { type: string, example: '2025-06-01T12:00:00+08:00' } + /robots.txt: + get: + tags: [公共] + summary: robots.txt + operationId: robotsText + description: | + 输出管理端可配置的 \`robotsText\` 内容(text/plain)。 + 内容可在管理后台「站点配置」中自定义,默认 \`User-agent: *\\nDisallow: /\`。 + responses: + '200': + description: robots.txt 内容 + content: + text/plain: + schema: { type: string, example: 'User-agent: *\\nDisallow: /' } + + /api/v1/config: + get: + tags: [公共] + summary: 公共站点配置 + operationId: publicConfig + responses: + '200': + description: 站点公开配置与功能开关 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + config: + type: object + description: 策略字段为上传页动态读取的当前快照(管理端改后即时反映);snake_case 与 camelCase 双份 + properties: + name: { type: string } + description: { type: string } + explain: { type: string } + logo_url: { type: string } + favicon_url: { type: string } + background_url: { type: string, description: '需求 ① 背景图 URL/上传地址,空=主题默认' } + footer_text: { type: string, description: '需求 ② 页脚自定义内容' } + footer_beian: { type: string, description: '需求 ② 备案号' } + storage_engine: { type: string, description: 当前存储引擎名(仅名称,凭据不下发) } + site_domain: { type: string, description: 'v3.1 站点对外域名(空=用当前访问地址)' } + notify_enabled: { type: integer, enum: [0, 1], description: '需求 ③ 通知开关(1=右上角悬浮窗)' } + notify_title: { type: string } + notify_content: { type: string } + uploadSize: { type: integer, format: int64, description: '回落上限(max_file_size=0 时生效)' } + max_file_size: { type: integer, format: int64, description: '需求 ⑩ 存储策略-单文件上限字节(0=回落 uploadSize)' } + maxFileSize: { type: integer, format: int64, description: 同 max_file_size } + allowedFileTypes: { type: array, items: { type: string } } + expireStyle: { type: array, items: { type: string } } + max_save_seconds: { type: integer, format: int64, description: '需求 ④ 最长保存秒数上限(0=默认 7 天兜底)' } + maxSaveSeconds: { type: integer, format: int64, description: 同 max_save_seconds } + max_save_count: { type: integer, description: '需求 ④ 单次分享最大可取次数上限(0=不限制)' } + maxSaveCount: { type: integer, description: 同 max_save_count } + uploadCount: { type: integer, description: 上传频率限制-窗口内次数 } + uploadMinute: { type: integer, description: 上传频率限制-窗口分钟 } + enableChunk: { type: boolean } + openUpload: { type: boolean } + meta: + type: object + properties: + version: { type: string } + features: + type: object + properties: + chunkUpload: { type: boolean } + guestUpload: { type: boolean } + + /setup: + get: + tags: [初始化] + summary: 初始化向导页面 + operationId: setupPage + description: 未初始化返回 HTML 向导;已初始化 303 重定向到 /。 + responses: + '200': + description: HTML 向导页 + content: + text/html: + schema: { type: string } + '303': + description: 已初始化,重定向到 / + post: + tags: [初始化] + summary: 提交初始化 + operationId: setupSubmit + description: | + 表单或 JSON。管理员密码 ≥8 位;\`expireStyle\` 支持多值(复选框或逗号分隔)。 + 成功写入站点配置、密码哈希并生成 jwt_secret。表单提交返回成功 HTML,JSON 提交返回 JSON。 + requestBody: + content: + application/json: + schema: + type: object + properties: + admin_password: { type: string, minLength: 8 } + confirm_password: { type: string } + site_name: { type: string } + upload_size_value: { type: integer, default: 10 } + upload_size_unit: { type: string, enum: [KB, MB, GB], default: MB } + save_time_value: { type: integer, default: 0 } + save_time_unit: { type: string, enum: [second, minute, hour, day], default: day } + expireStyle: + oneOf: + - type: string + - type: array + items: { type: string } + code_generate_type: { type: string, enum: [number, secret], default: secret } + errorCount: { type: integer, default: 10 } + errorMinute: { type: integer, default: 1 } + loginCount: { type: integer, default: 5 } + loginMinute: { type: integer, default: 15 } + uploadCount: { type: integer, default: 10 } + uploadMinute: { type: integer, default: 1 } + upload_rate: { type: integer, format: int64, default: 0, description: 'v3.2 上行带宽字节/秒;0=不限速' } + download_rate: { type: integer, format: int64, default: 0, description: 'v3.2 下行带宽字节/秒;0=不限速' } + allowed_file_types: { type: string, default: '*' } + openUpload: { type: boolean, default: true } + enableChunk: { type: boolean, default: false } + application/x-www-form-urlencoded: + schema: + type: object + properties: + admin_password: { type: string } + confirm_password: { type: string } + site_name: { type: string } + responses: + '200': + description: 初始化成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + ok: { type: boolean, example: true } + admin: { type: string, example: '/#/admin' } + text/html: + schema: { type: string } + '400': + $ref: '#/components/responses/BadRequest' + + /share/text: + post: + tags: [分享] + summary: 创建文本分享 + operationId: shareText + description: | + 文本 ≤222KB(请求体全局上限 1MiB,Content-Length>441KB 直接 403);上传类接口(成功计数 upload 限流,423 超限),经审计中间件落库。 + 保存策略(需求 ④):expire_style 须在 expireStyle 白名单(400);count 型受 + max_save_count 约束(403「限制次数最多为 N 次」);时间型受 max_save_seconds 约束(403)。 + v3.1:支持 JSON 提交(字段同名);空文本 400「分享内容不能为空」; + 可选 code 自定义提取码(5-8 位字母或数字,占用 400「该提取码已被占用」)。 + requestBody: + content: + application/x-www-form-urlencoded: + schema: + type: object + required: [text] + properties: + text: { type: string, maxLength: 227328 } + expire_value: { type: integer, default: 1 } + expire_style: { type: string, enum: [day, hour, minute, count, forever], default: day } + code: { type: string, minLength: 5, maxLength: 8, pattern: '^[A-Za-z0-9]+$', description: 自定义提取码(5-8 位字母数字,可省略=随机) } + responses: + '200': + description: 取件码 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + code: { type: string, example: 8XQ2M } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /share/file: + post: + tags: [分享] + summary: 上传文件并创建分享 + operationId: shareFile + description: | + multipart 上传;扩展名/MIME 白名单 + magic bytes 防伪;大小受动态策略上限限制 + (max_file_size>0 时为其,否则回落 uploadSize;403「大小超过限制,最大为10.00 MB」, + 管理端改后立即生效);保存策略同 /share/text(403/400);容量超限 507。 + requestBody: + content: + multipart/form-data: + schema: + type: object + required: [file] + properties: + code: { type: string, minLength: 5, maxLength: 8, pattern: '^[A-Za-z0-9]+$', description: 自定义提取码(5-8 位字母数字,可省略=随机) } + file: + type: string + format: binary + expire_value: { type: integer, default: 1 } + expire_style: { type: string, enum: [day, hour, minute, count, forever], default: day } + responses: + '200': + description: 取件码与文件名 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + code: { type: string, example: K3P9W } + name: { type: string, example: report.pdf } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '423': { $ref: '#/components/responses/RateLimited' } + '503': { $ref: '#/components/responses/ServiceUnavailable' } + '507': { $ref: '#/components/responses/InsufficientStorage' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /share/metadata: + get: + tags: [分享] + summary: 查询分享元信息(GET) + operationId: shareMetadataGet + description: 不消耗次数;每次访问计入 metadata 限流。 + parameters: + - $ref: '#/components/parameters/CodeQuery' + responses: + '200': + description: 元信息 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareMetadata' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [分享] + summary: 查询分享元信息(POST) + operationId: shareMetadataPost + requestBody: + content: + application/json: + schema: + type: object + required: [code] + properties: + code: { type: string } + responses: + '200': + description: 元信息(同 GET 版本) + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareMetadata' } + '400': { $ref: '#/components/responses/BadRequest' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /share/select: + get: + tags: [分享] + summary: 取件(消耗次数) + operationId: shareSelectGet + description: | + 每调用一次消耗 1 次取件。文本分享返回 text/plain 正文;文件分享返回文件流 + (200 全量 / 206 区间,支持 Range,Accept-Ranges: bytes)。失败计入 error 限流(423)。 + parameters: + - $ref: '#/components/parameters/CodeQuery' + - name: Range + in: header + required: false + schema: { type: string, example: 'bytes=0-1023' } + description: 文件分享的区间请求(单区间) + responses: + '200': + description: 文本正文或文件流 + content: + text/plain: + schema: { type: string } + application/octet-stream: + schema: { type: string, format: binary } + '206': + description: Range 区间文件流(Content-Range) + content: + application/octet-stream: + schema: { type: string, format: binary } + '404': { $ref: '#/components/responses/NotFound' } + '416': { $ref: '#/components/responses/RangeNotSatisfiable' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [分享] + summary: 取件详情(JSON) + operationId: shareSelectPost + description: | + 返回元信息 + 内容/下载地址。文本分享含 text/content;文件分享含 download_url + (代理地址或 S3 预签名直链)。次数型分享返回代理地址且本次不消耗(消耗在代理下载时)。 + requestBody: + content: + application/json: + schema: + type: object + required: [code] + properties: + code: { type: string } + responses: + '200': + description: 分享详情 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareDetail' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /share/download: + get: + tags: [分享] + summary: 代理下载(消耗次数) + operationId: shareDownload + description: key 为窗口令牌(双窗口校验,鉴权失败 403 且计入 error 限流);文件流 200/206 支持 Range。 + parameters: + - name: key + in: query + required: true + schema: { type: string } + - $ref: '#/components/parameters/CodeQuery' + responses: + '200': + description: 文本 JSON 或文件流 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + application/octet-stream: + schema: { type: string, format: binary } + '206': + description: Range 区间文件流 + content: + application/octet-stream: + schema: { type: string, format: binary } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '416': { $ref: '#/components/responses/RangeNotSatisfiable' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/init: + post: + tags: [分片上传] + summary: 初始化分片上传会话 + operationId: chunkInit + description: | + 相同 file_hash+file_size+file_name 的未完成会话自动续传(uploaded_chunks 非空即续传)。 + chunk_size 缺省 5MB、硬上限 32MiB(超出 400「chunk_size 过大」);需 enableChunk 开启(关闭时全部 /chunk 端点 403)。总大小按分片数上限受动态策略约束 + (max_file_size>0 时为其,否则 uploadSize;403);类型白名单 403。 + requestBody: + content: + application/json: + schema: + type: object + required: [file_name, file_size] + properties: + file_name: { type: string } + file_size: { type: integer, format: int64, minimum: 1 } + chunk_size: { type: integer, format: int64, default: 5242880, maximum: 33554432, description: 每片大小(字节),≤32MiB } + file_hash: { type: string, description: 整文件 SHA256,断点续传匹配键 } + responses: + '200': + description: 会话信息 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ChunkInitData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '423': { $ref: '#/components/responses/RateLimited' } + '507': { $ref: '#/components/responses/InsufficientStorage' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/{uploadID}/{chunkIndex}: + post: + tags: [分片上传] + summary: 上传单个分片 + operationId: chunkUpload + description: multipart 字段 chunk;单分片 ≤ min(chunk_size, 32MiB);重复上传幂等(skipped:true);首分片做 magic bytes 防伪。 + parameters: + - $ref: '#/components/parameters/UploadID' + - name: chunkIndex + in: path + required: true + schema: { type: integer, minimum: 0 } + requestBody: + content: + multipart/form-data: + schema: + type: object + required: [chunk] + properties: + chunk: { type: string, format: binary } + responses: + '200': + description: 分片结果 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ChunkUploadData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/status/{uploadID}: + get: + tags: [分片上传] + summary: 查询上传进度 + operationId: chunkStatus + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 进度 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ChunkStatusData' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/complete/{uploadID}: + post: + tags: [分片上传] + summary: 合并分片并创建分享 + operationId: chunkComplete + description: 分片到齐后调用;按索引有序合并 + SHA256 校验(不完整 400 / 哈希不符 400);累计大小受动态策略上限(403,超限清理会话);保存策略同 /share/text(403/400)。 + parameters: + - $ref: '#/components/parameters/UploadID' + requestBody: + content: + application/json: + schema: + type: object + properties: + expire_value: { type: integer, default: 1 } + expire_style: { type: string, enum: [day, hour, minute, count, forever], default: day } + responses: + '200': + description: 取件码与文件名 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareFileData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/{uploadID}: + delete: + tags: [分片上传] + summary: 取消上传 + operationId: chunkCancel + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 已取消 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + message: { type: string, example: 上传已取消 } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/init: + post: + tags: [预签名直传] + summary: 初始化预签名上传 + operationId: presignInit + description: | + S3 引擎返回 mode=direct(upload_url 为预签名 PUT URL);local/webdav 返回 mode=proxy + (upload_url=/presign/upload/proxy/{uploadID})。会话 900 秒有效。 + file_size 受动态策略上限(max_file_size>0 时为其,否则 uploadSize;403);保存策略同 /share/text。 + requestBody: + content: + application/json: + schema: + type: object + required: [file_name, file_size] + properties: + file_name: { type: string } + file_size: { type: integer, format: int64, minimum: 1 } + expire_value: { type: integer, default: 1 } + expire_style: { type: string, enum: [day, hour, minute, count, forever], default: day } + responses: + '200': + description: 上传会话 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/PresignInitData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '423': { $ref: '#/components/responses/RateLimited' } + '507': { $ref: '#/components/responses/InsufficientStorage' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/proxy/{uploadID}: + put: + tags: [预签名直传] + summary: 代理上传(proxy 模式) + operationId: presignProxy + description: multipart 字段 file;实际大小须与声明一致(±1KB);成功即建分享并删除会话。 + parameters: + - $ref: '#/components/parameters/UploadID' + requestBody: + content: + multipart/form-data: + schema: + type: object + required: [file] + properties: + file: { type: string, format: binary } + responses: + '200': + description: 取件码与文件名 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareFileData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/confirm/{uploadID}: + post: + tags: [预签名直传] + summary: 直传确认(direct 模式) + operationId: presignConfirm + description: | + 客户端完成 S3 PUT 后调用。服务端 HeadObject 核对实际对象: + 超过策略上限 → 删除对象、释放容量预留并 403;实际大小与声明差 >1KB → 400; + 前 64 字节做 magic bytes 校验(失败删除对象)。全部通过后创建分享记录。 + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 取件码与文件名 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareFileData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/status/{uploadID}: + get: + tags: [预签名直传] + summary: 查询预签名会话 + operationId: presignStatus + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 会话状态 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + upload_id: { type: string } + file_name: { type: string } + file_size: { type: integer, format: int64 } + mode: { type: string, enum: [direct, proxy] } + created_at: { type: string } + expires_at: { type: string } + is_expired: { type: boolean } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/{uploadID}: + delete: + tags: [预签名直传] + summary: 取消预签名会话 + operationId: presignCancel + description: direct 模式会尽力清理已直传的对象。 + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 已取消 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + message: { type: string, example: 上传会话已取消 } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/login: + post: + tags: [管理后台] + summary: 管理员登录 + operationId: adminLogin + description: 失败 401 并计入 login 限流(423 超限)。 + requestBody: + content: + application/json: + schema: + type: object + required: [password] + properties: + password: { type: string } + responses: + '200': + description: JWT 会话 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/LoginData' } + '401': { $ref: '#/components/responses/Unauthorized' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/verify: + get: + tags: [管理后台] + summary: 校验管理员会话 + operationId: adminVerify + security: [{ bearerAuth: [] }] + responses: + '200': + description: 会话信息 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/LoginData' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/logout: + post: + tags: [管理后台] + summary: 管理员登出 + operationId: adminLogout + description: 无状态 JWT,客户端丢弃令牌即可。 + security: [{ bearerAuth: [] }] + responses: + '200': + description: 确认 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/dashboard: + get: + tags: [管理后台] + summary: 管理端仪表盘统计 + operationId: adminDashboard + security: [{ bearerAuth: [] }] + responses: + '200': + description: 计数/存储用量/最近文件等 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + totalFiles: { type: integer } + storageUsed: { type: string, example: '123456789' } + sysUptime: { type: integer, nullable: true, description: 启动时刻 Unix 毫秒 } + yesterdayCount: { type: integer } + yesterdaySize: { type: string } + todayCount: { type: integer } + todaySize: { type: string } + activeCount: { type: integer } + expiredCount: { type: integer } + textCount: { type: integer } + fileCount: { type: integer } + chunkedCount: { type: integer } + usedCount: { type: integer } + storageBackend: { type: string, enum: [local, s3, webdav] } + uploadSizeLimit: { type: integer, format: int64 } + openUpload: { type: integer } + enableChunk: { type: integer } + maxSaveSeconds: { type: integer, format: int64 } + topSuffixes: + type: array + items: + type: object + properties: + suffix: { type: string } + count: { type: integer } + recentFiles: + type: array + items: { $ref: '#/components/schemas/AdminFileItem' } + recentActivities: { type: array, items: { type: object } } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/list: + get: + tags: [管理后台] + summary: 分页查询分享列表 + operationId: adminFileList + security: [{ bearerAuth: [] }] + parameters: + - { name: page, in: query, schema: { type: integer, default: 1, minimum: 1 } } + - { name: size, in: query, schema: { type: integer, default: 10, minimum: 1, maximum: 100 } } + - { name: keyword, in: query, schema: { type: string } } + - { name: status, in: query, schema: { type: string, enum: [active, expired] } } + - { name: type, in: query, schema: { type: string, enum: [text, file, chunked] } } + - { name: sortBy, in: query, schema: { type: string, enum: [created_at, expired_at, name, size, used_count, code] } } + - { name: sortOrder, in: query, schema: { type: string, enum: [asc, desc], default: desc } } + responses: + '200': + description: 列表与统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + page: { type: integer } + size: { type: integer } + total: { type: integer } + summary: + type: object + properties: + totalFiles: { type: integer } + activeCount: { type: integer } + expiredCount: { type: integer } + textCount: { type: integer } + fileCount: { type: integer } + chunkedCount: { type: integer } + storageUsed: { type: integer, format: int64 } + usedCount: { type: integer, format: int64 } + data: + type: array + items: { $ref: '#/components/schemas/AdminFileItem' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/detail: + get: + tags: [管理后台] + summary: 文件详情(GET) + operationId: adminFileDetailGet + security: [{ bearerAuth: [] }] + parameters: + - $ref: '#/components/parameters/FileIDQuery' + responses: + '200': + description: 文件条目(文本分享额外含 content 全文) + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/AdminFileItem' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 文件详情(POST) + operationId: adminFileDetailPost + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [id] + properties: + id: { type: integer, format: int64 } + responses: + '200': + description: 同 GET 版本 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/AdminFileItem' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/update: + patch: + tags: [管理后台] + summary: 更新分享字段(主名) + operationId: adminFileUpdate + description: code 冲突 400;POST /admin/file/update 为兼容别名。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: { $ref: '#/components/schemas/FileUpdateInput' } + responses: + '200': + description: 更新成功(data 为字符串“更新成功”) + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 更新分享字段(POST 别名) + operationId: adminFileUpdateAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: { $ref: '#/components/schemas/FileUpdateInput' } + responses: + '200': + description: 更新成功 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/delete: + delete: + tags: [管理后台] + summary: 删除单个分享(主名) + operationId: adminFileDelete + description: 连带删除存储文件;POST /admin/file/delete 为兼容别名。 + security: [{ bearerAuth: [] }] + parameters: + - { name: id, in: query, schema: { type: integer, format: int64 }, description: 亦可放请求体 } + requestBody: + content: + application/json: + schema: + type: object + properties: + id: { type: integer, format: int64 } + responses: + '200': + description: 删除成功(data 为 null) + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 删除单个分享(POST 别名) + operationId: adminFileDeleteAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + properties: + id: { type: integer, format: int64 } + responses: + '200': + description: 删除成功 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/batch-delete: + post: + tags: [管理后台] + summary: 批量删除 + operationId: adminFileBatchDelete + description: DELETE 方法亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + delete: + tags: [管理后台] + summary: 批量删除(DELETE 别名) + operationId: adminFileBatchDeleteAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/batch-update: + patch: + tags: [管理后台] + summary: 批量更新过期策略 + operationId: adminFileBatchUpdate + description: expired_at / expired_count / clearExpiredAt 三选一;POST 亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + expired_at: { type: string, description: ISO 8601 } + expired_count: { type: integer } + clearExpiredAt: { type: boolean, description: 清空过期时间并置 expired_count=-1(永久) } + clear_expired_at: { type: boolean, description: 同 clearExpiredAt } + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 批量更新(POST 别名) + operationId: adminFileBatchUpdateAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + expired_at: { type: string } + expired_count: { type: integer } + clearExpiredAt: { type: boolean } + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/policy-action: + patch: + tags: [管理后台] + summary: 单文件过期策略动作 + operationId: adminFilePolicyAction + description: 动作:extend_24h / extend_7d / make_permanent / reset_download_limit;POST 亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: { $ref: '#/components/schemas/PolicyInput' } + responses: + '200': + description: 执行结果 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/PolicyResult' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 单文件策略动作(POST 别名) + operationId: adminFilePolicyActionAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: { $ref: '#/components/schemas/PolicyInput' } + responses: + '200': + description: 执行结果 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/PolicyResult' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/batch-policy-action: + patch: + tags: [管理后台] + summary: 批量过期策略动作 + operationId: adminFileBatchPolicyAction + description: 响应结构同批量更新;POST 亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + allOf: + - type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + - $ref: '#/components/schemas/PolicyInput' + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 批量策略动作(POST 别名) + operationId: adminFileBatchPolicyActionAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + allOf: + - type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + - $ref: '#/components/schemas/PolicyInput' + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/download: + get: + tags: [管理后台] + summary: 管理员下载原文件 + operationId: adminFileDownload + description: 不消耗取件次数;文件返回二进制流(支持 Range),文本分享返回 JSON。 + security: [{ bearerAuth: [] }] + parameters: + - $ref: '#/components/parameters/FileIDQuery' + responses: + '200': + description: 文件流或文本 JSON + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + application/octet-stream: + schema: { type: string, format: binary } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/preview: + get: + tags: [管理后台] + summary: 文本预览 + operationId: adminFilePreview + description: 仅文本分享可用(文件分享 400);maxChars 默认 4000(1~20000)。 + security: [{ bearerAuth: [] }] + parameters: + - $ref: '#/components/parameters/FileIDQuery' + - { name: maxChars, in: query, schema: { type: integer, default: 4000, minimum: 1, maximum: 20000 } } + responses: + '200': + description: 预览内容 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + id: { type: integer, format: int64 } + code: { type: string } + name: { type: string } + type: { type: string, example: text } + content: { type: string } + length: { type: integer } + previewLength: { type: integer } + truncated: { type: boolean } + maxChars: { type: integer } + createdAt: { type: string } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/config/get: + get: + tags: [管理后台] + summary: 读取运行时配置 + operationId: adminConfigGet + description: admin_token 屏蔽(恒空串)、jwt_secret 不下发;_engine_hint 提示引擎配置需重启。 + security: [{ bearerAuth: [] }] + responses: + '200': + description: 配置 KV + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + additionalProperties: true + properties: + site_name: { type: string } + logo_url: { type: string } + favicon_url: { type: string } + background_url: { type: string } + footer_text: { type: string } + footer_beian: { type: string } + notify_enabled: { type: integer, enum: [0, 1] } + openUpload: { type: integer } + uploadSize: { type: integer, format: int64 } + max_file_size: { type: integer, format: int64, description: '0=回落 uploadSize' } + max_save_count: { type: integer, description: '0=不限制' } + max_save_seconds: { type: integer, format: int64 } + allowed_file_types: { type: array, items: { type: string } } + expireStyle: { type: array, items: { type: string } } + storageLimit: { type: integer, format: int64 } + uploadCount: { type: integer } + uploadMinute: { type: integer } + upload_rate: { type: integer, format: int64, description: 'v3.2 上行带宽字节/秒;0=不限速' } + download_rate: { type: integer, format: int64, description: 'v3.2 下行带宽字节/秒;0=不限速' } + admin_token: { type: string, example: '' } + _engine_hint: + type: object + properties: + storage_backend: { type: string } + note: { type: string } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/config/update: + patch: + tags: [管理后台] + summary: 部分更新配置(主名) + operationId: adminConfigUpdate + description: | + JSON 对象部分更新,未知键忽略;数值键自动转型;v2 起新键按 settings.KVSchema 校验 + (整型边界/字符串长度/列表非空,越界 400 中文错误);background_url 协议白名单 + (http(s)/data:image/站内相对路径);admin_token 明文自动哈希并轮换 jwt_secret + (全部令牌立即失效);adminSessionExpire 须 1~365 整天(默认 604800 即 7 天);notify_content 服务端白名单净化(仅保留文本与 );策略与限流修改立即生效,引擎配置需重启。 + POST /admin/config/update 为兼容别名。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + additionalProperties: true + properties: + site_name: { type: string } + logo_url: { type: string } + favicon_url: { type: string } + background_url: + type: string + maxLength: 2048 + description: '需求 ① 背景图;仅 http(s)、data:image/* 与站内相对路径(/开头),空串清除;非法协议 400' + footer_text: { type: string, maxLength: 2000, description: '需求 ② 页脚自定义内容' } + footer_beian: { type: string, maxLength: 128, description: '需求 ② 备案号' } + notify_enabled: { type: integer, enum: [0, 1], description: '需求 ③ 通知开关' } + notify_title: { type: string, maxLength: 128 } + notify_content: { type: string, maxLength: 2000 } + openUpload: { type: integer, enum: [0, 1] } + uploadSize: { type: integer, format: int64, minimum: 1024, maximum: 10737418240 } + max_file_size: { type: integer, format: int64, minimum: 0, maximum: 10737418240, description: '需求 ⑩ 存储策略-单文件上限字节;0=回落 uploadSize' } + max_save_count: { type: integer, minimum: 0, maximum: 100000, description: '需求 ④ 单次分享最大可取次数上限;0=不限制' } + max_save_seconds: { type: integer, format: int64, minimum: 0, maximum: 31536000, description: '需求 ④ 最长保存秒数上限;0=默认 7 天兜底' } + allowed_file_types: + oneOf: + - type: array + items: { type: string } + minItems: 1 + - type: string + description: 逗号分隔亦可;"*" 不限制 + expireStyle: + oneOf: + - type: array + items: { type: string } + minItems: 1 + - type: string + description: 允许的过期方式白名单(day/hour/minute/forever/count 子集) + storageLimit: { type: integer, format: int64, minimum: 0 } + uploadCount: { type: integer, minimum: 1, maximum: 10000 } + uploadMinute: { type: integer, minimum: 1, maximum: 1440 } + errorCount: { type: integer } + errorMinute: { type: integer } + loginCount: { type: integer } + loginMinute: { type: integer } + admin_token: { type: string, description: 明文密码自动哈希并轮换 jwt_secret;空串忽略 } + adminSessionExpire: { type: integer, default: 604800, description: 秒,须 86400 的 1~365 整数倍(默认 7 天) } + responses: + '200': + description: 保存成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 部分更新配置(POST 别名) + operationId: adminConfigUpdateAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + additionalProperties: true + responses: + '200': + description: 保存成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/storage/switch: + post: + tags: [admin] + summary: 存储引擎热切换(v3) + description: | + 运行时切换存储引擎(local|s3|webdav)。构建新引擎并做健康检查, + 通过才生效;失败返回 503 且保持原引擎。成功后持久化 storage_engine KV, + 重启后沿用。 + operationId: adminStorageSwitch + security: + - bearerAuth: [] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [engine] + properties: + engine: + type: string + enum: [local, s3, webdav] + responses: + "200": + description: 切换成功 + content: + application/json: + schema: + allOf: + - $ref: "#/components/schemas/Envelope" + - type: object + properties: + data: + type: object + properties: + ok: { type: boolean } + engine: { type: string } + "400": { $ref: "#/components/responses/BadRequest" } + "401": { $ref: "#/components/responses/Unauthorized" } + "503": { $ref: "#/components/responses/ServiceUnavailable" } + + /admin/settings/password: + patch: + tags: [管理后台] + summary: 修改管理员密码(主名) + operationId: adminChangePassword + description: 新密码 ≥8 位;成功后轮换 jwt_secret,全部旧令牌失效(401)。POST 亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [old_password, new_password] + properties: + old_password: { type: string } + new_password: { type: string, minLength: 8 } + responses: + '200': + description: 修改成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 修改管理员密码(POST 别名) + operationId: adminChangePasswordAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [old_password, new_password] + properties: + old_password: { type: string } + new_password: { type: string, minLength: 8 } + responses: + '200': + description: 修改成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/audit/list: + get: + tags: [审计日志] + summary: 分页查询审计日志(主名) + operationId: adminAuditList + description: | + 需求 ③ 审计查询。行字段 snake_case 为主(camelCase 兼容双份)。 + action: upload|download;result: success|denied|failed;时间参数 ISO 8601。 + security: [{ bearerAuth: [] }] + parameters: + - { name: page, in: query, schema: { type: integer, default: 1, minimum: 1 } } + - { name: size, in: query, schema: { type: integer, default: 20, minimum: 1, maximum: 200 }, description: 兼容 pageSize } + - { name: action, in: query, schema: { type: string, enum: [upload, download] } } + - { name: result, in: query, schema: { type: string, enum: [success, denied, failed] } } + - { name: ip, in: query, schema: { type: string } } + - { name: start_time, in: query, schema: { type: string, example: '2025-06-01T00:00:00+08:00' } } + - { name: end_time, in: query, schema: { type: string, example: '2025-06-02T00:00:00+08:00' } } + responses: + '200': + description: 审计日志分页 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + data: + type: array + items: { $ref: '#/components/schemas/AuditItem' } + total: { type: integer } + page: { type: integer } + size: { type: integer } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/audit/logs: + get: + tags: [审计日志] + summary: 分页查询审计日志(别名) + operationId: adminAuditLogs + deprecated: true + description: 与 /admin/audit/list 完全相同(同一 handler 的兼容别名)。 + security: [{ bearerAuth: [] }] + parameters: + - { name: page, in: query, schema: { type: integer, default: 1 } } + - { name: size, in: query, schema: { type: integer, default: 20 } } + - { name: action, in: query, schema: { type: string, enum: [upload, download] } } + - { name: result, in: query, schema: { type: string, enum: [success, denied, failed] } } + - { name: ip, in: query, schema: { type: string } } + - { name: start_time, in: query, schema: { type: string } } + - { name: end_time, in: query, schema: { type: string } } + responses: + '200': + description: 审计日志分页 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + data: + type: array + items: { $ref: '#/components/schemas/AuditItem' } + total: { type: integer } + page: { type: integer } + size: { type: integer } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + +components: + securitySchemes: + bearerAuth: + type: http + scheme: bearer + bearerFormat: JWT + description: POST /admin/login 获取 + parameters: + CodeQuery: + name: code + in: query + required: true + schema: { type: string } + description: 取件码 + UploadID: + name: uploadID + in: path + required: true + schema: { type: string } + description: 上传会话 ID + FileIDQuery: + name: id + in: query + required: true + schema: { type: integer, format: int64 } + description: 文件记录 ID + responses: + BadRequest: + description: 参数/格式错误 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 400, msg: '过期时间类型错误' } + Unauthorized: + description: 未认证 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 401, msg: '密码错误' } + Forbidden: + description: 拒绝(类型/鉴权/上限) + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 403, msg: '不允许上传该类型文件' } + NotFound: + description: 不存在/已过期 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 404, msg: '文件不存在' } + RangeNotSatisfiable: + description: Range 越界 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 416, msg: '请求范围超出文件大小' } + RateLimited: + description: 限流超限 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 423, msg: '请求次数过多,请稍后再试' } + NotInitialized: + description: 系统未初始化(除 /setup 与 /api/v1/health 外) + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 428, msg: '系统未初始化,请先完成初始化' } + NotImplemented: + description: 引擎不支持 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 501, msg: '当前存储引擎不支持该操作' } + ServiceUnavailable: + description: 存储不可用 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 503, msg: '存储服务不可用,请稍后再试' } + InsufficientStorage: + description: 容量超限 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 507, msg: '存储空间已达到管理员设置的容量上限' } + schemas: + Envelope: + type: object + description: 统一响应封装(HTTP 状态码 = code;失败时 data 缺省) + required: [code, msg] + properties: + code: { type: integer, example: 200 } + msg: { type: string, example: ok } + data: { description: 业务数据,失败时缺省 } + OkData: + type: object + properties: + ok: { type: boolean, example: true } + ShareMetadata: + type: object + properties: + code: { type: string } + name: { type: string } + size: { type: integer, format: int64 } + type: { type: string, enum: [text, file] } + is_text: { type: boolean } + created_at: { type: string } + expired_at: { type: string, nullable: true } + expires_at: { type: string, nullable: true } + expired_count: { type: integer, description: '-1 按时间/永久;>0 次数型限额' } + used_count: { type: integer } + remaining_downloads: { type: integer, nullable: true } + ShareDetail: + allOf: + - $ref: '#/components/schemas/ShareMetadata' + - type: object + properties: + text: { type: string, description: 文本内容或下载地址 } + content: { type: string, description: 文本内容(仅文本分享) } + download_url: { type: string, nullable: true, description: 代理地址或 S3 预签名直链 } + ShareFileData: + type: object + properties: + code: { type: string } + name: { type: string } + ChunkInitData: + type: object + properties: + existed: { type: boolean, example: false } + upload_id: { type: string } + chunk_size: { type: integer, format: int64 } + total_chunks: { type: integer } + uploaded_chunks: { type: array, items: { type: integer } } + ChunkUploadData: + type: object + properties: + chunk_hash: { type: string } + chunk_index: { type: integer } + skipped: { type: boolean, description: 幂等命中已传分片时为 true } + ChunkStatusData: + type: object + properties: + upload_id: { type: string } + file_name: { type: string } + file_size: { type: integer, format: int64 } + chunk_size: { type: integer, format: int64 } + total_chunks: { type: integer } + uploaded_chunks: { type: array, items: { type: integer } } + progress: { type: number } + PresignInitData: + type: object + properties: + upload_id: { type: string } + upload_url: { type: string, description: 'direct=S3 预签名 PUT URL;proxy=/presign/upload/proxy/{id}' } + mode: { type: string, enum: [direct, proxy] } + expires_in: { type: integer, example: 900 } + file_path: { type: string } + proxy_upload_url: { type: string, description: '仅 proxy 模式,与 upload_url 等价' } + legacy_proxy_upload_url: { type: string, description: '仅 proxy 模式;/api 前缀兼容别名,已废弃' } + LoginData: + type: object + properties: + id: { type: string, example: admin } + username: { type: string, example: admin } + token: { type: string } + token_type: { type: string, example: Bearer } + expires_at: { type: integer, format: int64, description: Unix 秒 } + expires_in: { type: integer, description: 秒 } + AdminFileItem: + type: object + description: snake_case 与 camelCase 双份输出(文档以 snake_case 为准) + properties: + id: { type: integer, format: int64 } + code: { type: string } + name: { type: string } + prefix: { type: string } + suffix: { type: string } + size: { type: integer, format: int64 } + is_text: { type: boolean } + is_chunked: { type: boolean } + is_expired: { type: boolean } + expired_at: { type: string, nullable: true } + expired_count: { type: integer } + used_count: { type: integer } + created_at: { type: string } + has_download_limit: { type: boolean } + is_permanent: { type: boolean } + remaining_downloads: { type: integer, nullable: true } + file_hash: { type: string, nullable: true } + text: { type: boolean, description: true 表示为文本分享 } + FileUpdateInput: + type: object + required: [id] + properties: + id: { type: integer, format: int64 } + code: { type: string } + prefix: { type: string } + suffix: { type: string } + expired_at: { type: string, description: ISO 8601 } + expired_count: { type: integer } + PolicyInput: + type: object + required: [action] + properties: + id: { type: integer, format: int64 } + action: { type: string, enum: [extend_24h, extend_7d, make_permanent, reset_download_limit] } + downloadLimit: { type: integer, minimum: 1, description: 仅 reset_download_limit;默认 5 } + PolicyResult: + type: object + properties: + id: { type: integer, format: int64 } + action: { type: string } + BatchStats: + type: object + description: 请求/成功/缺失/失败统计(snake_case 与 camelCase 双份) + properties: + requestedCount: { type: integer } + deletedCount: { type: integer, description: 仅批量删除 } + updatedCount: { type: integer, description: 仅批量更新 } + missingCount: { type: integer } + failedCount: { type: integer } + deleted: { type: array, items: { type: integer, format: int64 } } + missing: { type: array, items: { type: integer, format: int64 } } + failed: + type: array + items: + type: object + properties: + id: { type: integer, format: int64 } + reason: { type: string } + AuditItem: + type: object + description: 需求 ③ 审计行(snake_case 与 camelCase 双份) + properties: + id: { type: integer, format: int64 } + action: { type: string, enum: [upload, download] } + file_code: { type: string } + file_name: { type: string } + size_bytes: { type: integer, format: int64 } + transferred_bytes: { type: integer, format: int64 } + ip: { type: string } + user_agent: { type: string } + device_os: { type: string } + device_browser: { type: string } + device_type: { type: string } + actor: { type: string, enum: [admin, guest] } + result: { type: string, enum: [success, denied, failed] } + error_msg: { type: string } + duration_ms: { type: integer, format: int64 } + created_at: { type: string } + +security: [] +`,v=Object.assign({"../../../docs/api/00-overview.md":p,"../../../docs/api/01-auth.md":d,"../../../docs/api/02-text-share.md":c,"../../../docs/api/03-file-share.md":l,"../../../docs/api/04-pickup.md":m,"../../../docs/api/05-chunk-upload.md":u,"../../../docs/api/06-presign.md":g,"../../../docs/api/07-admin.md":_,"../../../docs/api/08-audit.md":y,"../../../docs/api/09-storage.md":h,"../../../docs/api/10-config.md":f,"../../../docs/api/11-errors.md":b,"../../../docs/api/12-logo.md":x,"../../../docs/api/13-bandwidth.md":T}),j=["README","share","chunk","presign","admin","audit","errors","config","logo","webdav","env"];function E(n){return(n.split("/").pop()??n).replace(/\.md$/,"")}function k(n,e){const o=/^#\s+(.+)$/m.exec(n);return o?o[1].trim():e}const r=Object.entries(v).map(([n,e])=>{const o=E(n),s=j.indexOf(o);return{slug:o,title:k(e,o),embedded:e,order:s>=0?s:100+o.localeCompare("")}}).sort((n,e)=>n.order-e.order||n.slug.localeCompare(e.slug));r.length>0;const $=Object.assign({"../../../docs/openapi.yaml":S}),C=Object.values($)[0]??null;async function B(n){if(n.embedded!==null)return n.embedded;const{API_BASE:e}=await i(async()=>{const{API_BASE:t}=await import("./index-D7AAbqvI.js").then(a=>a.aD);return{API_BASE:t}},__vite__mapDeps([0,1])),o=`${e}/docs/api/${encodeURIComponent(n.slug)}.md`,s=await fetch(o);if(!s.ok)throw new Error(`文档加载失败(HTTP ${s.status})`);return s.text()}async function I(){try{const{API_BASE:n}=await i(async()=>{const{API_BASE:t}=await import("./index-D7AAbqvI.js").then(a=>a.aD);return{API_BASE:t}},__vite__mapDeps([0,1])),e=await fetch(`${n}/docs/api/index.json`);if(!e.ok)return[];const o=await e.json(),s=new Set(r.map(t=>t.slug));return o.filter(t=>t.slug&&!s.has(t.slug)).map(t=>({slug:t.slug,title:t.title??t.slug,embedded:null,order:200}))}catch{return[]}}export{I as a,r as d,C as e,B as l}; diff --git a/server/web/dist/assets/docsSource-sXvNoXdF.js b/server/web/dist/assets/docsSource-sXvNoXdF.js new file mode 100644 index 0000000..287bd63 --- /dev/null +++ b/server/web/dist/assets/docsSource-sXvNoXdF.js @@ -0,0 +1,2517 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-QLbKGtH7.js","assets/index-CtyCxWf5.css"])))=>i.map(i=>d[i]); +import{ay as i}from"./index-QLbKGtH7.js";const p='# API 概述\n\n文件快传 Go 版(26.9)对外提供一套 REST API,覆盖文本/文件分享、分片上传、\n预签名直传、管理后台与审计日志查询。本文档与 `server/internal/api/` 实际实现逐一对齐,\n交互式规范见站内 `/openapi`(源文件 `docs/openapi.yaml`)。\n\n## Base URL\n\n- 服务默认监听 `:8466`,Base URL 为 `http://:8466`(下文示例统一用 `http://localhost:8466`)。\n- **业务路由挂根路径**(与参考实现一致):`/share/*`、`/chunk/*`、`/presign/*`、`/admin/*`、`/setup`。\n- 仅两个公共接口带 `/api/v1` 前缀:`/api/v1/health`、`/api/v1/config`。\n\n## 统一响应封装\n\n所有 JSON 接口返回统一结构,HTTP 状态码与 `code` 一致;失败时 `data` 缺省:\n\n```json\n{ "code": 200, "msg": "ok", "data": { } }\n```\n\n失败示例(404):\n\n```json\n{ "code": 404, "msg": "文件不存在" }\n```\n\n个别端点直接返回原始内容而非 JSON 封装(文档中已单独标注):\n\n| 端点 | 响应形式 |\n|---|---|\n| `GET /share/select?code=`(文本分享) | `text/plain; charset=utf-8` 正文 |\n| `GET /share/select?code=`(文件分享) | 文件二进制流(200/206,支持 Range) |\n| `GET /share/download?key=&code=`(文件分享) | 文件二进制流(200/206,支持 Range) |\n| `GET /admin/file/download?id=`(文件分享) | 文件二进制流 |\n| `GET /setup` / `POST /setup`(表单) | HTML 向导/成功页 |\n\n## 字段命名约定\n\n- 接口字段以 **snake_case** 为主(`file_code`、`size_bytes`)。\n- 文件列表与审计日志的行字段同时输出 **snake_case 与 camelCase 双份**(如 `expired_at` 与 `expiredAt`),文档以 snake_case 为准,camelCase 仅为前端兼容保留。\n\n## 认证\n\n- 游客接口无需认证;是否允许游客上传由配置 `openUpload` 控制(关闭时上传类接口要求管理员 `Authorization: Bearer `,否则 403)。\n- 管理接口(`/admin/login` 除外)一律要求 `Authorization: Bearer `,无效/缺失返回 401。\n- 详情见《认证与限流》。\n\n## 限流\n\n按 IP(可信代理场景解析 `X-Forwarded-For`)维度限流,超限返回 **423**:\n\n| 规则 | 计数时机 | 默认(次/窗口) | 相关配置 |\n|---|---|---|---|\n| `upload` | **上传成功**后计数 | 10 次 / 1 分钟 | `uploadCount` / `uploadMinute` |\n| `error` | 取件失败(404/过期)时计数 | 10 次 / 1 分钟 | `errorCount` / `errorMinute` |\n| `login` | 登录失败时计数 | 5 次 / 15 分钟 | `loginCount` / `loginMinute` |\n| `metadata` | 每次访问即计数 | 同 `error` | `errorCount` / `errorMinute` |\n\n## 初始化守卫\n\n系统未初始化(未设置管理员密码)时,除 `GET|POST /setup` 与 `GET /api/v1/health` 外,\n**所有接口一律返回 428**:\n\n```json\n{ "code": 428, "msg": "系统未初始化,请先完成初始化" }\n```\n\n首次部署请先访问 `GET /setup` 获取 HTML 向导,或直接 `POST /setup` 完成初始化(见《管理后台 API》初始化章节)。\n\n## 审计\n\n所有上传/下载端点经审计中间件自动落库(操作时间/IP/UA/设备解析/动作/结果/字节数/耗时/角色),\n失败与被拒绝的请求同样记录;管理端经 `GET /admin/audit/list` 查询,详见《审计日志》。\n\n## 端点总览\n\n| 模块 | 端点 |\n|---|---|\n| 公共 | `GET /api/v1/health` · `GET /api/v1/config` · `GET /robots.txt`(输出 `robotsText` 配置) |\n| 初始化 | `GET /setup` · `POST /setup` |\n| 文本分享 | `POST /share/text` |\n| 文件分享 | `POST /share/file` |\n| 查询与取件 | `GET/POST /share/metadata` · `GET /share/select` · `POST /share/select` · `GET /share/download` |\n| 分片上传 | `POST /chunk/upload/init` · `POST /chunk/upload/{uploadID}/{chunkIndex}` · `GET /chunk/upload/status/{uploadID}` · `POST /chunk/upload/complete/{uploadID}` · `DELETE /chunk/upload/{uploadID}` |\n| 预签名直传 | `POST /presign/upload/init` · `PUT /presign/upload/proxy/{uploadID}` · `POST /presign/upload/confirm/{uploadID}` · `GET /presign/upload/status/{uploadID}` · `DELETE /presign/upload/{uploadID}` |\n| 管理后台 | `POST /admin/login` · `GET /admin/verify` · `POST /admin/logout` · `GET /admin/dashboard` · 文件管理 `/admin/file/*` · 配置 `/admin/config/*` · 密码 `/admin/settings/password` |\n| 审计日志 | `GET /admin/audit/list`(别名 `/admin/audit/logs`) |\n\n## 时间与编码\n\n- 时间字段一律 RFC 3339(如 `2025-06-01T12:00:00+08:00`);管理员会话过期时间为 Unix 秒。\n- 请求体支持 `application/json` 与 `application/x-www-form-urlencoded`(上传类为 `multipart/form-data`),文档示例以 JSON/curl 为主。\n- CORS:公开接口放开(Bearer 认证,无 Cookie CSRF 面);**管理端 `/admin/*` 已收紧**——携带 Origin 且既不同源也不在 `site_domain` 白名单时不下发 CORS 头(浏览器拦截跨域读取)。\n\n## 交互式文档\n\n- 站内文档页:`/docs`(渲染本目录 markdown,构建时内嵌)。\n- Swagger UI:`/openapi`(渲染 `docs/openapi.yaml`,构建时内嵌)。\n- OpenAPI 规范源文件为仓库内 `docs/openapi.yaml`;如需经后端直接下载,\n 需在部署时把它拷贝进前端静态产物 `web/dist/`(未拷贝时该路径按 SPA 回退返回页面)。\n',d='# 认证与限流\n\n## 角色\n\n| 角色 | 能力 |\n|---|---|\n| 游客(无 Authorization 头) | 取件、查询元信息;`openUpload=1` 时可上传 |\n| 管理员(`Authorization: Bearer `) | 全部能力 + `/admin/*` 管理接口 |\n\n## 管理员令牌\n\n- 由 `POST /admin/login` 用管理员密码换取,HS256 JWT,默认有效期 **7 天**(`adminSessionExpire`,1~365 整天,26.9 起由 30 天缩短)。\n- 请求头格式:`Authorization: Bearer `。\n- **改密/重置管理员密码会轮换 `jwt_secret`,所有已签发令牌立即失效**(401)。\n- 密码存储为 bcrypt(cost 12);历史 `sha256$`/明文格式在登录成功后自动升级重哈希,无需手动迁移。\n- 游客上传关闭(`openUpload=0`)时,上传类接口也可用管理员 Bearer 令牌通过鉴权。\n\n## 认证失败语义\n\n| 场景 | 状态码 |\n|---|---|\n| `/admin/*` 缺失/无效令牌 | 401 |\n| `POST /admin/login` 密码错误 | 401(并计入 login 限流) |\n| 游客上传被关闭且未携带有效令牌 | 403 |\n| 代理下载 `key` 校验失败 | 403 |\n\n## 未初始化(428)\n\n管理员密码未设置(`admin_token` 为空)时,除 `GET|POST /setup` 与 `GET /api/v1/health` 外全部接口返回 428。\n完成 `POST /setup` 初始化后自动解除。\n\n## 限流规则\n\n限流按 **客户端 IP** 维度(配置 `FCB_TRUSTED_PROXIES` 声明可信代理 CIDR,命中时解析 `X-Forwarded-For` 取真实 IP),\n窗口计数原子化存储于缓存(未配置 Redis 时为进程内存)。**超限一律返回 423**:\n\n```json\n{ "code": 423, "msg": "请求次数过多,请稍后再试" }\n```\n\n| 规则 | 生效端点 | 计数时机 | 默认 | 配置键 |\n|---|---|---|---|---|\n| `upload` | `/share/text`、`/share/file`、`/chunk/upload/*`、`/presign/upload/*` | **成功后**计数(进入时仅检查) | 10 次 / 1 分钟 | `uploadCount`、`uploadMinute` |\n| `error` | `/share/select`、`/share/download` | 取件失败(不存在/过期/鉴权失败)时计数 | 10 次 / 1 分钟 | `errorCount`、`errorMinute` |\n| `login` | `/admin/login` | 登录失败时计数 | 5 次 / 15 分钟 | `loginCount`、`loginMinute` |\n| `metadata` | `/share/metadata` | **每次访问即计数**(含失败) | 同 `error` | `errorCount`、`errorMinute` |\n\n- 规则值可由管理端 `PATCH /admin/config/update` 运行时修改,立即生效(无需重启)。\n- 取件成功(`/share/select`、`/share/download`)不计入 `error` 限流。\n\n## 代理下载令牌(key)\n\n`GET /share/download` 的 `key` 由服务端按窗口生成:\n`sha256(code + timeFactor + "000" + jwt_secret)`,`timeFactor = unix秒 / 1000`(约 16.7 分钟一个窗口)。\n服务端**同时接受当前与上一窗口**的令牌,避免窗口边界竞态。令牌通过 `POST /share/select` 的响应\n`download_url` 下发,客户端不应自行构造。\n\n## 示例\n\n登录获取令牌:\n\n```bash\ncurl -s http://localhost:8466/admin/login \\\n -H \'Content-Type: application/json\' \\\n -d \'{"password":"your-admin-password"}\'\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "id": "admin", "username": "admin",\n "token": "eyJhbGciOiJIUzI1NiIs...",\n "token_type": "Bearer",\n "expires_at": 1750000000,\n "expires_in": 604800\n }\n}\n```\n\n携带令牌调用管理接口:\n\n```bash\nTOKEN="eyJhbGciOiJIUzI1NiIs..."\ncurl -s http://localhost:8466/admin/dashboard -H "Authorization: Bearer $TOKEN"\n```\n\n校验令牌是否有效:\n\n```bash\ncurl -s http://localhost:8466/admin/verify -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": { "id": "admin", "username": "admin", "token": "eyJhbGciOiJIUzI1NiIs...", "token_type": "Bearer", "expires_at": 1750000000 }\n}\n```\n\n令牌失效时:\n\n```json\n{ "code": 401, "msg": "令牌无效或已过期" }\n```\n',c='# 文本分享\n\n创建纯文本分享,返回取件码。文本大小上限 **222KB**(超限建议改用文件分享);请求体全局上限 1MiB,`Content-Length` >441KB 时读前直接 403。\n经审计中间件落库(action=upload)。\n\n## POST /share/text\n\n**请求参数**(`application/x-www-form-urlencoded`,亦支持 multipart;`text` 为必需):\n\n| 参数 | 类型 | 必需 | 默认 | 说明 |\n|---|---|---|---|---|\n| `code` | string,可选;自定义提取码,5-8 位字母或数字(空=随机生成;占用 400「该提取码已被占用」) |\n| `text` | string | ✅ | - | 文本内容(≤222KB,按 UTF-8 字节数) |\n| `expire_value` | int | ❌ | `1` | 过期值(配合 `expire_style`) |\n| `expire_style` | string | ❌ | `day` | `day`/`hour`/`minute`/`count`/`forever`(须在站点允许列表内) |\n\n过期语义:\n\n- `day`/`hour`/`minute`:按时间过期,`expired_count = -1`。\n- `count`:按次数过期,取件 `expire_value` 次后失效(`expired_count = expire_value`);\n **v2 需求 ④**:`max_save_count>0` 时 `expire_value` 不得超出该上限,超限 403。\n- `forever`:永久(需站点允许;`max_save_seconds>0` 时其他方式受最长保存上限约束,超限 403)。\n\n> 可选值与上限来自公开配置 `GET /api/v1/config`(`expireStyle`、`max_save_seconds`、\n> `max_save_count`),上传页动态读取并在范围内选择;管理端改策略后立即生效。\n\n**curl 示例**:\n\n```bash\n# 自定义提取码(可选):-d \'code=MYCODE1\'\ncurl -s -X POST http://localhost:8466/share/text \\\n -d \'text=你好,文件快传\' \\\n -d \'expire_value=1\' \\\n -d \'expire_style=day\'\n```\n\n**成功响应**(200):\n\n```json\n{ "code": 200, "msg": "ok", "data": { "code": "8XQ2M" } }\n```\n\n`data.code` 为 5 位取件码(数字或大写字母+数字,取决于 `code_generate_type`)。\n\n**错误响应**:\n\n```json\n{ "code": 400, "msg": "过期时间类型错误" }\n```\n\n```json\n{ "code": 400, "msg": "过期时间值必须大于 0" }\n```\n\n```json\n{ "code": 403, "msg": "内容过多,建议采用文件形式" }\n```\n\n```json\n{ "code": 403, "msg": "限制最长时间为 7天,可换用其他方式" }\n```\n\n```json\n{ "code": 403, "msg": "限制次数最多为 5 次" }\n```\n\n```json\n{ "code": 423, "msg": "请求次数过多,请稍后再试" }\n```\n\n> 游客上传关闭(`openUpload=0`)时需携带管理员令牌,否则 403:\n> `{"code":403,"msg":"本站未开启游客上传,如需上传请先登录后台"}`\n\n## 取回文本\n\n文本分享的取回走统一的取件接口(消耗次数):\n\n- `GET /share/select?code=` → `text/plain` 正文即文本内容(响应头 `Content-Disposition` 带文件名,无扩展名时为 `.txt`)。\n- `POST /share/select`(`{"code":"8XQ2M"}`)→ JSON,`data.text` / `data.content` 为文本内容。\n\n示例:\n\n```bash\ncurl -s "http://localhost:8466/share/select?code=8XQ2M"\n```\n\n```text\n你好,文件快传\n```\n\n**v3.1 变更**:① 支持 JSON 提交(`Content-Type: application/json`,字段同名);② 空文本 400「分享内容不能为空」;③ 可选 `code` 自定义提取码(5-8 位字母数字,占用 400)。\n',l='# 文件分享\n\n上传单个文件并创建分享。支持扩展名/MIME 白名单 + **magic bytes 防伪**(读文件前 64 字节校验,\n伪造类型返回 403)。经审计中间件落库(action=upload,记录文件总大小与实际传输字节)。\n\n## POST /share/file\n\n**请求参数**(`multipart/form-data`):\n\n| 参数 | 类型 | 必需 | 默认 | 说明 |\n|---|---|---|---|---|\n| `code` | string,可选;自定义提取码,5-8 位字母或数字(空=随机生成;占用 400) |\n| `file` | file | ✅ | - | 上传的文件(大小 ≤ 生效上限:`max_file_size>0` 时为其,否则 `uploadSize`) |\n| `expire_value` | int | ❌ | `1` | 过期值(配合 `expire_style`;`count` 型受 `max_save_count` 约束) |\n| `expire_style` | string | ❌ | `day` | `day`/`hour`/`minute`/`count`/`forever`(须在 `expireStyle` 白名单内) |\n\n**curl 示例**:\n\n```bash\ncurl -s -X POST http://localhost:8466/share/file \\\n -F \'file=@./report.pdf;type=application/pdf\' \\\n -F \'expire_value=7\' \\\n -F \'expire_style=day\'\n```\n\n**成功响应**(200):\n\n```json\n{ "code": 200, "msg": "ok", "data": { "code": "K3P9W", "name": "report.pdf" } }\n```\n\n**错误响应**:\n\n```json\n{ "code": 400, "msg": "缺少上传文件 file 字段" }\n```\n\n```json\n{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" }\n```\n\n> 大小上限为动态策略(v2 需求 ④⑩):管理端改 `max_file_size`(0=回落 `uploadSize`)后\n> **下一次上传立即按新上限执行**,无需重启;上限值可经 `GET /api/v1/config` 的\n> `max_file_size`/`maxFileSize` 字段读取。\n\n```json\n{ "code": 403, "msg": "不允许上传该类型文件" }\n```\n\n```json\n{ "code": 403, "msg": "文件内容与扩展名不匹配,疑似伪造类型" }\n```\n\n```json\n{ "code": 403, "msg": "限制最长时间为 7天,可换用其他方式" }\n```\n\n```json\n{ "code": 403, "msg": "限制次数最多为 5 次" }\n```\n\n```json\n{ "code": 403, "msg": "请求次数过多,请稍后再试" }\n```\n\n```json\n{ "code": 507, "msg": "存储空间已达到管理员设置的容量上限" }\n```\n\n```json\n{ "code": 503, "msg": "存储服务不可用,请稍后再试" }\n```\n\n## 文件类型白名单\n\n由配置 `allowed_file_types` 控制(管理端可改):\n\n- `*`:不限制(默认)。\n- 扩展名规则:`.png`、`pdf`(自动补点)等,按文件名后缀匹配。\n- MIME 规则:`image/*`、`application/pdf` 等,按请求 `Content-Type` 通配匹配。\n\n已知类型(png/jpg/gif/webp/bmp/pdf/zip/rar/7z/gz/mp3/mp4/exe/elf)会做 **magic bytes 交叉校验**:\n扩展名或 Content-Type 声明了已知类型,但文件头不匹配时拒绝(403「疑似伪造类型」)。\n\n## 下载取件\n\n- `GET /share/select?code=`:消耗 1 次取件,返回文件流(`200` 全量 / `206` 区间,\n 支持 `Range` 请求头;响应含 `Accept-Ranges: bytes`、`Content-Disposition: attachment; filename*=UTF-8\'\'...`)。\n- `POST /share/select`:返回详情 JSON,`download_url` 为代理下载地址(见下)。\n- `GET /share/download?key=&code=`:代理下载,消耗 1 次,同样支持 Range。\n\nRange 示例(取前 1024 字节):\n\n```bash\ncurl -s -H \'Range: bytes=0-1023\' -o part.bin \\\n "http://localhost:8466/share/select?code=K3P9W"\n```\n\n区间越界返回:\n\n```json\n{ "code": 416, "msg": "请求范围超出文件大小" }\n```\n',m=`# 分享查询与取件 + +查询分享元信息(不消耗次数)与真正取件(消耗次数)的完整接口。 +除 \`metadata\` 每次 423 限流计数外,取件失败还会计入 \`error\` 限流。 + +## 元信息:GET /share/metadata + +按取件码查询元信息,**不消耗次数**。每次访问即计入 \`metadata\` 限流。 + +**参数**:\`code\`(query,必需)。 + +\`\`\`bash +curl -s "http://localhost:8466/share/metadata?code=K3P9W" +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "code": "K3P9W", + "name": "report.pdf", + "size": 1048576, + "type": "file", + "is_text": false, + "created_at": "2025-06-01T12:00:00+08:00", + "expired_at": "2025-06-08T12:00:00+08:00", + "expires_at": "2025-06-08T12:00:00+08:00", + "expired_count": -1, + "used_count": 3, + "remaining_downloads": null + } +} +\`\`\` + +字段说明: + +| 字段 | 说明 | +|---|---| +| \`type\` | \`text\`(文本分享)/ \`file\`(文件分享) | +| \`is_text\` | 是否文本分享 | +| \`size\` | 字节数 | +| \`expired_at\` / \`expires_at\` | 过期时间(RFC 3339);永久分享为 \`null\` | +| \`expired_count\` | \`-1\` 按时间/永久;\`>0\` 剩余可取次数(原始限额) | +| \`used_count\` | 已取次数 | +| \`remaining_downloads\` | 剩余可取次数(仅次数型分享有值,否则 \`null\`) | + +> 不返回存储路径等敏感字段。 + +**错误响应**: + +\`\`\`json +{ "code": 404, "msg": "文件不存在" } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "文件已过期" } +\`\`\` + +## 元信息(POST):POST /share/metadata + +等价的 JSON 版本(\`code\` 放请求体): + +\`\`\`bash +curl -s -X POST http://localhost:8466/share/metadata \\ + -H 'Content-Type: application/json' \\ + -d '{"code":"K3P9W"}' +\`\`\` + +响应与 GET 版本一致。 + +## 取件(消耗次数):GET /share/select + +**每调用一次消耗 1 次取件**(次数型分享扣减 \`expired_count\`;时间型扣减不计)。 + +- 文本分享:返回 \`text/plain; charset=utf-8\` 正文(非 JSON 封装),\`Content-Disposition\` 携带文件名。 +- 文件分享:返回文件流(\`200\` 全量 / \`206\` 区间),支持 \`Range\`。 + +\`\`\`bash +curl -s -OJ "http://localhost:8466/share/select?code=K3P9W" +\`\`\` + +次数耗尽或已过期: + +\`\`\`json +{ "code": 404, "msg": "文件已过期" } +\`\`\` + +超限(计入 error 限流): + +\`\`\`json +{ "code": 423, "msg": "请求次数过多,请稍后再试" } +\`\`\` + +## 取件详情:POST /share/select + +返回元信息 + 文本内容/下载地址的 JSON 详情。**消耗语义**:次数型分享(\`expired_count >= 0\`) +返回代理地址 \`download_url\` 且本次**不消耗**(消耗发生在访问代理地址时);时间型/永久/文本分享在本次消耗。 + +\`\`\`bash +curl -s -X POST http://localhost:8466/share/select \\ + -H 'Content-Type: application/json' \\ + -d '{"code":"K3P9W"}' +\`\`\` + +**文件分享响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "code": "K3P9W", + "name": "report.pdf", + "size": 1048576, + "type": "file", + "is_text": false, + "created_at": "2025-06-01T12:00:00+08:00", + "expired_at": "2025-06-08T12:00:00+08:00", + "expires_at": "2025-06-08T12:00:00+08:00", + "expired_count": -1, + "used_count": 4, + "remaining_downloads": null, + "text": "/share/download?key=9f2c…&code=K3P9W", + "download_url": "/share/download?key=9f2c…&code=K3P9W" + } +} +\`\`\` + +> S3 引擎下时间型/永久分享的 \`download_url\` 可能是预签名直链(1 小时有效)而非代理地址; +> 次数型分享恒为代理地址 \`"/share/download?key=…&code=…"\`。 + +**文本分享响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "code": "8XQ2M", "name": "Text.txt", "size": 24, "type": "text", "is_text": true, + "created_at": "2025-06-01T12:00:00+08:00", + "expired_at": "2025-06-02T12:00:00+08:00", "expires_at": "2025-06-02T12:00:00+08:00", + "expired_count": -1, "used_count": 1, "remaining_downloads": null, + "text": "你好,文件快传", + "content": "你好,文件快传", + "download_url": null + } +} +\`\`\` + +## 代理下载:GET /share/download + +\`POST /share/select\` 返回的代理地址,**每次访问消耗 1 次**,支持 Range。 + +| 参数 | 说明 | +|---|---| +| \`key\` | 窗口令牌(服务端下发,双窗口校验) | +| \`code\` | 取件码 | + +\`\`\`bash +curl -s -OJ "http://localhost:8466/share/download?key=9f2c…&code=K3P9W" +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 403, "msg": "下载鉴权失败" } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "文件已过期" } +\`\`\` + +> \`key\` 鉴权失败会计入 error 限流;文本分享经该接口返回 JSON 封装 \`data\` 为文本内容。 +`,u=`# 分片上传 + +大文件分片上传:客户端把文件切成固定大小的分片逐个上传,服务端按索引合并并做 SHA256 校验。 +支持**断点续传**(相同 \`file_hash\` + 大小 + 文件名的未完成会话自动续传)。 +需站点开启 \`enableChunk\`(公共配置 \`enableChunk\` 返回 \`true\`)。 +分片会话保留 24 小时。全部端点经审计中间件落库(action=upload)。 + +## 上传流程 + +\`\`\`text +POST /chunk/upload/init → upload_id, total_chunks +POST /chunk/upload/{id}/{index} → 逐片上传(0 起,可并发) +GET /chunk/upload/status/{id} → 断点续传时查进度 +POST /chunk/upload/complete/{id} → 合并 + SHA256 → 取件码 +DELETE /chunk/upload/{id} → 取消(可选) +\`\`\` + +## 初始化:POST /chunk/upload/init + +**请求体**(JSON,亦兼容表单): + +| 参数 | 类型 | 必需 | 默认 | 说明 | +|---|---|---|---|---| +| \`file_name\` | string | ✅ | - | 文件名(会做清理与白名单校验) | +| \`file_size\` | int | ✅ | - | 文件总字节数(>0;服务端按分片数校验上限) | +| \`chunk_size\` | int | ❌ | \`5242880\`(5MB) | 每片大小(字节),硬上限 32MiB(超出 400「chunk_size 过大」) | +| \`file_hash\` | string | ❌ | - | 整文件 SHA256(断点续传的匹配键) | + +**curl 示例**: + +\`\`\`bash +curl -s -X POST http://localhost:8466/chunk/upload/init \\ + -H 'Content-Type: application/json' \\ + -d '{"file_name":"movie.mp4","file_size":15728640,"chunk_size":5242880,"file_hash":""}' +\`\`\` + +**成功响应**(200,新建会话): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "existed": false, + "upload_id": "3f6b8c2a4d5e6f708192a3b4c5d6e7f8", + "chunk_size": 5242880, + "total_chunks": 3, + "uploaded_chunks": [] + } +} +\`\`\` + +**断点续传响应**(200,命中未完成会话):返回既有会话,\`uploaded_chunks\` 为已传分片索引列表, +客户端只需补传缺失分片(注意:\`existed\` 字段恒为 \`false\`,是否续传以 \`upload_id\` 复用且 +\`uploaded_chunks\` 非空为准): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "existed": false, + "upload_id": "3f6b8c2a4d5e6f708192a3b4c5d6e7f8", + "chunk_size": 5242880, + "total_chunks": 3, + "uploaded_chunks": [0, 1] + } +} +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 400, "msg": "file_size 必须大于 0" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "分片上传未启用" } +\`\`\` + +## 上传分片:POST /chunk/upload/{uploadID}/{chunkIndex} + +主路径(与参考实现语义一致)。\`chunkIndex\` 从 \`0\` 起。 + +**multipart 字段**:\`chunk\`(必需,该分片的二进制数据)。 + +**curl 示例**: + +\`\`\`bash +split -b 5242880 movie.mp4 part- # 本地分片 +curl -s -X POST http://localhost:8466/chunk/upload/3f6b8c2a4d5e6f708192a3b4c5d6e7f8/0 \\ + -F 'chunk=@./part-aa' +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "chunk_hash": "9af1…", "chunk_index": 0 } } +\`\`\` + +重复上传已完成的分片(幂等跳过): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "chunk_hash": "9af1…", "chunk_index": 0, "skipped": true } } +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 404, "msg": "上传会话不存在" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "无效的分片索引" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "分片大小超过声明值: 最大 5242880, 实际 5300000" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "缺少分片文件字段 chunk" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +> 约束:单分片 ≤ \`chunk_size\`(init 声明值)且 ≤ **32MiB 硬上限**(init 时 \`chunk_size>33554432\` 直接 400「chunk_size 过大」); +> 总大小(init 按分片数上限、上传/合并按累计)受**动态策略上限**约束——\`max_file_size>0\` 时为其, +> 否则回落 \`uploadSize\`(v2 需求 ④⑩,管理端改后立即生效,超限清理会话);首个分片做 magic bytes +> 防伪校验(403「文件内容校验失败:…」)。分片哈希由服务端计算;合并时与分片记录交叉校验,不一致报 400。 +> +> **enableChunk 开关**:管理端关闭分片上传后,\`/chunk/upload/*\` 全部端点返回 403「分片上传未启用」(后端强制,前端仅隐藏入口)。 + +## 查询进度:GET /chunk/upload/status/{uploadID} + +\`\`\`bash +curl -s http://localhost:8466/chunk/upload/status/3f6b8c2a4d5e6f708192a3b4c5d6e7f8 +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "upload_id": "3f6b8c2a4d5e6f708192a3b4c5d6e7f8", + "file_name": "movie.mp4", + "file_size": 15728640, + "chunk_size": 5242880, + "total_chunks": 3, + "uploaded_chunks": [0, 1], + "progress": 66.66666666666667 + } +} +\`\`\` + +## 完成合并:POST /chunk/upload/complete/{uploadID} + +全部分片到齐后调用。服务端按索引有序合并 + SHA256 校验,成功后创建分享并清理分片。 + +**请求体**(JSON,亦兼容表单): + +| 参数 | 类型 | 必需 | 默认 | 说明 | +|---|---|---|---|---| +| \`expire_value\` | int | ❌ | \`1\` | 过期值 | +| \`expire_style\` | string | ❌ | \`day\` | 过期方式(同文件分享) | + +\`\`\`bash +curl -s -X POST http://localhost:8466/chunk/upload/complete/3f6b8c2a4d5e6f708192a3b4c5d6e7f8 \\ + -H 'Content-Type: application/json' \\ + -d '{"expire_value":1,"expire_style":"day"}' +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "code": "R7T2K", "name": "movie.mp4" } } +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 400, "msg": "分片不完整" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "分片哈希校验失败,请重新上传" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +## 取消上传:DELETE /chunk/upload/{uploadID} + +清理分片文件与上传记录,释放容量预留。 + +\`\`\`bash +curl -s -X DELETE http://localhost:8466/chunk/upload/3f6b8c2a4d5e6f708192a3b4c5d6e7f8 +\`\`\` + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "message": "上传已取消" } } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "上传会话不存在" } +\`\`\` +`,g=`# 预签名直传 + +服务端预生成上传地址,客户端直接向存储引擎(或服务端代理)上传文件,最后确认建分享。 +两种模式: + +| 模式 | 引擎 | 上传方式 | +|---|---|---| +| \`direct\` | S3(含 MinIO/R2 等 S3 兼容存储) | 客户端 \`PUT\` 到预签名 URL,直连对象存储 | +| \`proxy\` | 本地 / WebDAV | 客户端 \`PUT\` multipart 到服务端代理接口 | + +> 本地 / WebDAV 引擎不支持预签名直链,init 返回正常 \`proxy\` 模式(仅当引擎预签名调用本身异常时才报错)。 +> 会话有效期 **900 秒**(15 分钟)。proxy 模式响应另含 \`legacy_proxy_upload_url\` +> (\`/api\` 前缀的兼容别名,已废弃,与 \`upload_url\` 等价)。 +> 全部端点经审计中间件落库(action=upload)。 + +## 上传流程 + +\`\`\`text +direct 模式: +POST /presign/upload/init → upload_url(S3 预签名 PUT) +PUT → 客户端直传 S3(无认证头) +POST /presign/upload/confirm/{id} → 确认 → 取件码 + +proxy 模式: +POST /presign/upload/init → upload_url = /presign/upload/proxy/{id} +PUT /presign/upload/proxy/{id} → multipart 上传,服务端转存并直接建分享 +\`\`\` + +## 初始化:POST /presign/upload/init + +**请求体**(JSON,亦兼容表单): + +| 参数 | 类型 | 必需 | 默认 | 说明 | +|---|---|---|---|---| +| \`file_name\` | string | ✅ | - | 文件名(清理 + 白名单校验) | +| \`file_size\` | int | ✅ | - | 文件字节数(≤ 生效上限:\`max_file_size>0\` 时为其,否则 \`uploadSize\`) | +| \`expire_value\` | int | ❌ | \`1\` | 过期值(\`count\` 型受 \`max_save_count\` 约束) | +| \`expire_style\` | string | ❌ | \`day\` | 过期方式(须在 \`expireStyle\` 白名单内) | + +**curl 示例**: + +\`\`\`bash +curl -s -X POST http://localhost:8466/presign/upload/init \\ + -H 'Content-Type: application/json' \\ + -d '{"file_name":"backup.zip","file_size":20971520,"expire_value":7,"expire_style":"day"}' +\`\`\` + +**S3(direct)成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "upload_id": "6a1e…", + "upload_url": "https://minio:9000/fileshare/share/data/2025/06/01/6a1e…/backup.zip?X-Amz-…", + "mode": "direct", + "expires_in": 900, + "file_path": "share/data/2025/06/01/6a1e…" + } +} +\`\`\` + +**local/WebDAV(proxy)成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "upload_id": "6a1e…", + "upload_url": "/presign/upload/proxy/6a1e…", + "proxy_upload_url": "/presign/upload/proxy/6a1e…", + "mode": "proxy", + "expires_in": 900, + "file_path": "share/data/2025/06/01/6a1e…" + } +} +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +> 大小上限为动态策略(v2 需求 ④⑩):管理端改 \`max_file_size\`(0=回落 \`uploadSize\`)后 +> 立即按新上限校验 init 声明的 \`file_size\`。 + +\`\`\`json +{ "code": 403, "msg": "不允许上传该类型文件" } +\`\`\` + +\`\`\`json +{ "code": 507, "msg": "存储空间已达到管理员设置的容量上限" } +\`\`\` + +## 直传确认:POST /presign/upload/confirm/{uploadID} + +\`direct\` 模式专用:客户端向 S3 \`PUT\` 完成后调用。服务端会核对实际对象(多引擎一致): + +- **大小核对**:实际大小与声明差 >1KB → 400「文件大小与声明不符」;超过策略上限(\`max_file_size\`)→ **删除对象、释放容量预留**并 403; +- **内容校验**:取对象前 64 字节做 magic bytes 白名单校验(失败删除对象并报错); +- 全部通过后创建分享记录。 + +\`\`\`bash +# 1) 直传 S3(注意:不要带 Authorization 头,预签名 URL 自带鉴权) +curl -X PUT "" --upload-file ./backup.zip +# 2) 确认 +curl -s -X POST http://localhost:8466/presign/upload/confirm/6a1e… +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "code": "B4N8Q", "name": "backup.zip" } } +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 404, "msg": "文件未上传或上传失败" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "文件大小与声明不符" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "文件大小超过限制" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "此会话不支持direct模式" } +\`\`\` + +## 代理上传:PUT /presign/upload/proxy/{uploadID} + +\`proxy\` 模式专用:multipart 上传到服务端,服务端流式转存到存储引擎后立即创建分享记录。 + +**multipart 字段**:\`file\`(必需)。 + +**curl 示例**: + +\`\`\`bash +curl -s -X PUT http://localhost:8466/presign/upload/proxy/6a1e… -F 'file=@./backup.zip' +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "code": "B4N8Q", "name": "backup.zip" } } +\`\`\` + +**错误响应**: + +\`\`\`json +{ "code": 400, "msg": "缺少上传文件 file 字段" } +\`\`\` + +\`\`\`json +{ "code": 400, "msg": "文件大小与声明不符" } +\`\`\` + +\`\`\`json +{ "code": 403, "msg": "大小超过限制,最大为10.00 MB" } +\`\`\` + +> 文件实际大小须与 init 声明的 \`file_size\` 一致(±1KB 容差);成功后会话即删除,不可重复使用。 + +## 查询会话:GET /presign/upload/status/{uploadID} + +\`\`\`bash +curl -s http://localhost:8466/presign/upload/status/6a1e… +\`\`\` + +**成功响应**(200): + +\`\`\`json +{ + "code": 200, "msg": "ok", + "data": { + "upload_id": "6a1e…", + "file_name": "backup.zip", + "file_size": 20971520, + "mode": "proxy", + "created_at": "2025-06-01T12:00:00+08:00", + "expires_at": "2025-06-01T12:15:00+08:00", + "is_expired": false + } +} +\`\`\` + +## 取消会话:DELETE /presign/upload/{uploadID} + +删除会话并释放容量预留;\`direct\` 模式会尽力清理已直传到 S3 的对象。 + +\`\`\`bash +curl -s -X DELETE http://localhost:8466/presign/upload/6a1e… +\`\`\` + +\`\`\`json +{ "code": 200, "msg": "ok", "data": { "message": "上传会话已取消" } } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "上传会话不存在" } +\`\`\` + +\`\`\`json +{ "code": 404, "msg": "上传会话已过期" } +\`\`\` +`,_='# 管理后台 API\n\n管理端接口:除 `POST /admin/login` 与初始化向导 `/setup` 外,一律要求\n`Authorization: Bearer `(见《认证与限流》),无效令牌 401。\n\n## 初始化向导:GET /setup\n\n未初始化时返回 HTML 配置页(站点名称、管理员密码、上传/限流/保存策略);\n已初始化时 `303` 重定向到 `/`。\n\n```bash\ncurl -i http://localhost:8466/setup\n```\n\n## 初始化提交:POST /setup\n\n表单(浏览器向导)或 JSON 均可;成功后写入库配置 KV 并生成密码哈希与 `jwt_secret`。\n表单提交返回成功 HTML 页;JSON 提交返回 JSON。\n\n**主要字段**:\n\n| 字段 | 必需 | 默认 | 说明 |\n|---|---|---|---|\n| `admin_password` | ✅ | - | 管理员密码(≥8 位) |\n| `confirm_password` | ✅ | - | 确认密码(须一致) |\n| `site_name` | ❌ | 文件快传 | 站点名称 |\n| `upload_size_value` / `upload_size_unit` | ❌ | 10 / MB | 单文件大小限制(单位 KB/MB/GB) |\n| `save_time_value` / `save_time_unit` | ❌ | 0 / day | 最长保存秒数(0=不限) |\n| `expireStyle` | ❌ | day,hour,minute,forever,count | 过期方式(可多值/逗号分隔) |\n| `code_generate_type` | ❌ | secret | 取件码类型 `number`/`secret` |\n| `errorCount` / `errorMinute` | ❌ | 10 / 1 | 取件错误限流 |\n| `loginCount` / `loginMinute` | ❌ | 5 / 15 | 登录失败限流 |\n| `uploadCount` / `uploadMinute` | ❌ | 10 / 1 | 上传限流 |\n| `allowed_file_types` | ❌ | `*` | 逗号分隔白名单 |\n| `openUpload` / `enableChunk` | ❌ | 1 / 0 | 游客上传 / 分片开关(`1`/`true`/`on`/`yes`) |\n\n```bash\ncurl -s -X POST http://localhost:8466/setup \\\n -H \'Content-Type: application/json\' \\\n -d \'{"admin_password":"admin12345","confirm_password":"admin12345","site_name":"我的文件柜","upload_size_value":10,"upload_size_unit":"MB"}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true, "admin": "/#/admin" } }\n```\n\n**错误响应**(400,HTML 表单时内嵌错误提示):\n\n```json\n{ "code": 400, "msg": "管理员密码至少 8 位" }\n```\n\n## 登录:POST /admin/login\n\n```bash\ncurl -s -X POST http://localhost:8466/admin/login \\\n -H \'Content-Type: application/json\' \\\n -d \'{"password":"admin12345"}\'\n```\n\n**成功响应**(200):\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "id": "admin", "username": "admin",\n "token": "eyJhbGciOiJIUzI1NiIs...",\n "token_type": "Bearer",\n "expires_at": 1750000000,\n "expires_in": 604800\n }\n}\n```\n\n**错误响应**:\n\n```json\n{ "code": 401, "msg": "密码错误" }\n```\n\n```json\n{ "code": 423, "msg": "请求次数过多,请稍后再试" }\n```\n\n## 校验会话:GET /admin/verify\n\n```bash\ncurl -s http://localhost:8466/admin/verify -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "id": "admin", "username": "admin", "token": "eyJ…", "token_type": "Bearer", "expires_at": 1750000000 } }\n```\n\n## 登出:POST /admin/logout\n\n无状态 JWT,服务端仅返回确认(客户端应丢弃令牌):\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true } }\n```\n\n## 仪表盘:GET /admin/dashboard\n\n```bash\ncurl -s http://localhost:8466/admin/dashboard -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "totalFiles": 42,\n "storageUsed": "123456789",\n "sysUptime": 1750000000000,\n "yesterdayCount": 5, "yesterdaySize": "1048576",\n "todayCount": 12, "todaySize": "5242880",\n "activeCount": 40, "expiredCount": 2,\n "textCount": 10, "fileCount": 32, "chunkedCount": 3,\n "usedCount": 156,\n "storageBackend": "local",\n "uploadSizeLimit": 10485760,\n "openUpload": 1, "enableChunk": 1,\n "maxSaveSeconds": 0,\n "topSuffixes": [ { "suffix": ".pdf", "count": 12 }, { "suffix": "Text", "count": 10 } ],\n "recentFiles": [ { "id": 42, "code": "K3P9W", "name": "report.pdf", "size": 1048576, "created_at": "2025-06-01T12:00:00+08:00", "expired_at": "2025-06-08T12:00:00+08:00", "is_expired": false, "expired_count": -1, "used_count": 3, "is_text": false, "is_chunked": false, "is_permanent": false, "has_download_limit": false, "remaining_downloads": null, "file_hash": null, "prefix": "report", "suffix": ".pdf", "text": false, "createdAt": "2025-06-01T12:00:00+08:00", "expiredAt": "2025-06-08T12:00:00+08:00", "isExpired": false, "expiredCount": -1, "usedCount": 3, "isText": false, "isChunked": false, "isPermanent": false, "hasDownloadLimit": false, "remainingDownloads": null, "fileHash": null } ],\n "recentActivities": []\n }\n}\n```\n\n> `storageUsed`/`todaySize`/`yesterdaySize` 为字符串字节数;`sysUptime` 为服务启动时刻的 Unix 毫秒。\n\n## 文件列表:GET /admin/file/list\n\n**参数**:\n\n| 参数 | 默认 | 说明 |\n|---|---|---|\n| `page` / `size` | 1 / 10 | 分页(size 1~100) |\n| `keyword` | - | 模糊匹配取件码/文件名/哈希/文本内容 |\n| `status` | - | `active` / `expired` |\n| `type` | - | `text` / `file` / `chunked` |\n| `sortBy` | `created_at` | `created_at`/`expired_at`/`name`/`size`/`used_count`/`code` |\n| `sortOrder` | `desc` | `asc` / `desc` |\n\n```bash\ncurl -s "http://localhost:8466/admin/file/list?page=1&size=10&status=active&sortBy=size&sortOrder=desc" \\\n -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "page": 1, "size": 10, "total": 40,\n "summary": { "totalFiles": 42, "activeCount": 40, "expiredCount": 2, "textCount": 10, "fileCount": 32, "chunkedCount": 3, "storageUsed": 123456789, "usedCount": 156 },\n "data": [\n { "id": 42, "code": "K3P9W", "name": "report.pdf", "prefix": "report", "suffix": ".pdf", "size": 1048576, "is_text": false, "is_chunked": false, "is_expired": false, "expired_at": "2025-06-08T12:00:00+08:00", "expired_count": -1, "used_count": 3, "created_at": "2025-06-01T12:00:00+08:00", "has_download_limit": false, "is_permanent": false, "remaining_downloads": null, "file_hash": null, "text": false, "isText": false, "isChunked": false, "isExpired": false, "expiredAt": "2025-06-08T12:00:00+08:00", "expiredCount": -1, "usedCount": 3, "createdAt": "2025-06-01T12:00:00+08:00", "hasDownloadLimit": false, "isPermanent": false, "remainingDownloads": null, "fileHash": null }\n ]\n }\n}\n```\n\n## 文件详情:GET /admin/file/detail\n\n`GET ?id=42` 或 `POST {"id":42}`。返回列表条目字段;文本分享额外含 `content`(全文)。\n\n```json\n{ "code": 200, "msg": "ok", "data": { "id": 42, "code": "K3P9W", "name": "report.pdf", "size": 1048576, "is_text": false, "expired_at": "2025-06-08T12:00:00+08:00", "expired_count": -1, "used_count": 3, "created_at": "2025-06-01T12:00:00+08:00", "file_hash": null } }\n```\n\n```json\n{ "code": 404, "msg": "文件不存在" }\n```\n\n## 更新文件:PATCH /admin/file/update\n\n更新取件码/文件名(前后缀)/过期策略。**PATCH 为主名,POST 为兼容别名**。\n\n**请求体**:\n\n| 字段 | 类型 | 说明 |\n|---|---|---|\n| `id` | int | 必需 |\n| `code` | string | 新取件码(冲突 400「code已存在」) |\n| `prefix` / `suffix` | string | 文件名前后缀 |\n| `expired_at` | string | 过期时间(ISO 8601,如 `2025-07-01T00:00:00+08:00`) |\n| `expired_count` | int | 取件次数上限(`-1` 按时间/永久) |\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/file/update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"id":42,"expired_at":"2025-07-01T00:00:00+08:00","expired_count":10}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": "更新成功" }\n```\n\n```json\n{ "code": 400, "msg": "code已存在" }\n```\n\n## 删除文件:DELETE /admin/file/delete\n\n删除分享记录并连带删除存储文件(文本分享无存储文件)。`DELETE` 或 `POST`,请求体 `{"id":42}`。\n\n```bash\ncurl -s -X DELETE http://localhost:8466/admin/file/delete \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' -d \'{"id":42}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": null }\n```\n\n```json\n{ "code": 400, "msg": "请选择要删除的文件" }\n```\n\n## 批量删除:POST /admin/file/batch-delete\n\n`POST` 或 `DELETE`,请求体 `{"ids":[41,42,43]}`。返回逐条统计:\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "requestedCount": 3, "deletedCount": 2, "missingCount": 1, "failedCount": 0,\n "deleted": [41, 42], "missing": [43], "failed": [],\n "requested_count": 3, "deleted_count": 2, "missing_count": 1, "failed_count": 0\n }\n}\n```\n\n## 批量更新:PATCH /admin/file/batch-update\n\n`PATCH` 或 `POST`。请求体:`ids[]` 必需;`expired_at`(ISO 8601)/`expired_count` 二选一;\n`clearExpiredAt: true`(或 `clear_expired_at`)= 清空过期时间并置 `expired_count=-1`(永久)。\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/file/batch-update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"ids":[41,42],"clearExpiredAt":true}\'\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": { "requestedCount": 2, "updatedCount": 2, "missingCount": 0, "failedCount": 0, "updated": 2, "missing": [], "failed": [], "requested_count": 2, "updated_count": 2, "missing_count": 0, "failed_count": 0 }\n}\n```\n\n## 过期策略动作:PATCH /admin/file/policy-action\n\n对单个文件执行快捷策略。`PATCH` 或 `POST`。批量版为 `/admin/file/batch-policy-action`(`{"ids":[…]}`),响应结构同批量更新。\n\n**请求体**:\n\n| 字段 | 说明 |\n|---|---|\n| `id` | 文件 ID |\n| `action` | `extend_24h` / `extend_7d` / `make_permanent` / `reset_download_limit` |\n| `downloadLimit` | 仅 `reset_download_limit` 用:新取件次数(默认 5,须 >0) |\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/file/policy-action \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"id":42,"action":"reset_download_limit","downloadLimit":3}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "id": 42, "action": "reset_download_limit" } }\n```\n\n```json\n{ "code": 400, "msg": "不支持的策略动作" }\n```\n\n> `extend_24h`/`extend_7d` 在当前过期时间(未过期时)基础上顺延;`make_permanent` 清空过期时间并置次数 -1。\n\n## 管理员下载:GET /admin/file/download?id=\n\n下载原文件(**不消耗取件次数**);文件返回二进制流(支持 Range),文本分享返回 JSON(`data` 为文本内容)。\n\n```bash\ncurl -s -OJ "http://localhost:8466/admin/file/download?id=42" -H "Authorization: Bearer $TOKEN"\n```\n\n## 文本预览:GET /admin/file/preview\n\n仅文本分享可用(文件分享返回 400)。`maxChars` 截断长度(默认 4000,1~20000)。\n\n```bash\ncurl -s "http://localhost:8466/admin/file/preview?id=41&maxChars=100" -H "Authorization: Bearer $TOKEN"\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "id": 41, "code": "8XQ2M", "name": "Text.txt", "type": "text",\n "content": "你好,文件快传",\n "length": 24, "previewLength": 24, "truncated": false,\n "maxChars": 100, "max_chars": 100,\n "created_at": "2025-06-01T12:00:00+08:00", "createdAt": "2025-06-01T12:00:00+08:00"\n }\n}\n```\n\n```json\n{ "code": 400, "msg": "仅文本分享支持预览" }\n```\n\n## 读取配置:GET /admin/config/get\n\n返回运行时配置 KV(含默认值与管理端修改)。`admin_token` 恒返回空串(屏蔽);\n`jwt_secret` 不下发;存储引擎为进程级单例,`_engine_hint` 提示引擎配置修改需重启。\nv2 新增键(需求 ①②③④⑩)一并返回:`background_url`、`footer_text`、`footer_beian`、\n`notify_enabled`、`max_save_count`、`max_file_size` 等。\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "site_name": "文件快传",\n "name": "文件快传",\n "description": "开箱即用的文件快传系统",\n "page_explain": "…", "keywords": "…",\n "notify_title": "系统通知", "notify_content": "…", "notify_enabled": 1,\n "logo_url": "",\n "favicon_url": "",\n "background_url": "", "footer_text": "", "footer_beian": "",\n "openUpload": 1, "uploadSize": 10485760,\n "max_file_size": 0, "max_save_count": 0,\n "allowed_file_types": ["*"], "expireStyle": ["day","hour","minute","forever","count"],\n "code_generate_type": "secret", "enableChunk": 1,\n "uploadMinute": 1, "uploadCount": 10,\n "errorMinute": 1, "errorCount": 10,\n "loginCount": 5, "loginMinute": 15,\n "max_save_seconds": 0, "storageLimit": 0,\n "opacity": 0.9, "background": "", "showAdminAddr": 0, "robotsText": "User-agent: *\\nDisallow: /",\n "adminSessionExpire": 604800,\n "storage_path": "", "local_storage_path": "/app/data",\n "file_storage": "local",\n "admin_token": "",\n "_engine_hint": { "storage_backend": "local", "note": "存储引擎为进程级单例,修改存储引擎相关配置后需重启服务生效" }\n }\n}\n```\n\n## 存储引擎热切换:POST /admin/storage/switch(v3)\n\n运行时切换存储引擎,**无需重启**:\n\n```bash\ncurl -s -X POST http://localhost:8466/admin/storage/switch \\\n -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \\\n -d \'{"engine":"s3"}\'\n# 成功:{"code":200,"msg":"ok","data":{"ok":true,"engine":"s3"}}\n# 失败:503 {"code":503,"msg":"存储引擎切换失败,已保持原引擎: …"}\n```\n\n- `engine` 仅接受 `local|s3|webdav`(400 中文错误)。\n- 切换流程:用最新 KV 参数构建新引擎 → 健康检查 → 通过才替换当前引擎并持久化 `storage_engine`。\n- 失败(构建/健康检查不过)返回 503,**原引擎与 KV 均保持不变**。\n- 切到当前引擎为幂等操作(直接返回 200)。\n- 旧文件按归属引擎(`file_codes.engine`)取回,切换后旧引擎文件仍可下载。\n\n## 更新配置:PATCH /admin/config/update\n\n部分更新(JSON 对象,未提供的键不变;表单亦可)。**PATCH 为主名,POST 为兼容别名**。\n\n- 仅接受管理端可见键(见上响应键集合),未知键忽略。\n- 数值型键自动转型:`openUpload`、`enableChunk`、`uploadSize`、`storageLimit`、限流四组、`max_save_seconds`、`adminSessionExpire`、`showAdminAddr`;v2 新增 `max_save_count`、`max_file_size`、`notify_enabled`;`opacity` 为浮点。\n- **v3.1**:`site_domain`(站点对外域名)可经本端点设置,非法格式 400(仅 http/https、主机+端口、不带路径)。\n- **v3 引擎键**:`storage_engine` 不经本端点修改(走 `POST /admin/storage/switch`);引擎参数键\n (`local_storage_path`、`webdav_url`、`webdav_root_path`、`webdav_username`、`webdav_password`、\n `s3_endpoint_url`、`s3_region_name`、`s3_bucket_name`、`s3_access_key_id`、`s3_secret_access_key`、\n `aws_session_token`、`s3_addressing_style`)可经本端点保存——保存后对应引擎实例缓存失效,\n 下次切换/构建生效;敏感键空串或 `******` 表示不修改。\n- **v2 schema 校验**(`settings.KVSchema`,越界一律 400,中文错误信息):\n - 整型边界:`max_file_size` ≤ 10GiB(10737418240)、`max_save_count` ≤ 100000、`max_save_seconds` ≤ 31536000(365 天)、`notify_enabled` ∈ {0,1}、`uploadCount` 1~10000、`uploadMinute` 1~1440 等;\n - 字符串长度:`background_url` ≤ 2048、`footer_text` ≤ 2000、`footer_beian` ≤ 128、`notify_title` ≤ 128、`notify_content` ≤ 2000 字符;\n - 列表键 `expireStyle` / `allowed_file_types`:须为字符串数组(或逗号分隔串)且至少保留一项;\n - 错误示例:`{"code":400,"msg":"max_file_size 必须是整数"}`、`{"code":400,"msg":"max_file_size 不能大于 10737418240"}`、`{"code":400,"msg":"footer_beian 长度不能超过 128 字符"}`、`{"code":400,"msg":"notify_enabled 不能大于 1"}`。\n- `background_url` 协议白名单(需求 ①,防 `javascript:` 注入):仅 `http(s)://`、`data:image/*` 与站内相对路径(`/`开头);空串=清除背景。非法值 400:\n `{"code":400,"msg":"background_url 仅支持 http(s) 地址、data:image 图片或站内相对路径"}`\n- `admin_token`:明文密码自动哈希,**并轮换 `jwt_secret`(全部管理员令牌立即失效)**;空串忽略;已是哈希格式则原样保存。\n- `adminSessionExpire` 须为 1~365 的整天秒数(86400 的整数倍),否则 400。\n- `storageLimit` 不能小于 0。\n- 修改限流/策略配置**立即生效**(无需重启:限流规则运行时同步,策略由上传链路每次实时读取);引擎相关(`file_storage`/`s3_*`/`webdav_*`/`storage_path`/`local_storage_path`)需重启。\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/config/update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"site_name":"我的文件柜","uploadSize":52428800,"openUpload":1,"footer_beian":"京ICP备20240001号","max_file_size":10485760,"max_save_count":5}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true } }\n```\n\n```json\n{ "code": 400, "msg": "adminSessionExpire 必须是 1 到 365 个整天" }\n```\n\n```json\n{ "code": 400, "msg": "background_url 仅支持 http(s) 地址、data:image 图片或站内相对路径" }\n```\n\n## 修改管理员密码:PATCH /admin/settings/password\n\n`PATCH` 或 `POST`。新密码 ≥8 位;成功后哈希保存并**轮换 `jwt_secret`,所有旧令牌失效(401)**,需重新登录。\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/settings/password \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"old_password":"admin12345","new_password":"new-pass-6789"}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true } }\n```\n\n```json\n{ "code": 400, "msg": "新密码长度至少 8 位" }\n```\n\n```json\n{ "code": 401, "msg": "旧密码错误" }\n```\n',y='# 审计日志查询\n\n所有上传/下载请求由审计中间件自动落库(需求 ③),管理端分页查询。\n认证:`Authorization: Bearer `。\n\n## 审计记录内容\n\n每条审计日志覆盖以下维度(需求 ③):\n\n| 维度 | 字段 | 说明 |\n|---|---|---|\n| 操作时间 | `created_at` | RFC 3339 |\n| 客户端 | `ip` | 可信代理场景解析 XFF 后的真实 IP |\n| 终端信息 | `user_agent` | 原始 UA |\n| 设备解析 | `device_os` / `device_browser` / `device_type` | 由 UA 解析(如 Windows/Chrome/desktop) |\n| 动作 | `action` | `upload`(上传类) / `download`(取件/下载类) / `admin`(管理端敏感操作,26.9 新增) |\n| 结果 | `result` | `success` / `denied`(拒绝:401/403/423/428)/ `failed`(失败:其余 4xx/5xx 或业务报错) |\n| 字节数 | `size_bytes` | 文件总大小;`transferred_bytes` 实际传输(**Range 下载只计实际区间字节**;下载由中间件自动统计,上传由各 handler 填充) |\n| 耗时 | `duration_ms` | 毫秒 |\n| 角色 | `actor` | `admin`(有效管理员令牌)/ `guest` |\n| 业务 | `file_code` / `file_name` | 取件码 / 文件名(分片上传时 `file_code` 为 `upload_id`) |\n| 错误 | `error_msg` | 失败/拒绝原因 |\n\n**命中审计的端点**:上传类 `POST /share/text`、`POST /share/file`、`/chunk/upload*`、`/presign*`(POST/PUT);\n下载类 `GET /share/download`、`GET /share/select`、`GET /share/metadata`;\n管理类(`action=admin`)`POST /admin/login`、`POST /admin/logout`、`PATCH|POST /admin/config/update`、\n`PATCH|POST /admin/settings/password`、`POST /admin/storage/switch`、`PATCH|DELETE /admin/file/update|delete|batch-delete|batch-update|policy-action|batch-policy-action`。\n管理类动作未显式填结果时按 HTTP 状态兜底落库(401/403/423 → `denied`,5xx → `failed`,其余 → `success`)。\n失败与被拒绝的请求同样落库。\n\n## 查询接口:GET /admin/audit/list\n\n**参数**:\n\n| 参数 | 默认 | 说明 |\n|---|---|---|\n| `page` | 1 | 页码(≥1) |\n| `size` | 20 | 每页条数(1~200;兼容 `pageSize`) |\n| `action` | - | `upload` / `download` / `admin` |\n| `result` | - | `success` / `denied` / `failed` |\n| `ip` | - | 按客户端 IP 过滤 |\n| `start_time` / `end_time` | - | 时间范围,ISO 8601(如 `2025-06-01T00:00:00+08:00`;也接受 `2006-01-02 15:04:05` / 日期) |\n\n```bash\ncurl -s "http://localhost:8466/admin/audit/list?page=1&size=20&action=download&result=success&start_time=2025-06-01T00:00:00%2B08:00" \\\n -H "Authorization: Bearer $TOKEN"\n```\n\n**成功响应**(200):\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "data": [\n {\n "id": 318,\n "action": "download",\n "file_code": "K3P9W",\n "file_name": "report.pdf",\n "size_bytes": 1048576,\n "transferred_bytes": 524288,\n "ip": "203.0.113.7",\n "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",\n "device_os": "Windows",\n "device_browser": "Chrome",\n "device_type": "desktop",\n "actor": "guest",\n "result": "success",\n "error_msg": "",\n "duration_ms": 128,\n "created_at": "2025-06-01T12:03:45+08:00",\n "fileCode": "K3P9W",\n "fileName": "report.pdf",\n "sizeBytes": 1048576,\n "transferredBytes": 524288,\n "userAgent": "Mozilla/5.0 …",\n "deviceOs": "Windows",\n "deviceBrowser": "Chrome",\n "deviceType": "desktop",\n "errorMsg": "",\n "durationMs": 128,\n "createdAt": "2025-06-01T12:03:45+08:00"\n }\n ],\n "total": 1180,\n "page": 1,\n "size": 20\n }\n}\n```\n\n> 行字段以 snake_case 为准;camelCase 为兼容双份输出(文档不再重复列出)。\n\n**错误响应**:\n\n```json\n{ "code": 400, "msg": "start_time 时间格式错误" }\n```\n\n```json\n{ "code": 401, "msg": "令牌无效或已过期" }\n```\n\n## 别名:GET /admin/audit/logs\n\n与 `/admin/audit/list` 完全相同(同一 handler 的兼容别名),参数与响应一致。\n\n## 典型查询\n\n```bash\n# 最近的下载行为\ncurl -s "http://localhost:8466/admin/audit/list?action=download&size=50" -H "Authorization: Bearer $TOKEN"\n\n# 某 IP 的全部被拒请求(限流/鉴权失败)\ncurl -s "http://localhost:8466/admin/audit/list?ip=203.0.113.7&result=denied" -H "Authorization: Bearer $TOKEN"\n\n# 今天 0 点以来的上传失败\ncurl -s "http://localhost:8466/admin/audit/list?action=upload&result=failed&start_time=2025-06-01T00:00:00%2B08:00" \\\n -H "Authorization: Bearer $TOKEN"\n```\n',h='# 存储引擎配置\n\n存储引擎只支持三种:**本地磁盘 / S3 / WebDAV**,由进程级环境变量 `FCB_STORAGE_ENGINE` 选择。\n引擎与引擎相关配置在启动时一次性读取(`storage.SetEngineOptions` → `NewEngine`),\n**运行时修改引擎 KV 需重启服务**(管理端 `GET /admin/config/get` 的 `_engine_hint` 亦有提示)。\n\n## 引擎选择\n\n```bash\nFCB_STORAGE_ENGINE=local # 启动默认(KV storage_engine 为空时生效)\nFCB_STORAGE_ENGINE=s3\nFCB_STORAGE_ENGINE=webdav\n```\n\n非法值直接启动失败:`FCB_STORAGE_ENGINE 无效值 "xxx",仅支持 local|s3|webdav`。\n\n**v3 运行时热切换**:管理端 `POST /admin/storage/switch`(或后台设置页「存储引擎」卡)可在不重启的情况下切换引擎——\n先构建新引擎并健康检查,通过才生效;失败 503 保持原引擎。当前引擎持久化在 settings KV `storage_engine`(空=回落启动值)。\n各引擎参数(存储目录/服务地址/存储桶/密钥)同样在后台设置页运行时可改;保存后对应引擎实例缓存失效,下次切换/构建生效。\n\n## 文件归属引擎(v3)\n\n每条分享记录(`file_codes.engine`)与上传会话(`upload_chunks.engine` / `presign_upload_sessions.engine`)\n在创建时戳记当时的引擎名。下载、分片合并、删除按**归属引擎**操作——切换引擎后,旧引擎里的文件仍可正常下载与删除\n(空戳为历史数据,回落当前引擎)。\n\n## 按日期目录存储\n\n文件落盘路径:`[storage_path/]share/data/YYYY/MM/DD//<文件名>`(如 `share/data/2026/09/04/…`)。\n按日嵌套目录自然排序、无日月歧义、避免单日海量文件挤在单目录;三种引擎一致适用;历史路径记录在\n`file_codes.file_path`,不受路径规则调整影响。\n\n## 配置键与环境变量\n\n引擎相关配置键(DB settings KV)可由环境变量种子注入(优先级:默认 < 环境变量 < DB KV):\n\n| KV 键 | 环境变量 | 引擎 | 说明 |\n|---|---|---|---|\n| `local_storage_path` | `FCB_LOCAL_STORAGE_PATH` | local | 本地存储根目录(容器内默认 `/app/data`) |\n| `storage_path` | `FCB_STORAGE_PATH` | 全部 | 存储相对路径前缀(空 = `share/data/…`) |\n| `s3_access_key_id` | `FCB_S3_ACCESS_KEY_ID` | s3 | 访问密钥 |\n| `s3_secret_access_key` | `FCB_S3_SECRET_ACCESS_KEY` | s3 | 私有密钥 |\n| `aws_session_token` | `FCB_AWS_SESSION_TOKEN` | s3 | 可选临时会话令牌 |\n| `s3_bucket_name` | `FCB_S3_BUCKET_NAME` | s3 | 桶名 |\n| `s3_endpoint_url` | `FCB_S3_ENDPOINT_URL` | s3 | S3 兼容端点(MinIO/R2 等;AWS 原生可空) |\n| `s3_region_name` | `FCB_S3_REGION_NAME` | s3 | 区域(默认 `auto`) |\n| `s3_addressing_style` | `FCB_S3_ADDRESSING_STYLE` | s3 | `auto`/`path`/`virtual` |\n| `webdav_url` | `FCB_WEBDAV_URL` | webdav | WebDAV 服务地址(如 `http://webdav:5000`) |\n| `webdav_username` | `FCB_WEBDAV_USERNAME` | webdav | 用户名 |\n| `webdav_password` | `FCB_WEBDAV_PASSWORD` | webdav | 密码 |\n| `webdav_root_path` | `FCB_WEBDAV_ROOT_PATH` | webdav | 根目录(默认 `filebox_storage`,不存在自动逐级创建) |\n\n`FCB_STORAGE_ENGINE` 本身不落库(`GET /admin/config/get` 中的 `file_storage` 为 KV 记忆键,\n进程实际引擎以 `FCB_STORAGE_ENGINE` 与 `_engine_hint.storage_backend` 为准)。\n\n## 各引擎要点\n\n### 本地引擎(local)\n\n- 原子写:临时文件 + fsync + rename,避免半写文件。\n- 路径安全:`SanitizePath` + 符号链接逃逸双重防穿越。\n- Range 下载基于 `SectionReader`;分片按索引有序合并 + SHA256 校验,合并后清理分片目录。\n\n### S3 引擎(s3)\n\n- 原生 multipart 流式合并(失败自动 Abort),分片落临时文件保证精确 Content-Length 与可重放。\n- 预签名 GET/PUT 直链(预签名直传唯一 `direct` 模式引擎)。\n- SDK 内置 5xx 指数退避重试;`when_required` 校验模式兼容 MinIO/R2 与纯流式转发。\n\n### WebDAV 引擎(webdav,重点优化)\n\n- **连接复用**:池化 Transport,连接复用(实测 25 次请求仅 1 条 TCP 连接)。\n- **认证**:Basic + Digest(RFC 2617 `qop=auth`,MD5/SHA-256)自动协商,401 挑战驱动。\n- **Range**:`Range` 头透传 + `206` 解析,支持分块/断点下载。\n- **重试**:5xx/429/408 指数退避(封顶 2s ± 20% 抖动,尊重 `Retry-After`)。\n- **流式**:下载经 `io.Pipe` 流式转发不落盘;上下文取消挂到响应体读完之后,防止提前断连。\n- **目录**:按需逐级 `MKCOL` + 目录缓存,避免重复建目录。\n- **超时**:可配置(`webdav_url` 同级暂无独立超时键,引擎默认值内置)。\n\n## 健康检查\n\n三引擎均实现 `HealthCheck`:local 写探针、s3 `ListObjectsV2`、webdav `PROPFIND`(根目录不存在时自建)。\n服务启动时预检失败仅告警不阻断;运行状态可经 `GET /api/v1/health` 的 `data.storage` 查看当前引擎名。\n\n## 预签名直传支持矩阵\n\n| 引擎 | `PresignPutURL` / `PresignGetURL` | init 返回 mode |\n|---|---|---|\n| s3 | ✅ | `direct` |\n| local / webdav | ❌(`ErrNotSupported`) | `proxy`(走服务端代理上传) |\n\n引擎不支持的操作经统一映射返回 501:\n\n```json\n{ "code": 501, "msg": "当前存储引擎不支持该操作" }\n```\n\n## Docker Compose 冒烟编排\n\n`deploy/docker-compose.yml` 提供可选 profile(详见 deploy/README.md):\n\n```bash\ndocker compose --profile minio up -d --build # MinIO(含 mc 自动建桶)+ FCB_STORAGE_ENGINE=s3\ndocker compose --profile webdav up -d --build # dufs WebDAV 冒烟(admin/admin123)+ FCB_STORAGE_ENGINE=webdav\ndocker compose --profile redis up -d --build # Redis 缓存增强(非引擎)\n```\n\n## 存储哨兵错误 → HTTP 状态\n\n| 哨兵错误 | HTTP | 文案 |\n|---|---|---|\n| `ErrNotFound` | 404 | 文件不存在 |\n| `ErrInvalidPath` | 400 | 非法文件路径 |\n| `ErrUnavailable` | 503 | 存储服务不可用,请稍后再试 |\n| `ErrNotSupported` | 501 | 当前存储引擎不支持该操作 |\n| `ErrRangeNotSatisfiable` | 416 | 请求范围超出文件大小 |\n| `ErrHashMismatch` | 400 | 分片哈希校验失败,请重新上传 |\n\n容量超限(`storageLimit`,经容量预留判定)返回 507:`存储空间已达到管理员设置的容量上限`。\n',f='# 环境变量与配置项\n\n配置分三层:**默认值 → `FCB_*` 环境变量 → 数据库 settings KV(管理端运行时修改)**。\nv2 起进程必需的环境变量为空集:数据库默认 **SQLite**(modernc.org/sqlite 纯 Go 驱动,零外部依赖,\nDSN 缺省落 `./data/fileshare.db`);`FCB_DB_DRIVER=postgres` 时 `FCB_DB_DSN` 必需(需求 ⑧)。\n\n## 环境变量(进程级)\n\n| 变量 | 必需 | 默认 | 说明 |\n|---|---|---|---|\n| `FCB_DB_DRIVER` | ❌ | `sqlite` | 数据库驱动:`sqlite` / `postgres`(需求 ⑧) |\n| `FCB_DB_DSN` | 视驱动 | `./data/fileshare.db` | postgres:连接串(**必需**,如 `postgres://user:pass@host:5432/filecodebox?sslmode=disable`);sqlite:数据库文件路径(可空,父目录自动创建) |\n| `FCB_REDIS_ADDR` | ❌ | 空 | Redis 地址(如 `redis:6379`),也支持 `redis://[:password@]host:port[/db]` / `rediss://`(TLS)URL 形式;**空则缓存降级为进程内存实现**(缓存故障时自动降级为进程内限流计数) |\n| `FCB_REDIS_DB` | ❌ | `0` | Redis 逻辑库号 0-15;URL 形式地址显式携带 `/N` 时以 URL 为准 |\n| `FCB_ADMIN_PASSWORD` | ❌ | 空 | 设置后服务首次启动即自动初始化管理员(≥8 位,不足告警跳过),消除 `/setup` 被抢占窗口;初始化完成后建议移除 |\n| `FCB_LISTEN` | ❌ | `:8466` | HTTP 监听地址 |\n| `FCB_STORAGE_ENGINE` | ❌ | `local` | 存储引擎:`local` / `s3` / `webdav` |\n| `FCB_TRUSTED_PROXIES` | ❌ | 空 | 可信代理 CIDR(逗号分隔),命中时从 `X-Forwarded-For` 解析真实客户端 IP |\n\n- SQLite 连接参数(驱动自动注入):`busy_timeout=10s` + `WAL` 日志模式 + `foreign_keys=1`;连接池 8/4。\n- Postgres 连接池沿用 v1 参数(32/8,1h 轮换);`FCB_DB_DRIVER=postgres` 且未设 `FCB_DB_DSN` 时**启动直接报错**。\n\n引擎相关环境变量(种子注入 settings KV,见《存储引擎配置》):`FCB_LOCAL_STORAGE_PATH`、\n`FCB_STORAGE_PATH`、`FCB_S3_ACCESS_KEY_ID`、`FCB_S3_SECRET_ACCESS_KEY`、`FCB_AWS_SESSION_TOKEN`、\n`FCB_S3_BUCKET_NAME`、`FCB_S3_ENDPOINT_URL`、`FCB_S3_REGION_NAME`、`FCB_S3_ADDRESSING_STYLE`、\n`FCB_WEBDAV_URL`、`FCB_WEBDAV_USERNAME`、`FCB_WEBDAV_PASSWORD`、`FCB_WEBDAV_ROOT_PATH`。\n\n部署用编排变量(`deploy/.env.example`):`WEB_PORT`(默认 8466)、\n`POSTGRES_USER` / `POSTGRES_PASSWORD` / `POSTGRES_DB`(默认 fileshare,仅 `--profile postgres` 时使用)。\n\n## 配置项(settings KV,默认值对齐参考实现)\n\n> 键名/类型/默认值/边界以 `server/internal/config/schema.go` 的 `KVSchema()` 为单一事实来源\n> (schema 同步测试保证与 defaults() 逐键一致);v2 新增键统一 snake_case。\n\n### 站点信息与展示(需求 ①②③)\n\n| 键 | 类型/边界 | 默认 | 说明 |\n|---|---|---|---|\n| `site_name` / `name` | string | 文件快传 | 站点名称(`site_name` 优先) |\n| `site_domain` | string,≤256 | 空 | **v3.1**:站点对外域名(`http(s)://host[:port]`,不带路径;裸主机自动补 `http://`)。配置后分享链接(结果卡/管理端复制)用该域名生成——内网部署也能把公网链接发出去;留空=用当前访问地址 |\n| `description` | string | 开箱即用的文件快传系统 | 站点描述 |\n| `page_explain` | string | (合规声明) | 页面说明文案 |\n| `keywords` | string | 文件快传, 文件分享… | SEO 关键词 |\n| `logo_url` | string | 空(前端回落本地打包 `/assets/logo-*.svg`,需求 ⑤) | 页面导航 Logo,管理端可设任意 URL |\n| `favicon_url` | string | 空(前端回落本地打包 `/assets/favicon-*.png`,需求 ⑤) | favicon / 备用 Logo |\n| `opacity` | float | 0.9 | 界面不透明度 |\n| `background` | string | 空 | 背景图 URL(参考实现既有键,v1 兼容保留) |\n| `background_url` | string,≤2048 字符 | 空 | **v2 需求 ①**:背景图 URL 或上传后地址(空=主题默认;取值时 legacy `background` 键兜底)。管理端保存时校验协议白名单:仅 `http(s)`、`data:image/*` 与站内相对路径(防 `javascript:` 注入,非法 400) |\n| `footer_text` | string,≤2000 字符 | 空 | **v2 需求 ②**:页脚自定义内容(纯文本或受控 HTML 片段) |\n| `footer_beian` | string,≤128 字符 | 空 | **v2 需求 ②**:备案号(如 `京ICP备2024xxxxxx号-1`),展示于页脚 |\n| `notify_enabled` | int(0/1) | 1 | **v2 需求 ③**:通知开关(1=前台右上角悬浮窗展示 / 0=关闭) |\n| `notify_title` | string,≤128 字符 | 系统通知 | 通知标题 |\n| `notify_content` | string,≤2000 字符 | 欢迎使用… | 通知正文(**服务端白名单净化**:仅保留纯文本与 `` 为 http(s)/站内相对/`#` 锚点的链接,其余标签与事件属性剥离,保存与读取双侧生效) |\n| `showAdminAddr` | int(0/1) | 0 | 是否展示后台入口 |\n| `robotsText` | string | `User-agent: *\\nDisallow: /` | robots.txt 内容(由公开端点 `GET /robots.txt` 输出) |\n\n### 保存策略(需求 ④,上传页动态读取并在范围内选择)\n\n| 键 | 类型/边界 | 默认 | 说明 |\n|---|---|---|---|\n| `max_save_seconds` | int64,0~31536000 | 0 | 最长保存秒数上限(0=仅默认 7 天兜底;>0 时按时间过期超限 403「限制最长时间为 X,可换用其他方式」)。**v3**:管理界面以「小时/天」下拉单位编辑(≥1 天自动显示天),提交时前端换算为秒——canonical 单位保持秒,接口语义不变 |\n| `max_save_count` | int,0~100000 | 0 | **v2 新增**:单次分享最大可取(保存)次数上限(0=不限制;`expire_style=count` 且 `expire_value` 超上限时 403「限制次数最多为 N 次」) |\n| `expireStyle` | []string | `["day","hour","minute","forever","count"]` | 允许的过期方式白名单(上传时不在白名单 400「过期时间类型错误」) |\n\n### 存储策略(需求 ④⑩)\n\n| 键 | 类型/边界 | 默认 | 说明 |\n|---|---|---|---|\n| `uploadSize` | int64,1024~10GiB | 10485760(10MB) | 单文件大小上限(字节),参考实现语义;`max_file_size=0` 时作为生效上限 |\n| `max_file_size` | int64,0~10GiB | 0 | **v2 新增**:存储策略-单文件上限(字节),0=回落 `uploadSize`;超出 403(文案 humanSize 自适应 B/KB/MB/GB)。**v3**:管理界面以「MB/GB」下拉单位编辑(≥1 GiB 自动显示 GB),提交时前端换算为字节 |\n| `allowed_file_types` | []string | `["*"]` | 允许类型白名单(扩展名/MIME 通配,`*` 不限制;非白名单 403「不允许上传该类型文件」) |\n| `storageLimit` | int64,≥0 | 0 | 站点总容量(字节),0=不限制(超限 507) |\n| `openUpload` | int(0/1) | 1 | 游客上传开关(0 时上传接口要求管理员令牌 403) |\n| `enableChunk` | int(0/1) | 0 | 启用分片上传 |\n\n### 上传频率限制(需求 ④,既有键对齐参考 ip_limit["upload"])\n\n| 键 | 类型/边界 | 默认 | 说明 |\n|---|---|---|---|\n| `uploadCount` / `uploadMinute` | int(1~10000 / 1~1440) | 10 / 1 | 窗口内允许上传次数 / 窗口分钟(上传成功才计数,超限 423;管理端修改后运行时同步限流规则,立即生效) |\n| `errorCount` / `errorMinute` | int | 10 / 1 | 取件错误(失败计数)+ metadata 每次计数 |\n| `loginCount` / `loginMinute` | int | 5 / 15 | 登录失败计数 |\n\n### 安全与会话\n\n| 键 | 默认 | 说明 |\n|---|---|---|\n| `admin_token` | 空(未初始化) | 管理员密码哈希(`sha256$salt$hash`);GET 配置时屏蔽为空串 |\n| `jwt_secret` | 空 | JWT 签名密钥(初始化/改密时自动生成轮换;不下发;`settings.SensitiveKeys` 双模式下一致屏蔽) |\n| `adminSessionExpire` | 604800(7 天) | 管理员会话秒数(须 1~365 整天) |\n\n### 存储引擎(v3 运行时可配 + 热切换)\n\n**`storage_engine`**(v3 新增键):string,`local|s3|webdav`,默认空=回落启动值 `FCB_STORAGE_ENGINE`。\n运行时切换走 **`POST /admin/storage/switch`**(JWT 保护):构建新引擎 → 健康检查通过才生效;\n失败返回 503「存储引擎切换失败,已保持原引擎: …」且不改 KV。成功后持久化 `storage_engine`,重启沿用。\n`GET /api/v1/config` 公开下发 `storage_engine` 当前名(仅名称,任何引擎参数/凭据不下发)。\n\n引擎参数键(管理端可改;保存后对应引擎实例缓存失效,下次切换/构建生效):\n\n| 键 | 默认 |\n|---|---|\n| `file_storage` | `local` |\n| `storage_path` | 空 |\n| `local_storage_path` | 空(容器内由 `FCB_LOCAL_STORAGE_PATH=/app/data` 注入) |\n| `s3_access_key_id` / `s3_secret_access_key` / `aws_session_token` | 空 |\n| `s3_bucket_name` / `s3_endpoint_url` / `s3_hostname` | 空 |\n| `s3_region_name` | `auto` |\n| `s3_signature_version` | `s3v4` |\n| `s3_addressing_style` | `auto` |\n| `s3_proxy` | 0 |\n| `webdav_url` / `webdav_username` / `webdav_password` | 空 |\n| `webdav_root_path` | `filebox_storage` |\n| `webdav_proxy` | 0 |\n\n> 敏感键 `webdav_password` / `s3_secret_access_key` / `aws_session_token`(v3 加入 `settings.SensitiveKeys`):\n> 管理端 GET 返回掩码 `******`;PATCH 时空串或 `******` 表示不修改。直接写库 settings KV 后重启同样生效。\n\n## 策略动态生效机制(v2 需求 ④⑩)\n\n上传页通过 `GET /api/v1/config` 的 `config` 字段读取**当前策略快照**并在范围内渲染选项;\n上传链路(`/share/file`、`/chunk/*`、`/presign/*`)**每次请求实时读取** settings KV 同一组值校验:\n\n- 管理端改策略(`PATCH /admin/config/update`)→ 公开 config 即时反映 → 后续上传立即按新策略执行(含 403/400 拒绝与恢复放行)。\n- 生效上限:`max_file_size > 0` 时为 `max_file_size`,否则回落 `uploadSize`。\n- 校验点覆盖:单文件(`/share/file`)、分片 init 按分片数上限、分片上传累计、分片 complete 累计、预签名 init 声明大小,五处口径一致(`api.UploadPolicy.CheckSize`)。\n\n## 公共配置接口\n\n前端启动时经 `GET /api/v1/config` 获取站点公开配置(无需认证;v2 扩展需求 ①②③④⑩):\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "config": {\n "name": "文件快传",\n "description": "开箱即用的文件快传系统",\n "explain": "请勿上传或分享违法内容…",\n "logo_url": "",\n "favicon_url": "",\n "background_url": "",\n "footer_text": "自定义页脚内容",\n "footer_beian": "京ICP备2024xxxxxx号-1",\n "notify_enabled": 1,\n "notify_title": "系统通知",\n "notify_content": "欢迎使用文件快传…",\n "uploadSize": 10485760,\n "max_file_size": 10485760,\n "maxFileSize": 10485760,\n "allowedFileTypes": ["*"],\n "expireStyle": ["day", "hour", "minute", "forever", "count"],\n "max_save_seconds": 0,\n "maxSaveSeconds": 0,\n "max_save_count": 0,\n "maxSaveCount": 0,\n "uploadCount": 10,\n "uploadMinute": 1,\n "enableChunk": false,\n "openUpload": true\n },\n "meta": {\n "version": "26.9",\n "features": { "chunkUpload": false, "guestUpload": true }\n }\n }\n}\n```\n\n> 策略字段 snake_case 与 camelCase 双份下发(前端宽松解析);响应为白名单显式构造,\n> 任何敏感键(`admin_token`/`jwt_secret`)均不会出现。\n\n## 健康检查\n\n```bash\ncurl -s http://localhost:8466/api/v1/health\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": {\n "status": "ok",\n "version": "26.9",\n "storage": "local",\n "time": "2025-06-01T12:00:00+08:00"\n }\n}\n```\n',x='# 错误码\n\n## 响应结构\n\n```json\n{ "code": 404, "msg": "文件不存在" }\n```\n\n- `code` 与 HTTP 状态码一致;失败时无 `data` 字段。\n- `msg` 为中文可读信息,可直接展示给用户。\n\n## 业务状态码\n\n| 状态码 | 语义 | 典型场景 |\n|---|---|---|\n| 200 | 成功 | 全部正常响应 |\n| 400 | 参数/格式错误 | 缺字段、过期策略非法、时间格式错误、分片哈希不匹配、code 冲突、`chunk_size` 超 32MiB 上限、presign 实际大小与声明不符、请求体超过大小上限 |\n| 401 | 未认证 | 管理端令牌缺失/无效;登录密码错误 |\n| 403 | 拒绝 | 类型白名单拒绝、magic bytes 防伪、游客上传未开启、**分片上传未启用**(enableChunk=0)、presign 直传对象超限(服务端删除对象并释放预留)、下载 `key` 鉴权失败、超过大小/时长限制 |\n| 404 | 不存在/已过期 | 取件码不存在、文件已过期、上传会话不存在、`/api/*` 未命中路由 |\n| 409 | 冲突 | 上传容量预留信息不一致 |\n| 416 | Range 越界 | `Range: bytes=…` 超出文件大小 |\n| 423 | 限流 | upload/error/login/metadata 任一规则超限 |\n| 428 | 未初始化 | 系统未初始化时访问除 `/setup`、`/api/v1/health` 外的接口 |\n| 500 | 服务器错误 | 数据库/内部异常 |\n| 501 | 引擎不支持 | 引擎不支持预签名等操作(local/webdav 的 `PresignGetURL/PutURL`) |\n| 503 | 存储不可用 | 存储引擎连接失败/健康检查不通过时的操作 |\n| 507 | 容量超限 | 达到 `storageLimit` 上限(含上传预留判定) |\n\n## 存储哨兵错误映射\n\n存储层哨兵错误统一映射(支持错误包装链判定):\n\n| 哨兵错误 | HTTP | 响应 msg |\n|---|---|---|\n| `ErrNotFound` | 404 | 文件不存在 |\n| `ErrInvalidPath` | 400 | 非法文件路径 |\n| `ErrUnavailable` | 503 | 存储服务不可用,请稍后再试 |\n| `ErrNotSupported` | 501 | 当前存储引擎不支持该操作 |\n| `ErrRangeNotSatisfiable` | 416 | 请求范围超出文件大小 |\n| `ErrHashMismatch` | 400 | 分片哈希校验失败,请重新上传 |\n\n未识别的存储错误归入 500(`存储操作失败: …`)。\n\n## 错误结果的审计归类\n\n错误响应同时写入审计日志(需求 ③):\n\n- `denied`:401 / 403 / 423 / 429 / 428(拒绝类)。\n- `failed`:其余 4xx / 5xx 及业务显式报错。\n\n## 常见排障\n\n| 现象 | 原因与处理 |\n|---|---|\n| 全部接口 428 | 未初始化:访问 `GET /setup` 或 `POST /setup` 完成向导 |\n| 上传 403「本站未开启游客上传」 | `openUpload=0`,携带管理员 Bearer 令牌或后台开启 |\n| 上传 423 | 触发 upload 限流,等待窗口或调大 `uploadCount/uploadMinute` |\n| 取件 404「文件已过期」 | 分享过期/次数耗尽;管理员可 `PATCH /admin/file/update` 调整 |\n| 下载 403「下载鉴权失败」 | `key` 窗口令牌过期/伪造:重新 `POST /share/select` 获取新地址 |\n| 预签名 init 返回 proxy | local/webdav 引擎不支持直链,按 proxy 流程走服务端代理上传 |\n| 503 存储服务不可用 | 检查引擎配置与远端服务(S3/WebDAV)连通性;`GET /api/v1/health` 的 `storage` 字段确认引擎 |\n',b='# Logo 自定义\n\n## 默认 Logo(内置,v2 需求 ⑤)\n\n| 项 | 默认值 | 用途 |\n|---|---|---|\n| 页面导航 Logo | 前端打包本地资源 `/assets/logo-*.svg`(源:`web/src/assets/brand/logo.svg`) | 导航栏 ``;`config.logo_url` 为空时回落使用 |\n| favicon / 备用 Logo | 前端打包本地资源 `/assets/favicon-*.png`(源:`web/src/assets/brand/favicon.png`) | `index.html` `` + 动态 favicon 回落 |\n\nv2 起默认不再引用远程 URL:`GET /api/v1/config` 中 `logo_url`/`favicon_url` 默认下发空串,\n前端 `displayLogoUrl`/`displayFaviconUrl` 判空后回落到打包的本地资源。\n管理端仍可设置任意 URL 全站替换(三步如下)。\n\n## 管理端自定义(三步)\n\n1. **登录后台**:`POST /admin/login` 获取 Bearer 令牌。\n2. **保存配置**:`PATCH /admin/config/update` 更新 `logo_url`(与可选 `favicon_url`),值为图片 URL 或经管理端上传后得到的地址。\n3. **全站生效**:保存即写入 settings KV 并热更新,前端读取公共配置立即换新 Logo,无需重启。\n\ncurl 示例:\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/config/update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"logo_url":"https://cdn.example.com/logo.svg","favicon_url":"https://cdn.example.com/favicon.png"}\'\n```\n\n```json\n{ "code": 200, "msg": "ok", "data": { "ok": true } }\n```\n\n> 也可以在管理界面「系统设置」页操作(上传图片或填写 URL),效果相同。\n\n## 校验生效\n\n```bash\ncurl -s http://localhost:8466/api/v1/config\n```\n\n```json\n{\n "code": 200, "msg": "ok",\n "data": { "config": { "logo_url": "https://cdn.example.com/logo.svg", "favicon_url": "https://cdn.example.com/favicon.png" } }\n}\n```\n\n## 恢复默认\n\n把 `logo_url` / `favicon_url` 置回默认值(空串,前端回落本地打包资源)即可:\n\n```bash\ncurl -s -X PATCH http://localhost:8466/admin/config/update \\\n -H "Authorization: Bearer $TOKEN" -H \'Content-Type: application/json\' \\\n -d \'{"logo_url":"","favicon_url":""}\'\n```\n\n## 相关行为\n\n- 前端运行时优先读取配置值;空值回退前端打包的本地资源(`web/src/assets/brand/logo.svg` + `favicon.png`,经 `displayLogoUrl`/`displayFaviconUrl` 判空回落)。\n- `site_name` 同样支持运行时自定义(`PATCH /admin/config/update` 的 `site_name` 键)。\n- Logo/favicon 仅涉及展示层,修改不影响会话与令牌(不轮换 `jwt_secret`)。\n',T=`openapi: 3.0.3 +info: + title: 文件快传 Go 版 API + version: 2.5.6 + description: | + 文件快传 Go 重写版(Gin + GORM)完整 API 规范,与 \`server/internal/api/\` 实现逐一对齐。 + + 约定: + - 业务路由挂根路径(/share /chunk /presign /admin),公共接口保留 /api/v1 前缀。 + - 统一响应 \`{"code":200,"msg":"ok","data":...}\`,HTTP 状态码与 code 一致,失败时 data 缺省。 + - 管理接口(/admin/login 除外)需 \`Authorization: Bearer \`。 + - 未初始化时除 /setup 与 /api/v1/health 外一律 428;限流超限 423。 + contact: + name: 文件快传 Rewrite Team +servers: + - url: / + description: 同源部署(默认 :8466) +tags: + - name: 公共 + - name: 初始化 + - name: 分享 + - name: 分片上传 + - name: 预签名直传 + - name: 管理后台 + - name: 审计日志 + +paths: + /api/v1/health: + get: + tags: [公共] + summary: 健康检查 + operationId: health + responses: + '200': + description: 服务状态 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + status: { type: string, example: ok } + version: { type: string, example: 2.5.6 } + storage: { type: string, example: local } + time: { type: string, example: '2025-06-01T12:00:00+08:00' } + /robots.txt: + get: + tags: [公共] + summary: robots.txt + operationId: robotsText + description: | + 输出管理端可配置的 \`robotsText\` 内容(text/plain)。 + 内容可在管理后台「站点配置」中自定义,默认 \`User-agent: *\\nDisallow: /\`。 + responses: + '200': + description: robots.txt 内容 + content: + text/plain: + schema: { type: string, example: 'User-agent: *\\nDisallow: /' } + + /api/v1/config: + get: + tags: [公共] + summary: 公共站点配置 + operationId: publicConfig + responses: + '200': + description: 站点公开配置与功能开关 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + config: + type: object + description: 策略字段为上传页动态读取的当前快照(管理端改后即时反映);snake_case 与 camelCase 双份 + properties: + name: { type: string } + description: { type: string } + explain: { type: string } + logo_url: { type: string } + favicon_url: { type: string } + background_url: { type: string, description: '需求 ① 背景图 URL/上传地址,空=主题默认' } + footer_text: { type: string, description: '需求 ② 页脚自定义内容' } + footer_beian: { type: string, description: '需求 ② 备案号' } + storage_engine: { type: string, description: 当前存储引擎名(仅名称,凭据不下发) } + site_domain: { type: string, description: 'v3.1 站点对外域名(空=用当前访问地址)' } + notify_enabled: { type: integer, enum: [0, 1], description: '需求 ③ 通知开关(1=右上角悬浮窗)' } + notify_title: { type: string } + notify_content: { type: string } + uploadSize: { type: integer, format: int64, description: '回落上限(max_file_size=0 时生效)' } + max_file_size: { type: integer, format: int64, description: '需求 ⑩ 存储策略-单文件上限字节(0=回落 uploadSize)' } + maxFileSize: { type: integer, format: int64, description: 同 max_file_size } + allowedFileTypes: { type: array, items: { type: string } } + expireStyle: { type: array, items: { type: string } } + max_save_seconds: { type: integer, format: int64, description: '需求 ④ 最长保存秒数上限(0=默认 7 天兜底)' } + maxSaveSeconds: { type: integer, format: int64, description: 同 max_save_seconds } + max_save_count: { type: integer, description: '需求 ④ 单次分享最大可取次数上限(0=不限制)' } + maxSaveCount: { type: integer, description: 同 max_save_count } + uploadCount: { type: integer, description: 上传频率限制-窗口内次数 } + uploadMinute: { type: integer, description: 上传频率限制-窗口分钟 } + enableChunk: { type: boolean } + openUpload: { type: boolean } + meta: + type: object + properties: + version: { type: string } + features: + type: object + properties: + chunkUpload: { type: boolean } + guestUpload: { type: boolean } + + /setup: + get: + tags: [初始化] + summary: 初始化向导页面 + operationId: setupPage + description: 未初始化返回 HTML 向导;已初始化 303 重定向到 /。 + responses: + '200': + description: HTML 向导页 + content: + text/html: + schema: { type: string } + '303': + description: 已初始化,重定向到 / + post: + tags: [初始化] + summary: 提交初始化 + operationId: setupSubmit + description: | + 表单或 JSON。管理员密码 ≥8 位;\`expireStyle\` 支持多值(复选框或逗号分隔)。 + 成功写入站点配置、密码哈希并生成 jwt_secret。表单提交返回成功 HTML,JSON 提交返回 JSON。 + requestBody: + content: + application/json: + schema: + type: object + properties: + admin_password: { type: string, minLength: 8 } + confirm_password: { type: string } + site_name: { type: string } + upload_size_value: { type: integer, default: 10 } + upload_size_unit: { type: string, enum: [KB, MB, GB], default: MB } + save_time_value: { type: integer, default: 0 } + save_time_unit: { type: string, enum: [second, minute, hour, day], default: day } + expireStyle: + oneOf: + - type: string + - type: array + items: { type: string } + code_generate_type: { type: string, enum: [number, secret], default: secret } + errorCount: { type: integer, default: 10 } + errorMinute: { type: integer, default: 1 } + loginCount: { type: integer, default: 5 } + loginMinute: { type: integer, default: 15 } + uploadCount: { type: integer, default: 10 } + uploadMinute: { type: integer, default: 1 } + allowed_file_types: { type: string, default: '*' } + openUpload: { type: boolean, default: true } + enableChunk: { type: boolean, default: false } + application/x-www-form-urlencoded: + schema: + type: object + properties: + admin_password: { type: string } + confirm_password: { type: string } + site_name: { type: string } + responses: + '200': + description: 初始化成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + ok: { type: boolean, example: true } + admin: { type: string, example: '/#/admin' } + text/html: + schema: { type: string } + '400': + $ref: '#/components/responses/BadRequest' + + /share/text: + post: + tags: [分享] + summary: 创建文本分享 + operationId: shareText + description: | + 文本 ≤222KB(请求体全局上限 1MiB,Content-Length>441KB 直接 403);上传类接口(成功计数 upload 限流,423 超限),经审计中间件落库。 + 保存策略(需求 ④):expire_style 须在 expireStyle 白名单(400);count 型受 + max_save_count 约束(403「限制次数最多为 N 次」);时间型受 max_save_seconds 约束(403)。 + v3.1:支持 JSON 提交(字段同名);空文本 400「分享内容不能为空」; + 可选 code 自定义提取码(5-8 位字母或数字,占用 400「该提取码已被占用」)。 + requestBody: + content: + application/x-www-form-urlencoded: + schema: + type: object + required: [text] + properties: + text: { type: string, maxLength: 227328 } + expire_value: { type: integer, default: 1 } + expire_style: { type: string, enum: [day, hour, minute, count, forever], default: day } + code: { type: string, minLength: 5, maxLength: 8, pattern: '^[A-Za-z0-9]+$', description: 自定义提取码(5-8 位字母数字,可省略=随机) } + responses: + '200': + description: 取件码 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + code: { type: string, example: 8XQ2M } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /share/file: + post: + tags: [分享] + summary: 上传文件并创建分享 + operationId: shareFile + description: | + multipart 上传;扩展名/MIME 白名单 + magic bytes 防伪;大小受动态策略上限限制 + (max_file_size>0 时为其,否则回落 uploadSize;403「大小超过限制,最大为10.00 MB」, + 管理端改后立即生效);保存策略同 /share/text(403/400);容量超限 507。 + requestBody: + content: + multipart/form-data: + schema: + type: object + required: [file] + properties: + code: { type: string, minLength: 5, maxLength: 8, pattern: '^[A-Za-z0-9]+$', description: 自定义提取码(5-8 位字母数字,可省略=随机) } + file: + type: string + format: binary + expire_value: { type: integer, default: 1 } + expire_style: { type: string, enum: [day, hour, minute, count, forever], default: day } + responses: + '200': + description: 取件码与文件名 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + code: { type: string, example: K3P9W } + name: { type: string, example: report.pdf } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '423': { $ref: '#/components/responses/RateLimited' } + '503': { $ref: '#/components/responses/ServiceUnavailable' } + '507': { $ref: '#/components/responses/InsufficientStorage' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /share/metadata: + get: + tags: [分享] + summary: 查询分享元信息(GET) + operationId: shareMetadataGet + description: 不消耗次数;每次访问计入 metadata 限流。 + parameters: + - $ref: '#/components/parameters/CodeQuery' + responses: + '200': + description: 元信息 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareMetadata' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [分享] + summary: 查询分享元信息(POST) + operationId: shareMetadataPost + requestBody: + content: + application/json: + schema: + type: object + required: [code] + properties: + code: { type: string } + responses: + '200': + description: 元信息(同 GET 版本) + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareMetadata' } + '400': { $ref: '#/components/responses/BadRequest' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /share/select: + get: + tags: [分享] + summary: 取件(消耗次数) + operationId: shareSelectGet + description: | + 每调用一次消耗 1 次取件。文本分享返回 text/plain 正文;文件分享返回文件流 + (200 全量 / 206 区间,支持 Range,Accept-Ranges: bytes)。失败计入 error 限流(423)。 + parameters: + - $ref: '#/components/parameters/CodeQuery' + - name: Range + in: header + required: false + schema: { type: string, example: 'bytes=0-1023' } + description: 文件分享的区间请求(单区间) + responses: + '200': + description: 文本正文或文件流 + content: + text/plain: + schema: { type: string } + application/octet-stream: + schema: { type: string, format: binary } + '206': + description: Range 区间文件流(Content-Range) + content: + application/octet-stream: + schema: { type: string, format: binary } + '404': { $ref: '#/components/responses/NotFound' } + '416': { $ref: '#/components/responses/RangeNotSatisfiable' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [分享] + summary: 取件详情(JSON) + operationId: shareSelectPost + description: | + 返回元信息 + 内容/下载地址。文本分享含 text/content;文件分享含 download_url + (代理地址或 S3 预签名直链)。次数型分享返回代理地址且本次不消耗(消耗在代理下载时)。 + requestBody: + content: + application/json: + schema: + type: object + required: [code] + properties: + code: { type: string } + responses: + '200': + description: 分享详情 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareDetail' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /share/download: + get: + tags: [分享] + summary: 代理下载(消耗次数) + operationId: shareDownload + description: key 为窗口令牌(双窗口校验,鉴权失败 403 且计入 error 限流);文件流 200/206 支持 Range。 + parameters: + - name: key + in: query + required: true + schema: { type: string } + - $ref: '#/components/parameters/CodeQuery' + responses: + '200': + description: 文本 JSON 或文件流 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + application/octet-stream: + schema: { type: string, format: binary } + '206': + description: Range 区间文件流 + content: + application/octet-stream: + schema: { type: string, format: binary } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '416': { $ref: '#/components/responses/RangeNotSatisfiable' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/init: + post: + tags: [分片上传] + summary: 初始化分片上传会话 + operationId: chunkInit + description: | + 相同 file_hash+file_size+file_name 的未完成会话自动续传(uploaded_chunks 非空即续传)。 + chunk_size 缺省 5MB、硬上限 32MiB(超出 400「chunk_size 过大」);需 enableChunk 开启(关闭时全部 /chunk 端点 403)。总大小按分片数上限受动态策略约束 + (max_file_size>0 时为其,否则 uploadSize;403);类型白名单 403。 + requestBody: + content: + application/json: + schema: + type: object + required: [file_name, file_size] + properties: + file_name: { type: string } + file_size: { type: integer, format: int64, minimum: 1 } + chunk_size: { type: integer, format: int64, default: 5242880, maximum: 33554432, description: 每片大小(字节),≤32MiB } + file_hash: { type: string, description: 整文件 SHA256,断点续传匹配键 } + responses: + '200': + description: 会话信息 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ChunkInitData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '423': { $ref: '#/components/responses/RateLimited' } + '507': { $ref: '#/components/responses/InsufficientStorage' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/{uploadID}/{chunkIndex}: + post: + tags: [分片上传] + summary: 上传单个分片 + operationId: chunkUpload + description: multipart 字段 chunk;单分片 ≤ min(chunk_size, 32MiB);重复上传幂等(skipped:true);首分片做 magic bytes 防伪。 + parameters: + - $ref: '#/components/parameters/UploadID' + - name: chunkIndex + in: path + required: true + schema: { type: integer, minimum: 0 } + requestBody: + content: + multipart/form-data: + schema: + type: object + required: [chunk] + properties: + chunk: { type: string, format: binary } + responses: + '200': + description: 分片结果 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ChunkUploadData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/status/{uploadID}: + get: + tags: [分片上传] + summary: 查询上传进度 + operationId: chunkStatus + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 进度 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ChunkStatusData' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/complete/{uploadID}: + post: + tags: [分片上传] + summary: 合并分片并创建分享 + operationId: chunkComplete + description: 分片到齐后调用;按索引有序合并 + SHA256 校验(不完整 400 / 哈希不符 400);累计大小受动态策略上限(403,超限清理会话);保存策略同 /share/text(403/400)。 + parameters: + - $ref: '#/components/parameters/UploadID' + requestBody: + content: + application/json: + schema: + type: object + properties: + expire_value: { type: integer, default: 1 } + expire_style: { type: string, enum: [day, hour, minute, count, forever], default: day } + responses: + '200': + description: 取件码与文件名 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareFileData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /chunk/upload/{uploadID}: + delete: + tags: [分片上传] + summary: 取消上传 + operationId: chunkCancel + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 已取消 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + message: { type: string, example: 上传已取消 } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/init: + post: + tags: [预签名直传] + summary: 初始化预签名上传 + operationId: presignInit + description: | + S3 引擎返回 mode=direct(upload_url 为预签名 PUT URL);local/webdav 返回 mode=proxy + (upload_url=/presign/upload/proxy/{uploadID})。会话 900 秒有效。 + file_size 受动态策略上限(max_file_size>0 时为其,否则 uploadSize;403);保存策略同 /share/text。 + requestBody: + content: + application/json: + schema: + type: object + required: [file_name, file_size] + properties: + file_name: { type: string } + file_size: { type: integer, format: int64, minimum: 1 } + expire_value: { type: integer, default: 1 } + expire_style: { type: string, enum: [day, hour, minute, count, forever], default: day } + responses: + '200': + description: 上传会话 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/PresignInitData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '423': { $ref: '#/components/responses/RateLimited' } + '507': { $ref: '#/components/responses/InsufficientStorage' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/proxy/{uploadID}: + put: + tags: [预签名直传] + summary: 代理上传(proxy 模式) + operationId: presignProxy + description: multipart 字段 file;实际大小须与声明一致(±1KB);成功即建分享并删除会话。 + parameters: + - $ref: '#/components/parameters/UploadID' + requestBody: + content: + multipart/form-data: + schema: + type: object + required: [file] + properties: + file: { type: string, format: binary } + responses: + '200': + description: 取件码与文件名 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareFileData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/confirm/{uploadID}: + post: + tags: [预签名直传] + summary: 直传确认(direct 模式) + operationId: presignConfirm + description: | + 客户端完成 S3 PUT 后调用。服务端 HeadObject 核对实际对象: + 超过策略上限 → 删除对象、释放容量预留并 403;实际大小与声明差 >1KB → 400; + 前 64 字节做 magic bytes 校验(失败删除对象)。全部通过后创建分享记录。 + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 取件码与文件名 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/ShareFileData' } + '400': { $ref: '#/components/responses/BadRequest' } + '403': { $ref: '#/components/responses/Forbidden' } + '404': { $ref: '#/components/responses/NotFound' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/status/{uploadID}: + get: + tags: [预签名直传] + summary: 查询预签名会话 + operationId: presignStatus + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 会话状态 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + upload_id: { type: string } + file_name: { type: string } + file_size: { type: integer, format: int64 } + mode: { type: string, enum: [direct, proxy] } + created_at: { type: string } + expires_at: { type: string } + is_expired: { type: boolean } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /presign/upload/{uploadID}: + delete: + tags: [预签名直传] + summary: 取消预签名会话 + operationId: presignCancel + description: direct 模式会尽力清理已直传的对象。 + parameters: + - $ref: '#/components/parameters/UploadID' + responses: + '200': + description: 已取消 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + message: { type: string, example: 上传会话已取消 } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/login: + post: + tags: [管理后台] + summary: 管理员登录 + operationId: adminLogin + description: 失败 401 并计入 login 限流(423 超限)。 + requestBody: + content: + application/json: + schema: + type: object + required: [password] + properties: + password: { type: string } + responses: + '200': + description: JWT 会话 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/LoginData' } + '401': { $ref: '#/components/responses/Unauthorized' } + '423': { $ref: '#/components/responses/RateLimited' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/verify: + get: + tags: [管理后台] + summary: 校验管理员会话 + operationId: adminVerify + security: [{ bearerAuth: [] }] + responses: + '200': + description: 会话信息 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/LoginData' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/logout: + post: + tags: [管理后台] + summary: 管理员登出 + operationId: adminLogout + description: 无状态 JWT,客户端丢弃令牌即可。 + security: [{ bearerAuth: [] }] + responses: + '200': + description: 确认 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/dashboard: + get: + tags: [管理后台] + summary: 管理端仪表盘统计 + operationId: adminDashboard + security: [{ bearerAuth: [] }] + responses: + '200': + description: 计数/存储用量/最近文件等 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + totalFiles: { type: integer } + storageUsed: { type: string, example: '123456789' } + sysUptime: { type: integer, nullable: true, description: 启动时刻 Unix 毫秒 } + yesterdayCount: { type: integer } + yesterdaySize: { type: string } + todayCount: { type: integer } + todaySize: { type: string } + activeCount: { type: integer } + expiredCount: { type: integer } + textCount: { type: integer } + fileCount: { type: integer } + chunkedCount: { type: integer } + usedCount: { type: integer } + storageBackend: { type: string, enum: [local, s3, webdav] } + uploadSizeLimit: { type: integer, format: int64 } + openUpload: { type: integer } + enableChunk: { type: integer } + maxSaveSeconds: { type: integer, format: int64 } + topSuffixes: + type: array + items: + type: object + properties: + suffix: { type: string } + count: { type: integer } + recentFiles: + type: array + items: { $ref: '#/components/schemas/AdminFileItem' } + recentActivities: { type: array, items: { type: object } } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/list: + get: + tags: [管理后台] + summary: 分页查询分享列表 + operationId: adminFileList + security: [{ bearerAuth: [] }] + parameters: + - { name: page, in: query, schema: { type: integer, default: 1, minimum: 1 } } + - { name: size, in: query, schema: { type: integer, default: 10, minimum: 1, maximum: 100 } } + - { name: keyword, in: query, schema: { type: string } } + - { name: status, in: query, schema: { type: string, enum: [active, expired] } } + - { name: type, in: query, schema: { type: string, enum: [text, file, chunked] } } + - { name: sortBy, in: query, schema: { type: string, enum: [created_at, expired_at, name, size, used_count, code] } } + - { name: sortOrder, in: query, schema: { type: string, enum: [asc, desc], default: desc } } + responses: + '200': + description: 列表与统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + page: { type: integer } + size: { type: integer } + total: { type: integer } + summary: + type: object + properties: + totalFiles: { type: integer } + activeCount: { type: integer } + expiredCount: { type: integer } + textCount: { type: integer } + fileCount: { type: integer } + chunkedCount: { type: integer } + storageUsed: { type: integer, format: int64 } + usedCount: { type: integer, format: int64 } + data: + type: array + items: { $ref: '#/components/schemas/AdminFileItem' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/detail: + get: + tags: [管理后台] + summary: 文件详情(GET) + operationId: adminFileDetailGet + security: [{ bearerAuth: [] }] + parameters: + - $ref: '#/components/parameters/FileIDQuery' + responses: + '200': + description: 文件条目(文本分享额外含 content 全文) + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/AdminFileItem' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 文件详情(POST) + operationId: adminFileDetailPost + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [id] + properties: + id: { type: integer, format: int64 } + responses: + '200': + description: 同 GET 版本 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/AdminFileItem' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/update: + patch: + tags: [管理后台] + summary: 更新分享字段(主名) + operationId: adminFileUpdate + description: code 冲突 400;POST /admin/file/update 为兼容别名。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: { $ref: '#/components/schemas/FileUpdateInput' } + responses: + '200': + description: 更新成功(data 为字符串“更新成功”) + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 更新分享字段(POST 别名) + operationId: adminFileUpdateAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: { $ref: '#/components/schemas/FileUpdateInput' } + responses: + '200': + description: 更新成功 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/delete: + delete: + tags: [管理后台] + summary: 删除单个分享(主名) + operationId: adminFileDelete + description: 连带删除存储文件;POST /admin/file/delete 为兼容别名。 + security: [{ bearerAuth: [] }] + parameters: + - { name: id, in: query, schema: { type: integer, format: int64 }, description: 亦可放请求体 } + requestBody: + content: + application/json: + schema: + type: object + properties: + id: { type: integer, format: int64 } + responses: + '200': + description: 删除成功(data 为 null) + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 删除单个分享(POST 别名) + operationId: adminFileDeleteAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + properties: + id: { type: integer, format: int64 } + responses: + '200': + description: 删除成功 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/batch-delete: + post: + tags: [管理后台] + summary: 批量删除 + operationId: adminFileBatchDelete + description: DELETE 方法亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + delete: + tags: [管理后台] + summary: 批量删除(DELETE 别名) + operationId: adminFileBatchDeleteAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/batch-update: + patch: + tags: [管理后台] + summary: 批量更新过期策略 + operationId: adminFileBatchUpdate + description: expired_at / expired_count / clearExpiredAt 三选一;POST 亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + expired_at: { type: string, description: ISO 8601 } + expired_count: { type: integer } + clearExpiredAt: { type: boolean, description: 清空过期时间并置 expired_count=-1(永久) } + clear_expired_at: { type: boolean, description: 同 clearExpiredAt } + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 批量更新(POST 别名) + operationId: adminFileBatchUpdateAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + expired_at: { type: string } + expired_count: { type: integer } + clearExpiredAt: { type: boolean } + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/policy-action: + patch: + tags: [管理后台] + summary: 单文件过期策略动作 + operationId: adminFilePolicyAction + description: 动作:extend_24h / extend_7d / make_permanent / reset_download_limit;POST 亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: { $ref: '#/components/schemas/PolicyInput' } + responses: + '200': + description: 执行结果 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/PolicyResult' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 单文件策略动作(POST 别名) + operationId: adminFilePolicyActionAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: { $ref: '#/components/schemas/PolicyInput' } + responses: + '200': + description: 执行结果 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/PolicyResult' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/batch-policy-action: + patch: + tags: [管理后台] + summary: 批量过期策略动作 + operationId: adminFileBatchPolicyAction + description: 响应结构同批量更新;POST 亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + allOf: + - type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + - $ref: '#/components/schemas/PolicyInput' + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 批量策略动作(POST 别名) + operationId: adminFileBatchPolicyActionAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + allOf: + - type: object + required: [ids] + properties: + ids: { type: array, items: { type: integer, format: int64 } } + - $ref: '#/components/schemas/PolicyInput' + responses: + '200': + description: 批量统计 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/BatchStats' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/download: + get: + tags: [管理后台] + summary: 管理员下载原文件 + operationId: adminFileDownload + description: 不消耗取件次数;文件返回二进制流(支持 Range),文本分享返回 JSON。 + security: [{ bearerAuth: [] }] + parameters: + - $ref: '#/components/parameters/FileIDQuery' + responses: + '200': + description: 文件流或文本 JSON + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + application/octet-stream: + schema: { type: string, format: binary } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/file/preview: + get: + tags: [管理后台] + summary: 文本预览 + operationId: adminFilePreview + description: 仅文本分享可用(文件分享 400);maxChars 默认 4000(1~20000)。 + security: [{ bearerAuth: [] }] + parameters: + - $ref: '#/components/parameters/FileIDQuery' + - { name: maxChars, in: query, schema: { type: integer, default: 4000, minimum: 1, maximum: 20000 } } + responses: + '200': + description: 预览内容 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + id: { type: integer, format: int64 } + code: { type: string } + name: { type: string } + type: { type: string, example: text } + content: { type: string } + length: { type: integer } + previewLength: { type: integer } + truncated: { type: boolean } + maxChars: { type: integer } + createdAt: { type: string } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '404': { $ref: '#/components/responses/NotFound' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/config/get: + get: + tags: [管理后台] + summary: 读取运行时配置 + operationId: adminConfigGet + description: admin_token 屏蔽(恒空串)、jwt_secret 不下发;_engine_hint 提示引擎配置需重启。 + security: [{ bearerAuth: [] }] + responses: + '200': + description: 配置 KV + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + additionalProperties: true + properties: + site_name: { type: string } + logo_url: { type: string } + favicon_url: { type: string } + background_url: { type: string } + footer_text: { type: string } + footer_beian: { type: string } + notify_enabled: { type: integer, enum: [0, 1] } + openUpload: { type: integer } + uploadSize: { type: integer, format: int64 } + max_file_size: { type: integer, format: int64, description: '0=回落 uploadSize' } + max_save_count: { type: integer, description: '0=不限制' } + max_save_seconds: { type: integer, format: int64 } + allowed_file_types: { type: array, items: { type: string } } + expireStyle: { type: array, items: { type: string } } + storageLimit: { type: integer, format: int64 } + uploadCount: { type: integer } + uploadMinute: { type: integer } + admin_token: { type: string, example: '' } + _engine_hint: + type: object + properties: + storage_backend: { type: string } + note: { type: string } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/config/update: + patch: + tags: [管理后台] + summary: 部分更新配置(主名) + operationId: adminConfigUpdate + description: | + JSON 对象部分更新,未知键忽略;数值键自动转型;v2 起新键按 settings.KVSchema 校验 + (整型边界/字符串长度/列表非空,越界 400 中文错误);background_url 协议白名单 + (http(s)/data:image/站内相对路径);admin_token 明文自动哈希并轮换 jwt_secret + (全部令牌立即失效);adminSessionExpire 须 1~365 整天(默认 604800 即 7 天);notify_content 服务端白名单净化(仅保留文本与 );策略与限流修改立即生效,引擎配置需重启。 + POST /admin/config/update 为兼容别名。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + additionalProperties: true + properties: + site_name: { type: string } + logo_url: { type: string } + favicon_url: { type: string } + background_url: + type: string + maxLength: 2048 + description: '需求 ① 背景图;仅 http(s)、data:image/* 与站内相对路径(/开头),空串清除;非法协议 400' + footer_text: { type: string, maxLength: 2000, description: '需求 ② 页脚自定义内容' } + footer_beian: { type: string, maxLength: 128, description: '需求 ② 备案号' } + notify_enabled: { type: integer, enum: [0, 1], description: '需求 ③ 通知开关' } + notify_title: { type: string, maxLength: 128 } + notify_content: { type: string, maxLength: 2000 } + openUpload: { type: integer, enum: [0, 1] } + uploadSize: { type: integer, format: int64, minimum: 1024, maximum: 10737418240 } + max_file_size: { type: integer, format: int64, minimum: 0, maximum: 10737418240, description: '需求 ⑩ 存储策略-单文件上限字节;0=回落 uploadSize' } + max_save_count: { type: integer, minimum: 0, maximum: 100000, description: '需求 ④ 单次分享最大可取次数上限;0=不限制' } + max_save_seconds: { type: integer, format: int64, minimum: 0, maximum: 31536000, description: '需求 ④ 最长保存秒数上限;0=默认 7 天兜底' } + allowed_file_types: + oneOf: + - type: array + items: { type: string } + minItems: 1 + - type: string + description: 逗号分隔亦可;"*" 不限制 + expireStyle: + oneOf: + - type: array + items: { type: string } + minItems: 1 + - type: string + description: 允许的过期方式白名单(day/hour/minute/forever/count 子集) + storageLimit: { type: integer, format: int64, minimum: 0 } + uploadCount: { type: integer, minimum: 1, maximum: 10000 } + uploadMinute: { type: integer, minimum: 1, maximum: 1440 } + errorCount: { type: integer } + errorMinute: { type: integer } + loginCount: { type: integer } + loginMinute: { type: integer } + admin_token: { type: string, description: 明文密码自动哈希并轮换 jwt_secret;空串忽略 } + adminSessionExpire: { type: integer, default: 604800, description: 秒,须 86400 的 1~365 整数倍(默认 7 天) } + responses: + '200': + description: 保存成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 部分更新配置(POST 别名) + operationId: adminConfigUpdateAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + additionalProperties: true + responses: + '200': + description: 保存成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/storage/switch: + post: + tags: [admin] + summary: 存储引擎热切换(v3) + description: | + 运行时切换存储引擎(local|s3|webdav)。构建新引擎并做健康检查, + 通过才生效;失败返回 503 且保持原引擎。成功后持久化 storage_engine KV, + 重启后沿用。 + operationId: adminStorageSwitch + security: + - bearerAuth: [] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [engine] + properties: + engine: + type: string + enum: [local, s3, webdav] + responses: + "200": + description: 切换成功 + content: + application/json: + schema: + allOf: + - $ref: "#/components/schemas/Envelope" + - type: object + properties: + data: + type: object + properties: + ok: { type: boolean } + engine: { type: string } + "400": { $ref: "#/components/responses/BadRequest" } + "401": { $ref: "#/components/responses/Unauthorized" } + "503": { $ref: "#/components/responses/ServiceUnavailable" } + + /admin/settings/password: + patch: + tags: [管理后台] + summary: 修改管理员密码(主名) + operationId: adminChangePassword + description: 新密码 ≥8 位;成功后轮换 jwt_secret,全部旧令牌失效(401)。POST 亦可。 + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [old_password, new_password] + properties: + old_password: { type: string } + new_password: { type: string, minLength: 8 } + responses: + '200': + description: 修改成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + post: + tags: [管理后台] + summary: 修改管理员密码(POST 别名) + operationId: adminChangePasswordAlias + deprecated: true + security: [{ bearerAuth: [] }] + requestBody: + content: + application/json: + schema: + type: object + required: [old_password, new_password] + properties: + old_password: { type: string } + new_password: { type: string, minLength: 8 } + responses: + '200': + description: 修改成功 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: { $ref: '#/components/schemas/OkData' } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/audit/list: + get: + tags: [审计日志] + summary: 分页查询审计日志(主名) + operationId: adminAuditList + description: | + 需求 ③ 审计查询。行字段 snake_case 为主(camelCase 兼容双份)。 + action: upload|download;result: success|denied|failed;时间参数 ISO 8601。 + security: [{ bearerAuth: [] }] + parameters: + - { name: page, in: query, schema: { type: integer, default: 1, minimum: 1 } } + - { name: size, in: query, schema: { type: integer, default: 20, minimum: 1, maximum: 200 }, description: 兼容 pageSize } + - { name: action, in: query, schema: { type: string, enum: [upload, download] } } + - { name: result, in: query, schema: { type: string, enum: [success, denied, failed] } } + - { name: ip, in: query, schema: { type: string } } + - { name: start_time, in: query, schema: { type: string, example: '2025-06-01T00:00:00+08:00' } } + - { name: end_time, in: query, schema: { type: string, example: '2025-06-02T00:00:00+08:00' } } + responses: + '200': + description: 审计日志分页 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + data: + type: array + items: { $ref: '#/components/schemas/AuditItem' } + total: { type: integer } + page: { type: integer } + size: { type: integer } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + + /admin/audit/logs: + get: + tags: [审计日志] + summary: 分页查询审计日志(别名) + operationId: adminAuditLogs + deprecated: true + description: 与 /admin/audit/list 完全相同(同一 handler 的兼容别名)。 + security: [{ bearerAuth: [] }] + parameters: + - { name: page, in: query, schema: { type: integer, default: 1 } } + - { name: size, in: query, schema: { type: integer, default: 20 } } + - { name: action, in: query, schema: { type: string, enum: [upload, download] } } + - { name: result, in: query, schema: { type: string, enum: [success, denied, failed] } } + - { name: ip, in: query, schema: { type: string } } + - { name: start_time, in: query, schema: { type: string } } + - { name: end_time, in: query, schema: { type: string } } + responses: + '200': + description: 审计日志分页 + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Envelope' + - type: object + properties: + data: + type: object + properties: + data: + type: array + items: { $ref: '#/components/schemas/AuditItem' } + total: { type: integer } + page: { type: integer } + size: { type: integer } + '400': { $ref: '#/components/responses/BadRequest' } + '401': { $ref: '#/components/responses/Unauthorized' } + '428': { $ref: '#/components/responses/NotInitialized' } + +components: + securitySchemes: + bearerAuth: + type: http + scheme: bearer + bearerFormat: JWT + description: POST /admin/login 获取 + parameters: + CodeQuery: + name: code + in: query + required: true + schema: { type: string } + description: 取件码 + UploadID: + name: uploadID + in: path + required: true + schema: { type: string } + description: 上传会话 ID + FileIDQuery: + name: id + in: query + required: true + schema: { type: integer, format: int64 } + description: 文件记录 ID + responses: + BadRequest: + description: 参数/格式错误 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 400, msg: '过期时间类型错误' } + Unauthorized: + description: 未认证 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 401, msg: '密码错误' } + Forbidden: + description: 拒绝(类型/鉴权/上限) + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 403, msg: '不允许上传该类型文件' } + NotFound: + description: 不存在/已过期 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 404, msg: '文件不存在' } + RangeNotSatisfiable: + description: Range 越界 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 416, msg: '请求范围超出文件大小' } + RateLimited: + description: 限流超限 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 423, msg: '请求次数过多,请稍后再试' } + NotInitialized: + description: 系统未初始化(除 /setup 与 /api/v1/health 外) + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 428, msg: '系统未初始化,请先完成初始化' } + NotImplemented: + description: 引擎不支持 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 501, msg: '当前存储引擎不支持该操作' } + ServiceUnavailable: + description: 存储不可用 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 503, msg: '存储服务不可用,请稍后再试' } + InsufficientStorage: + description: 容量超限 + content: + application/json: + schema: { $ref: '#/components/schemas/Envelope' } + example: { code: 507, msg: '存储空间已达到管理员设置的容量上限' } + schemas: + Envelope: + type: object + description: 统一响应封装(HTTP 状态码 = code;失败时 data 缺省) + required: [code, msg] + properties: + code: { type: integer, example: 200 } + msg: { type: string, example: ok } + data: { description: 业务数据,失败时缺省 } + OkData: + type: object + properties: + ok: { type: boolean, example: true } + ShareMetadata: + type: object + properties: + code: { type: string } + name: { type: string } + size: { type: integer, format: int64 } + type: { type: string, enum: [text, file] } + is_text: { type: boolean } + created_at: { type: string } + expired_at: { type: string, nullable: true } + expires_at: { type: string, nullable: true } + expired_count: { type: integer, description: '-1 按时间/永久;>0 次数型限额' } + used_count: { type: integer } + remaining_downloads: { type: integer, nullable: true } + ShareDetail: + allOf: + - $ref: '#/components/schemas/ShareMetadata' + - type: object + properties: + text: { type: string, description: 文本内容或下载地址 } + content: { type: string, description: 文本内容(仅文本分享) } + download_url: { type: string, nullable: true, description: 代理地址或 S3 预签名直链 } + ShareFileData: + type: object + properties: + code: { type: string } + name: { type: string } + ChunkInitData: + type: object + properties: + existed: { type: boolean, example: false } + upload_id: { type: string } + chunk_size: { type: integer, format: int64 } + total_chunks: { type: integer } + uploaded_chunks: { type: array, items: { type: integer } } + ChunkUploadData: + type: object + properties: + chunk_hash: { type: string } + chunk_index: { type: integer } + skipped: { type: boolean, description: 幂等命中已传分片时为 true } + ChunkStatusData: + type: object + properties: + upload_id: { type: string } + file_name: { type: string } + file_size: { type: integer, format: int64 } + chunk_size: { type: integer, format: int64 } + total_chunks: { type: integer } + uploaded_chunks: { type: array, items: { type: integer } } + progress: { type: number } + PresignInitData: + type: object + properties: + upload_id: { type: string } + upload_url: { type: string, description: 'direct=S3 预签名 PUT URL;proxy=/presign/upload/proxy/{id}' } + mode: { type: string, enum: [direct, proxy] } + expires_in: { type: integer, example: 900 } + file_path: { type: string } + proxy_upload_url: { type: string, description: '仅 proxy 模式,与 upload_url 等价' } + legacy_proxy_upload_url: { type: string, description: '仅 proxy 模式;/api 前缀兼容别名,已废弃' } + LoginData: + type: object + properties: + id: { type: string, example: admin } + username: { type: string, example: admin } + token: { type: string } + token_type: { type: string, example: Bearer } + expires_at: { type: integer, format: int64, description: Unix 秒 } + expires_in: { type: integer, description: 秒 } + AdminFileItem: + type: object + description: snake_case 与 camelCase 双份输出(文档以 snake_case 为准) + properties: + id: { type: integer, format: int64 } + code: { type: string } + name: { type: string } + prefix: { type: string } + suffix: { type: string } + size: { type: integer, format: int64 } + is_text: { type: boolean } + is_chunked: { type: boolean } + is_expired: { type: boolean } + expired_at: { type: string, nullable: true } + expired_count: { type: integer } + used_count: { type: integer } + created_at: { type: string } + has_download_limit: { type: boolean } + is_permanent: { type: boolean } + remaining_downloads: { type: integer, nullable: true } + file_hash: { type: string, nullable: true } + text: { type: boolean, description: true 表示为文本分享 } + FileUpdateInput: + type: object + required: [id] + properties: + id: { type: integer, format: int64 } + code: { type: string } + prefix: { type: string } + suffix: { type: string } + expired_at: { type: string, description: ISO 8601 } + expired_count: { type: integer } + PolicyInput: + type: object + required: [action] + properties: + id: { type: integer, format: int64 } + action: { type: string, enum: [extend_24h, extend_7d, make_permanent, reset_download_limit] } + downloadLimit: { type: integer, minimum: 1, description: 仅 reset_download_limit;默认 5 } + PolicyResult: + type: object + properties: + id: { type: integer, format: int64 } + action: { type: string } + BatchStats: + type: object + description: 请求/成功/缺失/失败统计(snake_case 与 camelCase 双份) + properties: + requestedCount: { type: integer } + deletedCount: { type: integer, description: 仅批量删除 } + updatedCount: { type: integer, description: 仅批量更新 } + missingCount: { type: integer } + failedCount: { type: integer } + deleted: { type: array, items: { type: integer, format: int64 } } + missing: { type: array, items: { type: integer, format: int64 } } + failed: + type: array + items: + type: object + properties: + id: { type: integer, format: int64 } + reason: { type: string } + AuditItem: + type: object + description: 需求 ③ 审计行(snake_case 与 camelCase 双份) + properties: + id: { type: integer, format: int64 } + action: { type: string, enum: [upload, download] } + file_code: { type: string } + file_name: { type: string } + size_bytes: { type: integer, format: int64 } + transferred_bytes: { type: integer, format: int64 } + ip: { type: string } + user_agent: { type: string } + device_os: { type: string } + device_browser: { type: string } + device_type: { type: string } + actor: { type: string, enum: [admin, guest] } + result: { type: string, enum: [success, denied, failed] } + error_msg: { type: string } + duration_ms: { type: integer, format: int64 } + created_at: { type: string } + +security: [] +`,S=Object.assign({"../../../docs/api/00-overview.md":p,"../../../docs/api/01-auth.md":d,"../../../docs/api/02-text-share.md":c,"../../../docs/api/03-file-share.md":l,"../../../docs/api/04-pickup.md":m,"../../../docs/api/05-chunk-upload.md":u,"../../../docs/api/06-presign.md":g,"../../../docs/api/07-admin.md":_,"../../../docs/api/08-audit.md":y,"../../../docs/api/09-storage.md":h,"../../../docs/api/10-config.md":f,"../../../docs/api/11-errors.md":x,"../../../docs/api/12-logo.md":b}),v=["README","share","chunk","presign","admin","audit","errors","config","logo","webdav","env"];function j(n){return(n.split("/").pop()??n).replace(/\.md$/,"")}function E(n,e){const o=/^#\s+(.+)$/m.exec(n);return o?o[1].trim():e}const r=Object.entries(S).map(([n,e])=>{const o=j(n),s=v.indexOf(o);return{slug:o,title:E(e,o),embedded:e,order:s>=0?s:100+o.localeCompare("")}}).sort((n,e)=>n.order-e.order||n.slug.localeCompare(e.slug));r.length>0;const k=Object.assign({"../../../docs/openapi.yaml":T}),O=Object.values(k)[0]??null;async function C(n){if(n.embedded!==null)return n.embedded;const{API_BASE:e}=await i(async()=>{const{API_BASE:t}=await import("./index-QLbKGtH7.js").then(a=>a.aD);return{API_BASE:t}},__vite__mapDeps([0,1])),o=`${e}/docs/api/${encodeURIComponent(n.slug)}.md`,s=await fetch(o);if(!s.ok)throw new Error(`文档加载失败(HTTP ${s.status})`);return s.text()}async function I(){try{const{API_BASE:n}=await i(async()=>{const{API_BASE:t}=await import("./index-QLbKGtH7.js").then(a=>a.aD);return{API_BASE:t}},__vite__mapDeps([0,1])),e=await fetch(`${n}/docs/api/index.json`);if(!e.ok)return[];const o=await e.json(),s=new Set(r.map(t=>t.slug));return o.filter(t=>t.slug&&!s.has(t.slug)).map(t=>({slug:t.slug,title:t.title??t.slug,embedded:null,order:200}))}catch{return[]}}export{I as a,r as d,O as e,C as l}; diff --git a/server/web/dist/assets/index-D7AAbqvI.js b/server/web/dist/assets/index-D7AAbqvI.js new file mode 100644 index 0000000..571826a --- /dev/null +++ b/server/web/dist/assets/index-D7AAbqvI.js @@ -0,0 +1,28 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomeView-DvJMP0hn.js","assets/PageShell-D3dyUalL.js","assets/SiteNav.vue_vue_type_script_setup_true_lang-B5OHbKDQ.js","assets/PageShell-PYQzNiuf.css","assets/share-x2wQCCnt.js","assets/HomeView-DcN_X0wH.css","assets/PickupView-CVVPsUZo.js","assets/LoginView-DEDthjQ1.js","assets/auth-DjiKbqje.js","assets/admin-uFxGdgNa.js","assets/LoginView-BgHqRIwi.css","assets/AdminLayout-BLFLLWhV.js","assets/FilesView-CmMTGitv.js","assets/Pager.vue_vue_type_script_setup_true_lang-g_dGRh7Y.js","assets/AuditView-TNYuJPHS.js","assets/AuditView-f2PBwbQe.css","assets/SettingsView-DKQCWWuY.js","assets/SettingsView-DwNwpsFG.css","assets/DocsView-6gYCnmr9.js","assets/docsSource-CuVILP5D.js","assets/markdown-B5D8JARp.js","assets/OpenApiView-B6wLMzyn.js","assets/swagger-CqkleIqs.js","assets/OpenApiView-BCH8BgeP.css","assets/NotFoundView--KLulUeE.js"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();function $l(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Se={},dr=[],Gt=()=>{},Fc=()=>!1,Jn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Qn=e=>e.startsWith("onUpdate:"),Be=Object.assign,Bl=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},zd=Object.prototype.hasOwnProperty,_e=(e,t)=>zd.call(e,t),oe=Array.isArray,To=e=>un(e)==="[object Map]",er=e=>un(e)==="[object Set]",Ta=e=>un(e)==="[object Date]",le=e=>typeof e=="function",we=e=>typeof e=="string",yt=e=>typeof e=="symbol",be=e=>e!==null&&typeof e=="object",Oc=e=>(be(e)||le(e))&&le(e.then)&&le(e.catch),Mc=Object.prototype.toString,un=e=>Mc.call(e),Ud=e=>un(e).slice(8,-1),Nc=e=>un(e)==="[object Object]",Zn=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Hr=$l(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ei=e=>{const t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},Vd=/-\w/g,ct=ei(e=>e.replace(Vd,t=>t.slice(1).toUpperCase())),jd=/\B([A-Z])/g,Ro=ei(e=>e.replace(jd,"-$1").toLowerCase()),ti=ei(e=>e.charAt(0).toUpperCase()+e.slice(1)),Di=ei(e=>e?`on${ti(e)}`:""),Vt=(e,t)=>!Object.is(e,t),In=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:o})},oi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Gd=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let Pa;const ri=()=>Pa||(Pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ni(e){if(oe(e)){const t={};for(let o=0;o{if(o){const r=o.split(Yd);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ii(e){let t="";if(we(e))t=e;else if(oe(e))for(let o=0;oPo(o,t))}const $c=e=>!!(e&&e.__v_isRef===!0),Dn=e=>we(e)?e:e==null?"":oe(e)||be(e)&&(e.toString===Mc||!le(e.toString))?$c(e)?Dn(e.value):JSON.stringify(e,Bc,2):String(e),Bc=(e,t)=>$c(t)?Bc(e,t.value):To(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,n],i)=>(o[Ri(r,i)+" =>"]=n,o),{})}:er(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>Ri(o))}:yt(t)?Ri(t):be(t)&&!oe(t)&&!Nc(t)?String(t):t,Ri=(e,t="")=>{var o;return yt(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};let He;class Wc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&He&&(He.active?(this.parent=He,this.index=(He.scopes||(He.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes){const r=this.scopes.slice();for(t=0,o=r.length;t0&&--this._on===0){if(He===this)He=this.prevScope;else{let t=He;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let o,r;for(o=0,r=this.effects.length;o0)return;if(Br){let t=Br;for(Br=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;$r;){let t=$r;for($r=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=o}}if(e)throw e}function Gc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Kc(e){let t,o=e.depsTail,r=o;for(;r;){const n=r.prevDep;r.version===-1?(r===o&&(o=n),Vl(r),op(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=o}function rl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Yc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Yc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kr)||(e.globalVersion=Kr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!rl(e))))return;e.flags|=2;const t=e.dep,o=Te,r=Nt;Te=e,Nt=!0;try{Gc(e);const n=e.fn(e._value);(t.version===0||Vt(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{Te=o,Nt=r,Kc(e),e.flags&=-3}}function Vl(e,t=!1){const{dep:o,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),o.subs===e&&(o.subs=r,!r&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)Vl(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function op(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Nt=!0;const qc=[];function so(){qc.push(Nt),Nt=!1}function co(){const e=qc.pop();Nt=e===void 0?!0:e}function Aa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=Te;Te=void 0;try{t()}finally{Te=o}}}let Kr=0;class rp{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class jl{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Te||!Nt||Te===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==Te)o=this.activeLink=new rp(Te,this),Te.deps?(o.prevDep=Te.depsTail,Te.depsTail.nextDep=o,Te.depsTail=o):Te.deps=Te.depsTail=o,Xc(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const r=o.nextDep;r.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=r),o.prevDep=Te.depsTail,o.nextDep=void 0,Te.depsTail.nextDep=o,Te.depsTail=o,Te.deps===o&&(Te.deps=r)}return o}trigger(t){this.version++,Kr++,this.notify(t)}notify(t){zl();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{Ul()}}}function Xc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Xc(r)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const Rn=new WeakMap,Jo=Symbol(""),nl=Symbol(""),Yr=Symbol("");function Ye(e,t,o){if(Nt&&Te){let r=Rn.get(e);r||Rn.set(e,r=new Map);let n=r.get(o);n||(r.set(o,n=new jl),n.map=r,n.key=o),n.track()}}function ro(e,t,o,r,n,i){const l=Rn.get(e);if(!l){Kr++;return}const a=s=>{s&&s.trigger()};if(zl(),t==="clear")l.forEach(a);else{const s=oe(e),c=s&&Zn(o);if(s&&o==="length"){const u=Number(r);l.forEach((f,d)=>{(d==="length"||d===Yr||!yt(d)&&d>=u)&&a(f)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),c&&a(l.get(Yr)),t){case"add":s?c&&a(l.get("length")):(a(l.get(Jo)),To(e)&&a(l.get(nl)));break;case"delete":s||(a(l.get(Jo)),To(e)&&a(l.get(nl)));break;case"set":To(e)&&a(l.get(Jo));break}}Ul()}function np(e,t){const o=Rn.get(e);return o&&o.get(t)}function ir(e){const t=ge(e);return t===e?t:(Ye(t,"iterate",Yr),vt(e)?t:t.map(kt))}function li(e){return Ye(e=ge(e),"iterate",Yr),e}function zt(e,t){return uo(e)?gr(lo(e)?kt(t):t):kt(t)}const ip={__proto__:null,[Symbol.iterator](){return Oi(this,Symbol.iterator,e=>zt(this,e))},concat(...e){return ir(this).concat(...e.map(t=>oe(t)?ir(t):t))},entries(){return Oi(this,"entries",e=>(e[1]=zt(this,e[1]),e))},every(e,t){return Xt(this,"every",e,t,void 0,arguments)},filter(e,t){return Xt(this,"filter",e,t,o=>o.map(r=>zt(this,r)),arguments)},find(e,t){return Xt(this,"find",e,t,o=>zt(this,o),arguments)},findIndex(e,t){return Xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xt(this,"findLast",e,t,o=>zt(this,o),arguments)},findLastIndex(e,t){return Xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mi(this,"includes",e)},indexOf(...e){return Mi(this,"indexOf",e)},join(e){return ir(this).join(e)},lastIndexOf(...e){return Mi(this,"lastIndexOf",e)},map(e,t){return Xt(this,"map",e,t,void 0,arguments)},pop(){return Ar(this,"pop")},push(...e){return Ar(this,"push",e)},reduce(e,...t){return wa(this,"reduce",e,t)},reduceRight(e,...t){return wa(this,"reduceRight",e,t)},shift(){return Ar(this,"shift")},some(e,t){return Xt(this,"some",e,t,void 0,arguments)},splice(...e){return Ar(this,"splice",e)},toReversed(){return ir(this).toReversed()},toSorted(e){return ir(this).toSorted(e)},toSpliced(...e){return ir(this).toSpliced(...e)},unshift(...e){return Ar(this,"unshift",e)},values(){return Oi(this,"values",e=>zt(this,e))}};function Oi(e,t,o){const r=li(e),n=r[t]();return r!==e&&!vt(e)&&(n._next=n.next,n.next=()=>{const i=n._next();return i.done||(i.value=o(i.value)),i}),n}const lp=Array.prototype;function Xt(e,t,o,r,n,i){const l=li(e),a=l!==e&&!vt(e),s=l[t];if(s!==lp[t]){const f=s.apply(e,i);return a?kt(f):f}let c=o;l!==e&&(a?c=function(f,d){return o.call(this,zt(e,f),d,e)}:o.length>2&&(c=function(f,d){return o.call(this,f,d,e)}));const u=s.call(l,c,r);return a&&n?n(u):u}function wa(e,t,o,r){const n=li(e),i=n!==e&&!vt(e);let l=o,a=!1;n!==e&&(i?(a=r.length===0,l=function(c,u,f){return a&&(a=!1,c=zt(e,c)),o.call(this,c,zt(e,u),f,e)}):o.length>3&&(l=function(c,u,f){return o.call(this,c,u,f,e)}));const s=n[t](l,...r);return a?zt(e,s):s}function Mi(e,t,o){const r=ge(e);Ye(r,"iterate",Yr);const n=r[t](...o);return(n===-1||n===!1)&&ai(o[0])?(o[0]=ge(o[0]),r[t](...o)):n}function Ar(e,t,o=[]){so(),zl();const r=ge(e)[t].apply(e,o);return Ul(),co(),r}const ap=$l("__proto__,__v_isRef,__isVue"),Jc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(yt));function sp(e){yt(e)||(e=String(e));const t=ge(this);return Ye(t,"has",e),t.hasOwnProperty(e)}class Qc{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,r){if(o==="__v_skip")return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!n;if(o==="__v_isReadonly")return n;if(o==="__v_isShallow")return i;if(o==="__v_raw")return r===(n?i?bp:ou:i?tu:eu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=oe(t);if(!n){let s;if(l&&(s=ip[o]))return s;if(o==="hasOwnProperty")return sp}const a=Reflect.get(t,o,Le(t)?t:r);if((yt(o)?Jc.has(o):ap(o))||(n||Ye(t,"get",o),i))return a;if(Le(a)){const s=l&&Zn(o)?a:a.value;return n&&be(s)?ll(s):s}return be(a)?n?ll(a):fn(a):a}}class Zc extends Qc{constructor(t=!1){super(!1,t)}set(t,o,r,n){let i=t[o];const l=oe(t)&&Zn(o);if(!this._isShallow){const c=uo(i);if(!vt(r)&&!uo(r)&&(i=ge(i),r=ge(r)),!l&&Le(i)&&!Le(r))return c||(i.value=r),!0}const a=l?Number(o)e,Cn=e=>Reflect.getPrototypeOf(e);function pp(e,t,o){return function(...r){const n=this.__v_raw,i=ge(n),l=To(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,c=n[e](...r),u=o?il:t?gr:kt;return!t&&Ye(i,"iterate",s?nl:Jo),Be(Object.create(c),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}}})}}function bn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mp(e,t){const o={get(n){const i=this.__v_raw,l=ge(i),a=ge(n);e||(Vt(n,a)&&Ye(l,"get",n),Ye(l,"get",a));const{has:s}=Cn(l),c=t?il:e?gr:kt;if(s.call(l,n))return c(i.get(n));if(s.call(l,a))return c(i.get(a));i!==l&&i.get(n)},get size(){const n=this.__v_raw;return!e&&Ye(ge(n),"iterate",Jo),n.size},has(n){const i=this.__v_raw,l=ge(i),a=ge(n);return e||(Vt(n,a)&&Ye(l,"has",n),Ye(l,"has",a)),n===a?i.has(n):i.has(n)||i.has(a)},forEach(n,i){const l=this,a=l.__v_raw,s=ge(a),c=t?il:e?gr:kt;return!e&&Ye(s,"iterate",Jo),a.forEach((u,f)=>n.call(i,c(u),c(f),l))}};return Be(o,e?{add:bn("add"),set:bn("set"),delete:bn("delete"),clear:bn("clear")}:{add(n){const i=ge(this),l=Cn(i),a=ge(n),s=!t&&!vt(n)&&!uo(n)?a:n;return l.has.call(i,s)||Vt(n,s)&&l.has.call(i,n)||Vt(a,s)&&l.has.call(i,a)||(i.add(s),ro(i,"add",s,s)),this},set(n,i){!t&&!vt(i)&&!uo(i)&&(i=ge(i));const l=ge(this),{has:a,get:s}=Cn(l);let c=a.call(l,n);c||(n=ge(n),c=a.call(l,n));const u=s.call(l,n);return l.set(n,i),c?Vt(i,u)&&ro(l,"set",n,i):ro(l,"add",n,i),this},delete(n){const i=ge(this),{has:l,get:a}=Cn(i);let s=l.call(i,n);s||(n=ge(n),s=l.call(i,n)),a&&a.call(i,n);const c=i.delete(n);return s&&ro(i,"delete",n,void 0),c},clear(){const n=ge(this),i=n.size!==0,l=n.clear();return i&&ro(n,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=pp(n,e,t)}),o}function Gl(e,t){const o=mp(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(_e(o,n)&&n in r?o:r,n,i)}const hp={get:Gl(!1,!1)},gp={get:Gl(!1,!0)},Cp={get:Gl(!0,!1)};const eu=new WeakMap,tu=new WeakMap,ou=new WeakMap,bp=new WeakMap;function xp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fn(e){return uo(e)?e:Kl(e,!1,up,hp,eu)}function ru(e){return Kl(e,!1,dp,gp,tu)}function ll(e){return Kl(e,!0,fp,Cp,ou)}function Kl(e,t,o,r,n){if(!be(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=n.get(e);if(i)return i;const l=xp(Ud(e));if(l===0)return e;const a=new Proxy(e,l===2?r:o);return n.set(e,a),a}function lo(e){return uo(e)?lo(e.__v_raw):!!(e&&e.__v_isReactive)}function uo(e){return!!(e&&e.__v_isReadonly)}function vt(e){return!!(e&&e.__v_isShallow)}function ai(e){return e?!!e.__v_raw:!1}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function qr(e){return!_e(e,"__v_skip")&&Object.isExtensible(e)&&kc(e,"__v_skip",!0),e}const kt=e=>be(e)?fn(e):e,gr=e=>be(e)?ll(e):e;function Le(e){return e?e.__v_isRef===!0:!1}function mt(e){return nu(e,!1)}function Yl(e){return nu(e,!0)}function nu(e,t){return Le(e)?e:new _p(e,t)}class _p{constructor(t,o){this.dep=new jl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:ge(t),this._value=o?t:kt(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,r=this.__v_isShallow||vt(t)||uo(t);t=r?t:ge(t),Vt(t,o)&&(this._rawValue=t,this._value=r?t:kt(t),this.dep.trigger())}}function bt(e){return Le(e)?e.value:e}const vp={get:(e,t,o)=>t==="__v_raw"?e:bt(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const n=e[t];return Le(n)&&!Le(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function iu(e){return lo(e)?e:new Proxy(e,vp)}function Sp(e){const t=oe(e)?new Array(e.length):{};for(const o in e)t[o]=lu(e,o);return t}class yp{constructor(t,o,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=yt(o)?o:String(o),this._raw=ge(t);let n=!0,i=t;if(!oe(t)||yt(this._key)||!Zn(this._key))do n=!ai(i)||vt(i);while(n&&(i=i.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=bt(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Le(this._raw[this._key])){const o=this._object[this._key];if(Le(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return np(this._raw,this._key)}}class Ep{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function aT(e,t,o){return Le(e)?e:le(e)?new Ep(e):be(e)&&arguments.length>1?lu(e,t,o):mt(e)}function lu(e,t,o){return new yp(e,t,o)}class Tp{constructor(t,o,r){this.fn=t,this.setter=o,this._value=void 0,this.dep=new jl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Te!==this)return jc(this,!0),!0}get value(){const t=this.dep.track();return Yc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Pp(e,t,o=!1){let r,n;return le(e)?r=e:(r=e.get,n=e.set),new Tp(r,n,o)}const xn={},Fn=new WeakMap;let Uo;function Ip(e,t=!1,o=Uo){if(o){let r=Fn.get(o);r||Fn.set(o,r=[]),r.push(e)}}function Ap(e,t,o=Se){const{immediate:r,deep:n,once:i,scheduler:l,augmentJob:a,call:s}=o,c=y=>n?y:vt(y)||n===!1||n===0?no(y,1):no(y);let u,f,d,p,g=!1,C=!1;if(Le(e)?(f=()=>e.value,g=vt(e)):lo(e)?(f=()=>c(e),g=!0):oe(e)?(C=!0,g=e.some(y=>lo(y)||vt(y)),f=()=>e.map(y=>{if(Le(y))return y.value;if(lo(y))return c(y);if(le(y))return s?s(y,2):y()})):le(e)?t?f=s?()=>s(e,2):e:f=()=>{if(d){so();try{d()}finally{co()}}const y=Uo;Uo=u;try{return s?s(e,3,[p]):e(p)}finally{Uo=y}}:f=Gt,t&&n){const y=f,w=n===!0?1/0:n;f=()=>no(y(),w)}const S=zc(),E=()=>{u.stop(),S&&S.active&&Bl(S.effects,u)};if(i&&t){const y=t;t=(...w)=>{const L=y(...w);return E(),L}}let T=C?new Array(e.length).fill(xn):xn;const v=y=>{if(!(!(u.flags&1)||!u.dirty&&!y))if(t){const w=u.run();if(y||n||g||(C?w.some((L,D)=>Vt(L,T[D])):Vt(w,T))){d&&d();const L=Uo;Uo=u;try{const D=[w,T===xn?void 0:C&&T[0]===xn?[]:T,p];T=w,s?s(t,3,D):t(...D)}finally{Uo=L}}}else u.run()};return a&&a(v),u=new Uc(f),u.scheduler=l?()=>l(v,!1):v,p=y=>Ip(y,!1,u),d=u.onStop=()=>{const y=Fn.get(u);if(y){if(s)s(y,4);else for(const w of y)w();Fn.delete(u)}},t?r?v(!0):T=u.run():l?l(v.bind(null,!0),!0):u.run(),E.pause=u.pause.bind(u),E.resume=u.resume.bind(u),E.stop=E,E}function no(e,t=1/0,o){if(t<=0||!be(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,Le(e))no(e.value,t,o);else if(oe(e))for(let r=0;r{no(r,t,o)});else if(Nc(e)){for(const r in e)no(e[r],t,o);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&no(e[r],t,o)}return e}function dn(e,t,o,r){try{return r?e(...r):e()}catch(n){si(n,t,o)}}function wt(e,t,o,r){if(le(e)){const n=dn(e,t,o,r);return n&&Oc(n)&&n.catch(i=>{si(i,t,o)}),n}if(oe(e)){const n=[];for(let i=0;i>>1,n=at[r],i=Xr(n);i=Xr(o)?at.push(e):at.splice(Lp(t),0,e),e.flags|=1,su()}}function su(){On||(On=au.then(uu))}function Dp(e){if(!oe(e))So&&e.id===-1?So.splice(sr+1,0,e):e.flags&1||(pr.push(e),e.flags|=1);else for(let t=0;tXr(o)-Xr(r));if(pr.length=0,So){for(let o=0;oe.id==null?e.flags&2?-1:1/0:e.id;function uu(e){try{for(Wt=0;Wt{r._d&&$n(-1);const i=Mn(t),l=ao.length;let a;try{a=e(...n)}finally{for(let s=ao.length;s>l;s--)oa();Mn(i),r._d&&$n(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function sT(e,t){if(Ve===null)return e;const o=hi(Ve),r=e.dirs||(e.dirs=[]);for(let n=0;n1)return o&&le(t)?t.call(r&&r.proxy):t}}function Rp(){return!!(Ao()||Qo)}const Fp=Symbol.for("v-scx"),Op=()=>Ze(Fp);function cT(e,t){return Xl(e,null,t)}function St(e,t,o){return Xl(e,t,o)}function Xl(e,t,o=Se){const{immediate:r,deep:n,flush:i,once:l}=o,a=Be({},o),s=t&&r||!t&&i!=="post";let c;if(on){if(i==="sync"){const p=Op();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!s){const p=()=>{};return p.stop=Gt,p.resume=Gt,p.pause=Gt,p}}const u=Qe;a.call=(p,g,C)=>wt(p,u,g,C);let f=!1;i==="post"?a.scheduler=p=>{nt(p,u&&u.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(p,g)=>{g?p():ql(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=Ap(e,t,a);return on&&(c?c.push(d):s&&d()),d}function Mp(e,t,o){const r=this.proxy,n=we(e)?e.includes(".")?pu(r,e):()=>r[e]:e.bind(r,r);let i;le(t)?i=t:(i=t.handler,o=t);const l=mn(this),a=Xl(n,i.bind(r),o);return l(),a}function pu(e,t){const o=t.split(".");return()=>{let r=e;for(let n=0;ne.__isTeleport,Vo=e=>e&&(e.disabled||e.disabled===""),Np=e=>e&&(e.defer||e.defer===""),Da=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ra=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,al=(e,t)=>{const o=e&&e.to;return we(o)?t?t(o):null:o},kp={name:"Teleport",__isTeleport:!0,process(e,t,o,r,n,i,l,a,s,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:g,createText:C,createComment:S,parentNode:E}}=c,T=Vo(t.props);let{dynamicChildren:v}=t;const y=(D,F,P)=>{D.shapeFlag&16&&u(D.children,F,P,n,i,l,a,s)},w=(D=t)=>{const F=Vo(D.props),P=D.target=al(D.props,g),U=sl(P,D,C,p);P&&(l!=="svg"&&Da(P)?l="svg":l!=="mathml"&&Ra(P)&&(l="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(P),F||(y(D,P,U),Or(D,!1)))},L=D=>{const F=()=>{if(xo.get(D)===F){if(xo.delete(D),Vo(D.props)){const P=E(D.el)||o;y(D,P,D.anchor),Or(D,!0)}w(D)}};xo.set(D,F),nt(F,i)};if(e==null){const D=t.el=C(""),F=t.anchor=C("");if(p(D,o,r),p(F,o,r),Np(t.props)||i&&i.pendingBranch){L(t);return}T&&(y(t,o,F),Or(t,!0)),w()}else{t.el=e.el;const D=t.anchor=e.anchor,F=xo.get(e);if(F){F.flags|=8,xo.delete(e),L(t);return}t.targetStart=e.targetStart;const P=t.target=e.target,U=t.targetAnchor=e.targetAnchor,X=Vo(e.props),k=X?o:P,Q=X?D:U;if(l==="svg"||Da(P)?l="svg":(l==="mathml"||Ra(P))&&(l="mathml"),v?(d(e.dynamicChildren,v,k,n,i,l,a),ta(e,t,!0)):s||f(e,t,k,Q,n,i,l,a,!1),T)X?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):_n(t,o,D,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const me=al(t.props,g);me&&(t.target=me,_n(t,me,null,c,0))}else X&&_n(t,P,U,c,1);Or(t,T)}},remove(e,t,o,{um:r,o:{remove:n}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:c,targetAnchor:u,target:f,props:d}=e,p=Vo(d),g=i||!p,C=xo.get(e);if(C&&(C.flags|=8,xo.delete(e)),f&&(n(c),n(u)),i&&n(s),!C&&(p||f)&&l&16)for(let S=0;S{e.isMounted=!0}),Su(()=>{e.isUnmounting=!0}),e}const Pt=[Function,Array],hu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Pt,onEnter:Pt,onAfterEnter:Pt,onEnterCancelled:Pt,onBeforeLeave:Pt,onLeave:Pt,onAfterLeave:Pt,onLeaveCancelled:Pt,onBeforeAppear:Pt,onAppear:Pt,onAfterAppear:Pt,onAppearCancelled:Pt},gu=e=>{const t=e.subTree;return t.component?gu(t.component):t},Bp={name:"BaseTransition",props:hu,setup(e,{slots:t}){const o=Ao(),r=$p();return()=>{const n=t.default&&xu(t.default(),!0),i=n&&n.length?Cu(n):o.subTree?wn():void 0;if(!i)return;const l=ge(e),{mode:a}=l;if(r.isLeaving)return Ni(i);const s=Nn(i);if(!s)return Ni(i);let c=cl(s,l,r,o,f=>c=f);s.type!==Je&&Jr(s,c);let u=o.subTree&&Nn(o.subTree);if(u&&u.type!==Je&&!jo(u,s)&&gu(o).type!==Je){let f=cl(u,l,r,o);if(Jr(u,f),a==="out-in"&&s.type!==Je)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,o.job.flags&8||o.update(),delete f.afterLeave,u=void 0},Ni(i);a==="in-out"&&s.type!==Je?f.delayLeave=(d,p,g)=>{const C=bu(r,u);C[String(u.key)]=u,d[It]=()=>{p(),d[It]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{g(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function Cu(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Je){t=o;break}}return t}const Wp=Bp;function bu(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function cl(e,t,o,r,n){const{appear:i,mode:l,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:g,onLeaveCancelled:C,onBeforeAppear:S,onAppear:E,onAfterAppear:T,onAppearCancelled:v}=t,y=String(e.key),w=bu(o,e),L=(P,U)=>{P&&wt(P,r,9,U)},D=(P,U)=>{const X=U[1];L(P,U),oe(P)?P.every(k=>k.length<=1)&&X():P.length<=1&&X()},F={mode:l,persisted:a,beforeEnter(P){let U=s;if(!o.isMounted)if(i)U=S||s;else return;P[It]&&P[It](!0);const X=w[y];X&&jo(e,X)&&X.el[It]&&X.el[It](),L(U,[P])},enter(P){if(w[y]===e)return;let U=c,X=u,k=f;if(!o.isMounted)if(i)U=E||c,X=T||u,k=v||f;else return;let Q=!1;P[wr]=ye=>{Q||(Q=!0,ye?L(k,[P]):L(X,[P]),F.delayedLeave&&F.delayedLeave(),P[wr]=void 0)};const me=P[wr].bind(null,!1);U?D(U,[P,me]):me()},leave(P,U){const X=String(e.key);if(P[wr]&&P[wr](!0),o.isUnmounting)return U();L(d,[P]);let k=!1;P[It]=me=>{k||(k=!0,U(),me?L(C,[P]):L(g,[P]),P[It]=void 0,w[X]===e&&delete w[X])};const Q=P[It].bind(null,!1);w[X]=e,p?D(p,[P,Q]):Q()},clone(P){const U=cl(P,t,o,r,n);return n&&n(U),U}};return F}function Ni(e){if(fi(e))return e=Io(e),e.children=null,e}function Nn(e){if(!fi(e))return ui(e.type)&&e.children?Cu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&le(o.default))return o.default()}}function Jr(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const o=e.component.subTree;Jr(ui(o.type)&&Nn(o)||o,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function xu(e,t=!1,o){let r=[],n=0;for(let i=0;i1)for(let i=0;izr(C,t&&(oe(t)?t[S]:t),o,r,n));return}if(mr(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&zr(e,t,o,r.component.subTree);return}const i=r.shapeFlag&4?hi(r.component):r.el,l=n?null:i,{i:a,r:s}=e,c=t&&t.r,u=a.refs===Se?a.refs={}:a.refs,f=a.setupState,d=ge(f),p=f===Se?Fc:C=>Fa(u,C)?!1:_e(d,C),g=(C,S)=>!(S&&Fa(u,S));if(c!=null&&c!==s){if(Oa(t),we(c))u[c]=null,p(c)&&(f[c]=null);else if(Le(c)){const C=t;g(c,C.k)&&(c.value=null),C.k&&(u[C.k]=null)}}if(le(s))dn(s,a,12,[l,u]);else{const C=we(s),S=Le(s);if(C||S){const E=()=>{if(e.f){const T=C?p(s)?f[s]:u[s]:g()||!e.k?s.value:u[e.k];if(n)oe(T)&&Bl(T,i);else if(oe(T))T.includes(i)||T.push(i);else if(C)u[s]=[i],p(s)&&(f[s]=u[s]);else{const v=[i];g(s,e.k)&&(s.value=v),e.k&&(u[e.k]=v)}}else C?(u[s]=l,p(s)&&(f[s]=l)):S&&(g(s,e.k)&&(s.value=l),e.k&&(u[e.k]=l))};if(l){const T=()=>{E(),kn.delete(e)};T.id=-1,kn.set(e,T),nt(T,o)}else Oa(e),E()}}}function Oa(e){const t=kn.get(e);t&&(t.flags|=8,kn.delete(e))}ri().requestIdleCallback;ri().cancelIdleCallback;const mr=e=>!!e.type.__asyncLoader,fi=e=>e.type.__isKeepAlive;function zp(e,t){vu(e,"a",t)}function Up(e,t){vu(e,"da",t)}function vu(e,t,o=Qe){const r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(di(t,r,o),o){let n=o.parent;for(;n&&n.parent;)fi(n.parent.vnode)&&Vp(r,t,o,n),n=n.parent}}function Vp(e,t,o,r){const n=di(t,e,r,!0);Ql(()=>{Bl(r[t],n)},o)}function di(e,t,o=Qe,r=!1){if(o){const n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{so();const a=mn(o),s=wt(t,o,e,l);return a(),co(),s});return r?n.unshift(i):n.push(i),i}}const mo=e=>(t,o=Qe)=>{(!on||e==="sp")&&di(e,(...r)=>t(...r),o)},Jl=mo("bm"),pi=mo("m"),jp=mo("bu"),Gp=mo("u"),Su=mo("bum"),Ql=mo("um"),Kp=mo("sp"),Yp=mo("rtg"),qp=mo("rtc");function Xp(e,t=Qe){di("ec",e,t)}const Jp="components";function Qp(e,t){return em(Jp,e,!0,t)||e}const Zp=Symbol.for("v-ndc");function em(e,t,o=!0,r=!1){const n=Ve||Qe;if(n){const i=n.type;{const a=$m(i,!1);if(a&&(a===t||a===ct(t)||a===ti(ct(t))))return i}const l=Ma(n[e]||i[e],t)||Ma(n.appContext[e],t);return!l&&r?i:l}}function Ma(e,t){return e&&(e[t]||e[ct(t)]||e[ti(ct(t))])}function tm(e,t,o,r){let n;const i=o,l=oe(e);if(l||we(e)){const a=l&&lo(e);let s=!1,c=!1;a&&(s=!vt(e),c=uo(e),e=li(e)),n=new Array(e.length);for(let u=0,f=e.length;ut(a,s,void 0,i));else{const a=Object.keys(e);n=new Array(a.length);for(let s=0,c=a.length;s0;return Ft(),Zr(qe,null,[je("slot",c,r)],u?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const a=ao.length;Ft();let s;try{const c=l&&yu(l(o)),u=o.key||i||c&&c.key;s=Zr(qe,{key:(u&&!yt(u)?u:`_${t}`)+(!c&&r?"_fb":"")},c||(r?r():[]),c&&e._===1?64:-2)}catch(c){for(let u=ao.length;u>a;u--)oa();throw c}finally{l&&l._c&&(l._d=!0)}return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),s}function yu(e){return e.some(t=>en(t)?!(t.type===Je||t.type===qe&&!yu(t.children)):!0)?e:null}const ul=e=>e?zu(e)?hi(e):ul(e.parent):null,Ur=Be(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ul(e.parent),$root:e=>ul(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Tu(e),$forceUpdate:e=>e.f||(e.f=()=>{ql(e.update)}),$nextTick:e=>e.n||(e.n=ci.bind(e.proxy)),$watch:e=>Mp.bind(e)}),ki=(e,t)=>e!==Se&&!e.__isScriptSetup&&_e(e,t),om={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:r,data:n,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const d=l[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(ki(r,t))return l[t]=1,r[t];if(n!==Se&&_e(n,t))return l[t]=2,n[t];if(_e(i,t))return l[t]=3,i[t];if(o!==Se&&_e(o,t))return l[t]=4,o[t];fl&&(l[t]=0)}}const c=Ur[t];let u,f;if(c)return t==="$attrs"&&Ye(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(o!==Se&&_e(o,t))return l[t]=4,o[t];if(f=s.config.globalProperties,_e(f,t))return f[t]},set({_:e},t,o){const{data:r,setupState:n,ctx:i}=e;return ki(n,t)?(n[t]=o,!0):r!==Se&&_e(r,t)?(r[t]=o,!0):_e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,props:i,type:l}},a){let s;return!!(o[a]||e!==Se&&a[0]!=="$"&&_e(e,a)||ki(t,a)||_e(i,a)||_e(r,a)||_e(Ur,a)||_e(n.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:_e(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function Na(e){return oe(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let fl=!0;function rm(e){const t=Tu(e),o=e.proxy,r=e.ctx;fl=!1,t.beforeCreate&&ka(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:l,watch:a,provide:s,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:g,activated:C,deactivated:S,beforeDestroy:E,beforeUnmount:T,destroyed:v,unmounted:y,render:w,renderTracked:L,renderTriggered:D,errorCaptured:F,serverPrefetch:P,expose:U,inheritAttrs:X,components:k,directives:Q,filters:me}=t;if(c&&nm(c,r,null),l)for(const ne in l){const de=l[ne];le(de)&&(r[ne]=de.bind(o))}if(n){const ne=n.call(o,o);be(ne)&&(e.data=fn(ne))}if(fl=!0,i)for(const ne in i){const de=i[ne],tt=le(de)?de.bind(o,o):le(de.get)?de.get.bind(o,o):Gt,ft=!le(de)&&le(de.set)?de.set.bind(o):Gt,Re=fe({get:tt,set:ft});Object.defineProperty(r,ne,{enumerable:!0,configurable:!0,get:()=>Re.value,set:Fe=>Re.value=Fe})}if(a)for(const ne in a)Eu(a[ne],r,o,ne);if(s){const ne=le(s)?s.call(o):s;Reflect.ownKeys(ne).forEach(de=>{Wr(de,ne[de])})}u&&ka(u,e,"c");function se(ne,de){oe(de)?de.forEach(tt=>ne(tt.bind(o))):de&&ne(de.bind(o))}if(se(Jl,f),se(pi,d),se(jp,p),se(Gp,g),se(zp,C),se(Up,S),se(Xp,F),se(qp,L),se(Yp,D),se(Su,T),se(Ql,y),se(Kp,P),oe(U))if(U.length){const ne=e.exposed||(e.exposed={});U.forEach(de=>{Object.defineProperty(ne,de,{get:()=>o[de],set:tt=>o[de]=tt,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===Gt&&(e.render=w),X!=null&&(e.inheritAttrs=X),k&&(e.components=k),Q&&(e.directives=Q),P&&_u(e)}function nm(e,t,o=Gt){oe(e)&&(e=dl(e));for(const r in e){const n=e[r];let i;be(n)?"default"in n?i=Ze(n.from||r,n.default,!0):i=Ze(n.from||r):i=Ze(n),Le(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[r]=i}}function ka(e,t,o){wt(oe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function Eu(e,t,o,r){let n=r.includes(".")?pu(o,r):()=>o[r];if(we(e)){const i=t[e];le(i)&&St(n,i)}else if(le(e))St(n,e.bind(o));else if(be(e))if(oe(e))e.forEach(i=>Eu(i,t,o,r));else{const i=le(e.handler)?e.handler.bind(o):t[e.handler];le(i)&&St(n,i,e)}}function Tu(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!n.length&&!o&&!r?s=t:(s={},n.length&&n.forEach(c=>Hn(s,c,l,!0)),Hn(s,t,l)),be(t)&&i.set(t,s),s}function Hn(e,t,o,r=!1){const{mixins:n,extends:i}=t;i&&Hn(e,i,o,!0),n&&n.forEach(l=>Hn(e,l,o,!0));for(const l in t)if(!(r&&l==="expose")){const a=im[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const im={data:Ha,props:$a,emits:$a,methods:Mr,computed:Mr,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:Mr,directives:Mr,watch:am,provide:Ha,inject:lm};function Ha(e,t){return t?e?function(){return Be(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function lm(e,t){return Mr(dl(e),dl(t))}function dl(e){if(oe(e)){const t={};for(let o=0;ot==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ct(t)}Modifiers`]||e[`${Ro(t)}Modifiers`];function fm(e,t,...o){if(e.isUnmounted)return;const r=e.vnode.props||Se;let n=o;const i=t.startsWith("update:"),l=i&&um(r,t.slice(7));l&&(l.trim&&(n=o.map(u=>we(u)?u.trim():u)),l.number&&(n=n.map(oi)));let a,s=r[a=Di(t)]||r[a=Di(ct(t))];!s&&i&&(s=r[a=Di(Ro(t))]),s&&wt(s,e,6,n);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,wt(c,e,6,n)}}const dm=new WeakMap;function Iu(e,t,o=!1){const r=o?dm:t.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let l={},a=!1;if(!le(e)){const s=c=>{const u=Iu(c,t,!0);u&&(a=!0,Be(l,u))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(be(e)&&r.set(e,null),null):(oe(i)?i.forEach(s=>l[s]=null):Be(l,i),be(e)&&r.set(e,l),l)}function mi(e,t){return!e||!Jn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),_e(e,t[0].toLowerCase()+t.slice(1))||_e(e,Ro(t))||_e(e,t))}function Ba(e){const{type:t,vnode:o,proxy:r,withProxy:n,propsOptions:[i],slots:l,attrs:a,emit:s,render:c,renderCache:u,props:f,data:d,setupState:p,ctx:g,inheritAttrs:C}=e,S=Mn(e);let E,T;try{if(o.shapeFlag&4){const y=n||r,w=y;E=Ut(c.call(w,y,u,f,p,d,g)),T=a}else{const y=t;E=Ut(y.length>1?y(f,{attrs:a,slots:l,emit:s}):y(f,null)),T=t.props?a:pm(a)}}catch(y){ao.length=0,si(y,e,1),E=je(Je)}let v=E;if(T&&C!==!1){const y=Object.keys(T),{shapeFlag:w}=v;y.length&&w&7&&(i&&y.some(Qn)&&(T=mm(T,i)),v=Io(v,T,!1,!0))}if(o.dirs&&(v=Io(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(o.dirs):o.dirs),o.transition){const y=ui(v.type)&&Nn(v)||v;Jr(y,o.transition)}return E=v,Mn(S),E}const pm=e=>{let t;for(const o in e)(o==="class"||o==="style"||Jn(o))&&((t||(t={}))[o]=e[o]);return t},mm=(e,t)=>{const o={};for(const r in e)(!Qn(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function hm(e,t,o){const{props:r,children:n,component:i}=e,{props:l,children:a,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return r?Wa(r,l,c):!!l;if(s&8){const u=t.dynamicProps;for(let f=0;fObject.create(wu),Du=e=>Object.getPrototypeOf(e)===wu;function Cm(e,t,o,r=!1){const n={},i=Lu();e.propsDefaults=Object.create(null),Ru(e,t,n,i);for(const l in e.propsOptions[0])l in n||(n[l]=void 0);o?e.props=r?n:ru(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function bm(e,t,o,r){const{props:n,attrs:i,vnode:{patchFlag:l}}=e,a=ge(n),[s]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[d,p]=Fu(f,t,!0);Be(l,d),p&&a.push(...p)};!o&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!s)return be(e)&&r.set(e,dr),dr;if(oe(i))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",ea=e=>oe(e)?e.map(Ut):[Ut(e)],_m=(e,t,o)=>{if(t._n)return t;const r=du((...n)=>ea(t(...n)),o);return r._c=!1,r},Ou=(e,t,o)=>{const r=e._ctx;for(const n in e){if(Zl(n))continue;const i=e[n];if(le(i))t[n]=_m(n,i,r);else if(i!=null){const l=ea(i);t[n]=()=>l}}},Mu=(e,t)=>{const o=ea(t);e.slots.default=()=>o},Nu=(e,t,o)=>{for(const r in t)(o||!Zl(r))&&(e[r]=t[r])},vm=(e,t,o)=>{const r=e.slots=Lu();if(e.vnode.shapeFlag&32){const n=t._;n?(Nu(r,t,o),o&&kc(r,"_",n,!0)):Ou(t,r)}else t&&Mu(e,t)},Sm=(e,t,o)=>{const{vnode:r,slots:n}=e;let i=!0,l=Se;if(r.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:Nu(n,t,o):(i=!t.$stable,Ou(t,n)),l=t}else t&&(Mu(e,t),l={default:1});if(i)for(const a in n)!Zl(a)&&l[a]==null&&delete n[a]},nt=Im;function ym(e){return Em(e)}function Em(e,t){const o=ri();o.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:l,createText:a,createComment:s,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=Gt,insertStaticContent:g}=e,C=(b,_,x,R=null,$=null,M=null,V=void 0,z=null,m=!!_.dynamicChildren)=>{if(b===_)return;b&&!jo(b,_)&&(R=H(b),Fe(b,$,M,!0),b=null),_.patchFlag===-2&&(m=!1,_.dynamicChildren=null);const{type:h,ref:A,shapeFlag:O}=_;switch(h){case pn:S(b,_,x,R);break;case Je:E(b,_,x,R);break;case $i:b==null&&T(_,x,R,V);break;case qe:k(b,_,x,R,$,M,V,z,m);break;default:O&1?w(b,_,x,R,$,M,V,z,m):O&6?Q(b,_,x,R,$,M,V,z,m):(O&64||O&128)&&h.process(b,_,x,R,$,M,V,z,m,ee)}A!=null&&$?zr(A,b&&b.ref,M,_||b,!_):A==null&&b&&b.ref!=null&&zr(b.ref,null,M,b,!0)},S=(b,_,x,R)=>{if(b==null)r(_.el=a(_.children),x,R);else{const $=_.el=b.el;_.children!==b.children&&c($,_.children)}},E=(b,_,x,R)=>{b==null?r(_.el=s(_.children||""),x,R):_.el=b.el},T=(b,_,x,R)=>{[b.el,b.anchor]=g(b.children,_,x,R,b.el,b.anchor)},v=({el:b,anchor:_},x,R)=>{let $;for(;b&&b!==_;)$=d(b),r(b,x,R),b=$;r(_,x,R)},y=({el:b,anchor:_})=>{let x;for(;b&&b!==_;)x=d(b),n(b),b=x;n(_)},w=(b,_,x,R,$,M,V,z,m)=>{if(_.type==="svg"?V="svg":_.type==="math"&&(V="mathml"),b==null)L(_,x,R,$,M,V,z,m);else{const h=b.el&&b.el._isVueCE?b.el:null;try{h&&h._beginPatch(),P(b,_,$,M,V,z,m)}finally{h&&h._endPatch()}}},L=(b,_,x,R,$,M,V,z)=>{let m,h;const{props:A,shapeFlag:O,transition:j,dirs:B}=b;if(m=b.el=l(b.type,M,A&&A.is,A),O&8?u(m,b.children):O&16&&F(b.children,m,null,R,$,Hi(b,M),V,z),B&&ko(b,null,R,"created"),D(m,b,b.scopeId,V,R),A){for(const N in A)N!=="value"&&!Hr(N)&&i(m,N,null,A[N],M,R);"value"in A&&i(m,"value",null,A.value,M),(h=A.onVnodeBeforeMount)&&Bt(h,R,b)}B&&ko(b,null,R,"beforeMount");const I=Tm($,j);I&&j.beforeEnter(m),r(m,_,x),((h=A&&A.onVnodeMounted)||I||B)&&nt(()=>{h&&Bt(h,R,b),I&&j.enter(m),B&&ko(b,null,R,"mounted")},$)},D=(b,_,x,R,$)=>{if(x&&p(b,x),R)for(let M=0;M{for(let h=m;h{const z=_.el=b.el;let{patchFlag:m,dynamicChildren:h,dirs:A}=_;m|=b.patchFlag&16;const O=b.props||Se,j=_.props||Se;let B;if(x&&Ho(x,!1),(B=j.onVnodeBeforeUpdate)&&Bt(B,x,_,b),A&&ko(_,b,x,"beforeUpdate"),x&&Ho(x,!0),h&&(!b.dynamicChildren||b.dynamicChildren.length!==h.length)&&(m=0,V=!1,h=null),(O.innerHTML&&j.innerHTML==null||O.textContent&&j.textContent==null)&&u(z,""),h?U(b.dynamicChildren,h,z,x,R,Hi(_,$),M):V||de(b,_,z,null,x,R,Hi(_,$),M,!1),m>0){if(m&16)X(z,O,j,x,$);else if(m&2&&O.class!==j.class&&i(z,"class",null,j.class,$),m&4&&i(z,"style",O.style,j.style,$),m&8){const I=_.dynamicProps;for(let N=0;N{B&&Bt(B,x,_,b),A&&ko(_,b,x,"updated")},R)},U=(b,_,x,R,$,M,V)=>{for(let z=0;z<_.length;z++){const m=b[z],h=_[z],A=m.el&&(m.type===qe||!jo(m,h)||m.shapeFlag&198)?f(m.el):x;C(m,h,A,null,R,$,M,V,!0)}},X=(b,_,x,R,$)=>{if(_!==x){if(_!==Se)for(const M in _)!Hr(M)&&!(M in x)&&i(b,M,_[M],null,$,R);for(const M in x){if(Hr(M))continue;const V=x[M],z=_[M];V!==z&&M!=="value"&&i(b,M,z,V,$,R)}"value"in x&&i(b,"value",_.value,x.value,$)}},k=(b,_,x,R,$,M,V,z,m)=>{const h=_.el=b?b.el:a(""),A=_.anchor=b?b.anchor:a("");let{patchFlag:O,dynamicChildren:j,slotScopeIds:B}=_;B&&(z=z?z.concat(B):B),b==null?(r(h,x,R),r(A,x,R),F(_.children||[],x,A,$,M,V,z,m)):O>0&&O&64&&j&&b.dynamicChildren&&b.dynamicChildren.length===j.length?(U(b.dynamicChildren,j,x,$,M,V,z),(_.key!=null||$&&_===$.subTree)&&ta(b,_,!0)):de(b,_,x,A,$,M,V,z,m)},Q=(b,_,x,R,$,M,V,z,m)=>{_.slotScopeIds=z,b==null?_.shapeFlag&512?$.ctx.activate(_,x,R,V,m):me(_,x,R,$,M,V,m):ye(b,_,m)},me=(b,_,x,R,$,M,V)=>{const z=b.component=Om(b,R,$);if(fi(b)&&(z.ctx.renderer=ee),Mm(z,!1,V),z.asyncDep){if($&&$.registerDep(z,se,V),!b.el){const m=z.subTree=je(Je);E(null,m,_,x),b.placeholder=m.el}}else se(z,b,_,x,$,M,V)},ye=(b,_,x)=>{const R=_.component=b.component;if(hm(b,_,x))if(R.asyncDep&&!R.asyncResolved){ne(R,_,x);return}else R.next=_,R.update();else _.el=b.el,R.vnode=_},se=(b,_,x,R,$,M,V)=>{const z=()=>{if(b.isMounted){let{next:O,bu:j,u:B,parent:I,vnode:N}=b;{const Ue=ku(b);if(Ue){O&&(O.el=N.el,ne(b,O,V)),Ue.asyncDep.then(()=>{nt(()=>{b.isUnmounted||h()},$)});return}}let te=O,ce;Ho(b,!1),O?(O.el=N.el,ne(b,O,V)):O=N,j&&In(j),(ce=O.props&&O.props.onVnodeBeforeUpdate)&&Bt(ce,I,O,N),Ho(b,!0);const Ee=Ba(b),ot=b.subTree;b.subTree=Ee,C(ot,Ee,f(ot.el),H(ot),b,$,M),O.el=Ee.el,te===null&&gm(b,Ee.el),B&&nt(B,$),(ce=O.props&&O.props.onVnodeUpdated)&&nt(()=>Bt(ce,I,O,N),$)}else{let O;const{el:j,props:B}=_,{bm:I,m:N,parent:te,root:ce,type:Ee}=b,ot=mr(_);Ho(b,!1),I&&In(I),!ot&&(O=B&&B.onVnodeBeforeMount)&&Bt(O,te,_),Ho(b,!0);{ce.ce&&ce.ce._hasShadowRoot()&&ce.ce._injectChildStyle(Ee,b.parent?b.parent.type:void 0);const Ue=b.subTree=Ba(b);C(null,Ue,x,R,b,$,M),_.el=Ue.el}if(N&&nt(N,$),!ot&&(O=B&&B.onVnodeMounted)){const Ue=_;nt(()=>Bt(O,te,Ue),$)}(_.shapeFlag&256||te&&mr(te.vnode)&&te.vnode.shapeFlag&256)&&b.a&&nt(b.a,$),b.isMounted=!0,_=x=R=null}};b.scope.on();const m=b.effect=new Uc(z);b.scope.off();const h=b.update=m.run.bind(m),A=b.job=m.runIfDirty.bind(m);A.i=b,A.id=b.uid,m.scheduler=()=>ql(A),Ho(b,!0),h()},ne=(b,_,x)=>{_.component=b;const R=b.vnode.props;b.vnode=_,b.next=null,bm(b,_.props,R,x),Sm(b,_.children,x),so(),La(b),co()},de=(b,_,x,R,$,M,V,z,m=!1)=>{const h=b&&b.children,A=b?b.shapeFlag:0,O=_.children,{patchFlag:j,shapeFlag:B}=_;if(j>0){if(j&128){ft(h,O,x,R,$,M,V,z,m);return}else if(j&256){tt(h,O,x,R,$,M,V,z,m);return}}B&8?(A&16&&We(h,$,M),O!==h&&u(x,O)):A&16?B&16?ft(h,O,x,R,$,M,V,z,m):We(h,$,M,!0):(A&8&&u(x,""),B&16&&F(O,x,R,$,M,V,z,m))},tt=(b,_,x,R,$,M,V,z,m)=>{b=b||dr,_=_||dr;const h=b.length,A=_.length,O=Math.min(h,A);let j;for(j=0;jA?We(b,$,M,!0,!1,O):F(_,x,R,$,M,V,z,m,O)},ft=(b,_,x,R,$,M,V,z,m)=>{let h=0;const A=_.length;let O=b.length-1,j=A-1;for(;h<=O&&h<=j;){const B=b[h],I=_[h]=m?oo(_[h]):Ut(_[h]);if(jo(B,I))C(B,I,x,null,$,M,V,z,m);else break;h++}for(;h<=O&&h<=j;){const B=b[O],I=_[j]=m?oo(_[j]):Ut(_[j]);if(jo(B,I))C(B,I,x,null,$,M,V,z,m);else break;O--,j--}if(h>O){if(h<=j){const B=j+1,I=Bj)for(;h<=O;)Fe(b[h],$,M,!0),h++;else{const B=h,I=h,N=new Map;for(h=I;h<=j;h++){const Ct=_[h]=m?oo(_[h]):Ut(_[h]);Ct.key!=null&&N.set(Ct.key,h)}let te,ce=0;const Ee=j-I+1;let ot=!1,Ue=0;const No=new Array(Ee);for(h=0;h=Ee){Fe(Ct,$,M,!0);continue}let $t;if(Ct.key!=null)$t=N.get(Ct.key);else for(te=I;te<=j;te++)if(No[te-I]===0&&jo(Ct,_[te])){$t=te;break}$t===void 0?Fe(Ct,$,M,!0):(No[$t-I]=h+1,$t>=Ue?Ue=$t:ot=!0,C(Ct,_[$t],x,null,$,M,V,z,m),ce++)}const Li=ot?Pm(No):dr;for(te=Li.length-1,h=Ee-1;h>=0;h--){const Ct=I+h,$t=_[Ct],ya=_[Ct+1],Ea=Ct+1{const{el:M,type:V,transition:z,children:m,shapeFlag:h}=b;if(h&6){Re(b.component.subTree,_,x,R);return}if(h&128){b.suspense.move(_,x,R);return}if(h&64){V.move(b,_,x,ee);return}if(V===qe){r(M,_,x);for(let O=0;Oz.enter(M),$));else{const{leave:O,delayLeave:j,afterLeave:B}=z,I=()=>{b.ctx.isUnmounted?n(M):r(M,_,x)},N=()=>{const te=M._isLeaving||!!M[It];M._isLeaving&&M[It](!0),z.persisted&&!te?I():O(M,()=>{I(),B&&B()})};j?j(M,I,N):N()}else r(M,_,x)},Fe=(b,_,x,R=!1,$=!1)=>{const{type:M,props:V,ref:z,children:m,dynamicChildren:h,shapeFlag:A,patchFlag:O,dirs:j,cacheIndex:B,memo:I}=b;if(O===-2&&($=!1),z!=null&&(so(),zr(z,null,x,b,!0),co()),B!=null&&(_.renderCache[B]=void 0),A&256){_.ctx.deactivate(b);return}const N=A&1&&j,te=!mr(b);let ce;if(te&&(ce=V&&V.onVnodeBeforeUnmount)&&Bt(ce,_,b),A&6)gt(b.component,x,R);else{if(A&128){b.suspense.unmount(x,R);return}N&&ko(b,null,_,"beforeUnmount"),A&64?b.type.remove(b,_,x,ee,R):h&&!h.hasOnce&&(M!==qe||O>0&&O&64)?We(h,_,x,!1,!0):(M===qe&&O&384||!$&&A&16)&&We(m,_,x),R&&Tt(b)}const Ee=I!=null&&B==null;(te&&(ce=V&&V.onVnodeUnmounted)||N||Ee)&&nt(()=>{ce&&Bt(ce,_,b),N&&ko(b,null,_,"unmounted"),Ee&&(b.el=null)},x)},Tt=b=>{const{type:_,el:x,anchor:R,transition:$}=b;if(_===qe){ht(x,R);return}if(_===$i){y(b);return}const M=()=>{n(x),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(b.shapeFlag&1&&$&&!$.persisted){const{leave:V,delayLeave:z}=$,m=()=>V(x,M);z?z(b.el,M,m):m()}else M()},ht=(b,_)=>{let x;for(;b!==_;)x=d(b),n(b),b=x;n(_)},gt=(b,_,x)=>{const{bum:R,scope:$,job:M,subTree:V,um:z,m,a:h}=b;Ua(m),Ua(h),R&&In(R),$.stop(),M&&(M.flags|=8,Fe(V,b,_,x)),z&&nt(z,_),nt(()=>{b.isUnmounted=!0},_)},We=(b,_,x,R=!1,$=!1,M=0)=>{for(let V=M;V{if(b.shapeFlag&6)return H(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const _=d(b.anchor||b.el),x=_&&_[mu];return x?d(x):_};let Y=!1;const G=(b,_,x)=>{let R;b==null?_._vnode&&(Fe(_._vnode,null,null,!0),R=_._vnode.component):C(_._vnode||null,b,_,null,null,null,x),_._vnode=b,Y||(Y=!0,La(R),cu(),Y=!1)},ee={p:C,um:Fe,m:Re,r:Tt,mt:me,mc:F,pc:de,pbc:U,n:H,o:e};return{render:G,hydrate:void 0,createApp:cm(G)}}function Hi({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Ho({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Tm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ta(e,t,o=!1){const r=e.children,n=t.children;if(oe(r)&&oe(n))for(let i=0;i>1,e[o[a]]0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function ku(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ku(t)}function Ua(e){if(e)for(let t=0;te.__isSuspense;function Im(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):Dp(e)}const qe=Symbol.for("v-fgt"),pn=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),$i=Symbol.for("v-stc"),ao=[];let xt=null;function Ft(e=!1){ao.push(xt=e?null:[])}function oa(){ao.pop(),xt=ao[ao.length-1]||null}let Qr=1;function $n(e,t=!1){Qr+=e,e<0&&xt&&t&&(xt.hasOnce=!0)}function Bu(e){return e.dynamicChildren=Qr>0?xt||dr:null,oa(),Qr>0&&xt&&xt.push(e),e}function hr(e,t,o,r,n,i){return Bu(Rt(e,t,o,r,n,i,!0))}function Zr(e,t,o,r,n){return Bu(je(e,t,o,r,n,!0))}function en(e){return e?e.__v_isVNode===!0:!1}function jo(e,t){return e.type===t.type&&e.key===t.key}const Wu=({key:e})=>e??null,An=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Le(e)||le(e)?{i:Ve,r:e,k:t,f:!!o}:e:null);function Rt(e,t=null,o=null,r=0,n=null,i=e===qe?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wu(t),ref:t&&An(t),scopeId:fu,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Ve};return a?(Bn(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=we(o)?8:16),Qr>0&&!l&&xt&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&xt.push(s),s}const je=Am;function Am(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===Zp)&&(e=Je),en(e)){const a=Io(e,t,!0);return o&&Bn(a,o),Qr>0&&!i&&xt&&(a.shapeFlag&6?xt[xt.indexOf(e)]=a:xt.push(a)),a.patchFlag=-2,a}if(Bm(e)&&(e=e.__vccOpts),t){t=wm(t);let{class:a,style:s}=t;a&&!we(a)&&(t.class=ii(a)),be(s)&&(ai(s)&&!oe(s)&&(s=Be({},s)),t.style=ni(s))}const l=we(e)?1:$u(e)?128:ui(e)?64:be(e)?4:le(e)?2:0;return Rt(e,t,o,r,n,l,i,!0)}function wm(e){return e?ai(e)||Du(e)?Be({},e):e:null}function Io(e,t,o=!1,r=!1){const{props:n,ref:i,patchFlag:l,children:a,transition:s}=e,c=t?Dm(n||{},t):n,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Wu(c),ref:t&&t.ref?o&&i?oe(i)?i.concat(An(t)):[i,An(t)]:An(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qe?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Io(e.ssContent),ssFallback:e.ssFallback&&Io(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&r&&Jr(u,s.clone(u)),u}function Lm(e=" ",t=0){return je(pn,null,e,t)}function wn(e="",t=!1){return t?(Ft(),Zr(Je,null,e)):je(Je,null,e)}function Ut(e){return e==null||typeof e=="boolean"?je(Je):oe(e)?je(qe,null,e.slice()):en(e)?oo(e):je(pn,null,String(e))}function oo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Io(e)}function Bn(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(oe(t))o=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Bn(e,n()),n._c&&(n._d=!0));return}else{o=32;const n=t._;!n&&!Du(t)?t._ctx=Ve:n===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(le(t)){if(r&65){Bn(e,{default:t});return}t={default:t,_ctx:Ve},o=32}else t=String(t),r&64?(o=16,t=[Lm(t)]):o=8;e.children=t,e.shapeFlag|=o}function Dm(...e){const t={};for(let o=0;oQe||Ve;let Wn,tn;{const e=ri(),t=(o,r)=>{let n;return(n=e[o])||(n=e[o]=[]),n.push(r),i=>{n.length>1?n.forEach(l=>l(i)):n[0](i)}};Wn=t("__VUE_INSTANCE_SETTERS__",o=>Qe=o),tn=t("__VUE_SSR_SETTERS__",o=>on=o)}const mn=e=>{const t=Qe;return Wn(e),e.scope.on(),()=>{e.scope.off(),Wn(t)}},Va=()=>{Qe&&Qe.scope.off(),Wn(null)};function zu(e){return e.vnode.shapeFlag&4}let on=!1;function Mm(e,t=!1,o=!1){t&&tn(t);const{props:r,children:n}=e.vnode,i=zu(e);Cm(e,r,i,t),vm(e,n,o||t);const l=i?Nm(e,t):void 0;return t&&tn(!1),l}function Nm(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,om);const{setup:r}=o;if(r){so();const n=e.setupContext=r.length>1?Hm(e):null,i=mn(e),l=dn(r,e,0,[e.props,n]),a=Oc(l);if(co(),i(),(a||e.sp)&&!mr(e)&&_u(e),a){if(l.then(Va,Va),t)return l.then(s=>{tn(!0);try{ja(e,s,t)}finally{tn(!1)}}).catch(s=>{si(s,e,0)});e.asyncDep=l}else ja(e,l)}else Uu(e)}function ja(e,t,o){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:be(t)&&(e.setupState=iu(t)),Uu(e)}function Uu(e,t,o){const r=e.type;e.render||(e.render=r.render||Gt);{const n=mn(e);so();try{rm(e)}finally{co(),n()}}}const km={get(e,t){return Ye(e,"get",""),e[t]}};function Hm(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,km),slots:e.slots,emit:e.emit,expose:t}}function hi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(iu(qr(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Ur)return Ur[o](e)},has(t,o){return o in t||o in Ur}})):e.proxy}function $m(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Bm(e){return le(e)&&"__vccOpts"in e}const fe=(e,t)=>Pp(e,t,on);function vr(e,t,o){try{$n(-1);const r=arguments.length;return r===2?be(t)&&!oe(t)?en(t)?je(e,null,[t]):je(e,t):je(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&en(o)&&(o=[o]),je(e,t,o))}finally{$n(1)}}const Wm="3.5.42";let ml;const Ga=typeof window<"u"&&window.trustedTypes;if(Ga)try{ml=Ga.createPolicy("vue",{createHTML:e=>e})}catch{}const Vu=ml?e=>ml.createHTML(e):e=>e,zm="http://www.w3.org/2000/svg",Um="http://www.w3.org/1998/Math/MathML",to=typeof document<"u"?document:null,Ka=to&&to.createElement("template"),Vm={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const n=t==="svg"?to.createElementNS(zm,e):t==="mathml"?to.createElementNS(Um,e):o?to.createElement(e,{is:o}):to.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>to.createTextNode(e),createComment:e=>to.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>to.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,n,i){const l=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{Ka.innerHTML=Vu(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=Ka.content;if(r==="svg"||r==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},go="transition",Lr="animation",rn=Symbol("_vtc"),ju={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},jm=Be({},hu,ju),Gm=e=>(e.displayName="Transition",e.props=jm,e),dT=Gm((e,{slots:t})=>vr(Wp,Km(e),t)),$o=(e,t=[])=>{oe(e)?e.forEach(o=>o(...t)):e&&e(...t)},Ya=e=>e?oe(e)?e.some(t=>t.length>1):e.length>1:!1;function Km(e){const t={};for(const k in e)k in ju||(t[k]=e[k]);if(e.css===!1)return t;const{name:o="v",type:r,duration:n,enterFromClass:i=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:c=l,appearToClass:u=a,leaveFromClass:f=`${o}-leave-from`,leaveActiveClass:d=`${o}-leave-active`,leaveToClass:p=`${o}-leave-to`}=e,g=Ym(n),C=g&&g[0],S=g&&g[1],{onBeforeEnter:E,onEnter:T,onEnterCancelled:v,onLeave:y,onLeaveCancelled:w,onBeforeAppear:L=E,onAppear:D=T,onAppearCancelled:F=v}=t,P=(k,Q,me,ye)=>{k._enterCancelled=ye,Bo(k,Q?u:a),Bo(k,Q?c:l),me&&me()},U=(k,Q)=>{k._isLeaving=!1,Bo(k,f),Bo(k,p),Bo(k,d),Q&&Q()},X=k=>(Q,me)=>{const ye=k?D:T,se=()=>P(Q,k,me);$o(ye,[Q,se]),qa(()=>{Bo(Q,k?s:i),Jt(Q,k?u:a),Ya(ye)||Xa(Q,r,C,se)})};return Be(t,{onBeforeEnter(k){$o(E,[k]),Jt(k,i),Jt(k,l)},onBeforeAppear(k){$o(L,[k]),Jt(k,s),Jt(k,c)},onEnter:X(!1),onAppear:X(!0),onLeave(k,Q){k._isLeaving=!0;const me=()=>U(k,Q);Jt(k,f),k._enterCancelled?(Jt(k,d),Za(k)):(Za(k),Jt(k,d)),qa(()=>{k._isLeaving&&(Bo(k,f),Jt(k,p),Ya(y)||Xa(k,r,S,me))}),$o(y,[k,me])},onEnterCancelled(k){P(k,!1,void 0,!0),$o(v,[k])},onAppearCancelled(k){P(k,!0,void 0,!0),$o(F,[k])},onLeaveCancelled(k){U(k),$o(w,[k])}})}function Ym(e){if(e==null)return null;if(be(e))return[Bi(e.enter),Bi(e.leave)];{const t=Bi(e);return[t,t]}}function Bi(e){return Gd(e)}function Jt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[rn]||(e[rn]=new Set)).add(t)}function Bo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const o=e[rn];o&&(o.delete(t),o.size||(e[rn]=void 0))}function qa(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let qm=0;function Xa(e,t,o,r){const n=e._endId=++qm,i=()=>{n===e._endId&&r()};if(o!=null)return setTimeout(i,o);const{type:l,timeout:a,propCount:s}=Xm(e,t);if(!l)return r();const c=l+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=p=>{p.target===e&&++u>=s&&f()};setTimeout(()=>{u(o[g]||"").split(", "),n=r(`${go}Delay`),i=r(`${go}Duration`),l=Ja(n,i),a=r(`${Lr}Delay`),s=r(`${Lr}Duration`),c=Ja(a,s);let u=null,f=0,d=0;t===go?l>0&&(u=go,f=l,d=i.length):t===Lr?c>0&&(u=Lr,f=c,d=s.length):(f=Math.max(l,c),u=f>0?l>c?go:Lr:null,d=u?u===go?i.length:s.length:0);const p=u===go&&/\b(?:transform|all)(?:,|$)/.test(r(`${go}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function Ja(e,t){for(;e.lengthQa(o)+Qa(e[r])))}function Qa(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Za(e){return(e?e.ownerDocument:document).body.offsetHeight}function Jm(e,t,o){const r=e[rn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const es=Symbol("_vod"),Qm=Symbol("_vsh"),Zm=Symbol(""),eh=/(?:^|;)\s*display\s*:/;function th(e,t,o){const r=e.style,n=we(o);let i=!1;if(o&&!n){if(t)if(we(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();o[a]==null&&Nr(r,a,"")}else for(const l in t)o[l]==null&&Nr(r,l,"");for(const l in o){l==="display"&&(i=!0);const a=o[l];a!=null?rh(e,l,!we(t)&&t?t[l]:void 0,a)||Nr(r,l,a):Nr(r,l,"")}}else if(n){if(t!==o){const l=r[Zm];l&&(o+=";"+l),r.cssText=o,i=eh.test(o)}}else t&&e.removeAttribute("style");es in e&&(e[es]=i?r.display:"",e[Qm]&&(r.display="none"))}const vn=/\s*!important$/;function Nr(e,t,o){if(oe(o))o.forEach(r=>Nr(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))vn.test(o)?e.setProperty(t,o.replace(vn,""),"important"):e.setProperty(t,o);else{const r=oh(e,t);vn.test(o)?e.setProperty(Ro(r),o.replace(vn,""),"important"):e[r]=o}}const ts=["Webkit","Moz","ms"],Wi={};function oh(e,t){const o=Wi[t];if(o)return o;let r=ct(t);if(r!=="filter"&&r in e)return Wi[t]=r;r=ti(r);for(let n=0;nzi||(ch.then(()=>zi=0),zi=Date.now());function fh(e,t){const o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;const n=o.value;if(oe(n)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const l=n.slice(),a=[r];for(let s=0;se.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,dh=(e,t,o,r,n,i)=>{const l=n==="svg";t==="class"?Jm(e,r,l):t==="style"?th(e,o,r):Jn(t)?Qn(t)||ih(e,t,o,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ph(e,t,r,l))?(ns(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rs(e,t,r,l,i,t!=="value")):e._isVueCE&&(mh(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(r)))?ns(e,ct(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),rs(e,t,r,l))};function ph(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ls(t)&&le(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return ls(t)&&we(o)?!1:t in e}function mh(e,t){const o=e._def.props;if(!o)return!1;const r=ct(t);return Array.isArray(o)?o.some(n=>ct(n)===r):Object.keys(o).some(n=>ct(n)===r)}const zn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return oe(t)?o=>In(t,o):t};function hh(e){e.target.composing=!0}function as(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ko=Symbol("_assign"),Sn=Symbol("_initialValue");function Ui(e,t,o){return t&&(e=e.trim()),o&&(e=oi(e)),e}const pT={created(e,{modifiers:{lazy:t,trim:o,number:r}},n){e.parentNode&&(e.type==="text"?e[Sn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Sn]=e.defaultValue.replace(/\r\n?/g,` +`))),e[Ko]=zn(n);const i=r||n.props&&n.props.type==="number";Go(e,t?"change":"input",l=>{l.target.composing||e[Ko](Ui(e.value,o,i))}),(o||i)&&Go(e,"change",()=>{e.value=Ui(e.value,o,i)}),t||(Go(e,"compositionstart",hh),Go(e,"compositionend",as),Go(e,"change",as))},mounted(e,{value:t,modifiers:{trim:o,number:r}}){const n=t??"",i=e[Sn];delete e[Sn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Ko](Ui(e.value,o,r)):e.value=n},beforeUpdate(e,{value:t,oldValue:o,modifiers:{lazy:r,trim:n,number:i}},l){if(e[Ko]=zn(l),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?oi(e.value):e.value,s=t??"";if(a===s)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===o||n&&e.value.trim()===s)||(e.value=s)}},mT={deep:!0,created(e,{value:t,modifiers:{number:o}},r){e._modelValue=t,Go(e,"change",()=>{const n=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>o?oi(Un(s)):Un(s)),i=e.multiple,l=i?er(e._modelValue)?new Set(n):n:n[0],a=e._pendingValue=[i,i?oe(l)?n.slice():n:l];try{e[Ko](l)}finally{ci(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Ko]=zn(r)},mounted(e,{value:t}){ss(e,t)},beforeUpdate(e,{value:t},o){e._modelValue=t,e[Ko]=zn(o)},updated(e,{value:t}){const o=e._pendingValue;e._pendingValue=void 0,(!o||o[0]!==e.multiple||!gh(t,o[1],o[0]))&&ss(e,t)}};function gh(e,t,o){if(!o||oe(e))return Po(e,t);if(er(e)){if(e.size!==t.length)return!1;for(const r of t)if(!e.has(r))return!1;return!0}return!1}function ss(e,t){const o=e.multiple,r=oe(t);if(!(o&&!r&&!er(t))){for(let n=0,i=e.options.length;nString(c)===String(a)):l.selected=ep(t,a)>-1}else l.selected=t.has(a);else if(Po(Un(l),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!o&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Un(e){return"_value"in e?e._value:e.value}const Ch=["ctrl","shift","alt","meta"],bh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ch.some(o=>e[`${o}Key`]&&!t.includes(o))},hT=(e,t)=>{if(!e)return e;const o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=((n,...i)=>{for(let l=0;l{const o=e._withKeys||(e._withKeys={}),r=t.join(".");return o[r]||(o[r]=(n=>{if(!("key"in n))return;const i=Ro(n.key);if(t.some(l=>l===i||xh[l]===i))return e(n)}))},_h=Be({patchProp:dh},Vm);let cs;function vh(){return cs||(cs=ym(_h))}const Sh=((...e)=>{const t=vh().createApp(...e),{mount:o}=t;return t.mount=r=>{const n=Eh(r);if(!n)return;const i=t._component;!le(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const l=o(n,!1,yh(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t});function yh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Eh(e){return we(e)?document.querySelector(e):e}let Gu;const gi=e=>Gu=e,Ku=Symbol();function hl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Vr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Vr||(Vr={}));function Th(){const e=Wl(!0),t=e.run(()=>mt({}));let o=[],r=[];const n=qr({install(i){gi(n),n._a=i,i.provide(Ku,n),i.config.globalProperties.$pinia=n,r.forEach(l=>o.push(l)),r=[]},use(i){return this._a?o.push(i):r.push(i),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return n}const Yu=()=>{};function us(e,t,o,r=Yu){e.add(t);const n=()=>{e.delete(t)&&r()};return!o&&zc()&&tp(n),n}function lr(e,...t){e.forEach(o=>{o(...t)})}const Ph=e=>e(),fs=Symbol(),Vi=Symbol();function gl(e,t){e instanceof Map&&t instanceof Map?t.forEach((o,r)=>e.set(r,o)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const r=t[o],n=e[o];hl(n)&&hl(r)&&e.hasOwnProperty(o)&&!Le(r)&&!lo(r)?e[o]=gl(n,r):e[o]=r}return e}const Ih=Symbol();function Ah(e){return!hl(e)||!Object.prototype.hasOwnProperty.call(e,Ih)}const{assign:_o}=Object;function wh(e){return!!(Le(e)&&e.effect)}function Lh(e,t,o,r){const{state:n,actions:i,getters:l}=t,a=o.state.value[e];let s;function c(){a||(o.state.value[e]=n?n():{});const u=Sp(o.state.value[e]);return _o(u,i,Object.keys(l||{}).reduce((f,d)=>(f[d]=qr(fe(()=>{gi(o);const p=o._s.get(e);return l[d].call(p,p)})),f),{}))}return s=qu(e,c,t,o,r,!0),s}function qu(e,t,o={},r,n,i){let l;const a=_o({actions:{}},o),s={deep:!0};let c,u,f=new Set,d=new Set,p;const g=r.state.value[e];!i&&!g&&(r.state.value[e]={});let C;function S(F){let P;c=u=!1,typeof F=="function"?(F(r.state.value[e]),P={type:Vr.patchFunction,storeId:e,events:p}):(gl(r.state.value[e],F),P={type:Vr.patchObject,payload:F,storeId:e,events:p});const U=C=Symbol();ci().then(()=>{C===U&&(c=!0)}),u=!0,lr(f,P,r.state.value[e])}const E=i?function(){const{state:P}=o,U=P?P():{};this.$patch(X=>{_o(X,U)})}:Yu;function T(){l.stop(),f.clear(),d.clear(),r._s.delete(e)}const v=(F,P="")=>{if(fs in F)return F[Vi]=P,F;const U=function(){gi(r);const X=Array.from(arguments),k=new Set,Q=new Set;function me(ne){k.add(ne)}function ye(ne){Q.add(ne)}lr(d,{args:X,name:U[Vi],store:w,after:me,onError:ye});let se;try{se=F.apply(this&&this.$id===e?this:w,X)}catch(ne){throw lr(Q,ne),ne}return se instanceof Promise?se.then(ne=>(lr(k,ne),ne)).catch(ne=>(lr(Q,ne),Promise.reject(ne))):(lr(k,se),se)};return U[fs]=!0,U[Vi]=P,U},y={_p:r,$id:e,$onAction:us.bind(null,d),$patch:S,$reset:E,$subscribe(F,P={}){const U=us(f,F,P.detached,()=>X()),X=l.run(()=>St(()=>r.state.value[e],k=>{(P.flush==="sync"?u:c)&&F({storeId:e,type:Vr.direct,events:p},k)},_o({},s,P)));return U},$dispose:T},w=fn(y);r._s.set(e,w);const D=(r._a&&r._a.runWithContext||Ph)(()=>r._e.run(()=>(l=Wl()).run(()=>t({action:v}))));for(const F in D){const P=D[F];if(Le(P)&&!wh(P)||lo(P))i||(g&&Ah(P)&&(Le(P)?P.value=g[F]:gl(P,g[F])),r.state.value[e][F]=P);else if(typeof P=="function"){const U=v(P,F);D[F]=U,a.actions[F]=P}}return _o(w,D),_o(ge(w),D),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:F=>{S(P=>{_o(P,F)})}}),r._p.forEach(F=>{_o(w,l.run(()=>F({store:w,app:r._a,pinia:r,options:a})))}),g&&i&&o.hydrate&&o.hydrate(w.$state,g),c=!0,u=!0,w}function Xu(e,t,o){let r;const n=typeof t=="function";r=n?o:t;function i(l,a){const s=Rp();return l=l||(s?Ze(Ku,null):null),l&&gi(l),l=Gu,l._s.has(e)||(n?qu(e,t,r,l):Lh(e,r,l)),l._s.get(e)}return i.$id=e,i}const cr=typeof document<"u";function Ju(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Dh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ju(e.default)}const xe=Object.assign;function ji(e,t){const o={};for(const r in t){const n=t[r];o[r]=Ht(n)?n.map(e):e(n)}return o}const jr=()=>{},Ht=Array.isArray;function ds(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Qu=/#/g,Rh=/&/g,Fh=/\//g,Oh=/=/g,Mh=/\?/g,Zu=/\+/g,Nh=/%5B/g,kh=/%5D/g,ef=/%5E/g,Hh=/%60/g,tf=/%7B/g,$h=/%7C/g,of=/%7D/g,Bh=/%20/g;function ra(e){return e==null?"":encodeURI(""+e).replace($h,"|").replace(Nh,"[").replace(kh,"]")}function Wh(e){return ra(e).replace(tf,"{").replace(of,"}").replace(ef,"^")}function Cl(e){return ra(e).replace(Zu,"%2B").replace(Bh,"+").replace(Qu,"%23").replace(Rh,"%26").replace(Hh,"`").replace(tf,"{").replace(of,"}").replace(ef,"^")}function zh(e){return Cl(e).replace(Oh,"%3D")}function Uh(e){return ra(e).replace(Qu,"%23").replace(Mh,"%3F")}function Vh(e){return Uh(e).replace(Fh,"%2F")}function nn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const jh=/\/$/,Gh=e=>e.replace(jh,"");function Gi(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=Xh(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:nn(l)}}function Kh(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function ps(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Yh(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Cr(t.matched[r],o.matched[n])&&rf(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Cr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function rf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!qh(e[o],t[o]))return!1;return!0}function qh(e,t){return Ht(e)?ms(e,t):Ht(t)?ms(t,e):e?.valueOf()===t?.valueOf()}function ms(e,t){return Ht(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function Xh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Co={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let bl=(function(e){return e.pop="pop",e.push="push",e})({}),Ki=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Jh(e){if(!e)if(cr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Gh(e)}const Qh=/^[^#]+#/;function Zh(e,t){return e.replace(Qh,"#")+t}function eg(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const Ci=()=>({left:window.scrollX,top:window.scrollY});function tg(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=eg(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function hs(e,t){return(history.state?history.state.position-t:-1)+e}const xl=new Map;function og(e,t){xl.set(e,t)}function rg(e){const t=xl.get(e);return xl.delete(e),t}function ng(e){return typeof e=="string"||e&&typeof e=="object"}function nf(e){return typeof e=="string"||typeof e=="symbol"}let Oe=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const lf=Symbol("");Oe.MATCHER_NOT_FOUND+"",Oe.NAVIGATION_GUARD_REDIRECT+"",Oe.NAVIGATION_ABORTED+"",Oe.NAVIGATION_CANCELLED+"",Oe.NAVIGATION_DUPLICATED+"";function br(e,t){return xe(new Error,{type:e,[lf]:!0},t)}function Qt(e,t){return e instanceof Error&&lf in e&&(t==null||!!(e.type&t))}const ig=["params","query","hash"];function lg(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of ig)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function ag(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&Cl(n)):[r&&Cl(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function sg(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Ht(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const cg=Symbol(""),Cs=Symbol(""),bi=Symbol(""),na=Symbol(""),_l=Symbol("");function Dr(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function yo(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const c=d=>{d===!1?s(br(Oe.NAVIGATION_ABORTED,{from:o,to:t})):d instanceof Error?s(d):ng(d)?s(br(Oe.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(l&&r.enterCallbacks[n]===l&&typeof d=="function"&&l.push(d),a())},u=i(()=>e.call(r&&r.instances[n],t,o,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>s(d))})}function Yi(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Ju(s)){const c=(s.__vccOpts||s)[t];c&&i.push(yo(c,o,r,l,a,n))}else{let c=s();i.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const f=Dh(u)?u.default:u;l.mods[a]=u,l.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&yo(d,o,r,l,a,n)()}))}}return i}function ug(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lCr(c,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(c=>Cr(c,s))||n.push(s))}return[o,r,n]}let fg=()=>location.protocol+"//"+location.host;function af(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),ps(a,"")}return ps(o,e)+r+n}function dg(e,t,o,r){let n=[],i=[],l=null;const a=({state:d})=>{const p=af(e,location),g=o.value,C=t.value;let S=0;if(d){if(o.value=p,t.value=d,l&&l===g){l=null;return}S=C?d.position-C.position:0}else r(p);n.forEach(E=>{E(o.value,g,{delta:S,type:bl.pop,direction:S?S>0?Ki.forward:Ki.back:Ki.unknown})})};function s(){l=o.value}function c(d){n.push(d);const p=()=>{const g=n.indexOf(d);g>-1&&n.splice(g,1)};return i.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(xe({},d.state,{scroll:Ci()}),"")}}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:s,listen:c,destroy:f}}function bs(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?Ci():null}}function pg(e){const{history:t,location:o}=window,r={value:af(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,c,u){const f=e.indexOf("#"),d=f>-1?(o.host&&document.querySelector("base")?e:e.slice(f))+s:fg()+e+s;try{t[u?"replaceState":"pushState"](c,"",d),n.value=c}catch(p){console.error(p),o[u?"replace":"assign"](d)}}function l(s,c){i(s,xe({},t.state,bs(n.value.back,s,n.value.forward,!0),c,{position:n.value.position}),!0),r.value=s}function a(s,c){const u=xe({},n.value,t.state,{forward:s,scroll:Ci()});i(u.current,u,!0),i(s,xe({},bs(r.value,s,null),{position:u.position+1},c),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function mg(e){e=Jh(e);const t=pg(e),o=dg(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=xe({location:"",base:e,go:r,createHref:Zh.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}let Yo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ke=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(ke||{});const hg={type:Yo.Static,value:""},gg=/[a-zA-Z0-9_]/;function Cg(e){if(!e)return[[]];if(e==="/")return[[hg]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${o})/"${c}": ${p}`)}let o=ke.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,c="",u="";function f(){c&&(o===ke.Static?i.push({type:Yo.Static,value:c}):o===ke.Param||o===ke.ParamRegExp||o===ke.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Yo.Param,value:c,regexp:u,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=s}for(;at.length?t.length===1&&t[0]===lt.Static+lt.Segment?1:-1:0}function sf(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const Sg={strict:!1,end:!0,sensitive:!1};function yg(e,t,o){const r=_g(Cg(e.path),o),n=xe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function Eg(e,t){const o=[],r=new Map;t=ds(Sg,t);function n(f){return r.get(f)}function i(f,d,p){const g=!p,C=Ss(f);C.aliasOf=p&&p.record;const S=ds(t,f),E=[C];if("alias"in f){const y=typeof f.alias=="string"?[f.alias]:f.alias;for(const w of y)E.push(Ss(xe({},C,{components:p?p.record.components:C.components,path:w,aliasOf:p?p.record:C})))}let T,v;for(const y of E){const{path:w}=y;if(d&&w[0]!=="/"){const L=d.record.path,D=L[L.length-1]==="/"?"":"/";y.path=d.record.path+(w&&D+w)}if(T=yg(y,d,S),p?p.alias.push(T):(v=v||T,v!==T&&v.alias.push(T),g&&f.name&&!ys(T)&&l(f.name)),cf(T)&&s(T),C.children){const L=C.children;for(let D=0;D{l(v)}:jr}function l(f){if(nf(f)){const d=r.get(f);d&&(r.delete(f),o.splice(o.indexOf(d),1),d.children.forEach(l),d.alias.forEach(l))}else{const d=o.indexOf(f);d>-1&&(o.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(l),f.alias.forEach(l))}}function a(){return o}function s(f){const d=Ig(f,o);o.splice(d,0,f),f.record.name&&!ys(f)&&r.set(f.record.name,f)}function c(f,d){let p,g={},C,S;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw br(Oe.MATCHER_NOT_FOUND,{location:f});S=p.record.name,g=xe(vs(d.params,p.keys.filter(v=>!v.optional).concat(p.parent?p.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),f.params&&vs(f.params,p.keys.map(v=>v.name))),C=p.stringify(g)}else if(f.path!=null)C=f.path,p=o.find(v=>v.re.test(C)),p&&(g=p.parse(C),S=p.record.name);else{if(p=d.name?r.get(d.name):o.find(v=>v.re.test(d.path)),!p)throw br(Oe.MATCHER_NOT_FOUND,{location:f,currentLocation:d});S=p.record.name,g=xe({},d.params,f.params),C=p.stringify(g)}const E=[];let T=p;for(;T;)E.unshift(T.record),T=T.parent;return{name:S,path:C,params:g,matched:E,meta:Pg(E)}}e.forEach(f=>i(f));function u(){o.length=0,r.clear()}return{addRoute:i,resolve:c,removeRoute:l,clearRoutes:u,getRoutes:a,getRecordMatcher:n}}function vs(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function Ss(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Tg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Tg(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function ys(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Pg(e){return e.reduce((t,o)=>xe(t,o.meta),{})}function Ig(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;sf(e,t[i])<0?r=i:o=i+1}const n=Ag(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function Ag(e){let t=e;for(;t=t.parent;)if(cf(t)&&sf(e,t)===0)return t}function cf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Es(e){const t=Ze(bi),o=Ze(na),r=fe(()=>{const s=bt(e.to);return t.resolve(s)}),n=fe(()=>{const{matched:s}=r.value,{length:c}=s,u=s[c-1],f=o.matched;if(!u||!f.length)return-1;const d=f.findIndex(Cr.bind(null,u));if(d>-1)return d;const p=Ts(s[c-2]);return c>1&&Ts(u)===p&&f[f.length-1].path!==p?f.findIndex(Cr.bind(null,s[c-2])):d}),i=fe(()=>n.value>-1&&Fg(o.params,r.value.params)),l=fe(()=>n.value>-1&&n.value===o.matched.length-1&&rf(o.params,r.value.params));function a(s={}){if(Rg(s)){const c=t[bt(e.replace)?"replace":"push"](bt(e.to)).catch(jr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:fe(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function wg(e){return e.length===1?e[0]:e}const Lg=po({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Es,setup(e,{slots:t}){const o=fn(Es(e)),{options:r}=Ze(bi),n=fe(()=>({[Ps(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[Ps(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&wg(t.default(o));return e.custom?i:vr("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),Dg=Lg;function Rg(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Fg(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Ht(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function Ts(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ps=(e,t,o)=>e??t??o,Og=po({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=Ze(_l),n=fe(()=>e.route||r.value),i=Ze(Cs,0),l=fe(()=>{let c=bt(i);const{matched:u}=n.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=fe(()=>n.value.matched[l.value]);Wr(Cs,fe(()=>l.value+1)),Wr(cg,a),Wr(_l,n);const s=mt();return St(()=>[s.value,a.value,e.name],([c,u,f],[d,p,g])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Cr(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(C=>C(c))},{flush:"post"}),()=>{const c=n.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return Is(o.default,{Component:d,route:c});const p=f.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,S=vr(d,xe({},g,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(f.instances[u]=null)},ref:s}));return Is(o.default,{Component:S,route:c})||S}}});function Is(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const Mg=Og;function Ng(e){const t=Eg(e.routes,e),o=e.parseQuery||ag,r=e.stringifyQuery||gs,n=e.history,i=Dr(),l=Dr(),a=Dr(),s=Yl(Co);let c=Co;cr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ji.bind(null,H=>""+H),f=ji.bind(null,Vh),d=ji.bind(null,nn);function p(H,Y){let G,ee;return nf(H)?(G=t.getRecordMatcher(H),ee=Y):ee=H,t.addRoute(ee,G)}function g(H){const Y=t.getRecordMatcher(H);Y&&t.removeRoute(Y)}function C(){return t.getRoutes().map(H=>H.record)}function S(H){return!!t.getRecordMatcher(H)}function E(H,Y){if(Y=xe({},Y||s.value),typeof H=="string"){const x=Gi(o,H,Y.path),R=t.resolve({path:x.path},Y),$=n.createHref(x.fullPath);return xe(x,R,{params:d(R.params),hash:nn(x.hash),redirectedFrom:void 0,href:$})}let G;if(H.path!=null)G=xe({},H,{path:Gi(o,H.path,Y.path).path});else{const x=xe({},H.params);for(const R in x)x[R]==null&&delete x[R];G=xe({},H,{params:f(x)}),Y.params=f(Y.params)}const ee=t.resolve(G,Y),ue=H.hash||"";ee.params=u(d(ee.params));const b=Kh(r,xe({},H,{hash:Wh(ue),path:ee.path})),_=n.createHref(b);return xe({fullPath:b,hash:ue,query:r===gs?sg(H.query):H.query||{}},ee,{redirectedFrom:void 0,href:_})}function T(H){return typeof H=="string"?Gi(o,H,s.value.path):xe({},H)}function v(H,Y){if(c!==H)return br(Oe.NAVIGATION_CANCELLED,{from:Y,to:H})}function y(H){return D(H)}function w(H){return y(xe(T(H),{replace:!0}))}function L(H,Y){const G=H.matched[H.matched.length-1];if(G&&G.redirect){const{redirect:ee}=G;let ue=typeof ee=="function"?ee(H,Y):ee;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=T(ue):{path:ue},ue.params={}),xe({query:H.query,hash:H.hash,params:ue.path!=null?{}:H.params},ue)}}function D(H,Y){const G=c=E(H),ee=s.value,ue=H.state,b=H.force,_=H.replace===!0,x=L(G,ee);if(x)return D(xe(T(x),{state:typeof x=="object"?xe({},ue,x.state):ue,force:b,replace:_}),Y||G);const R=G;R.redirectedFrom=Y;let $;return!b&&Yh(r,ee,G)&&($=br(Oe.NAVIGATION_DUPLICATED,{to:R,from:ee}),Re(ee,ee,!0,!1)),($?Promise.resolve($):U(R,ee)).catch(M=>Qt(M)?Qt(M,Oe.NAVIGATION_GUARD_REDIRECT)?M:ft(M):de(M,R,ee)).then(M=>{if(M){if(Qt(M,Oe.NAVIGATION_GUARD_REDIRECT))return D(xe({replace:_},T(M.to),{state:typeof M.to=="object"?xe({},ue,M.to.state):ue,force:b}),Y||R)}else M=k(R,ee,!0,_,ue);return X(R,ee,M),M})}function F(H,Y){const G=v(H,Y);return G?Promise.reject(G):Promise.resolve()}function P(H){const Y=ht.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(H):H()}function U(H,Y){let G;const[ee,ue,b]=ug(H,Y);G=Yi(ee.reverse(),"beforeRouteLeave",H,Y);for(const x of ee)x.leaveGuards.forEach(R=>{G.push(yo(R,H,Y))});const _=F.bind(null,H,Y);return G.push(_),We(G).then(()=>{G=[];for(const x of i.list())G.push(yo(x,H,Y));return G.push(_),We(G)}).then(()=>{G=Yi(ue,"beforeRouteUpdate",H,Y);for(const x of ue)x.updateGuards.forEach(R=>{G.push(yo(R,H,Y))});return G.push(_),We(G)}).then(()=>{G=[];for(const x of b)if(x.beforeEnter)if(Ht(x.beforeEnter))for(const R of x.beforeEnter)G.push(yo(R,H,Y));else G.push(yo(x.beforeEnter,H,Y));return G.push(_),We(G)}).then(()=>(H.matched.forEach(x=>x.enterCallbacks={}),G=Yi(b,"beforeRouteEnter",H,Y,P),G.push(_),We(G))).then(()=>{G=[];for(const x of l.list())G.push(yo(x,H,Y));return G.push(_),We(G)}).catch(x=>Qt(x,Oe.NAVIGATION_CANCELLED)?x:Promise.reject(x))}function X(H,Y,G){a.list().forEach(ee=>P(()=>ee(H,Y,G)))}function k(H,Y,G,ee,ue){const b=v(H,Y);if(b)return b;const _=Y===Co,x=cr?history.state:{};G&&(ee||_?n.replace(H.fullPath,xe({scroll:_&&x&&x.scroll},ue)):n.push(H.fullPath,ue)),s.value=H,Re(H,Y,G,_),ft()}let Q;function me(){Q||(Q=n.listen((H,Y,G)=>{if(!gt.listening)return;const ee=E(H),ue=L(ee,gt.currentRoute.value);if(ue){D(xe(ue,{replace:!0,force:!0}),ee).catch(jr);return}c=ee;const b=s.value;cr&&og(hs(b.fullPath,G.delta),Ci()),U(ee,b).catch(_=>Qt(_,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_CANCELLED)?_:Qt(_,Oe.NAVIGATION_GUARD_REDIRECT)?(D(xe(T(_.to),{force:!0}),ee).then(x=>{Qt(x,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_DUPLICATED)&&!G.delta&&G.type===bl.pop&&n.go(-1,!1)}).catch(jr),Promise.reject()):(G.delta&&n.go(-G.delta,!1),de(_,ee,b))).then(_=>{_=_||k(ee,b,!1),_&&(G.delta&&!Qt(_,Oe.NAVIGATION_CANCELLED)?n.go(-G.delta,!1):G.type===bl.pop&&Qt(_,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),X(ee,b,_)}).catch(jr)}))}let ye=Dr(),se=Dr(),ne;function de(H,Y,G){ft(H);const ee=se.list();return ee.length?ee.forEach(ue=>ue(H,Y,G)):console.error(H),Promise.reject(H)}function tt(){return ne&&s.value!==Co?Promise.resolve():new Promise((H,Y)=>{ye.add([H,Y])})}function ft(H){return ne||(ne=!H,me(),ye.list().forEach(([Y,G])=>H?G(H):Y()),ye.reset()),H}function Re(H,Y,G,ee){const{scrollBehavior:ue}=e;if(!cr||!ue)return Promise.resolve();const b=!G&&rg(hs(H.fullPath,0))||(ee||!G)&&history.state&&history.state.scroll||null;return ci().then(()=>ue(H,Y,b)).then(_=>_&&tg(_)).catch(_=>de(_,H,Y))}const Fe=H=>n.go(H);let Tt;const ht=new Set,gt={currentRoute:s,listening:!0,addRoute:p,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:S,getRoutes:C,resolve:E,options:e,push:y,replace:w,go:Fe,back:()=>Fe(-1),forward:()=>Fe(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:se.add,isReady:tt,install(H){H.component("RouterLink",Dg),H.component("RouterView",Mg),H.config.globalProperties.$router=gt,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>bt(s)}),cr&&!Tt&&s.value===Co&&(Tt=!0,y(n.location).catch(ee=>{}));const Y={};for(const ee in Co)Object.defineProperty(Y,ee,{get:()=>s.value[ee],enumerable:!0});H.provide(bi,gt),H.provide(na,ru(Y)),H.provide(_l,s);const G=H.unmount;ht.add(H),H.unmount=function(){ht.delete(H),ht.size<1&&(c=Co,Q&&Q(),Q=null,s.value=Co,Tt=!1,ne=!1),G()}}};function We(H){return H.reduce((Y,G)=>Y.then(()=>P(G)),Promise.resolve())}return gt}function CT(){return Ze(bi)}function kg(e){return Ze(na)}function Hg(e){let t=".",o="__",r="--",n;if(e){let g=e.blockPrefix;g&&(t=g),g=e.elementPrefix,g&&(o=g),g=e.modifierPrefix,g&&(r=g)}const i={install(g){n=g.c;const C=g.context;C.bem={},C.bem.b=null,C.bem.els=null}};function l(g){let C,S;return{before(E){C=E.bem.b,S=E.bem.els,E.bem.els=null},after(E){E.bem.b=C,E.bem.els=S},$({context:E,props:T}){return g=typeof g=="string"?g:g({context:E,props:T}),E.bem.b=g,`${T?.bPrefix||t}${E.bem.b}`}}}function a(g){let C;return{before(S){C=S.bem.els},after(S){S.bem.els=C},$({context:S,props:E}){return g=typeof g=="string"?g:g({context:S,props:E}),S.bem.els=g.split(",").map(T=>T.trim()),S.bem.els.map(T=>`${E?.bPrefix||t}${S.bem.b}${o}${T}`).join(", ")}}}function s(g){return{$({context:C,props:S}){g=typeof g=="string"?g:g({context:C,props:S});const E=g.split(",").map(y=>y.trim());function T(y){return E.map(w=>`&${S?.bPrefix||t}${C.bem.b}${y!==void 0?`${o}${y}`:""}${r}${w}`).join(", ")}const v=C.bem.els;return v!==null?T(v[0]):T()}}}function c(g){return{$({context:C,props:S}){g=typeof g=="string"?g:g({context:C,props:S});const E=C.bem.els;return`&:not(${S?.bPrefix||t}${C.bem.b}${E!==null&&E.length>0?`${o}${E[0]}`:""}${r}${g})`}}}return Object.assign(i,{cB:((...g)=>n(l(g[0]),g[1],g[2])),cE:((...g)=>n(a(g[0]),g[1],g[2])),cM:((...g)=>n(s(g[0]),g[1],g[2])),cNotM:((...g)=>n(c(g[0]),g[1],g[2]))}),i}function $g(e){let t=0;for(let o=0;o{let n=$g(r);if(n){if(n===1){e.forEach(l=>{o.push(r.replace("&",l))});return}}else{e.forEach(l=>{o.push((l&&l+" ")+r)});return}let i=[r];for(;n--;){const l=[];i.forEach(a=>{e.forEach(s=>{l.push(a.replace("&",s))})}),i=l}i.forEach(l=>o.push(l))}),o}function zg(e,t){const o=[];return t.split(uf).forEach(r=>{e.forEach(n=>{o.push((n&&n+" ")+r)})}),o}function Ug(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=Wg(t,o):t=zg(t,o))}),t.join(", ").replace(Bg," ")}function As(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function ia(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function Vg(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function yn(e){return e?/^\s*@(s|m)/.test(e):!1}const jg=/[A-Z]/g;function ff(e){return e.replace(jg,t=>"-"+t.toLowerCase())}function Gg(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(o=>t+` ${ff(o[0])}: ${o[1]};`).join(` +`)+` +`+t+"}":`: ${e};`}function Kg(e,t,o){return typeof e=="function"?e({context:t.context,props:o}):e}function ws(e,t,o,r){if(!t)return"";const n=Kg(t,o,r);if(!n)return"";if(typeof n=="string")return`${e} { +${n} +}`;const i=Object.keys(n);if(i.length===0)return o.config.keepEmptyBlock?e+` { +}`:"";const l=e?[e+" {"]:[];return i.forEach(a=>{const s=n[a];if(a==="raw"){l.push(` +`+s+` +`);return}a=ff(a),s!=null&&l.push(` ${a}${Gg(s)}`)}),e&&l.push("}"),l.join(` +`)}function vl(e,t,o){e&&e.forEach(r=>{if(Array.isArray(r))vl(r,t,o);else if(typeof r=="function"){const n=r(t);Array.isArray(n)?vl(n,t,o):n&&o(n)}else r&&o(r)})}function df(e,t,o,r,n){const i=e.$;let l="";if(!i||typeof i=="string")yn(i)?l=i:t.push(i);else if(typeof i=="function"){const c=i({context:r.context,props:n});yn(c)?l=c:t.push(c)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")yn(i.$)?l=i.$:t.push(i.$);else if(i.$){const c=i.$({context:r.context,props:n});yn(c)?l=c:t.push(c)}const a=Ug(t),s=ws(a,e.props,r,n);l?o.push(`${l} {`):s.length&&o.push(s),e.children&&vl(e.children,{context:r.context,props:n},c=>{if(typeof c=="string"){const u=ws(a,{raw:c},r,n);o.push(u)}else df(c,t,o,r,n)}),t.pop(),l&&o.push("}"),i&&i.after&&i.after(r.context)}function Yg(e,t,o){const r=[];return df(e,[],r,t,o),r.join(` + +`)}function Sl(e){for(var t=0,o,r=0,n=e.length;n>=4;++r,n-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function qg(e,t,o,r){const{els:n}=t;if(o===void 0)n.forEach(As),t.els=[];else{const i=ia(o,r);i&&n.includes(i)&&(As(i),t.els=n.filter(l=>l!==i))}}function Ls(e,t){e.push(t)}function Xg(e,t,o,r,n,i,l,a,s){let c;if(o===void 0&&(c=t.render(r),o=Sl(c)),s){s.adapter(o,c??t.render(r));return}a===void 0&&(a=document.head);const u=ia(o,a);if(u!==null&&!i)return u;const f=u??Vg(o);if(c===void 0&&(c=t.render(r)),f.textContent=c,u!==null)return u;if(l){const d=a.querySelector(`meta[name="${l}"]`);if(d)return a.insertBefore(f,d),Ls(t.els,f),f}return n?a.insertBefore(f,a.querySelector("style, link")):a.appendChild(f),Ls(t.els,f),f}function Jg(e){return Yg(this,this.instance,e)}function Qg(e={}){const{id:t,ssr:o,props:r,head:n=!1,force:i=!1,anchorMetaName:l,parent:a}=e;return Xg(this.instance,this,t,r,n,i,l,a,o)}function Zg(e={}){const{id:t,parent:o}=e;qg(this.instance,this,t,o)}const En=function(e,t,o,r){return{instance:e,$:t,props:o,children:r,els:[],render:Jg,mount:Qg,unmount:Zg}},eC=function(e,t,o,r){return Array.isArray(t)?En(e,{$:null},null,t):Array.isArray(o)?En(e,t,null,o):Array.isArray(r)?En(e,t,o,r):En(e,t,o,null)};function tC(e={}){const t={c:((...o)=>eC(t,...o)),use:(o,...r)=>o.install(t,...r),find:ia,context:{},config:e};return t}const oC=".n-",rC="__",nC="--",pf=tC(),mf=Hg({blockPrefix:oC,elementPrefix:rC,modifierPrefix:nC});pf.use(mf);const{c:Ds,find:bT}=pf,{cB:xT,cE:_T,cM:vT,cNotM:ST}=mf;function yT(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}var hf=typeof global=="object"&&global&&global.Object===Object&&global,iC=typeof self=="object"&&self&&self.Object===Object&&self,Sr=hf||iC||Function("return this")(),Vn=Sr.Symbol,gf=Object.prototype,lC=gf.hasOwnProperty,aC=gf.toString,Rr=Vn?Vn.toStringTag:void 0;function sC(e){var t=lC.call(e,Rr),o=e[Rr];try{e[Rr]=void 0;var r=!0}catch{}var n=aC.call(e);return r&&(t?e[Rr]=o:delete e[Rr]),n}var cC=Object.prototype,uC=cC.toString;function fC(e){return uC.call(e)}var dC="[object Null]",pC="[object Undefined]",Rs=Vn?Vn.toStringTag:void 0;function xi(e){return e==null?e===void 0?pC:dC:Rs&&Rs in Object(e)?sC(e):fC(e)}function hn(e){return e!=null&&typeof e=="object"}var yl=Array.isArray;function or(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Cf(e){return e}var mC="[object AsyncFunction]",hC="[object Function]",gC="[object GeneratorFunction]",CC="[object Proxy]";function la(e){if(!or(e))return!1;var t=xi(e);return t==hC||t==gC||t==mC||t==CC}var qi=Sr["__core-js_shared__"],Fs=(function(){var e=/[^.]+$/.exec(qi&&qi.keys&&qi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function bC(e){return!!Fs&&Fs in e}var xC=Function.prototype,_C=xC.toString;function vC(e){if(e!=null){try{return _C.call(e)}catch{}try{return e+""}catch{}}return""}var SC=/[\\^$.*+?()[\]{}|]/g,yC=/^\[object .+?Constructor\]$/,EC=Function.prototype,TC=Object.prototype,PC=EC.toString,IC=TC.hasOwnProperty,AC=RegExp("^"+PC.call(IC).replace(SC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wC(e){if(!or(e)||bC(e))return!1;var t=la(e)?AC:yC;return t.test(vC(e))}function LC(e,t){return e?.[t]}function aa(e,t){var o=LC(e,t);return wC(o)?o:void 0}var Os=Object.create,DC=(function(){function e(){}return function(t){if(!or(t))return{};if(Os)return Os(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}})();function RC(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}function FC(e,t){var o=-1,r=e.length;for(t||(t=Array(r));++o0){if(++t>=OC)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function HC(e){return function(){return e}}var jn=(function(){try{var e=aa(Object,"defineProperty");return e({},"",{}),e}catch{}})(),$C=jn?function(e,t){return jn(e,"toString",{configurable:!0,enumerable:!1,value:HC(t),writable:!0})}:Cf,BC=kC($C),WC=9007199254740991,zC=/^(?:0|[1-9]\d*)$/;function bf(e,t){var o=typeof e;return t=t??WC,!!t&&(o=="number"||o!="symbol"&&zC.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=qC}function ca(e){return e!=null&&xf(e.length)&&!la(e)}function XC(e,t,o){if(!or(o))return!1;var r=typeof t;return(r=="number"?ca(o)&&bf(t,o.length):r=="string"&&t in o)?_i(o[t],e):!1}function JC(e){return YC(function(t,o){var r=-1,n=o.length,i=n>1?o[n-1]:void 0,l=n>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,l&&XC(o[0],o[1],l)&&(i=n<3?void 0:i,n=1),t=Object(t);++r-1}function ox(e,t){var o=this.__data__,r=vi(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}function ho(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t +${t} +`}function Hx(e,t,o){const{styles:r,ids:n}=o;n.has(e)||r!==null&&(n.add(e),r.push(kx(e,t)))}const $x=typeof document<"u";function Bx(){if($x)return;const e=Ze(Nx,null);if(e!==null)return{adapter:(t,o)=>Hx(t,o,e),context:e}}const js={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function Wx(e,t,o){t/=100,o/=100;let r=(n,i=(n+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function zx(e,t,o){t/=100,o/=100;let r=t*Math.min(o,1-o),n=(i,l=(i+e/30)%12)=>o-r*Math.max(Math.min(l-3,9-l,1),-1);return[n(0)*255,n(8)*255,n(4)*255]}const Yt="^\\s*",qt="\\s*$",wo="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",_t="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",qo="([0-9A-Fa-f])",Xo="([0-9A-Fa-f]{2})",Rf=new RegExp(`${Yt}hsl\\s*\\(${_t},${wo},${wo}\\)${qt}`),Ff=new RegExp(`${Yt}hsv\\s*\\(${_t},${wo},${wo}\\)${qt}`),Of=new RegExp(`${Yt}hsla\\s*\\(${_t},${wo},${wo},${_t}\\)${qt}`),Mf=new RegExp(`${Yt}hsva\\s*\\(${_t},${wo},${wo},${_t}\\)${qt}`),Ux=new RegExp(`${Yt}rgb\\s*\\(${_t},${_t},${_t}\\)${qt}`),Vx=new RegExp(`${Yt}rgba\\s*\\(${_t},${_t},${_t},${_t}\\)${qt}`),jx=new RegExp(`${Yt}#${qo}${qo}${qo}${qt}`),Gx=new RegExp(`${Yt}#${Xo}${Xo}${Xo}${qt}`),Kx=new RegExp(`${Yt}#${qo}${qo}${qo}${qo}${qt}`),Yx=new RegExp(`${Yt}#${Xo}${Xo}${Xo}${Xo}${qt}`);function dt(e){return parseInt(e,16)}function qx(e){try{let t;if(t=Of.exec(e))return[Gn(t[1]),Eo(t[5]),Eo(t[9]),Zo(t[13])];if(t=Rf.exec(e))return[Gn(t[1]),Eo(t[5]),Eo(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function Xx(e){try{let t;if(t=Mf.exec(e))return[Gn(t[1]),Eo(t[5]),Eo(t[9]),Zo(t[13])];if(t=Ff.exec(e))return[Gn(t[1]),Eo(t[5]),Eo(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function fo(e){try{let t;if(t=Gx.exec(e))return[dt(t[1]),dt(t[2]),dt(t[3]),1];if(t=Ux.exec(e))return[Xe(t[1]),Xe(t[5]),Xe(t[9]),1];if(t=Vx.exec(e))return[Xe(t[1]),Xe(t[5]),Xe(t[9]),Zo(t[13])];if(t=jx.exec(e))return[dt(t[1]+t[1]),dt(t[2]+t[2]),dt(t[3]+t[3]),1];if(t=Yx.exec(e))return[dt(t[1]),dt(t[2]),dt(t[3]),Zo(dt(t[4])/255)];if(t=Kx.exec(e))return[dt(t[1]+t[1]),dt(t[2]+t[2]),dt(t[3]+t[3]),Zo(dt(t[4]+t[4])/255)];if(e in js)return fo(js[e]);if(Rf.test(e)||Of.test(e)){const[o,r,n,i]=qx(e);return[...zx(o,r,n),i]}else if(Ff.test(e)||Mf.test(e)){const[o,r,n,i]=Xx(e);return[...Wx(o,r,n),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Jx(e){return e>1?1:e<0?0:e}function Al(e,t,o,r){return`rgba(${Xe(e)}, ${Xe(t)}, ${Xe(o)}, ${Jx(r)})`}function Ji(e,t,o,r,n){return Xe((e*t*(1-r)+o*r)/n)}function Z(e,t){Array.isArray(e)||(e=fo(e)),Array.isArray(t)||(t=fo(t));const o=e[3],r=t[3],n=Zo(o+r-o*r);return Al(Ji(e[0],o,t[0],r,n),Ji(e[1],o,t[1],r,n),Ji(e[2],o,t[2],r,n),n)}function J(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:fo(e);return typeof t.alpha=="number"?Al(o,r,n,t.alpha):Al(o,r,n,i)}function Me(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:fo(e),{lightness:l=1,alpha:a=1}=t;return Qx([o*l,r*l,n*l,i*a])}function Zo(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Gn(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function Xe(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Eo(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function Qx(e){const[t,o,r]=e;return 3 in e?`rgba(${Xe(t)}, ${Xe(o)}, ${Xe(r)}, ${Zo(e[3])})`:`rgba(${Xe(t)}, ${Xe(o)}, ${Xe(r)}, 1)`}const q={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},Zx=fo(q.neutralBase),Nf=fo(q.neutralInvertBase),e_=`rgba(${Nf.slice(0,3).join(", ")}, `;function he(e){return`${e_+String(e)})`}function t_(e){const t=Array.from(Nf);return t[3]=Number(e),Z(Zx,t)}const W={name:"common",...ua,baseColor:q.neutralBase,primaryColor:q.primaryDefault,primaryColorHover:q.primaryHover,primaryColorPressed:q.primaryActive,primaryColorSuppl:q.primarySuppl,infoColor:q.infoDefault,infoColorHover:q.infoHover,infoColorPressed:q.infoActive,infoColorSuppl:q.infoSuppl,successColor:q.successDefault,successColorHover:q.successHover,successColorPressed:q.successActive,successColorSuppl:q.successSuppl,warningColor:q.warningDefault,warningColorHover:q.warningHover,warningColorPressed:q.warningActive,warningColorSuppl:q.warningSuppl,errorColor:q.errorDefault,errorColorHover:q.errorHover,errorColorPressed:q.errorActive,errorColorSuppl:q.errorSuppl,textColorBase:q.neutralTextBase,textColor1:he(q.alpha1),textColor2:he(q.alpha2),textColor3:he(q.alpha3),textColorDisabled:he(q.alpha4),placeholderColor:he(q.alpha4),placeholderColorDisabled:he(q.alpha5),iconColor:he(q.alpha4),iconColorDisabled:he(q.alpha5),iconColorHover:he(Number(q.alpha4)*1.25),iconColorPressed:he(Number(q.alpha4)*.8),opacity1:q.alpha1,opacity2:q.alpha2,opacity3:q.alpha3,opacity4:q.alpha4,opacity5:q.alpha5,dividerColor:he(q.alphaDivider),borderColor:he(q.alphaBorder),closeIconColorHover:he(Number(q.alphaClose)),closeIconColor:he(Number(q.alphaClose)),closeIconColorPressed:he(Number(q.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:he(q.alpha4),clearColorHover:Me(he(q.alpha4),{alpha:1.25}),clearColorPressed:Me(he(q.alpha4),{alpha:.8}),scrollbarColor:he(q.alphaScrollbar),scrollbarColorHover:he(q.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:he(q.alphaProgressRail),railColor:he(q.alphaRail),popoverColor:q.neutralPopover,tableColor:q.neutralCard,cardColor:q.neutralCard,modalColor:q.neutralModal,bodyColor:q.neutralBody,tagColor:t_(q.alphaTag),avatarColor:he(q.alphaAvatar),invertedColor:q.neutralBase,inputColor:he(q.alphaInput),codeColor:he(q.alphaCode),tabColor:he(q.alphaTab),actionColor:he(q.alphaAction),tableHeaderColor:he(q.alphaAction),hoverColor:he(q.alphaPending),tableColorHover:he(q.alphaTablePending),tableColorStriped:he(q.alphaTableStriped),pressedColor:he(q.alphaPressed),opacityDisabled:q.alphaDisabled,inputColorDisabled:he(q.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"},re={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaAvatar:"0.2",alphaProgressRail:".08",alphaInput:"0",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},o_=fo(re.neutralBase),kf=fo(re.neutralInvertBase),r_=`rgba(${kf.slice(0,3).join(", ")}, `;function Gs(e){return`${r_+String(e)})`}function Ke(e){const t=Array.from(kf);return t[3]=Number(e),Z(o_,t)}const n_={name:"common",...ua,baseColor:re.neutralBase,primaryColor:re.primaryDefault,primaryColorHover:re.primaryHover,primaryColorPressed:re.primaryActive,primaryColorSuppl:re.primarySuppl,infoColor:re.infoDefault,infoColorHover:re.infoHover,infoColorPressed:re.infoActive,infoColorSuppl:re.infoSuppl,successColor:re.successDefault,successColorHover:re.successHover,successColorPressed:re.successActive,successColorSuppl:re.successSuppl,warningColor:re.warningDefault,warningColorHover:re.warningHover,warningColorPressed:re.warningActive,warningColorSuppl:re.warningSuppl,errorColor:re.errorDefault,errorColorHover:re.errorHover,errorColorPressed:re.errorActive,errorColorSuppl:re.errorSuppl,textColorBase:re.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Ke(re.alpha4),placeholderColor:Ke(re.alpha4),placeholderColorDisabled:Ke(re.alpha5),iconColor:Ke(re.alpha4),iconColorHover:Me(Ke(re.alpha4),{lightness:.75}),iconColorPressed:Me(Ke(re.alpha4),{lightness:.9}),iconColorDisabled:Ke(re.alpha5),opacity1:re.alpha1,opacity2:re.alpha2,opacity3:re.alpha3,opacity4:re.alpha4,opacity5:re.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Ke(Number(re.alphaClose)),closeIconColorHover:Ke(Number(re.alphaClose)),closeIconColorPressed:Ke(Number(re.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Ke(re.alpha4),clearColorHover:Me(Ke(re.alpha4),{lightness:.75}),clearColorPressed:Me(Ke(re.alpha4),{lightness:.9}),scrollbarColor:Gs(re.alphaScrollbar),scrollbarColorHover:Gs(re.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ke(re.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:re.neutralPopover,tableColor:re.neutralCard,cardColor:re.neutralCard,modalColor:re.neutralModal,bodyColor:re.neutralBody,tagColor:"#eee",avatarColor:Ke(re.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Ke(re.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:re.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"},i_={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function l_(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:r,scrollbarWidth:n,scrollbarBorderRadius:i}=e;return{...i_,height:r,width:n,borderRadius:i,color:t,colorHover:o}}const et={name:"Scrollbar",common:W,self:l_};var a_={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function Hf(e){const{textColorDisabled:t,iconColor:o,textColor2:r,fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s}=e;return{...a_,fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:o,extraTextColor:r}}const s_={name:"Empty",common:n_,self:Hf},rr={name:"Empty",common:W,self:Hf};function c_(e,t,o,r,n,i){const l=Bx(),a=Ze(Il,null);if(o){const s=()=>{const c=i?.value;o.mount({id:c===void 0?t:c+t,head:!0,props:{bPrefix:c?`.${c}-`:void 0},anchorMetaName:Vs,ssr:l,parent:a?.styleMountTarget}),a?.preflightStyleDisabled||Mx.mount({id:"n-global",head:!0,anchorMetaName:Vs,ssr:l,parent:a?.styleMountTarget})};l?s():Jl(s)}return fe(()=>{const{theme:{common:s,self:c,peers:u={}}={},themeOverrides:f={},builtinThemeOverrides:d={}}=n,{common:p,peers:g}=f,{common:C=void 0,[e]:{common:S=void 0,self:E=void 0,peers:T={}}={}}=a?.mergedThemeRef.value||{},{common:v=void 0,[e]:y={}}=a?.mergedThemeOverridesRef.value||{},{common:w,peers:L={}}=y,D=kr({},s||S||C||r.common,v,w,p);return{common:D,self:kr((c||E||r.self)?.(D),d,y,f),peers:kr({},r.peers,T,u),peerOverrides:kr({},d.peers,L,g)}})}c_.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};var u_={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function f_(e){const{borderRadius:t,popoverColor:o,textColor3:r,dividerColor:n,textColor2:i,primaryColorPressed:l,textColorDisabled:a,primaryColor:s,opacityDisabled:c,hoverColor:u,fontSizeTiny:f,fontSizeSmall:d,fontSizeMedium:p,fontSizeLarge:g,fontSizeHuge:C,heightTiny:S,heightSmall:E,heightMedium:T,heightLarge:v,heightHuge:y}=e;return{...u_,optionFontSizeTiny:f,optionFontSizeSmall:d,optionFontSizeMedium:p,optionFontSizeLarge:g,optionFontSizeHuge:C,optionHeightTiny:S,optionHeightSmall:E,optionHeightMedium:T,optionHeightLarge:v,optionHeightHuge:y,borderRadius:t,color:o,groupHeaderTextColor:r,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:l,optionTextColorDisabled:a,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:i,loadingColor:s}}const gn={name:"InternalSelectMenu",common:W,peers:{Scrollbar:et,Empty:rr},self:f_};var d_={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function p_(e){const{boxShadow2:t,popoverColor:o,textColor2:r,borderRadius:n,fontSize:i,dividerColor:l}=e;return{...d_,fontSize:i,borderRadius:n,color:o,dividerColor:l,textColor:r,boxShadow:t}}const nr={name:"Popover",common:W,peers:{Scrollbar:et},self:p_};function Ks(e){const t=fe(e),o=mt(t.value);return St(t,r=>{o.value=r}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(r){e.set(r)}}}var m_={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"};const $f={name:"Tag",common:W,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:l,warningColor:a,errorColor:s,baseColor:c,borderColor:u,tagColor:f,opacityDisabled:d,closeIconColor:p,closeIconColorHover:g,closeIconColorPressed:C,closeColorHover:S,closeColorPressed:E,borderRadiusSmall:T,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:w,fontSizeMedium:L,heightMini:D,heightTiny:F,heightSmall:P,heightMedium:U,buttonColor2Hover:X,buttonColor2Pressed:k,fontWeightStrong:Q}=e;return{...m_,closeBorderRadius:T,heightTiny:D,heightSmall:F,heightMedium:P,heightLarge:U,borderRadius:T,opacityDisabled:d,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:w,fontSizeLarge:L,fontWeightStrong:Q,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:X,colorPressedCheckable:k,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:g,closeIconColorPressed:C,closeColorHover:S,closeColorPressed:E,borderPrimary:`1px solid ${J(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:J(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:Me(n,{lightness:.7}),closeIconColorHoverPrimary:Me(n,{lightness:.7}),closeIconColorPressedPrimary:Me(n,{lightness:.7}),closeColorHoverPrimary:J(n,{alpha:.16}),closeColorPressedPrimary:J(n,{alpha:.12}),borderInfo:`1px solid ${J(i,{alpha:.3})}`,textColorInfo:i,colorInfo:J(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:Me(i,{alpha:.7}),closeIconColorHoverInfo:Me(i,{alpha:.7}),closeIconColorPressedInfo:Me(i,{alpha:.7}),closeColorHoverInfo:J(i,{alpha:.16}),closeColorPressedInfo:J(i,{alpha:.12}),borderSuccess:`1px solid ${J(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:J(l,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:Me(l,{alpha:.7}),closeIconColorHoverSuccess:Me(l,{alpha:.7}),closeIconColorPressedSuccess:Me(l,{alpha:.7}),closeColorHoverSuccess:J(l,{alpha:.16}),closeColorPressedSuccess:J(l,{alpha:.12}),borderWarning:`1px solid ${J(a,{alpha:.3})}`,textColorWarning:a,colorWarning:J(a,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:Me(a,{alpha:.7}),closeIconColorHoverWarning:Me(a,{alpha:.7}),closeIconColorPressedWarning:Me(a,{alpha:.7}),closeColorHoverWarning:J(a,{alpha:.16}),closeColorPressedWarning:J(a,{alpha:.11}),borderError:`1px solid ${J(s,{alpha:.3})}`,textColorError:s,colorError:J(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:Me(s,{alpha:.7}),closeIconColorHoverError:Me(s,{alpha:.7}),closeIconColorPressedError:Me(s,{alpha:.7}),closeColorHoverError:J(s,{alpha:.16}),closeColorPressedError:J(s,{alpha:.12})}}};var h_={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};const fa={name:"InternalSelection",common:W,peers:{Popover:nr},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:i,primaryColor:l,primaryColorHover:a,warningColor:s,warningColorHover:c,errorColor:u,errorColorHover:f,iconColor:d,iconColorDisabled:p,clearColor:g,clearColorHover:C,clearColorPressed:S,placeholderColor:E,placeholderColorDisabled:T,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:w,fontSizeLarge:L,heightTiny:D,heightSmall:F,heightMedium:P,heightLarge:U,fontWeight:X}=e;return{...h_,fontWeight:X,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:w,fontSizeLarge:L,heightTiny:D,heightSmall:F,heightMedium:P,heightLarge:U,borderRadius:t,textColor:o,textColorDisabled:r,placeholderColor:E,placeholderColorDisabled:T,color:n,colorDisabled:i,colorActive:J(l,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${a}`,borderActive:`1px solid ${l}`,borderFocus:`1px solid ${a}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${J(l,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${J(l,{alpha:.4})}`,caretColor:l,arrowColor:d,arrowColorDisabled:p,loadingColor:l,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${J(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${J(s,{alpha:.4})}`,colorActiveWarning:J(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${J(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${J(u,{alpha:.4})}`,colorActiveError:J(u,{alpha:.1}),caretColorError:u,clearColor:g,clearColorHover:C,clearColorPressed:S}}};var g_={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"};const C_={name:"Alert",common:W,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,dividerColor:n,inputColor:i,textColor1:l,textColor2:a,closeColorHover:s,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,infoColorSuppl:p,successColorSuppl:g,warningColorSuppl:C,errorColorSuppl:S,fontSize:E}=e;return{...g_,fontSize:E,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${n}`,color:i,titleTextColor:l,iconColor:a,contentTextColor:a,closeBorderRadius:o,closeColorHover:s,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,borderInfo:`1px solid ${J(p,{alpha:.35})}`,colorInfo:J(p,{alpha:.25}),titleTextColorInfo:l,iconColorInfo:p,contentTextColorInfo:a,closeColorHoverInfo:s,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:f,closeIconColorPressedInfo:d,borderSuccess:`1px solid ${J(g,{alpha:.35})}`,colorSuccess:J(g,{alpha:.25}),titleTextColorSuccess:l,iconColorSuccess:g,contentTextColorSuccess:a,closeColorHoverSuccess:s,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:d,borderWarning:`1px solid ${J(C,{alpha:.35})}`,colorWarning:J(C,{alpha:.25}),titleTextColorWarning:l,iconColorWarning:C,contentTextColorWarning:a,closeColorHoverWarning:s,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:f,closeIconColorPressedWarning:d,borderError:`1px solid ${J(S,{alpha:.35})}`,colorError:J(S,{alpha:.25}),titleTextColorError:l,iconColorError:S,contentTextColorError:a,closeColorHoverError:s,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:f,closeIconColorPressedError:d}}};var b_={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function x_(e){const{borderRadius:t,railColor:o,primaryColor:r,primaryColorHover:n,primaryColorPressed:i,textColor2:l}=e;return{...b_,borderRadius:t,railColor:o,railColorActive:r,linkColor:J(r,{alpha:.15}),linkTextColor:l,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:r}}const __={name:"Anchor",common:W,self:x_};var v_={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};function S_(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:l,inputColorDisabled:a,warningColor:s,warningColorHover:c,errorColor:u,errorColorHover:f,borderRadius:d,lineHeight:p,fontSizeTiny:g,fontSizeSmall:C,fontSizeMedium:S,fontSizeLarge:E,heightTiny:T,heightSmall:v,heightMedium:y,heightLarge:w,clearColor:L,clearColorHover:D,clearColorPressed:F,placeholderColor:P,placeholderColorDisabled:U,iconColor:X,iconColorDisabled:k,iconColorHover:Q,iconColorPressed:me,fontWeight:ye}=e;return{...v_,fontWeight:ye,countTextColorDisabled:r,countTextColor:o,heightTiny:T,heightSmall:v,heightMedium:y,heightLarge:w,fontSizeTiny:g,fontSizeSmall:C,fontSizeMedium:S,fontSizeLarge:E,lineHeight:p,lineHeightTextarea:p,borderRadius:d,iconSize:"16px",groupLabelColor:l,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:P,placeholderColorDisabled:U,color:l,colorHover:l,colorDisabled:a,colorFocus:J(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${J(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:J(s,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${J(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:J(u,{alpha:.1}),borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 8px 0 ${J(u,{alpha:.3})}`,caretColorError:u,clearColor:L,clearColorHover:D,clearColorPressed:F,iconColor:X,iconColorDisabled:k,iconColorHover:Q,iconColorPressed:me,suffixTextColor:t}}const Et={name:"Input",common:W,peers:{Scrollbar:et},self:S_};function y_(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const E_={name:"AutoComplete",common:W,peers:{InternalSelectMenu:gn,Input:Et},self:y_};function T_(e){const{borderRadius:t,avatarColor:o,cardColor:r,fontSize:n,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:c,modalColor:u,popoverColor:f}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${r}`,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:c,color:Z(r,o),colorModal:Z(u,o),colorPopover:Z(f,o)}}const Bf={name:"Avatar",common:W,self:T_};function P_(){return{gap:"-12px"}}var I_={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"};const A_={name:"BackTop",common:W,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:r,primaryColorPressed:n}=e;return{...I_,color:t,textColor:o,iconColor:o,iconColorHover:r,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"}}},w_={name:"Badge",common:W,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:r,warningColorSuppl:n,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:r,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}};var L_={fontWeightActive:"400"};function D_(e){const{fontSize:t,textColor3:o,textColor2:r,borderRadius:n,buttonColor2Hover:i,buttonColor2Pressed:l}=e;return{...L_,fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:n,itemColorHover:i,itemColorPressed:l,separatorColor:o}}const R_={name:"Breadcrumb",common:W,self:D_};var F_={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function O_(e){const{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadius:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:d,primaryColorHover:p,primaryColorPressed:g,borderColor:C,primaryColor:S,baseColor:E,infoColor:T,infoColorHover:v,infoColorPressed:y,successColor:w,successColorHover:L,successColorPressed:D,warningColor:F,warningColorHover:P,warningColorPressed:U,errorColor:X,errorColorHover:k,errorColorPressed:Q,fontWeight:me,buttonColor2:ye,buttonColor2Hover:se,buttonColor2Pressed:ne,fontWeightStrong:de}=e;return{...F_,heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:ye,colorSecondaryHover:se,colorSecondaryPressed:ne,colorTertiary:ye,colorTertiaryHover:se,colorTertiaryPressed:ne,colorQuaternary:"#0000",colorQuaternaryHover:se,colorQuaternaryPressed:ne,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:d,textColorHover:p,textColorPressed:g,textColorFocus:p,textColorDisabled:f,textColorText:f,textColorTextHover:p,textColorTextPressed:g,textColorTextFocus:p,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:p,textColorGhostPressed:g,textColorGhostFocus:p,textColorGhostDisabled:f,border:`1px solid ${C}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${g}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${C}`,rippleColor:S,colorPrimary:S,colorHoverPrimary:p,colorPressedPrimary:g,colorFocusPrimary:p,colorDisabledPrimary:S,textColorPrimary:E,textColorHoverPrimary:E,textColorPressedPrimary:E,textColorFocusPrimary:E,textColorDisabledPrimary:E,textColorTextPrimary:S,textColorTextHoverPrimary:p,textColorTextPressedPrimary:g,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:f,textColorGhostPrimary:S,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:g,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:S,borderPrimary:`1px solid ${S}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${g}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${S}`,rippleColorPrimary:S,colorInfo:T,colorHoverInfo:v,colorPressedInfo:y,colorFocusInfo:v,colorDisabledInfo:T,textColorInfo:E,textColorHoverInfo:E,textColorPressedInfo:E,textColorFocusInfo:E,textColorDisabledInfo:E,textColorTextInfo:T,textColorTextHoverInfo:v,textColorTextPressedInfo:y,textColorTextFocusInfo:v,textColorTextDisabledInfo:f,textColorGhostInfo:T,textColorGhostHoverInfo:v,textColorGhostPressedInfo:y,textColorGhostFocusInfo:v,textColorGhostDisabledInfo:T,borderInfo:`1px solid ${T}`,borderHoverInfo:`1px solid ${v}`,borderPressedInfo:`1px solid ${y}`,borderFocusInfo:`1px solid ${v}`,borderDisabledInfo:`1px solid ${T}`,rippleColorInfo:T,colorSuccess:w,colorHoverSuccess:L,colorPressedSuccess:D,colorFocusSuccess:L,colorDisabledSuccess:w,textColorSuccess:E,textColorHoverSuccess:E,textColorPressedSuccess:E,textColorFocusSuccess:E,textColorDisabledSuccess:E,textColorTextSuccess:w,textColorTextHoverSuccess:L,textColorTextPressedSuccess:D,textColorTextFocusSuccess:L,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:L,textColorGhostPressedSuccess:D,textColorGhostFocusSuccess:L,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${L}`,borderPressedSuccess:`1px solid ${D}`,borderFocusSuccess:`1px solid ${L}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:F,colorHoverWarning:P,colorPressedWarning:U,colorFocusWarning:P,colorDisabledWarning:F,textColorWarning:E,textColorHoverWarning:E,textColorPressedWarning:E,textColorFocusWarning:E,textColorDisabledWarning:E,textColorTextWarning:F,textColorTextHoverWarning:P,textColorTextPressedWarning:U,textColorTextFocusWarning:P,textColorTextDisabledWarning:f,textColorGhostWarning:F,textColorGhostHoverWarning:P,textColorGhostPressedWarning:U,textColorGhostFocusWarning:P,textColorGhostDisabledWarning:F,borderWarning:`1px solid ${F}`,borderHoverWarning:`1px solid ${P}`,borderPressedWarning:`1px solid ${U}`,borderFocusWarning:`1px solid ${P}`,borderDisabledWarning:`1px solid ${F}`,rippleColorWarning:F,colorError:X,colorHoverError:k,colorPressedError:Q,colorFocusError:k,colorDisabledError:X,textColorError:E,textColorHoverError:E,textColorPressedError:E,textColorFocusError:E,textColorDisabledError:E,textColorTextError:X,textColorTextHoverError:k,textColorTextPressedError:Q,textColorTextFocusError:k,textColorTextDisabledError:f,textColorGhostError:X,textColorGhostHoverError:k,textColorGhostPressedError:Q,textColorGhostFocusError:k,textColorGhostDisabledError:X,borderError:`1px solid ${X}`,borderHoverError:`1px solid ${k}`,borderPressedError:`1px solid ${Q}`,borderFocusError:`1px solid ${k}`,borderDisabledError:`1px solid ${X}`,rippleColorError:X,waveOpacity:"0.6",fontWeight:me,fontWeightStrong:de}}const ut={name:"Button",common:W,self(e){const t=O_(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}};var M_={titleFontSize:"22px"};function N_(e){const{borderRadius:t,fontSize:o,lineHeight:r,textColor2:n,textColor1:i,textColorDisabled:l,dividerColor:a,fontWeightStrong:s,primaryColor:c,baseColor:u,hoverColor:f,cardColor:d,modalColor:p,popoverColor:g}=e;return{...M_,borderRadius:t,borderColor:Z(d,a),borderColorModal:Z(p,a),borderColorPopover:Z(g,a),textColor:n,titleFontWeight:s,titleTextColor:i,dayTextColor:l,fontSize:o,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:u,cellColorHover:Z(d,f),cellColorHoverModal:Z(p,f),cellColorHoverPopover:Z(g,f),cellColor:d,cellColorModal:p,cellColorPopover:g,barColor:c}}var k_={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function H_(e){const{primaryColor:t,borderRadius:o,lineHeight:r,fontSize:n,cardColor:i,textColor2:l,textColor1:a,dividerColor:s,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,closeColorHover:p,closeColorPressed:g,modalColor:C,boxShadow1:S,popoverColor:E,actionColor:T}=e;return{...k_,lineHeight:r,color:i,colorModal:C,colorPopover:E,colorTarget:t,colorEmbedded:T,colorEmbeddedModal:T,colorEmbeddedPopover:T,textColor:l,titleTextColor:a,borderColor:s,actionColor:T,titleFontWeight:c,closeColorHover:p,closeColorPressed:g,closeBorderRadius:o,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:S,borderRadius:o}}const Wf={name:"Card",common:W,self(e){const t=H_(e),{cardColor:o,modalColor:r,popoverColor:n}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=n,t}};function $_(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}var B_={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function W_(e){const{baseColor:t,inputColorDisabled:o,cardColor:r,modalColor:n,popoverColor:i,textColorDisabled:l,borderColor:a,primaryColor:s,textColor2:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,borderRadiusSmall:p,lineHeight:g}=e;return{...B_,labelLineHeight:g,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,borderRadius:p,color:t,colorChecked:s,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:r,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:l,checkMarkColorDisabledChecked:l,border:`1px solid ${a}`,borderDisabled:`1px solid ${a}`,borderDisabledChecked:`1px solid ${a}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${J(s,{alpha:.3})}`,textColor:c,textColorDisabled:l}}const Tr={name:"Checkbox",common:W,self(e){const{cardColor:t}=e,o=W_(e);return o.color="#0000",o.checkMarkColor=t,o}};function z_(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n,textColor3:i,primaryColor:l,textColorDisabled:a,dividerColor:s,hoverColor:c,fontSizeMedium:u,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:o,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:u,optionColorHover:c,optionTextColor:n,optionTextColorActive:l,optionTextColorDisabled:a,optionCheckMarkColor:l,loadingColor:l,columnWidth:"180px"}}const U_={name:"Cascader",common:W,peers:{InternalSelectMenu:gn,InternalSelection:fa,Scrollbar:et,Checkbox:Tr,Empty:s_},self:z_},zf={name:"Code",common:W,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:r,textColor3:n}=e;return{textColor:t,fontSize:o,fontWeightStrong:r,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}};function V_(e){const{fontWeight:t,textColor1:o,textColor2:r,textColorDisabled:n,dividerColor:i,fontSize:l}=e;return{titleFontSize:l,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:n,fontSize:l,textColor:r,arrowColor:r,arrowColorDisabled:n,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const j_={name:"Collapse",common:W,self:V_};function G_(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}function K_(e){const{fontSize:t,boxShadow2:o,popoverColor:r,textColor2:n,borderRadius:i,borderColor:l,heightSmall:a,heightMedium:s,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,dividerColor:p}=e;return{panelFontSize:t,boxShadow:o,color:r,textColor:n,borderRadius:i,border:`1px solid ${l}`,heightSmall:a,heightMedium:s,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,dividerColor:p}}const Y_={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Dx("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}};var q_=po({name:"ConfigProvider",alias:["App"],props:Y_,setup(e){const t=Ze(Il,null),o=fe(()=>{const{theme:C}=e;if(C===null)return;const S=t?.mergedThemeRef.value;return C===void 0?S:S===void 0?C:Object.assign({},S,C)}),r=fe(()=>{const{themeOverrides:C}=e;if(C!==null){if(C===void 0)return t?.mergedThemeOverridesRef.value;{const S=t?.mergedThemeOverridesRef.value;return S===void 0?C:kr({},S,C)}}}),n=Ks(()=>{const{namespace:C}=e;return C===void 0?t?.mergedNamespaceRef.value:C}),i=Ks(()=>{const{bordered:C}=e;return C===void 0?t?.mergedBorderedRef.value:C}),l=fe(()=>{const{icons:C}=e;return C===void 0?t?.mergedIconsRef.value:C}),a=fe(()=>{const{componentOptions:C}=e;return C!==void 0?C:t?.mergedComponentPropsRef.value}),s=fe(()=>{const{clsPrefix:C}=e;return C!==void 0?C:t?t.mergedClsPrefixRef.value:"n"}),c=fe(()=>{const{rtl:C}=e;if(C===void 0)return t?.mergedRtlRef.value;const S={};for(const E of C)S[E.name]=qr(E),E.peers?.forEach(T=>{T.name in S||(S[T.name]=qr(T))});return S}),u=fe(()=>e.breakpoints||t?.mergedBreakpointsRef.value),f=e.inlineThemeDisabled||t?.inlineThemeDisabled,d=e.preflightStyleDisabled||t?.preflightStyleDisabled,p=e.styleMountTarget||t?.styleMountTarget,g=fe(()=>{const{value:C}=o,{value:S}=r,E=S&&Object.keys(S).length!==0,T=C?.name;return T?E?`${T}-${Sl(JSON.stringify(r.value))}`:T:E?Sl(JSON.stringify(r.value)):""});return Wr(Il,{mergedThemeHashRef:g,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:l,mergedComponentPropsRef:a,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:s,mergedLocaleRef:fe(()=>{const{locale:C}=e;if(C!==null)return C===void 0?t?.mergedLocaleRef.value:C}),mergedDateLocaleRef:fe(()=>{const{dateLocale:C}=e;if(C!==null)return C===void 0?t?.mergedDateLocaleRef.value:C}),mergedHljsRef:fe(()=>{const{hljs:C}=e;return C===void 0?t?.mergedHljsRef.value:C}),mergedKatexRef:fe(()=>{const{katex:C}=e;return C===void 0?t?.mergedKatexRef.value:C}),mergedThemeRef:o,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:d||!1,styleMountTarget:p}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:n,mergedTheme:o,mergedThemeOverrides:r}},render(){return this.abstract?this.$slots.default?.():vr(this.as||this.tag,{class:`${this.mergedClsPrefix||"n"}-config-provider`},this.$slots.default?.())}});const Uf={name:"Popselect",common:W,peers:{Popover:nr,InternalSelectMenu:gn}};function X_(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Vf={name:"Select",common:W,peers:{InternalSelection:fa,InternalSelectMenu:gn},self:X_};var J_={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function Q_(e){const{textColor2:t,primaryColor:o,primaryColorHover:r,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:l,borderColor:a,borderRadius:s,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:f,heightTiny:d,heightSmall:p,heightMedium:g}=e;return{...J_,buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${a}`,buttonBorderHover:`1px solid ${a}`,buttonBorderPressed:`1px solid ${a}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:n,itemTextColorActive:o,itemTextColorDisabled:l,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${a}`,itemBorderRadius:s,itemSizeSmall:d,itemSizeMedium:p,itemSizeLarge:g,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:l}}const jf={name:"Pagination",common:W,peers:{Select:Vf,Input:Et,Popselect:Uf},self(e){const{primaryColor:t,opacity3:o}=e,r=J(t,{alpha:Number(o)}),n=Q_(e);return n.itemBorderActive=`1px solid ${r}`,n.itemBorderDisabled="1px solid #0000",n}};var Z_={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function ev(e){const{primaryColor:t,textColor2:o,dividerColor:r,hoverColor:n,popoverColor:i,invertedColor:l,borderRadius:a,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,heightSmall:d,heightMedium:p,heightLarge:g,heightHuge:C,textColor3:S,opacityDisabled:E}=e;return{...Z_,optionHeightSmall:d,optionHeightMedium:p,optionHeightLarge:g,optionHeightHuge:C,borderRadius:a,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:o,prefixColor:o,optionColorHover:n,optionColorActive:J(t,{alpha:.1}),groupHeaderTextColor:S,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:l,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:E}}const da={name:"Dropdown",common:W,peers:{Popover:nr},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:r}=e,n=ev(e);return n.colorInverted=r,n.optionColorActive=J(o,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}};var tv={padding:"8px 14px"};const yi={name:"Tooltip",common:W,peers:{Popover:nr},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n}=e;return{...tv,borderRadius:t,boxShadow:o,color:r,textColor:n}}};var ov={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};const Gf={name:"Radio",common:W,self(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:i,textColor2:l,opacityDisabled:a,borderRadius:s,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,heightSmall:d,heightMedium:p,heightLarge:g,lineHeight:C}=e;return{...ov,labelLineHeight:C,buttonHeightSmall:d,buttonHeightMedium:p,buttonHeightLarge:g,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${J(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:l,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:l,buttonTextColorActive:r,buttonTextColorHover:o,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${J(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s}}},Kf={name:"Ellipsis",common:W,peers:{Tooltip:yi}};var rv={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function nv(e){const{cardColor:t,modalColor:o,popoverColor:r,textColor2:n,textColor1:i,tableHeaderColor:l,tableColorHover:a,iconColor:s,primaryColor:c,fontWeightStrong:u,borderRadius:f,lineHeight:d,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:C,dividerColor:S,heightSmall:E,opacityDisabled:T,tableColorStriped:v}=e;return{...rv,actionDividerColor:S,lineHeight:d,borderRadius:f,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:C,borderColor:Z(t,S),tdColorHover:Z(t,a),tdColorSorting:Z(t,a),tdColorStriped:Z(t,v),thColor:Z(t,l),thColorHover:Z(Z(t,l),a),thColorSorting:Z(Z(t,l),a),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:u,thButtonColorHover:a,thIconColor:s,thIconColorActive:c,borderColorModal:Z(o,S),tdColorHoverModal:Z(o,a),tdColorSortingModal:Z(o,a),tdColorStripedModal:Z(o,v),thColorModal:Z(o,l),thColorHoverModal:Z(Z(o,l),a),thColorSortingModal:Z(Z(o,l),a),tdColorModal:o,borderColorPopover:Z(r,S),tdColorHoverPopover:Z(r,a),tdColorSortingPopover:Z(r,a),tdColorStripedPopover:Z(r,v),thColorPopover:Z(r,l),thColorHoverPopover:Z(Z(r,l),a),thColorSortingPopover:Z(Z(r,l),a),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:E,opacityLoading:T}}const iv={name:"DataTable",common:W,peers:{Button:ut,Checkbox:Tr,Radio:Gf,Pagination:jf,Scrollbar:et,Empty:rr,Popover:nr,Ellipsis:Kf,Dropdown:da},self(e){const t=nv(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}};function lv(e){const{textColorBase:t,opacity1:o,opacity2:r,opacity3:n,opacity4:i,opacity5:l}=e;return{color:t,opacity1Depth:o,opacity2Depth:r,opacity3Depth:n,opacity4Depth:i,opacity5Depth:l}}const av={name:"Icon",common:W,self:lv};var sv={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function cv(e){const{popoverColor:t,textColor2:o,primaryColor:r,hoverColor:n,dividerColor:i,opacityDisabled:l,boxShadow2:a,borderRadius:s,iconColor:c,iconColorDisabled:u}=e;return{...sv,panelColor:t,panelBoxShadow:a,panelDividerColor:i,itemTextColor:o,itemTextColorActive:r,itemColorHover:n,itemOpacityDisabled:l,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:u}}const Yf={name:"TimePicker",common:W,peers:{Scrollbar:et,Button:ut,Input:Et},self:cv};var uv={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function fv(e){const{hoverColor:t,fontSize:o,textColor2:r,textColorDisabled:n,popoverColor:i,primaryColor:l,borderRadiusSmall:a,iconColor:s,iconColorDisabled:c,textColor1:u,dividerColor:f,boxShadow2:d,borderRadius:p,fontWeightStrong:g}=e;return{...uv,itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:r,itemTextColorDisabled:n,itemTextColorActive:i,itemTextColorCurrent:l,itemColorIncluded:J(l,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:l,itemBorderRadius:a,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:d,panelBorderRadius:p,calendarTitleFontWeight:g,scrollItemBorderRadius:p,iconColor:s,iconColorDisabled:c}}const dv={name:"DatePicker",common:W,peers:{Input:Et,Button:ut,TimePicker:Yf,Scrollbar:et},self(e){const{popoverColor:t,hoverColor:o,primaryColor:r}=e,n=fv(e);return n.itemColorDisabled=Z(t,o),n.itemColorIncluded=J(r,{alpha:.15}),n.itemColorHover=Z(t,o),n}};var pv={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function mv(e){const{tableHeaderColor:t,textColor2:o,textColor1:r,cardColor:n,modalColor:i,popoverColor:l,dividerColor:a,borderRadius:s,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:d,fontSizeLarge:p}=e;return{...pv,lineHeight:u,fontSizeSmall:f,fontSizeMedium:d,fontSizeLarge:p,titleTextColor:r,thColor:Z(n,t),thColorModal:Z(i,t),thColorPopover:Z(l,t),thTextColor:r,thFontWeight:c,tdTextColor:o,tdColor:n,tdColorModal:i,tdColorPopover:l,borderColor:Z(n,a),borderColorModal:Z(i,a),borderColorPopover:Z(l,a),borderRadius:s}}const hv={name:"Descriptions",common:W,self:mv};var gv={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function Cv(e){const{textColor1:t,textColor2:o,modalColor:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,infoColor:c,successColor:u,warningColor:f,errorColor:d,primaryColor:p,dividerColor:g,borderRadius:C,fontWeightStrong:S,lineHeight:E,fontSize:T}=e;return{...gv,fontSize:T,lineHeight:E,border:`1px solid ${g}`,titleTextColor:t,textColor:o,color:r,closeColorHover:a,closeColorPressed:s,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeBorderRadius:C,iconColor:p,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:d,borderRadius:C,titleFontWeight:S}}const qf={name:"Dialog",common:W,peers:{Button:ut},self:Cv};function bv(e){const{modalColor:t,textColor2:o,boxShadow3:r}=e;return{color:t,textColor:o,boxShadow:r}}const xv={name:"Modal",common:W,peers:{Scrollbar:et,Dialog:qf,Card:Wf},self:bv},_v={name:"LoadingBar",common:W,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};var vv={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function Sv(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,infoColor:i,successColor:l,errorColor:a,warningColor:s,popoverColor:c,boxShadow2:u,primaryColor:f,lineHeight:d,borderRadius:p,closeColorHover:g,closeColorPressed:C}=e;return{...vv,closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:l,iconColorWarning:s,iconColorError:a,iconColorLoading:f,closeColorHover:g,closeColorPressed:C,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,closeColorHoverInfo:g,closeColorPressedInfo:C,closeIconColorInfo:o,closeIconColorHoverInfo:r,closeIconColorPressedInfo:n,closeColorHoverSuccess:g,closeColorPressedSuccess:C,closeIconColorSuccess:o,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:n,closeColorHoverError:g,closeColorPressedError:C,closeIconColorError:o,closeIconColorHoverError:r,closeIconColorPressedError:n,closeColorHoverWarning:g,closeColorPressedWarning:C,closeIconColorWarning:o,closeIconColorHoverWarning:r,closeIconColorPressedWarning:n,closeColorHoverLoading:g,closeColorPressedLoading:C,closeIconColorLoading:o,closeIconColorHoverLoading:r,closeIconColorPressedLoading:n,loadingColor:f,lineHeight:d,borderRadius:p,border:"0"}}const yv={name:"Message",common:W,self:Sv};var Ev={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function Tv(e){const{textColor2:t,successColor:o,infoColor:r,warningColor:n,errorColor:i,popoverColor:l,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:f,textColor1:d,textColor3:p,borderRadius:g,fontWeightStrong:C,boxShadow2:S,lineHeight:E,fontSize:T}=e;return{...Ev,borderRadius:g,lineHeight:E,fontSize:T,headerFontWeight:C,iconColor:t,iconColorSuccess:o,iconColorInfo:r,iconColorWarning:n,iconColorError:i,color:l,textColor:t,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:g,closeColorHover:u,closeColorPressed:f,headerTextColor:d,descriptionTextColor:p,actionTextColor:t,boxShadow:S}}const Pv={name:"Notification",common:W,peers:{Scrollbar:et},self:Tv};function Iv(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const Av={name:"Divider",common:W,self:Iv};function wv(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,borderRadius:p,primaryColorHover:g}=e;return{bodyPadding:"16px 24px",borderRadius:p,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:g}}const Lv={name:"Drawer",common:W,peers:{Scrollbar:et},self:wv};var Dv={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const Rv={name:"DynamicInput",common:W,peers:{Input:Et,Button:ut},self(){return Dv}};var Fv={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const Xf={name:"Space",self(){return Fv}},Ov={name:"DynamicTags",common:W,peers:{Input:Et,Button:ut,Tag:$f,Space:Xf},self(){return{inputWidth:"64px"}}},Mv={name:"Element",common:W};var Nv={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const kv={name:"Flex",self(){return Nv}},Hv={name:"ButtonGroup",common:W};var $v={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function Bv(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...$v,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const Wv={name:"Form",common:W,self:Bv},zv={name:"GradientText",common:W,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:c,infoColorSuppl:u,fontWeightStrong:f}=e;return{fontWeight:f,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:u,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:c,colorStartSuccess:o,colorEndSuccess:a}}},Uv={name:"InputNumber",common:W,peers:{Button:ut,Input:Et},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function Vv(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const jv={name:"InputOtp",common:W,peers:{Input:Et},self:Vv},Gv={name:"Layout",common:W,peers:{Scrollbar:et},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Z(o,l),siderToggleBarColorHover:Z(o,a),__invertScrollbar:"false"}}};function Kv(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Z(r,s),colorPopover:n,colorHoverPopover:Z(n,s),borderColor:i,borderColorModal:Z(r,i),borderColorPopover:Z(n,i),borderRadius:l,fontSize:a}}const Yv={name:"List",common:W,self:Kv},qv={name:"Log",common:W,peers:{Scrollbar:et,Code:zf},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},Xv={name:"Mention",common:W,peers:{InternalSelectMenu:gn,Input:Et},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function Jv(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function Qv(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:c}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:J(r,{alpha:.1}),itemColorActiveHover:J(r,{alpha:.1}),itemColorActiveCollapsed:J(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...Jv("#BBB",r,"#FFF","#AAA")}}const Zv={name:"Menu",common:W,peers:{Tooltip:yi,Dropdown:da},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=Qv(e);return r.itemColorActive=J(t,{alpha:.15}),r.itemColorActiveHover=J(t,{alpha:.15}),r.itemColorActiveCollapsed=J(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var e0={iconSize:"22px"};function t0(e){const{fontSize:t,warningColor:o}=e;return{...e0,fontSize:t,iconColor:o}}const o0={name:"Popconfirm",common:W,peers:{Button:ut,Popover:nr},self:t0};function r0(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const Jf={name:"Progress",common:W,self(e){const t=r0(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},n0={name:"Rate",common:W,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var i0={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function l0(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{...i0,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const a0={name:"Result",common:W,self:l0};var s0={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const c0={name:"Slider",common:W,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:c,opacityDisabled:u}=e;return{...s0,fontSize:c,markFontSize:c,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function u0(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const f0={name:"Spin",common:W,self:u0};function d0(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const p0={name:"Statistic",common:W,self:d0};var m0={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function h0(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...m0,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const g0={name:"Steps",common:W,self:h0};var C0={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const b0={name:"Switch",common:W,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...C0,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${J(n,{alpha:.3})}`}}};var x0={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function _0(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:c,fontWeightStrong:u,lineHeight:f,fontSizeSmall:d,fontSizeMedium:p,fontSizeLarge:g}=e;return{...x0,fontSizeSmall:d,fontSizeMedium:p,fontSizeLarge:g,lineHeight:f,borderRadius:c,borderColor:Z(o,t),borderColorModal:Z(r,t),borderColorPopover:Z(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Z(o,l),tdColorStripedModal:Z(r,l),tdColorStripedPopover:Z(n,l),thColor:Z(o,i),thColorModal:Z(r,i),thColorPopover:Z(n,i),thTextColor:a,tdTextColor:s,thFontWeight:u}}const v0={name:"Table",common:W,self:_0};var S0={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function y0(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:c,baseColor:u,dividerColor:f,fontWeight:d,textColor1:p,borderRadius:g,fontSize:C,fontWeightStrong:S}=e;return{...S0,colorSegment:c,tabFontSizeCard:C,tabTextColorLine:p,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:g,tabColor:c,tabColorSegment:u,tabBorderColor:f,tabFontWeightActive:d,tabFontWeight:d,tabBorderRadius:g,paneTextColor:t,fontWeightStrong:S}}const E0={name:"Tabs",common:W,peers:{Button:ut},self(e){const t=y0(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function T0(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const P0={name:"Thing",common:W,self:T0};var I0={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const A0={name:"Timeline",common:W,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:c,fontSize:u}=e;return{...I0,contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var w0={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const L0={name:"Transfer",common:W,peers:{Checkbox:Tr,Scrollbar:et,Input:Et,Empty:rr,Button:ut},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:c,textColor1:u,textColorDisabled:f,textColor2:d,textColor3:p,hoverColor:g,closeColorHover:C,closeColorPressed:S,closeIconColor:E,closeIconColorHover:T,closeIconColorPressed:v,dividerColor:y}=e;return{...w0,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:y,borderColor:"#0000",listColor:s,headerColor:c,titleTextColor:u,titleTextColorDisabled:f,extraTextColor:p,extraTextColorDisabled:f,itemTextColor:d,itemTextColorDisabled:f,itemColorPending:g,titleFontWeight:t,closeColorHover:C,closeColorPressed:S,closeIconColor:E,closeIconColorHover:T,closeIconColorPressed:v}}};function D0(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:J(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const Qf={name:"Tree",common:W,peers:{Checkbox:Tr,Scrollbar:et,Empty:rr},self(e){const{primaryColor:t}=e,o=D0(e);return o.nodeColorActive=J(t,{alpha:.15}),o}},R0={name:"TreeSelect",common:W,peers:{Tree:Qf,Empty:rr,InternalSelection:fa}};var F0={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function O0(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:c,textColor3:u,infoColor:f,warningColor:d,errorColor:p,successColor:g,codeColor:C}=e;return{...F0,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:c,pTextColor:o,pTextColor1Depth:c,pTextColor2Depth:o,pTextColor3Depth:u,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:p,headerBarColorWarning:d,headerBarColorSuccess:g,textColor:o,textColor1Depth:c,textColor2Depth:o,textColor3Depth:u,textColorPrimary:t,textColorInfo:f,textColorSuccess:g,textColorWarning:d,textColorError:p,codeTextColor:o,codeColor:C,codeBorder:"1px solid #0000"}}const M0={name:"Typography",common:W,self:O0};function N0(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:c,lineHeight:u,borderRadius:f,fontSize:d}=e;return{fontSize:d,lineHeight:u,borderRadius:f,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:c,itemColorHoverError:J(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const k0={name:"Upload",common:W,peers:{Button:ut,Progress:Jf},self(e){const{errorColor:t}=e,o=N0(e);return o.itemColorHoverError=J(t,{alpha:.09}),o}},H0={name:"Watermark",common:W,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function $0(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}function B0(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}var W0={extraFontSize:"12px",width:"440px"};function z0(){return{}}var U0={titleFontSize:"18px",backSize:"22px"};function V0(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...U0,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const j0=()=>({}),G0={name:"AvatarGroup",common:W,peers:{Avatar:Bf},self:P_},K0={name:"Calendar",common:W,peers:{Button:ut},self:N_},Y0={name:"Carousel",common:W,self:$_},q0={name:"CollapseTransition",common:W,self:G_},X0={name:"ColorPicker",common:W,peers:{Input:Et,Button:ut},self:K_},J0={name:"Row",common:W},Q0={name:"PageHeader",common:W,self:V0},Z0={name:"FloatButton",common:W,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:c}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:c}}},eS={name:"IconWrapper",common:W,self:B0},tS={name:"Image",common:W,peers:{Tooltip:yi},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},oS={name:"Transfer",common:W,peers:{Checkbox:Tr,Scrollbar:et,Input:Et,Empty:rr,Button:ut},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:c,borderRadius:u,inputColor:f,tableHeaderColor:d,textColor1:p,textColorDisabled:g,textColor2:C,hoverColor:S}=e;return{...W0,itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:u,borderColor:"#0000",listColor:f,headerColor:d,titleTextColor:p,titleTextColorDisabled:g,extraTextColor:C,filterDividerColor:"#0000",itemTextColor:C,itemTextColorDisabled:g,itemColorPending:S,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},rS={name:"Marquee",common:W,self:z0},nS={name:"QrCode",common:W,self:e=>({borderRadius:e.borderRadius})},iS={name:"Skeleton",common:W,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},lS={name:"Split",common:W},aS={name:"Equation",common:W,self:j0},sS={name:"FloatButtonGroup",common:W,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},cS={name:"Heatmap",common:W,self(e){return{...$0(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},uS={name:"dark",common:W,Alert:C_,Anchor:__,AutoComplete:E_,Avatar:Bf,AvatarGroup:G0,BackTop:A_,Badge:w_,Breadcrumb:R_,Button:ut,ButtonGroup:Hv,Calendar:K0,Card:Wf,Carousel:Y0,Cascader:U_,Checkbox:Tr,Code:zf,Collapse:j_,CollapseTransition:q0,ColorPicker:X0,DataTable:iv,DatePicker:dv,Descriptions:hv,Dialog:qf,Divider:Av,Drawer:Lv,Dropdown:da,DynamicInput:Rv,DynamicTags:Ov,Element:Mv,Empty:rr,Ellipsis:Kf,Equation:aS,Flex:kv,Form:Wv,GradientText:zv,Heatmap:cS,Icon:av,IconWrapper:eS,Image:tS,Input:Et,InputNumber:Uv,InputOtp:jv,LegacyTransfer:oS,Layout:Gv,List:Yv,LoadingBar:_v,Log:qv,Menu:Zv,Mention:Xv,Message:yv,Modal:xv,Notification:Pv,PageHeader:Q0,Pagination:jf,Popconfirm:o0,Popover:nr,Popselect:Uf,Progress:Jf,QrCode:nS,Radio:Gf,Rate:n0,Result:a0,Row:J0,Scrollbar:et,Select:Vf,Skeleton:iS,Slider:c0,Space:Xf,Spin:f0,Statistic:p0,Steps:g0,Switch:b0,Table:v0,Tabs:E0,Tag:$f,Thing:P0,TimePicker:Yf,Timeline:A0,Tooltip:yi,Transfer:L0,Tree:Qf,TreeSelect:R0,Typography:M0,Upload:k0,Watermark:H0,Split:lS,FloatButton:Z0,FloatButtonGroup:sS,Marquee:rS},Ei="".trim().replace(/\/+$/,"");function Zf(e){return`${Ei}${e}`}function fS(){return"/s/"}function dS(e,t){return`${(t?.trim()||location.origin).replace(/\/$/,"")}${fS()}${encodeURIComponent(e)}`}const ed={health:"/api/v1/health",publicConfig:"/api/v1/config",setup:"/setup",shareText:"/share/text",shareFile:"/share/file",shareMetadata:"/share/metadata",shareSelect:"/share/select",shareDownload:"/share/download",chunkInit:"/chunk/upload/init",chunkUpload:(e,t)=>`/chunk/upload/${encodeURIComponent(e)}/${t}`,chunkStatus:e=>`/chunk/upload/status/${encodeURIComponent(e)}`,chunkFinish:e=>`/chunk/upload/complete/${encodeURIComponent(e)}`,chunkCancel:e=>`/chunk/upload/${encodeURIComponent(e)}`,presignInit:"/presign/upload/init",presignProxyUpload:e=>`/presign/upload/proxy/${encodeURIComponent(e)}`,presignConfirm:e=>`/presign/upload/confirm/${encodeURIComponent(e)}`,presignStatus:e=>`/presign/upload/status/${encodeURIComponent(e)}`,presignCancel:e=>`/presign/upload/${encodeURIComponent(e)}`,adminLogin:"/admin/login",adminVerify:"/admin/verify",adminLogout:"/admin/logout",adminDashboard:"/admin/dashboard",adminFileList:"/admin/file/list",adminFileDelete:"/admin/file/delete",adminFileBatchDelete:"/admin/file/batch-delete",adminFileUpdate:"/admin/file/update",adminConfigGet:"/admin/config/get",adminConfigUpdate:"/admin/config/update",adminAuditList:"/admin/audit/list",adminPasswordUpdate:"/admin/settings/password",adminStorageSwitch:"/admin/storage/switch"};function pS(e){return`${Ei}/docs/api/${encodeURIComponent(e)}.md`}function mS(){return`${Ei}/docs/openapi.yaml`}const PT=Object.freeze(Object.defineProperty({__proto__:null,API_BASE:Ei,api:Zf,paths:ed,pickupPageUrl:dS,remoteDocUrl:pS,remoteOpenApiUrl:mS},Symbol.toStringTag,{value:"Module"}));class st extends Error{code;msg;httpStatus;constructor(t,o,r){super(o||`请求失败(${t})`),this.name="ApiError",this.code=t,this.msg=o||`请求失败(${t})`,this.httpStatus=r}}const wl="fcb_admin_token";function td(){try{return localStorage.getItem(wl)??""}catch{return""}}function od(e){try{e?localStorage.setItem(wl,e):localStorage.removeItem(wl)}catch{}}let pa=null;function hS(e){pa=e}function ma(e,t){const o=new URL(Zf(e),location.origin);if(t)for(const[r,n]of Object.entries(t))n!=null&&`${n}`!=""&&o.searchParams.set(r,`${n}`);return o.toString()}function rd(){const e=td();return e?{Authorization:`Bearer ${e}`}:{}}async function gS(e,t={}){const{method:o="GET",json:r,form:n,formData:i,query:l,timeout:a=3e4,signal:s}=t,c=new AbortController,u=setTimeout(()=>c.abort(new DOMException("请求超时","TimeoutError")),a);s&&s.addEventListener("abort",()=>c.abort(s.reason),{once:!0});const f={...rd()};r!==void 0&&(f["Content-Type"]="application/json");let d;r!==void 0?d=JSON.stringify(r):i?d=i:n&&(d=new URLSearchParams(n).toString(),f["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8");let p;try{p=await fetch(ma(e,l),{method:o,headers:f,body:d,signal:c.signal})}catch(S){throw S instanceof DOMException&&S.name==="TimeoutError"?new st(0,"请求超时,请检查网络或稍后重试"):new st(0,"网络异常,无法连接服务器")}finally{clearTimeout(u)}if(!(p.headers.get("content-type")??"").includes("application/json")){const S=await p.text().catch(()=>"");throw p.ok?new st(p.status,"响应格式异常(非 JSON)",p.status):new st(p.status,S.slice(0,200)||`请求失败(HTTP ${p.status})`,p.status)}let C;try{C=await p.json()}catch{throw new st(p.status,"响应 JSON 解析失败",p.status)}if(!p.ok||C.code!==200){const S=C.code??p.status;throw(S===401||p.status===401)&&(od(""),pa?.()),new st(S,C.msg||`请求失败(${S})`,p.status)}return C.data}async function IT(e,t={}){const{query:o,timeout:r=12e4}=t,n=new AbortController,i=setTimeout(()=>n.abort(new DOMException("请求超时","TimeoutError")),r);let l;try{l=await fetch(ma(e,o),{method:"GET",headers:rd(),signal:n.signal})}catch{throw new st(0,"网络异常,无法连接服务器")}finally{clearTimeout(i)}const a=l.headers.get("content-type")??"";if(a.includes("application/json"))try{const s=await l.json();throw new st(s.code??l.status,s.msg||"取件失败",l.status)}catch(s){throw s instanceof st?s:new st(l.status,"取件失败",l.status)}if(!l.ok)throw new st(l.status,`取件失败(HTTP ${l.status})`,l.status);return{blob:await l.blob(),contentType:a}}function AT(e,t,o,r=6e5){return new Promise((n,i)=>{const l=new XMLHttpRequest;l.open("POST",ma(e)),l.timeout=r;const a=td();a&&l.setRequestHeader("Authorization",`Bearer ${a}`),l.upload.onprogress=s=>{s.lengthComputable&&o&&o(Math.round(s.loaded/s.total*100))},l.onload=()=>{try{const s=JSON.parse(l.responseText);l.status>=200&&l.status<300&&s.code===200?n(s.data):((s.code===401||l.status===401)&&(od(""),pa?.()),i(new st(s.code??l.status,s.msg||`上传失败(HTTP ${l.status})`,l.status)))}catch{i(new st(l.status,`上传失败(HTTP ${l.status})`,l.status))}},l.onerror=()=>i(new st(0,"网络异常,上传失败")),l.ontimeout=()=>i(new st(0,"上传超时,请重试")),l.send(t)})}const Kn=typeof window<"u",Fo=(e,t=!1)=>t?Symbol.for(e):Symbol(e),CS=(e,t,o)=>bS({l:e,k:t,s:o}),bS=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ne=e=>typeof e=="number"&&isFinite(e),xS=e=>id(e)==="[object Date]",Lo=e=>id(e)==="[object RegExp]",Ti=e=>ae(e)&&Object.keys(e).length===0,Ge=Object.assign,_S=Object.create,ve=(e=null)=>_S(e);let Ys;const io=()=>Ys||(Ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ve());function qs(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const vS=Object.prototype.hasOwnProperty;function Ot(e,t){return vS.call(e,t)}const Ae=Array.isArray,Pe=e=>typeof e=="function",K=e=>typeof e=="string",pe=e=>typeof e=="boolean",Ce=e=>e!==null&&typeof e=="object",SS=e=>Ce(e)&&Pe(e.then)&&Pe(e.catch),nd=Object.prototype.toString,id=e=>nd.call(e),ae=e=>{if(!Ce(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},yS=e=>e==null?"":Ae(e)||ae(e)&&e.toString===nd?JSON.stringify(e,null,2):String(e);function ES(e,t=""){return e.reduce((o,r,n)=>n===0?o+r:o+t+r,"")}function Pi(e){let t=e;return()=>++t}function TS(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Tn=e=>!Ce(e)||Ae(e);function Ln(e,t){if(Tn(e)||Tn(t))throw new Error("Invalid value");const o=[{src:e,des:t}];for(;o.length;){const{src:r,des:n}=o.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(Ce(r[i])&&!Ce(n[i])&&(n[i]=Array.isArray(r[i])?[]:ve()),Tn(n[i])||Tn(r[i])?n[i]=r[i]:o.push({src:r[i],des:n[i]}))})}}function PS(e,t,o){return{line:e,column:t,offset:o}}function Yn(e,t,o){return{start:e,end:t}}const IS=/\{([0-9a-zA-Z]+)\}/g;function ld(e,...t){return t.length===1&&AS(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(IS,(o,r)=>t.hasOwnProperty(r)?t[r]:"")}const ad=Object.assign,Xs=e=>typeof e=="string",AS=e=>e!==null&&typeof e=="object";function sd(e,t=""){return e.reduce((o,r,n)=>n===0?o+r:o+t+r,"")}const ha={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},wS={[ha.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function LS(e,t,...o){const r=ld(wS[e],...o||[]),n={message:String(r),code:e};return t&&(n.location=t),n}const ie={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},DS={[ie.EXPECTED_TOKEN]:"Expected token: '{0}'",[ie.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[ie.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[ie.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[ie.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[ie.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[ie.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[ie.EMPTY_PLACEHOLDER]:"Empty placeholder",[ie.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[ie.INVALID_LINKED_FORMAT]:"Invalid linked format",[ie.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[ie.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[ie.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[ie.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[ie.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[ie.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Pr(e,t,o={}){const{domain:r,messages:n,args:i}=o,l=ld((n||DS)[e]||"",...i||[]),a=new SyntaxError(String(l));return a.code=e,t&&(a.location=t),a.domain=r,a}function RS(e){throw e}const Zt=" ",FS="\r",it=` +`,OS="\u2028",MS="\u2029";function NS(e){const t=e;let o=0,r=1,n=1,i=0;const l=D=>t[D]===FS&&t[D+1]===it,a=D=>t[D]===it,s=D=>t[D]===MS,c=D=>t[D]===OS,u=D=>l(D)||a(D)||s(D)||c(D),f=()=>o,d=()=>r,p=()=>n,g=()=>i,C=D=>l(D)||s(D)||c(D)?it:t[D],S=()=>C(o),E=()=>C(o+i);function T(){return i=0,u(o)&&(r++,n=0),l(o)&&o++,o++,n++,t[o]}function v(){return l(o+i)&&i++,i++,t[o+i]}function y(){o=0,r=1,n=1,i=0}function w(D=0){i=D}function L(){const D=o+i;for(;D!==o;)T();i=0}return{index:f,line:d,column:p,peekOffset:g,charAt:C,currentChar:S,currentPeek:E,next:T,peek:v,reset:y,resetPeek:w,skipToPeek:L}}const bo=void 0,kS=".",Js="'",HS="tokenizer";function $S(e,t={}){const o=t.location!==!1,r=NS(e),n=()=>r.index(),i=()=>PS(r.line(),r.column(),r.index()),l=i(),a=n(),s={currentType:14,offset:a,startLoc:l,endLoc:l,lastType:14,lastOffset:a,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},c=()=>s,{onError:u}=t;function f(m,h,A,...O){const j=c();if(h.column+=A,h.offset+=A,u){const B=o?Yn(j.startLoc,h):null,I=Pr(m,B,{domain:HS,args:O});u(I)}}function d(m,h,A){m.endLoc=i(),m.currentType=h;const O={type:h};return o&&(O.loc=Yn(m.startLoc,m.endLoc)),A!=null&&(O.value=A),O}const p=m=>d(m,14);function g(m,h){return m.currentChar()===h?(m.next(),h):(f(ie.EXPECTED_TOKEN,i(),0,h),"")}function C(m){let h="";for(;m.currentPeek()===Zt||m.currentPeek()===it;)h+=m.currentPeek(),m.peek();return h}function S(m){const h=C(m);return m.skipToPeek(),h}function E(m){if(m===bo)return!1;const h=m.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h===95}function T(m){if(m===bo)return!1;const h=m.charCodeAt(0);return h>=48&&h<=57}function v(m,h){const{currentType:A}=h;if(A!==2)return!1;C(m);const O=E(m.currentPeek());return m.resetPeek(),O}function y(m,h){const{currentType:A}=h;if(A!==2)return!1;C(m);const O=m.currentPeek()==="-"?m.peek():m.currentPeek(),j=T(O);return m.resetPeek(),j}function w(m,h){const{currentType:A}=h;if(A!==2)return!1;C(m);const O=m.currentPeek()===Js;return m.resetPeek(),O}function L(m,h){const{currentType:A}=h;if(A!==8)return!1;C(m);const O=m.currentPeek()===".";return m.resetPeek(),O}function D(m,h){const{currentType:A}=h;if(A!==9)return!1;C(m);const O=E(m.currentPeek());return m.resetPeek(),O}function F(m,h){const{currentType:A}=h;if(!(A===8||A===12))return!1;C(m);const O=m.currentPeek()===":";return m.resetPeek(),O}function P(m,h){const{currentType:A}=h;if(A!==10)return!1;const O=()=>{const B=m.currentPeek();return B==="{"?E(m.peek()):B==="@"||B==="%"||B==="|"||B===":"||B==="."||B===Zt||!B?!1:B===it?(m.peek(),O()):k(m,!1)},j=O();return m.resetPeek(),j}function U(m){C(m);const h=m.currentPeek()==="|";return m.resetPeek(),h}function X(m){const h=C(m),A=m.currentPeek()==="%"&&m.peek()==="{";return m.resetPeek(),{isModulo:A,hasSpace:h.length>0}}function k(m,h=!0){const A=(j=!1,B="",I=!1)=>{const N=m.currentPeek();return N==="{"?B==="%"?!1:j:N==="@"||!N?B==="%"?!0:j:N==="%"?(m.peek(),A(j,"%",!0)):N==="|"?B==="%"||I?!0:!(B===Zt||B===it):N===Zt?(m.peek(),A(!0,Zt,I)):N===it?(m.peek(),A(!0,it,I)):!0},O=A();return h&&m.resetPeek(),O}function Q(m,h){const A=m.currentChar();return A===bo?bo:h(A)?(m.next(),A):null}function me(m){const h=m.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36}function ye(m){return Q(m,me)}function se(m){const h=m.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36||h===45}function ne(m){return Q(m,se)}function de(m){const h=m.charCodeAt(0);return h>=48&&h<=57}function tt(m){return Q(m,de)}function ft(m){const h=m.charCodeAt(0);return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function Re(m){return Q(m,ft)}function Fe(m){let h="",A="";for(;h=tt(m);)A+=h;return A}function Tt(m){S(m);const h=m.currentChar();return h!=="%"&&f(ie.EXPECTED_TOKEN,i(),0,h),m.next(),"%"}function ht(m){let h="";for(;;){const A=m.currentChar();if(A==="{"||A==="}"||A==="@"||A==="|"||!A)break;if(A==="%")if(k(m))h+=A,m.next();else break;else if(A===Zt||A===it)if(k(m))h+=A,m.next();else{if(U(m))break;h+=A,m.next()}else h+=A,m.next()}return h}function gt(m){S(m);let h="",A="";for(;h=ne(m);)A+=h;return m.currentChar()===bo&&f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),A}function We(m){S(m);let h="";return m.currentChar()==="-"?(m.next(),h+=`-${Fe(m)}`):h+=Fe(m),m.currentChar()===bo&&f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),h}function H(m){return m!==Js&&m!==it}function Y(m){S(m),g(m,"'");let h="",A="";for(;h=Q(m,H);)h==="\\"?A+=G(m):A+=h;const O=m.currentChar();return O===it||O===bo?(f(ie.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),O===it&&(m.next(),g(m,"'")),A):(g(m,"'"),A)}function G(m){const h=m.currentChar();switch(h){case"\\":case"'":return m.next(),`\\${h}`;case"u":return ee(m,h,4);case"U":return ee(m,h,6);default:return f(ie.UNKNOWN_ESCAPE_SEQUENCE,i(),0,h),""}}function ee(m,h,A){g(m,h);let O="";for(let j=0;j{const O=m.currentChar();return O==="{"||O==="%"||O==="@"||O==="|"||O==="("||O===")"||!O||O===Zt?A:(A+=O,m.next(),h(A))};return h("")}function R(m){S(m);const h=g(m,"|");return S(m),h}function $(m,h){let A=null;switch(m.currentChar()){case"{":return h.braceNest>=1&&f(ie.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),m.next(),A=d(h,2,"{"),S(m),h.braceNest++,A;case"}":return h.braceNest>0&&h.currentType===2&&f(ie.EMPTY_PLACEHOLDER,i(),0),m.next(),A=d(h,3,"}"),h.braceNest--,h.braceNest>0&&S(m),h.inLinked&&h.braceNest===0&&(h.inLinked=!1),A;case"@":return h.braceNest>0&&f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),A=M(m,h)||p(h),h.braceNest=0,A;default:{let j=!0,B=!0,I=!0;if(U(m))return h.braceNest>0&&f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),A=d(h,1,R(m)),h.braceNest=0,h.inLinked=!1,A;if(h.braceNest>0&&(h.currentType===5||h.currentType===6||h.currentType===7))return f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),h.braceNest=0,V(m,h);if(j=v(m,h))return A=d(h,5,gt(m)),S(m),A;if(B=y(m,h))return A=d(h,6,We(m)),S(m),A;if(I=w(m,h))return A=d(h,7,Y(m)),S(m),A;if(!j&&!B&&!I)return A=d(h,13,b(m)),f(ie.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,A.value),S(m),A;break}}return A}function M(m,h){const{currentType:A}=h;let O=null;const j=m.currentChar();switch((A===8||A===9||A===12||A===10)&&(j===it||j===Zt)&&f(ie.INVALID_LINKED_FORMAT,i(),0),j){case"@":return m.next(),O=d(h,8,"@"),h.inLinked=!0,O;case".":return S(m),m.next(),d(h,9,".");case":":return S(m),m.next(),d(h,10,":");default:return U(m)?(O=d(h,1,R(m)),h.braceNest=0,h.inLinked=!1,O):L(m,h)||F(m,h)?(S(m),M(m,h)):D(m,h)?(S(m),d(h,12,_(m))):P(m,h)?(S(m),j==="{"?$(m,h)||O:d(h,11,x(m))):(A===8&&f(ie.INVALID_LINKED_FORMAT,i(),0),h.braceNest=0,h.inLinked=!1,V(m,h))}}function V(m,h){let A={type:14};if(h.braceNest>0)return $(m,h)||p(h);if(h.inLinked)return M(m,h)||p(h);switch(m.currentChar()){case"{":return $(m,h)||p(h);case"}":return f(ie.UNBALANCED_CLOSING_BRACE,i(),0),m.next(),d(h,3,"}");case"@":return M(m,h)||p(h);default:{if(U(m))return A=d(h,1,R(m)),h.braceNest=0,h.inLinked=!1,A;const{isModulo:j,hasSpace:B}=X(m);if(j)return B?d(h,0,ht(m)):d(h,4,Tt(m));if(k(m))return d(h,0,ht(m));break}}return A}function z(){const{currentType:m,offset:h,startLoc:A,endLoc:O}=s;return s.lastType=m,s.lastOffset=h,s.lastStartLoc=A,s.lastEndLoc=O,s.offset=n(),s.startLoc=i(),r.currentChar()===bo?d(s,14):V(r,s)}return{nextToken:z,currentOffset:n,currentPosition:i,context:c}}const BS="parser",WS=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function zS(e,t,o){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||o,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function US(e={}){const t=e.location!==!1,{onError:o,onWarn:r}=e;function n(v,y,w,L,...D){const F=v.currentPosition();if(F.offset+=L,F.column+=L,o){const P=t?Yn(w,F):null,U=Pr(y,P,{domain:BS,args:D});o(U)}}function i(v,y,w,L,...D){const F=v.currentPosition();if(F.offset+=L,F.column+=L,r){const P=t?Yn(w,F):null;r(LS(y,P,D))}}function l(v,y,w){const L={type:v};return t&&(L.start=y,L.end=y,L.loc={start:w,end:w}),L}function a(v,y,w,L){t&&(v.end=y,v.loc&&(v.loc.end=w))}function s(v,y){const w=v.context(),L=l(3,w.offset,w.startLoc);return L.value=y,a(L,v.currentOffset(),v.currentPosition()),L}function c(v,y){const w=v.context(),{lastOffset:L,lastStartLoc:D}=w,F=l(5,L,D);return F.index=parseInt(y,10),v.nextToken(),a(F,v.currentOffset(),v.currentPosition()),F}function u(v,y,w){const L=v.context(),{lastOffset:D,lastStartLoc:F}=L,P=l(4,D,F);return P.key=y,w===!0&&(P.modulo=!0),v.nextToken(),a(P,v.currentOffset(),v.currentPosition()),P}function f(v,y){const w=v.context(),{lastOffset:L,lastStartLoc:D}=w,F=l(9,L,D);return F.value=y.replace(WS,zS),v.nextToken(),a(F,v.currentOffset(),v.currentPosition()),F}function d(v){const y=v.nextToken(),w=v.context(),{lastOffset:L,lastStartLoc:D}=w,F=l(8,L,D);return y.type!==12?(n(v,ie.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),F.value="",a(F,L,D),{nextConsumeToken:y,node:F}):(y.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Lt(y)),F.value=y.value||"",a(F,v.currentOffset(),v.currentPosition()),{node:F})}function p(v,y){const w=v.context(),L=l(7,w.offset,w.startLoc);return L.value=y,a(L,v.currentOffset(),v.currentPosition()),L}function g(v){const y=v.context(),w=l(6,y.offset,y.startLoc);let L=v.nextToken();if(L.type===9){const D=d(v);w.modifier=D.node,L=D.nextConsumeToken||v.nextToken()}switch(L.type!==10&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),L=v.nextToken(),L.type===2&&(L=v.nextToken()),L.type){case 11:L.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),w.key=p(v,L.value||"");break;case 5:L.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),w.key=u(v,L.value||"");break;case 6:L.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),w.key=c(v,L.value||"");break;case 7:L.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),w.key=f(v,L.value||"");break;default:{n(v,ie.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const D=v.context(),F=l(7,D.offset,D.startLoc);return F.value="",a(F,D.offset,D.startLoc),w.key=F,a(w,D.offset,D.startLoc),{nextConsumeToken:L,node:w}}}return a(w,v.currentOffset(),v.currentPosition()),{node:w}}function C(v){const y=v.context(),w=y.currentType===1?v.currentOffset():y.offset,L=y.currentType===1?y.endLoc:y.startLoc,D=l(2,w,L);D.items=[];let F=null,P=null;do{const k=F||v.nextToken();switch(F=null,k.type){case 0:k.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(k)),D.items.push(s(v,k.value||""));break;case 6:k.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(k)),D.items.push(c(v,k.value||""));break;case 4:P=!0;break;case 5:k.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(k)),D.items.push(u(v,k.value||"",!!P)),P&&(i(v,ha.USE_MODULO_SYNTAX,y.lastStartLoc,0,Lt(k)),P=null);break;case 7:k.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(k)),D.items.push(f(v,k.value||""));break;case 8:{const Q=g(v);D.items.push(Q.node),F=Q.nextConsumeToken||null;break}}}while(y.currentType!==14&&y.currentType!==1);const U=y.currentType===1?y.lastOffset:v.currentOffset(),X=y.currentType===1?y.lastEndLoc:v.currentPosition();return a(D,U,X),D}function S(v,y,w,L){const D=v.context();let F=L.items.length===0;const P=l(1,y,w);P.cases=[],P.cases.push(L);do{const U=C(v);F||(F=U.items.length===0),P.cases.push(U)}while(D.currentType!==14);return F&&n(v,ie.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),a(P,v.currentOffset(),v.currentPosition()),P}function E(v){const y=v.context(),{offset:w,startLoc:L}=y,D=C(v);return y.currentType===14?D:S(v,w,L,D)}function T(v){const y=$S(v,ad({},e)),w=y.context(),L=l(0,w.offset,w.startLoc);return t&&L.loc&&(L.loc.source=v),L.body=E(y),e.onCacheKey&&(L.cacheKey=e.onCacheKey(v)),w.currentType!==14&&n(y,ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,v[w.offset]||""),a(L,y.currentOffset(),y.currentPosition()),L}return{parse:T}}function Lt(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function VS(e,t={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:i=>(o.helpers.add(i),i)}}function Qs(e,t){for(let o=0;oZs(o)),e}function Zs(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let o=0;ol;function s(C,S){l.code+=C}function c(C,S=!0){const E=S?r:"";s(n?E+" ".repeat(C):E)}function u(C=!0){const S=++l.indentLevel;C&&c(S)}function f(C=!0){const S=--l.indentLevel;C&&c(S)}function d(){c(l.indentLevel)}return{context:a,push:s,indent:u,deindent:f,newline:d,helper:C=>`_${C}`,needIndent:()=>l.needIndent}}function XS(e,t){const{helper:o}=e;e.push(`${o("linked")}(`),xr(e,t.key),t.modifier?(e.push(", "),xr(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function JS(e,t){const{helper:o,needIndent:r}=e;e.push(`${o("normalize")}([`),e.indent(r());const n=t.items.length;for(let i=0;i1){e.push(`${o("plural")}([`),e.indent(r());const n=t.cases.length;for(let i=0;i{const o=Xs(t.mode)?t.mode:"normal",r=Xs(t.filename)?t.filename:"message.intl";t.sourceMap;const n=t.breakLineCode!=null?t.breakLineCode:o==="arrow"?";":` +`,i=t.needIndent?t.needIndent:o!=="arrow",l=e.helpers||[],a=qS(e,{filename:r,breakLineCode:n,needIndent:i});a.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),l.length>0&&(a.push(`const { ${sd(l.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),xr(a,e),a.deindent(i),a.push("}"),delete e.helpers;const{code:s,map:c}=a.context();return{ast:e,code:s,map:c?c.toJSON():void 0}};function ty(e,t={}){const o=ad({},t),r=!!o.jit,n=!!o.minify,i=o.optimize==null?!0:o.optimize,a=US(o).parse(e);return r?(i&&GS(a),n&&ur(a),{ast:a,code:""}):(jS(a,o),ey(a,o))}function oy(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(io().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(io().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(io().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Kt(e){return Ce(e)&&Ca(e)===0&&(Ot(e,"b")||Ot(e,"body"))}const cd=["b","body"];function ry(e){return Oo(e,cd)}const ud=["c","cases"];function ny(e){return Oo(e,ud,[])}const fd=["s","static"];function iy(e){return Oo(e,fd)}const dd=["i","items"];function ly(e){return Oo(e,dd,[])}const pd=["t","type"];function Ca(e){return Oo(e,pd)}const md=["v","value"];function Pn(e,t){const o=Oo(e,md);if(o!=null)return o;throw an(t)}const hd=["m","modifier"];function ay(e){return Oo(e,hd)}const gd=["k","key"];function sy(e){const t=Oo(e,gd);if(t)return t;throw an(6)}function Oo(e,t,o){for(let r=0;r{l===void 0?l=a:l+=a},d[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},d[2]=()=>{d[0](),n++},d[3]=()=>{if(n>0)n--,r=4,d[0]();else{if(n=0,l===void 0||(l=py(l),l===!1))return!1;d[1]()}};function p(){const g=e[o+1];if(r===5&&g==="'"||r===6&&g==='"')return o++,a="\\"+g,d[0](),!0}for(;r!==null;)if(o++,i=e[o],!(i==="\\"&&p())){if(s=dy(i),f=Mo[r],c=f[s]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(a=i,u()===!1))))return;if(r===7)return t}}const ec=new Map;function hy(e,t){return Ce(e)?e[t]:null}function gy(e,t){if(!Ce(e))return null;let o=ec.get(t);if(o||(o=my(t),o&&ec.set(t,o)),!o)return null;const r=o.length;let n=e,i=0;for(;ie,by=e=>"",xy="text",_y=e=>e.length===0?"":ES(e),vy=yS;function tc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Sy(e){const t=Ne(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ne(e.named.count)||Ne(e.named.n))?Ne(e.named.count)?e.named.count:Ne(e.named.n)?e.named.n:t:t}function yy(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ey(e={}){const t=e.locale,o=Sy(e),r=Ce(e.pluralRules)&&K(t)&&Pe(e.pluralRules[t])?e.pluralRules[t]:tc,n=Ce(e.pluralRules)&&K(t)&&Pe(e.pluralRules[t])?tc:void 0,i=E=>E[r(o,E.length,n)],l=e.list||[],a=E=>l[E],s=e.named||ve();Ne(e.pluralIndex)&&yy(o,s);const c=E=>s[E];function u(E){const T=Pe(e.messages)?e.messages(E):Ce(e.messages)?e.messages[E]:!1;return T||(e.parent?e.parent.message(E):by)}const f=E=>e.modifiers?e.modifiers[E]:Cy,d=ae(e.processor)&&Pe(e.processor.normalize)?e.processor.normalize:_y,p=ae(e.processor)&&Pe(e.processor.interpolate)?e.processor.interpolate:vy,g=ae(e.processor)&&K(e.processor.type)?e.processor.type:xy,S={list:a,named:c,plural:i,linked:(E,...T)=>{const[v,y]=T;let w="text",L="";T.length===1?Ce(v)?(L=v.modifier||L,w=v.type||w):K(v)&&(L=v||L):T.length===2&&(K(v)&&(L=v||L),K(y)&&(w=y||w));const D=u(E)(S),F=w==="vnode"&&Ae(D)&&L?D[0]:D;return L?f(L)(F,w):F},message:u,type:g,interpolate:p,normalize:d,values:Ge(ve(),l,s)};return S}let sn=null;function Ty(e){sn=e}function Py(e,t,o){sn&&sn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:o})}const Iy=Ay("function:translate");function Ay(e){return t=>sn&&sn.emit(e,t)}const wy=ha.__EXTEND_POINT__,Wo=Pi(wy),Ly={FALLBACK_TO_TRANSLATE:Wo(),CANNOT_FORMAT_NUMBER:Wo(),FALLBACK_TO_NUMBER_FORMAT:Wo(),CANNOT_FORMAT_DATE:Wo(),FALLBACK_TO_DATE_FORMAT:Wo(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Wo(),__EXTEND_POINT__:Wo()},bd=ie.__EXTEND_POINT__,zo=Pi(bd),Mt={INVALID_ARGUMENT:bd,INVALID_DATE_ARGUMENT:zo(),INVALID_ISO_DATE_ARGUMENT:zo(),NOT_SUPPORT_NON_STRING_MESSAGE:zo(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:zo(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:zo(),NOT_SUPPORT_LOCALE_TYPE:zo(),__EXTEND_POINT__:zo()};function jt(e){return Pr(e,null,void 0)}function ba(e,t){return t.locale!=null?oc(t.locale):oc(e.locale)}let Qi;function oc(e){if(K(e))return e;if(Pe(e)){if(e.resolvedOnce&&Qi!=null)return Qi;if(e.constructor.name==="Function"){const t=e();if(SS(t))throw jt(Mt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Qi=t}else throw jt(Mt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw jt(Mt.NOT_SUPPORT_LOCALE_TYPE)}function Dy(e,t,o){return[...new Set([o,...Ae(t)?t:Ce(t)?Object.keys(t):K(t)?[t]:[o]])]}function xd(e,t,o){const r=K(o)?o:_r,n=e;n.__localeChainCache||(n.__localeChainCache=new Map);let i=n.__localeChainCache.get(r);if(!i){i=[];let l=[o];for(;Ae(l);)l=rc(i,l,t);const a=Ae(t)||!ae(t)?t:t.default?t.default:null;l=K(a)?[a]:a,Ae(l)&&rc(i,l,!1),n.__localeChainCache.set(r,i)}return i}function rc(e,t,o){let r=!0;for(let n=0;n`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function My(){return{upper:(e,t)=>t==="text"&&K(e)?e.toUpperCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&K(e)?e.toLowerCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&K(e)?ic(e):t==="vnode"&&Ce(e)&&"__v_isVNode"in e?ic(e.children):e}}let _d;function lc(e){_d=e}let vd;function Ny(e){vd=e}let Sd;function ky(e){Sd=e}let yd=null;const Hy=e=>{yd=e},$y=()=>yd;let Ed=null;const ac=e=>{Ed=e},By=()=>Ed;let sc=0;function Wy(e={}){const t=Pe(e.onWarn)?e.onWarn:TS,o=K(e.version)?e.version:Oy,r=K(e.locale)||Pe(e.locale)?e.locale:_r,n=Pe(r)?_r:r,i=Ae(e.fallbackLocale)||ae(e.fallbackLocale)||K(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,l=ae(e.messages)?e.messages:Zi(n),a=ae(e.datetimeFormats)?e.datetimeFormats:Zi(n),s=ae(e.numberFormats)?e.numberFormats:Zi(n),c=Ge(ve(),e.modifiers,My()),u=e.pluralRules||ve(),f=Pe(e.missing)?e.missing:null,d=pe(e.missingWarn)||Lo(e.missingWarn)?e.missingWarn:!0,p=pe(e.fallbackWarn)||Lo(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,C=!!e.unresolving,S=Pe(e.postTranslation)?e.postTranslation:null,E=ae(e.processor)?e.processor:null,T=pe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,y=Pe(e.messageCompiler)?e.messageCompiler:_d,w=Pe(e.messageResolver)?e.messageResolver:vd||hy,L=Pe(e.localeFallbacker)?e.localeFallbacker:Sd||Dy,D=Ce(e.fallbackContext)?e.fallbackContext:void 0,F=e,P=Ce(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,U=Ce(F.__numberFormatters)?F.__numberFormatters:new Map,X=Ce(F.__meta)?F.__meta:{};sc++;const k={version:o,cid:sc,locale:r,fallbackLocale:i,messages:l,modifiers:c,pluralRules:u,missing:f,missingWarn:d,fallbackWarn:p,fallbackFormat:g,unresolving:C,postTranslation:S,processor:E,warnHtmlMessage:T,escapeParameter:v,messageCompiler:y,messageResolver:w,localeFallbacker:L,fallbackContext:D,onWarn:t,__meta:X};return k.datetimeFormats=a,k.numberFormats=s,k.__datetimeFormatters=P,k.__numberFormatters=U,__INTLIFY_PROD_DEVTOOLS__&&Py(k,o,X),k}const Zi=e=>({[e]:ve()});function xa(e,t,o,r,n){const{missing:i,onWarn:l}=e;if(i!==null){const a=i(e,o,t,n);return K(a)?a:t}else return t}function Fr(e,t,o){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,o,t)}function zy(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Uy(e,t){const o=t.indexOf(e);if(o===-1)return!1;for(let r=o+1;rVy(o,e)}function Vy(e,t){const o=ry(t);if(o==null)throw an(0);if(Ca(o)===1){const i=ny(o);return e.plural(i.reduce((l,a)=>[...l,cc(e,a)],[]))}else return cc(e,o)}function cc(e,t){const o=iy(t);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const r=ly(t).reduce((n,i)=>[...n,Ll(e,i)],[]);return e.normalize(r)}}function Ll(e,t){const o=Ca(t);switch(o){case 3:return Pn(t,o);case 9:return Pn(t,o);case 4:{const r=t;if(Ot(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Ot(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw an(o)}case 5:{const r=t;if(Ot(r,"i")&&Ne(r.i))return e.interpolate(e.list(r.i));if(Ot(r,"index")&&Ne(r.index))return e.interpolate(e.list(r.index));throw an(o)}case 6:{const r=t,n=ay(r),i=sy(r);return e.linked(Ll(e,i),n?Ll(e,n):void 0,e.type)}case 7:return Pn(t,o);case 8:return Pn(t,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const Td=e=>e;let fr=ve();function Pd(e,t={}){let o=!1;const r=t.onError||RS;return t.onError=n=>{o=!0,r(n)},{...ty(e,t),detectError:o}}const jy=(e,t)=>{if(!K(e))throw jt(Mt.NOT_SUPPORT_NON_STRING_MESSAGE);{pe(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Td)(e),n=fr[r];if(n)return n;const{code:i,detectError:l}=Pd(e,t),a=new Function(`return ${i}`)();return l?a:fr[r]=a}};function Gy(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&K(e)){pe(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Td)(e),n=fr[r];if(n)return n;const{ast:i,detectError:l}=Pd(e,{...t,location:!1,jit:!0}),a=el(i);return l?a:fr[r]=a}else{const o=e.cacheKey;if(o){const r=fr[o];return r||(fr[o]=el(e))}else return el(e)}}const uc=()=>"",At=e=>Pe(e);function fc(e,...t){const{fallbackFormat:o,postTranslation:r,unresolving:n,messageCompiler:i,fallbackLocale:l,messages:a}=e,[s,c]=Dl(...t),u=pe(c.missingWarn)?c.missingWarn:e.missingWarn,f=pe(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=pe(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,g=K(c.default)||pe(c.default)?pe(c.default)?i?s:()=>s:c.default:o?i?s:()=>s:"",C=o||g!=="",S=ba(e,c);d&&Ky(c);let[E,T,v]=p?[s,S,a[S]||ve()]:Id(e,s,S,l,f,u),y=E,w=s;if(!p&&!(K(y)||Kt(y)||At(y))&&C&&(y=g,w=y),!p&&(!(K(y)||Kt(y)||At(y))||!K(T)))return n?Ii:s;let L=!1;const D=()=>{L=!0},F=At(y)?y:Ad(e,s,T,y,w,D);if(L)return y;const P=Xy(e,T,v,c),U=Ey(P),X=Yy(e,F,U),k=r?r(X,s):X;if(__INTLIFY_PROD_DEVTOOLS__){const Q={timestamp:Date.now(),key:K(s)?s:At(y)?y.key:"",locale:T||(At(y)?y.locale:""),format:K(y)?y:At(y)?y.source:"",message:k};Q.meta=Ge({},e.__meta,$y()||{}),Iy(Q)}return k}function Ky(e){Ae(e.list)?e.list=e.list.map(t=>K(t)?qs(t):t):Ce(e.named)&&Object.keys(e.named).forEach(t=>{K(e.named[t])&&(e.named[t]=qs(e.named[t]))})}function Id(e,t,o,r,n,i){const{messages:l,onWarn:a,messageResolver:s,localeFallbacker:c}=e,u=c(e,r,o);let f=ve(),d,p=null;const g="translate";for(let C=0;Cr);return c.locale=o,c.key=t,c}const s=l(r,qy(e,o,n,r,a,i));return s.locale=o,s.key=t,s.source=r,s}function Yy(e,t,o){return t(o)}function Dl(...e){const[t,o,r]=e,n=ve();if(!K(t)&&!Ne(t)&&!At(t)&&!Kt(t))throw jt(Mt.INVALID_ARGUMENT);const i=Ne(t)?String(t):(At(t),t);return Ne(o)?n.plural=o:K(o)?n.default=o:ae(o)&&!Ti(o)?n.named=o:Ae(o)&&(n.list=o),Ne(r)?n.plural=r:K(r)?n.default=r:ae(r)&&Ge(n,r),[i,n]}function qy(e,t,o,r,n,i){return{locale:t,key:o,warnHtmlMessage:n,onError:l=>{throw i&&i(l),l},onCacheKey:l=>CS(t,o,l)}}function Xy(e,t,o,r){const{modifiers:n,pluralRules:i,messageResolver:l,fallbackLocale:a,fallbackWarn:s,missingWarn:c,fallbackContext:u}=e,d={locale:t,modifiers:n,pluralRules:i,messages:p=>{let g=l(o,p);if(g==null&&u){const[,,C]=Id(u,p,t,a,s,c);g=l(C,p)}if(K(g)||Kt(g)){let C=!1;const E=Ad(e,p,t,g,p,()=>{C=!0});return C?uc:E}else return At(g)?g:uc}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Ne(r.plural)&&(d.pluralIndex=r.plural),d}function dc(e,...t){const{datetimeFormats:o,unresolving:r,fallbackLocale:n,onWarn:i,localeFallbacker:l}=e,{__datetimeFormatters:a}=e,[s,c,u,f]=Rl(...t),d=pe(u.missingWarn)?u.missingWarn:e.missingWarn;pe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=ba(e,u),C=l(e,n,g);if(!K(s)||s==="")return new Intl.DateTimeFormat(g,f).format(c);let S={},E,T=null;const v="datetime format";for(let L=0;L{wd.includes(s)?l[s]=o[s]:i[s]=o[s]}),K(r)?i.locale=r:ae(r)&&(l=r),ae(n)&&(l=n),[i.key||"",a,i,l]}function pc(e,t,o){const r=e;for(const n in o){const i=`${t}__${n}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function mc(e,...t){const{numberFormats:o,unresolving:r,fallbackLocale:n,onWarn:i,localeFallbacker:l}=e,{__numberFormatters:a}=e,[s,c,u,f]=Fl(...t),d=pe(u.missingWarn)?u.missingWarn:e.missingWarn;pe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=ba(e,u),C=l(e,n,g);if(!K(s)||s==="")return new Intl.NumberFormat(g,f).format(c);let S={},E,T=null;const v="number format";for(let L=0;L{Ld.includes(s)?l[s]=o[s]:i[s]=o[s]}),K(r)?i.locale=r:ae(r)&&(l=r),ae(n)&&(l=n),[i.key||"",a,i,l]}function hc(e,t,o){const r=e;for(const n in o){const i=`${t}__${n}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}oy();const Jy="9.14.4";function Qy(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(io().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(io().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(io().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(io().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(io().__INTLIFY_PROD_DEVTOOLS__=!1)}const Zy=Ly.__EXTEND_POINT__,eo=Pi(Zy);eo(),eo(),eo(),eo(),eo(),eo(),eo(),eo(),eo();const Dd=Mt.__EXTEND_POINT__,pt=Pi(Dd),$e={UNEXPECTED_RETURN_TYPE:Dd,INVALID_ARGUMENT:pt(),MUST_BE_CALL_SETUP_TOP:pt(),NOT_INSTALLED:pt(),NOT_AVAILABLE_IN_LEGACY_MODE:pt(),REQUIRED_VALUE:pt(),INVALID_VALUE:pt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:pt(),NOT_INSTALLED_WITH_PROVIDE:pt(),UNEXPECTED_ERROR:pt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:pt(),BRIDGE_SUPPORT_VUE_2_ONLY:pt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:pt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:pt(),__EXTEND_POINT__:pt()};function ze(e,...t){return Pr(e,null,void 0)}const Ol=Fo("__translateVNode"),Ml=Fo("__datetimeParts"),Nl=Fo("__numberParts"),Rd=Fo("__setPluralRules"),Fd=Fo("__injectWithOption"),kl=Fo("__dispose");function cn(e){if(!Ce(e)||Kt(e))return e;for(const t in e)if(Ot(e,t))if(!t.includes("."))Ce(e[t])&&cn(e[t]);else{const o=t.split("."),r=o.length-1;let n=e,i=!1;for(let l=0;l{if("locale"in a&&"resource"in a){const{locale:s,resource:c}=a;s?(l[s]=l[s]||ve(),Ln(c,l[s])):Ln(c,l)}else K(a)&&Ln(JSON.parse(a),l)}),n==null&&i)for(const a in l)Ot(l,a)&&cn(l[a]);return l}function Od(e){return e.type}function Md(e,t,o){let r=Ce(t.messages)?t.messages:ve();"__i18nGlobal"in o&&(r=Ai(e.locale.value,{messages:r,__i18n:o.__i18nGlobal}));const n=Object.keys(r);n.length&&n.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(Ce(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Ce(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function gc(e){return je(pn,null,e,0)}const Cc="__INTLIFY_META__",bc=()=>[],eE=()=>!1;let xc=0;function _c(e){return((t,o,r,n)=>e(o,r,Ao()||void 0,n))}const tE=()=>{const e=Ao();let t=null;return e&&(t=Od(e)[Cc])?{[Cc]:t}:null};function _a(e={},t){const{__root:o,__injectWithOption:r}=e,n=o===void 0,i=e.flatJson,l=Kn?mt:Yl,a=!!e.translateExistCompatible;let s=pe(e.inheritLocale)?e.inheritLocale:!0;const c=l(o&&s?o.locale.value:K(e.locale)?e.locale:_r),u=l(o&&s?o.fallbackLocale.value:K(e.fallbackLocale)||Ae(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),f=l(Ai(c.value,e)),d=l(ae(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),p=l(ae(e.numberFormats)?e.numberFormats:{[c.value]:{}});let g=o?o.missingWarn:pe(e.missingWarn)||Lo(e.missingWarn)?e.missingWarn:!0,C=o?o.fallbackWarn:pe(e.fallbackWarn)||Lo(e.fallbackWarn)?e.fallbackWarn:!0,S=o?o.fallbackRoot:pe(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,T=Pe(e.missing)?e.missing:null,v=Pe(e.missing)?_c(e.missing):null,y=Pe(e.postTranslation)?e.postTranslation:null,w=o?o.warnHtmlMessage:pe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const D=o?o.modifiers:ae(e.modifiers)?e.modifiers:{};let F=e.pluralRules||o&&o.pluralRules,P;P=(()=>{n&&ac(null);const I={version:Jy,locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:D,pluralRules:F,missing:v===null?void 0:v,missingWarn:g,fallbackWarn:C,fallbackFormat:E,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:w,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};I.datetimeFormats=d.value,I.numberFormats=p.value,I.__datetimeFormatters=ae(P)?P.__datetimeFormatters:void 0,I.__numberFormatters=ae(P)?P.__numberFormatters:void 0;const N=Wy(I);return n&&ac(N),N})(),Fr(P,c.value,u.value);function X(){return[c.value,u.value,f.value,d.value,p.value]}const k=fe({get:()=>c.value,set:I=>{c.value=I,P.locale=c.value}}),Q=fe({get:()=>u.value,set:I=>{u.value=I,P.fallbackLocale=u.value,Fr(P,c.value,I)}}),me=fe(()=>f.value),ye=fe(()=>d.value),se=fe(()=>p.value);function ne(){return Pe(y)?y:null}function de(I){y=I,P.postTranslation=I}function tt(){return T}function ft(I){I!==null&&(v=_c(I)),T=I,P.missing=v}const Re=(I,N,te,ce,Ee,ot)=>{X();let Ue;try{__INTLIFY_PROD_DEVTOOLS__,n||(P.fallbackContext=o?By():void 0),Ue=I(P)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(P.fallbackContext=void 0)}if(te!=="translate exists"&&Ne(Ue)&&Ue===Ii||te==="translate exists"&&!Ue){const[No,Li]=N();return o&&S?ce(o):Ee(No)}else{if(ot(Ue))return Ue;throw ze($e.UNEXPECTED_RETURN_TYPE)}};function Fe(...I){return Re(N=>Reflect.apply(fc,null,[N,...I]),()=>Dl(...I),"translate",N=>Reflect.apply(N.t,N,[...I]),N=>N,N=>K(N))}function Tt(...I){const[N,te,ce]=I;if(ce&&!Ce(ce))throw ze($e.INVALID_ARGUMENT);return Fe(N,te,Ge({resolvedMessage:!0},ce||{}))}function ht(...I){return Re(N=>Reflect.apply(dc,null,[N,...I]),()=>Rl(...I),"datetime format",N=>Reflect.apply(N.d,N,[...I]),()=>nc,N=>K(N))}function gt(...I){return Re(N=>Reflect.apply(mc,null,[N,...I]),()=>Fl(...I),"number format",N=>Reflect.apply(N.n,N,[...I]),()=>nc,N=>K(N))}function We(I){return I.map(N=>K(N)||Ne(N)||pe(N)?gc(String(N)):N)}const Y={normalize:We,interpolate:I=>I,type:"vnode"};function G(...I){return Re(N=>{let te;const ce=N;try{ce.processor=Y,te=Reflect.apply(fc,null,[ce,...I])}finally{ce.processor=null}return te},()=>Dl(...I),"translate",N=>N[Ol](...I),N=>[gc(N)],N=>Ae(N))}function ee(...I){return Re(N=>Reflect.apply(mc,null,[N,...I]),()=>Fl(...I),"number format",N=>N[Nl](...I),bc,N=>K(N)||Ae(N))}function ue(...I){return Re(N=>Reflect.apply(dc,null,[N,...I]),()=>Rl(...I),"datetime format",N=>N[Ml](...I),bc,N=>K(N)||Ae(N))}function b(I){F=I,P.pluralRules=F}function _(I,N){return Re(()=>{if(!I)return!1;const te=K(N)?N:c.value,ce=$(te),Ee=P.messageResolver(ce,I);return a?Ee!=null:Kt(Ee)||At(Ee)||K(Ee)},()=>[I],"translate exists",te=>Reflect.apply(te.te,te,[I,N]),eE,te=>pe(te))}function x(I){let N=null;const te=xd(P,u.value,c.value);for(let ce=0;ce{s&&(c.value=I,P.locale=I,Fr(P,c.value,u.value))}),St(o.fallbackLocale,I=>{s&&(u.value=I,P.fallbackLocale=I,Fr(P,c.value,u.value))}));const B={id:xc,locale:k,fallbackLocale:Q,get inheritLocale(){return s},set inheritLocale(I){s=I,I&&o&&(c.value=o.locale.value,u.value=o.fallbackLocale.value,Fr(P,c.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:me,get modifiers(){return D},get pluralRules(){return F||{}},get isGlobal(){return n},get missingWarn(){return g},set missingWarn(I){g=I,P.missingWarn=g},get fallbackWarn(){return C},set fallbackWarn(I){C=I,P.fallbackWarn=C},get fallbackRoot(){return S},set fallbackRoot(I){S=I},get fallbackFormat(){return E},set fallbackFormat(I){E=I,P.fallbackFormat=E},get warnHtmlMessage(){return w},set warnHtmlMessage(I){w=I,P.warnHtmlMessage=I},get escapeParameter(){return L},set escapeParameter(I){L=I,P.escapeParameter=I},t:Fe,getLocaleMessage:$,setLocaleMessage:M,mergeLocaleMessage:V,getPostTranslationHandler:ne,setPostTranslationHandler:de,getMissingHandler:tt,setMissingHandler:ft,[Rd]:b};return B.datetimeFormats=ye,B.numberFormats=se,B.rt=Tt,B.te=_,B.tm=R,B.d=ht,B.n=gt,B.getDateTimeFormat=z,B.setDateTimeFormat=m,B.mergeDateTimeFormat=h,B.getNumberFormat=A,B.setNumberFormat=O,B.mergeNumberFormat=j,B[Fd]=r,B[Ol]=G,B[Ml]=ue,B[Nl]=ee,B}function oE(e){const t=K(e.locale)?e.locale:_r,o=K(e.fallbackLocale)||Ae(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Pe(e.missing)?e.missing:void 0,n=pe(e.silentTranslationWarn)||Lo(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=pe(e.silentFallbackWarn)||Lo(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=pe(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,s=ae(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Pe(e.postTranslation)?e.postTranslation:void 0,f=K(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,p=pe(e.sync)?e.sync:!0;let g=e.messages;if(ae(e.sharedMessages)){const L=e.sharedMessages;g=Object.keys(L).reduce((F,P)=>{const U=F[P]||(F[P]={});return Ge(U,L[P]),F},g||{})}const{__i18n:C,__root:S,__injectWithOption:E}=e,T=e.datetimeFormats,v=e.numberFormats,y=e.flatJson,w=e.translateExistCompatible;return{locale:t,fallbackLocale:o,messages:g,flatJson:y,datetimeFormats:T,numberFormats:v,missing:r,missingWarn:n,fallbackWarn:i,fallbackRoot:l,fallbackFormat:a,modifiers:s,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:p,translateExistCompatible:w,__i18n:C,__root:S,__injectWithOption:E}}function Hl(e={},t){{const o=_a(oE(e)),{__extender:r}=e,n={id:o.id,get locale(){return o.locale.value},set locale(i){o.locale.value=i},get fallbackLocale(){return o.fallbackLocale.value},set fallbackLocale(i){o.fallbackLocale.value=i},get messages(){return o.messages.value},get datetimeFormats(){return o.datetimeFormats.value},get numberFormats(){return o.numberFormats.value},get availableLocales(){return o.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return o.getMissingHandler()},set missing(i){o.setMissingHandler(i)},get silentTranslationWarn(){return pe(o.missingWarn)?!o.missingWarn:o.missingWarn},set silentTranslationWarn(i){o.missingWarn=pe(i)?!i:i},get silentFallbackWarn(){return pe(o.fallbackWarn)?!o.fallbackWarn:o.fallbackWarn},set silentFallbackWarn(i){o.fallbackWarn=pe(i)?!i:i},get modifiers(){return o.modifiers},get formatFallbackMessages(){return o.fallbackFormat},set formatFallbackMessages(i){o.fallbackFormat=i},get postTranslation(){return o.getPostTranslationHandler()},set postTranslation(i){o.setPostTranslationHandler(i)},get sync(){return o.inheritLocale},set sync(i){o.inheritLocale=i},get warnHtmlInMessage(){return o.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){o.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return o.escapeParameter},set escapeParameterHtml(i){o.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return o.pluralRules||{}},__composer:o,t(...i){const[l,a,s]=i,c={};let u=null,f=null;if(!K(l))throw ze($e.INVALID_ARGUMENT);const d=l;return K(a)?c.locale=a:Ae(a)?u=a:ae(a)&&(f=a),Ae(s)?u=s:ae(s)&&(f=s),Reflect.apply(o.t,o,[d,u||f||{},c])},rt(...i){return Reflect.apply(o.rt,o,[...i])},tc(...i){const[l,a,s]=i,c={plural:1};let u=null,f=null;if(!K(l))throw ze($e.INVALID_ARGUMENT);const d=l;return K(a)?c.locale=a:Ne(a)?c.plural=a:Ae(a)?u=a:ae(a)&&(f=a),K(s)?c.locale=s:Ae(s)?u=s:ae(s)&&(f=s),Reflect.apply(o.t,o,[d,u||f||{},c])},te(i,l){return o.te(i,l)},tm(i){return o.tm(i)},getLocaleMessage(i){return o.getLocaleMessage(i)},setLocaleMessage(i,l){o.setLocaleMessage(i,l)},mergeLocaleMessage(i,l){o.mergeLocaleMessage(i,l)},d(...i){return Reflect.apply(o.d,o,[...i])},getDateTimeFormat(i){return o.getDateTimeFormat(i)},setDateTimeFormat(i,l){o.setDateTimeFormat(i,l)},mergeDateTimeFormat(i,l){o.mergeDateTimeFormat(i,l)},n(...i){return Reflect.apply(o.n,o,[...i])},getNumberFormat(i){return o.getNumberFormat(i)},setNumberFormat(i,l){o.setNumberFormat(i,l)},mergeNumberFormat(i,l){o.mergeNumberFormat(i,l)},getChoiceIndex(i,l){return-1}};return n.__extender=r,n}}const va={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function rE({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,n)=>[...r,...n.type===qe?n.children:[n]],[]):t.reduce((o,r)=>{const n=e[r];return n&&(o[r]=n()),o},ve())}function Nd(e){return qe}const nE=po({name:"i18n-t",props:Ge({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ne(e)||!isNaN(e)}},va),setup(e,t){const{slots:o,attrs:r}=t,n=e.i18n||Sa({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(o).filter(f=>f!=="_"),l=ve();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=K(e.plural)?+e.plural:e.plural);const a=rE(t,i),s=n[Ol](e.keypath,a,l),c=Ge(ve(),r),u=K(e.tag)||Ce(e.tag)?e.tag:Nd();return vr(u,c,s)}}}),vc=nE;function iE(e){return Ae(e)&&!K(e[0])}function kd(e,t,o,r){const{slots:n,attrs:i}=t;return()=>{const l={part:!0};let a=ve();e.locale&&(l.locale=e.locale),K(e.format)?l.key=e.format:Ce(e.format)&&(K(e.format.key)&&(l.key=e.format.key),a=Object.keys(e.format).reduce((d,p)=>o.includes(p)?Ge(ve(),d,{[p]:e.format[p]}):d,ve()));const s=r(e.value,l,a);let c=[l.key];Ae(s)?c=s.map((d,p)=>{const g=n[d.type],C=g?g({[d.type]:d.value,index:p,parts:s}):[d.value];return iE(C)&&(C[0].key=`${d.type}-${p}`),C}):K(s)&&(c=[s]);const u=Ge(ve(),i),f=K(e.tag)||Ce(e.tag)?e.tag:Nd();return vr(f,u,c)}}const lE=po({name:"i18n-n",props:Ge({value:{type:Number,required:!0},format:{type:[String,Object]}},va),setup(e,t){const o=e.i18n||Sa({useScope:e.scope,__useComponent:!0});return kd(e,t,Ld,(...r)=>o[Nl](...r))}}),Sc=lE,aE=po({name:"i18n-d",props:Ge({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},va),setup(e,t){const o=e.i18n||Sa({useScope:e.scope,__useComponent:!0});return kd(e,t,wd,(...r)=>o[Ml](...r))}}),yc=aE;function sE(e,t){const o=e;if(e.mode==="composition")return o.__getInstance(t)||e.global;{const r=o.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function cE(e){const t=l=>{const{instance:a,modifiers:s,value:c}=l;if(!a||!a.$)throw ze($e.UNEXPECTED_ERROR);const u=sE(e,a.$),f=Ec(c);return[Reflect.apply(u.t,u,[...Tc(f)]),u]};return{created:(l,a)=>{const[s,c]=t(a);Kn&&e.global===c&&(l.__i18nWatcher=St(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),l.__composer=c,l.textContent=s},unmounted:l=>{Kn&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:a})=>{if(l.__composer){const s=l.__composer,c=Ec(a);l.textContent=Reflect.apply(s.t,s,[...Tc(c)])}},getSSRProps:l=>{const[a]=t(l);return{textContent:a}}}}function Ec(e){if(K(e))return{path:e};if(ae(e)){if(!("path"in e))throw ze($e.REQUIRED_VALUE,"path");return e}else throw ze($e.INVALID_VALUE)}function Tc(e){const{path:t,locale:o,args:r,choice:n,plural:i}=e,l={},a=r||{};return K(o)&&(l.locale=o),Ne(n)&&(l.plural=n),Ne(i)&&(l.plural=i),[t,a,l]}function uE(e,t,...o){const r=ae(o[0])?o[0]:{},n=!!r.useI18nComponentName;(!pe(r.globalInstall)||r.globalInstall)&&([n?"i18n":vc.name,"I18nT"].forEach(l=>e.component(l,vc)),[Sc.name,"I18nN"].forEach(l=>e.component(l,Sc)),[yc.name,"I18nD"].forEach(l=>e.component(l,yc))),e.directive("t",cE(t))}function fE(e,t,o){return{beforeCreate(){const r=Ao();if(!r)throw ze($e.UNEXPECTED_ERROR);const n=this.$options;if(n.i18n){const i=n.i18n;if(n.__i18n&&(i.__i18n=n.__i18n),i.__root=t,this===this.$root)this.$i18n=Pc(e,i);else{i.__injectWithOption=!0,i.__extender=o.__vueI18nExtend,this.$i18n=Hl(i);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(n.__i18n)if(this===this.$root)this.$i18n=Pc(e,n);else{this.$i18n=Hl({__i18n:n.__i18n,__injectWithOption:!0,__extender:o.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;n.__i18nGlobal&&Md(t,n,n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,l)=>this.$i18n.te(i,l),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),o.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=Ao();if(!r)throw ze($e.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),o.__deleteInstance(r),delete this.$i18n}}}function Pc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Rd](t.pluralizationRules||e.pluralizationRules);const o=Ai(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(o).forEach(r=>e.mergeLocaleMessage(r,o[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const dE=Fo("global-vue-i18n");function pE(e={},t){const o=__VUE_I18N_LEGACY_API__&&pe(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=pe(e.globalInjection)?e.globalInjection:!0,n=__VUE_I18N_LEGACY_API__&&o?!!e.allowComposition:!0,i=new Map,[l,a]=mE(e,o),s=Fo("");function c(d){return i.get(d)||null}function u(d,p){i.set(d,p)}function f(d){i.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&o?"legacy":"composition"},get allowComposition(){return n},async install(p,...g){if(p.__VUE_I18N_SYMBOL__=s,p.provide(p.__VUE_I18N_SYMBOL__,d),ae(g[0])){const E=g[0];d.__composerExtend=E.__composerExtend,d.__vueI18nExtend=E.__vueI18nExtend}let C=null;!o&&r&&(C=yE(p,d.global)),__VUE_I18N_FULL_INSTALL__&&uE(p,d,...g),__VUE_I18N_LEGACY_API__&&o&&p.mixin(fE(a,a.__composer,d));const S=p.unmount;p.unmount=()=>{C&&C(),d.dispose(),S()}},get global(){return a},dispose(){l.stop()},__instances:i,__getInstance:c,__setInstance:u,__deleteInstance:f};return d}}function Sa(e={}){const t=Ao();if(t==null)throw ze($e.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ze($e.NOT_INSTALLED);const o=hE(t),r=CE(o),n=Od(t),i=gE(e,n);if(__VUE_I18N_LEGACY_API__&&o.mode==="legacy"&&!e.__useComponent){if(!o.allowComposition)throw ze($e.NOT_AVAILABLE_IN_LEGACY_MODE);return vE(t,i,r,e)}if(i==="global")return Md(r,e,n),r;if(i==="parent"){let s=bE(o,t,e.__useComponent);return s==null&&(s=r),s}const l=o;let a=l.__getInstance(t);if(a==null){const s=Ge({},e);"__i18n"in n&&(s.__i18n=n.__i18n),r&&(s.__root=r),a=_a(s),l.__composerExtend&&(a[kl]=l.__composerExtend(a)),_E(l,t,a),l.__setInstance(t,a)}return a}function mE(e,t,o){const r=Wl();{const n=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Hl(e)):r.run(()=>_a(e));if(n==null)throw ze($e.UNEXPECTED_ERROR);return[r,n]}}function hE(e){{const t=Ze(e.isCE?dE:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ze(e.isCE?$e.NOT_INSTALLED_WITH_PROVIDE:$e.UNEXPECTED_ERROR);return t}}function gE(e,t){return Ti(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function CE(e){return e.mode==="composition"?e.global:e.global.__composer}function bE(e,t,o=!1){let r=null;const n=t.root;let i=xE(t,o);for(;i!=null;){const l=e;if(e.mode==="composition")r=l.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=l.__getInstance(i);a!=null&&(r=a.__composer,o&&r&&!r[Fd]&&(r=null))}if(r!=null||n===i)break;i=i.parent}return r}function xE(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function _E(e,t,o){pi(()=>{},t),Ql(()=>{const r=o;e.__deleteInstance(t);const n=r[kl];n&&(n(),delete r[kl])},t)}function vE(e,t,o,r={}){const n=t==="local",i=Yl(null);if(n&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ze($e.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const l=pe(r.inheritLocale)?r.inheritLocale:!K(r.locale),a=mt(!n||l?o.locale.value:K(r.locale)?r.locale:_r),s=mt(!n||l?o.fallbackLocale.value:K(r.fallbackLocale)||Ae(r.fallbackLocale)||ae(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),c=mt(Ai(a.value,r)),u=mt(ae(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),f=mt(ae(r.numberFormats)?r.numberFormats:{[a.value]:{}}),d=n?o.missingWarn:pe(r.missingWarn)||Lo(r.missingWarn)?r.missingWarn:!0,p=n?o.fallbackWarn:pe(r.fallbackWarn)||Lo(r.fallbackWarn)?r.fallbackWarn:!0,g=n?o.fallbackRoot:pe(r.fallbackRoot)?r.fallbackRoot:!0,C=!!r.fallbackFormat,S=Pe(r.missing)?r.missing:null,E=Pe(r.postTranslation)?r.postTranslation:null,T=n?o.warnHtmlMessage:pe(r.warnHtmlMessage)?r.warnHtmlMessage:!0,v=!!r.escapeParameter,y=n?o.modifiers:ae(r.modifiers)?r.modifiers:{},w=r.pluralRules||n&&o.pluralRules;function L(){return[a.value,s.value,c.value,u.value,f.value]}const D=fe({get:()=>i.value?i.value.locale.value:a.value,set:x=>{i.value&&(i.value.locale.value=x),a.value=x}}),F=fe({get:()=>i.value?i.value.fallbackLocale.value:s.value,set:x=>{i.value&&(i.value.fallbackLocale.value=x),s.value=x}}),P=fe(()=>i.value?i.value.messages.value:c.value),U=fe(()=>u.value),X=fe(()=>f.value);function k(){return i.value?i.value.getPostTranslationHandler():E}function Q(x){i.value&&i.value.setPostTranslationHandler(x)}function me(){return i.value?i.value.getMissingHandler():S}function ye(x){i.value&&i.value.setMissingHandler(x)}function se(x){return L(),x()}function ne(...x){return i.value?se(()=>Reflect.apply(i.value.t,null,[...x])):se(()=>"")}function de(...x){return i.value?Reflect.apply(i.value.rt,null,[...x]):""}function tt(...x){return i.value?se(()=>Reflect.apply(i.value.d,null,[...x])):se(()=>"")}function ft(...x){return i.value?se(()=>Reflect.apply(i.value.n,null,[...x])):se(()=>"")}function Re(x){return i.value?i.value.tm(x):{}}function Fe(x,R){return i.value?i.value.te(x,R):!1}function Tt(x){return i.value?i.value.getLocaleMessage(x):{}}function ht(x,R){i.value&&(i.value.setLocaleMessage(x,R),c.value[x]=R)}function gt(x,R){i.value&&i.value.mergeLocaleMessage(x,R)}function We(x){return i.value?i.value.getDateTimeFormat(x):{}}function H(x,R){i.value&&(i.value.setDateTimeFormat(x,R),u.value[x]=R)}function Y(x,R){i.value&&i.value.mergeDateTimeFormat(x,R)}function G(x){return i.value?i.value.getNumberFormat(x):{}}function ee(x,R){i.value&&(i.value.setNumberFormat(x,R),f.value[x]=R)}function ue(x,R){i.value&&i.value.mergeNumberFormat(x,R)}const b={get id(){return i.value?i.value.id:-1},locale:D,fallbackLocale:F,messages:P,datetimeFormats:U,numberFormats:X,get inheritLocale(){return i.value?i.value.inheritLocale:l},set inheritLocale(x){i.value&&(i.value.inheritLocale=x)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:y},get pluralRules(){return i.value?i.value.pluralRules:w},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:d},set missingWarn(x){i.value&&(i.value.missingWarn=x)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(x){i.value&&(i.value.missingWarn=x)},get fallbackRoot(){return i.value?i.value.fallbackRoot:g},set fallbackRoot(x){i.value&&(i.value.fallbackRoot=x)},get fallbackFormat(){return i.value?i.value.fallbackFormat:C},set fallbackFormat(x){i.value&&(i.value.fallbackFormat=x)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:T},set warnHtmlMessage(x){i.value&&(i.value.warnHtmlMessage=x)},get escapeParameter(){return i.value?i.value.escapeParameter:v},set escapeParameter(x){i.value&&(i.value.escapeParameter=x)},t:ne,getPostTranslationHandler:k,setPostTranslationHandler:Q,getMissingHandler:me,setMissingHandler:ye,rt:de,d:tt,n:ft,tm:Re,te:Fe,getLocaleMessage:Tt,setLocaleMessage:ht,mergeLocaleMessage:gt,getDateTimeFormat:We,setDateTimeFormat:H,mergeDateTimeFormat:Y,getNumberFormat:G,setNumberFormat:ee,mergeNumberFormat:ue};function _(x){x.locale.value=a.value,x.fallbackLocale.value=s.value,Object.keys(c.value).forEach(R=>{x.mergeLocaleMessage(R,c.value[R])}),Object.keys(u.value).forEach(R=>{x.mergeDateTimeFormat(R,u.value[R])}),Object.keys(f.value).forEach(R=>{x.mergeNumberFormat(R,f.value[R])}),x.escapeParameter=v,x.fallbackFormat=C,x.fallbackRoot=g,x.fallbackWarn=p,x.missingWarn=d,x.warnHtmlMessage=T}return Jl(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ze($e.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const x=i.value=e.proxy.$i18n.__composer;t==="global"?(a.value=x.locale.value,s.value=x.fallbackLocale.value,c.value=x.messages.value,u.value=x.datetimeFormats.value,f.value=x.numberFormats.value):n&&_(x)}),b}const SE=["locale","fallbackLocale","availableLocales"],Ic=["t","rt","d","n","tm","te"];function yE(e,t){const o=Object.create(null);return SE.forEach(n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i)throw ze($e.UNEXPECTED_ERROR);const l=Le(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(o,n,l)}),e.config.globalProperties.$i18n=o,Ic.forEach(n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i||!i.value)throw ze($e.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,i)}),()=>{delete e.config.globalProperties.$i18n,Ic.forEach(n=>{delete e.config.globalProperties[`$${n}`]})}}Qy();__INTLIFY_JIT_COMPILATION__?lc(Gy):lc(jy);Ny(gy);ky(xd);if(__INTLIFY_PROD_DEVTOOLS__){const e=io();e.__INTLIFY__=!0,Ty(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const EE={app:{tagline:"文件快传",description:"开箱即用的文件快传系统"},nav:{home:"分享",docs:"API 文档",openapi:"OpenAPI",admin:"管理后台",homeTitle:"{name} — 首页",mainNav:"主导航"},theme:{label:"主题",light:"浅色",dark:"深色",system:"跟随系统"},lang:{label:"语言"},footer:{linkNav:"页脚链接",docs:"API 文档",openapi:"OpenAPI",admin:"管理后台",copyright:"© {year} {name}"},notify:{title:"系统通知",close:"知道了"},common:{loading:"加载中…",cancel:"取消",save:"保存",search:"搜索",refresh:"刷新",copy:"复制",copied:"已复制",copyFailed:"复制失败",close:"关闭",actions:"操作",all:"全部",query:"查询",reset:"重置",previousPage:"上一页",nextPage:"下一页",pagerInfo:"共 {total} 条 · 第 {page}/{pages} 页",text:"文本",file:"文件",success:"成功",failed:"失败",denied:"拒绝",none:"-"},time:{forever:"永久有效",permanent:"永久",expired:"已过期",lessThanMinute:"不足 1 分钟",minutes:"{n} 分钟",hoursMinutes:"{h} 小时 {m} 分",daysHours:"{d} 天 {h} 小时"},expireStyle:{day:"天",hour:"小时",minute:"分钟",count:"次数",forever:"永久"},home:{heroTitle:"{name} · 文件快传",heroDesc:"无需注册,文本文件一键分享,取件码即可领取",pickupPlaceholder:"输入取件码直接领取",pickupButton:"取 件",pickupRequired:"请输入取件码",tabText:"分享文本",tabFile:"分享文件",textContent:"文本内容",textPlaceholder:"粘贴要分享的文本、代码片段…",textBytes:"{bytes} / 222 KB(超出请改用文件分享)",textTooLong:"内容过多(超过 222KB),建议采用文件形式分享",textRequired:"请输入要分享的文本内容",customCode:"自定义提取码(可选)",customCodeHint:"留空随机生成;4-8 位字母或数字",customCodeInvalid:"提取码须为 4-8 位字母或数字",customCodeTaken:"该提取码已被占用,请换一个",generateCode:"生成取件码",fileRequired:"请选择要分享的文件",fileTooLarge:"文件大小超过限制(最大 {size})",chunkedUploading:"分片上传中",uploading:"上传中",uploadingDots:"上传中…",uploadAndShare:"上传并生成取件码",uploadDisabled:"管理员已关闭访客上传功能,如需分享请联系管理员",shareAnother:"再分享一个",textShared:"文本分享成功",fileShared:"文件分享成功",uploadCancelled:"上传已取消",shareFailed:"分享失败,请稍后重试",uploadFailed:"上传失败,请重试",rateLimited:"操作过于频繁,请稍后再试",notInitialized:"系统尚未初始化,请管理员先完成初始化配置"},result:{badge:"分享成功",code:"取件码",link:"取件链接",copyLink:"复制链接",copyLinkCode:"复制链接和提取码",copyCode:"复制取件码",codeCopied:"取件码已复制",linkCopied:"取件链接已复制",linkCodeCopied:"链接和提取码已复制",clickCopyCode:"点击复制提取码",expires:"有效期:{value}",forever:"永久",hint:"把取件码或链接发给对方,对方在首页输入取件码即可领取。",copyFailed:"复制失败,请手动选择复制"},pickup:{emptyCode:"取件码为空",querying:"正在查询取件码 {code} …",failed:"取件失败",failedDefault:"取件失败,请稍后重试",notFound:"取件码不存在或分享已过期",confirmHint:"请确认取件码是否正确,或联系分享人重新发送",retryPlaceholder:"输入其他取件码",retryButton:"重新取件",remainingUnlimited:"不限次数",remainingCount:"剩余 {n} 次",expireAt:"过期时间:{time}",loadingText:"正在获取内容…",copyContent:"复制内容",downloadTxt:"下载为 .txt",downloaded:"下载完成",downloadFailed:"下载失败,请重试",copied:"内容已复制",sizeUsed:"大小 {size} · 已被领取 {n} 次",downloading:"下载中 {percent}%",downloadFile:"下载文件({size})"},expire:{value:"数值",label:"有效期",foreverOption:"永久有效",countOption:"按次数",countHint:"分享在被领取指定次数后失效",timeHint:"有效期 {value} {unit}",foreverHint:"分享将一直有效,直到管理员删除",maxSecondsHint:"最长 {value}",maxCountHint:"最多 {n} 次"},drop:{aria:"选择或拖拽文件",zone:"点击选择或拖拽文件到此处",maxSize:"单文件最大 {size}",noLimit:"上传后自动生成取件码",remove:"移除",tooLarge:"文件大小 {size} 超过限制 {limit}",typeHint:"仅支持 {types}"},docs:{searchPlaceholder:"检索文档内容…",notGenerated:"文档尚未生成",buildHint:"构建时将从 docs/api/*.md 自动收录",noMatch:"没有匹配的章节",tocTitle:"本页目录",loading:"加载文档…",preparing:"API 文档筹备中",preparingHint:"文档源位于项目 docs/api/ 目录(每个 .md 一级标题作为章节名)。重新构建前端后,文档将内嵌到页面中离线可用。",emptyContent:"文档内容为空",loadFailed:"文档「{title}」加载失败",sidebar:"文档章节"},openapi:{title:"OpenAPI 3.0 接口规范",statusOk:"加载成功",statusError:"规范加载失败",statusLoading:"加载中…",source:"来源:{source}",sourceEmbedded:"构建内嵌 docs/openapi.yaml",notAvailable:"openapi.yaml 尚未生成或无法访问",notAvailableHint:"规范文件位于项目 docs/openapi.yaml。重新构建前端会将其内嵌;也可将文件部署到 {url} 供运行时加载。"},notFound:{title:"页面不存在",desc:"你访问的地址可能已变更",back:"回到首页"},admin:{login:{title:"管理员登录",subtitle:"{name} · 管理后台",password:"管理员密码",passwordPlaceholder:"请输入管理员密码",submit:"登 录",wrongPassword:"密码错误",failed:"登录失败,请稍后重试",required:"请输入管理员密码",hint:"密码由部署方在环境变量或系统设置中配置;连续输错会触发 IP 限流保护。"},nav:{title:"管理后台",files:"文件管理",audit:"审计日志",settings:"系统设置",logout:"退出登录",menu:"后台菜单",loggedOut:"已退出登录"},files:{title:"文件管理",totalRecords:"共 {total} 个分享记录",searchPlaceholder:"搜索取件码 / 文件名",batchDelete:"批量删除",batchDeleteWithCount:"批量删除({count})",deleteSelectedTitle:"删除选中的 {count} 项",selectFirst:"先勾选要删除的行",loading:"加载中…",empty:"暂无分享记录",loadFailed:"文件列表加载失败",colCode:"取件码",colName:"名称",colType:"类型",colSize:"大小",colUsed:"已领取",colRemaining:"剩余",colExpireAt:"过期时间",colStatus:"状态",colCreatedAt:"创建时间",remainingUnlimited:"不限",remainingCount:"{n} 次",statusValid:"有效",statusExpired:"已过期",copyCode:"复制码",copyLink:"复制链接",edit:"编辑",fetchText:"取内容",delete:"删除",confirmDelete:"确认删除分享「{name}」?该操作不可恢复。",confirmBatchDelete:"确认删除选中的 {count} 个分享?该操作不可恢复。",deleteSuccess:"删除成功",batchDeleteSuccess:"批量删除成功",deleteFailed:"删除失败",batchDeleteFailed:"批量删除失败",nothingChanged:"没有修改任何字段",updateSuccess:"更新成功",updateFailed:"更新失败",fetchTextFailed:"内容获取失败(分享可能已过期)",linkCopied:"取件链接已复制",codeCopied:"取件码已复制",editModalTitle:"编辑分享",expireAtHint:"过期时间(留空表示永久)",expireCountHint:"剩余可领取次数(-1 表示不限)"},audit:{title:"审计日志",subtitle:"记录上传 / 下载动作:时间、IP、UA、设备、结果、字节数与耗时",action:"动作",result:"结果",actionUpload:"上传",actionDownload:"下载",filterIp:"IP",filterStart:"开始时间",filterEnd:"结束时间",empty:"暂无审计记录(审计仅记录上传 / 下载动作)",loadFailed:"审计日志加载失败",colTime:"时间",colAction:"动作",colResult:"结果",colFile:"文件",colCode:"取件码",colBytes:"字节数",colIp:"IP",colDevice:"设备",colDuration:"耗时",colUaError:"UA / 错误"},settings:{title:"系统设置",subtitle:"站点名称与 Logo(自定义优先,留空恢复内置默认)",restoreDefaults:"恢复默认值",restoreDefaultsDone:"已填回默认值,点击保存生效",loading:"加载配置中…",loadFailed:"配置读取失败",sectionBasic:"基本",siteName:"站点名称 site_name",siteNameHint:"显示在导航栏、登录页与浏览器标题",siteDomain:"网站对外域名",siteDomainHint:"http(s)://域名[:端口],不带路径;留空则分享链接用当前访问地址",sectionLogo:"导航 Logo",logoUrl:"Logo 图片地址 logo_url",uploadImage:"上传图片",logoHint:"支持填写 URL 或上传本地图片(≤256KB,转存为内嵌数据);留空使用内置默认",imageTooLarge:"图片超过 256KB,请压缩后重试或直接填写图片 URL",imageLoaded:"图片已载入,点击保存后全站生效",imageReadFailed:"图片读取失败",navPreview:"导航栏实际效果:",sectionFavicon:"浏览器图标 Favicon",faviconUrl:"Favicon 地址 favicon_url",faviconHint:"建议使用 PNG/ICO 方形图标;留空使用内置默认",faviconPreviewHint:"浏览器标签页图标(保存后刷新页面生效)",saveAll:"保存设置(全站生效)",saved:"设置已保存,全站生效",saveFailed:"保存失败",sectionPassword:"修改管理员密码",passwordHint:"保存后所有已登录会话失效,需重新登录",oldPassword:"旧密码",newPassword:"新密码(至少 6 位)",confirmPassword:"确认新密码",pwdRequired:"请填写旧密码与新密码",pwdTooShort:"新密码至少 6 位",pwdMismatch:"两次输入的新密码不一致",pwdChanged:"密码已修改,请使用新密码重新登录",pwdChangeFailed:"修改失败",pwdWrong:"旧密码错误",sectionBackground:"背景图",backgroundUrl:"背景图地址 background_url",backgroundHint:"支持 http(s) 图片地址、data:image 图片或站内相对路径(≤2048 字符);留空使用主题默认",sectionFooter:"页脚",footerText:"页脚文案 footer_text",footerTextHint:"展示在页面底部,支持纯文本(≤2000 字符);留空显示默认标语",footerBeian:"备案号 footer_beian",footerBeianHint:"如 京ICP备2024xxxxxx号-1(≤128 字符)",sectionNotify:"系统通知",notifyEnabled:"启用右上角通知 notify_enabled",notifyTitle:"通知标题 notify_title",notifyTitleHint:"留空显示默认标题「系统通知」(≤128 字符)",notifyContent:"通知内容 notify_content",notifyContentHint:"支持 等受控 HTML(≤2000 字符)",sectionSavePolicy:"保存策略",maxSaveSeconds:"最长保存秒数 max_save_seconds",maxSaveSecondsHint:"0 = 不限制(服务端默认 7 天兜底),最大 {max} 秒(365 天)",maxSaveCount:"最大可取次数 max_save_count",maxSaveCountHint:"0 = 不限制,最大 {max} 次",sectionStorage:"存储策略",maxFileSize:"单文件上限 max_file_size(字节)",maxFileSizeHint:"0 = 回落 uploadSize(当前 {fallback}),最大 {max} 字节(10 GiB)",allowedFileTypes:"允许类型 allowed_file_types",allowedFileTypesHint:"逗号分隔:扩展名(jpg)或 MIME(image/*),* 不限制",sectionUploadRate:"上传频率限制",uploadCount:"窗口内允许上传次数 uploadCount",uploadCountHint:"最小 1,最大 {max}",uploadMinute:"频率窗口(分钟)uploadMinute",uploadMinuteHint:"最小 1,最大 {max}",uploadRate:"上行带宽(可选)",uploadRateHint:"0 = 不限速;单位 MB/s;范围 0~1024。修改后立即生效(管理端读最新 KV)",downloadRate:"下行带宽(可选)",downloadRateHint:"0 = 不限速;单位 MB/s;范围 0~1024。S3 预签名直传(客户端→S3)无法限速",unitHour:"小时",unitDay:"天",unitMB:"MB",unitGB:"GB",maxSaveTime:"最长保存时间 max_save_seconds",maxSaveTimeHint:"0 = 不限制(服务端默认 7 天兜底),最大 365 天",saveTimeUnlimited:"不限制(0)",maxFileSizeFriendly:"单文件上限 max_file_size",maxFileSizeHintV3:"0 = 回落 uploadSize(当前 {fallback}),最大 10 GB",sizeUnlimited:"不限制(0)",sectionEngine:"存储引擎",engineCurrent:"当前引擎",engineLocal:"本地存储",engineWebdav:"WebDAV",engineS3:"S3 对象存储",engineSwitch:"切换到该引擎",engineSwitching:"切换中…",engineSwitchOk:"存储引擎已切换为 {engine}",engineSwitchFail:"切换失败(已保持原引擎)",engineParamsTitle:"引擎参数",engineParamsSaved:"引擎参数已保存",localRoot:"存储根目录 local_storage_path",localRootHint:"留空 = 系统默认数据目录;修改后对新写入生效",webdavUrl:"服务地址 webdav_url",webdavUrlHint:"如 https://dav.example.com/dav/",webdavRoot:"远端根目录 webdav_root_path",webdavRootHint:"远端起始目录(不存在会自动逐级创建)",webdavUser:"用户名 webdav_username",webdavPass:"密码 webdav_password",secretKeepHint:"留空或 ****** = 不修改",s3Endpoint:"端点 s3_endpoint_url",s3EndpointHint:"如 https://s3.example.com:9000(AWS 官方可留空)",s3Bucket:"存储桶 s3_bucket_name",s3Region:"区域 s3_region_name",s3Ak:"AccessKeyID s3_access_key_id",s3Sk:"SecretAccessKey s3_secret_access_key",s3Token:"会话令牌 aws_session_token(可选)",s3Style:"寻址样式 s3_addressing_style",styleAuto:"auto(自动)",stylePath:"path(路径式,MinIO 常用)",styleVirtual:"virtual(虚拟主机式)",engineParamsSave:"保存引擎参数",approxSize:"≈ {size}"}}},TE={app:{tagline:"File Drop",description:"A ready-to-use file sharing service"},nav:{home:"Share",docs:"API Docs",openapi:"OpenAPI",admin:"Admin",homeTitle:"{name} — Home",mainNav:"Main navigation"},theme:{label:"Theme",light:"Light",dark:"Dark",system:"System"},lang:{label:"Language"},footer:{linkNav:"Footer links",docs:"API Docs",openapi:"OpenAPI",admin:"Admin",copyright:"© {year} {name}"},notify:{title:"System Notice",close:"Got it"},common:{loading:"Loading…",cancel:"Cancel",save:"Save",search:"Search",refresh:"Refresh",copy:"Copy",copied:"Copied",copyFailed:"Copy failed",close:"Close",actions:"Actions",all:"All",query:"Query",reset:"Reset",previousPage:"Previous",nextPage:"Next",pagerInfo:"{total} records · page {page}/{pages}",text:"Text",file:"File",success:"Success",failed:"Failed",denied:"Denied",none:"-"},time:{forever:"Never expires",permanent:"Permanent",expired:"Expired",lessThanMinute:"less than a minute",minutes:"{n} min",hoursMinutes:"{h} h {m} min",daysHours:"{d} d {h} h"},expireStyle:{day:"Days",hour:"Hours",minute:"Minutes",count:"Times",forever:"Forever"},home:{heroTitle:"{name} · File Drop",heroDesc:"No signup — share text or files and hand over a pickup code",pickupPlaceholder:"Enter a pickup code",pickupButton:"Pick up",pickupRequired:"Please enter a pickup code",tabText:"Share text",tabFile:"Share file",textContent:"Text content",textPlaceholder:"Paste the text or code snippet to share…",textBytes:"{bytes} / 222 KB (use file sharing for larger content)",textTooLong:"Content too long (over 222KB) — please share it as a file instead",textRequired:"Enter the text to share",customCode:"Custom pickup code (optional)",customCodeHint:"Leave empty for random; 4-8 letters/digits",customCodeInvalid:"Pickup code must be 4-8 letters or digits",customCodeTaken:"This pickup code is already taken",generateCode:"Generate code",fileRequired:"Please choose a file to share",fileTooLarge:"File exceeds the size limit (max {size})",chunkedUploading:"Chunked upload",uploading:"Uploading",uploadingDots:"Uploading…",uploadAndShare:"Upload & generate code",uploadDisabled:"Guest uploads are disabled. Please contact the administrator if you need to share.",shareAnother:"Share another one",textShared:"Text shared",fileShared:"File shared",uploadCancelled:"Upload cancelled",shareFailed:"Share failed, please try again later",uploadFailed:"Upload failed, please retry",rateLimited:"Too many requests, please slow down",notInitialized:"System is not initialized yet. An administrator must finish the setup first."},result:{badge:"Shared",code:"Pickup code",link:"Pickup link",copyLink:"Copy link",copyLinkCode:"Copy link & code",copyCode:"Copy code",codeCopied:"Pickup code copied",linkCopied:"Pickup link copied",linkCodeCopied:"Link and code copied",clickCopyCode:"Click to copy pickup code",expires:"Expires in: {value}",forever:"Forever",hint:"Send the code or link to the recipient; they can pick it up from the home page.",copyFailed:"Copy failed — please select the text manually"},pickup:{emptyCode:"Pickup code is empty",querying:"Looking up code {code} …",failed:"Pickup failed",failedDefault:"Pickup failed, please try again later",notFound:"Code not found or the share has expired",confirmHint:"Double-check the code, or ask the sender to share it again",retryPlaceholder:"Enter another pickup code",retryButton:"Try again",remainingUnlimited:"Unlimited",remainingCount:"{n} left",expireAt:"Expires: {time}",loadingText:"Fetching content…",copyContent:"Copy content",downloadTxt:"Download as .txt",downloaded:"Download complete",downloadFailed:"Download failed, please retry",copied:"Content copied",sizeUsed:"Size {size} · picked up {n} times",downloading:"Downloading {percent}%",downloadFile:"Download ({size})"},expire:{value:"Amount",label:"Expires in",foreverOption:"Never expires",countOption:"After N pickups",countHint:"The share becomes invalid after the given number of pickups",timeHint:"Valid for {value} {unit}",foreverHint:"The share stays valid until an administrator deletes it",maxSecondsHint:"At most {value}",maxCountHint:"At most {n} pickups"},drop:{aria:"Choose or drop a file",zone:"Click to choose or drop a file here",maxSize:"Max {size} per file",noLimit:"A pickup code is generated after upload",remove:"Remove",tooLarge:"File size {size} exceeds the limit {limit}",typeHint:"Allowed types: {types}"},docs:{searchPlaceholder:"Search documentation…",notGenerated:"Docs not generated yet",buildHint:"They are collected from docs/api/*.md at build time",noMatch:"No matching sections",tocTitle:"On this page",loading:"Loading document…",preparing:"API docs are on the way",preparingHint:"Sources live in the project docs/api/ directory (each .md is one section). Rebuild the frontend to embed them for offline use.",emptyContent:"Document is empty",loadFailed:'Failed to load document "{title}"',sidebar:"Documentation sections"},openapi:{title:"OpenAPI 3.0 Specification",statusOk:"Loaded",statusError:"Failed to load spec",statusLoading:"Loading…",source:"Source: {source}",sourceEmbedded:"Embedded docs/openapi.yaml at build time",notAvailable:"openapi.yaml is not generated or cannot be accessed",notAvailableHint:"The spec file lives in the project docs/openapi.yaml. Rebuilding the frontend embeds it; you can also deploy it to {url} for runtime loading."},notFound:{title:"Page not found",desc:"The address may have changed",back:"Back home"},admin:{login:{title:"Administrator Sign-in",subtitle:"{name} · Admin Console",password:"Admin password",passwordPlaceholder:"Enter the admin password",submit:"Sign in",wrongPassword:"Incorrect password",failed:"Sign-in failed, please try again later",required:"Please enter the admin password",hint:"The password is configured by the deployer via env vars or system settings; repeated failures trigger IP rate limiting."},nav:{title:"Admin",files:"Files",audit:"Audit Log",settings:"Settings",logout:"Sign out",menu:"Admin menu",loggedOut:"Signed out"},files:{title:"File Management",totalRecords:"{total} shares in total",searchPlaceholder:"Search code / file name",batchDelete:"Delete selected",batchDeleteWithCount:"Delete selected ({count})",deleteSelectedTitle:"Delete {count} selected items",selectFirst:"Select rows first",loading:"Loading…",empty:"No shares yet",loadFailed:"Failed to load the file list",colCode:"Code",colName:"Name",colType:"Type",colSize:"Size",colUsed:"Picked",colRemaining:"Remaining",colExpireAt:"Expires",colStatus:"Status",colCreatedAt:"Created",remainingUnlimited:"∞",remainingCount:"{n} left",statusValid:"Active",statusExpired:"Expired",copyCode:"Copy code",copyLink:"Copy link",edit:"Edit",fetchText:"Fetch text",delete:"Delete",confirmDelete:'Delete "{name}"? This cannot be undone.',confirmBatchDelete:"Delete {count} selected shares? This cannot be undone.",deleteSuccess:"Deleted",batchDeleteSuccess:"Batch deleted",deleteFailed:"Delete failed",batchDeleteFailed:"Batch delete failed",nothingChanged:"Nothing changed",updateSuccess:"Updated",updateFailed:"Update failed",fetchTextFailed:"Failed to fetch content (the share may have expired)",linkCopied:"Pickup link copied",codeCopied:"Pickup code copied",editModalTitle:"Edit share",expireAtHint:"Expires at (leave empty for never)",expireCountHint:"Remaining pickups (-1 for unlimited)"},audit:{title:"Audit Log",subtitle:"Upload / download events: time, IP, UA, device, result, bytes and duration",action:"Action",result:"Result",actionUpload:"Upload",actionDownload:"Download",filterIp:"IP",filterStart:"Start time",filterEnd:"End time",empty:"No audit records yet (only upload / download actions are recorded)",loadFailed:"Failed to load the audit log",colTime:"Time",colAction:"Action",colResult:"Result",colFile:"File",colCode:"Code",colBytes:"Bytes",colIp:"IP",colDevice:"Device",colDuration:"Duration",colUaError:"UA / Error"},settings:{title:"System Settings",subtitle:"Site name and branding (custom values win; leave empty to restore built-in defaults)",restoreDefaults:"Restore defaults",restoreDefaultsDone:"Defaults filled in — click save to apply",loading:"Loading settings…",loadFailed:"Failed to load settings",sectionBasic:"Basic",siteName:"Site name · site_name",siteNameHint:"Shown in the nav bar, login page and browser title",siteDomain:"Public site domain",siteDomainHint:"http(s)://host[:port], no path; leave empty to use the current address in share links",sectionLogo:"Nav logo",logoUrl:"Logo image URL · logo_url",uploadImage:"Upload image",logoHint:"Enter a URL or upload a local image (≤256KB, stored inline); leave empty for the built-in default",imageTooLarge:"Image exceeds 256KB — compress it or paste an image URL instead",imageLoaded:"Image loaded — click save to apply site-wide",imageReadFailed:"Failed to read the image",navPreview:"Nav bar preview:",sectionFavicon:"Browser favicon",faviconUrl:"Favicon URL · favicon_url",faviconHint:"Use a square PNG/ICO; leave empty for the built-in default",faviconPreviewHint:"Browser tab icon (applied after saving and refreshing)",saveAll:"Save settings (applies site-wide)",saved:"Settings saved site-wide",saveFailed:"Save failed",sectionPassword:"Change admin password",passwordHint:"After saving, all signed-in sessions are invalidated and you must sign in again",oldPassword:"Old password",newPassword:"New password (at least 6 characters)",confirmPassword:"Confirm new password",pwdRequired:"Please fill in the old and new passwords",pwdTooShort:"The new password must be at least 6 characters",pwdMismatch:"The two passwords do not match",pwdChanged:"Password changed — please sign in again with the new password",pwdChangeFailed:"Change failed",pwdWrong:"Old password is incorrect",sectionBackground:"Background image",backgroundUrl:"Background URL · background_url",backgroundHint:"http(s) image URL, data:image image or site-relative path (≤2048 chars); leave empty for the theme default",sectionFooter:"Footer",footerText:"Footer text · footer_text",footerTextHint:"Shown at the page bottom as plain text (≤2000 chars); leave empty for the default tagline",footerBeian:"ICP filing number · footer_beian",footerBeianHint:"e.g. 京ICP备2024xxxxxx号-1 (≤128 chars)",sectionNotify:"System notice",notifyEnabled:"Show floating notice · notify_enabled",notifyTitle:"Notice title · notify_title",notifyTitleHint:'Leave empty for the default title "System Notice" (≤128 chars)',notifyContent:"Notice content · notify_content",notifyContentHint:"Controlled HTML such as is allowed (≤2000 chars)",sectionSavePolicy:"Save policy",maxSaveSeconds:"Max save seconds · max_save_seconds",maxSaveSecondsHint:"0 = unlimited (server default 7-day fallback), max {max} seconds (365 days)",maxSaveCount:"Max pickup count · max_save_count",maxSaveCountHint:"0 = unlimited, max {max}",sectionStorage:"Storage policy",maxFileSize:"Max file size · max_file_size (bytes)",maxFileSizeHint:"0 = fall back to uploadSize (currently {fallback}), max {max} bytes (10 GiB)",allowedFileTypes:"Allowed types · allowed_file_types",allowedFileTypesHint:"Comma separated: extensions (jpg) or MIME (image/*); * means no limit",sectionUploadRate:"Upload rate limit",uploadCount:"Uploads per window · uploadCount",uploadCountHint:"Min 1, max {max}",uploadMinute:"Window length (minutes) · uploadMinute",uploadMinuteHint:"Min 1, max {max}",uploadRate:"Upload bandwidth (optional)",uploadRateHint:"0 = unlimited; MB/s; range 0~1024. Live-effective (admin reads latest KV each request)",downloadRate:"Download bandwidth (optional)",downloadRateHint:"0 = unlimited; MB/s; range 0~1024. S3 presigned direct upload cannot be throttled server-side",unitHour:"Hour(s)",unitDay:"Day(s)",unitMB:"MB",unitGB:"GB",maxSaveTime:"Max save time · max_save_seconds",maxSaveTimeHint:"0 = unlimited (server default 7-day fallback), max 365 days",saveTimeUnlimited:"Unlimited (0)",maxFileSizeFriendly:"Max file size · max_file_size",maxFileSizeHintV3:"0 = fall back to uploadSize (current {fallback}), max 10 GB",sizeUnlimited:"Unlimited (0)",sectionEngine:"Storage engine",engineCurrent:"Current engine",engineLocal:"Local storage",engineWebdav:"WebDAV",engineS3:"S3 object storage",engineSwitch:"Switch to this engine",engineSwitching:"Switching…",engineSwitchOk:"Storage engine switched to {engine}",engineSwitchFail:"Switch failed (previous engine kept)",engineParamsTitle:"Engine parameters",engineParamsSaved:"Engine parameters saved",localRoot:"Storage root · local_storage_path",localRootHint:"Empty = system default data directory; applies to new writes",webdavUrl:"Server URL · webdav_url",webdavUrlHint:"e.g. https://dav.example.com/dav/",webdavRoot:"Remote root · webdav_root_path",webdavRootHint:"Remote base directory (created recursively if missing)",webdavUser:"Username · webdav_username",webdavPass:"Password · webdav_password",secretKeepHint:"Empty or ****** = keep unchanged",s3Endpoint:"Endpoint · s3_endpoint_url",s3EndpointHint:"e.g. https://s3.example.com:9000 (leave empty for AWS)",s3Bucket:"Bucket · s3_bucket_name",s3Region:"Region · s3_region_name",s3Ak:"AccessKeyID · s3_access_key_id",s3Sk:"SecretAccessKey · s3_secret_access_key",s3Token:"Session token · aws_session_token (optional)",s3Style:"Addressing style · s3_addressing_style",styleAuto:"auto",stylePath:"path (typical for MinIO)",styleVirtual:"virtual-hosted",engineParamsSave:"Save engine parameters",approxSize:"≈ {size}"}}},Hd="fcb_locale";function PE(){try{const e=localStorage.getItem(Hd);return e==="zh-CN"||e==="en-US"?e:null}catch{return null}}function IE(){const e=PE();return e||(((typeof navigator<"u"?navigator.language:"en")??"en").toLowerCase().startsWith("zh")?"zh-CN":"en-US")}function AE(e){try{localStorage.setItem(Hd,e)}catch{}}const Ir=pE({legacy:!1,locale:IE(),fallbackLocale:"zh-CN",messages:{"zh-CN":EE,"en-US":TE},missingWarn:!1,fallbackWarn:!1});function Ac(){return Ir.global.locale.value??"zh-CN"}function wT(e){Ir.global.locale.value=e,document.documentElement.lang=e,AE(e)}Ir.global.t;function vo(e,t){return Ir.global.t(e,t??{})}function LT(e){if(e==null||Number.isNaN(e))return"-";if(e<1024)return`${e} B`;const t=["KB","MB","GB","TB"];let o=e,r=-1;do o/=1024,r++;while(o>=1024&&r=100?0:1)} ${t[r]}`}function DT(e){if(!e)return"-";const t=new Date(e);if(Number.isNaN(t.getTime()))return String(e);const o=r=>`${r}`.padStart(2,"0");return`${t.getFullYear()}-${o(t.getMonth()+1)}-${o(t.getDate())} ${o(t.getHours())}:${o(t.getMinutes())}:${o(t.getSeconds())}`}function RT(e){if(!e)return vo("time.forever");const t=new Date(e).getTime();if(Number.isNaN(t))return vo("time.forever");const o=t-Date.now();if(o<=0)return vo("time.expired");const r=Math.floor(o/6e4);if(r<1)return vo("time.lessThanMinute");if(r<60)return vo("time.minutes",{n:r});const n=Math.floor(r/60);if(n<24)return vo("time.hoursMinutes",{h:n,m:r%60});const i=Math.floor(n/24);return vo("time.daysHours",{d:i,h:n%24})}function FT(e){return e==null?"-":e<1e3?`${e} ms`:`${(e/1e3).toFixed(2)} s`}const wE=[{value:"day",label:"day"},{value:"hour",label:"hour"},{value:"minute",label:"minute"},{value:"count",label:"count"},{value:"forever",label:"forever"}];function OT(e){const t=wE.find(o=>o.value===e);return t?vo(`expireStyle.${t.value}`):e}function MT(e){if(!e)return null;const t=/filename\*=(?:UTF-8'')?([^;]+)/i.exec(e);if(t)try{return decodeURIComponent(t[1].replace(/["']/g,"").trim())}catch{}const o=/filename="?([^";]+)"?/i.exec(e);return o?o[1]:null}function NT(e,t){const o=URL.createObjectURL(e),r=document.createElement("a");r.href=o,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(o),5e3)}async function kT(e){try{return await navigator.clipboard.writeText(e),!0}catch{try{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const o=document.execCommand("copy");return t.remove(),o}catch{return!1}}}async function HT(e){const t=await crypto.subtle.digest("SHA-256",e);return Array.from(new Uint8Array(t)).map(o=>o.toString(16).padStart(2,"0")).join("")}function De(e,t){for(const o of t)if(e&&typeof e=="object"&&o in e&&e[o]!==void 0&&e[o]!==null)return e[o]}const LE="/assets/logo-CBe6oOaL.svg",DE="/assets/favicon-Dl6ZLL7S.png",RE=LE,FE=DE,tl="文件快传";function ol(e,t=!0){return e==null?t:typeof e=="boolean"?e:typeof e=="number"?e!==0:String(e)!=="0"&&String(e)!=="false"&&String(e)!==""}function wc(e){return Array.isArray(e)?e.map(t=>String(t).trim()).filter(Boolean):typeof e=="string"?e.split(",").map(t=>t.trim()).filter(Boolean):[]}function ar(e,t){const o=Number(e);return Number.isFinite(o)?o:t}const OE=Xu("config",{state:()=>({loaded:!1,loading:!1,siteName:tl,siteDomain:"",description:"",explain:"",uploadSize:10*1024*1024,allowedFileTypes:[],expireStyle:["day","hour","minute","forever","count"],enableChunk:!1,openUpload:!0,notifyEnabled:!1,notifyTitle:"",notifyContent:"",logoUrl:"",faviconUrl:"",backgroundUrl:"",footerText:"",footerBeian:"",maxFileSize:0,maxSaveSeconds:0,maxSaveCount:0,uploadCount:0,uploadMinute:0}),getters:{displayLogoUrl:e=>e.logoUrl?.trim()?e.logoUrl:RE,displayFaviconUrl:e=>e.faviconUrl?.trim()?e.faviconUrl:FE,displayName:e=>e.siteName?.trim()?e.siteName:tl,shareLinkBase:e=>e.siteDomain?.trim()?e.siteDomain.trim().replace(/\/$/,""):location.origin,effectiveMaxFileSize(){return this.maxFileSize>0?this.maxFileSize:this.uploadSize}},actions:{async load(){this.loading=!0;try{const e=await gS(ed.publicConfig,{timeout:8e3}),t=De(e,["config"])??e;this.siteName=String(De(t,["name","site_name","siteName"])??tl),this.siteDomain=String(De(t,["site_domain","siteDomain"])??"").trim(),this.description=String(De(t,["description"])??""),this.explain=String(De(t,["explain","page_explain"])??""),this.uploadSize=ar(De(t,["uploadSize","upload_size"]),10*1024*1024),this.allowedFileTypes=wc(De(t,["allowedFileTypes","allowed_file_types"]));const o=wc(De(t,["expireStyle","expire_style"]));o.length&&(this.expireStyle=o),this.enableChunk=ol(De(t,["enableChunk","enable_chunk"]),!1),this.openUpload=ol(De(t,["openUpload","open_upload"]),!0),this.notifyTitle=String(De(t,["notify_title","notifyTitle"])??""),this.notifyContent=String(De(t,["notify_content","notifyContent"])??""),this.notifyEnabled=ol(De(t,["notify_enabled","notifyEnabled"]),!1),this.backgroundUrl=String(De(t,["background_url","backgroundUrl"])??"").trim(),this.footerText=String(De(t,["footer_text","footerText"])??""),this.footerBeian=String(De(t,["footer_beian","footerBeian"])??""),this.maxFileSize=ar(De(t,["max_file_size","maxFileSize","maxFileSize"]),0),this.maxSaveSeconds=ar(De(t,["max_save_seconds","maxSaveSeconds"]),0),this.maxSaveCount=ar(De(t,["max_save_count","maxSaveCount"]),0),this.uploadCount=ar(De(t,["uploadCount","upload_count"]),0),this.uploadMinute=ar(De(t,["uploadMinute","upload_minute"]),0),this.logoUrl=String(De(t,["logo_url","logoUrl"])??"").trim(),this.faviconUrl=String(De(t,["favicon_url","faviconUrl"])??"").trim(),this.loaded=!0,this.applyToDocument()}catch{}finally{this.loading=!1}},applyToDocument(){let e=document.querySelector('link[rel="icon"]');e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=this.displayFaviconUrl}}}),$T=["light","dark","system"],$d="fcb_theme_mode";function ME(){try{const e=localStorage.getItem($d);return e==="light"||e==="dark"||e==="system"?e:null}catch{return null}}function NE(e){try{localStorage.setItem($d,e)}catch{}}function Bd(){return typeof matchMedia=="function"&&matchMedia("(prefers-color-scheme: dark)").matches}const Do=mt(ME()??"system"),qn=mt(Do.value==="system"?Bd()?"dark":"light":Do.value);let Lc=!1;function kE(){if(Lc||typeof matchMedia!="function")return;Lc=!0;const e=matchMedia("(prefers-color-scheme: dark)");e.addEventListener?.("change",()=>{Do.value==="system"&&(qn.value=e.matches?"dark":"light")})}function HE(){kE(),qn.value=Do.value==="system"?Bd()?"dark":"light":Do.value,document.documentElement.dataset.theme=qn.value}St(Do,HE,{immediate:!0});function $E(e){Do.value=e,NE(e)}function BE(){return{mode:Do,resolved:qn,setMode:$E}}let WE=0;const zE=Xu("toast",{state:()=>({items:[]}),actions:{push(e,t="info",o=3200){const r=++WE;this.items.push({id:r,type:t,text:e}),this.items.length>4&&this.items.shift(),setTimeout(()=>this.dismiss(r),o)},success(e){this.push(e,"success")},error(e){this.push(e,"error",4200)},info(e){this.push(e,"info")},dismiss(e){this.items=this.items.filter(t=>t.id!==e)}}}),UE={class:"toast-host","aria-live":"polite"},VE=["onClick"],jE={class:"toast-icon","aria-hidden":"true"},GE=po({__name:"ToastHost",setup(e){const t=zE();return(o,r)=>(Ft(),hr("div",UE,[(Ft(!0),hr(qe,null,tm(bt(t).items,n=>(Ft(),hr("div",{key:n.id,class:ii(["toast",`toast-${n.type}`]),role:"status",onClick:i=>bt(t).dismiss(n.id)},[Rt("span",jE,Dn(n.type==="success"?"✅":n.type==="error"?"⚠️":"ℹ️"),1),Rt("span",null,Dn(n.text),1)],10,VE))),128))]))}}),KE=["aria-label"],YE={class:"notify-head"},qE={class:"notify-title-text"},XE=["title","aria-label"],JE=["innerHTML"],QE=po({__name:"NotifyPop",props:{title:{},content:{}},emits:["close"],setup(e,{emit:t}){const o=t;return(r,n)=>(Ft(),hr("aside",{class:"notify-pop",role:"dialog","aria-live":"polite","aria-label":e.title||r.$t("notify.title")},[Rt("div",YE,[n[1]||(n[1]=Rt("span",{"aria-hidden":"true"},"🔔",-1)),Rt("span",qE,Dn(e.title||r.$t("notify.title")),1),Rt("button",{class:"notify-close",type:"button",title:r.$t("notify.close"),"aria-label":r.$t("notify.close"),onClick:n[0]||(n[0]=i=>o("close"))}," ✕ ",8,XE)]),Rt("div",{class:"notify-content",innerHTML:e.content},null,8,JE)],8,KE))}}),Wd=(e,t)=>{const o=e.__vccOpts||e;for(const[r,n]of t)o[r]=n;return o},ZE=Wd(QE,[["__scopeId","data-v-6154d8f4"]]),eT={class:"app-root"},tT={key:1,class:"app-bg-tint","aria-hidden":"true"},Dc="fcb_notify_read",oT=po({__name:"App",setup(e){const t=OE(),o=kg(),{resolved:r}=BE();St(Ac,d=>{document.documentElement.lang=d},{immediate:!0}),St([()=>o.fullPath,Ac,()=>t.displayName],()=>{const d=o.meta.titleKey,p=typeof d=="string"?Ir.global.t(d):t.displayName;document.title=`${p} · ${t.displayName}`},{immediate:!0});const n=fe(()=>r.value==="dark"?uS:null),i=fe(()=>r.value==="dark"?{common:{primaryColor:"#7d95ff",primaryColorHover:"#98abff",primaryColorPressed:"#6c86f5",primaryColorSuppl:"#98abff"}}:{common:{primaryColor:"#4f6ef7",primaryColorHover:"#3d5bf0",primaryColorPressed:"#4359e0",primaryColorSuppl:"#3d5bf0"}}),l=fe(()=>!!t.backgroundUrl.trim()),a=mt(!1),s=mt(!1);function c(){return`${t.notifyEnabled}|${t.notifyTitle}|${t.notifyContent}`}function u(){try{s.value=localStorage.getItem(Dc)===c()}catch{s.value=!1}}function f(){a.value=!1,s.value=!0;try{localStorage.setItem(Dc,c())}catch{}}return St(()=>[t.loaded,c()],()=>{const d=s.value;u(),!(!d&&s.value)&&t.loaded&&t.notifyEnabled&&t.notifyContent.trim()&&!s.value&&(a.value=!0)}),pi(()=>{t.load(),u(),t.loaded&&t.notifyEnabled&&t.notifyContent.trim()&&!s.value&&(a.value=!0)}),(d,p)=>{const g=Qp("RouterView");return Ft(),Zr(bt(q_),{theme:n.value,"theme-overrides":i.value,"inline-theme-disabled":""},{default:du(()=>[Rt("div",eT,[p[0]||(p[0]=Rt("div",{class:"app-ambient","aria-hidden":"true"},null,-1)),l.value?(Ft(),hr("div",{key:0,class:"app-bg","aria-hidden":"true",style:ni({backgroundImage:`url(${bt(t).backgroundUrl})`})},null,4)):wn("",!0),l.value?(Ft(),hr("div",tT)):wn("",!0),a.value?(Ft(),Zr(ZE,{key:2,title:bt(t).notifyTitle,content:bt(t).notifyContent,onClose:f},null,8,["title","content"])):wn("",!0),je(GE),je(g)])]),_:1},8,["theme","theme-overrides"])}}}),rT=Wd(oT,[["__scopeId","data-v-b2dd3b97"]]),nT="modulepreload",iT=function(e){return"/"+e},Rc={},Dt=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(c=>{if(c=iT(c),c in Rc)return;Rc[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":nT,u||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((p,g)=>{d.addEventListener("load",p),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},lT=mg(),Xn=Ng({history:lT,routes:[{path:"/",name:"home",component:()=>Dt(()=>import("./HomeView-DvJMP0hn.js"),__vite__mapDeps([0,1,2,3,4,5])),meta:{titleKey:"nav.home"}},{path:"/s/:code",name:"pickup",component:()=>Dt(()=>import("./PickupView-CVVPsUZo.js"),__vite__mapDeps([6,1,2,3,4])),meta:{titleKey:"nav.home"}},{path:"/admin/login",name:"admin-login",component:()=>Dt(()=>import("./LoginView-DEDthjQ1.js"),__vite__mapDeps([7,1,2,3,8,9,10])),meta:{titleKey:"admin.nav.title"}},{path:"/admin",component:()=>Dt(()=>import("./AdminLayout-BLFLLWhV.js"),__vite__mapDeps([11,2,8,9])),meta:{requiresAuth:!0,titleKey:"admin.nav.title"},children:[{path:"",redirect:{name:"admin-files"}},{path:"files",name:"admin-files",component:()=>Dt(()=>import("./FilesView-CmMTGitv.js"),__vite__mapDeps([12,9,4,13])),meta:{titleKey:"admin.nav.files"}},{path:"audit",name:"admin-audit",component:()=>Dt(()=>import("./AuditView-TNYuJPHS.js"),__vite__mapDeps([14,9,13,15])),meta:{titleKey:"admin.nav.audit"}},{path:"settings",name:"admin-settings",component:()=>Dt(()=>import("./SettingsView-DKQCWWuY.js"),__vite__mapDeps([16,9,8,17])),meta:{titleKey:"admin.nav.settings"}}]},{path:"/docs",name:"docs",component:()=>Dt(()=>import("./DocsView-6gYCnmr9.js"),__vite__mapDeps([18,1,2,3,19,20])),meta:{titleKey:"nav.docs"}},{path:"/docs/:slug",name:"docs-detail",component:()=>Dt(()=>import("./DocsView-6gYCnmr9.js"),__vite__mapDeps([18,1,2,3,19,20])),meta:{titleKey:"nav.docs"}},{path:"/openapi",name:"openapi",component:()=>Dt(()=>import("./OpenApiView-B6wLMzyn.js"),__vite__mapDeps([21,1,2,3,22,19,23])),meta:{titleKey:"nav.openapi"}},{path:"/:pathMatch(.*)*",name:"not-found",component:()=>Dt(()=>import("./NotFoundView--KLulUeE.js"),__vite__mapDeps([24,1,2,3])),meta:{titleKey:"notFound.title"}}],scrollBehavior(e,t,o){return o||(e.hash?{el:e.hash,behavior:"smooth"}:{top:0})}});Xn.beforeEach(e=>{if(e.meta.requiresAuth&&!localStorage.getItem("fcb_admin_token"))return{name:"admin-login",query:{redirect:e.fullPath}}});hS(()=>{const e=Xn.currentRoute.value;e.name!=="admin-login"&&Xn.push({name:"admin-login",query:{redirect:e.fullPath}})});const wi=Sh(rT);wi.use(Th());wi.use(Ir);wi.use(Xn);wi.mount("#app");export{FT as $,du as A,CT as B,sT as C,pT as D,wE as E,qe as F,je as G,st as H,pi as I,St as J,DT as K,RT as L,NT as M,kg as N,Qp as O,Su as P,fT as Q,fn as R,De as S,uT as T,IT as U,Zf as V,td as W,MT as X,AT as Y,mT as Z,Wd as _,OE as a,Ze as a0,Yl as a1,Il as a2,Bx as a3,Jl as a4,Vs as a5,Mx as a6,en as a7,Je as a8,pn as a9,Ac as aA,wT as aB,BE as aC,PT as aD,Io as aa,ET as ab,cT as ac,Sl as ad,Ds as ae,ll as af,TT as ag,Wr as ah,dT as ai,ua as aj,xT as ak,_T as al,aT as am,n_ as an,C0 as ao,J as ap,vT as aq,ST as ar,c_ as as,yT as at,Dm as au,Xu as av,od as aw,mS as ax,Dt as ay,$T as az,Rt as b,hr as c,po as d,ii as e,bt as f,wn as g,fe as h,zE as i,mt as j,kT as k,OT as l,gT as m,ni as n,Ft as o,dS as p,Lm as q,tm as r,LT as s,Dn as t,Sa as u,gS as v,hT as w,ed as x,HT as y,Zr as z}; diff --git a/server/web/dist/assets/index-DSPQyv0Z.js b/server/web/dist/assets/index-DSPQyv0Z.js new file mode 100644 index 0000000..c0df7f2 --- /dev/null +++ b/server/web/dist/assets/index-DSPQyv0Z.js @@ -0,0 +1,28 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomeView-7rYMTqXg.js","assets/PageShell-Bv1Rpp4p.js","assets/SiteNav.vue_vue_type_script_setup_true_lang-DSt3Q6Wq.js","assets/PageShell-PYQzNiuf.css","assets/share-DQTp5ax3.js","assets/HomeView-DcN_X0wH.css","assets/PickupView-BgaFApjA.js","assets/LoginView-4Q37le_I.js","assets/auth-o4aHzrA6.js","assets/admin-IDpKsD_2.js","assets/LoginView-BgHqRIwi.css","assets/AdminLayout-CGpX2ckb.js","assets/FilesView-DT4FMKVX.js","assets/Pager.vue_vue_type_script_setup_true_lang-C7hYXz3z.js","assets/AuditView-CVXqXaCD.js","assets/AuditView-f2PBwbQe.css","assets/SettingsView-CYUiuF4c.js","assets/SettingsView-DwNwpsFG.css","assets/DocsView-DA7M6gnZ.js","assets/docsSource-CDKA_IVC.js","assets/markdown-B5D8JARp.js","assets/OpenApiView-DfEtzNyC.js","assets/swagger-CqkleIqs.js","assets/OpenApiView-BCH8BgeP.css","assets/NotFoundView-CNRxIBJl.js"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();function $l(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Se={},dr=[],Gt=()=>{},Fc=()=>!1,Jn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Qn=e=>e.startsWith("onUpdate:"),Be=Object.assign,Bl=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},zd=Object.prototype.hasOwnProperty,_e=(e,t)=>zd.call(e,t),oe=Array.isArray,To=e=>un(e)==="[object Map]",er=e=>un(e)==="[object Set]",Ta=e=>un(e)==="[object Date]",le=e=>typeof e=="function",we=e=>typeof e=="string",yt=e=>typeof e=="symbol",be=e=>e!==null&&typeof e=="object",Oc=e=>(be(e)||le(e))&&le(e.then)&&le(e.catch),Mc=Object.prototype.toString,un=e=>Mc.call(e),Ud=e=>un(e).slice(8,-1),Nc=e=>un(e)==="[object Object]",Zn=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Hr=$l(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ei=e=>{const t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},Vd=/-\w/g,ct=ei(e=>e.replace(Vd,t=>t.slice(1).toUpperCase())),jd=/\B([A-Z])/g,Ro=ei(e=>e.replace(jd,"-$1").toLowerCase()),ti=ei(e=>e.charAt(0).toUpperCase()+e.slice(1)),Di=ei(e=>e?`on${ti(e)}`:""),Vt=(e,t)=>!Object.is(e,t),In=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:o})},oi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Gd=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let Pa;const ri=()=>Pa||(Pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ni(e){if(oe(e)){const t={};for(let o=0;o{if(o){const r=o.split(Yd);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ii(e){let t="";if(we(e))t=e;else if(oe(e))for(let o=0;oPo(o,t))}const $c=e=>!!(e&&e.__v_isRef===!0),Dn=e=>we(e)?e:e==null?"":oe(e)||be(e)&&(e.toString===Mc||!le(e.toString))?$c(e)?Dn(e.value):JSON.stringify(e,Bc,2):String(e),Bc=(e,t)=>$c(t)?Bc(e,t.value):To(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,n],i)=>(o[Ri(r,i)+" =>"]=n,o),{})}:er(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>Ri(o))}:yt(t)?Ri(t):be(t)&&!oe(t)&&!Nc(t)?String(t):t,Ri=(e,t="")=>{var o;return yt(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};let He;class Wc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&He&&(He.active?(this.parent=He,this.index=(He.scopes||(He.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes){const r=this.scopes.slice();for(t=0,o=r.length;t0&&--this._on===0){if(He===this)He=this.prevScope;else{let t=He;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let o,r;for(o=0,r=this.effects.length;o0)return;if(Br){let t=Br;for(Br=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;$r;){let t=$r;for($r=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=o}}if(e)throw e}function Gc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Kc(e){let t,o=e.depsTail,r=o;for(;r;){const n=r.prevDep;r.version===-1?(r===o&&(o=n),Vl(r),op(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=o}function rl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Yc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Yc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kr)||(e.globalVersion=Kr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!rl(e))))return;e.flags|=2;const t=e.dep,o=Te,r=Nt;Te=e,Nt=!0;try{Gc(e);const n=e.fn(e._value);(t.version===0||Vt(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{Te=o,Nt=r,Kc(e),e.flags&=-3}}function Vl(e,t=!1){const{dep:o,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),o.subs===e&&(o.subs=r,!r&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)Vl(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function op(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Nt=!0;const qc=[];function so(){qc.push(Nt),Nt=!1}function co(){const e=qc.pop();Nt=e===void 0?!0:e}function Aa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=Te;Te=void 0;try{t()}finally{Te=o}}}let Kr=0;class rp{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class jl{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Te||!Nt||Te===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==Te)o=this.activeLink=new rp(Te,this),Te.deps?(o.prevDep=Te.depsTail,Te.depsTail.nextDep=o,Te.depsTail=o):Te.deps=Te.depsTail=o,Xc(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const r=o.nextDep;r.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=r),o.prevDep=Te.depsTail,o.nextDep=void 0,Te.depsTail.nextDep=o,Te.depsTail=o,Te.deps===o&&(Te.deps=r)}return o}trigger(t){this.version++,Kr++,this.notify(t)}notify(t){zl();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{Ul()}}}function Xc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Xc(r)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const Rn=new WeakMap,Jo=Symbol(""),nl=Symbol(""),Yr=Symbol("");function Ye(e,t,o){if(Nt&&Te){let r=Rn.get(e);r||Rn.set(e,r=new Map);let n=r.get(o);n||(r.set(o,n=new jl),n.map=r,n.key=o),n.track()}}function ro(e,t,o,r,n,i){const l=Rn.get(e);if(!l){Kr++;return}const a=s=>{s&&s.trigger()};if(zl(),t==="clear")l.forEach(a);else{const s=oe(e),c=s&&Zn(o);if(s&&o==="length"){const u=Number(r);l.forEach((f,d)=>{(d==="length"||d===Yr||!yt(d)&&d>=u)&&a(f)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),c&&a(l.get(Yr)),t){case"add":s?c&&a(l.get("length")):(a(l.get(Jo)),To(e)&&a(l.get(nl)));break;case"delete":s||(a(l.get(Jo)),To(e)&&a(l.get(nl)));break;case"set":To(e)&&a(l.get(Jo));break}}Ul()}function np(e,t){const o=Rn.get(e);return o&&o.get(t)}function ir(e){const t=ge(e);return t===e?t:(Ye(t,"iterate",Yr),vt(e)?t:t.map(kt))}function li(e){return Ye(e=ge(e),"iterate",Yr),e}function zt(e,t){return uo(e)?gr(lo(e)?kt(t):t):kt(t)}const ip={__proto__:null,[Symbol.iterator](){return Oi(this,Symbol.iterator,e=>zt(this,e))},concat(...e){return ir(this).concat(...e.map(t=>oe(t)?ir(t):t))},entries(){return Oi(this,"entries",e=>(e[1]=zt(this,e[1]),e))},every(e,t){return Xt(this,"every",e,t,void 0,arguments)},filter(e,t){return Xt(this,"filter",e,t,o=>o.map(r=>zt(this,r)),arguments)},find(e,t){return Xt(this,"find",e,t,o=>zt(this,o),arguments)},findIndex(e,t){return Xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xt(this,"findLast",e,t,o=>zt(this,o),arguments)},findLastIndex(e,t){return Xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mi(this,"includes",e)},indexOf(...e){return Mi(this,"indexOf",e)},join(e){return ir(this).join(e)},lastIndexOf(...e){return Mi(this,"lastIndexOf",e)},map(e,t){return Xt(this,"map",e,t,void 0,arguments)},pop(){return Ar(this,"pop")},push(...e){return Ar(this,"push",e)},reduce(e,...t){return wa(this,"reduce",e,t)},reduceRight(e,...t){return wa(this,"reduceRight",e,t)},shift(){return Ar(this,"shift")},some(e,t){return Xt(this,"some",e,t,void 0,arguments)},splice(...e){return Ar(this,"splice",e)},toReversed(){return ir(this).toReversed()},toSorted(e){return ir(this).toSorted(e)},toSpliced(...e){return ir(this).toSpliced(...e)},unshift(...e){return Ar(this,"unshift",e)},values(){return Oi(this,"values",e=>zt(this,e))}};function Oi(e,t,o){const r=li(e),n=r[t]();return r!==e&&!vt(e)&&(n._next=n.next,n.next=()=>{const i=n._next();return i.done||(i.value=o(i.value)),i}),n}const lp=Array.prototype;function Xt(e,t,o,r,n,i){const l=li(e),a=l!==e&&!vt(e),s=l[t];if(s!==lp[t]){const f=s.apply(e,i);return a?kt(f):f}let c=o;l!==e&&(a?c=function(f,d){return o.call(this,zt(e,f),d,e)}:o.length>2&&(c=function(f,d){return o.call(this,f,d,e)}));const u=s.call(l,c,r);return a&&n?n(u):u}function wa(e,t,o,r){const n=li(e),i=n!==e&&!vt(e);let l=o,a=!1;n!==e&&(i?(a=r.length===0,l=function(c,u,f){return a&&(a=!1,c=zt(e,c)),o.call(this,c,zt(e,u),f,e)}):o.length>3&&(l=function(c,u,f){return o.call(this,c,u,f,e)}));const s=n[t](l,...r);return a?zt(e,s):s}function Mi(e,t,o){const r=ge(e);Ye(r,"iterate",Yr);const n=r[t](...o);return(n===-1||n===!1)&&ai(o[0])?(o[0]=ge(o[0]),r[t](...o)):n}function Ar(e,t,o=[]){so(),zl();const r=ge(e)[t].apply(e,o);return Ul(),co(),r}const ap=$l("__proto__,__v_isRef,__isVue"),Jc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(yt));function sp(e){yt(e)||(e=String(e));const t=ge(this);return Ye(t,"has",e),t.hasOwnProperty(e)}class Qc{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,r){if(o==="__v_skip")return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!n;if(o==="__v_isReadonly")return n;if(o==="__v_isShallow")return i;if(o==="__v_raw")return r===(n?i?bp:ou:i?tu:eu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=oe(t);if(!n){let s;if(l&&(s=ip[o]))return s;if(o==="hasOwnProperty")return sp}const a=Reflect.get(t,o,Le(t)?t:r);if((yt(o)?Jc.has(o):ap(o))||(n||Ye(t,"get",o),i))return a;if(Le(a)){const s=l&&Zn(o)?a:a.value;return n&&be(s)?ll(s):s}return be(a)?n?ll(a):fn(a):a}}class Zc extends Qc{constructor(t=!1){super(!1,t)}set(t,o,r,n){let i=t[o];const l=oe(t)&&Zn(o);if(!this._isShallow){const c=uo(i);if(!vt(r)&&!uo(r)&&(i=ge(i),r=ge(r)),!l&&Le(i)&&!Le(r))return c||(i.value=r),!0}const a=l?Number(o)e,Cn=e=>Reflect.getPrototypeOf(e);function pp(e,t,o){return function(...r){const n=this.__v_raw,i=ge(n),l=To(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,c=n[e](...r),u=o?il:t?gr:kt;return!t&&Ye(i,"iterate",s?nl:Jo),Be(Object.create(c),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}}})}}function bn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mp(e,t){const o={get(n){const i=this.__v_raw,l=ge(i),a=ge(n);e||(Vt(n,a)&&Ye(l,"get",n),Ye(l,"get",a));const{has:s}=Cn(l),c=t?il:e?gr:kt;if(s.call(l,n))return c(i.get(n));if(s.call(l,a))return c(i.get(a));i!==l&&i.get(n)},get size(){const n=this.__v_raw;return!e&&Ye(ge(n),"iterate",Jo),n.size},has(n){const i=this.__v_raw,l=ge(i),a=ge(n);return e||(Vt(n,a)&&Ye(l,"has",n),Ye(l,"has",a)),n===a?i.has(n):i.has(n)||i.has(a)},forEach(n,i){const l=this,a=l.__v_raw,s=ge(a),c=t?il:e?gr:kt;return!e&&Ye(s,"iterate",Jo),a.forEach((u,f)=>n.call(i,c(u),c(f),l))}};return Be(o,e?{add:bn("add"),set:bn("set"),delete:bn("delete"),clear:bn("clear")}:{add(n){const i=ge(this),l=Cn(i),a=ge(n),s=!t&&!vt(n)&&!uo(n)?a:n;return l.has.call(i,s)||Vt(n,s)&&l.has.call(i,n)||Vt(a,s)&&l.has.call(i,a)||(i.add(s),ro(i,"add",s,s)),this},set(n,i){!t&&!vt(i)&&!uo(i)&&(i=ge(i));const l=ge(this),{has:a,get:s}=Cn(l);let c=a.call(l,n);c||(n=ge(n),c=a.call(l,n));const u=s.call(l,n);return l.set(n,i),c?Vt(i,u)&&ro(l,"set",n,i):ro(l,"add",n,i),this},delete(n){const i=ge(this),{has:l,get:a}=Cn(i);let s=l.call(i,n);s||(n=ge(n),s=l.call(i,n)),a&&a.call(i,n);const c=i.delete(n);return s&&ro(i,"delete",n,void 0),c},clear(){const n=ge(this),i=n.size!==0,l=n.clear();return i&&ro(n,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=pp(n,e,t)}),o}function Gl(e,t){const o=mp(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(_e(o,n)&&n in r?o:r,n,i)}const hp={get:Gl(!1,!1)},gp={get:Gl(!1,!0)},Cp={get:Gl(!0,!1)};const eu=new WeakMap,tu=new WeakMap,ou=new WeakMap,bp=new WeakMap;function xp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fn(e){return uo(e)?e:Kl(e,!1,up,hp,eu)}function ru(e){return Kl(e,!1,dp,gp,tu)}function ll(e){return Kl(e,!0,fp,Cp,ou)}function Kl(e,t,o,r,n){if(!be(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=n.get(e);if(i)return i;const l=xp(Ud(e));if(l===0)return e;const a=new Proxy(e,l===2?r:o);return n.set(e,a),a}function lo(e){return uo(e)?lo(e.__v_raw):!!(e&&e.__v_isReactive)}function uo(e){return!!(e&&e.__v_isReadonly)}function vt(e){return!!(e&&e.__v_isShallow)}function ai(e){return e?!!e.__v_raw:!1}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function qr(e){return!_e(e,"__v_skip")&&Object.isExtensible(e)&&kc(e,"__v_skip",!0),e}const kt=e=>be(e)?fn(e):e,gr=e=>be(e)?ll(e):e;function Le(e){return e?e.__v_isRef===!0:!1}function mt(e){return nu(e,!1)}function Yl(e){return nu(e,!0)}function nu(e,t){return Le(e)?e:new _p(e,t)}class _p{constructor(t,o){this.dep=new jl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:ge(t),this._value=o?t:kt(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,r=this.__v_isShallow||vt(t)||uo(t);t=r?t:ge(t),Vt(t,o)&&(this._rawValue=t,this._value=r?t:kt(t),this.dep.trigger())}}function bt(e){return Le(e)?e.value:e}const vp={get:(e,t,o)=>t==="__v_raw"?e:bt(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const n=e[t];return Le(n)&&!Le(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function iu(e){return lo(e)?e:new Proxy(e,vp)}function Sp(e){const t=oe(e)?new Array(e.length):{};for(const o in e)t[o]=lu(e,o);return t}class yp{constructor(t,o,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=yt(o)?o:String(o),this._raw=ge(t);let n=!0,i=t;if(!oe(t)||yt(this._key)||!Zn(this._key))do n=!ai(i)||vt(i);while(n&&(i=i.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=bt(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Le(this._raw[this._key])){const o=this._object[this._key];if(Le(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return np(this._raw,this._key)}}class Ep{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function aT(e,t,o){return Le(e)?e:le(e)?new Ep(e):be(e)&&arguments.length>1?lu(e,t,o):mt(e)}function lu(e,t,o){return new yp(e,t,o)}class Tp{constructor(t,o,r){this.fn=t,this.setter=o,this._value=void 0,this.dep=new jl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Te!==this)return jc(this,!0),!0}get value(){const t=this.dep.track();return Yc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Pp(e,t,o=!1){let r,n;return le(e)?r=e:(r=e.get,n=e.set),new Tp(r,n,o)}const xn={},Fn=new WeakMap;let Uo;function Ip(e,t=!1,o=Uo){if(o){let r=Fn.get(o);r||Fn.set(o,r=[]),r.push(e)}}function Ap(e,t,o=Se){const{immediate:r,deep:n,once:i,scheduler:l,augmentJob:a,call:s}=o,c=y=>n?y:vt(y)||n===!1||n===0?no(y,1):no(y);let u,f,d,p,g=!1,C=!1;if(Le(e)?(f=()=>e.value,g=vt(e)):lo(e)?(f=()=>c(e),g=!0):oe(e)?(C=!0,g=e.some(y=>lo(y)||vt(y)),f=()=>e.map(y=>{if(Le(y))return y.value;if(lo(y))return c(y);if(le(y))return s?s(y,2):y()})):le(e)?t?f=s?()=>s(e,2):e:f=()=>{if(d){so();try{d()}finally{co()}}const y=Uo;Uo=u;try{return s?s(e,3,[p]):e(p)}finally{Uo=y}}:f=Gt,t&&n){const y=f,w=n===!0?1/0:n;f=()=>no(y(),w)}const S=zc(),E=()=>{u.stop(),S&&S.active&&Bl(S.effects,u)};if(i&&t){const y=t;t=(...w)=>{const L=y(...w);return E(),L}}let T=C?new Array(e.length).fill(xn):xn;const v=y=>{if(!(!(u.flags&1)||!u.dirty&&!y))if(t){const w=u.run();if(y||n||g||(C?w.some((L,D)=>Vt(L,T[D])):Vt(w,T))){d&&d();const L=Uo;Uo=u;try{const D=[w,T===xn?void 0:C&&T[0]===xn?[]:T,p];T=w,s?s(t,3,D):t(...D)}finally{Uo=L}}}else u.run()};return a&&a(v),u=new Uc(f),u.scheduler=l?()=>l(v,!1):v,p=y=>Ip(y,!1,u),d=u.onStop=()=>{const y=Fn.get(u);if(y){if(s)s(y,4);else for(const w of y)w();Fn.delete(u)}},t?r?v(!0):T=u.run():l?l(v.bind(null,!0),!0):u.run(),E.pause=u.pause.bind(u),E.resume=u.resume.bind(u),E.stop=E,E}function no(e,t=1/0,o){if(t<=0||!be(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,Le(e))no(e.value,t,o);else if(oe(e))for(let r=0;r{no(r,t,o)});else if(Nc(e)){for(const r in e)no(e[r],t,o);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&no(e[r],t,o)}return e}function dn(e,t,o,r){try{return r?e(...r):e()}catch(n){si(n,t,o)}}function wt(e,t,o,r){if(le(e)){const n=dn(e,t,o,r);return n&&Oc(n)&&n.catch(i=>{si(i,t,o)}),n}if(oe(e)){const n=[];for(let i=0;i>>1,n=at[r],i=Xr(n);i=Xr(o)?at.push(e):at.splice(Lp(t),0,e),e.flags|=1,su()}}function su(){On||(On=au.then(uu))}function Dp(e){if(!oe(e))So&&e.id===-1?So.splice(sr+1,0,e):e.flags&1||(pr.push(e),e.flags|=1);else for(let t=0;tXr(o)-Xr(r));if(pr.length=0,So){for(let o=0;oe.id==null?e.flags&2?-1:1/0:e.id;function uu(e){try{for(Wt=0;Wt{r._d&&$n(-1);const i=Mn(t),l=ao.length;let a;try{a=e(...n)}finally{for(let s=ao.length;s>l;s--)oa();Mn(i),r._d&&$n(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function sT(e,t){if(Ve===null)return e;const o=hi(Ve),r=e.dirs||(e.dirs=[]);for(let n=0;n1)return o&&le(t)?t.call(r&&r.proxy):t}}function Rp(){return!!(Ao()||Qo)}const Fp=Symbol.for("v-scx"),Op=()=>Ze(Fp);function cT(e,t){return Xl(e,null,t)}function St(e,t,o){return Xl(e,t,o)}function Xl(e,t,o=Se){const{immediate:r,deep:n,flush:i,once:l}=o,a=Be({},o),s=t&&r||!t&&i!=="post";let c;if(on){if(i==="sync"){const p=Op();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!s){const p=()=>{};return p.stop=Gt,p.resume=Gt,p.pause=Gt,p}}const u=Qe;a.call=(p,g,C)=>wt(p,u,g,C);let f=!1;i==="post"?a.scheduler=p=>{nt(p,u&&u.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(p,g)=>{g?p():ql(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=Ap(e,t,a);return on&&(c?c.push(d):s&&d()),d}function Mp(e,t,o){const r=this.proxy,n=we(e)?e.includes(".")?pu(r,e):()=>r[e]:e.bind(r,r);let i;le(t)?i=t:(i=t.handler,o=t);const l=mn(this),a=Xl(n,i.bind(r),o);return l(),a}function pu(e,t){const o=t.split(".");return()=>{let r=e;for(let n=0;ne.__isTeleport,Vo=e=>e&&(e.disabled||e.disabled===""),Np=e=>e&&(e.defer||e.defer===""),Da=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ra=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,al=(e,t)=>{const o=e&&e.to;return we(o)?t?t(o):null:o},kp={name:"Teleport",__isTeleport:!0,process(e,t,o,r,n,i,l,a,s,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:g,createText:C,createComment:S,parentNode:E}}=c,T=Vo(t.props);let{dynamicChildren:v}=t;const y=(D,F,P)=>{D.shapeFlag&16&&u(D.children,F,P,n,i,l,a,s)},w=(D=t)=>{const F=Vo(D.props),P=D.target=al(D.props,g),U=sl(P,D,C,p);P&&(l!=="svg"&&Da(P)?l="svg":l!=="mathml"&&Ra(P)&&(l="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(P),F||(y(D,P,U),Or(D,!1)))},L=D=>{const F=()=>{if(xo.get(D)===F){if(xo.delete(D),Vo(D.props)){const P=E(D.el)||o;y(D,P,D.anchor),Or(D,!0)}w(D)}};xo.set(D,F),nt(F,i)};if(e==null){const D=t.el=C(""),F=t.anchor=C("");if(p(D,o,r),p(F,o,r),Np(t.props)||i&&i.pendingBranch){L(t);return}T&&(y(t,o,F),Or(t,!0)),w()}else{t.el=e.el;const D=t.anchor=e.anchor,F=xo.get(e);if(F){F.flags|=8,xo.delete(e),L(t);return}t.targetStart=e.targetStart;const P=t.target=e.target,U=t.targetAnchor=e.targetAnchor,X=Vo(e.props),k=X?o:P,Q=X?D:U;if(l==="svg"||Da(P)?l="svg":(l==="mathml"||Ra(P))&&(l="mathml"),v?(d(e.dynamicChildren,v,k,n,i,l,a),ta(e,t,!0)):s||f(e,t,k,Q,n,i,l,a,!1),T)X?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):_n(t,o,D,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const me=al(t.props,g);me&&(t.target=me,_n(t,me,null,c,0))}else X&&_n(t,P,U,c,1);Or(t,T)}},remove(e,t,o,{um:r,o:{remove:n}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:c,targetAnchor:u,target:f,props:d}=e,p=Vo(d),g=i||!p,C=xo.get(e);if(C&&(C.flags|=8,xo.delete(e)),f&&(n(c),n(u)),i&&n(s),!C&&(p||f)&&l&16)for(let S=0;S{e.isMounted=!0}),Su(()=>{e.isUnmounting=!0}),e}const Pt=[Function,Array],hu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Pt,onEnter:Pt,onAfterEnter:Pt,onEnterCancelled:Pt,onBeforeLeave:Pt,onLeave:Pt,onAfterLeave:Pt,onLeaveCancelled:Pt,onBeforeAppear:Pt,onAppear:Pt,onAfterAppear:Pt,onAppearCancelled:Pt},gu=e=>{const t=e.subTree;return t.component?gu(t.component):t},Bp={name:"BaseTransition",props:hu,setup(e,{slots:t}){const o=Ao(),r=$p();return()=>{const n=t.default&&xu(t.default(),!0),i=n&&n.length?Cu(n):o.subTree?wn():void 0;if(!i)return;const l=ge(e),{mode:a}=l;if(r.isLeaving)return Ni(i);const s=Nn(i);if(!s)return Ni(i);let c=cl(s,l,r,o,f=>c=f);s.type!==Je&&Jr(s,c);let u=o.subTree&&Nn(o.subTree);if(u&&u.type!==Je&&!jo(u,s)&&gu(o).type!==Je){let f=cl(u,l,r,o);if(Jr(u,f),a==="out-in"&&s.type!==Je)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,o.job.flags&8||o.update(),delete f.afterLeave,u=void 0},Ni(i);a==="in-out"&&s.type!==Je?f.delayLeave=(d,p,g)=>{const C=bu(r,u);C[String(u.key)]=u,d[It]=()=>{p(),d[It]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{g(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function Cu(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Je){t=o;break}}return t}const Wp=Bp;function bu(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function cl(e,t,o,r,n){const{appear:i,mode:l,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:g,onLeaveCancelled:C,onBeforeAppear:S,onAppear:E,onAfterAppear:T,onAppearCancelled:v}=t,y=String(e.key),w=bu(o,e),L=(P,U)=>{P&&wt(P,r,9,U)},D=(P,U)=>{const X=U[1];L(P,U),oe(P)?P.every(k=>k.length<=1)&&X():P.length<=1&&X()},F={mode:l,persisted:a,beforeEnter(P){let U=s;if(!o.isMounted)if(i)U=S||s;else return;P[It]&&P[It](!0);const X=w[y];X&&jo(e,X)&&X.el[It]&&X.el[It](),L(U,[P])},enter(P){if(w[y]===e)return;let U=c,X=u,k=f;if(!o.isMounted)if(i)U=E||c,X=T||u,k=v||f;else return;let Q=!1;P[wr]=ye=>{Q||(Q=!0,ye?L(k,[P]):L(X,[P]),F.delayedLeave&&F.delayedLeave(),P[wr]=void 0)};const me=P[wr].bind(null,!1);U?D(U,[P,me]):me()},leave(P,U){const X=String(e.key);if(P[wr]&&P[wr](!0),o.isUnmounting)return U();L(d,[P]);let k=!1;P[It]=me=>{k||(k=!0,U(),me?L(C,[P]):L(g,[P]),P[It]=void 0,w[X]===e&&delete w[X])};const Q=P[It].bind(null,!1);w[X]=e,p?D(p,[P,Q]):Q()},clone(P){const U=cl(P,t,o,r,n);return n&&n(U),U}};return F}function Ni(e){if(fi(e))return e=Io(e),e.children=null,e}function Nn(e){if(!fi(e))return ui(e.type)&&e.children?Cu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&le(o.default))return o.default()}}function Jr(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const o=e.component.subTree;Jr(ui(o.type)&&Nn(o)||o,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function xu(e,t=!1,o){let r=[],n=0;for(let i=0;i1)for(let i=0;izr(C,t&&(oe(t)?t[S]:t),o,r,n));return}if(mr(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&zr(e,t,o,r.component.subTree);return}const i=r.shapeFlag&4?hi(r.component):r.el,l=n?null:i,{i:a,r:s}=e,c=t&&t.r,u=a.refs===Se?a.refs={}:a.refs,f=a.setupState,d=ge(f),p=f===Se?Fc:C=>Fa(u,C)?!1:_e(d,C),g=(C,S)=>!(S&&Fa(u,S));if(c!=null&&c!==s){if(Oa(t),we(c))u[c]=null,p(c)&&(f[c]=null);else if(Le(c)){const C=t;g(c,C.k)&&(c.value=null),C.k&&(u[C.k]=null)}}if(le(s))dn(s,a,12,[l,u]);else{const C=we(s),S=Le(s);if(C||S){const E=()=>{if(e.f){const T=C?p(s)?f[s]:u[s]:g()||!e.k?s.value:u[e.k];if(n)oe(T)&&Bl(T,i);else if(oe(T))T.includes(i)||T.push(i);else if(C)u[s]=[i],p(s)&&(f[s]=u[s]);else{const v=[i];g(s,e.k)&&(s.value=v),e.k&&(u[e.k]=v)}}else C?(u[s]=l,p(s)&&(f[s]=l)):S&&(g(s,e.k)&&(s.value=l),e.k&&(u[e.k]=l))};if(l){const T=()=>{E(),kn.delete(e)};T.id=-1,kn.set(e,T),nt(T,o)}else Oa(e),E()}}}function Oa(e){const t=kn.get(e);t&&(t.flags|=8,kn.delete(e))}ri().requestIdleCallback;ri().cancelIdleCallback;const mr=e=>!!e.type.__asyncLoader,fi=e=>e.type.__isKeepAlive;function zp(e,t){vu(e,"a",t)}function Up(e,t){vu(e,"da",t)}function vu(e,t,o=Qe){const r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(di(t,r,o),o){let n=o.parent;for(;n&&n.parent;)fi(n.parent.vnode)&&Vp(r,t,o,n),n=n.parent}}function Vp(e,t,o,r){const n=di(t,e,r,!0);Ql(()=>{Bl(r[t],n)},o)}function di(e,t,o=Qe,r=!1){if(o){const n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{so();const a=mn(o),s=wt(t,o,e,l);return a(),co(),s});return r?n.unshift(i):n.push(i),i}}const mo=e=>(t,o=Qe)=>{(!on||e==="sp")&&di(e,(...r)=>t(...r),o)},Jl=mo("bm"),pi=mo("m"),jp=mo("bu"),Gp=mo("u"),Su=mo("bum"),Ql=mo("um"),Kp=mo("sp"),Yp=mo("rtg"),qp=mo("rtc");function Xp(e,t=Qe){di("ec",e,t)}const Jp="components";function Qp(e,t){return em(Jp,e,!0,t)||e}const Zp=Symbol.for("v-ndc");function em(e,t,o=!0,r=!1){const n=Ve||Qe;if(n){const i=n.type;{const a=$m(i,!1);if(a&&(a===t||a===ct(t)||a===ti(ct(t))))return i}const l=Ma(n[e]||i[e],t)||Ma(n.appContext[e],t);return!l&&r?i:l}}function Ma(e,t){return e&&(e[t]||e[ct(t)]||e[ti(ct(t))])}function tm(e,t,o,r){let n;const i=o,l=oe(e);if(l||we(e)){const a=l&&lo(e);let s=!1,c=!1;a&&(s=!vt(e),c=uo(e),e=li(e)),n=new Array(e.length);for(let u=0,f=e.length;ut(a,s,void 0,i));else{const a=Object.keys(e);n=new Array(a.length);for(let s=0,c=a.length;s0;return Ft(),Zr(qe,null,[je("slot",c,r)],u?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const a=ao.length;Ft();let s;try{const c=l&&yu(l(o)),u=o.key||i||c&&c.key;s=Zr(qe,{key:(u&&!yt(u)?u:`_${t}`)+(!c&&r?"_fb":"")},c||(r?r():[]),c&&e._===1?64:-2)}catch(c){for(let u=ao.length;u>a;u--)oa();throw c}finally{l&&l._c&&(l._d=!0)}return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),s}function yu(e){return e.some(t=>en(t)?!(t.type===Je||t.type===qe&&!yu(t.children)):!0)?e:null}const ul=e=>e?zu(e)?hi(e):ul(e.parent):null,Ur=Be(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ul(e.parent),$root:e=>ul(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Tu(e),$forceUpdate:e=>e.f||(e.f=()=>{ql(e.update)}),$nextTick:e=>e.n||(e.n=ci.bind(e.proxy)),$watch:e=>Mp.bind(e)}),ki=(e,t)=>e!==Se&&!e.__isScriptSetup&&_e(e,t),om={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:r,data:n,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const d=l[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(ki(r,t))return l[t]=1,r[t];if(n!==Se&&_e(n,t))return l[t]=2,n[t];if(_e(i,t))return l[t]=3,i[t];if(o!==Se&&_e(o,t))return l[t]=4,o[t];fl&&(l[t]=0)}}const c=Ur[t];let u,f;if(c)return t==="$attrs"&&Ye(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(o!==Se&&_e(o,t))return l[t]=4,o[t];if(f=s.config.globalProperties,_e(f,t))return f[t]},set({_:e},t,o){const{data:r,setupState:n,ctx:i}=e;return ki(n,t)?(n[t]=o,!0):r!==Se&&_e(r,t)?(r[t]=o,!0):_e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,props:i,type:l}},a){let s;return!!(o[a]||e!==Se&&a[0]!=="$"&&_e(e,a)||ki(t,a)||_e(i,a)||_e(r,a)||_e(Ur,a)||_e(n.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:_e(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function Na(e){return oe(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let fl=!0;function rm(e){const t=Tu(e),o=e.proxy,r=e.ctx;fl=!1,t.beforeCreate&&ka(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:l,watch:a,provide:s,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:g,activated:C,deactivated:S,beforeDestroy:E,beforeUnmount:T,destroyed:v,unmounted:y,render:w,renderTracked:L,renderTriggered:D,errorCaptured:F,serverPrefetch:P,expose:U,inheritAttrs:X,components:k,directives:Q,filters:me}=t;if(c&&nm(c,r,null),l)for(const ne in l){const de=l[ne];le(de)&&(r[ne]=de.bind(o))}if(n){const ne=n.call(o,o);be(ne)&&(e.data=fn(ne))}if(fl=!0,i)for(const ne in i){const de=i[ne],tt=le(de)?de.bind(o,o):le(de.get)?de.get.bind(o,o):Gt,ft=!le(de)&&le(de.set)?de.set.bind(o):Gt,Re=fe({get:tt,set:ft});Object.defineProperty(r,ne,{enumerable:!0,configurable:!0,get:()=>Re.value,set:Fe=>Re.value=Fe})}if(a)for(const ne in a)Eu(a[ne],r,o,ne);if(s){const ne=le(s)?s.call(o):s;Reflect.ownKeys(ne).forEach(de=>{Wr(de,ne[de])})}u&&ka(u,e,"c");function se(ne,de){oe(de)?de.forEach(tt=>ne(tt.bind(o))):de&&ne(de.bind(o))}if(se(Jl,f),se(pi,d),se(jp,p),se(Gp,g),se(zp,C),se(Up,S),se(Xp,F),se(qp,L),se(Yp,D),se(Su,T),se(Ql,y),se(Kp,P),oe(U))if(U.length){const ne=e.exposed||(e.exposed={});U.forEach(de=>{Object.defineProperty(ne,de,{get:()=>o[de],set:tt=>o[de]=tt,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===Gt&&(e.render=w),X!=null&&(e.inheritAttrs=X),k&&(e.components=k),Q&&(e.directives=Q),P&&_u(e)}function nm(e,t,o=Gt){oe(e)&&(e=dl(e));for(const r in e){const n=e[r];let i;be(n)?"default"in n?i=Ze(n.from||r,n.default,!0):i=Ze(n.from||r):i=Ze(n),Le(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[r]=i}}function ka(e,t,o){wt(oe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function Eu(e,t,o,r){let n=r.includes(".")?pu(o,r):()=>o[r];if(we(e)){const i=t[e];le(i)&&St(n,i)}else if(le(e))St(n,e.bind(o));else if(be(e))if(oe(e))e.forEach(i=>Eu(i,t,o,r));else{const i=le(e.handler)?e.handler.bind(o):t[e.handler];le(i)&&St(n,i,e)}}function Tu(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!n.length&&!o&&!r?s=t:(s={},n.length&&n.forEach(c=>Hn(s,c,l,!0)),Hn(s,t,l)),be(t)&&i.set(t,s),s}function Hn(e,t,o,r=!1){const{mixins:n,extends:i}=t;i&&Hn(e,i,o,!0),n&&n.forEach(l=>Hn(e,l,o,!0));for(const l in t)if(!(r&&l==="expose")){const a=im[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const im={data:Ha,props:$a,emits:$a,methods:Mr,computed:Mr,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:Mr,directives:Mr,watch:am,provide:Ha,inject:lm};function Ha(e,t){return t?e?function(){return Be(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function lm(e,t){return Mr(dl(e),dl(t))}function dl(e){if(oe(e)){const t={};for(let o=0;ot==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ct(t)}Modifiers`]||e[`${Ro(t)}Modifiers`];function fm(e,t,...o){if(e.isUnmounted)return;const r=e.vnode.props||Se;let n=o;const i=t.startsWith("update:"),l=i&&um(r,t.slice(7));l&&(l.trim&&(n=o.map(u=>we(u)?u.trim():u)),l.number&&(n=n.map(oi)));let a,s=r[a=Di(t)]||r[a=Di(ct(t))];!s&&i&&(s=r[a=Di(Ro(t))]),s&&wt(s,e,6,n);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,wt(c,e,6,n)}}const dm=new WeakMap;function Iu(e,t,o=!1){const r=o?dm:t.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let l={},a=!1;if(!le(e)){const s=c=>{const u=Iu(c,t,!0);u&&(a=!0,Be(l,u))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(be(e)&&r.set(e,null),null):(oe(i)?i.forEach(s=>l[s]=null):Be(l,i),be(e)&&r.set(e,l),l)}function mi(e,t){return!e||!Jn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),_e(e,t[0].toLowerCase()+t.slice(1))||_e(e,Ro(t))||_e(e,t))}function Ba(e){const{type:t,vnode:o,proxy:r,withProxy:n,propsOptions:[i],slots:l,attrs:a,emit:s,render:c,renderCache:u,props:f,data:d,setupState:p,ctx:g,inheritAttrs:C}=e,S=Mn(e);let E,T;try{if(o.shapeFlag&4){const y=n||r,w=y;E=Ut(c.call(w,y,u,f,p,d,g)),T=a}else{const y=t;E=Ut(y.length>1?y(f,{attrs:a,slots:l,emit:s}):y(f,null)),T=t.props?a:pm(a)}}catch(y){ao.length=0,si(y,e,1),E=je(Je)}let v=E;if(T&&C!==!1){const y=Object.keys(T),{shapeFlag:w}=v;y.length&&w&7&&(i&&y.some(Qn)&&(T=mm(T,i)),v=Io(v,T,!1,!0))}if(o.dirs&&(v=Io(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(o.dirs):o.dirs),o.transition){const y=ui(v.type)&&Nn(v)||v;Jr(y,o.transition)}return E=v,Mn(S),E}const pm=e=>{let t;for(const o in e)(o==="class"||o==="style"||Jn(o))&&((t||(t={}))[o]=e[o]);return t},mm=(e,t)=>{const o={};for(const r in e)(!Qn(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function hm(e,t,o){const{props:r,children:n,component:i}=e,{props:l,children:a,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return r?Wa(r,l,c):!!l;if(s&8){const u=t.dynamicProps;for(let f=0;fObject.create(wu),Du=e=>Object.getPrototypeOf(e)===wu;function Cm(e,t,o,r=!1){const n={},i=Lu();e.propsDefaults=Object.create(null),Ru(e,t,n,i);for(const l in e.propsOptions[0])l in n||(n[l]=void 0);o?e.props=r?n:ru(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function bm(e,t,o,r){const{props:n,attrs:i,vnode:{patchFlag:l}}=e,a=ge(n),[s]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[d,p]=Fu(f,t,!0);Be(l,d),p&&a.push(...p)};!o&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!s)return be(e)&&r.set(e,dr),dr;if(oe(i))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",ea=e=>oe(e)?e.map(Ut):[Ut(e)],_m=(e,t,o)=>{if(t._n)return t;const r=du((...n)=>ea(t(...n)),o);return r._c=!1,r},Ou=(e,t,o)=>{const r=e._ctx;for(const n in e){if(Zl(n))continue;const i=e[n];if(le(i))t[n]=_m(n,i,r);else if(i!=null){const l=ea(i);t[n]=()=>l}}},Mu=(e,t)=>{const o=ea(t);e.slots.default=()=>o},Nu=(e,t,o)=>{for(const r in t)(o||!Zl(r))&&(e[r]=t[r])},vm=(e,t,o)=>{const r=e.slots=Lu();if(e.vnode.shapeFlag&32){const n=t._;n?(Nu(r,t,o),o&&kc(r,"_",n,!0)):Ou(t,r)}else t&&Mu(e,t)},Sm=(e,t,o)=>{const{vnode:r,slots:n}=e;let i=!0,l=Se;if(r.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:Nu(n,t,o):(i=!t.$stable,Ou(t,n)),l=t}else t&&(Mu(e,t),l={default:1});if(i)for(const a in n)!Zl(a)&&l[a]==null&&delete n[a]},nt=Im;function ym(e){return Em(e)}function Em(e,t){const o=ri();o.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:l,createText:a,createComment:s,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=Gt,insertStaticContent:g}=e,C=(b,_,x,R=null,$=null,M=null,V=void 0,z=null,m=!!_.dynamicChildren)=>{if(b===_)return;b&&!jo(b,_)&&(R=H(b),Fe(b,$,M,!0),b=null),_.patchFlag===-2&&(m=!1,_.dynamicChildren=null);const{type:h,ref:A,shapeFlag:O}=_;switch(h){case pn:S(b,_,x,R);break;case Je:E(b,_,x,R);break;case $i:b==null&&T(_,x,R,V);break;case qe:k(b,_,x,R,$,M,V,z,m);break;default:O&1?w(b,_,x,R,$,M,V,z,m):O&6?Q(b,_,x,R,$,M,V,z,m):(O&64||O&128)&&h.process(b,_,x,R,$,M,V,z,m,ee)}A!=null&&$?zr(A,b&&b.ref,M,_||b,!_):A==null&&b&&b.ref!=null&&zr(b.ref,null,M,b,!0)},S=(b,_,x,R)=>{if(b==null)r(_.el=a(_.children),x,R);else{const $=_.el=b.el;_.children!==b.children&&c($,_.children)}},E=(b,_,x,R)=>{b==null?r(_.el=s(_.children||""),x,R):_.el=b.el},T=(b,_,x,R)=>{[b.el,b.anchor]=g(b.children,_,x,R,b.el,b.anchor)},v=({el:b,anchor:_},x,R)=>{let $;for(;b&&b!==_;)$=d(b),r(b,x,R),b=$;r(_,x,R)},y=({el:b,anchor:_})=>{let x;for(;b&&b!==_;)x=d(b),n(b),b=x;n(_)},w=(b,_,x,R,$,M,V,z,m)=>{if(_.type==="svg"?V="svg":_.type==="math"&&(V="mathml"),b==null)L(_,x,R,$,M,V,z,m);else{const h=b.el&&b.el._isVueCE?b.el:null;try{h&&h._beginPatch(),P(b,_,$,M,V,z,m)}finally{h&&h._endPatch()}}},L=(b,_,x,R,$,M,V,z)=>{let m,h;const{props:A,shapeFlag:O,transition:j,dirs:B}=b;if(m=b.el=l(b.type,M,A&&A.is,A),O&8?u(m,b.children):O&16&&F(b.children,m,null,R,$,Hi(b,M),V,z),B&&ko(b,null,R,"created"),D(m,b,b.scopeId,V,R),A){for(const N in A)N!=="value"&&!Hr(N)&&i(m,N,null,A[N],M,R);"value"in A&&i(m,"value",null,A.value,M),(h=A.onVnodeBeforeMount)&&Bt(h,R,b)}B&&ko(b,null,R,"beforeMount");const I=Tm($,j);I&&j.beforeEnter(m),r(m,_,x),((h=A&&A.onVnodeMounted)||I||B)&&nt(()=>{h&&Bt(h,R,b),I&&j.enter(m),B&&ko(b,null,R,"mounted")},$)},D=(b,_,x,R,$)=>{if(x&&p(b,x),R)for(let M=0;M{for(let h=m;h{const z=_.el=b.el;let{patchFlag:m,dynamicChildren:h,dirs:A}=_;m|=b.patchFlag&16;const O=b.props||Se,j=_.props||Se;let B;if(x&&Ho(x,!1),(B=j.onVnodeBeforeUpdate)&&Bt(B,x,_,b),A&&ko(_,b,x,"beforeUpdate"),x&&Ho(x,!0),h&&(!b.dynamicChildren||b.dynamicChildren.length!==h.length)&&(m=0,V=!1,h=null),(O.innerHTML&&j.innerHTML==null||O.textContent&&j.textContent==null)&&u(z,""),h?U(b.dynamicChildren,h,z,x,R,Hi(_,$),M):V||de(b,_,z,null,x,R,Hi(_,$),M,!1),m>0){if(m&16)X(z,O,j,x,$);else if(m&2&&O.class!==j.class&&i(z,"class",null,j.class,$),m&4&&i(z,"style",O.style,j.style,$),m&8){const I=_.dynamicProps;for(let N=0;N{B&&Bt(B,x,_,b),A&&ko(_,b,x,"updated")},R)},U=(b,_,x,R,$,M,V)=>{for(let z=0;z<_.length;z++){const m=b[z],h=_[z],A=m.el&&(m.type===qe||!jo(m,h)||m.shapeFlag&198)?f(m.el):x;C(m,h,A,null,R,$,M,V,!0)}},X=(b,_,x,R,$)=>{if(_!==x){if(_!==Se)for(const M in _)!Hr(M)&&!(M in x)&&i(b,M,_[M],null,$,R);for(const M in x){if(Hr(M))continue;const V=x[M],z=_[M];V!==z&&M!=="value"&&i(b,M,z,V,$,R)}"value"in x&&i(b,"value",_.value,x.value,$)}},k=(b,_,x,R,$,M,V,z,m)=>{const h=_.el=b?b.el:a(""),A=_.anchor=b?b.anchor:a("");let{patchFlag:O,dynamicChildren:j,slotScopeIds:B}=_;B&&(z=z?z.concat(B):B),b==null?(r(h,x,R),r(A,x,R),F(_.children||[],x,A,$,M,V,z,m)):O>0&&O&64&&j&&b.dynamicChildren&&b.dynamicChildren.length===j.length?(U(b.dynamicChildren,j,x,$,M,V,z),(_.key!=null||$&&_===$.subTree)&&ta(b,_,!0)):de(b,_,x,A,$,M,V,z,m)},Q=(b,_,x,R,$,M,V,z,m)=>{_.slotScopeIds=z,b==null?_.shapeFlag&512?$.ctx.activate(_,x,R,V,m):me(_,x,R,$,M,V,m):ye(b,_,m)},me=(b,_,x,R,$,M,V)=>{const z=b.component=Om(b,R,$);if(fi(b)&&(z.ctx.renderer=ee),Mm(z,!1,V),z.asyncDep){if($&&$.registerDep(z,se,V),!b.el){const m=z.subTree=je(Je);E(null,m,_,x),b.placeholder=m.el}}else se(z,b,_,x,$,M,V)},ye=(b,_,x)=>{const R=_.component=b.component;if(hm(b,_,x))if(R.asyncDep&&!R.asyncResolved){ne(R,_,x);return}else R.next=_,R.update();else _.el=b.el,R.vnode=_},se=(b,_,x,R,$,M,V)=>{const z=()=>{if(b.isMounted){let{next:O,bu:j,u:B,parent:I,vnode:N}=b;{const Ue=ku(b);if(Ue){O&&(O.el=N.el,ne(b,O,V)),Ue.asyncDep.then(()=>{nt(()=>{b.isUnmounted||h()},$)});return}}let te=O,ce;Ho(b,!1),O?(O.el=N.el,ne(b,O,V)):O=N,j&&In(j),(ce=O.props&&O.props.onVnodeBeforeUpdate)&&Bt(ce,I,O,N),Ho(b,!0);const Ee=Ba(b),ot=b.subTree;b.subTree=Ee,C(ot,Ee,f(ot.el),H(ot),b,$,M),O.el=Ee.el,te===null&&gm(b,Ee.el),B&&nt(B,$),(ce=O.props&&O.props.onVnodeUpdated)&&nt(()=>Bt(ce,I,O,N),$)}else{let O;const{el:j,props:B}=_,{bm:I,m:N,parent:te,root:ce,type:Ee}=b,ot=mr(_);Ho(b,!1),I&&In(I),!ot&&(O=B&&B.onVnodeBeforeMount)&&Bt(O,te,_),Ho(b,!0);{ce.ce&&ce.ce._hasShadowRoot()&&ce.ce._injectChildStyle(Ee,b.parent?b.parent.type:void 0);const Ue=b.subTree=Ba(b);C(null,Ue,x,R,b,$,M),_.el=Ue.el}if(N&&nt(N,$),!ot&&(O=B&&B.onVnodeMounted)){const Ue=_;nt(()=>Bt(O,te,Ue),$)}(_.shapeFlag&256||te&&mr(te.vnode)&&te.vnode.shapeFlag&256)&&b.a&&nt(b.a,$),b.isMounted=!0,_=x=R=null}};b.scope.on();const m=b.effect=new Uc(z);b.scope.off();const h=b.update=m.run.bind(m),A=b.job=m.runIfDirty.bind(m);A.i=b,A.id=b.uid,m.scheduler=()=>ql(A),Ho(b,!0),h()},ne=(b,_,x)=>{_.component=b;const R=b.vnode.props;b.vnode=_,b.next=null,bm(b,_.props,R,x),Sm(b,_.children,x),so(),La(b),co()},de=(b,_,x,R,$,M,V,z,m=!1)=>{const h=b&&b.children,A=b?b.shapeFlag:0,O=_.children,{patchFlag:j,shapeFlag:B}=_;if(j>0){if(j&128){ft(h,O,x,R,$,M,V,z,m);return}else if(j&256){tt(h,O,x,R,$,M,V,z,m);return}}B&8?(A&16&&We(h,$,M),O!==h&&u(x,O)):A&16?B&16?ft(h,O,x,R,$,M,V,z,m):We(h,$,M,!0):(A&8&&u(x,""),B&16&&F(O,x,R,$,M,V,z,m))},tt=(b,_,x,R,$,M,V,z,m)=>{b=b||dr,_=_||dr;const h=b.length,A=_.length,O=Math.min(h,A);let j;for(j=0;jA?We(b,$,M,!0,!1,O):F(_,x,R,$,M,V,z,m,O)},ft=(b,_,x,R,$,M,V,z,m)=>{let h=0;const A=_.length;let O=b.length-1,j=A-1;for(;h<=O&&h<=j;){const B=b[h],I=_[h]=m?oo(_[h]):Ut(_[h]);if(jo(B,I))C(B,I,x,null,$,M,V,z,m);else break;h++}for(;h<=O&&h<=j;){const B=b[O],I=_[j]=m?oo(_[j]):Ut(_[j]);if(jo(B,I))C(B,I,x,null,$,M,V,z,m);else break;O--,j--}if(h>O){if(h<=j){const B=j+1,I=Bj)for(;h<=O;)Fe(b[h],$,M,!0),h++;else{const B=h,I=h,N=new Map;for(h=I;h<=j;h++){const Ct=_[h]=m?oo(_[h]):Ut(_[h]);Ct.key!=null&&N.set(Ct.key,h)}let te,ce=0;const Ee=j-I+1;let ot=!1,Ue=0;const No=new Array(Ee);for(h=0;h=Ee){Fe(Ct,$,M,!0);continue}let $t;if(Ct.key!=null)$t=N.get(Ct.key);else for(te=I;te<=j;te++)if(No[te-I]===0&&jo(Ct,_[te])){$t=te;break}$t===void 0?Fe(Ct,$,M,!0):(No[$t-I]=h+1,$t>=Ue?Ue=$t:ot=!0,C(Ct,_[$t],x,null,$,M,V,z,m),ce++)}const Li=ot?Pm(No):dr;for(te=Li.length-1,h=Ee-1;h>=0;h--){const Ct=I+h,$t=_[Ct],ya=_[Ct+1],Ea=Ct+1{const{el:M,type:V,transition:z,children:m,shapeFlag:h}=b;if(h&6){Re(b.component.subTree,_,x,R);return}if(h&128){b.suspense.move(_,x,R);return}if(h&64){V.move(b,_,x,ee);return}if(V===qe){r(M,_,x);for(let O=0;Oz.enter(M),$));else{const{leave:O,delayLeave:j,afterLeave:B}=z,I=()=>{b.ctx.isUnmounted?n(M):r(M,_,x)},N=()=>{const te=M._isLeaving||!!M[It];M._isLeaving&&M[It](!0),z.persisted&&!te?I():O(M,()=>{I(),B&&B()})};j?j(M,I,N):N()}else r(M,_,x)},Fe=(b,_,x,R=!1,$=!1)=>{const{type:M,props:V,ref:z,children:m,dynamicChildren:h,shapeFlag:A,patchFlag:O,dirs:j,cacheIndex:B,memo:I}=b;if(O===-2&&($=!1),z!=null&&(so(),zr(z,null,x,b,!0),co()),B!=null&&(_.renderCache[B]=void 0),A&256){_.ctx.deactivate(b);return}const N=A&1&&j,te=!mr(b);let ce;if(te&&(ce=V&&V.onVnodeBeforeUnmount)&&Bt(ce,_,b),A&6)gt(b.component,x,R);else{if(A&128){b.suspense.unmount(x,R);return}N&&ko(b,null,_,"beforeUnmount"),A&64?b.type.remove(b,_,x,ee,R):h&&!h.hasOnce&&(M!==qe||O>0&&O&64)?We(h,_,x,!1,!0):(M===qe&&O&384||!$&&A&16)&&We(m,_,x),R&&Tt(b)}const Ee=I!=null&&B==null;(te&&(ce=V&&V.onVnodeUnmounted)||N||Ee)&&nt(()=>{ce&&Bt(ce,_,b),N&&ko(b,null,_,"unmounted"),Ee&&(b.el=null)},x)},Tt=b=>{const{type:_,el:x,anchor:R,transition:$}=b;if(_===qe){ht(x,R);return}if(_===$i){y(b);return}const M=()=>{n(x),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(b.shapeFlag&1&&$&&!$.persisted){const{leave:V,delayLeave:z}=$,m=()=>V(x,M);z?z(b.el,M,m):m()}else M()},ht=(b,_)=>{let x;for(;b!==_;)x=d(b),n(b),b=x;n(_)},gt=(b,_,x)=>{const{bum:R,scope:$,job:M,subTree:V,um:z,m,a:h}=b;Ua(m),Ua(h),R&&In(R),$.stop(),M&&(M.flags|=8,Fe(V,b,_,x)),z&&nt(z,_),nt(()=>{b.isUnmounted=!0},_)},We=(b,_,x,R=!1,$=!1,M=0)=>{for(let V=M;V{if(b.shapeFlag&6)return H(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const _=d(b.anchor||b.el),x=_&&_[mu];return x?d(x):_};let Y=!1;const G=(b,_,x)=>{let R;b==null?_._vnode&&(Fe(_._vnode,null,null,!0),R=_._vnode.component):C(_._vnode||null,b,_,null,null,null,x),_._vnode=b,Y||(Y=!0,La(R),cu(),Y=!1)},ee={p:C,um:Fe,m:Re,r:Tt,mt:me,mc:F,pc:de,pbc:U,n:H,o:e};return{render:G,hydrate:void 0,createApp:cm(G)}}function Hi({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Ho({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Tm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ta(e,t,o=!1){const r=e.children,n=t.children;if(oe(r)&&oe(n))for(let i=0;i>1,e[o[a]]0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function ku(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ku(t)}function Ua(e){if(e)for(let t=0;te.__isSuspense;function Im(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):Dp(e)}const qe=Symbol.for("v-fgt"),pn=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),$i=Symbol.for("v-stc"),ao=[];let xt=null;function Ft(e=!1){ao.push(xt=e?null:[])}function oa(){ao.pop(),xt=ao[ao.length-1]||null}let Qr=1;function $n(e,t=!1){Qr+=e,e<0&&xt&&t&&(xt.hasOnce=!0)}function Bu(e){return e.dynamicChildren=Qr>0?xt||dr:null,oa(),Qr>0&&xt&&xt.push(e),e}function hr(e,t,o,r,n,i){return Bu(Rt(e,t,o,r,n,i,!0))}function Zr(e,t,o,r,n){return Bu(je(e,t,o,r,n,!0))}function en(e){return e?e.__v_isVNode===!0:!1}function jo(e,t){return e.type===t.type&&e.key===t.key}const Wu=({key:e})=>e??null,An=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Le(e)||le(e)?{i:Ve,r:e,k:t,f:!!o}:e:null);function Rt(e,t=null,o=null,r=0,n=null,i=e===qe?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wu(t),ref:t&&An(t),scopeId:fu,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Ve};return a?(Bn(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=we(o)?8:16),Qr>0&&!l&&xt&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&xt.push(s),s}const je=Am;function Am(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===Zp)&&(e=Je),en(e)){const a=Io(e,t,!0);return o&&Bn(a,o),Qr>0&&!i&&xt&&(a.shapeFlag&6?xt[xt.indexOf(e)]=a:xt.push(a)),a.patchFlag=-2,a}if(Bm(e)&&(e=e.__vccOpts),t){t=wm(t);let{class:a,style:s}=t;a&&!we(a)&&(t.class=ii(a)),be(s)&&(ai(s)&&!oe(s)&&(s=Be({},s)),t.style=ni(s))}const l=we(e)?1:$u(e)?128:ui(e)?64:be(e)?4:le(e)?2:0;return Rt(e,t,o,r,n,l,i,!0)}function wm(e){return e?ai(e)||Du(e)?Be({},e):e:null}function Io(e,t,o=!1,r=!1){const{props:n,ref:i,patchFlag:l,children:a,transition:s}=e,c=t?Dm(n||{},t):n,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Wu(c),ref:t&&t.ref?o&&i?oe(i)?i.concat(An(t)):[i,An(t)]:An(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qe?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Io(e.ssContent),ssFallback:e.ssFallback&&Io(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&r&&Jr(u,s.clone(u)),u}function Lm(e=" ",t=0){return je(pn,null,e,t)}function wn(e="",t=!1){return t?(Ft(),Zr(Je,null,e)):je(Je,null,e)}function Ut(e){return e==null||typeof e=="boolean"?je(Je):oe(e)?je(qe,null,e.slice()):en(e)?oo(e):je(pn,null,String(e))}function oo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Io(e)}function Bn(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(oe(t))o=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Bn(e,n()),n._c&&(n._d=!0));return}else{o=32;const n=t._;!n&&!Du(t)?t._ctx=Ve:n===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(le(t)){if(r&65){Bn(e,{default:t});return}t={default:t,_ctx:Ve},o=32}else t=String(t),r&64?(o=16,t=[Lm(t)]):o=8;e.children=t,e.shapeFlag|=o}function Dm(...e){const t={};for(let o=0;oQe||Ve;let Wn,tn;{const e=ri(),t=(o,r)=>{let n;return(n=e[o])||(n=e[o]=[]),n.push(r),i=>{n.length>1?n.forEach(l=>l(i)):n[0](i)}};Wn=t("__VUE_INSTANCE_SETTERS__",o=>Qe=o),tn=t("__VUE_SSR_SETTERS__",o=>on=o)}const mn=e=>{const t=Qe;return Wn(e),e.scope.on(),()=>{e.scope.off(),Wn(t)}},Va=()=>{Qe&&Qe.scope.off(),Wn(null)};function zu(e){return e.vnode.shapeFlag&4}let on=!1;function Mm(e,t=!1,o=!1){t&&tn(t);const{props:r,children:n}=e.vnode,i=zu(e);Cm(e,r,i,t),vm(e,n,o||t);const l=i?Nm(e,t):void 0;return t&&tn(!1),l}function Nm(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,om);const{setup:r}=o;if(r){so();const n=e.setupContext=r.length>1?Hm(e):null,i=mn(e),l=dn(r,e,0,[e.props,n]),a=Oc(l);if(co(),i(),(a||e.sp)&&!mr(e)&&_u(e),a){if(l.then(Va,Va),t)return l.then(s=>{tn(!0);try{ja(e,s,t)}finally{tn(!1)}}).catch(s=>{si(s,e,0)});e.asyncDep=l}else ja(e,l)}else Uu(e)}function ja(e,t,o){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:be(t)&&(e.setupState=iu(t)),Uu(e)}function Uu(e,t,o){const r=e.type;e.render||(e.render=r.render||Gt);{const n=mn(e);so();try{rm(e)}finally{co(),n()}}}const km={get(e,t){return Ye(e,"get",""),e[t]}};function Hm(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,km),slots:e.slots,emit:e.emit,expose:t}}function hi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(iu(qr(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Ur)return Ur[o](e)},has(t,o){return o in t||o in Ur}})):e.proxy}function $m(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Bm(e){return le(e)&&"__vccOpts"in e}const fe=(e,t)=>Pp(e,t,on);function vr(e,t,o){try{$n(-1);const r=arguments.length;return r===2?be(t)&&!oe(t)?en(t)?je(e,null,[t]):je(e,t):je(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&en(o)&&(o=[o]),je(e,t,o))}finally{$n(1)}}const Wm="3.5.42";let ml;const Ga=typeof window<"u"&&window.trustedTypes;if(Ga)try{ml=Ga.createPolicy("vue",{createHTML:e=>e})}catch{}const Vu=ml?e=>ml.createHTML(e):e=>e,zm="http://www.w3.org/2000/svg",Um="http://www.w3.org/1998/Math/MathML",to=typeof document<"u"?document:null,Ka=to&&to.createElement("template"),Vm={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const n=t==="svg"?to.createElementNS(zm,e):t==="mathml"?to.createElementNS(Um,e):o?to.createElement(e,{is:o}):to.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>to.createTextNode(e),createComment:e=>to.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>to.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,n,i){const l=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{Ka.innerHTML=Vu(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=Ka.content;if(r==="svg"||r==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},go="transition",Lr="animation",rn=Symbol("_vtc"),ju={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},jm=Be({},hu,ju),Gm=e=>(e.displayName="Transition",e.props=jm,e),dT=Gm((e,{slots:t})=>vr(Wp,Km(e),t)),$o=(e,t=[])=>{oe(e)?e.forEach(o=>o(...t)):e&&e(...t)},Ya=e=>e?oe(e)?e.some(t=>t.length>1):e.length>1:!1;function Km(e){const t={};for(const k in e)k in ju||(t[k]=e[k]);if(e.css===!1)return t;const{name:o="v",type:r,duration:n,enterFromClass:i=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:c=l,appearToClass:u=a,leaveFromClass:f=`${o}-leave-from`,leaveActiveClass:d=`${o}-leave-active`,leaveToClass:p=`${o}-leave-to`}=e,g=Ym(n),C=g&&g[0],S=g&&g[1],{onBeforeEnter:E,onEnter:T,onEnterCancelled:v,onLeave:y,onLeaveCancelled:w,onBeforeAppear:L=E,onAppear:D=T,onAppearCancelled:F=v}=t,P=(k,Q,me,ye)=>{k._enterCancelled=ye,Bo(k,Q?u:a),Bo(k,Q?c:l),me&&me()},U=(k,Q)=>{k._isLeaving=!1,Bo(k,f),Bo(k,p),Bo(k,d),Q&&Q()},X=k=>(Q,me)=>{const ye=k?D:T,se=()=>P(Q,k,me);$o(ye,[Q,se]),qa(()=>{Bo(Q,k?s:i),Jt(Q,k?u:a),Ya(ye)||Xa(Q,r,C,se)})};return Be(t,{onBeforeEnter(k){$o(E,[k]),Jt(k,i),Jt(k,l)},onBeforeAppear(k){$o(L,[k]),Jt(k,s),Jt(k,c)},onEnter:X(!1),onAppear:X(!0),onLeave(k,Q){k._isLeaving=!0;const me=()=>U(k,Q);Jt(k,f),k._enterCancelled?(Jt(k,d),Za(k)):(Za(k),Jt(k,d)),qa(()=>{k._isLeaving&&(Bo(k,f),Jt(k,p),Ya(y)||Xa(k,r,S,me))}),$o(y,[k,me])},onEnterCancelled(k){P(k,!1,void 0,!0),$o(v,[k])},onAppearCancelled(k){P(k,!0,void 0,!0),$o(F,[k])},onLeaveCancelled(k){U(k),$o(w,[k])}})}function Ym(e){if(e==null)return null;if(be(e))return[Bi(e.enter),Bi(e.leave)];{const t=Bi(e);return[t,t]}}function Bi(e){return Gd(e)}function Jt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[rn]||(e[rn]=new Set)).add(t)}function Bo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const o=e[rn];o&&(o.delete(t),o.size||(e[rn]=void 0))}function qa(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let qm=0;function Xa(e,t,o,r){const n=e._endId=++qm,i=()=>{n===e._endId&&r()};if(o!=null)return setTimeout(i,o);const{type:l,timeout:a,propCount:s}=Xm(e,t);if(!l)return r();const c=l+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=p=>{p.target===e&&++u>=s&&f()};setTimeout(()=>{u(o[g]||"").split(", "),n=r(`${go}Delay`),i=r(`${go}Duration`),l=Ja(n,i),a=r(`${Lr}Delay`),s=r(`${Lr}Duration`),c=Ja(a,s);let u=null,f=0,d=0;t===go?l>0&&(u=go,f=l,d=i.length):t===Lr?c>0&&(u=Lr,f=c,d=s.length):(f=Math.max(l,c),u=f>0?l>c?go:Lr:null,d=u?u===go?i.length:s.length:0);const p=u===go&&/\b(?:transform|all)(?:,|$)/.test(r(`${go}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function Ja(e,t){for(;e.lengthQa(o)+Qa(e[r])))}function Qa(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Za(e){return(e?e.ownerDocument:document).body.offsetHeight}function Jm(e,t,o){const r=e[rn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const es=Symbol("_vod"),Qm=Symbol("_vsh"),Zm=Symbol(""),eh=/(?:^|;)\s*display\s*:/;function th(e,t,o){const r=e.style,n=we(o);let i=!1;if(o&&!n){if(t)if(we(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();o[a]==null&&Nr(r,a,"")}else for(const l in t)o[l]==null&&Nr(r,l,"");for(const l in o){l==="display"&&(i=!0);const a=o[l];a!=null?rh(e,l,!we(t)&&t?t[l]:void 0,a)||Nr(r,l,a):Nr(r,l,"")}}else if(n){if(t!==o){const l=r[Zm];l&&(o+=";"+l),r.cssText=o,i=eh.test(o)}}else t&&e.removeAttribute("style");es in e&&(e[es]=i?r.display:"",e[Qm]&&(r.display="none"))}const vn=/\s*!important$/;function Nr(e,t,o){if(oe(o))o.forEach(r=>Nr(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))vn.test(o)?e.setProperty(t,o.replace(vn,""),"important"):e.setProperty(t,o);else{const r=oh(e,t);vn.test(o)?e.setProperty(Ro(r),o.replace(vn,""),"important"):e[r]=o}}const ts=["Webkit","Moz","ms"],Wi={};function oh(e,t){const o=Wi[t];if(o)return o;let r=ct(t);if(r!=="filter"&&r in e)return Wi[t]=r;r=ti(r);for(let n=0;nzi||(ch.then(()=>zi=0),zi=Date.now());function fh(e,t){const o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;const n=o.value;if(oe(n)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const l=n.slice(),a=[r];for(let s=0;se.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,dh=(e,t,o,r,n,i)=>{const l=n==="svg";t==="class"?Jm(e,r,l):t==="style"?th(e,o,r):Jn(t)?Qn(t)||ih(e,t,o,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ph(e,t,r,l))?(ns(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rs(e,t,r,l,i,t!=="value")):e._isVueCE&&(mh(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(r)))?ns(e,ct(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),rs(e,t,r,l))};function ph(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ls(t)&&le(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return ls(t)&&we(o)?!1:t in e}function mh(e,t){const o=e._def.props;if(!o)return!1;const r=ct(t);return Array.isArray(o)?o.some(n=>ct(n)===r):Object.keys(o).some(n=>ct(n)===r)}const zn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return oe(t)?o=>In(t,o):t};function hh(e){e.target.composing=!0}function as(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ko=Symbol("_assign"),Sn=Symbol("_initialValue");function Ui(e,t,o){return t&&(e=e.trim()),o&&(e=oi(e)),e}const pT={created(e,{modifiers:{lazy:t,trim:o,number:r}},n){e.parentNode&&(e.type==="text"?e[Sn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Sn]=e.defaultValue.replace(/\r\n?/g,` +`))),e[Ko]=zn(n);const i=r||n.props&&n.props.type==="number";Go(e,t?"change":"input",l=>{l.target.composing||e[Ko](Ui(e.value,o,i))}),(o||i)&&Go(e,"change",()=>{e.value=Ui(e.value,o,i)}),t||(Go(e,"compositionstart",hh),Go(e,"compositionend",as),Go(e,"change",as))},mounted(e,{value:t,modifiers:{trim:o,number:r}}){const n=t??"",i=e[Sn];delete e[Sn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Ko](Ui(e.value,o,r)):e.value=n},beforeUpdate(e,{value:t,oldValue:o,modifiers:{lazy:r,trim:n,number:i}},l){if(e[Ko]=zn(l),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?oi(e.value):e.value,s=t??"";if(a===s)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===o||n&&e.value.trim()===s)||(e.value=s)}},mT={deep:!0,created(e,{value:t,modifiers:{number:o}},r){e._modelValue=t,Go(e,"change",()=>{const n=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>o?oi(Un(s)):Un(s)),i=e.multiple,l=i?er(e._modelValue)?new Set(n):n:n[0],a=e._pendingValue=[i,i?oe(l)?n.slice():n:l];try{e[Ko](l)}finally{ci(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Ko]=zn(r)},mounted(e,{value:t}){ss(e,t)},beforeUpdate(e,{value:t},o){e._modelValue=t,e[Ko]=zn(o)},updated(e,{value:t}){const o=e._pendingValue;e._pendingValue=void 0,(!o||o[0]!==e.multiple||!gh(t,o[1],o[0]))&&ss(e,t)}};function gh(e,t,o){if(!o||oe(e))return Po(e,t);if(er(e)){if(e.size!==t.length)return!1;for(const r of t)if(!e.has(r))return!1;return!0}return!1}function ss(e,t){const o=e.multiple,r=oe(t);if(!(o&&!r&&!er(t))){for(let n=0,i=e.options.length;nString(c)===String(a)):l.selected=ep(t,a)>-1}else l.selected=t.has(a);else if(Po(Un(l),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!o&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Un(e){return"_value"in e?e._value:e.value}const Ch=["ctrl","shift","alt","meta"],bh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ch.some(o=>e[`${o}Key`]&&!t.includes(o))},hT=(e,t)=>{if(!e)return e;const o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=((n,...i)=>{for(let l=0;l{const o=e._withKeys||(e._withKeys={}),r=t.join(".");return o[r]||(o[r]=(n=>{if(!("key"in n))return;const i=Ro(n.key);if(t.some(l=>l===i||xh[l]===i))return e(n)}))},_h=Be({patchProp:dh},Vm);let cs;function vh(){return cs||(cs=ym(_h))}const Sh=((...e)=>{const t=vh().createApp(...e),{mount:o}=t;return t.mount=r=>{const n=Eh(r);if(!n)return;const i=t._component;!le(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const l=o(n,!1,yh(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t});function yh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Eh(e){return we(e)?document.querySelector(e):e}let Gu;const gi=e=>Gu=e,Ku=Symbol();function hl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Vr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Vr||(Vr={}));function Th(){const e=Wl(!0),t=e.run(()=>mt({}));let o=[],r=[];const n=qr({install(i){gi(n),n._a=i,i.provide(Ku,n),i.config.globalProperties.$pinia=n,r.forEach(l=>o.push(l)),r=[]},use(i){return this._a?o.push(i):r.push(i),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return n}const Yu=()=>{};function us(e,t,o,r=Yu){e.add(t);const n=()=>{e.delete(t)&&r()};return!o&&zc()&&tp(n),n}function lr(e,...t){e.forEach(o=>{o(...t)})}const Ph=e=>e(),fs=Symbol(),Vi=Symbol();function gl(e,t){e instanceof Map&&t instanceof Map?t.forEach((o,r)=>e.set(r,o)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const r=t[o],n=e[o];hl(n)&&hl(r)&&e.hasOwnProperty(o)&&!Le(r)&&!lo(r)?e[o]=gl(n,r):e[o]=r}return e}const Ih=Symbol();function Ah(e){return!hl(e)||!Object.prototype.hasOwnProperty.call(e,Ih)}const{assign:_o}=Object;function wh(e){return!!(Le(e)&&e.effect)}function Lh(e,t,o,r){const{state:n,actions:i,getters:l}=t,a=o.state.value[e];let s;function c(){a||(o.state.value[e]=n?n():{});const u=Sp(o.state.value[e]);return _o(u,i,Object.keys(l||{}).reduce((f,d)=>(f[d]=qr(fe(()=>{gi(o);const p=o._s.get(e);return l[d].call(p,p)})),f),{}))}return s=qu(e,c,t,o,r,!0),s}function qu(e,t,o={},r,n,i){let l;const a=_o({actions:{}},o),s={deep:!0};let c,u,f=new Set,d=new Set,p;const g=r.state.value[e];!i&&!g&&(r.state.value[e]={});let C;function S(F){let P;c=u=!1,typeof F=="function"?(F(r.state.value[e]),P={type:Vr.patchFunction,storeId:e,events:p}):(gl(r.state.value[e],F),P={type:Vr.patchObject,payload:F,storeId:e,events:p});const U=C=Symbol();ci().then(()=>{C===U&&(c=!0)}),u=!0,lr(f,P,r.state.value[e])}const E=i?function(){const{state:P}=o,U=P?P():{};this.$patch(X=>{_o(X,U)})}:Yu;function T(){l.stop(),f.clear(),d.clear(),r._s.delete(e)}const v=(F,P="")=>{if(fs in F)return F[Vi]=P,F;const U=function(){gi(r);const X=Array.from(arguments),k=new Set,Q=new Set;function me(ne){k.add(ne)}function ye(ne){Q.add(ne)}lr(d,{args:X,name:U[Vi],store:w,after:me,onError:ye});let se;try{se=F.apply(this&&this.$id===e?this:w,X)}catch(ne){throw lr(Q,ne),ne}return se instanceof Promise?se.then(ne=>(lr(k,ne),ne)).catch(ne=>(lr(Q,ne),Promise.reject(ne))):(lr(k,se),se)};return U[fs]=!0,U[Vi]=P,U},y={_p:r,$id:e,$onAction:us.bind(null,d),$patch:S,$reset:E,$subscribe(F,P={}){const U=us(f,F,P.detached,()=>X()),X=l.run(()=>St(()=>r.state.value[e],k=>{(P.flush==="sync"?u:c)&&F({storeId:e,type:Vr.direct,events:p},k)},_o({},s,P)));return U},$dispose:T},w=fn(y);r._s.set(e,w);const D=(r._a&&r._a.runWithContext||Ph)(()=>r._e.run(()=>(l=Wl()).run(()=>t({action:v}))));for(const F in D){const P=D[F];if(Le(P)&&!wh(P)||lo(P))i||(g&&Ah(P)&&(Le(P)?P.value=g[F]:gl(P,g[F])),r.state.value[e][F]=P);else if(typeof P=="function"){const U=v(P,F);D[F]=U,a.actions[F]=P}}return _o(w,D),_o(ge(w),D),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:F=>{S(P=>{_o(P,F)})}}),r._p.forEach(F=>{_o(w,l.run(()=>F({store:w,app:r._a,pinia:r,options:a})))}),g&&i&&o.hydrate&&o.hydrate(w.$state,g),c=!0,u=!0,w}function Xu(e,t,o){let r;const n=typeof t=="function";r=n?o:t;function i(l,a){const s=Rp();return l=l||(s?Ze(Ku,null):null),l&&gi(l),l=Gu,l._s.has(e)||(n?qu(e,t,r,l):Lh(e,r,l)),l._s.get(e)}return i.$id=e,i}const cr=typeof document<"u";function Ju(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Dh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ju(e.default)}const xe=Object.assign;function ji(e,t){const o={};for(const r in t){const n=t[r];o[r]=Ht(n)?n.map(e):e(n)}return o}const jr=()=>{},Ht=Array.isArray;function ds(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Qu=/#/g,Rh=/&/g,Fh=/\//g,Oh=/=/g,Mh=/\?/g,Zu=/\+/g,Nh=/%5B/g,kh=/%5D/g,ef=/%5E/g,Hh=/%60/g,tf=/%7B/g,$h=/%7C/g,of=/%7D/g,Bh=/%20/g;function ra(e){return e==null?"":encodeURI(""+e).replace($h,"|").replace(Nh,"[").replace(kh,"]")}function Wh(e){return ra(e).replace(tf,"{").replace(of,"}").replace(ef,"^")}function Cl(e){return ra(e).replace(Zu,"%2B").replace(Bh,"+").replace(Qu,"%23").replace(Rh,"%26").replace(Hh,"`").replace(tf,"{").replace(of,"}").replace(ef,"^")}function zh(e){return Cl(e).replace(Oh,"%3D")}function Uh(e){return ra(e).replace(Qu,"%23").replace(Mh,"%3F")}function Vh(e){return Uh(e).replace(Fh,"%2F")}function nn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const jh=/\/$/,Gh=e=>e.replace(jh,"");function Gi(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=Xh(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:nn(l)}}function Kh(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function ps(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Yh(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Cr(t.matched[r],o.matched[n])&&rf(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Cr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function rf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!qh(e[o],t[o]))return!1;return!0}function qh(e,t){return Ht(e)?ms(e,t):Ht(t)?ms(t,e):e?.valueOf()===t?.valueOf()}function ms(e,t){return Ht(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function Xh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Co={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let bl=(function(e){return e.pop="pop",e.push="push",e})({}),Ki=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Jh(e){if(!e)if(cr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Gh(e)}const Qh=/^[^#]+#/;function Zh(e,t){return e.replace(Qh,"#")+t}function eg(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const Ci=()=>({left:window.scrollX,top:window.scrollY});function tg(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=eg(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function hs(e,t){return(history.state?history.state.position-t:-1)+e}const xl=new Map;function og(e,t){xl.set(e,t)}function rg(e){const t=xl.get(e);return xl.delete(e),t}function ng(e){return typeof e=="string"||e&&typeof e=="object"}function nf(e){return typeof e=="string"||typeof e=="symbol"}let Oe=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const lf=Symbol("");Oe.MATCHER_NOT_FOUND+"",Oe.NAVIGATION_GUARD_REDIRECT+"",Oe.NAVIGATION_ABORTED+"",Oe.NAVIGATION_CANCELLED+"",Oe.NAVIGATION_DUPLICATED+"";function br(e,t){return xe(new Error,{type:e,[lf]:!0},t)}function Qt(e,t){return e instanceof Error&&lf in e&&(t==null||!!(e.type&t))}const ig=["params","query","hash"];function lg(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of ig)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function ag(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&Cl(n)):[r&&Cl(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function sg(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Ht(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const cg=Symbol(""),Cs=Symbol(""),bi=Symbol(""),na=Symbol(""),_l=Symbol("");function Dr(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function yo(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const c=d=>{d===!1?s(br(Oe.NAVIGATION_ABORTED,{from:o,to:t})):d instanceof Error?s(d):ng(d)?s(br(Oe.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(l&&r.enterCallbacks[n]===l&&typeof d=="function"&&l.push(d),a())},u=i(()=>e.call(r&&r.instances[n],t,o,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>s(d))})}function Yi(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Ju(s)){const c=(s.__vccOpts||s)[t];c&&i.push(yo(c,o,r,l,a,n))}else{let c=s();i.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const f=Dh(u)?u.default:u;l.mods[a]=u,l.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&yo(d,o,r,l,a,n)()}))}}return i}function ug(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lCr(c,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(c=>Cr(c,s))||n.push(s))}return[o,r,n]}let fg=()=>location.protocol+"//"+location.host;function af(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),ps(a,"")}return ps(o,e)+r+n}function dg(e,t,o,r){let n=[],i=[],l=null;const a=({state:d})=>{const p=af(e,location),g=o.value,C=t.value;let S=0;if(d){if(o.value=p,t.value=d,l&&l===g){l=null;return}S=C?d.position-C.position:0}else r(p);n.forEach(E=>{E(o.value,g,{delta:S,type:bl.pop,direction:S?S>0?Ki.forward:Ki.back:Ki.unknown})})};function s(){l=o.value}function c(d){n.push(d);const p=()=>{const g=n.indexOf(d);g>-1&&n.splice(g,1)};return i.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(xe({},d.state,{scroll:Ci()}),"")}}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:s,listen:c,destroy:f}}function bs(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?Ci():null}}function pg(e){const{history:t,location:o}=window,r={value:af(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,c,u){const f=e.indexOf("#"),d=f>-1?(o.host&&document.querySelector("base")?e:e.slice(f))+s:fg()+e+s;try{t[u?"replaceState":"pushState"](c,"",d),n.value=c}catch(p){console.error(p),o[u?"replace":"assign"](d)}}function l(s,c){i(s,xe({},t.state,bs(n.value.back,s,n.value.forward,!0),c,{position:n.value.position}),!0),r.value=s}function a(s,c){const u=xe({},n.value,t.state,{forward:s,scroll:Ci()});i(u.current,u,!0),i(s,xe({},bs(r.value,s,null),{position:u.position+1},c),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function mg(e){e=Jh(e);const t=pg(e),o=dg(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=xe({location:"",base:e,go:r,createHref:Zh.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}let Yo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ke=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(ke||{});const hg={type:Yo.Static,value:""},gg=/[a-zA-Z0-9_]/;function Cg(e){if(!e)return[[]];if(e==="/")return[[hg]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${o})/"${c}": ${p}`)}let o=ke.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,c="",u="";function f(){c&&(o===ke.Static?i.push({type:Yo.Static,value:c}):o===ke.Param||o===ke.ParamRegExp||o===ke.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Yo.Param,value:c,regexp:u,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=s}for(;at.length?t.length===1&&t[0]===lt.Static+lt.Segment?1:-1:0}function sf(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const Sg={strict:!1,end:!0,sensitive:!1};function yg(e,t,o){const r=_g(Cg(e.path),o),n=xe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function Eg(e,t){const o=[],r=new Map;t=ds(Sg,t);function n(f){return r.get(f)}function i(f,d,p){const g=!p,C=Ss(f);C.aliasOf=p&&p.record;const S=ds(t,f),E=[C];if("alias"in f){const y=typeof f.alias=="string"?[f.alias]:f.alias;for(const w of y)E.push(Ss(xe({},C,{components:p?p.record.components:C.components,path:w,aliasOf:p?p.record:C})))}let T,v;for(const y of E){const{path:w}=y;if(d&&w[0]!=="/"){const L=d.record.path,D=L[L.length-1]==="/"?"":"/";y.path=d.record.path+(w&&D+w)}if(T=yg(y,d,S),p?p.alias.push(T):(v=v||T,v!==T&&v.alias.push(T),g&&f.name&&!ys(T)&&l(f.name)),cf(T)&&s(T),C.children){const L=C.children;for(let D=0;D{l(v)}:jr}function l(f){if(nf(f)){const d=r.get(f);d&&(r.delete(f),o.splice(o.indexOf(d),1),d.children.forEach(l),d.alias.forEach(l))}else{const d=o.indexOf(f);d>-1&&(o.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(l),f.alias.forEach(l))}}function a(){return o}function s(f){const d=Ig(f,o);o.splice(d,0,f),f.record.name&&!ys(f)&&r.set(f.record.name,f)}function c(f,d){let p,g={},C,S;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw br(Oe.MATCHER_NOT_FOUND,{location:f});S=p.record.name,g=xe(vs(d.params,p.keys.filter(v=>!v.optional).concat(p.parent?p.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),f.params&&vs(f.params,p.keys.map(v=>v.name))),C=p.stringify(g)}else if(f.path!=null)C=f.path,p=o.find(v=>v.re.test(C)),p&&(g=p.parse(C),S=p.record.name);else{if(p=d.name?r.get(d.name):o.find(v=>v.re.test(d.path)),!p)throw br(Oe.MATCHER_NOT_FOUND,{location:f,currentLocation:d});S=p.record.name,g=xe({},d.params,f.params),C=p.stringify(g)}const E=[];let T=p;for(;T;)E.unshift(T.record),T=T.parent;return{name:S,path:C,params:g,matched:E,meta:Pg(E)}}e.forEach(f=>i(f));function u(){o.length=0,r.clear()}return{addRoute:i,resolve:c,removeRoute:l,clearRoutes:u,getRoutes:a,getRecordMatcher:n}}function vs(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function Ss(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Tg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Tg(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function ys(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Pg(e){return e.reduce((t,o)=>xe(t,o.meta),{})}function Ig(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;sf(e,t[i])<0?r=i:o=i+1}const n=Ag(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function Ag(e){let t=e;for(;t=t.parent;)if(cf(t)&&sf(e,t)===0)return t}function cf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Es(e){const t=Ze(bi),o=Ze(na),r=fe(()=>{const s=bt(e.to);return t.resolve(s)}),n=fe(()=>{const{matched:s}=r.value,{length:c}=s,u=s[c-1],f=o.matched;if(!u||!f.length)return-1;const d=f.findIndex(Cr.bind(null,u));if(d>-1)return d;const p=Ts(s[c-2]);return c>1&&Ts(u)===p&&f[f.length-1].path!==p?f.findIndex(Cr.bind(null,s[c-2])):d}),i=fe(()=>n.value>-1&&Fg(o.params,r.value.params)),l=fe(()=>n.value>-1&&n.value===o.matched.length-1&&rf(o.params,r.value.params));function a(s={}){if(Rg(s)){const c=t[bt(e.replace)?"replace":"push"](bt(e.to)).catch(jr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:fe(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function wg(e){return e.length===1?e[0]:e}const Lg=po({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Es,setup(e,{slots:t}){const o=fn(Es(e)),{options:r}=Ze(bi),n=fe(()=>({[Ps(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[Ps(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&wg(t.default(o));return e.custom?i:vr("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),Dg=Lg;function Rg(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Fg(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Ht(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function Ts(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ps=(e,t,o)=>e??t??o,Og=po({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=Ze(_l),n=fe(()=>e.route||r.value),i=Ze(Cs,0),l=fe(()=>{let c=bt(i);const{matched:u}=n.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=fe(()=>n.value.matched[l.value]);Wr(Cs,fe(()=>l.value+1)),Wr(cg,a),Wr(_l,n);const s=mt();return St(()=>[s.value,a.value,e.name],([c,u,f],[d,p,g])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Cr(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(C=>C(c))},{flush:"post"}),()=>{const c=n.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return Is(o.default,{Component:d,route:c});const p=f.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,S=vr(d,xe({},g,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(f.instances[u]=null)},ref:s}));return Is(o.default,{Component:S,route:c})||S}}});function Is(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const Mg=Og;function Ng(e){const t=Eg(e.routes,e),o=e.parseQuery||ag,r=e.stringifyQuery||gs,n=e.history,i=Dr(),l=Dr(),a=Dr(),s=Yl(Co);let c=Co;cr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ji.bind(null,H=>""+H),f=ji.bind(null,Vh),d=ji.bind(null,nn);function p(H,Y){let G,ee;return nf(H)?(G=t.getRecordMatcher(H),ee=Y):ee=H,t.addRoute(ee,G)}function g(H){const Y=t.getRecordMatcher(H);Y&&t.removeRoute(Y)}function C(){return t.getRoutes().map(H=>H.record)}function S(H){return!!t.getRecordMatcher(H)}function E(H,Y){if(Y=xe({},Y||s.value),typeof H=="string"){const x=Gi(o,H,Y.path),R=t.resolve({path:x.path},Y),$=n.createHref(x.fullPath);return xe(x,R,{params:d(R.params),hash:nn(x.hash),redirectedFrom:void 0,href:$})}let G;if(H.path!=null)G=xe({},H,{path:Gi(o,H.path,Y.path).path});else{const x=xe({},H.params);for(const R in x)x[R]==null&&delete x[R];G=xe({},H,{params:f(x)}),Y.params=f(Y.params)}const ee=t.resolve(G,Y),ue=H.hash||"";ee.params=u(d(ee.params));const b=Kh(r,xe({},H,{hash:Wh(ue),path:ee.path})),_=n.createHref(b);return xe({fullPath:b,hash:ue,query:r===gs?sg(H.query):H.query||{}},ee,{redirectedFrom:void 0,href:_})}function T(H){return typeof H=="string"?Gi(o,H,s.value.path):xe({},H)}function v(H,Y){if(c!==H)return br(Oe.NAVIGATION_CANCELLED,{from:Y,to:H})}function y(H){return D(H)}function w(H){return y(xe(T(H),{replace:!0}))}function L(H,Y){const G=H.matched[H.matched.length-1];if(G&&G.redirect){const{redirect:ee}=G;let ue=typeof ee=="function"?ee(H,Y):ee;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=T(ue):{path:ue},ue.params={}),xe({query:H.query,hash:H.hash,params:ue.path!=null?{}:H.params},ue)}}function D(H,Y){const G=c=E(H),ee=s.value,ue=H.state,b=H.force,_=H.replace===!0,x=L(G,ee);if(x)return D(xe(T(x),{state:typeof x=="object"?xe({},ue,x.state):ue,force:b,replace:_}),Y||G);const R=G;R.redirectedFrom=Y;let $;return!b&&Yh(r,ee,G)&&($=br(Oe.NAVIGATION_DUPLICATED,{to:R,from:ee}),Re(ee,ee,!0,!1)),($?Promise.resolve($):U(R,ee)).catch(M=>Qt(M)?Qt(M,Oe.NAVIGATION_GUARD_REDIRECT)?M:ft(M):de(M,R,ee)).then(M=>{if(M){if(Qt(M,Oe.NAVIGATION_GUARD_REDIRECT))return D(xe({replace:_},T(M.to),{state:typeof M.to=="object"?xe({},ue,M.to.state):ue,force:b}),Y||R)}else M=k(R,ee,!0,_,ue);return X(R,ee,M),M})}function F(H,Y){const G=v(H,Y);return G?Promise.reject(G):Promise.resolve()}function P(H){const Y=ht.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(H):H()}function U(H,Y){let G;const[ee,ue,b]=ug(H,Y);G=Yi(ee.reverse(),"beforeRouteLeave",H,Y);for(const x of ee)x.leaveGuards.forEach(R=>{G.push(yo(R,H,Y))});const _=F.bind(null,H,Y);return G.push(_),We(G).then(()=>{G=[];for(const x of i.list())G.push(yo(x,H,Y));return G.push(_),We(G)}).then(()=>{G=Yi(ue,"beforeRouteUpdate",H,Y);for(const x of ue)x.updateGuards.forEach(R=>{G.push(yo(R,H,Y))});return G.push(_),We(G)}).then(()=>{G=[];for(const x of b)if(x.beforeEnter)if(Ht(x.beforeEnter))for(const R of x.beforeEnter)G.push(yo(R,H,Y));else G.push(yo(x.beforeEnter,H,Y));return G.push(_),We(G)}).then(()=>(H.matched.forEach(x=>x.enterCallbacks={}),G=Yi(b,"beforeRouteEnter",H,Y,P),G.push(_),We(G))).then(()=>{G=[];for(const x of l.list())G.push(yo(x,H,Y));return G.push(_),We(G)}).catch(x=>Qt(x,Oe.NAVIGATION_CANCELLED)?x:Promise.reject(x))}function X(H,Y,G){a.list().forEach(ee=>P(()=>ee(H,Y,G)))}function k(H,Y,G,ee,ue){const b=v(H,Y);if(b)return b;const _=Y===Co,x=cr?history.state:{};G&&(ee||_?n.replace(H.fullPath,xe({scroll:_&&x&&x.scroll},ue)):n.push(H.fullPath,ue)),s.value=H,Re(H,Y,G,_),ft()}let Q;function me(){Q||(Q=n.listen((H,Y,G)=>{if(!gt.listening)return;const ee=E(H),ue=L(ee,gt.currentRoute.value);if(ue){D(xe(ue,{replace:!0,force:!0}),ee).catch(jr);return}c=ee;const b=s.value;cr&&og(hs(b.fullPath,G.delta),Ci()),U(ee,b).catch(_=>Qt(_,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_CANCELLED)?_:Qt(_,Oe.NAVIGATION_GUARD_REDIRECT)?(D(xe(T(_.to),{force:!0}),ee).then(x=>{Qt(x,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_DUPLICATED)&&!G.delta&&G.type===bl.pop&&n.go(-1,!1)}).catch(jr),Promise.reject()):(G.delta&&n.go(-G.delta,!1),de(_,ee,b))).then(_=>{_=_||k(ee,b,!1),_&&(G.delta&&!Qt(_,Oe.NAVIGATION_CANCELLED)?n.go(-G.delta,!1):G.type===bl.pop&&Qt(_,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),X(ee,b,_)}).catch(jr)}))}let ye=Dr(),se=Dr(),ne;function de(H,Y,G){ft(H);const ee=se.list();return ee.length?ee.forEach(ue=>ue(H,Y,G)):console.error(H),Promise.reject(H)}function tt(){return ne&&s.value!==Co?Promise.resolve():new Promise((H,Y)=>{ye.add([H,Y])})}function ft(H){return ne||(ne=!H,me(),ye.list().forEach(([Y,G])=>H?G(H):Y()),ye.reset()),H}function Re(H,Y,G,ee){const{scrollBehavior:ue}=e;if(!cr||!ue)return Promise.resolve();const b=!G&&rg(hs(H.fullPath,0))||(ee||!G)&&history.state&&history.state.scroll||null;return ci().then(()=>ue(H,Y,b)).then(_=>_&&tg(_)).catch(_=>de(_,H,Y))}const Fe=H=>n.go(H);let Tt;const ht=new Set,gt={currentRoute:s,listening:!0,addRoute:p,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:S,getRoutes:C,resolve:E,options:e,push:y,replace:w,go:Fe,back:()=>Fe(-1),forward:()=>Fe(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:se.add,isReady:tt,install(H){H.component("RouterLink",Dg),H.component("RouterView",Mg),H.config.globalProperties.$router=gt,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>bt(s)}),cr&&!Tt&&s.value===Co&&(Tt=!0,y(n.location).catch(ee=>{}));const Y={};for(const ee in Co)Object.defineProperty(Y,ee,{get:()=>s.value[ee],enumerable:!0});H.provide(bi,gt),H.provide(na,ru(Y)),H.provide(_l,s);const G=H.unmount;ht.add(H),H.unmount=function(){ht.delete(H),ht.size<1&&(c=Co,Q&&Q(),Q=null,s.value=Co,Tt=!1,ne=!1),G()}}};function We(H){return H.reduce((Y,G)=>Y.then(()=>P(G)),Promise.resolve())}return gt}function CT(){return Ze(bi)}function kg(e){return Ze(na)}function Hg(e){let t=".",o="__",r="--",n;if(e){let g=e.blockPrefix;g&&(t=g),g=e.elementPrefix,g&&(o=g),g=e.modifierPrefix,g&&(r=g)}const i={install(g){n=g.c;const C=g.context;C.bem={},C.bem.b=null,C.bem.els=null}};function l(g){let C,S;return{before(E){C=E.bem.b,S=E.bem.els,E.bem.els=null},after(E){E.bem.b=C,E.bem.els=S},$({context:E,props:T}){return g=typeof g=="string"?g:g({context:E,props:T}),E.bem.b=g,`${T?.bPrefix||t}${E.bem.b}`}}}function a(g){let C;return{before(S){C=S.bem.els},after(S){S.bem.els=C},$({context:S,props:E}){return g=typeof g=="string"?g:g({context:S,props:E}),S.bem.els=g.split(",").map(T=>T.trim()),S.bem.els.map(T=>`${E?.bPrefix||t}${S.bem.b}${o}${T}`).join(", ")}}}function s(g){return{$({context:C,props:S}){g=typeof g=="string"?g:g({context:C,props:S});const E=g.split(",").map(y=>y.trim());function T(y){return E.map(w=>`&${S?.bPrefix||t}${C.bem.b}${y!==void 0?`${o}${y}`:""}${r}${w}`).join(", ")}const v=C.bem.els;return v!==null?T(v[0]):T()}}}function c(g){return{$({context:C,props:S}){g=typeof g=="string"?g:g({context:C,props:S});const E=C.bem.els;return`&:not(${S?.bPrefix||t}${C.bem.b}${E!==null&&E.length>0?`${o}${E[0]}`:""}${r}${g})`}}}return Object.assign(i,{cB:((...g)=>n(l(g[0]),g[1],g[2])),cE:((...g)=>n(a(g[0]),g[1],g[2])),cM:((...g)=>n(s(g[0]),g[1],g[2])),cNotM:((...g)=>n(c(g[0]),g[1],g[2]))}),i}function $g(e){let t=0;for(let o=0;o{let n=$g(r);if(n){if(n===1){e.forEach(l=>{o.push(r.replace("&",l))});return}}else{e.forEach(l=>{o.push((l&&l+" ")+r)});return}let i=[r];for(;n--;){const l=[];i.forEach(a=>{e.forEach(s=>{l.push(a.replace("&",s))})}),i=l}i.forEach(l=>o.push(l))}),o}function zg(e,t){const o=[];return t.split(uf).forEach(r=>{e.forEach(n=>{o.push((n&&n+" ")+r)})}),o}function Ug(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=Wg(t,o):t=zg(t,o))}),t.join(", ").replace(Bg," ")}function As(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function ia(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function Vg(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function yn(e){return e?/^\s*@(s|m)/.test(e):!1}const jg=/[A-Z]/g;function ff(e){return e.replace(jg,t=>"-"+t.toLowerCase())}function Gg(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(o=>t+` ${ff(o[0])}: ${o[1]};`).join(` +`)+` +`+t+"}":`: ${e};`}function Kg(e,t,o){return typeof e=="function"?e({context:t.context,props:o}):e}function ws(e,t,o,r){if(!t)return"";const n=Kg(t,o,r);if(!n)return"";if(typeof n=="string")return`${e} { +${n} +}`;const i=Object.keys(n);if(i.length===0)return o.config.keepEmptyBlock?e+` { +}`:"";const l=e?[e+" {"]:[];return i.forEach(a=>{const s=n[a];if(a==="raw"){l.push(` +`+s+` +`);return}a=ff(a),s!=null&&l.push(` ${a}${Gg(s)}`)}),e&&l.push("}"),l.join(` +`)}function vl(e,t,o){e&&e.forEach(r=>{if(Array.isArray(r))vl(r,t,o);else if(typeof r=="function"){const n=r(t);Array.isArray(n)?vl(n,t,o):n&&o(n)}else r&&o(r)})}function df(e,t,o,r,n){const i=e.$;let l="";if(!i||typeof i=="string")yn(i)?l=i:t.push(i);else if(typeof i=="function"){const c=i({context:r.context,props:n});yn(c)?l=c:t.push(c)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")yn(i.$)?l=i.$:t.push(i.$);else if(i.$){const c=i.$({context:r.context,props:n});yn(c)?l=c:t.push(c)}const a=Ug(t),s=ws(a,e.props,r,n);l?o.push(`${l} {`):s.length&&o.push(s),e.children&&vl(e.children,{context:r.context,props:n},c=>{if(typeof c=="string"){const u=ws(a,{raw:c},r,n);o.push(u)}else df(c,t,o,r,n)}),t.pop(),l&&o.push("}"),i&&i.after&&i.after(r.context)}function Yg(e,t,o){const r=[];return df(e,[],r,t,o),r.join(` + +`)}function Sl(e){for(var t=0,o,r=0,n=e.length;n>=4;++r,n-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function qg(e,t,o,r){const{els:n}=t;if(o===void 0)n.forEach(As),t.els=[];else{const i=ia(o,r);i&&n.includes(i)&&(As(i),t.els=n.filter(l=>l!==i))}}function Ls(e,t){e.push(t)}function Xg(e,t,o,r,n,i,l,a,s){let c;if(o===void 0&&(c=t.render(r),o=Sl(c)),s){s.adapter(o,c??t.render(r));return}a===void 0&&(a=document.head);const u=ia(o,a);if(u!==null&&!i)return u;const f=u??Vg(o);if(c===void 0&&(c=t.render(r)),f.textContent=c,u!==null)return u;if(l){const d=a.querySelector(`meta[name="${l}"]`);if(d)return a.insertBefore(f,d),Ls(t.els,f),f}return n?a.insertBefore(f,a.querySelector("style, link")):a.appendChild(f),Ls(t.els,f),f}function Jg(e){return Yg(this,this.instance,e)}function Qg(e={}){const{id:t,ssr:o,props:r,head:n=!1,force:i=!1,anchorMetaName:l,parent:a}=e;return Xg(this.instance,this,t,r,n,i,l,a,o)}function Zg(e={}){const{id:t,parent:o}=e;qg(this.instance,this,t,o)}const En=function(e,t,o,r){return{instance:e,$:t,props:o,children:r,els:[],render:Jg,mount:Qg,unmount:Zg}},eC=function(e,t,o,r){return Array.isArray(t)?En(e,{$:null},null,t):Array.isArray(o)?En(e,t,null,o):Array.isArray(r)?En(e,t,o,r):En(e,t,o,null)};function tC(e={}){const t={c:((...o)=>eC(t,...o)),use:(o,...r)=>o.install(t,...r),find:ia,context:{},config:e};return t}const oC=".n-",rC="__",nC="--",pf=tC(),mf=Hg({blockPrefix:oC,elementPrefix:rC,modifierPrefix:nC});pf.use(mf);const{c:Ds,find:bT}=pf,{cB:xT,cE:_T,cM:vT,cNotM:ST}=mf;function yT(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}var hf=typeof global=="object"&&global&&global.Object===Object&&global,iC=typeof self=="object"&&self&&self.Object===Object&&self,Sr=hf||iC||Function("return this")(),Vn=Sr.Symbol,gf=Object.prototype,lC=gf.hasOwnProperty,aC=gf.toString,Rr=Vn?Vn.toStringTag:void 0;function sC(e){var t=lC.call(e,Rr),o=e[Rr];try{e[Rr]=void 0;var r=!0}catch{}var n=aC.call(e);return r&&(t?e[Rr]=o:delete e[Rr]),n}var cC=Object.prototype,uC=cC.toString;function fC(e){return uC.call(e)}var dC="[object Null]",pC="[object Undefined]",Rs=Vn?Vn.toStringTag:void 0;function xi(e){return e==null?e===void 0?pC:dC:Rs&&Rs in Object(e)?sC(e):fC(e)}function hn(e){return e!=null&&typeof e=="object"}var yl=Array.isArray;function or(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Cf(e){return e}var mC="[object AsyncFunction]",hC="[object Function]",gC="[object GeneratorFunction]",CC="[object Proxy]";function la(e){if(!or(e))return!1;var t=xi(e);return t==hC||t==gC||t==mC||t==CC}var qi=Sr["__core-js_shared__"],Fs=(function(){var e=/[^.]+$/.exec(qi&&qi.keys&&qi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function bC(e){return!!Fs&&Fs in e}var xC=Function.prototype,_C=xC.toString;function vC(e){if(e!=null){try{return _C.call(e)}catch{}try{return e+""}catch{}}return""}var SC=/[\\^$.*+?()[\]{}|]/g,yC=/^\[object .+?Constructor\]$/,EC=Function.prototype,TC=Object.prototype,PC=EC.toString,IC=TC.hasOwnProperty,AC=RegExp("^"+PC.call(IC).replace(SC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wC(e){if(!or(e)||bC(e))return!1;var t=la(e)?AC:yC;return t.test(vC(e))}function LC(e,t){return e?.[t]}function aa(e,t){var o=LC(e,t);return wC(o)?o:void 0}var Os=Object.create,DC=(function(){function e(){}return function(t){if(!or(t))return{};if(Os)return Os(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}})();function RC(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}function FC(e,t){var o=-1,r=e.length;for(t||(t=Array(r));++o0){if(++t>=OC)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function HC(e){return function(){return e}}var jn=(function(){try{var e=aa(Object,"defineProperty");return e({},"",{}),e}catch{}})(),$C=jn?function(e,t){return jn(e,"toString",{configurable:!0,enumerable:!1,value:HC(t),writable:!0})}:Cf,BC=kC($C),WC=9007199254740991,zC=/^(?:0|[1-9]\d*)$/;function bf(e,t){var o=typeof e;return t=t??WC,!!t&&(o=="number"||o!="symbol"&&zC.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=qC}function ca(e){return e!=null&&xf(e.length)&&!la(e)}function XC(e,t,o){if(!or(o))return!1;var r=typeof t;return(r=="number"?ca(o)&&bf(t,o.length):r=="string"&&t in o)?_i(o[t],e):!1}function JC(e){return YC(function(t,o){var r=-1,n=o.length,i=n>1?o[n-1]:void 0,l=n>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,l&&XC(o[0],o[1],l)&&(i=n<3?void 0:i,n=1),t=Object(t);++r-1}function ox(e,t){var o=this.__data__,r=vi(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}function ho(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t +${t} +`}function Hx(e,t,o){const{styles:r,ids:n}=o;n.has(e)||r!==null&&(n.add(e),r.push(kx(e,t)))}const $x=typeof document<"u";function Bx(){if($x)return;const e=Ze(Nx,null);if(e!==null)return{adapter:(t,o)=>Hx(t,o,e),context:e}}const js={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function Wx(e,t,o){t/=100,o/=100;let r=(n,i=(n+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function zx(e,t,o){t/=100,o/=100;let r=t*Math.min(o,1-o),n=(i,l=(i+e/30)%12)=>o-r*Math.max(Math.min(l-3,9-l,1),-1);return[n(0)*255,n(8)*255,n(4)*255]}const Yt="^\\s*",qt="\\s*$",wo="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",_t="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",qo="([0-9A-Fa-f])",Xo="([0-9A-Fa-f]{2})",Rf=new RegExp(`${Yt}hsl\\s*\\(${_t},${wo},${wo}\\)${qt}`),Ff=new RegExp(`${Yt}hsv\\s*\\(${_t},${wo},${wo}\\)${qt}`),Of=new RegExp(`${Yt}hsla\\s*\\(${_t},${wo},${wo},${_t}\\)${qt}`),Mf=new RegExp(`${Yt}hsva\\s*\\(${_t},${wo},${wo},${_t}\\)${qt}`),Ux=new RegExp(`${Yt}rgb\\s*\\(${_t},${_t},${_t}\\)${qt}`),Vx=new RegExp(`${Yt}rgba\\s*\\(${_t},${_t},${_t},${_t}\\)${qt}`),jx=new RegExp(`${Yt}#${qo}${qo}${qo}${qt}`),Gx=new RegExp(`${Yt}#${Xo}${Xo}${Xo}${qt}`),Kx=new RegExp(`${Yt}#${qo}${qo}${qo}${qo}${qt}`),Yx=new RegExp(`${Yt}#${Xo}${Xo}${Xo}${Xo}${qt}`);function dt(e){return parseInt(e,16)}function qx(e){try{let t;if(t=Of.exec(e))return[Gn(t[1]),Eo(t[5]),Eo(t[9]),Zo(t[13])];if(t=Rf.exec(e))return[Gn(t[1]),Eo(t[5]),Eo(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function Xx(e){try{let t;if(t=Mf.exec(e))return[Gn(t[1]),Eo(t[5]),Eo(t[9]),Zo(t[13])];if(t=Ff.exec(e))return[Gn(t[1]),Eo(t[5]),Eo(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function fo(e){try{let t;if(t=Gx.exec(e))return[dt(t[1]),dt(t[2]),dt(t[3]),1];if(t=Ux.exec(e))return[Xe(t[1]),Xe(t[5]),Xe(t[9]),1];if(t=Vx.exec(e))return[Xe(t[1]),Xe(t[5]),Xe(t[9]),Zo(t[13])];if(t=jx.exec(e))return[dt(t[1]+t[1]),dt(t[2]+t[2]),dt(t[3]+t[3]),1];if(t=Yx.exec(e))return[dt(t[1]),dt(t[2]),dt(t[3]),Zo(dt(t[4])/255)];if(t=Kx.exec(e))return[dt(t[1]+t[1]),dt(t[2]+t[2]),dt(t[3]+t[3]),Zo(dt(t[4]+t[4])/255)];if(e in js)return fo(js[e]);if(Rf.test(e)||Of.test(e)){const[o,r,n,i]=qx(e);return[...zx(o,r,n),i]}else if(Ff.test(e)||Mf.test(e)){const[o,r,n,i]=Xx(e);return[...Wx(o,r,n),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Jx(e){return e>1?1:e<0?0:e}function Al(e,t,o,r){return`rgba(${Xe(e)}, ${Xe(t)}, ${Xe(o)}, ${Jx(r)})`}function Ji(e,t,o,r,n){return Xe((e*t*(1-r)+o*r)/n)}function Z(e,t){Array.isArray(e)||(e=fo(e)),Array.isArray(t)||(t=fo(t));const o=e[3],r=t[3],n=Zo(o+r-o*r);return Al(Ji(e[0],o,t[0],r,n),Ji(e[1],o,t[1],r,n),Ji(e[2],o,t[2],r,n),n)}function J(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:fo(e);return typeof t.alpha=="number"?Al(o,r,n,t.alpha):Al(o,r,n,i)}function Me(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:fo(e),{lightness:l=1,alpha:a=1}=t;return Qx([o*l,r*l,n*l,i*a])}function Zo(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Gn(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function Xe(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Eo(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function Qx(e){const[t,o,r]=e;return 3 in e?`rgba(${Xe(t)}, ${Xe(o)}, ${Xe(r)}, ${Zo(e[3])})`:`rgba(${Xe(t)}, ${Xe(o)}, ${Xe(r)}, 1)`}const q={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},Zx=fo(q.neutralBase),Nf=fo(q.neutralInvertBase),e_=`rgba(${Nf.slice(0,3).join(", ")}, `;function he(e){return`${e_+String(e)})`}function t_(e){const t=Array.from(Nf);return t[3]=Number(e),Z(Zx,t)}const W={name:"common",...ua,baseColor:q.neutralBase,primaryColor:q.primaryDefault,primaryColorHover:q.primaryHover,primaryColorPressed:q.primaryActive,primaryColorSuppl:q.primarySuppl,infoColor:q.infoDefault,infoColorHover:q.infoHover,infoColorPressed:q.infoActive,infoColorSuppl:q.infoSuppl,successColor:q.successDefault,successColorHover:q.successHover,successColorPressed:q.successActive,successColorSuppl:q.successSuppl,warningColor:q.warningDefault,warningColorHover:q.warningHover,warningColorPressed:q.warningActive,warningColorSuppl:q.warningSuppl,errorColor:q.errorDefault,errorColorHover:q.errorHover,errorColorPressed:q.errorActive,errorColorSuppl:q.errorSuppl,textColorBase:q.neutralTextBase,textColor1:he(q.alpha1),textColor2:he(q.alpha2),textColor3:he(q.alpha3),textColorDisabled:he(q.alpha4),placeholderColor:he(q.alpha4),placeholderColorDisabled:he(q.alpha5),iconColor:he(q.alpha4),iconColorDisabled:he(q.alpha5),iconColorHover:he(Number(q.alpha4)*1.25),iconColorPressed:he(Number(q.alpha4)*.8),opacity1:q.alpha1,opacity2:q.alpha2,opacity3:q.alpha3,opacity4:q.alpha4,opacity5:q.alpha5,dividerColor:he(q.alphaDivider),borderColor:he(q.alphaBorder),closeIconColorHover:he(Number(q.alphaClose)),closeIconColor:he(Number(q.alphaClose)),closeIconColorPressed:he(Number(q.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:he(q.alpha4),clearColorHover:Me(he(q.alpha4),{alpha:1.25}),clearColorPressed:Me(he(q.alpha4),{alpha:.8}),scrollbarColor:he(q.alphaScrollbar),scrollbarColorHover:he(q.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:he(q.alphaProgressRail),railColor:he(q.alphaRail),popoverColor:q.neutralPopover,tableColor:q.neutralCard,cardColor:q.neutralCard,modalColor:q.neutralModal,bodyColor:q.neutralBody,tagColor:t_(q.alphaTag),avatarColor:he(q.alphaAvatar),invertedColor:q.neutralBase,inputColor:he(q.alphaInput),codeColor:he(q.alphaCode),tabColor:he(q.alphaTab),actionColor:he(q.alphaAction),tableHeaderColor:he(q.alphaAction),hoverColor:he(q.alphaPending),tableColorHover:he(q.alphaTablePending),tableColorStriped:he(q.alphaTableStriped),pressedColor:he(q.alphaPressed),opacityDisabled:q.alphaDisabled,inputColorDisabled:he(q.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"},re={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaAvatar:"0.2",alphaProgressRail:".08",alphaInput:"0",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},o_=fo(re.neutralBase),kf=fo(re.neutralInvertBase),r_=`rgba(${kf.slice(0,3).join(", ")}, `;function Gs(e){return`${r_+String(e)})`}function Ke(e){const t=Array.from(kf);return t[3]=Number(e),Z(o_,t)}const n_={name:"common",...ua,baseColor:re.neutralBase,primaryColor:re.primaryDefault,primaryColorHover:re.primaryHover,primaryColorPressed:re.primaryActive,primaryColorSuppl:re.primarySuppl,infoColor:re.infoDefault,infoColorHover:re.infoHover,infoColorPressed:re.infoActive,infoColorSuppl:re.infoSuppl,successColor:re.successDefault,successColorHover:re.successHover,successColorPressed:re.successActive,successColorSuppl:re.successSuppl,warningColor:re.warningDefault,warningColorHover:re.warningHover,warningColorPressed:re.warningActive,warningColorSuppl:re.warningSuppl,errorColor:re.errorDefault,errorColorHover:re.errorHover,errorColorPressed:re.errorActive,errorColorSuppl:re.errorSuppl,textColorBase:re.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Ke(re.alpha4),placeholderColor:Ke(re.alpha4),placeholderColorDisabled:Ke(re.alpha5),iconColor:Ke(re.alpha4),iconColorHover:Me(Ke(re.alpha4),{lightness:.75}),iconColorPressed:Me(Ke(re.alpha4),{lightness:.9}),iconColorDisabled:Ke(re.alpha5),opacity1:re.alpha1,opacity2:re.alpha2,opacity3:re.alpha3,opacity4:re.alpha4,opacity5:re.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Ke(Number(re.alphaClose)),closeIconColorHover:Ke(Number(re.alphaClose)),closeIconColorPressed:Ke(Number(re.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Ke(re.alpha4),clearColorHover:Me(Ke(re.alpha4),{lightness:.75}),clearColorPressed:Me(Ke(re.alpha4),{lightness:.9}),scrollbarColor:Gs(re.alphaScrollbar),scrollbarColorHover:Gs(re.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ke(re.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:re.neutralPopover,tableColor:re.neutralCard,cardColor:re.neutralCard,modalColor:re.neutralModal,bodyColor:re.neutralBody,tagColor:"#eee",avatarColor:Ke(re.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Ke(re.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:re.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"},i_={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function l_(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:r,scrollbarWidth:n,scrollbarBorderRadius:i}=e;return{...i_,height:r,width:n,borderRadius:i,color:t,colorHover:o}}const et={name:"Scrollbar",common:W,self:l_};var a_={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function Hf(e){const{textColorDisabled:t,iconColor:o,textColor2:r,fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s}=e;return{...a_,fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:o,extraTextColor:r}}const s_={name:"Empty",common:n_,self:Hf},rr={name:"Empty",common:W,self:Hf};function c_(e,t,o,r,n,i){const l=Bx(),a=Ze(Il,null);if(o){const s=()=>{const c=i?.value;o.mount({id:c===void 0?t:c+t,head:!0,props:{bPrefix:c?`.${c}-`:void 0},anchorMetaName:Vs,ssr:l,parent:a?.styleMountTarget}),a?.preflightStyleDisabled||Mx.mount({id:"n-global",head:!0,anchorMetaName:Vs,ssr:l,parent:a?.styleMountTarget})};l?s():Jl(s)}return fe(()=>{const{theme:{common:s,self:c,peers:u={}}={},themeOverrides:f={},builtinThemeOverrides:d={}}=n,{common:p,peers:g}=f,{common:C=void 0,[e]:{common:S=void 0,self:E=void 0,peers:T={}}={}}=a?.mergedThemeRef.value||{},{common:v=void 0,[e]:y={}}=a?.mergedThemeOverridesRef.value||{},{common:w,peers:L={}}=y,D=kr({},s||S||C||r.common,v,w,p);return{common:D,self:kr((c||E||r.self)?.(D),d,y,f),peers:kr({},r.peers,T,u),peerOverrides:kr({},d.peers,L,g)}})}c_.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};var u_={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function f_(e){const{borderRadius:t,popoverColor:o,textColor3:r,dividerColor:n,textColor2:i,primaryColorPressed:l,textColorDisabled:a,primaryColor:s,opacityDisabled:c,hoverColor:u,fontSizeTiny:f,fontSizeSmall:d,fontSizeMedium:p,fontSizeLarge:g,fontSizeHuge:C,heightTiny:S,heightSmall:E,heightMedium:T,heightLarge:v,heightHuge:y}=e;return{...u_,optionFontSizeTiny:f,optionFontSizeSmall:d,optionFontSizeMedium:p,optionFontSizeLarge:g,optionFontSizeHuge:C,optionHeightTiny:S,optionHeightSmall:E,optionHeightMedium:T,optionHeightLarge:v,optionHeightHuge:y,borderRadius:t,color:o,groupHeaderTextColor:r,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:l,optionTextColorDisabled:a,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:i,loadingColor:s}}const gn={name:"InternalSelectMenu",common:W,peers:{Scrollbar:et,Empty:rr},self:f_};var d_={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function p_(e){const{boxShadow2:t,popoverColor:o,textColor2:r,borderRadius:n,fontSize:i,dividerColor:l}=e;return{...d_,fontSize:i,borderRadius:n,color:o,dividerColor:l,textColor:r,boxShadow:t}}const nr={name:"Popover",common:W,peers:{Scrollbar:et},self:p_};function Ks(e){const t=fe(e),o=mt(t.value);return St(t,r=>{o.value=r}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(r){e.set(r)}}}var m_={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"};const $f={name:"Tag",common:W,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:l,warningColor:a,errorColor:s,baseColor:c,borderColor:u,tagColor:f,opacityDisabled:d,closeIconColor:p,closeIconColorHover:g,closeIconColorPressed:C,closeColorHover:S,closeColorPressed:E,borderRadiusSmall:T,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:w,fontSizeMedium:L,heightMini:D,heightTiny:F,heightSmall:P,heightMedium:U,buttonColor2Hover:X,buttonColor2Pressed:k,fontWeightStrong:Q}=e;return{...m_,closeBorderRadius:T,heightTiny:D,heightSmall:F,heightMedium:P,heightLarge:U,borderRadius:T,opacityDisabled:d,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:w,fontSizeLarge:L,fontWeightStrong:Q,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:X,colorPressedCheckable:k,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:g,closeIconColorPressed:C,closeColorHover:S,closeColorPressed:E,borderPrimary:`1px solid ${J(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:J(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:Me(n,{lightness:.7}),closeIconColorHoverPrimary:Me(n,{lightness:.7}),closeIconColorPressedPrimary:Me(n,{lightness:.7}),closeColorHoverPrimary:J(n,{alpha:.16}),closeColorPressedPrimary:J(n,{alpha:.12}),borderInfo:`1px solid ${J(i,{alpha:.3})}`,textColorInfo:i,colorInfo:J(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:Me(i,{alpha:.7}),closeIconColorHoverInfo:Me(i,{alpha:.7}),closeIconColorPressedInfo:Me(i,{alpha:.7}),closeColorHoverInfo:J(i,{alpha:.16}),closeColorPressedInfo:J(i,{alpha:.12}),borderSuccess:`1px solid ${J(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:J(l,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:Me(l,{alpha:.7}),closeIconColorHoverSuccess:Me(l,{alpha:.7}),closeIconColorPressedSuccess:Me(l,{alpha:.7}),closeColorHoverSuccess:J(l,{alpha:.16}),closeColorPressedSuccess:J(l,{alpha:.12}),borderWarning:`1px solid ${J(a,{alpha:.3})}`,textColorWarning:a,colorWarning:J(a,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:Me(a,{alpha:.7}),closeIconColorHoverWarning:Me(a,{alpha:.7}),closeIconColorPressedWarning:Me(a,{alpha:.7}),closeColorHoverWarning:J(a,{alpha:.16}),closeColorPressedWarning:J(a,{alpha:.11}),borderError:`1px solid ${J(s,{alpha:.3})}`,textColorError:s,colorError:J(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:Me(s,{alpha:.7}),closeIconColorHoverError:Me(s,{alpha:.7}),closeIconColorPressedError:Me(s,{alpha:.7}),closeColorHoverError:J(s,{alpha:.16}),closeColorPressedError:J(s,{alpha:.12})}}};var h_={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};const fa={name:"InternalSelection",common:W,peers:{Popover:nr},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:i,primaryColor:l,primaryColorHover:a,warningColor:s,warningColorHover:c,errorColor:u,errorColorHover:f,iconColor:d,iconColorDisabled:p,clearColor:g,clearColorHover:C,clearColorPressed:S,placeholderColor:E,placeholderColorDisabled:T,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:w,fontSizeLarge:L,heightTiny:D,heightSmall:F,heightMedium:P,heightLarge:U,fontWeight:X}=e;return{...h_,fontWeight:X,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:w,fontSizeLarge:L,heightTiny:D,heightSmall:F,heightMedium:P,heightLarge:U,borderRadius:t,textColor:o,textColorDisabled:r,placeholderColor:E,placeholderColorDisabled:T,color:n,colorDisabled:i,colorActive:J(l,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${a}`,borderActive:`1px solid ${l}`,borderFocus:`1px solid ${a}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${J(l,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${J(l,{alpha:.4})}`,caretColor:l,arrowColor:d,arrowColorDisabled:p,loadingColor:l,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${J(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${J(s,{alpha:.4})}`,colorActiveWarning:J(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${J(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${J(u,{alpha:.4})}`,colorActiveError:J(u,{alpha:.1}),caretColorError:u,clearColor:g,clearColorHover:C,clearColorPressed:S}}};var g_={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"};const C_={name:"Alert",common:W,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,dividerColor:n,inputColor:i,textColor1:l,textColor2:a,closeColorHover:s,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,infoColorSuppl:p,successColorSuppl:g,warningColorSuppl:C,errorColorSuppl:S,fontSize:E}=e;return{...g_,fontSize:E,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${n}`,color:i,titleTextColor:l,iconColor:a,contentTextColor:a,closeBorderRadius:o,closeColorHover:s,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,borderInfo:`1px solid ${J(p,{alpha:.35})}`,colorInfo:J(p,{alpha:.25}),titleTextColorInfo:l,iconColorInfo:p,contentTextColorInfo:a,closeColorHoverInfo:s,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:f,closeIconColorPressedInfo:d,borderSuccess:`1px solid ${J(g,{alpha:.35})}`,colorSuccess:J(g,{alpha:.25}),titleTextColorSuccess:l,iconColorSuccess:g,contentTextColorSuccess:a,closeColorHoverSuccess:s,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:d,borderWarning:`1px solid ${J(C,{alpha:.35})}`,colorWarning:J(C,{alpha:.25}),titleTextColorWarning:l,iconColorWarning:C,contentTextColorWarning:a,closeColorHoverWarning:s,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:f,closeIconColorPressedWarning:d,borderError:`1px solid ${J(S,{alpha:.35})}`,colorError:J(S,{alpha:.25}),titleTextColorError:l,iconColorError:S,contentTextColorError:a,closeColorHoverError:s,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:f,closeIconColorPressedError:d}}};var b_={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function x_(e){const{borderRadius:t,railColor:o,primaryColor:r,primaryColorHover:n,primaryColorPressed:i,textColor2:l}=e;return{...b_,borderRadius:t,railColor:o,railColorActive:r,linkColor:J(r,{alpha:.15}),linkTextColor:l,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:r}}const __={name:"Anchor",common:W,self:x_};var v_={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};function S_(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:l,inputColorDisabled:a,warningColor:s,warningColorHover:c,errorColor:u,errorColorHover:f,borderRadius:d,lineHeight:p,fontSizeTiny:g,fontSizeSmall:C,fontSizeMedium:S,fontSizeLarge:E,heightTiny:T,heightSmall:v,heightMedium:y,heightLarge:w,clearColor:L,clearColorHover:D,clearColorPressed:F,placeholderColor:P,placeholderColorDisabled:U,iconColor:X,iconColorDisabled:k,iconColorHover:Q,iconColorPressed:me,fontWeight:ye}=e;return{...v_,fontWeight:ye,countTextColorDisabled:r,countTextColor:o,heightTiny:T,heightSmall:v,heightMedium:y,heightLarge:w,fontSizeTiny:g,fontSizeSmall:C,fontSizeMedium:S,fontSizeLarge:E,lineHeight:p,lineHeightTextarea:p,borderRadius:d,iconSize:"16px",groupLabelColor:l,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:P,placeholderColorDisabled:U,color:l,colorHover:l,colorDisabled:a,colorFocus:J(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${J(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:J(s,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${J(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:J(u,{alpha:.1}),borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 8px 0 ${J(u,{alpha:.3})}`,caretColorError:u,clearColor:L,clearColorHover:D,clearColorPressed:F,iconColor:X,iconColorDisabled:k,iconColorHover:Q,iconColorPressed:me,suffixTextColor:t}}const Et={name:"Input",common:W,peers:{Scrollbar:et},self:S_};function y_(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const E_={name:"AutoComplete",common:W,peers:{InternalSelectMenu:gn,Input:Et},self:y_};function T_(e){const{borderRadius:t,avatarColor:o,cardColor:r,fontSize:n,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:c,modalColor:u,popoverColor:f}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${r}`,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:c,color:Z(r,o),colorModal:Z(u,o),colorPopover:Z(f,o)}}const Bf={name:"Avatar",common:W,self:T_};function P_(){return{gap:"-12px"}}var I_={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"};const A_={name:"BackTop",common:W,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:r,primaryColorPressed:n}=e;return{...I_,color:t,textColor:o,iconColor:o,iconColorHover:r,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"}}},w_={name:"Badge",common:W,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:r,warningColorSuppl:n,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:r,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}};var L_={fontWeightActive:"400"};function D_(e){const{fontSize:t,textColor3:o,textColor2:r,borderRadius:n,buttonColor2Hover:i,buttonColor2Pressed:l}=e;return{...L_,fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:n,itemColorHover:i,itemColorPressed:l,separatorColor:o}}const R_={name:"Breadcrumb",common:W,self:D_};var F_={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function O_(e){const{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadius:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:d,primaryColorHover:p,primaryColorPressed:g,borderColor:C,primaryColor:S,baseColor:E,infoColor:T,infoColorHover:v,infoColorPressed:y,successColor:w,successColorHover:L,successColorPressed:D,warningColor:F,warningColorHover:P,warningColorPressed:U,errorColor:X,errorColorHover:k,errorColorPressed:Q,fontWeight:me,buttonColor2:ye,buttonColor2Hover:se,buttonColor2Pressed:ne,fontWeightStrong:de}=e;return{...F_,heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:ye,colorSecondaryHover:se,colorSecondaryPressed:ne,colorTertiary:ye,colorTertiaryHover:se,colorTertiaryPressed:ne,colorQuaternary:"#0000",colorQuaternaryHover:se,colorQuaternaryPressed:ne,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:d,textColorHover:p,textColorPressed:g,textColorFocus:p,textColorDisabled:f,textColorText:f,textColorTextHover:p,textColorTextPressed:g,textColorTextFocus:p,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:p,textColorGhostPressed:g,textColorGhostFocus:p,textColorGhostDisabled:f,border:`1px solid ${C}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${g}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${C}`,rippleColor:S,colorPrimary:S,colorHoverPrimary:p,colorPressedPrimary:g,colorFocusPrimary:p,colorDisabledPrimary:S,textColorPrimary:E,textColorHoverPrimary:E,textColorPressedPrimary:E,textColorFocusPrimary:E,textColorDisabledPrimary:E,textColorTextPrimary:S,textColorTextHoverPrimary:p,textColorTextPressedPrimary:g,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:f,textColorGhostPrimary:S,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:g,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:S,borderPrimary:`1px solid ${S}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${g}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${S}`,rippleColorPrimary:S,colorInfo:T,colorHoverInfo:v,colorPressedInfo:y,colorFocusInfo:v,colorDisabledInfo:T,textColorInfo:E,textColorHoverInfo:E,textColorPressedInfo:E,textColorFocusInfo:E,textColorDisabledInfo:E,textColorTextInfo:T,textColorTextHoverInfo:v,textColorTextPressedInfo:y,textColorTextFocusInfo:v,textColorTextDisabledInfo:f,textColorGhostInfo:T,textColorGhostHoverInfo:v,textColorGhostPressedInfo:y,textColorGhostFocusInfo:v,textColorGhostDisabledInfo:T,borderInfo:`1px solid ${T}`,borderHoverInfo:`1px solid ${v}`,borderPressedInfo:`1px solid ${y}`,borderFocusInfo:`1px solid ${v}`,borderDisabledInfo:`1px solid ${T}`,rippleColorInfo:T,colorSuccess:w,colorHoverSuccess:L,colorPressedSuccess:D,colorFocusSuccess:L,colorDisabledSuccess:w,textColorSuccess:E,textColorHoverSuccess:E,textColorPressedSuccess:E,textColorFocusSuccess:E,textColorDisabledSuccess:E,textColorTextSuccess:w,textColorTextHoverSuccess:L,textColorTextPressedSuccess:D,textColorTextFocusSuccess:L,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:L,textColorGhostPressedSuccess:D,textColorGhostFocusSuccess:L,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${L}`,borderPressedSuccess:`1px solid ${D}`,borderFocusSuccess:`1px solid ${L}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:F,colorHoverWarning:P,colorPressedWarning:U,colorFocusWarning:P,colorDisabledWarning:F,textColorWarning:E,textColorHoverWarning:E,textColorPressedWarning:E,textColorFocusWarning:E,textColorDisabledWarning:E,textColorTextWarning:F,textColorTextHoverWarning:P,textColorTextPressedWarning:U,textColorTextFocusWarning:P,textColorTextDisabledWarning:f,textColorGhostWarning:F,textColorGhostHoverWarning:P,textColorGhostPressedWarning:U,textColorGhostFocusWarning:P,textColorGhostDisabledWarning:F,borderWarning:`1px solid ${F}`,borderHoverWarning:`1px solid ${P}`,borderPressedWarning:`1px solid ${U}`,borderFocusWarning:`1px solid ${P}`,borderDisabledWarning:`1px solid ${F}`,rippleColorWarning:F,colorError:X,colorHoverError:k,colorPressedError:Q,colorFocusError:k,colorDisabledError:X,textColorError:E,textColorHoverError:E,textColorPressedError:E,textColorFocusError:E,textColorDisabledError:E,textColorTextError:X,textColorTextHoverError:k,textColorTextPressedError:Q,textColorTextFocusError:k,textColorTextDisabledError:f,textColorGhostError:X,textColorGhostHoverError:k,textColorGhostPressedError:Q,textColorGhostFocusError:k,textColorGhostDisabledError:X,borderError:`1px solid ${X}`,borderHoverError:`1px solid ${k}`,borderPressedError:`1px solid ${Q}`,borderFocusError:`1px solid ${k}`,borderDisabledError:`1px solid ${X}`,rippleColorError:X,waveOpacity:"0.6",fontWeight:me,fontWeightStrong:de}}const ut={name:"Button",common:W,self(e){const t=O_(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}};var M_={titleFontSize:"22px"};function N_(e){const{borderRadius:t,fontSize:o,lineHeight:r,textColor2:n,textColor1:i,textColorDisabled:l,dividerColor:a,fontWeightStrong:s,primaryColor:c,baseColor:u,hoverColor:f,cardColor:d,modalColor:p,popoverColor:g}=e;return{...M_,borderRadius:t,borderColor:Z(d,a),borderColorModal:Z(p,a),borderColorPopover:Z(g,a),textColor:n,titleFontWeight:s,titleTextColor:i,dayTextColor:l,fontSize:o,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:u,cellColorHover:Z(d,f),cellColorHoverModal:Z(p,f),cellColorHoverPopover:Z(g,f),cellColor:d,cellColorModal:p,cellColorPopover:g,barColor:c}}var k_={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function H_(e){const{primaryColor:t,borderRadius:o,lineHeight:r,fontSize:n,cardColor:i,textColor2:l,textColor1:a,dividerColor:s,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,closeColorHover:p,closeColorPressed:g,modalColor:C,boxShadow1:S,popoverColor:E,actionColor:T}=e;return{...k_,lineHeight:r,color:i,colorModal:C,colorPopover:E,colorTarget:t,colorEmbedded:T,colorEmbeddedModal:T,colorEmbeddedPopover:T,textColor:l,titleTextColor:a,borderColor:s,actionColor:T,titleFontWeight:c,closeColorHover:p,closeColorPressed:g,closeBorderRadius:o,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:S,borderRadius:o}}const Wf={name:"Card",common:W,self(e){const t=H_(e),{cardColor:o,modalColor:r,popoverColor:n}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=n,t}};function $_(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}var B_={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function W_(e){const{baseColor:t,inputColorDisabled:o,cardColor:r,modalColor:n,popoverColor:i,textColorDisabled:l,borderColor:a,primaryColor:s,textColor2:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,borderRadiusSmall:p,lineHeight:g}=e;return{...B_,labelLineHeight:g,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,borderRadius:p,color:t,colorChecked:s,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:r,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:l,checkMarkColorDisabledChecked:l,border:`1px solid ${a}`,borderDisabled:`1px solid ${a}`,borderDisabledChecked:`1px solid ${a}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${J(s,{alpha:.3})}`,textColor:c,textColorDisabled:l}}const Tr={name:"Checkbox",common:W,self(e){const{cardColor:t}=e,o=W_(e);return o.color="#0000",o.checkMarkColor=t,o}};function z_(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n,textColor3:i,primaryColor:l,textColorDisabled:a,dividerColor:s,hoverColor:c,fontSizeMedium:u,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:o,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:u,optionColorHover:c,optionTextColor:n,optionTextColorActive:l,optionTextColorDisabled:a,optionCheckMarkColor:l,loadingColor:l,columnWidth:"180px"}}const U_={name:"Cascader",common:W,peers:{InternalSelectMenu:gn,InternalSelection:fa,Scrollbar:et,Checkbox:Tr,Empty:s_},self:z_},zf={name:"Code",common:W,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:r,textColor3:n}=e;return{textColor:t,fontSize:o,fontWeightStrong:r,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}};function V_(e){const{fontWeight:t,textColor1:o,textColor2:r,textColorDisabled:n,dividerColor:i,fontSize:l}=e;return{titleFontSize:l,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:n,fontSize:l,textColor:r,arrowColor:r,arrowColorDisabled:n,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const j_={name:"Collapse",common:W,self:V_};function G_(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}function K_(e){const{fontSize:t,boxShadow2:o,popoverColor:r,textColor2:n,borderRadius:i,borderColor:l,heightSmall:a,heightMedium:s,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,dividerColor:p}=e;return{panelFontSize:t,boxShadow:o,color:r,textColor:n,borderRadius:i,border:`1px solid ${l}`,heightSmall:a,heightMedium:s,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,dividerColor:p}}const Y_={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Dx("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}};var q_=po({name:"ConfigProvider",alias:["App"],props:Y_,setup(e){const t=Ze(Il,null),o=fe(()=>{const{theme:C}=e;if(C===null)return;const S=t?.mergedThemeRef.value;return C===void 0?S:S===void 0?C:Object.assign({},S,C)}),r=fe(()=>{const{themeOverrides:C}=e;if(C!==null){if(C===void 0)return t?.mergedThemeOverridesRef.value;{const S=t?.mergedThemeOverridesRef.value;return S===void 0?C:kr({},S,C)}}}),n=Ks(()=>{const{namespace:C}=e;return C===void 0?t?.mergedNamespaceRef.value:C}),i=Ks(()=>{const{bordered:C}=e;return C===void 0?t?.mergedBorderedRef.value:C}),l=fe(()=>{const{icons:C}=e;return C===void 0?t?.mergedIconsRef.value:C}),a=fe(()=>{const{componentOptions:C}=e;return C!==void 0?C:t?.mergedComponentPropsRef.value}),s=fe(()=>{const{clsPrefix:C}=e;return C!==void 0?C:t?t.mergedClsPrefixRef.value:"n"}),c=fe(()=>{const{rtl:C}=e;if(C===void 0)return t?.mergedRtlRef.value;const S={};for(const E of C)S[E.name]=qr(E),E.peers?.forEach(T=>{T.name in S||(S[T.name]=qr(T))});return S}),u=fe(()=>e.breakpoints||t?.mergedBreakpointsRef.value),f=e.inlineThemeDisabled||t?.inlineThemeDisabled,d=e.preflightStyleDisabled||t?.preflightStyleDisabled,p=e.styleMountTarget||t?.styleMountTarget,g=fe(()=>{const{value:C}=o,{value:S}=r,E=S&&Object.keys(S).length!==0,T=C?.name;return T?E?`${T}-${Sl(JSON.stringify(r.value))}`:T:E?Sl(JSON.stringify(r.value)):""});return Wr(Il,{mergedThemeHashRef:g,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:l,mergedComponentPropsRef:a,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:s,mergedLocaleRef:fe(()=>{const{locale:C}=e;if(C!==null)return C===void 0?t?.mergedLocaleRef.value:C}),mergedDateLocaleRef:fe(()=>{const{dateLocale:C}=e;if(C!==null)return C===void 0?t?.mergedDateLocaleRef.value:C}),mergedHljsRef:fe(()=>{const{hljs:C}=e;return C===void 0?t?.mergedHljsRef.value:C}),mergedKatexRef:fe(()=>{const{katex:C}=e;return C===void 0?t?.mergedKatexRef.value:C}),mergedThemeRef:o,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:d||!1,styleMountTarget:p}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:n,mergedTheme:o,mergedThemeOverrides:r}},render(){return this.abstract?this.$slots.default?.():vr(this.as||this.tag,{class:`${this.mergedClsPrefix||"n"}-config-provider`},this.$slots.default?.())}});const Uf={name:"Popselect",common:W,peers:{Popover:nr,InternalSelectMenu:gn}};function X_(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Vf={name:"Select",common:W,peers:{InternalSelection:fa,InternalSelectMenu:gn},self:X_};var J_={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function Q_(e){const{textColor2:t,primaryColor:o,primaryColorHover:r,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:l,borderColor:a,borderRadius:s,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:f,heightTiny:d,heightSmall:p,heightMedium:g}=e;return{...J_,buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${a}`,buttonBorderHover:`1px solid ${a}`,buttonBorderPressed:`1px solid ${a}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:n,itemTextColorActive:o,itemTextColorDisabled:l,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${a}`,itemBorderRadius:s,itemSizeSmall:d,itemSizeMedium:p,itemSizeLarge:g,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:l}}const jf={name:"Pagination",common:W,peers:{Select:Vf,Input:Et,Popselect:Uf},self(e){const{primaryColor:t,opacity3:o}=e,r=J(t,{alpha:Number(o)}),n=Q_(e);return n.itemBorderActive=`1px solid ${r}`,n.itemBorderDisabled="1px solid #0000",n}};var Z_={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function ev(e){const{primaryColor:t,textColor2:o,dividerColor:r,hoverColor:n,popoverColor:i,invertedColor:l,borderRadius:a,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,heightSmall:d,heightMedium:p,heightLarge:g,heightHuge:C,textColor3:S,opacityDisabled:E}=e;return{...Z_,optionHeightSmall:d,optionHeightMedium:p,optionHeightLarge:g,optionHeightHuge:C,borderRadius:a,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:o,prefixColor:o,optionColorHover:n,optionColorActive:J(t,{alpha:.1}),groupHeaderTextColor:S,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:l,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:E}}const da={name:"Dropdown",common:W,peers:{Popover:nr},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:r}=e,n=ev(e);return n.colorInverted=r,n.optionColorActive=J(o,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}};var tv={padding:"8px 14px"};const yi={name:"Tooltip",common:W,peers:{Popover:nr},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n}=e;return{...tv,borderRadius:t,boxShadow:o,color:r,textColor:n}}};var ov={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};const Gf={name:"Radio",common:W,self(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:i,textColor2:l,opacityDisabled:a,borderRadius:s,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,heightSmall:d,heightMedium:p,heightLarge:g,lineHeight:C}=e;return{...ov,labelLineHeight:C,buttonHeightSmall:d,buttonHeightMedium:p,buttonHeightLarge:g,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${J(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:l,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:l,buttonTextColorActive:r,buttonTextColorHover:o,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${J(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s}}},Kf={name:"Ellipsis",common:W,peers:{Tooltip:yi}};var rv={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function nv(e){const{cardColor:t,modalColor:o,popoverColor:r,textColor2:n,textColor1:i,tableHeaderColor:l,tableColorHover:a,iconColor:s,primaryColor:c,fontWeightStrong:u,borderRadius:f,lineHeight:d,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:C,dividerColor:S,heightSmall:E,opacityDisabled:T,tableColorStriped:v}=e;return{...rv,actionDividerColor:S,lineHeight:d,borderRadius:f,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:C,borderColor:Z(t,S),tdColorHover:Z(t,a),tdColorSorting:Z(t,a),tdColorStriped:Z(t,v),thColor:Z(t,l),thColorHover:Z(Z(t,l),a),thColorSorting:Z(Z(t,l),a),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:u,thButtonColorHover:a,thIconColor:s,thIconColorActive:c,borderColorModal:Z(o,S),tdColorHoverModal:Z(o,a),tdColorSortingModal:Z(o,a),tdColorStripedModal:Z(o,v),thColorModal:Z(o,l),thColorHoverModal:Z(Z(o,l),a),thColorSortingModal:Z(Z(o,l),a),tdColorModal:o,borderColorPopover:Z(r,S),tdColorHoverPopover:Z(r,a),tdColorSortingPopover:Z(r,a),tdColorStripedPopover:Z(r,v),thColorPopover:Z(r,l),thColorHoverPopover:Z(Z(r,l),a),thColorSortingPopover:Z(Z(r,l),a),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:E,opacityLoading:T}}const iv={name:"DataTable",common:W,peers:{Button:ut,Checkbox:Tr,Radio:Gf,Pagination:jf,Scrollbar:et,Empty:rr,Popover:nr,Ellipsis:Kf,Dropdown:da},self(e){const t=nv(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}};function lv(e){const{textColorBase:t,opacity1:o,opacity2:r,opacity3:n,opacity4:i,opacity5:l}=e;return{color:t,opacity1Depth:o,opacity2Depth:r,opacity3Depth:n,opacity4Depth:i,opacity5Depth:l}}const av={name:"Icon",common:W,self:lv};var sv={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function cv(e){const{popoverColor:t,textColor2:o,primaryColor:r,hoverColor:n,dividerColor:i,opacityDisabled:l,boxShadow2:a,borderRadius:s,iconColor:c,iconColorDisabled:u}=e;return{...sv,panelColor:t,panelBoxShadow:a,panelDividerColor:i,itemTextColor:o,itemTextColorActive:r,itemColorHover:n,itemOpacityDisabled:l,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:u}}const Yf={name:"TimePicker",common:W,peers:{Scrollbar:et,Button:ut,Input:Et},self:cv};var uv={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function fv(e){const{hoverColor:t,fontSize:o,textColor2:r,textColorDisabled:n,popoverColor:i,primaryColor:l,borderRadiusSmall:a,iconColor:s,iconColorDisabled:c,textColor1:u,dividerColor:f,boxShadow2:d,borderRadius:p,fontWeightStrong:g}=e;return{...uv,itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:r,itemTextColorDisabled:n,itemTextColorActive:i,itemTextColorCurrent:l,itemColorIncluded:J(l,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:l,itemBorderRadius:a,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:d,panelBorderRadius:p,calendarTitleFontWeight:g,scrollItemBorderRadius:p,iconColor:s,iconColorDisabled:c}}const dv={name:"DatePicker",common:W,peers:{Input:Et,Button:ut,TimePicker:Yf,Scrollbar:et},self(e){const{popoverColor:t,hoverColor:o,primaryColor:r}=e,n=fv(e);return n.itemColorDisabled=Z(t,o),n.itemColorIncluded=J(r,{alpha:.15}),n.itemColorHover=Z(t,o),n}};var pv={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function mv(e){const{tableHeaderColor:t,textColor2:o,textColor1:r,cardColor:n,modalColor:i,popoverColor:l,dividerColor:a,borderRadius:s,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:d,fontSizeLarge:p}=e;return{...pv,lineHeight:u,fontSizeSmall:f,fontSizeMedium:d,fontSizeLarge:p,titleTextColor:r,thColor:Z(n,t),thColorModal:Z(i,t),thColorPopover:Z(l,t),thTextColor:r,thFontWeight:c,tdTextColor:o,tdColor:n,tdColorModal:i,tdColorPopover:l,borderColor:Z(n,a),borderColorModal:Z(i,a),borderColorPopover:Z(l,a),borderRadius:s}}const hv={name:"Descriptions",common:W,self:mv};var gv={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function Cv(e){const{textColor1:t,textColor2:o,modalColor:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,infoColor:c,successColor:u,warningColor:f,errorColor:d,primaryColor:p,dividerColor:g,borderRadius:C,fontWeightStrong:S,lineHeight:E,fontSize:T}=e;return{...gv,fontSize:T,lineHeight:E,border:`1px solid ${g}`,titleTextColor:t,textColor:o,color:r,closeColorHover:a,closeColorPressed:s,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeBorderRadius:C,iconColor:p,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:d,borderRadius:C,titleFontWeight:S}}const qf={name:"Dialog",common:W,peers:{Button:ut},self:Cv};function bv(e){const{modalColor:t,textColor2:o,boxShadow3:r}=e;return{color:t,textColor:o,boxShadow:r}}const xv={name:"Modal",common:W,peers:{Scrollbar:et,Dialog:qf,Card:Wf},self:bv},_v={name:"LoadingBar",common:W,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};var vv={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function Sv(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,infoColor:i,successColor:l,errorColor:a,warningColor:s,popoverColor:c,boxShadow2:u,primaryColor:f,lineHeight:d,borderRadius:p,closeColorHover:g,closeColorPressed:C}=e;return{...vv,closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:l,iconColorWarning:s,iconColorError:a,iconColorLoading:f,closeColorHover:g,closeColorPressed:C,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,closeColorHoverInfo:g,closeColorPressedInfo:C,closeIconColorInfo:o,closeIconColorHoverInfo:r,closeIconColorPressedInfo:n,closeColorHoverSuccess:g,closeColorPressedSuccess:C,closeIconColorSuccess:o,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:n,closeColorHoverError:g,closeColorPressedError:C,closeIconColorError:o,closeIconColorHoverError:r,closeIconColorPressedError:n,closeColorHoverWarning:g,closeColorPressedWarning:C,closeIconColorWarning:o,closeIconColorHoverWarning:r,closeIconColorPressedWarning:n,closeColorHoverLoading:g,closeColorPressedLoading:C,closeIconColorLoading:o,closeIconColorHoverLoading:r,closeIconColorPressedLoading:n,loadingColor:f,lineHeight:d,borderRadius:p,border:"0"}}const yv={name:"Message",common:W,self:Sv};var Ev={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function Tv(e){const{textColor2:t,successColor:o,infoColor:r,warningColor:n,errorColor:i,popoverColor:l,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:f,textColor1:d,textColor3:p,borderRadius:g,fontWeightStrong:C,boxShadow2:S,lineHeight:E,fontSize:T}=e;return{...Ev,borderRadius:g,lineHeight:E,fontSize:T,headerFontWeight:C,iconColor:t,iconColorSuccess:o,iconColorInfo:r,iconColorWarning:n,iconColorError:i,color:l,textColor:t,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:g,closeColorHover:u,closeColorPressed:f,headerTextColor:d,descriptionTextColor:p,actionTextColor:t,boxShadow:S}}const Pv={name:"Notification",common:W,peers:{Scrollbar:et},self:Tv};function Iv(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const Av={name:"Divider",common:W,self:Iv};function wv(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,borderRadius:p,primaryColorHover:g}=e;return{bodyPadding:"16px 24px",borderRadius:p,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:g}}const Lv={name:"Drawer",common:W,peers:{Scrollbar:et},self:wv};var Dv={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const Rv={name:"DynamicInput",common:W,peers:{Input:Et,Button:ut},self(){return Dv}};var Fv={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const Xf={name:"Space",self(){return Fv}},Ov={name:"DynamicTags",common:W,peers:{Input:Et,Button:ut,Tag:$f,Space:Xf},self(){return{inputWidth:"64px"}}},Mv={name:"Element",common:W};var Nv={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const kv={name:"Flex",self(){return Nv}},Hv={name:"ButtonGroup",common:W};var $v={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function Bv(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...$v,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const Wv={name:"Form",common:W,self:Bv},zv={name:"GradientText",common:W,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:c,infoColorSuppl:u,fontWeightStrong:f}=e;return{fontWeight:f,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:u,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:c,colorStartSuccess:o,colorEndSuccess:a}}},Uv={name:"InputNumber",common:W,peers:{Button:ut,Input:Et},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function Vv(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const jv={name:"InputOtp",common:W,peers:{Input:Et},self:Vv},Gv={name:"Layout",common:W,peers:{Scrollbar:et},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Z(o,l),siderToggleBarColorHover:Z(o,a),__invertScrollbar:"false"}}};function Kv(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Z(r,s),colorPopover:n,colorHoverPopover:Z(n,s),borderColor:i,borderColorModal:Z(r,i),borderColorPopover:Z(n,i),borderRadius:l,fontSize:a}}const Yv={name:"List",common:W,self:Kv},qv={name:"Log",common:W,peers:{Scrollbar:et,Code:zf},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},Xv={name:"Mention",common:W,peers:{InternalSelectMenu:gn,Input:Et},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function Jv(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function Qv(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:c}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:J(r,{alpha:.1}),itemColorActiveHover:J(r,{alpha:.1}),itemColorActiveCollapsed:J(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...Jv("#BBB",r,"#FFF","#AAA")}}const Zv={name:"Menu",common:W,peers:{Tooltip:yi,Dropdown:da},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=Qv(e);return r.itemColorActive=J(t,{alpha:.15}),r.itemColorActiveHover=J(t,{alpha:.15}),r.itemColorActiveCollapsed=J(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var e0={iconSize:"22px"};function t0(e){const{fontSize:t,warningColor:o}=e;return{...e0,fontSize:t,iconColor:o}}const o0={name:"Popconfirm",common:W,peers:{Button:ut,Popover:nr},self:t0};function r0(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const Jf={name:"Progress",common:W,self(e){const t=r0(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},n0={name:"Rate",common:W,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var i0={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function l0(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{...i0,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const a0={name:"Result",common:W,self:l0};var s0={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const c0={name:"Slider",common:W,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:c,opacityDisabled:u}=e;return{...s0,fontSize:c,markFontSize:c,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function u0(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const f0={name:"Spin",common:W,self:u0};function d0(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const p0={name:"Statistic",common:W,self:d0};var m0={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function h0(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...m0,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const g0={name:"Steps",common:W,self:h0};var C0={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const b0={name:"Switch",common:W,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...C0,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${J(n,{alpha:.3})}`}}};var x0={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function _0(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:c,fontWeightStrong:u,lineHeight:f,fontSizeSmall:d,fontSizeMedium:p,fontSizeLarge:g}=e;return{...x0,fontSizeSmall:d,fontSizeMedium:p,fontSizeLarge:g,lineHeight:f,borderRadius:c,borderColor:Z(o,t),borderColorModal:Z(r,t),borderColorPopover:Z(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Z(o,l),tdColorStripedModal:Z(r,l),tdColorStripedPopover:Z(n,l),thColor:Z(o,i),thColorModal:Z(r,i),thColorPopover:Z(n,i),thTextColor:a,tdTextColor:s,thFontWeight:u}}const v0={name:"Table",common:W,self:_0};var S0={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function y0(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:c,baseColor:u,dividerColor:f,fontWeight:d,textColor1:p,borderRadius:g,fontSize:C,fontWeightStrong:S}=e;return{...S0,colorSegment:c,tabFontSizeCard:C,tabTextColorLine:p,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:g,tabColor:c,tabColorSegment:u,tabBorderColor:f,tabFontWeightActive:d,tabFontWeight:d,tabBorderRadius:g,paneTextColor:t,fontWeightStrong:S}}const E0={name:"Tabs",common:W,peers:{Button:ut},self(e){const t=y0(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function T0(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const P0={name:"Thing",common:W,self:T0};var I0={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const A0={name:"Timeline",common:W,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:c,fontSize:u}=e;return{...I0,contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var w0={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const L0={name:"Transfer",common:W,peers:{Checkbox:Tr,Scrollbar:et,Input:Et,Empty:rr,Button:ut},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:c,textColor1:u,textColorDisabled:f,textColor2:d,textColor3:p,hoverColor:g,closeColorHover:C,closeColorPressed:S,closeIconColor:E,closeIconColorHover:T,closeIconColorPressed:v,dividerColor:y}=e;return{...w0,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:y,borderColor:"#0000",listColor:s,headerColor:c,titleTextColor:u,titleTextColorDisabled:f,extraTextColor:p,extraTextColorDisabled:f,itemTextColor:d,itemTextColorDisabled:f,itemColorPending:g,titleFontWeight:t,closeColorHover:C,closeColorPressed:S,closeIconColor:E,closeIconColorHover:T,closeIconColorPressed:v}}};function D0(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:J(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const Qf={name:"Tree",common:W,peers:{Checkbox:Tr,Scrollbar:et,Empty:rr},self(e){const{primaryColor:t}=e,o=D0(e);return o.nodeColorActive=J(t,{alpha:.15}),o}},R0={name:"TreeSelect",common:W,peers:{Tree:Qf,Empty:rr,InternalSelection:fa}};var F0={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function O0(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:c,textColor3:u,infoColor:f,warningColor:d,errorColor:p,successColor:g,codeColor:C}=e;return{...F0,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:c,pTextColor:o,pTextColor1Depth:c,pTextColor2Depth:o,pTextColor3Depth:u,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:p,headerBarColorWarning:d,headerBarColorSuccess:g,textColor:o,textColor1Depth:c,textColor2Depth:o,textColor3Depth:u,textColorPrimary:t,textColorInfo:f,textColorSuccess:g,textColorWarning:d,textColorError:p,codeTextColor:o,codeColor:C,codeBorder:"1px solid #0000"}}const M0={name:"Typography",common:W,self:O0};function N0(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:c,lineHeight:u,borderRadius:f,fontSize:d}=e;return{fontSize:d,lineHeight:u,borderRadius:f,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:c,itemColorHoverError:J(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const k0={name:"Upload",common:W,peers:{Button:ut,Progress:Jf},self(e){const{errorColor:t}=e,o=N0(e);return o.itemColorHoverError=J(t,{alpha:.09}),o}},H0={name:"Watermark",common:W,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function $0(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}function B0(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}var W0={extraFontSize:"12px",width:"440px"};function z0(){return{}}var U0={titleFontSize:"18px",backSize:"22px"};function V0(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...U0,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const j0=()=>({}),G0={name:"AvatarGroup",common:W,peers:{Avatar:Bf},self:P_},K0={name:"Calendar",common:W,peers:{Button:ut},self:N_},Y0={name:"Carousel",common:W,self:$_},q0={name:"CollapseTransition",common:W,self:G_},X0={name:"ColorPicker",common:W,peers:{Input:Et,Button:ut},self:K_},J0={name:"Row",common:W},Q0={name:"PageHeader",common:W,self:V0},Z0={name:"FloatButton",common:W,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:c}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:c}}},eS={name:"IconWrapper",common:W,self:B0},tS={name:"Image",common:W,peers:{Tooltip:yi},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},oS={name:"Transfer",common:W,peers:{Checkbox:Tr,Scrollbar:et,Input:Et,Empty:rr,Button:ut},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:c,borderRadius:u,inputColor:f,tableHeaderColor:d,textColor1:p,textColorDisabled:g,textColor2:C,hoverColor:S}=e;return{...W0,itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:u,borderColor:"#0000",listColor:f,headerColor:d,titleTextColor:p,titleTextColorDisabled:g,extraTextColor:C,filterDividerColor:"#0000",itemTextColor:C,itemTextColorDisabled:g,itemColorPending:S,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},rS={name:"Marquee",common:W,self:z0},nS={name:"QrCode",common:W,self:e=>({borderRadius:e.borderRadius})},iS={name:"Skeleton",common:W,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},lS={name:"Split",common:W},aS={name:"Equation",common:W,self:j0},sS={name:"FloatButtonGroup",common:W,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},cS={name:"Heatmap",common:W,self(e){return{...$0(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},uS={name:"dark",common:W,Alert:C_,Anchor:__,AutoComplete:E_,Avatar:Bf,AvatarGroup:G0,BackTop:A_,Badge:w_,Breadcrumb:R_,Button:ut,ButtonGroup:Hv,Calendar:K0,Card:Wf,Carousel:Y0,Cascader:U_,Checkbox:Tr,Code:zf,Collapse:j_,CollapseTransition:q0,ColorPicker:X0,DataTable:iv,DatePicker:dv,Descriptions:hv,Dialog:qf,Divider:Av,Drawer:Lv,Dropdown:da,DynamicInput:Rv,DynamicTags:Ov,Element:Mv,Empty:rr,Ellipsis:Kf,Equation:aS,Flex:kv,Form:Wv,GradientText:zv,Heatmap:cS,Icon:av,IconWrapper:eS,Image:tS,Input:Et,InputNumber:Uv,InputOtp:jv,LegacyTransfer:oS,Layout:Gv,List:Yv,LoadingBar:_v,Log:qv,Menu:Zv,Mention:Xv,Message:yv,Modal:xv,Notification:Pv,PageHeader:Q0,Pagination:jf,Popconfirm:o0,Popover:nr,Popselect:Uf,Progress:Jf,QrCode:nS,Radio:Gf,Rate:n0,Result:a0,Row:J0,Scrollbar:et,Select:Vf,Skeleton:iS,Slider:c0,Space:Xf,Spin:f0,Statistic:p0,Steps:g0,Switch:b0,Table:v0,Tabs:E0,Tag:$f,Thing:P0,TimePicker:Yf,Timeline:A0,Tooltip:yi,Transfer:L0,Tree:Qf,TreeSelect:R0,Typography:M0,Upload:k0,Watermark:H0,Split:lS,FloatButton:Z0,FloatButtonGroup:sS,Marquee:rS},Ei="".trim().replace(/\/+$/,"");function Zf(e){return`${Ei}${e}`}function fS(){return"/s/"}function dS(e,t){return`${(t?.trim()||location.origin).replace(/\/$/,"")}${fS()}${encodeURIComponent(e)}`}const ed={health:"/api/v1/health",publicConfig:"/api/v1/config",setup:"/setup",shareText:"/share/text",shareFile:"/share/file",shareMetadata:"/share/metadata",shareSelect:"/share/select",shareDownload:"/share/download",chunkInit:"/chunk/upload/init",chunkUpload:(e,t)=>`/chunk/upload/${encodeURIComponent(e)}/${t}`,chunkStatus:e=>`/chunk/upload/status/${encodeURIComponent(e)}`,chunkFinish:e=>`/chunk/upload/complete/${encodeURIComponent(e)}`,chunkCancel:e=>`/chunk/upload/${encodeURIComponent(e)}`,presignInit:"/presign/upload/init",presignProxyUpload:e=>`/presign/upload/proxy/${encodeURIComponent(e)}`,presignConfirm:e=>`/presign/upload/confirm/${encodeURIComponent(e)}`,presignStatus:e=>`/presign/upload/status/${encodeURIComponent(e)}`,presignCancel:e=>`/presign/upload/${encodeURIComponent(e)}`,adminLogin:"/admin/login",adminVerify:"/admin/verify",adminLogout:"/admin/logout",adminDashboard:"/admin/dashboard",adminFileList:"/admin/file/list",adminFileDelete:"/admin/file/delete",adminFileBatchDelete:"/admin/file/batch-delete",adminFileUpdate:"/admin/file/update",adminConfigGet:"/admin/config/get",adminConfigUpdate:"/admin/config/update",adminAuditList:"/admin/audit/list",adminPasswordUpdate:"/admin/settings/password",adminStorageSwitch:"/admin/storage/switch"};function pS(e){return`${Ei}/docs/api/${encodeURIComponent(e)}.md`}function mS(){return`${Ei}/docs/openapi.yaml`}const PT=Object.freeze(Object.defineProperty({__proto__:null,API_BASE:Ei,api:Zf,paths:ed,pickupPageUrl:dS,remoteDocUrl:pS,remoteOpenApiUrl:mS},Symbol.toStringTag,{value:"Module"}));class st extends Error{code;msg;httpStatus;constructor(t,o,r){super(o||`请求失败(${t})`),this.name="ApiError",this.code=t,this.msg=o||`请求失败(${t})`,this.httpStatus=r}}const wl="fcb_admin_token";function td(){try{return localStorage.getItem(wl)??""}catch{return""}}function od(e){try{e?localStorage.setItem(wl,e):localStorage.removeItem(wl)}catch{}}let pa=null;function hS(e){pa=e}function ma(e,t){const o=new URL(Zf(e),location.origin);if(t)for(const[r,n]of Object.entries(t))n!=null&&`${n}`!=""&&o.searchParams.set(r,`${n}`);return o.toString()}function rd(){const e=td();return e?{Authorization:`Bearer ${e}`}:{}}async function gS(e,t={}){const{method:o="GET",json:r,form:n,formData:i,query:l,timeout:a=3e4,signal:s}=t,c=new AbortController,u=setTimeout(()=>c.abort(new DOMException("请求超时","TimeoutError")),a);s&&s.addEventListener("abort",()=>c.abort(s.reason),{once:!0});const f={...rd()};r!==void 0&&(f["Content-Type"]="application/json");let d;r!==void 0?d=JSON.stringify(r):i?d=i:n&&(d=new URLSearchParams(n).toString(),f["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8");let p;try{p=await fetch(ma(e,l),{method:o,headers:f,body:d,signal:c.signal})}catch(S){throw S instanceof DOMException&&S.name==="TimeoutError"?new st(0,"请求超时,请检查网络或稍后重试"):new st(0,"网络异常,无法连接服务器")}finally{clearTimeout(u)}if(!(p.headers.get("content-type")??"").includes("application/json")){const S=await p.text().catch(()=>"");throw p.ok?new st(p.status,"响应格式异常(非 JSON)",p.status):new st(p.status,S.slice(0,200)||`请求失败(HTTP ${p.status})`,p.status)}let C;try{C=await p.json()}catch{throw new st(p.status,"响应 JSON 解析失败",p.status)}if(!p.ok||C.code!==200){const S=C.code??p.status;throw(S===401||p.status===401)&&(od(""),pa?.()),new st(S,C.msg||`请求失败(${S})`,p.status)}return C.data}async function IT(e,t={}){const{query:o,timeout:r=12e4}=t,n=new AbortController,i=setTimeout(()=>n.abort(new DOMException("请求超时","TimeoutError")),r);let l;try{l=await fetch(ma(e,o),{method:"GET",headers:rd(),signal:n.signal})}catch{throw new st(0,"网络异常,无法连接服务器")}finally{clearTimeout(i)}const a=l.headers.get("content-type")??"";if(a.includes("application/json"))try{const s=await l.json();throw new st(s.code??l.status,s.msg||"取件失败",l.status)}catch(s){throw s instanceof st?s:new st(l.status,"取件失败",l.status)}if(!l.ok)throw new st(l.status,`取件失败(HTTP ${l.status})`,l.status);return{blob:await l.blob(),contentType:a}}function AT(e,t,o,r=6e5){return new Promise((n,i)=>{const l=new XMLHttpRequest;l.open("POST",ma(e)),l.timeout=r;const a=td();a&&l.setRequestHeader("Authorization",`Bearer ${a}`),l.upload.onprogress=s=>{s.lengthComputable&&o&&o(Math.round(s.loaded/s.total*100))},l.onload=()=>{try{const s=JSON.parse(l.responseText);l.status>=200&&l.status<300&&s.code===200?n(s.data):((s.code===401||l.status===401)&&(od(""),pa?.()),i(new st(s.code??l.status,s.msg||`上传失败(HTTP ${l.status})`,l.status)))}catch{i(new st(l.status,`上传失败(HTTP ${l.status})`,l.status))}},l.onerror=()=>i(new st(0,"网络异常,上传失败")),l.ontimeout=()=>i(new st(0,"上传超时,请重试")),l.send(t)})}const Kn=typeof window<"u",Fo=(e,t=!1)=>t?Symbol.for(e):Symbol(e),CS=(e,t,o)=>bS({l:e,k:t,s:o}),bS=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ne=e=>typeof e=="number"&&isFinite(e),xS=e=>id(e)==="[object Date]",Lo=e=>id(e)==="[object RegExp]",Ti=e=>ae(e)&&Object.keys(e).length===0,Ge=Object.assign,_S=Object.create,ve=(e=null)=>_S(e);let Ys;const io=()=>Ys||(Ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ve());function qs(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const vS=Object.prototype.hasOwnProperty;function Ot(e,t){return vS.call(e,t)}const Ae=Array.isArray,Pe=e=>typeof e=="function",K=e=>typeof e=="string",pe=e=>typeof e=="boolean",Ce=e=>e!==null&&typeof e=="object",SS=e=>Ce(e)&&Pe(e.then)&&Pe(e.catch),nd=Object.prototype.toString,id=e=>nd.call(e),ae=e=>{if(!Ce(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},yS=e=>e==null?"":Ae(e)||ae(e)&&e.toString===nd?JSON.stringify(e,null,2):String(e);function ES(e,t=""){return e.reduce((o,r,n)=>n===0?o+r:o+t+r,"")}function Pi(e){let t=e;return()=>++t}function TS(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Tn=e=>!Ce(e)||Ae(e);function Ln(e,t){if(Tn(e)||Tn(t))throw new Error("Invalid value");const o=[{src:e,des:t}];for(;o.length;){const{src:r,des:n}=o.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(Ce(r[i])&&!Ce(n[i])&&(n[i]=Array.isArray(r[i])?[]:ve()),Tn(n[i])||Tn(r[i])?n[i]=r[i]:o.push({src:r[i],des:n[i]}))})}}function PS(e,t,o){return{line:e,column:t,offset:o}}function Yn(e,t,o){return{start:e,end:t}}const IS=/\{([0-9a-zA-Z]+)\}/g;function ld(e,...t){return t.length===1&&AS(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(IS,(o,r)=>t.hasOwnProperty(r)?t[r]:"")}const ad=Object.assign,Xs=e=>typeof e=="string",AS=e=>e!==null&&typeof e=="object";function sd(e,t=""){return e.reduce((o,r,n)=>n===0?o+r:o+t+r,"")}const ha={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},wS={[ha.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function LS(e,t,...o){const r=ld(wS[e],...o||[]),n={message:String(r),code:e};return t&&(n.location=t),n}const ie={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},DS={[ie.EXPECTED_TOKEN]:"Expected token: '{0}'",[ie.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[ie.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[ie.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[ie.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[ie.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[ie.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[ie.EMPTY_PLACEHOLDER]:"Empty placeholder",[ie.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[ie.INVALID_LINKED_FORMAT]:"Invalid linked format",[ie.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[ie.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[ie.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[ie.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[ie.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[ie.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Pr(e,t,o={}){const{domain:r,messages:n,args:i}=o,l=ld((n||DS)[e]||"",...i||[]),a=new SyntaxError(String(l));return a.code=e,t&&(a.location=t),a.domain=r,a}function RS(e){throw e}const Zt=" ",FS="\r",it=` +`,OS="\u2028",MS="\u2029";function NS(e){const t=e;let o=0,r=1,n=1,i=0;const l=D=>t[D]===FS&&t[D+1]===it,a=D=>t[D]===it,s=D=>t[D]===MS,c=D=>t[D]===OS,u=D=>l(D)||a(D)||s(D)||c(D),f=()=>o,d=()=>r,p=()=>n,g=()=>i,C=D=>l(D)||s(D)||c(D)?it:t[D],S=()=>C(o),E=()=>C(o+i);function T(){return i=0,u(o)&&(r++,n=0),l(o)&&o++,o++,n++,t[o]}function v(){return l(o+i)&&i++,i++,t[o+i]}function y(){o=0,r=1,n=1,i=0}function w(D=0){i=D}function L(){const D=o+i;for(;D!==o;)T();i=0}return{index:f,line:d,column:p,peekOffset:g,charAt:C,currentChar:S,currentPeek:E,next:T,peek:v,reset:y,resetPeek:w,skipToPeek:L}}const bo=void 0,kS=".",Js="'",HS="tokenizer";function $S(e,t={}){const o=t.location!==!1,r=NS(e),n=()=>r.index(),i=()=>PS(r.line(),r.column(),r.index()),l=i(),a=n(),s={currentType:14,offset:a,startLoc:l,endLoc:l,lastType:14,lastOffset:a,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},c=()=>s,{onError:u}=t;function f(m,h,A,...O){const j=c();if(h.column+=A,h.offset+=A,u){const B=o?Yn(j.startLoc,h):null,I=Pr(m,B,{domain:HS,args:O});u(I)}}function d(m,h,A){m.endLoc=i(),m.currentType=h;const O={type:h};return o&&(O.loc=Yn(m.startLoc,m.endLoc)),A!=null&&(O.value=A),O}const p=m=>d(m,14);function g(m,h){return m.currentChar()===h?(m.next(),h):(f(ie.EXPECTED_TOKEN,i(),0,h),"")}function C(m){let h="";for(;m.currentPeek()===Zt||m.currentPeek()===it;)h+=m.currentPeek(),m.peek();return h}function S(m){const h=C(m);return m.skipToPeek(),h}function E(m){if(m===bo)return!1;const h=m.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h===95}function T(m){if(m===bo)return!1;const h=m.charCodeAt(0);return h>=48&&h<=57}function v(m,h){const{currentType:A}=h;if(A!==2)return!1;C(m);const O=E(m.currentPeek());return m.resetPeek(),O}function y(m,h){const{currentType:A}=h;if(A!==2)return!1;C(m);const O=m.currentPeek()==="-"?m.peek():m.currentPeek(),j=T(O);return m.resetPeek(),j}function w(m,h){const{currentType:A}=h;if(A!==2)return!1;C(m);const O=m.currentPeek()===Js;return m.resetPeek(),O}function L(m,h){const{currentType:A}=h;if(A!==8)return!1;C(m);const O=m.currentPeek()===".";return m.resetPeek(),O}function D(m,h){const{currentType:A}=h;if(A!==9)return!1;C(m);const O=E(m.currentPeek());return m.resetPeek(),O}function F(m,h){const{currentType:A}=h;if(!(A===8||A===12))return!1;C(m);const O=m.currentPeek()===":";return m.resetPeek(),O}function P(m,h){const{currentType:A}=h;if(A!==10)return!1;const O=()=>{const B=m.currentPeek();return B==="{"?E(m.peek()):B==="@"||B==="%"||B==="|"||B===":"||B==="."||B===Zt||!B?!1:B===it?(m.peek(),O()):k(m,!1)},j=O();return m.resetPeek(),j}function U(m){C(m);const h=m.currentPeek()==="|";return m.resetPeek(),h}function X(m){const h=C(m),A=m.currentPeek()==="%"&&m.peek()==="{";return m.resetPeek(),{isModulo:A,hasSpace:h.length>0}}function k(m,h=!0){const A=(j=!1,B="",I=!1)=>{const N=m.currentPeek();return N==="{"?B==="%"?!1:j:N==="@"||!N?B==="%"?!0:j:N==="%"?(m.peek(),A(j,"%",!0)):N==="|"?B==="%"||I?!0:!(B===Zt||B===it):N===Zt?(m.peek(),A(!0,Zt,I)):N===it?(m.peek(),A(!0,it,I)):!0},O=A();return h&&m.resetPeek(),O}function Q(m,h){const A=m.currentChar();return A===bo?bo:h(A)?(m.next(),A):null}function me(m){const h=m.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36}function ye(m){return Q(m,me)}function se(m){const h=m.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36||h===45}function ne(m){return Q(m,se)}function de(m){const h=m.charCodeAt(0);return h>=48&&h<=57}function tt(m){return Q(m,de)}function ft(m){const h=m.charCodeAt(0);return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function Re(m){return Q(m,ft)}function Fe(m){let h="",A="";for(;h=tt(m);)A+=h;return A}function Tt(m){S(m);const h=m.currentChar();return h!=="%"&&f(ie.EXPECTED_TOKEN,i(),0,h),m.next(),"%"}function ht(m){let h="";for(;;){const A=m.currentChar();if(A==="{"||A==="}"||A==="@"||A==="|"||!A)break;if(A==="%")if(k(m))h+=A,m.next();else break;else if(A===Zt||A===it)if(k(m))h+=A,m.next();else{if(U(m))break;h+=A,m.next()}else h+=A,m.next()}return h}function gt(m){S(m);let h="",A="";for(;h=ne(m);)A+=h;return m.currentChar()===bo&&f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),A}function We(m){S(m);let h="";return m.currentChar()==="-"?(m.next(),h+=`-${Fe(m)}`):h+=Fe(m),m.currentChar()===bo&&f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),h}function H(m){return m!==Js&&m!==it}function Y(m){S(m),g(m,"'");let h="",A="";for(;h=Q(m,H);)h==="\\"?A+=G(m):A+=h;const O=m.currentChar();return O===it||O===bo?(f(ie.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),O===it&&(m.next(),g(m,"'")),A):(g(m,"'"),A)}function G(m){const h=m.currentChar();switch(h){case"\\":case"'":return m.next(),`\\${h}`;case"u":return ee(m,h,4);case"U":return ee(m,h,6);default:return f(ie.UNKNOWN_ESCAPE_SEQUENCE,i(),0,h),""}}function ee(m,h,A){g(m,h);let O="";for(let j=0;j{const O=m.currentChar();return O==="{"||O==="%"||O==="@"||O==="|"||O==="("||O===")"||!O||O===Zt?A:(A+=O,m.next(),h(A))};return h("")}function R(m){S(m);const h=g(m,"|");return S(m),h}function $(m,h){let A=null;switch(m.currentChar()){case"{":return h.braceNest>=1&&f(ie.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),m.next(),A=d(h,2,"{"),S(m),h.braceNest++,A;case"}":return h.braceNest>0&&h.currentType===2&&f(ie.EMPTY_PLACEHOLDER,i(),0),m.next(),A=d(h,3,"}"),h.braceNest--,h.braceNest>0&&S(m),h.inLinked&&h.braceNest===0&&(h.inLinked=!1),A;case"@":return h.braceNest>0&&f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),A=M(m,h)||p(h),h.braceNest=0,A;default:{let j=!0,B=!0,I=!0;if(U(m))return h.braceNest>0&&f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),A=d(h,1,R(m)),h.braceNest=0,h.inLinked=!1,A;if(h.braceNest>0&&(h.currentType===5||h.currentType===6||h.currentType===7))return f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),h.braceNest=0,V(m,h);if(j=v(m,h))return A=d(h,5,gt(m)),S(m),A;if(B=y(m,h))return A=d(h,6,We(m)),S(m),A;if(I=w(m,h))return A=d(h,7,Y(m)),S(m),A;if(!j&&!B&&!I)return A=d(h,13,b(m)),f(ie.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,A.value),S(m),A;break}}return A}function M(m,h){const{currentType:A}=h;let O=null;const j=m.currentChar();switch((A===8||A===9||A===12||A===10)&&(j===it||j===Zt)&&f(ie.INVALID_LINKED_FORMAT,i(),0),j){case"@":return m.next(),O=d(h,8,"@"),h.inLinked=!0,O;case".":return S(m),m.next(),d(h,9,".");case":":return S(m),m.next(),d(h,10,":");default:return U(m)?(O=d(h,1,R(m)),h.braceNest=0,h.inLinked=!1,O):L(m,h)||F(m,h)?(S(m),M(m,h)):D(m,h)?(S(m),d(h,12,_(m))):P(m,h)?(S(m),j==="{"?$(m,h)||O:d(h,11,x(m))):(A===8&&f(ie.INVALID_LINKED_FORMAT,i(),0),h.braceNest=0,h.inLinked=!1,V(m,h))}}function V(m,h){let A={type:14};if(h.braceNest>0)return $(m,h)||p(h);if(h.inLinked)return M(m,h)||p(h);switch(m.currentChar()){case"{":return $(m,h)||p(h);case"}":return f(ie.UNBALANCED_CLOSING_BRACE,i(),0),m.next(),d(h,3,"}");case"@":return M(m,h)||p(h);default:{if(U(m))return A=d(h,1,R(m)),h.braceNest=0,h.inLinked=!1,A;const{isModulo:j,hasSpace:B}=X(m);if(j)return B?d(h,0,ht(m)):d(h,4,Tt(m));if(k(m))return d(h,0,ht(m));break}}return A}function z(){const{currentType:m,offset:h,startLoc:A,endLoc:O}=s;return s.lastType=m,s.lastOffset=h,s.lastStartLoc=A,s.lastEndLoc=O,s.offset=n(),s.startLoc=i(),r.currentChar()===bo?d(s,14):V(r,s)}return{nextToken:z,currentOffset:n,currentPosition:i,context:c}}const BS="parser",WS=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function zS(e,t,o){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||o,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function US(e={}){const t=e.location!==!1,{onError:o,onWarn:r}=e;function n(v,y,w,L,...D){const F=v.currentPosition();if(F.offset+=L,F.column+=L,o){const P=t?Yn(w,F):null,U=Pr(y,P,{domain:BS,args:D});o(U)}}function i(v,y,w,L,...D){const F=v.currentPosition();if(F.offset+=L,F.column+=L,r){const P=t?Yn(w,F):null;r(LS(y,P,D))}}function l(v,y,w){const L={type:v};return t&&(L.start=y,L.end=y,L.loc={start:w,end:w}),L}function a(v,y,w,L){t&&(v.end=y,v.loc&&(v.loc.end=w))}function s(v,y){const w=v.context(),L=l(3,w.offset,w.startLoc);return L.value=y,a(L,v.currentOffset(),v.currentPosition()),L}function c(v,y){const w=v.context(),{lastOffset:L,lastStartLoc:D}=w,F=l(5,L,D);return F.index=parseInt(y,10),v.nextToken(),a(F,v.currentOffset(),v.currentPosition()),F}function u(v,y,w){const L=v.context(),{lastOffset:D,lastStartLoc:F}=L,P=l(4,D,F);return P.key=y,w===!0&&(P.modulo=!0),v.nextToken(),a(P,v.currentOffset(),v.currentPosition()),P}function f(v,y){const w=v.context(),{lastOffset:L,lastStartLoc:D}=w,F=l(9,L,D);return F.value=y.replace(WS,zS),v.nextToken(),a(F,v.currentOffset(),v.currentPosition()),F}function d(v){const y=v.nextToken(),w=v.context(),{lastOffset:L,lastStartLoc:D}=w,F=l(8,L,D);return y.type!==12?(n(v,ie.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),F.value="",a(F,L,D),{nextConsumeToken:y,node:F}):(y.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Lt(y)),F.value=y.value||"",a(F,v.currentOffset(),v.currentPosition()),{node:F})}function p(v,y){const w=v.context(),L=l(7,w.offset,w.startLoc);return L.value=y,a(L,v.currentOffset(),v.currentPosition()),L}function g(v){const y=v.context(),w=l(6,y.offset,y.startLoc);let L=v.nextToken();if(L.type===9){const D=d(v);w.modifier=D.node,L=D.nextConsumeToken||v.nextToken()}switch(L.type!==10&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),L=v.nextToken(),L.type===2&&(L=v.nextToken()),L.type){case 11:L.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),w.key=p(v,L.value||"");break;case 5:L.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),w.key=u(v,L.value||"");break;case 6:L.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),w.key=c(v,L.value||"");break;case 7:L.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),w.key=f(v,L.value||"");break;default:{n(v,ie.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const D=v.context(),F=l(7,D.offset,D.startLoc);return F.value="",a(F,D.offset,D.startLoc),w.key=F,a(w,D.offset,D.startLoc),{nextConsumeToken:L,node:w}}}return a(w,v.currentOffset(),v.currentPosition()),{node:w}}function C(v){const y=v.context(),w=y.currentType===1?v.currentOffset():y.offset,L=y.currentType===1?y.endLoc:y.startLoc,D=l(2,w,L);D.items=[];let F=null,P=null;do{const k=F||v.nextToken();switch(F=null,k.type){case 0:k.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(k)),D.items.push(s(v,k.value||""));break;case 6:k.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(k)),D.items.push(c(v,k.value||""));break;case 4:P=!0;break;case 5:k.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(k)),D.items.push(u(v,k.value||"",!!P)),P&&(i(v,ha.USE_MODULO_SYNTAX,y.lastStartLoc,0,Lt(k)),P=null);break;case 7:k.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(k)),D.items.push(f(v,k.value||""));break;case 8:{const Q=g(v);D.items.push(Q.node),F=Q.nextConsumeToken||null;break}}}while(y.currentType!==14&&y.currentType!==1);const U=y.currentType===1?y.lastOffset:v.currentOffset(),X=y.currentType===1?y.lastEndLoc:v.currentPosition();return a(D,U,X),D}function S(v,y,w,L){const D=v.context();let F=L.items.length===0;const P=l(1,y,w);P.cases=[],P.cases.push(L);do{const U=C(v);F||(F=U.items.length===0),P.cases.push(U)}while(D.currentType!==14);return F&&n(v,ie.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),a(P,v.currentOffset(),v.currentPosition()),P}function E(v){const y=v.context(),{offset:w,startLoc:L}=y,D=C(v);return y.currentType===14?D:S(v,w,L,D)}function T(v){const y=$S(v,ad({},e)),w=y.context(),L=l(0,w.offset,w.startLoc);return t&&L.loc&&(L.loc.source=v),L.body=E(y),e.onCacheKey&&(L.cacheKey=e.onCacheKey(v)),w.currentType!==14&&n(y,ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,v[w.offset]||""),a(L,y.currentOffset(),y.currentPosition()),L}return{parse:T}}function Lt(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function VS(e,t={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:i=>(o.helpers.add(i),i)}}function Qs(e,t){for(let o=0;oZs(o)),e}function Zs(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let o=0;ol;function s(C,S){l.code+=C}function c(C,S=!0){const E=S?r:"";s(n?E+" ".repeat(C):E)}function u(C=!0){const S=++l.indentLevel;C&&c(S)}function f(C=!0){const S=--l.indentLevel;C&&c(S)}function d(){c(l.indentLevel)}return{context:a,push:s,indent:u,deindent:f,newline:d,helper:C=>`_${C}`,needIndent:()=>l.needIndent}}function XS(e,t){const{helper:o}=e;e.push(`${o("linked")}(`),xr(e,t.key),t.modifier?(e.push(", "),xr(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function JS(e,t){const{helper:o,needIndent:r}=e;e.push(`${o("normalize")}([`),e.indent(r());const n=t.items.length;for(let i=0;i1){e.push(`${o("plural")}([`),e.indent(r());const n=t.cases.length;for(let i=0;i{const o=Xs(t.mode)?t.mode:"normal",r=Xs(t.filename)?t.filename:"message.intl";t.sourceMap;const n=t.breakLineCode!=null?t.breakLineCode:o==="arrow"?";":` +`,i=t.needIndent?t.needIndent:o!=="arrow",l=e.helpers||[],a=qS(e,{filename:r,breakLineCode:n,needIndent:i});a.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),l.length>0&&(a.push(`const { ${sd(l.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),xr(a,e),a.deindent(i),a.push("}"),delete e.helpers;const{code:s,map:c}=a.context();return{ast:e,code:s,map:c?c.toJSON():void 0}};function ty(e,t={}){const o=ad({},t),r=!!o.jit,n=!!o.minify,i=o.optimize==null?!0:o.optimize,a=US(o).parse(e);return r?(i&&GS(a),n&&ur(a),{ast:a,code:""}):(jS(a,o),ey(a,o))}function oy(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(io().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(io().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(io().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Kt(e){return Ce(e)&&Ca(e)===0&&(Ot(e,"b")||Ot(e,"body"))}const cd=["b","body"];function ry(e){return Oo(e,cd)}const ud=["c","cases"];function ny(e){return Oo(e,ud,[])}const fd=["s","static"];function iy(e){return Oo(e,fd)}const dd=["i","items"];function ly(e){return Oo(e,dd,[])}const pd=["t","type"];function Ca(e){return Oo(e,pd)}const md=["v","value"];function Pn(e,t){const o=Oo(e,md);if(o!=null)return o;throw an(t)}const hd=["m","modifier"];function ay(e){return Oo(e,hd)}const gd=["k","key"];function sy(e){const t=Oo(e,gd);if(t)return t;throw an(6)}function Oo(e,t,o){for(let r=0;r{l===void 0?l=a:l+=a},d[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},d[2]=()=>{d[0](),n++},d[3]=()=>{if(n>0)n--,r=4,d[0]();else{if(n=0,l===void 0||(l=py(l),l===!1))return!1;d[1]()}};function p(){const g=e[o+1];if(r===5&&g==="'"||r===6&&g==='"')return o++,a="\\"+g,d[0](),!0}for(;r!==null;)if(o++,i=e[o],!(i==="\\"&&p())){if(s=dy(i),f=Mo[r],c=f[s]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(a=i,u()===!1))))return;if(r===7)return t}}const ec=new Map;function hy(e,t){return Ce(e)?e[t]:null}function gy(e,t){if(!Ce(e))return null;let o=ec.get(t);if(o||(o=my(t),o&&ec.set(t,o)),!o)return null;const r=o.length;let n=e,i=0;for(;ie,by=e=>"",xy="text",_y=e=>e.length===0?"":ES(e),vy=yS;function tc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Sy(e){const t=Ne(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ne(e.named.count)||Ne(e.named.n))?Ne(e.named.count)?e.named.count:Ne(e.named.n)?e.named.n:t:t}function yy(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ey(e={}){const t=e.locale,o=Sy(e),r=Ce(e.pluralRules)&&K(t)&&Pe(e.pluralRules[t])?e.pluralRules[t]:tc,n=Ce(e.pluralRules)&&K(t)&&Pe(e.pluralRules[t])?tc:void 0,i=E=>E[r(o,E.length,n)],l=e.list||[],a=E=>l[E],s=e.named||ve();Ne(e.pluralIndex)&&yy(o,s);const c=E=>s[E];function u(E){const T=Pe(e.messages)?e.messages(E):Ce(e.messages)?e.messages[E]:!1;return T||(e.parent?e.parent.message(E):by)}const f=E=>e.modifiers?e.modifiers[E]:Cy,d=ae(e.processor)&&Pe(e.processor.normalize)?e.processor.normalize:_y,p=ae(e.processor)&&Pe(e.processor.interpolate)?e.processor.interpolate:vy,g=ae(e.processor)&&K(e.processor.type)?e.processor.type:xy,S={list:a,named:c,plural:i,linked:(E,...T)=>{const[v,y]=T;let w="text",L="";T.length===1?Ce(v)?(L=v.modifier||L,w=v.type||w):K(v)&&(L=v||L):T.length===2&&(K(v)&&(L=v||L),K(y)&&(w=y||w));const D=u(E)(S),F=w==="vnode"&&Ae(D)&&L?D[0]:D;return L?f(L)(F,w):F},message:u,type:g,interpolate:p,normalize:d,values:Ge(ve(),l,s)};return S}let sn=null;function Ty(e){sn=e}function Py(e,t,o){sn&&sn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:o})}const Iy=Ay("function:translate");function Ay(e){return t=>sn&&sn.emit(e,t)}const wy=ha.__EXTEND_POINT__,Wo=Pi(wy),Ly={FALLBACK_TO_TRANSLATE:Wo(),CANNOT_FORMAT_NUMBER:Wo(),FALLBACK_TO_NUMBER_FORMAT:Wo(),CANNOT_FORMAT_DATE:Wo(),FALLBACK_TO_DATE_FORMAT:Wo(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Wo(),__EXTEND_POINT__:Wo()},bd=ie.__EXTEND_POINT__,zo=Pi(bd),Mt={INVALID_ARGUMENT:bd,INVALID_DATE_ARGUMENT:zo(),INVALID_ISO_DATE_ARGUMENT:zo(),NOT_SUPPORT_NON_STRING_MESSAGE:zo(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:zo(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:zo(),NOT_SUPPORT_LOCALE_TYPE:zo(),__EXTEND_POINT__:zo()};function jt(e){return Pr(e,null,void 0)}function ba(e,t){return t.locale!=null?oc(t.locale):oc(e.locale)}let Qi;function oc(e){if(K(e))return e;if(Pe(e)){if(e.resolvedOnce&&Qi!=null)return Qi;if(e.constructor.name==="Function"){const t=e();if(SS(t))throw jt(Mt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Qi=t}else throw jt(Mt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw jt(Mt.NOT_SUPPORT_LOCALE_TYPE)}function Dy(e,t,o){return[...new Set([o,...Ae(t)?t:Ce(t)?Object.keys(t):K(t)?[t]:[o]])]}function xd(e,t,o){const r=K(o)?o:_r,n=e;n.__localeChainCache||(n.__localeChainCache=new Map);let i=n.__localeChainCache.get(r);if(!i){i=[];let l=[o];for(;Ae(l);)l=rc(i,l,t);const a=Ae(t)||!ae(t)?t:t.default?t.default:null;l=K(a)?[a]:a,Ae(l)&&rc(i,l,!1),n.__localeChainCache.set(r,i)}return i}function rc(e,t,o){let r=!0;for(let n=0;n`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function My(){return{upper:(e,t)=>t==="text"&&K(e)?e.toUpperCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&K(e)?e.toLowerCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&K(e)?ic(e):t==="vnode"&&Ce(e)&&"__v_isVNode"in e?ic(e.children):e}}let _d;function lc(e){_d=e}let vd;function Ny(e){vd=e}let Sd;function ky(e){Sd=e}let yd=null;const Hy=e=>{yd=e},$y=()=>yd;let Ed=null;const ac=e=>{Ed=e},By=()=>Ed;let sc=0;function Wy(e={}){const t=Pe(e.onWarn)?e.onWarn:TS,o=K(e.version)?e.version:Oy,r=K(e.locale)||Pe(e.locale)?e.locale:_r,n=Pe(r)?_r:r,i=Ae(e.fallbackLocale)||ae(e.fallbackLocale)||K(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,l=ae(e.messages)?e.messages:Zi(n),a=ae(e.datetimeFormats)?e.datetimeFormats:Zi(n),s=ae(e.numberFormats)?e.numberFormats:Zi(n),c=Ge(ve(),e.modifiers,My()),u=e.pluralRules||ve(),f=Pe(e.missing)?e.missing:null,d=pe(e.missingWarn)||Lo(e.missingWarn)?e.missingWarn:!0,p=pe(e.fallbackWarn)||Lo(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,C=!!e.unresolving,S=Pe(e.postTranslation)?e.postTranslation:null,E=ae(e.processor)?e.processor:null,T=pe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,y=Pe(e.messageCompiler)?e.messageCompiler:_d,w=Pe(e.messageResolver)?e.messageResolver:vd||hy,L=Pe(e.localeFallbacker)?e.localeFallbacker:Sd||Dy,D=Ce(e.fallbackContext)?e.fallbackContext:void 0,F=e,P=Ce(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,U=Ce(F.__numberFormatters)?F.__numberFormatters:new Map,X=Ce(F.__meta)?F.__meta:{};sc++;const k={version:o,cid:sc,locale:r,fallbackLocale:i,messages:l,modifiers:c,pluralRules:u,missing:f,missingWarn:d,fallbackWarn:p,fallbackFormat:g,unresolving:C,postTranslation:S,processor:E,warnHtmlMessage:T,escapeParameter:v,messageCompiler:y,messageResolver:w,localeFallbacker:L,fallbackContext:D,onWarn:t,__meta:X};return k.datetimeFormats=a,k.numberFormats=s,k.__datetimeFormatters=P,k.__numberFormatters=U,__INTLIFY_PROD_DEVTOOLS__&&Py(k,o,X),k}const Zi=e=>({[e]:ve()});function xa(e,t,o,r,n){const{missing:i,onWarn:l}=e;if(i!==null){const a=i(e,o,t,n);return K(a)?a:t}else return t}function Fr(e,t,o){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,o,t)}function zy(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Uy(e,t){const o=t.indexOf(e);if(o===-1)return!1;for(let r=o+1;rVy(o,e)}function Vy(e,t){const o=ry(t);if(o==null)throw an(0);if(Ca(o)===1){const i=ny(o);return e.plural(i.reduce((l,a)=>[...l,cc(e,a)],[]))}else return cc(e,o)}function cc(e,t){const o=iy(t);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const r=ly(t).reduce((n,i)=>[...n,Ll(e,i)],[]);return e.normalize(r)}}function Ll(e,t){const o=Ca(t);switch(o){case 3:return Pn(t,o);case 9:return Pn(t,o);case 4:{const r=t;if(Ot(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Ot(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw an(o)}case 5:{const r=t;if(Ot(r,"i")&&Ne(r.i))return e.interpolate(e.list(r.i));if(Ot(r,"index")&&Ne(r.index))return e.interpolate(e.list(r.index));throw an(o)}case 6:{const r=t,n=ay(r),i=sy(r);return e.linked(Ll(e,i),n?Ll(e,n):void 0,e.type)}case 7:return Pn(t,o);case 8:return Pn(t,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const Td=e=>e;let fr=ve();function Pd(e,t={}){let o=!1;const r=t.onError||RS;return t.onError=n=>{o=!0,r(n)},{...ty(e,t),detectError:o}}const jy=(e,t)=>{if(!K(e))throw jt(Mt.NOT_SUPPORT_NON_STRING_MESSAGE);{pe(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Td)(e),n=fr[r];if(n)return n;const{code:i,detectError:l}=Pd(e,t),a=new Function(`return ${i}`)();return l?a:fr[r]=a}};function Gy(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&K(e)){pe(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Td)(e),n=fr[r];if(n)return n;const{ast:i,detectError:l}=Pd(e,{...t,location:!1,jit:!0}),a=el(i);return l?a:fr[r]=a}else{const o=e.cacheKey;if(o){const r=fr[o];return r||(fr[o]=el(e))}else return el(e)}}const uc=()=>"",At=e=>Pe(e);function fc(e,...t){const{fallbackFormat:o,postTranslation:r,unresolving:n,messageCompiler:i,fallbackLocale:l,messages:a}=e,[s,c]=Dl(...t),u=pe(c.missingWarn)?c.missingWarn:e.missingWarn,f=pe(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=pe(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,g=K(c.default)||pe(c.default)?pe(c.default)?i?s:()=>s:c.default:o?i?s:()=>s:"",C=o||g!=="",S=ba(e,c);d&&Ky(c);let[E,T,v]=p?[s,S,a[S]||ve()]:Id(e,s,S,l,f,u),y=E,w=s;if(!p&&!(K(y)||Kt(y)||At(y))&&C&&(y=g,w=y),!p&&(!(K(y)||Kt(y)||At(y))||!K(T)))return n?Ii:s;let L=!1;const D=()=>{L=!0},F=At(y)?y:Ad(e,s,T,y,w,D);if(L)return y;const P=Xy(e,T,v,c),U=Ey(P),X=Yy(e,F,U),k=r?r(X,s):X;if(__INTLIFY_PROD_DEVTOOLS__){const Q={timestamp:Date.now(),key:K(s)?s:At(y)?y.key:"",locale:T||(At(y)?y.locale:""),format:K(y)?y:At(y)?y.source:"",message:k};Q.meta=Ge({},e.__meta,$y()||{}),Iy(Q)}return k}function Ky(e){Ae(e.list)?e.list=e.list.map(t=>K(t)?qs(t):t):Ce(e.named)&&Object.keys(e.named).forEach(t=>{K(e.named[t])&&(e.named[t]=qs(e.named[t]))})}function Id(e,t,o,r,n,i){const{messages:l,onWarn:a,messageResolver:s,localeFallbacker:c}=e,u=c(e,r,o);let f=ve(),d,p=null;const g="translate";for(let C=0;Cr);return c.locale=o,c.key=t,c}const s=l(r,qy(e,o,n,r,a,i));return s.locale=o,s.key=t,s.source=r,s}function Yy(e,t,o){return t(o)}function Dl(...e){const[t,o,r]=e,n=ve();if(!K(t)&&!Ne(t)&&!At(t)&&!Kt(t))throw jt(Mt.INVALID_ARGUMENT);const i=Ne(t)?String(t):(At(t),t);return Ne(o)?n.plural=o:K(o)?n.default=o:ae(o)&&!Ti(o)?n.named=o:Ae(o)&&(n.list=o),Ne(r)?n.plural=r:K(r)?n.default=r:ae(r)&&Ge(n,r),[i,n]}function qy(e,t,o,r,n,i){return{locale:t,key:o,warnHtmlMessage:n,onError:l=>{throw i&&i(l),l},onCacheKey:l=>CS(t,o,l)}}function Xy(e,t,o,r){const{modifiers:n,pluralRules:i,messageResolver:l,fallbackLocale:a,fallbackWarn:s,missingWarn:c,fallbackContext:u}=e,d={locale:t,modifiers:n,pluralRules:i,messages:p=>{let g=l(o,p);if(g==null&&u){const[,,C]=Id(u,p,t,a,s,c);g=l(C,p)}if(K(g)||Kt(g)){let C=!1;const E=Ad(e,p,t,g,p,()=>{C=!0});return C?uc:E}else return At(g)?g:uc}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Ne(r.plural)&&(d.pluralIndex=r.plural),d}function dc(e,...t){const{datetimeFormats:o,unresolving:r,fallbackLocale:n,onWarn:i,localeFallbacker:l}=e,{__datetimeFormatters:a}=e,[s,c,u,f]=Rl(...t),d=pe(u.missingWarn)?u.missingWarn:e.missingWarn;pe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=ba(e,u),C=l(e,n,g);if(!K(s)||s==="")return new Intl.DateTimeFormat(g,f).format(c);let S={},E,T=null;const v="datetime format";for(let L=0;L{wd.includes(s)?l[s]=o[s]:i[s]=o[s]}),K(r)?i.locale=r:ae(r)&&(l=r),ae(n)&&(l=n),[i.key||"",a,i,l]}function pc(e,t,o){const r=e;for(const n in o){const i=`${t}__${n}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function mc(e,...t){const{numberFormats:o,unresolving:r,fallbackLocale:n,onWarn:i,localeFallbacker:l}=e,{__numberFormatters:a}=e,[s,c,u,f]=Fl(...t),d=pe(u.missingWarn)?u.missingWarn:e.missingWarn;pe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=ba(e,u),C=l(e,n,g);if(!K(s)||s==="")return new Intl.NumberFormat(g,f).format(c);let S={},E,T=null;const v="number format";for(let L=0;L{Ld.includes(s)?l[s]=o[s]:i[s]=o[s]}),K(r)?i.locale=r:ae(r)&&(l=r),ae(n)&&(l=n),[i.key||"",a,i,l]}function hc(e,t,o){const r=e;for(const n in o){const i=`${t}__${n}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}oy();const Jy="9.14.4";function Qy(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(io().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(io().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(io().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(io().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(io().__INTLIFY_PROD_DEVTOOLS__=!1)}const Zy=Ly.__EXTEND_POINT__,eo=Pi(Zy);eo(),eo(),eo(),eo(),eo(),eo(),eo(),eo(),eo();const Dd=Mt.__EXTEND_POINT__,pt=Pi(Dd),$e={UNEXPECTED_RETURN_TYPE:Dd,INVALID_ARGUMENT:pt(),MUST_BE_CALL_SETUP_TOP:pt(),NOT_INSTALLED:pt(),NOT_AVAILABLE_IN_LEGACY_MODE:pt(),REQUIRED_VALUE:pt(),INVALID_VALUE:pt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:pt(),NOT_INSTALLED_WITH_PROVIDE:pt(),UNEXPECTED_ERROR:pt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:pt(),BRIDGE_SUPPORT_VUE_2_ONLY:pt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:pt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:pt(),__EXTEND_POINT__:pt()};function ze(e,...t){return Pr(e,null,void 0)}const Ol=Fo("__translateVNode"),Ml=Fo("__datetimeParts"),Nl=Fo("__numberParts"),Rd=Fo("__setPluralRules"),Fd=Fo("__injectWithOption"),kl=Fo("__dispose");function cn(e){if(!Ce(e)||Kt(e))return e;for(const t in e)if(Ot(e,t))if(!t.includes("."))Ce(e[t])&&cn(e[t]);else{const o=t.split("."),r=o.length-1;let n=e,i=!1;for(let l=0;l{if("locale"in a&&"resource"in a){const{locale:s,resource:c}=a;s?(l[s]=l[s]||ve(),Ln(c,l[s])):Ln(c,l)}else K(a)&&Ln(JSON.parse(a),l)}),n==null&&i)for(const a in l)Ot(l,a)&&cn(l[a]);return l}function Od(e){return e.type}function Md(e,t,o){let r=Ce(t.messages)?t.messages:ve();"__i18nGlobal"in o&&(r=Ai(e.locale.value,{messages:r,__i18n:o.__i18nGlobal}));const n=Object.keys(r);n.length&&n.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(Ce(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Ce(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function gc(e){return je(pn,null,e,0)}const Cc="__INTLIFY_META__",bc=()=>[],eE=()=>!1;let xc=0;function _c(e){return((t,o,r,n)=>e(o,r,Ao()||void 0,n))}const tE=()=>{const e=Ao();let t=null;return e&&(t=Od(e)[Cc])?{[Cc]:t}:null};function _a(e={},t){const{__root:o,__injectWithOption:r}=e,n=o===void 0,i=e.flatJson,l=Kn?mt:Yl,a=!!e.translateExistCompatible;let s=pe(e.inheritLocale)?e.inheritLocale:!0;const c=l(o&&s?o.locale.value:K(e.locale)?e.locale:_r),u=l(o&&s?o.fallbackLocale.value:K(e.fallbackLocale)||Ae(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),f=l(Ai(c.value,e)),d=l(ae(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),p=l(ae(e.numberFormats)?e.numberFormats:{[c.value]:{}});let g=o?o.missingWarn:pe(e.missingWarn)||Lo(e.missingWarn)?e.missingWarn:!0,C=o?o.fallbackWarn:pe(e.fallbackWarn)||Lo(e.fallbackWarn)?e.fallbackWarn:!0,S=o?o.fallbackRoot:pe(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,T=Pe(e.missing)?e.missing:null,v=Pe(e.missing)?_c(e.missing):null,y=Pe(e.postTranslation)?e.postTranslation:null,w=o?o.warnHtmlMessage:pe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const D=o?o.modifiers:ae(e.modifiers)?e.modifiers:{};let F=e.pluralRules||o&&o.pluralRules,P;P=(()=>{n&&ac(null);const I={version:Jy,locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:D,pluralRules:F,missing:v===null?void 0:v,missingWarn:g,fallbackWarn:C,fallbackFormat:E,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:w,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};I.datetimeFormats=d.value,I.numberFormats=p.value,I.__datetimeFormatters=ae(P)?P.__datetimeFormatters:void 0,I.__numberFormatters=ae(P)?P.__numberFormatters:void 0;const N=Wy(I);return n&&ac(N),N})(),Fr(P,c.value,u.value);function X(){return[c.value,u.value,f.value,d.value,p.value]}const k=fe({get:()=>c.value,set:I=>{c.value=I,P.locale=c.value}}),Q=fe({get:()=>u.value,set:I=>{u.value=I,P.fallbackLocale=u.value,Fr(P,c.value,I)}}),me=fe(()=>f.value),ye=fe(()=>d.value),se=fe(()=>p.value);function ne(){return Pe(y)?y:null}function de(I){y=I,P.postTranslation=I}function tt(){return T}function ft(I){I!==null&&(v=_c(I)),T=I,P.missing=v}const Re=(I,N,te,ce,Ee,ot)=>{X();let Ue;try{__INTLIFY_PROD_DEVTOOLS__,n||(P.fallbackContext=o?By():void 0),Ue=I(P)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(P.fallbackContext=void 0)}if(te!=="translate exists"&&Ne(Ue)&&Ue===Ii||te==="translate exists"&&!Ue){const[No,Li]=N();return o&&S?ce(o):Ee(No)}else{if(ot(Ue))return Ue;throw ze($e.UNEXPECTED_RETURN_TYPE)}};function Fe(...I){return Re(N=>Reflect.apply(fc,null,[N,...I]),()=>Dl(...I),"translate",N=>Reflect.apply(N.t,N,[...I]),N=>N,N=>K(N))}function Tt(...I){const[N,te,ce]=I;if(ce&&!Ce(ce))throw ze($e.INVALID_ARGUMENT);return Fe(N,te,Ge({resolvedMessage:!0},ce||{}))}function ht(...I){return Re(N=>Reflect.apply(dc,null,[N,...I]),()=>Rl(...I),"datetime format",N=>Reflect.apply(N.d,N,[...I]),()=>nc,N=>K(N))}function gt(...I){return Re(N=>Reflect.apply(mc,null,[N,...I]),()=>Fl(...I),"number format",N=>Reflect.apply(N.n,N,[...I]),()=>nc,N=>K(N))}function We(I){return I.map(N=>K(N)||Ne(N)||pe(N)?gc(String(N)):N)}const Y={normalize:We,interpolate:I=>I,type:"vnode"};function G(...I){return Re(N=>{let te;const ce=N;try{ce.processor=Y,te=Reflect.apply(fc,null,[ce,...I])}finally{ce.processor=null}return te},()=>Dl(...I),"translate",N=>N[Ol](...I),N=>[gc(N)],N=>Ae(N))}function ee(...I){return Re(N=>Reflect.apply(mc,null,[N,...I]),()=>Fl(...I),"number format",N=>N[Nl](...I),bc,N=>K(N)||Ae(N))}function ue(...I){return Re(N=>Reflect.apply(dc,null,[N,...I]),()=>Rl(...I),"datetime format",N=>N[Ml](...I),bc,N=>K(N)||Ae(N))}function b(I){F=I,P.pluralRules=F}function _(I,N){return Re(()=>{if(!I)return!1;const te=K(N)?N:c.value,ce=$(te),Ee=P.messageResolver(ce,I);return a?Ee!=null:Kt(Ee)||At(Ee)||K(Ee)},()=>[I],"translate exists",te=>Reflect.apply(te.te,te,[I,N]),eE,te=>pe(te))}function x(I){let N=null;const te=xd(P,u.value,c.value);for(let ce=0;ce{s&&(c.value=I,P.locale=I,Fr(P,c.value,u.value))}),St(o.fallbackLocale,I=>{s&&(u.value=I,P.fallbackLocale=I,Fr(P,c.value,u.value))}));const B={id:xc,locale:k,fallbackLocale:Q,get inheritLocale(){return s},set inheritLocale(I){s=I,I&&o&&(c.value=o.locale.value,u.value=o.fallbackLocale.value,Fr(P,c.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:me,get modifiers(){return D},get pluralRules(){return F||{}},get isGlobal(){return n},get missingWarn(){return g},set missingWarn(I){g=I,P.missingWarn=g},get fallbackWarn(){return C},set fallbackWarn(I){C=I,P.fallbackWarn=C},get fallbackRoot(){return S},set fallbackRoot(I){S=I},get fallbackFormat(){return E},set fallbackFormat(I){E=I,P.fallbackFormat=E},get warnHtmlMessage(){return w},set warnHtmlMessage(I){w=I,P.warnHtmlMessage=I},get escapeParameter(){return L},set escapeParameter(I){L=I,P.escapeParameter=I},t:Fe,getLocaleMessage:$,setLocaleMessage:M,mergeLocaleMessage:V,getPostTranslationHandler:ne,setPostTranslationHandler:de,getMissingHandler:tt,setMissingHandler:ft,[Rd]:b};return B.datetimeFormats=ye,B.numberFormats=se,B.rt=Tt,B.te=_,B.tm=R,B.d=ht,B.n=gt,B.getDateTimeFormat=z,B.setDateTimeFormat=m,B.mergeDateTimeFormat=h,B.getNumberFormat=A,B.setNumberFormat=O,B.mergeNumberFormat=j,B[Fd]=r,B[Ol]=G,B[Ml]=ue,B[Nl]=ee,B}function oE(e){const t=K(e.locale)?e.locale:_r,o=K(e.fallbackLocale)||Ae(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Pe(e.missing)?e.missing:void 0,n=pe(e.silentTranslationWarn)||Lo(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=pe(e.silentFallbackWarn)||Lo(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=pe(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,s=ae(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Pe(e.postTranslation)?e.postTranslation:void 0,f=K(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,p=pe(e.sync)?e.sync:!0;let g=e.messages;if(ae(e.sharedMessages)){const L=e.sharedMessages;g=Object.keys(L).reduce((F,P)=>{const U=F[P]||(F[P]={});return Ge(U,L[P]),F},g||{})}const{__i18n:C,__root:S,__injectWithOption:E}=e,T=e.datetimeFormats,v=e.numberFormats,y=e.flatJson,w=e.translateExistCompatible;return{locale:t,fallbackLocale:o,messages:g,flatJson:y,datetimeFormats:T,numberFormats:v,missing:r,missingWarn:n,fallbackWarn:i,fallbackRoot:l,fallbackFormat:a,modifiers:s,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:p,translateExistCompatible:w,__i18n:C,__root:S,__injectWithOption:E}}function Hl(e={},t){{const o=_a(oE(e)),{__extender:r}=e,n={id:o.id,get locale(){return o.locale.value},set locale(i){o.locale.value=i},get fallbackLocale(){return o.fallbackLocale.value},set fallbackLocale(i){o.fallbackLocale.value=i},get messages(){return o.messages.value},get datetimeFormats(){return o.datetimeFormats.value},get numberFormats(){return o.numberFormats.value},get availableLocales(){return o.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return o.getMissingHandler()},set missing(i){o.setMissingHandler(i)},get silentTranslationWarn(){return pe(o.missingWarn)?!o.missingWarn:o.missingWarn},set silentTranslationWarn(i){o.missingWarn=pe(i)?!i:i},get silentFallbackWarn(){return pe(o.fallbackWarn)?!o.fallbackWarn:o.fallbackWarn},set silentFallbackWarn(i){o.fallbackWarn=pe(i)?!i:i},get modifiers(){return o.modifiers},get formatFallbackMessages(){return o.fallbackFormat},set formatFallbackMessages(i){o.fallbackFormat=i},get postTranslation(){return o.getPostTranslationHandler()},set postTranslation(i){o.setPostTranslationHandler(i)},get sync(){return o.inheritLocale},set sync(i){o.inheritLocale=i},get warnHtmlInMessage(){return o.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){o.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return o.escapeParameter},set escapeParameterHtml(i){o.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return o.pluralRules||{}},__composer:o,t(...i){const[l,a,s]=i,c={};let u=null,f=null;if(!K(l))throw ze($e.INVALID_ARGUMENT);const d=l;return K(a)?c.locale=a:Ae(a)?u=a:ae(a)&&(f=a),Ae(s)?u=s:ae(s)&&(f=s),Reflect.apply(o.t,o,[d,u||f||{},c])},rt(...i){return Reflect.apply(o.rt,o,[...i])},tc(...i){const[l,a,s]=i,c={plural:1};let u=null,f=null;if(!K(l))throw ze($e.INVALID_ARGUMENT);const d=l;return K(a)?c.locale=a:Ne(a)?c.plural=a:Ae(a)?u=a:ae(a)&&(f=a),K(s)?c.locale=s:Ae(s)?u=s:ae(s)&&(f=s),Reflect.apply(o.t,o,[d,u||f||{},c])},te(i,l){return o.te(i,l)},tm(i){return o.tm(i)},getLocaleMessage(i){return o.getLocaleMessage(i)},setLocaleMessage(i,l){o.setLocaleMessage(i,l)},mergeLocaleMessage(i,l){o.mergeLocaleMessage(i,l)},d(...i){return Reflect.apply(o.d,o,[...i])},getDateTimeFormat(i){return o.getDateTimeFormat(i)},setDateTimeFormat(i,l){o.setDateTimeFormat(i,l)},mergeDateTimeFormat(i,l){o.mergeDateTimeFormat(i,l)},n(...i){return Reflect.apply(o.n,o,[...i])},getNumberFormat(i){return o.getNumberFormat(i)},setNumberFormat(i,l){o.setNumberFormat(i,l)},mergeNumberFormat(i,l){o.mergeNumberFormat(i,l)},getChoiceIndex(i,l){return-1}};return n.__extender=r,n}}const va={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function rE({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,n)=>[...r,...n.type===qe?n.children:[n]],[]):t.reduce((o,r)=>{const n=e[r];return n&&(o[r]=n()),o},ve())}function Nd(e){return qe}const nE=po({name:"i18n-t",props:Ge({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ne(e)||!isNaN(e)}},va),setup(e,t){const{slots:o,attrs:r}=t,n=e.i18n||Sa({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(o).filter(f=>f!=="_"),l=ve();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=K(e.plural)?+e.plural:e.plural);const a=rE(t,i),s=n[Ol](e.keypath,a,l),c=Ge(ve(),r),u=K(e.tag)||Ce(e.tag)?e.tag:Nd();return vr(u,c,s)}}}),vc=nE;function iE(e){return Ae(e)&&!K(e[0])}function kd(e,t,o,r){const{slots:n,attrs:i}=t;return()=>{const l={part:!0};let a=ve();e.locale&&(l.locale=e.locale),K(e.format)?l.key=e.format:Ce(e.format)&&(K(e.format.key)&&(l.key=e.format.key),a=Object.keys(e.format).reduce((d,p)=>o.includes(p)?Ge(ve(),d,{[p]:e.format[p]}):d,ve()));const s=r(e.value,l,a);let c=[l.key];Ae(s)?c=s.map((d,p)=>{const g=n[d.type],C=g?g({[d.type]:d.value,index:p,parts:s}):[d.value];return iE(C)&&(C[0].key=`${d.type}-${p}`),C}):K(s)&&(c=[s]);const u=Ge(ve(),i),f=K(e.tag)||Ce(e.tag)?e.tag:Nd();return vr(f,u,c)}}const lE=po({name:"i18n-n",props:Ge({value:{type:Number,required:!0},format:{type:[String,Object]}},va),setup(e,t){const o=e.i18n||Sa({useScope:e.scope,__useComponent:!0});return kd(e,t,Ld,(...r)=>o[Nl](...r))}}),Sc=lE,aE=po({name:"i18n-d",props:Ge({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},va),setup(e,t){const o=e.i18n||Sa({useScope:e.scope,__useComponent:!0});return kd(e,t,wd,(...r)=>o[Ml](...r))}}),yc=aE;function sE(e,t){const o=e;if(e.mode==="composition")return o.__getInstance(t)||e.global;{const r=o.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function cE(e){const t=l=>{const{instance:a,modifiers:s,value:c}=l;if(!a||!a.$)throw ze($e.UNEXPECTED_ERROR);const u=sE(e,a.$),f=Ec(c);return[Reflect.apply(u.t,u,[...Tc(f)]),u]};return{created:(l,a)=>{const[s,c]=t(a);Kn&&e.global===c&&(l.__i18nWatcher=St(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),l.__composer=c,l.textContent=s},unmounted:l=>{Kn&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:a})=>{if(l.__composer){const s=l.__composer,c=Ec(a);l.textContent=Reflect.apply(s.t,s,[...Tc(c)])}},getSSRProps:l=>{const[a]=t(l);return{textContent:a}}}}function Ec(e){if(K(e))return{path:e};if(ae(e)){if(!("path"in e))throw ze($e.REQUIRED_VALUE,"path");return e}else throw ze($e.INVALID_VALUE)}function Tc(e){const{path:t,locale:o,args:r,choice:n,plural:i}=e,l={},a=r||{};return K(o)&&(l.locale=o),Ne(n)&&(l.plural=n),Ne(i)&&(l.plural=i),[t,a,l]}function uE(e,t,...o){const r=ae(o[0])?o[0]:{},n=!!r.useI18nComponentName;(!pe(r.globalInstall)||r.globalInstall)&&([n?"i18n":vc.name,"I18nT"].forEach(l=>e.component(l,vc)),[Sc.name,"I18nN"].forEach(l=>e.component(l,Sc)),[yc.name,"I18nD"].forEach(l=>e.component(l,yc))),e.directive("t",cE(t))}function fE(e,t,o){return{beforeCreate(){const r=Ao();if(!r)throw ze($e.UNEXPECTED_ERROR);const n=this.$options;if(n.i18n){const i=n.i18n;if(n.__i18n&&(i.__i18n=n.__i18n),i.__root=t,this===this.$root)this.$i18n=Pc(e,i);else{i.__injectWithOption=!0,i.__extender=o.__vueI18nExtend,this.$i18n=Hl(i);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(n.__i18n)if(this===this.$root)this.$i18n=Pc(e,n);else{this.$i18n=Hl({__i18n:n.__i18n,__injectWithOption:!0,__extender:o.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;n.__i18nGlobal&&Md(t,n,n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,l)=>this.$i18n.te(i,l),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),o.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=Ao();if(!r)throw ze($e.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),o.__deleteInstance(r),delete this.$i18n}}}function Pc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Rd](t.pluralizationRules||e.pluralizationRules);const o=Ai(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(o).forEach(r=>e.mergeLocaleMessage(r,o[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const dE=Fo("global-vue-i18n");function pE(e={},t){const o=__VUE_I18N_LEGACY_API__&&pe(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=pe(e.globalInjection)?e.globalInjection:!0,n=__VUE_I18N_LEGACY_API__&&o?!!e.allowComposition:!0,i=new Map,[l,a]=mE(e,o),s=Fo("");function c(d){return i.get(d)||null}function u(d,p){i.set(d,p)}function f(d){i.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&o?"legacy":"composition"},get allowComposition(){return n},async install(p,...g){if(p.__VUE_I18N_SYMBOL__=s,p.provide(p.__VUE_I18N_SYMBOL__,d),ae(g[0])){const E=g[0];d.__composerExtend=E.__composerExtend,d.__vueI18nExtend=E.__vueI18nExtend}let C=null;!o&&r&&(C=yE(p,d.global)),__VUE_I18N_FULL_INSTALL__&&uE(p,d,...g),__VUE_I18N_LEGACY_API__&&o&&p.mixin(fE(a,a.__composer,d));const S=p.unmount;p.unmount=()=>{C&&C(),d.dispose(),S()}},get global(){return a},dispose(){l.stop()},__instances:i,__getInstance:c,__setInstance:u,__deleteInstance:f};return d}}function Sa(e={}){const t=Ao();if(t==null)throw ze($e.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ze($e.NOT_INSTALLED);const o=hE(t),r=CE(o),n=Od(t),i=gE(e,n);if(__VUE_I18N_LEGACY_API__&&o.mode==="legacy"&&!e.__useComponent){if(!o.allowComposition)throw ze($e.NOT_AVAILABLE_IN_LEGACY_MODE);return vE(t,i,r,e)}if(i==="global")return Md(r,e,n),r;if(i==="parent"){let s=bE(o,t,e.__useComponent);return s==null&&(s=r),s}const l=o;let a=l.__getInstance(t);if(a==null){const s=Ge({},e);"__i18n"in n&&(s.__i18n=n.__i18n),r&&(s.__root=r),a=_a(s),l.__composerExtend&&(a[kl]=l.__composerExtend(a)),_E(l,t,a),l.__setInstance(t,a)}return a}function mE(e,t,o){const r=Wl();{const n=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Hl(e)):r.run(()=>_a(e));if(n==null)throw ze($e.UNEXPECTED_ERROR);return[r,n]}}function hE(e){{const t=Ze(e.isCE?dE:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ze(e.isCE?$e.NOT_INSTALLED_WITH_PROVIDE:$e.UNEXPECTED_ERROR);return t}}function gE(e,t){return Ti(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function CE(e){return e.mode==="composition"?e.global:e.global.__composer}function bE(e,t,o=!1){let r=null;const n=t.root;let i=xE(t,o);for(;i!=null;){const l=e;if(e.mode==="composition")r=l.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=l.__getInstance(i);a!=null&&(r=a.__composer,o&&r&&!r[Fd]&&(r=null))}if(r!=null||n===i)break;i=i.parent}return r}function xE(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function _E(e,t,o){pi(()=>{},t),Ql(()=>{const r=o;e.__deleteInstance(t);const n=r[kl];n&&(n(),delete r[kl])},t)}function vE(e,t,o,r={}){const n=t==="local",i=Yl(null);if(n&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ze($e.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const l=pe(r.inheritLocale)?r.inheritLocale:!K(r.locale),a=mt(!n||l?o.locale.value:K(r.locale)?r.locale:_r),s=mt(!n||l?o.fallbackLocale.value:K(r.fallbackLocale)||Ae(r.fallbackLocale)||ae(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),c=mt(Ai(a.value,r)),u=mt(ae(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),f=mt(ae(r.numberFormats)?r.numberFormats:{[a.value]:{}}),d=n?o.missingWarn:pe(r.missingWarn)||Lo(r.missingWarn)?r.missingWarn:!0,p=n?o.fallbackWarn:pe(r.fallbackWarn)||Lo(r.fallbackWarn)?r.fallbackWarn:!0,g=n?o.fallbackRoot:pe(r.fallbackRoot)?r.fallbackRoot:!0,C=!!r.fallbackFormat,S=Pe(r.missing)?r.missing:null,E=Pe(r.postTranslation)?r.postTranslation:null,T=n?o.warnHtmlMessage:pe(r.warnHtmlMessage)?r.warnHtmlMessage:!0,v=!!r.escapeParameter,y=n?o.modifiers:ae(r.modifiers)?r.modifiers:{},w=r.pluralRules||n&&o.pluralRules;function L(){return[a.value,s.value,c.value,u.value,f.value]}const D=fe({get:()=>i.value?i.value.locale.value:a.value,set:x=>{i.value&&(i.value.locale.value=x),a.value=x}}),F=fe({get:()=>i.value?i.value.fallbackLocale.value:s.value,set:x=>{i.value&&(i.value.fallbackLocale.value=x),s.value=x}}),P=fe(()=>i.value?i.value.messages.value:c.value),U=fe(()=>u.value),X=fe(()=>f.value);function k(){return i.value?i.value.getPostTranslationHandler():E}function Q(x){i.value&&i.value.setPostTranslationHandler(x)}function me(){return i.value?i.value.getMissingHandler():S}function ye(x){i.value&&i.value.setMissingHandler(x)}function se(x){return L(),x()}function ne(...x){return i.value?se(()=>Reflect.apply(i.value.t,null,[...x])):se(()=>"")}function de(...x){return i.value?Reflect.apply(i.value.rt,null,[...x]):""}function tt(...x){return i.value?se(()=>Reflect.apply(i.value.d,null,[...x])):se(()=>"")}function ft(...x){return i.value?se(()=>Reflect.apply(i.value.n,null,[...x])):se(()=>"")}function Re(x){return i.value?i.value.tm(x):{}}function Fe(x,R){return i.value?i.value.te(x,R):!1}function Tt(x){return i.value?i.value.getLocaleMessage(x):{}}function ht(x,R){i.value&&(i.value.setLocaleMessage(x,R),c.value[x]=R)}function gt(x,R){i.value&&i.value.mergeLocaleMessage(x,R)}function We(x){return i.value?i.value.getDateTimeFormat(x):{}}function H(x,R){i.value&&(i.value.setDateTimeFormat(x,R),u.value[x]=R)}function Y(x,R){i.value&&i.value.mergeDateTimeFormat(x,R)}function G(x){return i.value?i.value.getNumberFormat(x):{}}function ee(x,R){i.value&&(i.value.setNumberFormat(x,R),f.value[x]=R)}function ue(x,R){i.value&&i.value.mergeNumberFormat(x,R)}const b={get id(){return i.value?i.value.id:-1},locale:D,fallbackLocale:F,messages:P,datetimeFormats:U,numberFormats:X,get inheritLocale(){return i.value?i.value.inheritLocale:l},set inheritLocale(x){i.value&&(i.value.inheritLocale=x)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:y},get pluralRules(){return i.value?i.value.pluralRules:w},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:d},set missingWarn(x){i.value&&(i.value.missingWarn=x)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(x){i.value&&(i.value.missingWarn=x)},get fallbackRoot(){return i.value?i.value.fallbackRoot:g},set fallbackRoot(x){i.value&&(i.value.fallbackRoot=x)},get fallbackFormat(){return i.value?i.value.fallbackFormat:C},set fallbackFormat(x){i.value&&(i.value.fallbackFormat=x)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:T},set warnHtmlMessage(x){i.value&&(i.value.warnHtmlMessage=x)},get escapeParameter(){return i.value?i.value.escapeParameter:v},set escapeParameter(x){i.value&&(i.value.escapeParameter=x)},t:ne,getPostTranslationHandler:k,setPostTranslationHandler:Q,getMissingHandler:me,setMissingHandler:ye,rt:de,d:tt,n:ft,tm:Re,te:Fe,getLocaleMessage:Tt,setLocaleMessage:ht,mergeLocaleMessage:gt,getDateTimeFormat:We,setDateTimeFormat:H,mergeDateTimeFormat:Y,getNumberFormat:G,setNumberFormat:ee,mergeNumberFormat:ue};function _(x){x.locale.value=a.value,x.fallbackLocale.value=s.value,Object.keys(c.value).forEach(R=>{x.mergeLocaleMessage(R,c.value[R])}),Object.keys(u.value).forEach(R=>{x.mergeDateTimeFormat(R,u.value[R])}),Object.keys(f.value).forEach(R=>{x.mergeNumberFormat(R,f.value[R])}),x.escapeParameter=v,x.fallbackFormat=C,x.fallbackRoot=g,x.fallbackWarn=p,x.missingWarn=d,x.warnHtmlMessage=T}return Jl(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ze($e.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const x=i.value=e.proxy.$i18n.__composer;t==="global"?(a.value=x.locale.value,s.value=x.fallbackLocale.value,c.value=x.messages.value,u.value=x.datetimeFormats.value,f.value=x.numberFormats.value):n&&_(x)}),b}const SE=["locale","fallbackLocale","availableLocales"],Ic=["t","rt","d","n","tm","te"];function yE(e,t){const o=Object.create(null);return SE.forEach(n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i)throw ze($e.UNEXPECTED_ERROR);const l=Le(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(o,n,l)}),e.config.globalProperties.$i18n=o,Ic.forEach(n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i||!i.value)throw ze($e.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,i)}),()=>{delete e.config.globalProperties.$i18n,Ic.forEach(n=>{delete e.config.globalProperties[`$${n}`]})}}Qy();__INTLIFY_JIT_COMPILATION__?lc(Gy):lc(jy);Ny(gy);ky(xd);if(__INTLIFY_PROD_DEVTOOLS__){const e=io();e.__INTLIFY__=!0,Ty(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const EE={app:{tagline:"文件快传",description:"开箱即用的文件快传系统"},nav:{home:"分享",docs:"API 文档",openapi:"OpenAPI",admin:"管理后台",homeTitle:"{name} — 首页",mainNav:"主导航"},theme:{label:"主题",light:"浅色",dark:"深色",system:"跟随系统"},lang:{label:"语言"},footer:{linkNav:"页脚链接",docs:"API 文档",openapi:"OpenAPI",admin:"管理后台",copyright:"© {year} {name}"},notify:{title:"系统通知",close:"知道了"},common:{loading:"加载中…",cancel:"取消",save:"保存",search:"搜索",refresh:"刷新",copy:"复制",copied:"已复制",copyFailed:"复制失败",close:"关闭",actions:"操作",all:"全部",query:"查询",reset:"重置",previousPage:"上一页",nextPage:"下一页",pagerInfo:"共 {total} 条 · 第 {page}/{pages} 页",text:"文本",file:"文件",success:"成功",failed:"失败",denied:"拒绝",none:"-"},time:{forever:"永久有效",permanent:"永久",expired:"已过期",lessThanMinute:"不足 1 分钟",minutes:"{n} 分钟",hoursMinutes:"{h} 小时 {m} 分",daysHours:"{d} 天 {h} 小时"},expireStyle:{day:"天",hour:"小时",minute:"分钟",count:"次数",forever:"永久"},home:{heroTitle:"{name} · 文件快传",heroDesc:"无需注册,文本文件一键分享,取件码即可领取",pickupPlaceholder:"输入取件码直接领取",pickupButton:"取 件",pickupRequired:"请输入取件码",tabText:"分享文本",tabFile:"分享文件",textContent:"文本内容",textPlaceholder:"粘贴要分享的文本、代码片段…",textBytes:"{bytes} / 222 KB(超出请改用文件分享)",textTooLong:"内容过多(超过 222KB),建议采用文件形式分享",textRequired:"请输入要分享的文本内容",customCode:"自定义提取码(可选)",customCodeHint:"留空随机生成;4-8 位字母或数字",customCodeInvalid:"提取码须为 4-8 位字母或数字",customCodeTaken:"该提取码已被占用,请换一个",generateCode:"生成取件码",fileRequired:"请选择要分享的文件",fileTooLarge:"文件大小超过限制(最大 {size})",chunkedUploading:"分片上传中",uploading:"上传中",uploadingDots:"上传中…",uploadAndShare:"上传并生成取件码",uploadDisabled:"管理员已关闭访客上传功能,如需分享请联系管理员",shareAnother:"再分享一个",textShared:"文本分享成功",fileShared:"文件分享成功",uploadCancelled:"上传已取消",shareFailed:"分享失败,请稍后重试",uploadFailed:"上传失败,请重试",rateLimited:"操作过于频繁,请稍后再试",notInitialized:"系统尚未初始化,请管理员先完成初始化配置"},result:{badge:"分享成功",code:"取件码",link:"取件链接",copyLink:"复制链接",copyLinkCode:"复制链接和提取码",copyCode:"复制取件码",codeCopied:"取件码已复制",linkCopied:"取件链接已复制",linkCodeCopied:"链接和提取码已复制",clickCopyCode:"点击复制提取码",expires:"有效期:{value}",forever:"永久",hint:"把取件码或链接发给对方,对方在首页输入取件码即可领取。",copyFailed:"复制失败,请手动选择复制"},pickup:{emptyCode:"取件码为空",querying:"正在查询取件码 {code} …",failed:"取件失败",failedDefault:"取件失败,请稍后重试",notFound:"取件码不存在或分享已过期",confirmHint:"请确认取件码是否正确,或联系分享人重新发送",retryPlaceholder:"输入其他取件码",retryButton:"重新取件",remainingUnlimited:"不限次数",remainingCount:"剩余 {n} 次",expireAt:"过期时间:{time}",loadingText:"正在获取内容…",copyContent:"复制内容",downloadTxt:"下载为 .txt",downloaded:"下载完成",downloadFailed:"下载失败,请重试",copied:"内容已复制",sizeUsed:"大小 {size} · 已被领取 {n} 次",downloading:"下载中 {percent}%",downloadFile:"下载文件({size})"},expire:{value:"数值",label:"有效期",foreverOption:"永久有效",countOption:"按次数",countHint:"分享在被领取指定次数后失效",timeHint:"有效期 {value} {unit}",foreverHint:"分享将一直有效,直到管理员删除",maxSecondsHint:"最长 {value}",maxCountHint:"最多 {n} 次"},drop:{aria:"选择或拖拽文件",zone:"点击选择或拖拽文件到此处",maxSize:"单文件最大 {size}",noLimit:"上传后自动生成取件码",remove:"移除",tooLarge:"文件大小 {size} 超过限制 {limit}",typeHint:"仅支持 {types}"},docs:{searchPlaceholder:"检索文档内容…",notGenerated:"文档尚未生成",buildHint:"构建时将从 docs/api/*.md 自动收录",noMatch:"没有匹配的章节",tocTitle:"本页目录",loading:"加载文档…",preparing:"API 文档筹备中",preparingHint:"文档源位于项目 docs/api/ 目录(每个 .md 一级标题作为章节名)。重新构建前端后,文档将内嵌到页面中离线可用。",emptyContent:"文档内容为空",loadFailed:"文档「{title}」加载失败",sidebar:"文档章节"},openapi:{title:"OpenAPI 3.0 接口规范",statusOk:"加载成功",statusError:"规范加载失败",statusLoading:"加载中…",source:"来源:{source}",sourceEmbedded:"构建内嵌 docs/openapi.yaml",notAvailable:"openapi.yaml 尚未生成或无法访问",notAvailableHint:"规范文件位于项目 docs/openapi.yaml。重新构建前端会将其内嵌;也可将文件部署到 {url} 供运行时加载。"},notFound:{title:"页面不存在",desc:"你访问的地址可能已变更",back:"回到首页"},admin:{login:{title:"管理员登录",subtitle:"{name} · 管理后台",password:"管理员密码",passwordPlaceholder:"请输入管理员密码",submit:"登 录",wrongPassword:"密码错误",failed:"登录失败,请稍后重试",required:"请输入管理员密码",hint:"密码由部署方在环境变量或系统设置中配置;连续输错会触发 IP 限流保护。"},nav:{title:"管理后台",files:"文件管理",audit:"审计日志",settings:"系统设置",logout:"退出登录",menu:"后台菜单",loggedOut:"已退出登录"},files:{title:"文件管理",totalRecords:"共 {total} 个分享记录",searchPlaceholder:"搜索取件码 / 文件名",batchDelete:"批量删除",batchDeleteWithCount:"批量删除({count})",deleteSelectedTitle:"删除选中的 {count} 项",selectFirst:"先勾选要删除的行",loading:"加载中…",empty:"暂无分享记录",loadFailed:"文件列表加载失败",colCode:"取件码",colName:"名称",colType:"类型",colSize:"大小",colUsed:"已领取",colRemaining:"剩余",colExpireAt:"过期时间",colStatus:"状态",colCreatedAt:"创建时间",remainingUnlimited:"不限",remainingCount:"{n} 次",statusValid:"有效",statusExpired:"已过期",copyCode:"复制码",copyLink:"复制链接",edit:"编辑",fetchText:"取内容",delete:"删除",confirmDelete:"确认删除分享「{name}」?该操作不可恢复。",confirmBatchDelete:"确认删除选中的 {count} 个分享?该操作不可恢复。",deleteSuccess:"删除成功",batchDeleteSuccess:"批量删除成功",deleteFailed:"删除失败",batchDeleteFailed:"批量删除失败",nothingChanged:"没有修改任何字段",updateSuccess:"更新成功",updateFailed:"更新失败",fetchTextFailed:"内容获取失败(分享可能已过期)",linkCopied:"取件链接已复制",codeCopied:"取件码已复制",editModalTitle:"编辑分享",expireAtHint:"过期时间(留空表示永久)",expireCountHint:"剩余可领取次数(-1 表示不限)"},audit:{title:"审计日志",subtitle:"记录上传 / 下载动作:时间、IP、UA、设备、结果、字节数与耗时",action:"动作",result:"结果",actionUpload:"上传",actionDownload:"下载",filterIp:"IP",filterStart:"开始时间",filterEnd:"结束时间",empty:"暂无审计记录(审计仅记录上传 / 下载动作)",loadFailed:"审计日志加载失败",colTime:"时间",colAction:"动作",colResult:"结果",colFile:"文件",colCode:"取件码",colBytes:"字节数",colIp:"IP",colDevice:"设备",colDuration:"耗时",colUaError:"UA / 错误"},settings:{title:"系统设置",subtitle:"站点名称与 Logo(自定义优先,留空恢复内置默认)",restoreDefaults:"恢复默认值",restoreDefaultsDone:"已填回默认值,点击保存生效",loading:"加载配置中…",loadFailed:"配置读取失败",sectionBasic:"基本",siteName:"站点名称 site_name",siteNameHint:"显示在导航栏、登录页与浏览器标题",siteDomain:"网站对外域名",siteDomainHint:"http(s)://域名[:端口],不带路径;留空则分享链接用当前访问地址",sectionLogo:"导航 Logo",logoUrl:"Logo 图片地址 logo_url",uploadImage:"上传图片",logoHint:"支持填写 URL 或上传本地图片(≤256KB,转存为内嵌数据);留空使用内置默认",imageTooLarge:"图片超过 256KB,请压缩后重试或直接填写图片 URL",imageLoaded:"图片已载入,点击保存后全站生效",imageReadFailed:"图片读取失败",navPreview:"导航栏实际效果:",sectionFavicon:"浏览器图标 Favicon",faviconUrl:"Favicon 地址 favicon_url",faviconHint:"建议使用 PNG/ICO 方形图标;留空使用内置默认",faviconPreviewHint:"浏览器标签页图标(保存后刷新页面生效)",saveAll:"保存设置(全站生效)",saved:"设置已保存,全站生效",saveFailed:"保存失败",sectionPassword:"修改管理员密码",passwordHint:"保存后所有已登录会话失效,需重新登录",oldPassword:"旧密码",newPassword:"新密码(至少 6 位)",confirmPassword:"确认新密码",pwdRequired:"请填写旧密码与新密码",pwdTooShort:"新密码至少 6 位",pwdMismatch:"两次输入的新密码不一致",pwdChanged:"密码已修改,请使用新密码重新登录",pwdChangeFailed:"修改失败",pwdWrong:"旧密码错误",sectionBackground:"背景图",backgroundUrl:"背景图地址 background_url",backgroundHint:"支持 http(s) 图片地址、data:image 图片或站内相对路径(≤2048 字符);留空使用主题默认",sectionFooter:"页脚",footerText:"页脚文案 footer_text",footerTextHint:"展示在页面底部,支持纯文本(≤2000 字符);留空显示默认标语",footerBeian:"备案号 footer_beian",footerBeianHint:"如 京ICP备2024xxxxxx号-1(≤128 字符)",sectionNotify:"系统通知",notifyEnabled:"启用右上角通知 notify_enabled",notifyTitle:"通知标题 notify_title",notifyTitleHint:"留空显示默认标题「系统通知」(≤128 字符)",notifyContent:"通知内容 notify_content",notifyContentHint:"支持 等受控 HTML(≤2000 字符)",sectionSavePolicy:"保存策略",maxSaveSeconds:"最长保存秒数 max_save_seconds",maxSaveSecondsHint:"0 = 不限制(服务端默认 7 天兜底),最大 {max} 秒(365 天)",maxSaveCount:"最大可取次数 max_save_count",maxSaveCountHint:"0 = 不限制,最大 {max} 次",sectionStorage:"存储策略",maxFileSize:"单文件上限 max_file_size(字节)",maxFileSizeHint:"0 = 回落 uploadSize(当前 {fallback}),最大 {max} 字节(10 GiB)",allowedFileTypes:"允许类型 allowed_file_types",allowedFileTypesHint:"逗号分隔:扩展名(jpg)或 MIME(image/*),* 不限制",sectionUploadRate:"上传频率限制",uploadCount:"窗口内允许上传次数 uploadCount",uploadCountHint:"最小 1,最大 {max}",uploadMinute:"频率窗口(分钟)uploadMinute",uploadMinuteHint:"最小 1,最大 {max}",uploadRate:"上行带宽(可选)",uploadRateHint:"0 = 不限速;单位 MB/s;范围 0~1024。修改后立即生效(管理端读最新 KV)",downloadRate:"下行带宽(可选)",downloadRateHint:"0 = 不限速;单位 MB/s;范围 0~1024。S3 预签名直传(客户端→S3)无法限速",unitHour:"小时",unitDay:"天",unitMB:"MB",unitGB:"GB",maxSaveTime:"最长保存时间 max_save_seconds",maxSaveTimeHint:"0 = 不限制(服务端默认 7 天兜底),最大 365 天",saveTimeUnlimited:"不限制(0)",maxFileSizeFriendly:"单文件上限 max_file_size",maxFileSizeHintV3:"0 = 回落 uploadSize(当前 {fallback}),最大 10 GB",sizeUnlimited:"不限制(0)",sectionEngine:"存储引擎",engineCurrent:"当前引擎",engineLocal:"本地存储",engineWebdav:"WebDAV",engineS3:"S3 对象存储",engineSwitch:"切换到该引擎",engineSwitching:"切换中…",engineSwitchOk:"存储引擎已切换为 {engine}",engineSwitchFail:"切换失败(已保持原引擎)",engineParamsTitle:"引擎参数",engineParamsSaved:"引擎参数已保存",localRoot:"存储根目录 local_storage_path",localRootHint:"留空 = 系统默认数据目录;修改后对新写入生效",webdavUrl:"服务地址 webdav_url",webdavUrlHint:"如 https://dav.example.com/dav/",webdavRoot:"远端根目录 webdav_root_path",webdavRootHint:"远端起始目录(不存在会自动逐级创建)",webdavUser:"用户名 webdav_username",webdavPass:"密码 webdav_password",secretKeepHint:"留空或 ****** = 不修改",s3Endpoint:"端点 s3_endpoint_url",s3EndpointHint:"如 https://s3.example.com:9000(AWS 官方可留空)",s3Bucket:"存储桶 s3_bucket_name",s3Region:"区域 s3_region_name",s3Ak:"AccessKeyID s3_access_key_id",s3Sk:"SecretAccessKey s3_secret_access_key",s3Token:"会话令牌 aws_session_token(可选)",s3Style:"寻址样式 s3_addressing_style",styleAuto:"auto(自动)",stylePath:"path(路径式,MinIO 常用)",styleVirtual:"virtual(虚拟主机式)",engineParamsSave:"保存引擎参数",approxSize:"≈ {size}"}}},TE={app:{tagline:"File Drop",description:"A ready-to-use file sharing service"},nav:{home:"Share",docs:"API Docs",openapi:"OpenAPI",admin:"Admin",homeTitle:"{name} — Home",mainNav:"Main navigation"},theme:{label:"Theme",light:"Light",dark:"Dark",system:"System"},lang:{label:"Language"},footer:{linkNav:"Footer links",docs:"API Docs",openapi:"OpenAPI",admin:"Admin",copyright:"© {year} {name}"},notify:{title:"System Notice",close:"Got it"},common:{loading:"Loading…",cancel:"Cancel",save:"Save",search:"Search",refresh:"Refresh",copy:"Copy",copied:"Copied",copyFailed:"Copy failed",close:"Close",actions:"Actions",all:"All",query:"Query",reset:"Reset",previousPage:"Previous",nextPage:"Next",pagerInfo:"{total} records · page {page}/{pages}",text:"Text",file:"File",success:"Success",failed:"Failed",denied:"Denied",none:"-"},time:{forever:"Never expires",permanent:"Permanent",expired:"Expired",lessThanMinute:"less than a minute",minutes:"{n} min",hoursMinutes:"{h} h {m} min",daysHours:"{d} d {h} h"},expireStyle:{day:"Days",hour:"Hours",minute:"Minutes",count:"Times",forever:"Forever"},home:{heroTitle:"{name} · File Drop",heroDesc:"No signup — share text or files and hand over a pickup code",pickupPlaceholder:"Enter a pickup code",pickupButton:"Pick up",pickupRequired:"Please enter a pickup code",tabText:"Share text",tabFile:"Share file",textContent:"Text content",textPlaceholder:"Paste the text or code snippet to share…",textBytes:"{bytes} / 222 KB (use file sharing for larger content)",textTooLong:"Content too long (over 222KB) — please share it as a file instead",textRequired:"Enter the text to share",customCode:"Custom pickup code (optional)",customCodeHint:"Leave empty for random; 4-8 letters/digits",customCodeInvalid:"Pickup code must be 4-8 letters or digits",customCodeTaken:"This pickup code is already taken",generateCode:"Generate code",fileRequired:"Please choose a file to share",fileTooLarge:"File exceeds the size limit (max {size})",chunkedUploading:"Chunked upload",uploading:"Uploading",uploadingDots:"Uploading…",uploadAndShare:"Upload & generate code",uploadDisabled:"Guest uploads are disabled. Please contact the administrator if you need to share.",shareAnother:"Share another one",textShared:"Text shared",fileShared:"File shared",uploadCancelled:"Upload cancelled",shareFailed:"Share failed, please try again later",uploadFailed:"Upload failed, please retry",rateLimited:"Too many requests, please slow down",notInitialized:"System is not initialized yet. An administrator must finish the setup first."},result:{badge:"Shared",code:"Pickup code",link:"Pickup link",copyLink:"Copy link",copyLinkCode:"Copy link & code",copyCode:"Copy code",codeCopied:"Pickup code copied",linkCopied:"Pickup link copied",linkCodeCopied:"Link and code copied",clickCopyCode:"Click to copy pickup code",expires:"Expires in: {value}",forever:"Forever",hint:"Send the code or link to the recipient; they can pick it up from the home page.",copyFailed:"Copy failed — please select the text manually"},pickup:{emptyCode:"Pickup code is empty",querying:"Looking up code {code} …",failed:"Pickup failed",failedDefault:"Pickup failed, please try again later",notFound:"Code not found or the share has expired",confirmHint:"Double-check the code, or ask the sender to share it again",retryPlaceholder:"Enter another pickup code",retryButton:"Try again",remainingUnlimited:"Unlimited",remainingCount:"{n} left",expireAt:"Expires: {time}",loadingText:"Fetching content…",copyContent:"Copy content",downloadTxt:"Download as .txt",downloaded:"Download complete",downloadFailed:"Download failed, please retry",copied:"Content copied",sizeUsed:"Size {size} · picked up {n} times",downloading:"Downloading {percent}%",downloadFile:"Download ({size})"},expire:{value:"Amount",label:"Expires in",foreverOption:"Never expires",countOption:"After N pickups",countHint:"The share becomes invalid after the given number of pickups",timeHint:"Valid for {value} {unit}",foreverHint:"The share stays valid until an administrator deletes it",maxSecondsHint:"At most {value}",maxCountHint:"At most {n} pickups"},drop:{aria:"Choose or drop a file",zone:"Click to choose or drop a file here",maxSize:"Max {size} per file",noLimit:"A pickup code is generated after upload",remove:"Remove",tooLarge:"File size {size} exceeds the limit {limit}",typeHint:"Allowed types: {types}"},docs:{searchPlaceholder:"Search documentation…",notGenerated:"Docs not generated yet",buildHint:"They are collected from docs/api/*.md at build time",noMatch:"No matching sections",tocTitle:"On this page",loading:"Loading document…",preparing:"API docs are on the way",preparingHint:"Sources live in the project docs/api/ directory (each .md is one section). Rebuild the frontend to embed them for offline use.",emptyContent:"Document is empty",loadFailed:'Failed to load document "{title}"',sidebar:"Documentation sections"},openapi:{title:"OpenAPI 3.0 Specification",statusOk:"Loaded",statusError:"Failed to load spec",statusLoading:"Loading…",source:"Source: {source}",sourceEmbedded:"Embedded docs/openapi.yaml at build time",notAvailable:"openapi.yaml is not generated or cannot be accessed",notAvailableHint:"The spec file lives in the project docs/openapi.yaml. Rebuilding the frontend embeds it; you can also deploy it to {url} for runtime loading."},notFound:{title:"Page not found",desc:"The address may have changed",back:"Back home"},admin:{login:{title:"Administrator Sign-in",subtitle:"{name} · Admin Console",password:"Admin password",passwordPlaceholder:"Enter the admin password",submit:"Sign in",wrongPassword:"Incorrect password",failed:"Sign-in failed, please try again later",required:"Please enter the admin password",hint:"The password is configured by the deployer via env vars or system settings; repeated failures trigger IP rate limiting."},nav:{title:"Admin",files:"Files",audit:"Audit Log",settings:"Settings",logout:"Sign out",menu:"Admin menu",loggedOut:"Signed out"},files:{title:"File Management",totalRecords:"{total} shares in total",searchPlaceholder:"Search code / file name",batchDelete:"Delete selected",batchDeleteWithCount:"Delete selected ({count})",deleteSelectedTitle:"Delete {count} selected items",selectFirst:"Select rows first",loading:"Loading…",empty:"No shares yet",loadFailed:"Failed to load the file list",colCode:"Code",colName:"Name",colType:"Type",colSize:"Size",colUsed:"Picked",colRemaining:"Remaining",colExpireAt:"Expires",colStatus:"Status",colCreatedAt:"Created",remainingUnlimited:"∞",remainingCount:"{n} left",statusValid:"Active",statusExpired:"Expired",copyCode:"Copy code",copyLink:"Copy link",edit:"Edit",fetchText:"Fetch text",delete:"Delete",confirmDelete:'Delete "{name}"? This cannot be undone.',confirmBatchDelete:"Delete {count} selected shares? This cannot be undone.",deleteSuccess:"Deleted",batchDeleteSuccess:"Batch deleted",deleteFailed:"Delete failed",batchDeleteFailed:"Batch delete failed",nothingChanged:"Nothing changed",updateSuccess:"Updated",updateFailed:"Update failed",fetchTextFailed:"Failed to fetch content (the share may have expired)",linkCopied:"Pickup link copied",codeCopied:"Pickup code copied",editModalTitle:"Edit share",expireAtHint:"Expires at (leave empty for never)",expireCountHint:"Remaining pickups (-1 for unlimited)"},audit:{title:"Audit Log",subtitle:"Upload / download events: time, IP, UA, device, result, bytes and duration",action:"Action",result:"Result",actionUpload:"Upload",actionDownload:"Download",filterIp:"IP",filterStart:"Start time",filterEnd:"End time",empty:"No audit records yet (only upload / download actions are recorded)",loadFailed:"Failed to load the audit log",colTime:"Time",colAction:"Action",colResult:"Result",colFile:"File",colCode:"Code",colBytes:"Bytes",colIp:"IP",colDevice:"Device",colDuration:"Duration",colUaError:"UA / Error"},settings:{title:"System Settings",subtitle:"Site name and branding (custom values win; leave empty to restore built-in defaults)",restoreDefaults:"Restore defaults",restoreDefaultsDone:"Defaults filled in — click save to apply",loading:"Loading settings…",loadFailed:"Failed to load settings",sectionBasic:"Basic",siteName:"Site name · site_name",siteNameHint:"Shown in the nav bar, login page and browser title",siteDomain:"Public site domain",siteDomainHint:"http(s)://host[:port], no path; leave empty to use the current address in share links",sectionLogo:"Nav logo",logoUrl:"Logo image URL · logo_url",uploadImage:"Upload image",logoHint:"Enter a URL or upload a local image (≤256KB, stored inline); leave empty for the built-in default",imageTooLarge:"Image exceeds 256KB — compress it or paste an image URL instead",imageLoaded:"Image loaded — click save to apply site-wide",imageReadFailed:"Failed to read the image",navPreview:"Nav bar preview:",sectionFavicon:"Browser favicon",faviconUrl:"Favicon URL · favicon_url",faviconHint:"Use a square PNG/ICO; leave empty for the built-in default",faviconPreviewHint:"Browser tab icon (applied after saving and refreshing)",saveAll:"Save settings (applies site-wide)",saved:"Settings saved site-wide",saveFailed:"Save failed",sectionPassword:"Change admin password",passwordHint:"After saving, all signed-in sessions are invalidated and you must sign in again",oldPassword:"Old password",newPassword:"New password (at least 6 characters)",confirmPassword:"Confirm new password",pwdRequired:"Please fill in the old and new passwords",pwdTooShort:"The new password must be at least 6 characters",pwdMismatch:"The two passwords do not match",pwdChanged:"Password changed — please sign in again with the new password",pwdChangeFailed:"Change failed",pwdWrong:"Old password is incorrect",sectionBackground:"Background image",backgroundUrl:"Background URL · background_url",backgroundHint:"http(s) image URL, data:image image or site-relative path (≤2048 chars); leave empty for the theme default",sectionFooter:"Footer",footerText:"Footer text · footer_text",footerTextHint:"Shown at the page bottom as plain text (≤2000 chars); leave empty for the default tagline",footerBeian:"ICP filing number · footer_beian",footerBeianHint:"e.g. 京ICP备2024xxxxxx号-1 (≤128 chars)",sectionNotify:"System notice",notifyEnabled:"Show floating notice · notify_enabled",notifyTitle:"Notice title · notify_title",notifyTitleHint:'Leave empty for the default title "System Notice" (≤128 chars)',notifyContent:"Notice content · notify_content",notifyContentHint:"Controlled HTML such as is allowed (≤2000 chars)",sectionSavePolicy:"Save policy",maxSaveSeconds:"Max save seconds · max_save_seconds",maxSaveSecondsHint:"0 = unlimited (server default 7-day fallback), max {max} seconds (365 days)",maxSaveCount:"Max pickup count · max_save_count",maxSaveCountHint:"0 = unlimited, max {max}",sectionStorage:"Storage policy",maxFileSize:"Max file size · max_file_size (bytes)",maxFileSizeHint:"0 = fall back to uploadSize (currently {fallback}), max {max} bytes (10 GiB)",allowedFileTypes:"Allowed types · allowed_file_types",allowedFileTypesHint:"Comma separated: extensions (jpg) or MIME (image/*); * means no limit",sectionUploadRate:"Upload rate limit",uploadCount:"Uploads per window · uploadCount",uploadCountHint:"Min 1, max {max}",uploadMinute:"Window length (minutes) · uploadMinute",uploadMinuteHint:"Min 1, max {max}",uploadRate:"Upload bandwidth (optional)",uploadRateHint:"0 = unlimited; MB/s; range 0~1024. Live-effective (admin reads latest KV each request)",downloadRate:"Download bandwidth (optional)",downloadRateHint:"0 = unlimited; MB/s; range 0~1024. S3 presigned direct upload cannot be throttled server-side",unitHour:"Hour(s)",unitDay:"Day(s)",unitMB:"MB",unitGB:"GB",maxSaveTime:"Max save time · max_save_seconds",maxSaveTimeHint:"0 = unlimited (server default 7-day fallback), max 365 days",saveTimeUnlimited:"Unlimited (0)",maxFileSizeFriendly:"Max file size · max_file_size",maxFileSizeHintV3:"0 = fall back to uploadSize (current {fallback}), max 10 GB",sizeUnlimited:"Unlimited (0)",sectionEngine:"Storage engine",engineCurrent:"Current engine",engineLocal:"Local storage",engineWebdav:"WebDAV",engineS3:"S3 object storage",engineSwitch:"Switch to this engine",engineSwitching:"Switching…",engineSwitchOk:"Storage engine switched to {engine}",engineSwitchFail:"Switch failed (previous engine kept)",engineParamsTitle:"Engine parameters",engineParamsSaved:"Engine parameters saved",localRoot:"Storage root · local_storage_path",localRootHint:"Empty = system default data directory; applies to new writes",webdavUrl:"Server URL · webdav_url",webdavUrlHint:"e.g. https://dav.example.com/dav/",webdavRoot:"Remote root · webdav_root_path",webdavRootHint:"Remote base directory (created recursively if missing)",webdavUser:"Username · webdav_username",webdavPass:"Password · webdav_password",secretKeepHint:"Empty or ****** = keep unchanged",s3Endpoint:"Endpoint · s3_endpoint_url",s3EndpointHint:"e.g. https://s3.example.com:9000 (leave empty for AWS)",s3Bucket:"Bucket · s3_bucket_name",s3Region:"Region · s3_region_name",s3Ak:"AccessKeyID · s3_access_key_id",s3Sk:"SecretAccessKey · s3_secret_access_key",s3Token:"Session token · aws_session_token (optional)",s3Style:"Addressing style · s3_addressing_style",styleAuto:"auto",stylePath:"path (typical for MinIO)",styleVirtual:"virtual-hosted",engineParamsSave:"Save engine parameters",approxSize:"≈ {size}"}}},Hd="fcb_locale";function PE(){try{const e=localStorage.getItem(Hd);return e==="zh-CN"||e==="en-US"?e:null}catch{return null}}function IE(){const e=PE();return e||(((typeof navigator<"u"?navigator.language:"en")??"en").toLowerCase().startsWith("zh")?"zh-CN":"en-US")}function AE(e){try{localStorage.setItem(Hd,e)}catch{}}const Ir=pE({legacy:!1,locale:IE(),fallbackLocale:"zh-CN",messages:{"zh-CN":EE,"en-US":TE},missingWarn:!1,fallbackWarn:!1});function Ac(){return Ir.global.locale.value??"zh-CN"}function wT(e){Ir.global.locale.value=e,document.documentElement.lang=e,AE(e)}Ir.global.t;function vo(e,t){return Ir.global.t(e,t??{})}function LT(e){if(e==null||Number.isNaN(e))return"-";if(e<1024)return`${e} B`;const t=["KB","MB","GB","TB"];let o=e,r=-1;do o/=1024,r++;while(o>=1024&&r=100?0:1)} ${t[r]}`}function DT(e){if(!e)return"-";const t=new Date(e);if(Number.isNaN(t.getTime()))return String(e);const o=r=>`${r}`.padStart(2,"0");return`${t.getFullYear()}-${o(t.getMonth()+1)}-${o(t.getDate())} ${o(t.getHours())}:${o(t.getMinutes())}:${o(t.getSeconds())}`}function RT(e){if(!e)return vo("time.forever");const t=new Date(e).getTime();if(Number.isNaN(t))return vo("time.forever");const o=t-Date.now();if(o<=0)return vo("time.expired");const r=Math.floor(o/6e4);if(r<1)return vo("time.lessThanMinute");if(r<60)return vo("time.minutes",{n:r});const n=Math.floor(r/60);if(n<24)return vo("time.hoursMinutes",{h:n,m:r%60});const i=Math.floor(n/24);return vo("time.daysHours",{d:i,h:n%24})}function FT(e){return e==null?"-":e<1e3?`${e} ms`:`${(e/1e3).toFixed(2)} s`}const wE=[{value:"day",label:"day"},{value:"hour",label:"hour"},{value:"minute",label:"minute"},{value:"count",label:"count"},{value:"forever",label:"forever"}];function OT(e){const t=wE.find(o=>o.value===e);return t?vo(`expireStyle.${t.value}`):e}function MT(e){if(!e)return null;const t=/filename\*=(?:UTF-8'')?([^;]+)/i.exec(e);if(t)try{return decodeURIComponent(t[1].replace(/["']/g,"").trim())}catch{}const o=/filename="?([^";]+)"?/i.exec(e);return o?o[1]:null}function NT(e,t){const o=URL.createObjectURL(e),r=document.createElement("a");r.href=o,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(o),5e3)}async function kT(e){try{return await navigator.clipboard.writeText(e),!0}catch{try{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const o=document.execCommand("copy");return t.remove(),o}catch{return!1}}}async function HT(e){const t=await crypto.subtle.digest("SHA-256",e);return Array.from(new Uint8Array(t)).map(o=>o.toString(16).padStart(2,"0")).join("")}function De(e,t){for(const o of t)if(e&&typeof e=="object"&&o in e&&e[o]!==void 0&&e[o]!==null)return e[o]}const LE="/assets/logo-CBe6oOaL.svg",DE="/assets/favicon-Dl6ZLL7S.png",RE=LE,FE=DE,tl="文件快传";function ol(e,t=!0){return e==null?t:typeof e=="boolean"?e:typeof e=="number"?e!==0:String(e)!=="0"&&String(e)!=="false"&&String(e)!==""}function wc(e){return Array.isArray(e)?e.map(t=>String(t).trim()).filter(Boolean):typeof e=="string"?e.split(",").map(t=>t.trim()).filter(Boolean):[]}function ar(e,t){const o=Number(e);return Number.isFinite(o)?o:t}const OE=Xu("config",{state:()=>({loaded:!1,loading:!1,siteName:tl,siteDomain:"",description:"",explain:"",uploadSize:10*1024*1024,allowedFileTypes:[],expireStyle:["day","hour","minute","forever","count"],enableChunk:!1,openUpload:!0,notifyEnabled:!1,notifyTitle:"",notifyContent:"",logoUrl:"",faviconUrl:"",backgroundUrl:"",footerText:"",footerBeian:"",maxFileSize:0,maxSaveSeconds:0,maxSaveCount:0,uploadCount:0,uploadMinute:0}),getters:{displayLogoUrl:e=>e.logoUrl?.trim()?e.logoUrl:RE,displayFaviconUrl:e=>e.faviconUrl?.trim()?e.faviconUrl:FE,displayName:e=>e.siteName?.trim()?e.siteName:tl,shareLinkBase:e=>e.siteDomain?.trim()?e.siteDomain.trim().replace(/\/$/,""):location.origin,effectiveMaxFileSize(){return this.maxFileSize>0?this.maxFileSize:this.uploadSize}},actions:{async load(){this.loading=!0;try{const e=await gS(ed.publicConfig,{timeout:8e3}),t=De(e,["config"])??e;this.siteName=String(De(t,["name","site_name","siteName"])??tl),this.siteDomain=String(De(t,["site_domain","siteDomain"])??"").trim(),this.description=String(De(t,["description"])??""),this.explain=String(De(t,["explain","page_explain"])??""),this.uploadSize=ar(De(t,["uploadSize","upload_size"]),10*1024*1024),this.allowedFileTypes=wc(De(t,["allowedFileTypes","allowed_file_types"]));const o=wc(De(t,["expireStyle","expire_style"]));o.length&&(this.expireStyle=o),this.enableChunk=ol(De(t,["enableChunk","enable_chunk"]),!1),this.openUpload=ol(De(t,["openUpload","open_upload"]),!0),this.notifyTitle=String(De(t,["notify_title","notifyTitle"])??""),this.notifyContent=String(De(t,["notify_content","notifyContent"])??""),this.notifyEnabled=ol(De(t,["notify_enabled","notifyEnabled"]),!1),this.backgroundUrl=String(De(t,["background_url","backgroundUrl"])??"").trim(),this.footerText=String(De(t,["footer_text","footerText"])??""),this.footerBeian=String(De(t,["footer_beian","footerBeian"])??""),this.maxFileSize=ar(De(t,["max_file_size","maxFileSize","maxFileSize"]),0),this.maxSaveSeconds=ar(De(t,["max_save_seconds","maxSaveSeconds"]),0),this.maxSaveCount=ar(De(t,["max_save_count","maxSaveCount"]),0),this.uploadCount=ar(De(t,["uploadCount","upload_count"]),0),this.uploadMinute=ar(De(t,["uploadMinute","upload_minute"]),0),this.logoUrl=String(De(t,["logo_url","logoUrl"])??"").trim(),this.faviconUrl=String(De(t,["favicon_url","faviconUrl"])??"").trim(),this.loaded=!0,this.applyToDocument()}catch{}finally{this.loading=!1}},applyToDocument(){let e=document.querySelector('link[rel="icon"]');e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=this.displayFaviconUrl}}}),$T=["light","dark","system"],$d="fcb_theme_mode";function ME(){try{const e=localStorage.getItem($d);return e==="light"||e==="dark"||e==="system"?e:null}catch{return null}}function NE(e){try{localStorage.setItem($d,e)}catch{}}function Bd(){return typeof matchMedia=="function"&&matchMedia("(prefers-color-scheme: dark)").matches}const Do=mt(ME()??"system"),qn=mt(Do.value==="system"?Bd()?"dark":"light":Do.value);let Lc=!1;function kE(){if(Lc||typeof matchMedia!="function")return;Lc=!0;const e=matchMedia("(prefers-color-scheme: dark)");e.addEventListener?.("change",()=>{Do.value==="system"&&(qn.value=e.matches?"dark":"light")})}function HE(){kE(),qn.value=Do.value==="system"?Bd()?"dark":"light":Do.value,document.documentElement.dataset.theme=qn.value}St(Do,HE,{immediate:!0});function $E(e){Do.value=e,NE(e)}function BE(){return{mode:Do,resolved:qn,setMode:$E}}let WE=0;const zE=Xu("toast",{state:()=>({items:[]}),actions:{push(e,t="info",o=3200){const r=++WE;this.items.push({id:r,type:t,text:e}),this.items.length>4&&this.items.shift(),setTimeout(()=>this.dismiss(r),o)},success(e){this.push(e,"success")},error(e){this.push(e,"error",4200)},info(e){this.push(e,"info")},dismiss(e){this.items=this.items.filter(t=>t.id!==e)}}}),UE={class:"toast-host","aria-live":"polite"},VE=["onClick"],jE={class:"toast-icon","aria-hidden":"true"},GE=po({__name:"ToastHost",setup(e){const t=zE();return(o,r)=>(Ft(),hr("div",UE,[(Ft(!0),hr(qe,null,tm(bt(t).items,n=>(Ft(),hr("div",{key:n.id,class:ii(["toast",`toast-${n.type}`]),role:"status",onClick:i=>bt(t).dismiss(n.id)},[Rt("span",jE,Dn(n.type==="success"?"✅":n.type==="error"?"⚠️":"ℹ️"),1),Rt("span",null,Dn(n.text),1)],10,VE))),128))]))}}),KE=["aria-label"],YE={class:"notify-head"},qE={class:"notify-title-text"},XE=["title","aria-label"],JE=["innerHTML"],QE=po({__name:"NotifyPop",props:{title:{},content:{}},emits:["close"],setup(e,{emit:t}){const o=t;return(r,n)=>(Ft(),hr("aside",{class:"notify-pop",role:"dialog","aria-live":"polite","aria-label":e.title||r.$t("notify.title")},[Rt("div",YE,[n[1]||(n[1]=Rt("span",{"aria-hidden":"true"},"🔔",-1)),Rt("span",qE,Dn(e.title||r.$t("notify.title")),1),Rt("button",{class:"notify-close",type:"button",title:r.$t("notify.close"),"aria-label":r.$t("notify.close"),onClick:n[0]||(n[0]=i=>o("close"))}," ✕ ",8,XE)]),Rt("div",{class:"notify-content",innerHTML:e.content},null,8,JE)],8,KE))}}),Wd=(e,t)=>{const o=e.__vccOpts||e;for(const[r,n]of t)o[r]=n;return o},ZE=Wd(QE,[["__scopeId","data-v-6154d8f4"]]),eT={class:"app-root"},tT={key:1,class:"app-bg-tint","aria-hidden":"true"},Dc="fcb_notify_read",oT=po({__name:"App",setup(e){const t=OE(),o=kg(),{resolved:r}=BE();St(Ac,d=>{document.documentElement.lang=d},{immediate:!0}),St([()=>o.fullPath,Ac,()=>t.displayName],()=>{const d=o.meta.titleKey,p=typeof d=="string"?Ir.global.t(d):t.displayName;document.title=`${p} · ${t.displayName}`},{immediate:!0});const n=fe(()=>r.value==="dark"?uS:null),i=fe(()=>r.value==="dark"?{common:{primaryColor:"#7d95ff",primaryColorHover:"#98abff",primaryColorPressed:"#6c86f5",primaryColorSuppl:"#98abff"}}:{common:{primaryColor:"#4f6ef7",primaryColorHover:"#3d5bf0",primaryColorPressed:"#4359e0",primaryColorSuppl:"#3d5bf0"}}),l=fe(()=>!!t.backgroundUrl.trim()),a=mt(!1),s=mt(!1);function c(){return`${t.notifyEnabled}|${t.notifyTitle}|${t.notifyContent}`}function u(){try{s.value=localStorage.getItem(Dc)===c()}catch{s.value=!1}}function f(){a.value=!1,s.value=!0;try{localStorage.setItem(Dc,c())}catch{}}return St(()=>[t.loaded,c()],()=>{const d=s.value;u(),!(!d&&s.value)&&t.loaded&&t.notifyEnabled&&t.notifyContent.trim()&&!s.value&&(a.value=!0)}),pi(()=>{t.load(),u(),t.loaded&&t.notifyEnabled&&t.notifyContent.trim()&&!s.value&&(a.value=!0)}),(d,p)=>{const g=Qp("RouterView");return Ft(),Zr(bt(q_),{theme:n.value,"theme-overrides":i.value,"inline-theme-disabled":""},{default:du(()=>[Rt("div",eT,[p[0]||(p[0]=Rt("div",{class:"app-ambient","aria-hidden":"true"},null,-1)),l.value?(Ft(),hr("div",{key:0,class:"app-bg","aria-hidden":"true",style:ni({backgroundImage:`url(${bt(t).backgroundUrl})`})},null,4)):wn("",!0),l.value?(Ft(),hr("div",tT)):wn("",!0),a.value?(Ft(),Zr(ZE,{key:2,title:bt(t).notifyTitle,content:bt(t).notifyContent,onClose:f},null,8,["title","content"])):wn("",!0),je(GE),je(g)])]),_:1},8,["theme","theme-overrides"])}}}),rT=Wd(oT,[["__scopeId","data-v-b2dd3b97"]]),nT="modulepreload",iT=function(e){return"/"+e},Rc={},Dt=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(c=>{if(c=iT(c),c in Rc)return;Rc[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":nT,u||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((p,g)=>{d.addEventListener("load",p),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},lT=mg(),Xn=Ng({history:lT,routes:[{path:"/",name:"home",component:()=>Dt(()=>import("./HomeView-7rYMTqXg.js"),__vite__mapDeps([0,1,2,3,4,5])),meta:{titleKey:"nav.home"}},{path:"/s/:code",name:"pickup",component:()=>Dt(()=>import("./PickupView-BgaFApjA.js"),__vite__mapDeps([6,1,2,3,4])),meta:{titleKey:"nav.home"}},{path:"/admin/login",name:"admin-login",component:()=>Dt(()=>import("./LoginView-4Q37le_I.js"),__vite__mapDeps([7,1,2,3,8,9,10])),meta:{titleKey:"admin.nav.title"}},{path:"/admin",component:()=>Dt(()=>import("./AdminLayout-CGpX2ckb.js"),__vite__mapDeps([11,2,8,9])),meta:{requiresAuth:!0,titleKey:"admin.nav.title"},children:[{path:"",redirect:{name:"admin-files"}},{path:"files",name:"admin-files",component:()=>Dt(()=>import("./FilesView-DT4FMKVX.js"),__vite__mapDeps([12,9,4,13])),meta:{titleKey:"admin.nav.files"}},{path:"audit",name:"admin-audit",component:()=>Dt(()=>import("./AuditView-CVXqXaCD.js"),__vite__mapDeps([14,9,13,15])),meta:{titleKey:"admin.nav.audit"}},{path:"settings",name:"admin-settings",component:()=>Dt(()=>import("./SettingsView-CYUiuF4c.js"),__vite__mapDeps([16,9,8,17])),meta:{titleKey:"admin.nav.settings"}}]},{path:"/docs",name:"docs",component:()=>Dt(()=>import("./DocsView-DA7M6gnZ.js"),__vite__mapDeps([18,1,2,3,19,20])),meta:{titleKey:"nav.docs"}},{path:"/docs/:slug",name:"docs-detail",component:()=>Dt(()=>import("./DocsView-DA7M6gnZ.js"),__vite__mapDeps([18,1,2,3,19,20])),meta:{titleKey:"nav.docs"}},{path:"/openapi",name:"openapi",component:()=>Dt(()=>import("./OpenApiView-DfEtzNyC.js"),__vite__mapDeps([21,1,2,3,22,19,23])),meta:{titleKey:"nav.openapi"}},{path:"/:pathMatch(.*)*",name:"not-found",component:()=>Dt(()=>import("./NotFoundView-CNRxIBJl.js"),__vite__mapDeps([24,1,2,3])),meta:{titleKey:"notFound.title"}}],scrollBehavior(e,t,o){return o||(e.hash?{el:e.hash,behavior:"smooth"}:{top:0})}});Xn.beforeEach(e=>{if(e.meta.requiresAuth&&!localStorage.getItem("fcb_admin_token"))return{name:"admin-login",query:{redirect:e.fullPath}}});hS(()=>{const e=Xn.currentRoute.value;e.name!=="admin-login"&&Xn.push({name:"admin-login",query:{redirect:e.fullPath}})});const wi=Sh(rT);wi.use(Th());wi.use(Ir);wi.use(Xn);wi.mount("#app");export{FT as $,du as A,CT as B,sT as C,pT as D,wE as E,qe as F,je as G,st as H,pi as I,St as J,DT as K,RT as L,NT as M,kg as N,Qp as O,Su as P,fT as Q,fn as R,De as S,uT as T,IT as U,Zf as V,td as W,MT as X,AT as Y,mT as Z,Wd as _,OE as a,Ze as a0,Yl as a1,Il as a2,Bx as a3,Jl as a4,Vs as a5,Mx as a6,en as a7,Je as a8,pn as a9,Ac as aA,wT as aB,BE as aC,PT as aD,Io as aa,ET as ab,cT as ac,Sl as ad,Ds as ae,ll as af,TT as ag,Wr as ah,dT as ai,ua as aj,xT as ak,_T as al,aT as am,n_ as an,C0 as ao,J as ap,vT as aq,ST as ar,c_ as as,yT as at,Dm as au,Xu as av,od as aw,mS as ax,Dt as ay,$T as az,Rt as b,hr as c,po as d,ii as e,bt as f,wn as g,fe as h,zE as i,mt as j,kT as k,OT as l,gT as m,ni as n,Ft as o,dS as p,Lm as q,tm as r,LT as s,Dn as t,Sa as u,gS as v,hT as w,ed as x,HT as y,Zr as z}; diff --git a/server/web/dist/assets/index-QLbKGtH7.js b/server/web/dist/assets/index-QLbKGtH7.js new file mode 100644 index 0000000..817f9fd --- /dev/null +++ b/server/web/dist/assets/index-QLbKGtH7.js @@ -0,0 +1,28 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomeView-DtwmVvt0.js","assets/PageShell-D1DY7qw8.js","assets/SiteNav.vue_vue_type_script_setup_true_lang-8XmHL8P7.js","assets/PageShell-PYQzNiuf.css","assets/share-Y37-qxxb.js","assets/HomeView-DcN_X0wH.css","assets/PickupView-DgVraLBF.js","assets/LoginView-CKYOzlGK.js","assets/auth-Yfi2oa1E.js","assets/admin-BZX1cFNW.js","assets/LoginView-BgHqRIwi.css","assets/AdminLayout-BtGxBJPS.js","assets/FilesView-bV8HZoYp.js","assets/Pager.vue_vue_type_script_setup_true_lang-pYdn-As_.js","assets/AuditView-QQ5no24L.js","assets/AuditView-f2PBwbQe.css","assets/SettingsView-fRnqP1Pf.js","assets/SettingsView-DwNwpsFG.css","assets/DocsView-C0zns43R.js","assets/docsSource-sXvNoXdF.js","assets/markdown-B5D8JARp.js","assets/OpenApiView-DRBb-4nZ.js","assets/swagger-CqkleIqs.js","assets/OpenApiView-BCH8BgeP.css","assets/NotFoundView-BHkq8CY8.js"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();function $l(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Se={},dr=[],Gt=()=>{},Fc=()=>!1,Jn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Qn=e=>e.startsWith("onUpdate:"),Be=Object.assign,Bl=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},zd=Object.prototype.hasOwnProperty,_e=(e,t)=>zd.call(e,t),oe=Array.isArray,To=e=>un(e)==="[object Map]",er=e=>un(e)==="[object Set]",Ta=e=>un(e)==="[object Date]",le=e=>typeof e=="function",we=e=>typeof e=="string",yt=e=>typeof e=="symbol",be=e=>e!==null&&typeof e=="object",Oc=e=>(be(e)||le(e))&&le(e.then)&&le(e.catch),Mc=Object.prototype.toString,un=e=>Mc.call(e),Ud=e=>un(e).slice(8,-1),Nc=e=>un(e)==="[object Object]",Zn=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Hr=$l(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ei=e=>{const t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},Vd=/-\w/g,ct=ei(e=>e.replace(Vd,t=>t.slice(1).toUpperCase())),jd=/\B([A-Z])/g,Ro=ei(e=>e.replace(jd,"-$1").toLowerCase()),ti=ei(e=>e.charAt(0).toUpperCase()+e.slice(1)),Di=ei(e=>e?`on${ti(e)}`:""),Vt=(e,t)=>!Object.is(e,t),In=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:o})},oi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Gd=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let Pa;const ri=()=>Pa||(Pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ni(e){if(oe(e)){const t={};for(let o=0;o{if(o){const r=o.split(Yd);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ii(e){let t="";if(we(e))t=e;else if(oe(e))for(let o=0;oPo(o,t))}const $c=e=>!!(e&&e.__v_isRef===!0),Dn=e=>we(e)?e:e==null?"":oe(e)||be(e)&&(e.toString===Mc||!le(e.toString))?$c(e)?Dn(e.value):JSON.stringify(e,Bc,2):String(e),Bc=(e,t)=>$c(t)?Bc(e,t.value):To(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,n],i)=>(o[Ri(r,i)+" =>"]=n,o),{})}:er(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>Ri(o))}:yt(t)?Ri(t):be(t)&&!oe(t)&&!Nc(t)?String(t):t,Ri=(e,t="")=>{var o;return yt(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};let He;class Wc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&He&&(He.active?(this.parent=He,this.index=(He.scopes||(He.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes){const r=this.scopes.slice();for(t=0,o=r.length;t0&&--this._on===0){if(He===this)He=this.prevScope;else{let t=He;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let o,r;for(o=0,r=this.effects.length;o0)return;if(Br){let t=Br;for(Br=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;$r;){let t=$r;for($r=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=o}}if(e)throw e}function Gc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Kc(e){let t,o=e.depsTail,r=o;for(;r;){const n=r.prevDep;r.version===-1?(r===o&&(o=n),Vl(r),op(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=o}function rl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Yc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Yc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kr)||(e.globalVersion=Kr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!rl(e))))return;e.flags|=2;const t=e.dep,o=Te,r=Nt;Te=e,Nt=!0;try{Gc(e);const n=e.fn(e._value);(t.version===0||Vt(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{Te=o,Nt=r,Kc(e),e.flags&=-3}}function Vl(e,t=!1){const{dep:o,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),o.subs===e&&(o.subs=r,!r&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)Vl(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function op(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Nt=!0;const qc=[];function so(){qc.push(Nt),Nt=!1}function co(){const e=qc.pop();Nt=e===void 0?!0:e}function Aa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=Te;Te=void 0;try{t()}finally{Te=o}}}let Kr=0;class rp{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class jl{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Te||!Nt||Te===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==Te)o=this.activeLink=new rp(Te,this),Te.deps?(o.prevDep=Te.depsTail,Te.depsTail.nextDep=o,Te.depsTail=o):Te.deps=Te.depsTail=o,Xc(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const r=o.nextDep;r.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=r),o.prevDep=Te.depsTail,o.nextDep=void 0,Te.depsTail.nextDep=o,Te.depsTail=o,Te.deps===o&&(Te.deps=r)}return o}trigger(t){this.version++,Kr++,this.notify(t)}notify(t){zl();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{Ul()}}}function Xc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Xc(r)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const Rn=new WeakMap,Jo=Symbol(""),nl=Symbol(""),Yr=Symbol("");function Ye(e,t,o){if(Nt&&Te){let r=Rn.get(e);r||Rn.set(e,r=new Map);let n=r.get(o);n||(r.set(o,n=new jl),n.map=r,n.key=o),n.track()}}function ro(e,t,o,r,n,i){const l=Rn.get(e);if(!l){Kr++;return}const a=s=>{s&&s.trigger()};if(zl(),t==="clear")l.forEach(a);else{const s=oe(e),c=s&&Zn(o);if(s&&o==="length"){const u=Number(r);l.forEach((f,d)=>{(d==="length"||d===Yr||!yt(d)&&d>=u)&&a(f)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),c&&a(l.get(Yr)),t){case"add":s?c&&a(l.get("length")):(a(l.get(Jo)),To(e)&&a(l.get(nl)));break;case"delete":s||(a(l.get(Jo)),To(e)&&a(l.get(nl)));break;case"set":To(e)&&a(l.get(Jo));break}}Ul()}function np(e,t){const o=Rn.get(e);return o&&o.get(t)}function ir(e){const t=ge(e);return t===e?t:(Ye(t,"iterate",Yr),vt(e)?t:t.map(kt))}function li(e){return Ye(e=ge(e),"iterate",Yr),e}function zt(e,t){return uo(e)?gr(lo(e)?kt(t):t):kt(t)}const ip={__proto__:null,[Symbol.iterator](){return Oi(this,Symbol.iterator,e=>zt(this,e))},concat(...e){return ir(this).concat(...e.map(t=>oe(t)?ir(t):t))},entries(){return Oi(this,"entries",e=>(e[1]=zt(this,e[1]),e))},every(e,t){return Xt(this,"every",e,t,void 0,arguments)},filter(e,t){return Xt(this,"filter",e,t,o=>o.map(r=>zt(this,r)),arguments)},find(e,t){return Xt(this,"find",e,t,o=>zt(this,o),arguments)},findIndex(e,t){return Xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xt(this,"findLast",e,t,o=>zt(this,o),arguments)},findLastIndex(e,t){return Xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mi(this,"includes",e)},indexOf(...e){return Mi(this,"indexOf",e)},join(e){return ir(this).join(e)},lastIndexOf(...e){return Mi(this,"lastIndexOf",e)},map(e,t){return Xt(this,"map",e,t,void 0,arguments)},pop(){return Ar(this,"pop")},push(...e){return Ar(this,"push",e)},reduce(e,...t){return wa(this,"reduce",e,t)},reduceRight(e,...t){return wa(this,"reduceRight",e,t)},shift(){return Ar(this,"shift")},some(e,t){return Xt(this,"some",e,t,void 0,arguments)},splice(...e){return Ar(this,"splice",e)},toReversed(){return ir(this).toReversed()},toSorted(e){return ir(this).toSorted(e)},toSpliced(...e){return ir(this).toSpliced(...e)},unshift(...e){return Ar(this,"unshift",e)},values(){return Oi(this,"values",e=>zt(this,e))}};function Oi(e,t,o){const r=li(e),n=r[t]();return r!==e&&!vt(e)&&(n._next=n.next,n.next=()=>{const i=n._next();return i.done||(i.value=o(i.value)),i}),n}const lp=Array.prototype;function Xt(e,t,o,r,n,i){const l=li(e),a=l!==e&&!vt(e),s=l[t];if(s!==lp[t]){const f=s.apply(e,i);return a?kt(f):f}let c=o;l!==e&&(a?c=function(f,d){return o.call(this,zt(e,f),d,e)}:o.length>2&&(c=function(f,d){return o.call(this,f,d,e)}));const u=s.call(l,c,r);return a&&n?n(u):u}function wa(e,t,o,r){const n=li(e),i=n!==e&&!vt(e);let l=o,a=!1;n!==e&&(i?(a=r.length===0,l=function(c,u,f){return a&&(a=!1,c=zt(e,c)),o.call(this,c,zt(e,u),f,e)}):o.length>3&&(l=function(c,u,f){return o.call(this,c,u,f,e)}));const s=n[t](l,...r);return a?zt(e,s):s}function Mi(e,t,o){const r=ge(e);Ye(r,"iterate",Yr);const n=r[t](...o);return(n===-1||n===!1)&&ai(o[0])?(o[0]=ge(o[0]),r[t](...o)):n}function Ar(e,t,o=[]){so(),zl();const r=ge(e)[t].apply(e,o);return Ul(),co(),r}const ap=$l("__proto__,__v_isRef,__isVue"),Jc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(yt));function sp(e){yt(e)||(e=String(e));const t=ge(this);return Ye(t,"has",e),t.hasOwnProperty(e)}class Qc{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,r){if(o==="__v_skip")return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!n;if(o==="__v_isReadonly")return n;if(o==="__v_isShallow")return i;if(o==="__v_raw")return r===(n?i?bp:ou:i?tu:eu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=oe(t);if(!n){let s;if(l&&(s=ip[o]))return s;if(o==="hasOwnProperty")return sp}const a=Reflect.get(t,o,Le(t)?t:r);if((yt(o)?Jc.has(o):ap(o))||(n||Ye(t,"get",o),i))return a;if(Le(a)){const s=l&&Zn(o)?a:a.value;return n&&be(s)?ll(s):s}return be(a)?n?ll(a):fn(a):a}}class Zc extends Qc{constructor(t=!1){super(!1,t)}set(t,o,r,n){let i=t[o];const l=oe(t)&&Zn(o);if(!this._isShallow){const c=uo(i);if(!vt(r)&&!uo(r)&&(i=ge(i),r=ge(r)),!l&&Le(i)&&!Le(r))return c||(i.value=r),!0}const a=l?Number(o)e,Cn=e=>Reflect.getPrototypeOf(e);function pp(e,t,o){return function(...r){const n=this.__v_raw,i=ge(n),l=To(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,c=n[e](...r),u=o?il:t?gr:kt;return!t&&Ye(i,"iterate",s?nl:Jo),Be(Object.create(c),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}}})}}function bn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mp(e,t){const o={get(n){const i=this.__v_raw,l=ge(i),a=ge(n);e||(Vt(n,a)&&Ye(l,"get",n),Ye(l,"get",a));const{has:s}=Cn(l),c=t?il:e?gr:kt;if(s.call(l,n))return c(i.get(n));if(s.call(l,a))return c(i.get(a));i!==l&&i.get(n)},get size(){const n=this.__v_raw;return!e&&Ye(ge(n),"iterate",Jo),n.size},has(n){const i=this.__v_raw,l=ge(i),a=ge(n);return e||(Vt(n,a)&&Ye(l,"has",n),Ye(l,"has",a)),n===a?i.has(n):i.has(n)||i.has(a)},forEach(n,i){const l=this,a=l.__v_raw,s=ge(a),c=t?il:e?gr:kt;return!e&&Ye(s,"iterate",Jo),a.forEach((u,f)=>n.call(i,c(u),c(f),l))}};return Be(o,e?{add:bn("add"),set:bn("set"),delete:bn("delete"),clear:bn("clear")}:{add(n){const i=ge(this),l=Cn(i),a=ge(n),s=!t&&!vt(n)&&!uo(n)?a:n;return l.has.call(i,s)||Vt(n,s)&&l.has.call(i,n)||Vt(a,s)&&l.has.call(i,a)||(i.add(s),ro(i,"add",s,s)),this},set(n,i){!t&&!vt(i)&&!uo(i)&&(i=ge(i));const l=ge(this),{has:a,get:s}=Cn(l);let c=a.call(l,n);c||(n=ge(n),c=a.call(l,n));const u=s.call(l,n);return l.set(n,i),c?Vt(i,u)&&ro(l,"set",n,i):ro(l,"add",n,i),this},delete(n){const i=ge(this),{has:l,get:a}=Cn(i);let s=l.call(i,n);s||(n=ge(n),s=l.call(i,n)),a&&a.call(i,n);const c=i.delete(n);return s&&ro(i,"delete",n,void 0),c},clear(){const n=ge(this),i=n.size!==0,l=n.clear();return i&&ro(n,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=pp(n,e,t)}),o}function Gl(e,t){const o=mp(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(_e(o,n)&&n in r?o:r,n,i)}const hp={get:Gl(!1,!1)},gp={get:Gl(!1,!0)},Cp={get:Gl(!0,!1)};const eu=new WeakMap,tu=new WeakMap,ou=new WeakMap,bp=new WeakMap;function xp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fn(e){return uo(e)?e:Kl(e,!1,up,hp,eu)}function ru(e){return Kl(e,!1,dp,gp,tu)}function ll(e){return Kl(e,!0,fp,Cp,ou)}function Kl(e,t,o,r,n){if(!be(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=n.get(e);if(i)return i;const l=xp(Ud(e));if(l===0)return e;const a=new Proxy(e,l===2?r:o);return n.set(e,a),a}function lo(e){return uo(e)?lo(e.__v_raw):!!(e&&e.__v_isReactive)}function uo(e){return!!(e&&e.__v_isReadonly)}function vt(e){return!!(e&&e.__v_isShallow)}function ai(e){return e?!!e.__v_raw:!1}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function qr(e){return!_e(e,"__v_skip")&&Object.isExtensible(e)&&kc(e,"__v_skip",!0),e}const kt=e=>be(e)?fn(e):e,gr=e=>be(e)?ll(e):e;function Le(e){return e?e.__v_isRef===!0:!1}function mt(e){return nu(e,!1)}function Yl(e){return nu(e,!0)}function nu(e,t){return Le(e)?e:new _p(e,t)}class _p{constructor(t,o){this.dep=new jl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:ge(t),this._value=o?t:kt(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,r=this.__v_isShallow||vt(t)||uo(t);t=r?t:ge(t),Vt(t,o)&&(this._rawValue=t,this._value=r?t:kt(t),this.dep.trigger())}}function bt(e){return Le(e)?e.value:e}const vp={get:(e,t,o)=>t==="__v_raw"?e:bt(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const n=e[t];return Le(n)&&!Le(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function iu(e){return lo(e)?e:new Proxy(e,vp)}function Sp(e){const t=oe(e)?new Array(e.length):{};for(const o in e)t[o]=lu(e,o);return t}class yp{constructor(t,o,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=yt(o)?o:String(o),this._raw=ge(t);let n=!0,i=t;if(!oe(t)||yt(this._key)||!Zn(this._key))do n=!ai(i)||vt(i);while(n&&(i=i.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=bt(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Le(this._raw[this._key])){const o=this._object[this._key];if(Le(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return np(this._raw,this._key)}}class Ep{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function aT(e,t,o){return Le(e)?e:le(e)?new Ep(e):be(e)&&arguments.length>1?lu(e,t,o):mt(e)}function lu(e,t,o){return new yp(e,t,o)}class Tp{constructor(t,o,r){this.fn=t,this.setter=o,this._value=void 0,this.dep=new jl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Te!==this)return jc(this,!0),!0}get value(){const t=this.dep.track();return Yc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Pp(e,t,o=!1){let r,n;return le(e)?r=e:(r=e.get,n=e.set),new Tp(r,n,o)}const xn={},Fn=new WeakMap;let Uo;function Ip(e,t=!1,o=Uo){if(o){let r=Fn.get(o);r||Fn.set(o,r=[]),r.push(e)}}function Ap(e,t,o=Se){const{immediate:r,deep:n,once:i,scheduler:l,augmentJob:a,call:s}=o,c=y=>n?y:vt(y)||n===!1||n===0?no(y,1):no(y);let u,f,d,p,g=!1,C=!1;if(Le(e)?(f=()=>e.value,g=vt(e)):lo(e)?(f=()=>c(e),g=!0):oe(e)?(C=!0,g=e.some(y=>lo(y)||vt(y)),f=()=>e.map(y=>{if(Le(y))return y.value;if(lo(y))return c(y);if(le(y))return s?s(y,2):y()})):le(e)?t?f=s?()=>s(e,2):e:f=()=>{if(d){so();try{d()}finally{co()}}const y=Uo;Uo=u;try{return s?s(e,3,[p]):e(p)}finally{Uo=y}}:f=Gt,t&&n){const y=f,w=n===!0?1/0:n;f=()=>no(y(),w)}const S=zc(),E=()=>{u.stop(),S&&S.active&&Bl(S.effects,u)};if(i&&t){const y=t;t=(...w)=>{const L=y(...w);return E(),L}}let T=C?new Array(e.length).fill(xn):xn;const v=y=>{if(!(!(u.flags&1)||!u.dirty&&!y))if(t){const w=u.run();if(y||n||g||(C?w.some((L,D)=>Vt(L,T[D])):Vt(w,T))){d&&d();const L=Uo;Uo=u;try{const D=[w,T===xn?void 0:C&&T[0]===xn?[]:T,p];T=w,s?s(t,3,D):t(...D)}finally{Uo=L}}}else u.run()};return a&&a(v),u=new Uc(f),u.scheduler=l?()=>l(v,!1):v,p=y=>Ip(y,!1,u),d=u.onStop=()=>{const y=Fn.get(u);if(y){if(s)s(y,4);else for(const w of y)w();Fn.delete(u)}},t?r?v(!0):T=u.run():l?l(v.bind(null,!0),!0):u.run(),E.pause=u.pause.bind(u),E.resume=u.resume.bind(u),E.stop=E,E}function no(e,t=1/0,o){if(t<=0||!be(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,Le(e))no(e.value,t,o);else if(oe(e))for(let r=0;r{no(r,t,o)});else if(Nc(e)){for(const r in e)no(e[r],t,o);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&no(e[r],t,o)}return e}function dn(e,t,o,r){try{return r?e(...r):e()}catch(n){si(n,t,o)}}function wt(e,t,o,r){if(le(e)){const n=dn(e,t,o,r);return n&&Oc(n)&&n.catch(i=>{si(i,t,o)}),n}if(oe(e)){const n=[];for(let i=0;i>>1,n=at[r],i=Xr(n);i=Xr(o)?at.push(e):at.splice(Lp(t),0,e),e.flags|=1,su()}}function su(){On||(On=au.then(uu))}function Dp(e){if(!oe(e))So&&e.id===-1?So.splice(sr+1,0,e):e.flags&1||(pr.push(e),e.flags|=1);else for(let t=0;tXr(o)-Xr(r));if(pr.length=0,So){for(let o=0;oe.id==null?e.flags&2?-1:1/0:e.id;function uu(e){try{for(Wt=0;Wt{r._d&&$n(-1);const i=Mn(t),l=ao.length;let a;try{a=e(...n)}finally{for(let s=ao.length;s>l;s--)oa();Mn(i),r._d&&$n(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function sT(e,t){if(Ve===null)return e;const o=hi(Ve),r=e.dirs||(e.dirs=[]);for(let n=0;n1)return o&&le(t)?t.call(r&&r.proxy):t}}function Rp(){return!!(Ao()||Qo)}const Fp=Symbol.for("v-scx"),Op=()=>Ze(Fp);function cT(e,t){return Xl(e,null,t)}function St(e,t,o){return Xl(e,t,o)}function Xl(e,t,o=Se){const{immediate:r,deep:n,flush:i,once:l}=o,a=Be({},o),s=t&&r||!t&&i!=="post";let c;if(on){if(i==="sync"){const p=Op();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!s){const p=()=>{};return p.stop=Gt,p.resume=Gt,p.pause=Gt,p}}const u=Qe;a.call=(p,g,C)=>wt(p,u,g,C);let f=!1;i==="post"?a.scheduler=p=>{nt(p,u&&u.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(p,g)=>{g?p():ql(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=Ap(e,t,a);return on&&(c?c.push(d):s&&d()),d}function Mp(e,t,o){const r=this.proxy,n=we(e)?e.includes(".")?pu(r,e):()=>r[e]:e.bind(r,r);let i;le(t)?i=t:(i=t.handler,o=t);const l=mn(this),a=Xl(n,i.bind(r),o);return l(),a}function pu(e,t){const o=t.split(".");return()=>{let r=e;for(let n=0;ne.__isTeleport,Vo=e=>e&&(e.disabled||e.disabled===""),Np=e=>e&&(e.defer||e.defer===""),Da=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ra=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,al=(e,t)=>{const o=e&&e.to;return we(o)?t?t(o):null:o},kp={name:"Teleport",__isTeleport:!0,process(e,t,o,r,n,i,l,a,s,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:g,createText:C,createComment:S,parentNode:E}}=c,T=Vo(t.props);let{dynamicChildren:v}=t;const y=(D,F,P)=>{D.shapeFlag&16&&u(D.children,F,P,n,i,l,a,s)},w=(D=t)=>{const F=Vo(D.props),P=D.target=al(D.props,g),U=sl(P,D,C,p);P&&(l!=="svg"&&Da(P)?l="svg":l!=="mathml"&&Ra(P)&&(l="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(P),F||(y(D,P,U),Or(D,!1)))},L=D=>{const F=()=>{if(xo.get(D)===F){if(xo.delete(D),Vo(D.props)){const P=E(D.el)||o;y(D,P,D.anchor),Or(D,!0)}w(D)}};xo.set(D,F),nt(F,i)};if(e==null){const D=t.el=C(""),F=t.anchor=C("");if(p(D,o,r),p(F,o,r),Np(t.props)||i&&i.pendingBranch){L(t);return}T&&(y(t,o,F),Or(t,!0)),w()}else{t.el=e.el;const D=t.anchor=e.anchor,F=xo.get(e);if(F){F.flags|=8,xo.delete(e),L(t);return}t.targetStart=e.targetStart;const P=t.target=e.target,U=t.targetAnchor=e.targetAnchor,X=Vo(e.props),k=X?o:P,Q=X?D:U;if(l==="svg"||Da(P)?l="svg":(l==="mathml"||Ra(P))&&(l="mathml"),v?(d(e.dynamicChildren,v,k,n,i,l,a),ta(e,t,!0)):s||f(e,t,k,Q,n,i,l,a,!1),T)X?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):_n(t,o,D,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const me=al(t.props,g);me&&(t.target=me,_n(t,me,null,c,0))}else X&&_n(t,P,U,c,1);Or(t,T)}},remove(e,t,o,{um:r,o:{remove:n}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:c,targetAnchor:u,target:f,props:d}=e,p=Vo(d),g=i||!p,C=xo.get(e);if(C&&(C.flags|=8,xo.delete(e)),f&&(n(c),n(u)),i&&n(s),!C&&(p||f)&&l&16)for(let S=0;S{e.isMounted=!0}),Su(()=>{e.isUnmounting=!0}),e}const Pt=[Function,Array],hu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Pt,onEnter:Pt,onAfterEnter:Pt,onEnterCancelled:Pt,onBeforeLeave:Pt,onLeave:Pt,onAfterLeave:Pt,onLeaveCancelled:Pt,onBeforeAppear:Pt,onAppear:Pt,onAfterAppear:Pt,onAppearCancelled:Pt},gu=e=>{const t=e.subTree;return t.component?gu(t.component):t},Bp={name:"BaseTransition",props:hu,setup(e,{slots:t}){const o=Ao(),r=$p();return()=>{const n=t.default&&xu(t.default(),!0),i=n&&n.length?Cu(n):o.subTree?wn():void 0;if(!i)return;const l=ge(e),{mode:a}=l;if(r.isLeaving)return Ni(i);const s=Nn(i);if(!s)return Ni(i);let c=cl(s,l,r,o,f=>c=f);s.type!==Je&&Jr(s,c);let u=o.subTree&&Nn(o.subTree);if(u&&u.type!==Je&&!jo(u,s)&&gu(o).type!==Je){let f=cl(u,l,r,o);if(Jr(u,f),a==="out-in"&&s.type!==Je)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,o.job.flags&8||o.update(),delete f.afterLeave,u=void 0},Ni(i);a==="in-out"&&s.type!==Je?f.delayLeave=(d,p,g)=>{const C=bu(r,u);C[String(u.key)]=u,d[It]=()=>{p(),d[It]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{g(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function Cu(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Je){t=o;break}}return t}const Wp=Bp;function bu(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function cl(e,t,o,r,n){const{appear:i,mode:l,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:g,onLeaveCancelled:C,onBeforeAppear:S,onAppear:E,onAfterAppear:T,onAppearCancelled:v}=t,y=String(e.key),w=bu(o,e),L=(P,U)=>{P&&wt(P,r,9,U)},D=(P,U)=>{const X=U[1];L(P,U),oe(P)?P.every(k=>k.length<=1)&&X():P.length<=1&&X()},F={mode:l,persisted:a,beforeEnter(P){let U=s;if(!o.isMounted)if(i)U=S||s;else return;P[It]&&P[It](!0);const X=w[y];X&&jo(e,X)&&X.el[It]&&X.el[It](),L(U,[P])},enter(P){if(w[y]===e)return;let U=c,X=u,k=f;if(!o.isMounted)if(i)U=E||c,X=T||u,k=v||f;else return;let Q=!1;P[wr]=ye=>{Q||(Q=!0,ye?L(k,[P]):L(X,[P]),F.delayedLeave&&F.delayedLeave(),P[wr]=void 0)};const me=P[wr].bind(null,!1);U?D(U,[P,me]):me()},leave(P,U){const X=String(e.key);if(P[wr]&&P[wr](!0),o.isUnmounting)return U();L(d,[P]);let k=!1;P[It]=me=>{k||(k=!0,U(),me?L(C,[P]):L(g,[P]),P[It]=void 0,w[X]===e&&delete w[X])};const Q=P[It].bind(null,!1);w[X]=e,p?D(p,[P,Q]):Q()},clone(P){const U=cl(P,t,o,r,n);return n&&n(U),U}};return F}function Ni(e){if(fi(e))return e=Io(e),e.children=null,e}function Nn(e){if(!fi(e))return ui(e.type)&&e.children?Cu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&le(o.default))return o.default()}}function Jr(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const o=e.component.subTree;Jr(ui(o.type)&&Nn(o)||o,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function xu(e,t=!1,o){let r=[],n=0;for(let i=0;i1)for(let i=0;izr(C,t&&(oe(t)?t[S]:t),o,r,n));return}if(mr(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&zr(e,t,o,r.component.subTree);return}const i=r.shapeFlag&4?hi(r.component):r.el,l=n?null:i,{i:a,r:s}=e,c=t&&t.r,u=a.refs===Se?a.refs={}:a.refs,f=a.setupState,d=ge(f),p=f===Se?Fc:C=>Fa(u,C)?!1:_e(d,C),g=(C,S)=>!(S&&Fa(u,S));if(c!=null&&c!==s){if(Oa(t),we(c))u[c]=null,p(c)&&(f[c]=null);else if(Le(c)){const C=t;g(c,C.k)&&(c.value=null),C.k&&(u[C.k]=null)}}if(le(s))dn(s,a,12,[l,u]);else{const C=we(s),S=Le(s);if(C||S){const E=()=>{if(e.f){const T=C?p(s)?f[s]:u[s]:g()||!e.k?s.value:u[e.k];if(n)oe(T)&&Bl(T,i);else if(oe(T))T.includes(i)||T.push(i);else if(C)u[s]=[i],p(s)&&(f[s]=u[s]);else{const v=[i];g(s,e.k)&&(s.value=v),e.k&&(u[e.k]=v)}}else C?(u[s]=l,p(s)&&(f[s]=l)):S&&(g(s,e.k)&&(s.value=l),e.k&&(u[e.k]=l))};if(l){const T=()=>{E(),kn.delete(e)};T.id=-1,kn.set(e,T),nt(T,o)}else Oa(e),E()}}}function Oa(e){const t=kn.get(e);t&&(t.flags|=8,kn.delete(e))}ri().requestIdleCallback;ri().cancelIdleCallback;const mr=e=>!!e.type.__asyncLoader,fi=e=>e.type.__isKeepAlive;function zp(e,t){vu(e,"a",t)}function Up(e,t){vu(e,"da",t)}function vu(e,t,o=Qe){const r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(di(t,r,o),o){let n=o.parent;for(;n&&n.parent;)fi(n.parent.vnode)&&Vp(r,t,o,n),n=n.parent}}function Vp(e,t,o,r){const n=di(t,e,r,!0);Ql(()=>{Bl(r[t],n)},o)}function di(e,t,o=Qe,r=!1){if(o){const n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{so();const a=mn(o),s=wt(t,o,e,l);return a(),co(),s});return r?n.unshift(i):n.push(i),i}}const mo=e=>(t,o=Qe)=>{(!on||e==="sp")&&di(e,(...r)=>t(...r),o)},Jl=mo("bm"),pi=mo("m"),jp=mo("bu"),Gp=mo("u"),Su=mo("bum"),Ql=mo("um"),Kp=mo("sp"),Yp=mo("rtg"),qp=mo("rtc");function Xp(e,t=Qe){di("ec",e,t)}const Jp="components";function Qp(e,t){return em(Jp,e,!0,t)||e}const Zp=Symbol.for("v-ndc");function em(e,t,o=!0,r=!1){const n=Ve||Qe;if(n){const i=n.type;{const a=$m(i,!1);if(a&&(a===t||a===ct(t)||a===ti(ct(t))))return i}const l=Ma(n[e]||i[e],t)||Ma(n.appContext[e],t);return!l&&r?i:l}}function Ma(e,t){return e&&(e[t]||e[ct(t)]||e[ti(ct(t))])}function tm(e,t,o,r){let n;const i=o,l=oe(e);if(l||we(e)){const a=l&&lo(e);let s=!1,c=!1;a&&(s=!vt(e),c=uo(e),e=li(e)),n=new Array(e.length);for(let u=0,f=e.length;ut(a,s,void 0,i));else{const a=Object.keys(e);n=new Array(a.length);for(let s=0,c=a.length;s0;return Ft(),Zr(qe,null,[je("slot",c,r)],u?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const a=ao.length;Ft();let s;try{const c=l&&yu(l(o)),u=o.key||i||c&&c.key;s=Zr(qe,{key:(u&&!yt(u)?u:`_${t}`)+(!c&&r?"_fb":"")},c||(r?r():[]),c&&e._===1?64:-2)}catch(c){for(let u=ao.length;u>a;u--)oa();throw c}finally{l&&l._c&&(l._d=!0)}return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),s}function yu(e){return e.some(t=>en(t)?!(t.type===Je||t.type===qe&&!yu(t.children)):!0)?e:null}const ul=e=>e?zu(e)?hi(e):ul(e.parent):null,Ur=Be(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ul(e.parent),$root:e=>ul(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Tu(e),$forceUpdate:e=>e.f||(e.f=()=>{ql(e.update)}),$nextTick:e=>e.n||(e.n=ci.bind(e.proxy)),$watch:e=>Mp.bind(e)}),ki=(e,t)=>e!==Se&&!e.__isScriptSetup&&_e(e,t),om={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:r,data:n,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const d=l[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(ki(r,t))return l[t]=1,r[t];if(n!==Se&&_e(n,t))return l[t]=2,n[t];if(_e(i,t))return l[t]=3,i[t];if(o!==Se&&_e(o,t))return l[t]=4,o[t];fl&&(l[t]=0)}}const c=Ur[t];let u,f;if(c)return t==="$attrs"&&Ye(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(o!==Se&&_e(o,t))return l[t]=4,o[t];if(f=s.config.globalProperties,_e(f,t))return f[t]},set({_:e},t,o){const{data:r,setupState:n,ctx:i}=e;return ki(n,t)?(n[t]=o,!0):r!==Se&&_e(r,t)?(r[t]=o,!0):_e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,props:i,type:l}},a){let s;return!!(o[a]||e!==Se&&a[0]!=="$"&&_e(e,a)||ki(t,a)||_e(i,a)||_e(r,a)||_e(Ur,a)||_e(n.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:_e(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function Na(e){return oe(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let fl=!0;function rm(e){const t=Tu(e),o=e.proxy,r=e.ctx;fl=!1,t.beforeCreate&&ka(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:l,watch:a,provide:s,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:g,activated:C,deactivated:S,beforeDestroy:E,beforeUnmount:T,destroyed:v,unmounted:y,render:w,renderTracked:L,renderTriggered:D,errorCaptured:F,serverPrefetch:P,expose:U,inheritAttrs:X,components:k,directives:Q,filters:me}=t;if(c&&nm(c,r,null),l)for(const ne in l){const de=l[ne];le(de)&&(r[ne]=de.bind(o))}if(n){const ne=n.call(o,o);be(ne)&&(e.data=fn(ne))}if(fl=!0,i)for(const ne in i){const de=i[ne],tt=le(de)?de.bind(o,o):le(de.get)?de.get.bind(o,o):Gt,ft=!le(de)&&le(de.set)?de.set.bind(o):Gt,Re=fe({get:tt,set:ft});Object.defineProperty(r,ne,{enumerable:!0,configurable:!0,get:()=>Re.value,set:Fe=>Re.value=Fe})}if(a)for(const ne in a)Eu(a[ne],r,o,ne);if(s){const ne=le(s)?s.call(o):s;Reflect.ownKeys(ne).forEach(de=>{Wr(de,ne[de])})}u&&ka(u,e,"c");function se(ne,de){oe(de)?de.forEach(tt=>ne(tt.bind(o))):de&&ne(de.bind(o))}if(se(Jl,f),se(pi,d),se(jp,p),se(Gp,g),se(zp,C),se(Up,S),se(Xp,F),se(qp,L),se(Yp,D),se(Su,T),se(Ql,y),se(Kp,P),oe(U))if(U.length){const ne=e.exposed||(e.exposed={});U.forEach(de=>{Object.defineProperty(ne,de,{get:()=>o[de],set:tt=>o[de]=tt,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===Gt&&(e.render=w),X!=null&&(e.inheritAttrs=X),k&&(e.components=k),Q&&(e.directives=Q),P&&_u(e)}function nm(e,t,o=Gt){oe(e)&&(e=dl(e));for(const r in e){const n=e[r];let i;be(n)?"default"in n?i=Ze(n.from||r,n.default,!0):i=Ze(n.from||r):i=Ze(n),Le(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[r]=i}}function ka(e,t,o){wt(oe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function Eu(e,t,o,r){let n=r.includes(".")?pu(o,r):()=>o[r];if(we(e)){const i=t[e];le(i)&&St(n,i)}else if(le(e))St(n,e.bind(o));else if(be(e))if(oe(e))e.forEach(i=>Eu(i,t,o,r));else{const i=le(e.handler)?e.handler.bind(o):t[e.handler];le(i)&&St(n,i,e)}}function Tu(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!n.length&&!o&&!r?s=t:(s={},n.length&&n.forEach(c=>Hn(s,c,l,!0)),Hn(s,t,l)),be(t)&&i.set(t,s),s}function Hn(e,t,o,r=!1){const{mixins:n,extends:i}=t;i&&Hn(e,i,o,!0),n&&n.forEach(l=>Hn(e,l,o,!0));for(const l in t)if(!(r&&l==="expose")){const a=im[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const im={data:Ha,props:$a,emits:$a,methods:Mr,computed:Mr,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:Mr,directives:Mr,watch:am,provide:Ha,inject:lm};function Ha(e,t){return t?e?function(){return Be(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function lm(e,t){return Mr(dl(e),dl(t))}function dl(e){if(oe(e)){const t={};for(let o=0;ot==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ct(t)}Modifiers`]||e[`${Ro(t)}Modifiers`];function fm(e,t,...o){if(e.isUnmounted)return;const r=e.vnode.props||Se;let n=o;const i=t.startsWith("update:"),l=i&&um(r,t.slice(7));l&&(l.trim&&(n=o.map(u=>we(u)?u.trim():u)),l.number&&(n=n.map(oi)));let a,s=r[a=Di(t)]||r[a=Di(ct(t))];!s&&i&&(s=r[a=Di(Ro(t))]),s&&wt(s,e,6,n);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,wt(c,e,6,n)}}const dm=new WeakMap;function Iu(e,t,o=!1){const r=o?dm:t.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let l={},a=!1;if(!le(e)){const s=c=>{const u=Iu(c,t,!0);u&&(a=!0,Be(l,u))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(be(e)&&r.set(e,null),null):(oe(i)?i.forEach(s=>l[s]=null):Be(l,i),be(e)&&r.set(e,l),l)}function mi(e,t){return!e||!Jn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),_e(e,t[0].toLowerCase()+t.slice(1))||_e(e,Ro(t))||_e(e,t))}function Ba(e){const{type:t,vnode:o,proxy:r,withProxy:n,propsOptions:[i],slots:l,attrs:a,emit:s,render:c,renderCache:u,props:f,data:d,setupState:p,ctx:g,inheritAttrs:C}=e,S=Mn(e);let E,T;try{if(o.shapeFlag&4){const y=n||r,w=y;E=Ut(c.call(w,y,u,f,p,d,g)),T=a}else{const y=t;E=Ut(y.length>1?y(f,{attrs:a,slots:l,emit:s}):y(f,null)),T=t.props?a:pm(a)}}catch(y){ao.length=0,si(y,e,1),E=je(Je)}let v=E;if(T&&C!==!1){const y=Object.keys(T),{shapeFlag:w}=v;y.length&&w&7&&(i&&y.some(Qn)&&(T=mm(T,i)),v=Io(v,T,!1,!0))}if(o.dirs&&(v=Io(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(o.dirs):o.dirs),o.transition){const y=ui(v.type)&&Nn(v)||v;Jr(y,o.transition)}return E=v,Mn(S),E}const pm=e=>{let t;for(const o in e)(o==="class"||o==="style"||Jn(o))&&((t||(t={}))[o]=e[o]);return t},mm=(e,t)=>{const o={};for(const r in e)(!Qn(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function hm(e,t,o){const{props:r,children:n,component:i}=e,{props:l,children:a,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return r?Wa(r,l,c):!!l;if(s&8){const u=t.dynamicProps;for(let f=0;fObject.create(wu),Du=e=>Object.getPrototypeOf(e)===wu;function Cm(e,t,o,r=!1){const n={},i=Lu();e.propsDefaults=Object.create(null),Ru(e,t,n,i);for(const l in e.propsOptions[0])l in n||(n[l]=void 0);o?e.props=r?n:ru(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function bm(e,t,o,r){const{props:n,attrs:i,vnode:{patchFlag:l}}=e,a=ge(n),[s]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[d,p]=Fu(f,t,!0);Be(l,d),p&&a.push(...p)};!o&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!s)return be(e)&&r.set(e,dr),dr;if(oe(i))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",ea=e=>oe(e)?e.map(Ut):[Ut(e)],_m=(e,t,o)=>{if(t._n)return t;const r=du((...n)=>ea(t(...n)),o);return r._c=!1,r},Ou=(e,t,o)=>{const r=e._ctx;for(const n in e){if(Zl(n))continue;const i=e[n];if(le(i))t[n]=_m(n,i,r);else if(i!=null){const l=ea(i);t[n]=()=>l}}},Mu=(e,t)=>{const o=ea(t);e.slots.default=()=>o},Nu=(e,t,o)=>{for(const r in t)(o||!Zl(r))&&(e[r]=t[r])},vm=(e,t,o)=>{const r=e.slots=Lu();if(e.vnode.shapeFlag&32){const n=t._;n?(Nu(r,t,o),o&&kc(r,"_",n,!0)):Ou(t,r)}else t&&Mu(e,t)},Sm=(e,t,o)=>{const{vnode:r,slots:n}=e;let i=!0,l=Se;if(r.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:Nu(n,t,o):(i=!t.$stable,Ou(t,n)),l=t}else t&&(Mu(e,t),l={default:1});if(i)for(const a in n)!Zl(a)&&l[a]==null&&delete n[a]},nt=Im;function ym(e){return Em(e)}function Em(e,t){const o=ri();o.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:l,createText:a,createComment:s,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=Gt,insertStaticContent:g}=e,C=(b,_,x,R=null,$=null,M=null,V=void 0,z=null,m=!!_.dynamicChildren)=>{if(b===_)return;b&&!jo(b,_)&&(R=H(b),Fe(b,$,M,!0),b=null),_.patchFlag===-2&&(m=!1,_.dynamicChildren=null);const{type:h,ref:A,shapeFlag:O}=_;switch(h){case pn:S(b,_,x,R);break;case Je:E(b,_,x,R);break;case $i:b==null&&T(_,x,R,V);break;case qe:k(b,_,x,R,$,M,V,z,m);break;default:O&1?w(b,_,x,R,$,M,V,z,m):O&6?Q(b,_,x,R,$,M,V,z,m):(O&64||O&128)&&h.process(b,_,x,R,$,M,V,z,m,ee)}A!=null&&$?zr(A,b&&b.ref,M,_||b,!_):A==null&&b&&b.ref!=null&&zr(b.ref,null,M,b,!0)},S=(b,_,x,R)=>{if(b==null)r(_.el=a(_.children),x,R);else{const $=_.el=b.el;_.children!==b.children&&c($,_.children)}},E=(b,_,x,R)=>{b==null?r(_.el=s(_.children||""),x,R):_.el=b.el},T=(b,_,x,R)=>{[b.el,b.anchor]=g(b.children,_,x,R,b.el,b.anchor)},v=({el:b,anchor:_},x,R)=>{let $;for(;b&&b!==_;)$=d(b),r(b,x,R),b=$;r(_,x,R)},y=({el:b,anchor:_})=>{let x;for(;b&&b!==_;)x=d(b),n(b),b=x;n(_)},w=(b,_,x,R,$,M,V,z,m)=>{if(_.type==="svg"?V="svg":_.type==="math"&&(V="mathml"),b==null)L(_,x,R,$,M,V,z,m);else{const h=b.el&&b.el._isVueCE?b.el:null;try{h&&h._beginPatch(),P(b,_,$,M,V,z,m)}finally{h&&h._endPatch()}}},L=(b,_,x,R,$,M,V,z)=>{let m,h;const{props:A,shapeFlag:O,transition:j,dirs:B}=b;if(m=b.el=l(b.type,M,A&&A.is,A),O&8?u(m,b.children):O&16&&F(b.children,m,null,R,$,Hi(b,M),V,z),B&&ko(b,null,R,"created"),D(m,b,b.scopeId,V,R),A){for(const N in A)N!=="value"&&!Hr(N)&&i(m,N,null,A[N],M,R);"value"in A&&i(m,"value",null,A.value,M),(h=A.onVnodeBeforeMount)&&Bt(h,R,b)}B&&ko(b,null,R,"beforeMount");const I=Tm($,j);I&&j.beforeEnter(m),r(m,_,x),((h=A&&A.onVnodeMounted)||I||B)&&nt(()=>{h&&Bt(h,R,b),I&&j.enter(m),B&&ko(b,null,R,"mounted")},$)},D=(b,_,x,R,$)=>{if(x&&p(b,x),R)for(let M=0;M{for(let h=m;h{const z=_.el=b.el;let{patchFlag:m,dynamicChildren:h,dirs:A}=_;m|=b.patchFlag&16;const O=b.props||Se,j=_.props||Se;let B;if(x&&Ho(x,!1),(B=j.onVnodeBeforeUpdate)&&Bt(B,x,_,b),A&&ko(_,b,x,"beforeUpdate"),x&&Ho(x,!0),h&&(!b.dynamicChildren||b.dynamicChildren.length!==h.length)&&(m=0,V=!1,h=null),(O.innerHTML&&j.innerHTML==null||O.textContent&&j.textContent==null)&&u(z,""),h?U(b.dynamicChildren,h,z,x,R,Hi(_,$),M):V||de(b,_,z,null,x,R,Hi(_,$),M,!1),m>0){if(m&16)X(z,O,j,x,$);else if(m&2&&O.class!==j.class&&i(z,"class",null,j.class,$),m&4&&i(z,"style",O.style,j.style,$),m&8){const I=_.dynamicProps;for(let N=0;N{B&&Bt(B,x,_,b),A&&ko(_,b,x,"updated")},R)},U=(b,_,x,R,$,M,V)=>{for(let z=0;z<_.length;z++){const m=b[z],h=_[z],A=m.el&&(m.type===qe||!jo(m,h)||m.shapeFlag&198)?f(m.el):x;C(m,h,A,null,R,$,M,V,!0)}},X=(b,_,x,R,$)=>{if(_!==x){if(_!==Se)for(const M in _)!Hr(M)&&!(M in x)&&i(b,M,_[M],null,$,R);for(const M in x){if(Hr(M))continue;const V=x[M],z=_[M];V!==z&&M!=="value"&&i(b,M,z,V,$,R)}"value"in x&&i(b,"value",_.value,x.value,$)}},k=(b,_,x,R,$,M,V,z,m)=>{const h=_.el=b?b.el:a(""),A=_.anchor=b?b.anchor:a("");let{patchFlag:O,dynamicChildren:j,slotScopeIds:B}=_;B&&(z=z?z.concat(B):B),b==null?(r(h,x,R),r(A,x,R),F(_.children||[],x,A,$,M,V,z,m)):O>0&&O&64&&j&&b.dynamicChildren&&b.dynamicChildren.length===j.length?(U(b.dynamicChildren,j,x,$,M,V,z),(_.key!=null||$&&_===$.subTree)&&ta(b,_,!0)):de(b,_,x,A,$,M,V,z,m)},Q=(b,_,x,R,$,M,V,z,m)=>{_.slotScopeIds=z,b==null?_.shapeFlag&512?$.ctx.activate(_,x,R,V,m):me(_,x,R,$,M,V,m):ye(b,_,m)},me=(b,_,x,R,$,M,V)=>{const z=b.component=Om(b,R,$);if(fi(b)&&(z.ctx.renderer=ee),Mm(z,!1,V),z.asyncDep){if($&&$.registerDep(z,se,V),!b.el){const m=z.subTree=je(Je);E(null,m,_,x),b.placeholder=m.el}}else se(z,b,_,x,$,M,V)},ye=(b,_,x)=>{const R=_.component=b.component;if(hm(b,_,x))if(R.asyncDep&&!R.asyncResolved){ne(R,_,x);return}else R.next=_,R.update();else _.el=b.el,R.vnode=_},se=(b,_,x,R,$,M,V)=>{const z=()=>{if(b.isMounted){let{next:O,bu:j,u:B,parent:I,vnode:N}=b;{const Ue=ku(b);if(Ue){O&&(O.el=N.el,ne(b,O,V)),Ue.asyncDep.then(()=>{nt(()=>{b.isUnmounted||h()},$)});return}}let te=O,ce;Ho(b,!1),O?(O.el=N.el,ne(b,O,V)):O=N,j&&In(j),(ce=O.props&&O.props.onVnodeBeforeUpdate)&&Bt(ce,I,O,N),Ho(b,!0);const Ee=Ba(b),ot=b.subTree;b.subTree=Ee,C(ot,Ee,f(ot.el),H(ot),b,$,M),O.el=Ee.el,te===null&&gm(b,Ee.el),B&&nt(B,$),(ce=O.props&&O.props.onVnodeUpdated)&&nt(()=>Bt(ce,I,O,N),$)}else{let O;const{el:j,props:B}=_,{bm:I,m:N,parent:te,root:ce,type:Ee}=b,ot=mr(_);Ho(b,!1),I&&In(I),!ot&&(O=B&&B.onVnodeBeforeMount)&&Bt(O,te,_),Ho(b,!0);{ce.ce&&ce.ce._hasShadowRoot()&&ce.ce._injectChildStyle(Ee,b.parent?b.parent.type:void 0);const Ue=b.subTree=Ba(b);C(null,Ue,x,R,b,$,M),_.el=Ue.el}if(N&&nt(N,$),!ot&&(O=B&&B.onVnodeMounted)){const Ue=_;nt(()=>Bt(O,te,Ue),$)}(_.shapeFlag&256||te&&mr(te.vnode)&&te.vnode.shapeFlag&256)&&b.a&&nt(b.a,$),b.isMounted=!0,_=x=R=null}};b.scope.on();const m=b.effect=new Uc(z);b.scope.off();const h=b.update=m.run.bind(m),A=b.job=m.runIfDirty.bind(m);A.i=b,A.id=b.uid,m.scheduler=()=>ql(A),Ho(b,!0),h()},ne=(b,_,x)=>{_.component=b;const R=b.vnode.props;b.vnode=_,b.next=null,bm(b,_.props,R,x),Sm(b,_.children,x),so(),La(b),co()},de=(b,_,x,R,$,M,V,z,m=!1)=>{const h=b&&b.children,A=b?b.shapeFlag:0,O=_.children,{patchFlag:j,shapeFlag:B}=_;if(j>0){if(j&128){ft(h,O,x,R,$,M,V,z,m);return}else if(j&256){tt(h,O,x,R,$,M,V,z,m);return}}B&8?(A&16&&We(h,$,M),O!==h&&u(x,O)):A&16?B&16?ft(h,O,x,R,$,M,V,z,m):We(h,$,M,!0):(A&8&&u(x,""),B&16&&F(O,x,R,$,M,V,z,m))},tt=(b,_,x,R,$,M,V,z,m)=>{b=b||dr,_=_||dr;const h=b.length,A=_.length,O=Math.min(h,A);let j;for(j=0;jA?We(b,$,M,!0,!1,O):F(_,x,R,$,M,V,z,m,O)},ft=(b,_,x,R,$,M,V,z,m)=>{let h=0;const A=_.length;let O=b.length-1,j=A-1;for(;h<=O&&h<=j;){const B=b[h],I=_[h]=m?oo(_[h]):Ut(_[h]);if(jo(B,I))C(B,I,x,null,$,M,V,z,m);else break;h++}for(;h<=O&&h<=j;){const B=b[O],I=_[j]=m?oo(_[j]):Ut(_[j]);if(jo(B,I))C(B,I,x,null,$,M,V,z,m);else break;O--,j--}if(h>O){if(h<=j){const B=j+1,I=Bj)for(;h<=O;)Fe(b[h],$,M,!0),h++;else{const B=h,I=h,N=new Map;for(h=I;h<=j;h++){const Ct=_[h]=m?oo(_[h]):Ut(_[h]);Ct.key!=null&&N.set(Ct.key,h)}let te,ce=0;const Ee=j-I+1;let ot=!1,Ue=0;const No=new Array(Ee);for(h=0;h=Ee){Fe(Ct,$,M,!0);continue}let $t;if(Ct.key!=null)$t=N.get(Ct.key);else for(te=I;te<=j;te++)if(No[te-I]===0&&jo(Ct,_[te])){$t=te;break}$t===void 0?Fe(Ct,$,M,!0):(No[$t-I]=h+1,$t>=Ue?Ue=$t:ot=!0,C(Ct,_[$t],x,null,$,M,V,z,m),ce++)}const Li=ot?Pm(No):dr;for(te=Li.length-1,h=Ee-1;h>=0;h--){const Ct=I+h,$t=_[Ct],ya=_[Ct+1],Ea=Ct+1{const{el:M,type:V,transition:z,children:m,shapeFlag:h}=b;if(h&6){Re(b.component.subTree,_,x,R);return}if(h&128){b.suspense.move(_,x,R);return}if(h&64){V.move(b,_,x,ee);return}if(V===qe){r(M,_,x);for(let O=0;Oz.enter(M),$));else{const{leave:O,delayLeave:j,afterLeave:B}=z,I=()=>{b.ctx.isUnmounted?n(M):r(M,_,x)},N=()=>{const te=M._isLeaving||!!M[It];M._isLeaving&&M[It](!0),z.persisted&&!te?I():O(M,()=>{I(),B&&B()})};j?j(M,I,N):N()}else r(M,_,x)},Fe=(b,_,x,R=!1,$=!1)=>{const{type:M,props:V,ref:z,children:m,dynamicChildren:h,shapeFlag:A,patchFlag:O,dirs:j,cacheIndex:B,memo:I}=b;if(O===-2&&($=!1),z!=null&&(so(),zr(z,null,x,b,!0),co()),B!=null&&(_.renderCache[B]=void 0),A&256){_.ctx.deactivate(b);return}const N=A&1&&j,te=!mr(b);let ce;if(te&&(ce=V&&V.onVnodeBeforeUnmount)&&Bt(ce,_,b),A&6)gt(b.component,x,R);else{if(A&128){b.suspense.unmount(x,R);return}N&&ko(b,null,_,"beforeUnmount"),A&64?b.type.remove(b,_,x,ee,R):h&&!h.hasOnce&&(M!==qe||O>0&&O&64)?We(h,_,x,!1,!0):(M===qe&&O&384||!$&&A&16)&&We(m,_,x),R&&Tt(b)}const Ee=I!=null&&B==null;(te&&(ce=V&&V.onVnodeUnmounted)||N||Ee)&&nt(()=>{ce&&Bt(ce,_,b),N&&ko(b,null,_,"unmounted"),Ee&&(b.el=null)},x)},Tt=b=>{const{type:_,el:x,anchor:R,transition:$}=b;if(_===qe){ht(x,R);return}if(_===$i){y(b);return}const M=()=>{n(x),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(b.shapeFlag&1&&$&&!$.persisted){const{leave:V,delayLeave:z}=$,m=()=>V(x,M);z?z(b.el,M,m):m()}else M()},ht=(b,_)=>{let x;for(;b!==_;)x=d(b),n(b),b=x;n(_)},gt=(b,_,x)=>{const{bum:R,scope:$,job:M,subTree:V,um:z,m,a:h}=b;Ua(m),Ua(h),R&&In(R),$.stop(),M&&(M.flags|=8,Fe(V,b,_,x)),z&&nt(z,_),nt(()=>{b.isUnmounted=!0},_)},We=(b,_,x,R=!1,$=!1,M=0)=>{for(let V=M;V{if(b.shapeFlag&6)return H(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const _=d(b.anchor||b.el),x=_&&_[mu];return x?d(x):_};let Y=!1;const G=(b,_,x)=>{let R;b==null?_._vnode&&(Fe(_._vnode,null,null,!0),R=_._vnode.component):C(_._vnode||null,b,_,null,null,null,x),_._vnode=b,Y||(Y=!0,La(R),cu(),Y=!1)},ee={p:C,um:Fe,m:Re,r:Tt,mt:me,mc:F,pc:de,pbc:U,n:H,o:e};return{render:G,hydrate:void 0,createApp:cm(G)}}function Hi({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Ho({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Tm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ta(e,t,o=!1){const r=e.children,n=t.children;if(oe(r)&&oe(n))for(let i=0;i>1,e[o[a]]0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function ku(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ku(t)}function Ua(e){if(e)for(let t=0;te.__isSuspense;function Im(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):Dp(e)}const qe=Symbol.for("v-fgt"),pn=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),$i=Symbol.for("v-stc"),ao=[];let xt=null;function Ft(e=!1){ao.push(xt=e?null:[])}function oa(){ao.pop(),xt=ao[ao.length-1]||null}let Qr=1;function $n(e,t=!1){Qr+=e,e<0&&xt&&t&&(xt.hasOnce=!0)}function Bu(e){return e.dynamicChildren=Qr>0?xt||dr:null,oa(),Qr>0&&xt&&xt.push(e),e}function hr(e,t,o,r,n,i){return Bu(Rt(e,t,o,r,n,i,!0))}function Zr(e,t,o,r,n){return Bu(je(e,t,o,r,n,!0))}function en(e){return e?e.__v_isVNode===!0:!1}function jo(e,t){return e.type===t.type&&e.key===t.key}const Wu=({key:e})=>e??null,An=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Le(e)||le(e)?{i:Ve,r:e,k:t,f:!!o}:e:null);function Rt(e,t=null,o=null,r=0,n=null,i=e===qe?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wu(t),ref:t&&An(t),scopeId:fu,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Ve};return a?(Bn(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=we(o)?8:16),Qr>0&&!l&&xt&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&xt.push(s),s}const je=Am;function Am(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===Zp)&&(e=Je),en(e)){const a=Io(e,t,!0);return o&&Bn(a,o),Qr>0&&!i&&xt&&(a.shapeFlag&6?xt[xt.indexOf(e)]=a:xt.push(a)),a.patchFlag=-2,a}if(Bm(e)&&(e=e.__vccOpts),t){t=wm(t);let{class:a,style:s}=t;a&&!we(a)&&(t.class=ii(a)),be(s)&&(ai(s)&&!oe(s)&&(s=Be({},s)),t.style=ni(s))}const l=we(e)?1:$u(e)?128:ui(e)?64:be(e)?4:le(e)?2:0;return Rt(e,t,o,r,n,l,i,!0)}function wm(e){return e?ai(e)||Du(e)?Be({},e):e:null}function Io(e,t,o=!1,r=!1){const{props:n,ref:i,patchFlag:l,children:a,transition:s}=e,c=t?Dm(n||{},t):n,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Wu(c),ref:t&&t.ref?o&&i?oe(i)?i.concat(An(t)):[i,An(t)]:An(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qe?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Io(e.ssContent),ssFallback:e.ssFallback&&Io(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&r&&Jr(u,s.clone(u)),u}function Lm(e=" ",t=0){return je(pn,null,e,t)}function wn(e="",t=!1){return t?(Ft(),Zr(Je,null,e)):je(Je,null,e)}function Ut(e){return e==null||typeof e=="boolean"?je(Je):oe(e)?je(qe,null,e.slice()):en(e)?oo(e):je(pn,null,String(e))}function oo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Io(e)}function Bn(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(oe(t))o=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Bn(e,n()),n._c&&(n._d=!0));return}else{o=32;const n=t._;!n&&!Du(t)?t._ctx=Ve:n===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(le(t)){if(r&65){Bn(e,{default:t});return}t={default:t,_ctx:Ve},o=32}else t=String(t),r&64?(o=16,t=[Lm(t)]):o=8;e.children=t,e.shapeFlag|=o}function Dm(...e){const t={};for(let o=0;oQe||Ve;let Wn,tn;{const e=ri(),t=(o,r)=>{let n;return(n=e[o])||(n=e[o]=[]),n.push(r),i=>{n.length>1?n.forEach(l=>l(i)):n[0](i)}};Wn=t("__VUE_INSTANCE_SETTERS__",o=>Qe=o),tn=t("__VUE_SSR_SETTERS__",o=>on=o)}const mn=e=>{const t=Qe;return Wn(e),e.scope.on(),()=>{e.scope.off(),Wn(t)}},Va=()=>{Qe&&Qe.scope.off(),Wn(null)};function zu(e){return e.vnode.shapeFlag&4}let on=!1;function Mm(e,t=!1,o=!1){t&&tn(t);const{props:r,children:n}=e.vnode,i=zu(e);Cm(e,r,i,t),vm(e,n,o||t);const l=i?Nm(e,t):void 0;return t&&tn(!1),l}function Nm(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,om);const{setup:r}=o;if(r){so();const n=e.setupContext=r.length>1?Hm(e):null,i=mn(e),l=dn(r,e,0,[e.props,n]),a=Oc(l);if(co(),i(),(a||e.sp)&&!mr(e)&&_u(e),a){if(l.then(Va,Va),t)return l.then(s=>{tn(!0);try{ja(e,s,t)}finally{tn(!1)}}).catch(s=>{si(s,e,0)});e.asyncDep=l}else ja(e,l)}else Uu(e)}function ja(e,t,o){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:be(t)&&(e.setupState=iu(t)),Uu(e)}function Uu(e,t,o){const r=e.type;e.render||(e.render=r.render||Gt);{const n=mn(e);so();try{rm(e)}finally{co(),n()}}}const km={get(e,t){return Ye(e,"get",""),e[t]}};function Hm(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,km),slots:e.slots,emit:e.emit,expose:t}}function hi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(iu(qr(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Ur)return Ur[o](e)},has(t,o){return o in t||o in Ur}})):e.proxy}function $m(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Bm(e){return le(e)&&"__vccOpts"in e}const fe=(e,t)=>Pp(e,t,on);function vr(e,t,o){try{$n(-1);const r=arguments.length;return r===2?be(t)&&!oe(t)?en(t)?je(e,null,[t]):je(e,t):je(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&en(o)&&(o=[o]),je(e,t,o))}finally{$n(1)}}const Wm="3.5.42";let ml;const Ga=typeof window<"u"&&window.trustedTypes;if(Ga)try{ml=Ga.createPolicy("vue",{createHTML:e=>e})}catch{}const Vu=ml?e=>ml.createHTML(e):e=>e,zm="http://www.w3.org/2000/svg",Um="http://www.w3.org/1998/Math/MathML",to=typeof document<"u"?document:null,Ka=to&&to.createElement("template"),Vm={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const n=t==="svg"?to.createElementNS(zm,e):t==="mathml"?to.createElementNS(Um,e):o?to.createElement(e,{is:o}):to.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>to.createTextNode(e),createComment:e=>to.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>to.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,n,i){const l=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{Ka.innerHTML=Vu(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=Ka.content;if(r==="svg"||r==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},go="transition",Lr="animation",rn=Symbol("_vtc"),ju={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},jm=Be({},hu,ju),Gm=e=>(e.displayName="Transition",e.props=jm,e),dT=Gm((e,{slots:t})=>vr(Wp,Km(e),t)),$o=(e,t=[])=>{oe(e)?e.forEach(o=>o(...t)):e&&e(...t)},Ya=e=>e?oe(e)?e.some(t=>t.length>1):e.length>1:!1;function Km(e){const t={};for(const k in e)k in ju||(t[k]=e[k]);if(e.css===!1)return t;const{name:o="v",type:r,duration:n,enterFromClass:i=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:c=l,appearToClass:u=a,leaveFromClass:f=`${o}-leave-from`,leaveActiveClass:d=`${o}-leave-active`,leaveToClass:p=`${o}-leave-to`}=e,g=Ym(n),C=g&&g[0],S=g&&g[1],{onBeforeEnter:E,onEnter:T,onEnterCancelled:v,onLeave:y,onLeaveCancelled:w,onBeforeAppear:L=E,onAppear:D=T,onAppearCancelled:F=v}=t,P=(k,Q,me,ye)=>{k._enterCancelled=ye,Bo(k,Q?u:a),Bo(k,Q?c:l),me&&me()},U=(k,Q)=>{k._isLeaving=!1,Bo(k,f),Bo(k,p),Bo(k,d),Q&&Q()},X=k=>(Q,me)=>{const ye=k?D:T,se=()=>P(Q,k,me);$o(ye,[Q,se]),qa(()=>{Bo(Q,k?s:i),Jt(Q,k?u:a),Ya(ye)||Xa(Q,r,C,se)})};return Be(t,{onBeforeEnter(k){$o(E,[k]),Jt(k,i),Jt(k,l)},onBeforeAppear(k){$o(L,[k]),Jt(k,s),Jt(k,c)},onEnter:X(!1),onAppear:X(!0),onLeave(k,Q){k._isLeaving=!0;const me=()=>U(k,Q);Jt(k,f),k._enterCancelled?(Jt(k,d),Za(k)):(Za(k),Jt(k,d)),qa(()=>{k._isLeaving&&(Bo(k,f),Jt(k,p),Ya(y)||Xa(k,r,S,me))}),$o(y,[k,me])},onEnterCancelled(k){P(k,!1,void 0,!0),$o(v,[k])},onAppearCancelled(k){P(k,!0,void 0,!0),$o(F,[k])},onLeaveCancelled(k){U(k),$o(w,[k])}})}function Ym(e){if(e==null)return null;if(be(e))return[Bi(e.enter),Bi(e.leave)];{const t=Bi(e);return[t,t]}}function Bi(e){return Gd(e)}function Jt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[rn]||(e[rn]=new Set)).add(t)}function Bo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const o=e[rn];o&&(o.delete(t),o.size||(e[rn]=void 0))}function qa(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let qm=0;function Xa(e,t,o,r){const n=e._endId=++qm,i=()=>{n===e._endId&&r()};if(o!=null)return setTimeout(i,o);const{type:l,timeout:a,propCount:s}=Xm(e,t);if(!l)return r();const c=l+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=p=>{p.target===e&&++u>=s&&f()};setTimeout(()=>{u(o[g]||"").split(", "),n=r(`${go}Delay`),i=r(`${go}Duration`),l=Ja(n,i),a=r(`${Lr}Delay`),s=r(`${Lr}Duration`),c=Ja(a,s);let u=null,f=0,d=0;t===go?l>0&&(u=go,f=l,d=i.length):t===Lr?c>0&&(u=Lr,f=c,d=s.length):(f=Math.max(l,c),u=f>0?l>c?go:Lr:null,d=u?u===go?i.length:s.length:0);const p=u===go&&/\b(?:transform|all)(?:,|$)/.test(r(`${go}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function Ja(e,t){for(;e.lengthQa(o)+Qa(e[r])))}function Qa(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Za(e){return(e?e.ownerDocument:document).body.offsetHeight}function Jm(e,t,o){const r=e[rn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const es=Symbol("_vod"),Qm=Symbol("_vsh"),Zm=Symbol(""),eh=/(?:^|;)\s*display\s*:/;function th(e,t,o){const r=e.style,n=we(o);let i=!1;if(o&&!n){if(t)if(we(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();o[a]==null&&Nr(r,a,"")}else for(const l in t)o[l]==null&&Nr(r,l,"");for(const l in o){l==="display"&&(i=!0);const a=o[l];a!=null?rh(e,l,!we(t)&&t?t[l]:void 0,a)||Nr(r,l,a):Nr(r,l,"")}}else if(n){if(t!==o){const l=r[Zm];l&&(o+=";"+l),r.cssText=o,i=eh.test(o)}}else t&&e.removeAttribute("style");es in e&&(e[es]=i?r.display:"",e[Qm]&&(r.display="none"))}const vn=/\s*!important$/;function Nr(e,t,o){if(oe(o))o.forEach(r=>Nr(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))vn.test(o)?e.setProperty(t,o.replace(vn,""),"important"):e.setProperty(t,o);else{const r=oh(e,t);vn.test(o)?e.setProperty(Ro(r),o.replace(vn,""),"important"):e[r]=o}}const ts=["Webkit","Moz","ms"],Wi={};function oh(e,t){const o=Wi[t];if(o)return o;let r=ct(t);if(r!=="filter"&&r in e)return Wi[t]=r;r=ti(r);for(let n=0;nzi||(ch.then(()=>zi=0),zi=Date.now());function fh(e,t){const o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;const n=o.value;if(oe(n)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const l=n.slice(),a=[r];for(let s=0;se.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,dh=(e,t,o,r,n,i)=>{const l=n==="svg";t==="class"?Jm(e,r,l):t==="style"?th(e,o,r):Jn(t)?Qn(t)||ih(e,t,o,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ph(e,t,r,l))?(ns(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rs(e,t,r,l,i,t!=="value")):e._isVueCE&&(mh(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(r)))?ns(e,ct(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),rs(e,t,r,l))};function ph(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ls(t)&&le(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return ls(t)&&we(o)?!1:t in e}function mh(e,t){const o=e._def.props;if(!o)return!1;const r=ct(t);return Array.isArray(o)?o.some(n=>ct(n)===r):Object.keys(o).some(n=>ct(n)===r)}const zn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return oe(t)?o=>In(t,o):t};function hh(e){e.target.composing=!0}function as(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ko=Symbol("_assign"),Sn=Symbol("_initialValue");function Ui(e,t,o){return t&&(e=e.trim()),o&&(e=oi(e)),e}const pT={created(e,{modifiers:{lazy:t,trim:o,number:r}},n){e.parentNode&&(e.type==="text"?e[Sn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Sn]=e.defaultValue.replace(/\r\n?/g,` +`))),e[Ko]=zn(n);const i=r||n.props&&n.props.type==="number";Go(e,t?"change":"input",l=>{l.target.composing||e[Ko](Ui(e.value,o,i))}),(o||i)&&Go(e,"change",()=>{e.value=Ui(e.value,o,i)}),t||(Go(e,"compositionstart",hh),Go(e,"compositionend",as),Go(e,"change",as))},mounted(e,{value:t,modifiers:{trim:o,number:r}}){const n=t??"",i=e[Sn];delete e[Sn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Ko](Ui(e.value,o,r)):e.value=n},beforeUpdate(e,{value:t,oldValue:o,modifiers:{lazy:r,trim:n,number:i}},l){if(e[Ko]=zn(l),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?oi(e.value):e.value,s=t??"";if(a===s)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===o||n&&e.value.trim()===s)||(e.value=s)}},mT={deep:!0,created(e,{value:t,modifiers:{number:o}},r){e._modelValue=t,Go(e,"change",()=>{const n=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>o?oi(Un(s)):Un(s)),i=e.multiple,l=i?er(e._modelValue)?new Set(n):n:n[0],a=e._pendingValue=[i,i?oe(l)?n.slice():n:l];try{e[Ko](l)}finally{ci(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Ko]=zn(r)},mounted(e,{value:t}){ss(e,t)},beforeUpdate(e,{value:t},o){e._modelValue=t,e[Ko]=zn(o)},updated(e,{value:t}){const o=e._pendingValue;e._pendingValue=void 0,(!o||o[0]!==e.multiple||!gh(t,o[1],o[0]))&&ss(e,t)}};function gh(e,t,o){if(!o||oe(e))return Po(e,t);if(er(e)){if(e.size!==t.length)return!1;for(const r of t)if(!e.has(r))return!1;return!0}return!1}function ss(e,t){const o=e.multiple,r=oe(t);if(!(o&&!r&&!er(t))){for(let n=0,i=e.options.length;nString(c)===String(a)):l.selected=ep(t,a)>-1}else l.selected=t.has(a);else if(Po(Un(l),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!o&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Un(e){return"_value"in e?e._value:e.value}const Ch=["ctrl","shift","alt","meta"],bh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ch.some(o=>e[`${o}Key`]&&!t.includes(o))},hT=(e,t)=>{if(!e)return e;const o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=((n,...i)=>{for(let l=0;l{const o=e._withKeys||(e._withKeys={}),r=t.join(".");return o[r]||(o[r]=(n=>{if(!("key"in n))return;const i=Ro(n.key);if(t.some(l=>l===i||xh[l]===i))return e(n)}))},_h=Be({patchProp:dh},Vm);let cs;function vh(){return cs||(cs=ym(_h))}const Sh=((...e)=>{const t=vh().createApp(...e),{mount:o}=t;return t.mount=r=>{const n=Eh(r);if(!n)return;const i=t._component;!le(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const l=o(n,!1,yh(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t});function yh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Eh(e){return we(e)?document.querySelector(e):e}let Gu;const gi=e=>Gu=e,Ku=Symbol();function hl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Vr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Vr||(Vr={}));function Th(){const e=Wl(!0),t=e.run(()=>mt({}));let o=[],r=[];const n=qr({install(i){gi(n),n._a=i,i.provide(Ku,n),i.config.globalProperties.$pinia=n,r.forEach(l=>o.push(l)),r=[]},use(i){return this._a?o.push(i):r.push(i),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return n}const Yu=()=>{};function us(e,t,o,r=Yu){e.add(t);const n=()=>{e.delete(t)&&r()};return!o&&zc()&&tp(n),n}function lr(e,...t){e.forEach(o=>{o(...t)})}const Ph=e=>e(),fs=Symbol(),Vi=Symbol();function gl(e,t){e instanceof Map&&t instanceof Map?t.forEach((o,r)=>e.set(r,o)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const r=t[o],n=e[o];hl(n)&&hl(r)&&e.hasOwnProperty(o)&&!Le(r)&&!lo(r)?e[o]=gl(n,r):e[o]=r}return e}const Ih=Symbol();function Ah(e){return!hl(e)||!Object.prototype.hasOwnProperty.call(e,Ih)}const{assign:_o}=Object;function wh(e){return!!(Le(e)&&e.effect)}function Lh(e,t,o,r){const{state:n,actions:i,getters:l}=t,a=o.state.value[e];let s;function c(){a||(o.state.value[e]=n?n():{});const u=Sp(o.state.value[e]);return _o(u,i,Object.keys(l||{}).reduce((f,d)=>(f[d]=qr(fe(()=>{gi(o);const p=o._s.get(e);return l[d].call(p,p)})),f),{}))}return s=qu(e,c,t,o,r,!0),s}function qu(e,t,o={},r,n,i){let l;const a=_o({actions:{}},o),s={deep:!0};let c,u,f=new Set,d=new Set,p;const g=r.state.value[e];!i&&!g&&(r.state.value[e]={});let C;function S(F){let P;c=u=!1,typeof F=="function"?(F(r.state.value[e]),P={type:Vr.patchFunction,storeId:e,events:p}):(gl(r.state.value[e],F),P={type:Vr.patchObject,payload:F,storeId:e,events:p});const U=C=Symbol();ci().then(()=>{C===U&&(c=!0)}),u=!0,lr(f,P,r.state.value[e])}const E=i?function(){const{state:P}=o,U=P?P():{};this.$patch(X=>{_o(X,U)})}:Yu;function T(){l.stop(),f.clear(),d.clear(),r._s.delete(e)}const v=(F,P="")=>{if(fs in F)return F[Vi]=P,F;const U=function(){gi(r);const X=Array.from(arguments),k=new Set,Q=new Set;function me(ne){k.add(ne)}function ye(ne){Q.add(ne)}lr(d,{args:X,name:U[Vi],store:w,after:me,onError:ye});let se;try{se=F.apply(this&&this.$id===e?this:w,X)}catch(ne){throw lr(Q,ne),ne}return se instanceof Promise?se.then(ne=>(lr(k,ne),ne)).catch(ne=>(lr(Q,ne),Promise.reject(ne))):(lr(k,se),se)};return U[fs]=!0,U[Vi]=P,U},y={_p:r,$id:e,$onAction:us.bind(null,d),$patch:S,$reset:E,$subscribe(F,P={}){const U=us(f,F,P.detached,()=>X()),X=l.run(()=>St(()=>r.state.value[e],k=>{(P.flush==="sync"?u:c)&&F({storeId:e,type:Vr.direct,events:p},k)},_o({},s,P)));return U},$dispose:T},w=fn(y);r._s.set(e,w);const D=(r._a&&r._a.runWithContext||Ph)(()=>r._e.run(()=>(l=Wl()).run(()=>t({action:v}))));for(const F in D){const P=D[F];if(Le(P)&&!wh(P)||lo(P))i||(g&&Ah(P)&&(Le(P)?P.value=g[F]:gl(P,g[F])),r.state.value[e][F]=P);else if(typeof P=="function"){const U=v(P,F);D[F]=U,a.actions[F]=P}}return _o(w,D),_o(ge(w),D),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:F=>{S(P=>{_o(P,F)})}}),r._p.forEach(F=>{_o(w,l.run(()=>F({store:w,app:r._a,pinia:r,options:a})))}),g&&i&&o.hydrate&&o.hydrate(w.$state,g),c=!0,u=!0,w}function Xu(e,t,o){let r;const n=typeof t=="function";r=n?o:t;function i(l,a){const s=Rp();return l=l||(s?Ze(Ku,null):null),l&&gi(l),l=Gu,l._s.has(e)||(n?qu(e,t,r,l):Lh(e,r,l)),l._s.get(e)}return i.$id=e,i}const cr=typeof document<"u";function Ju(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Dh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ju(e.default)}const xe=Object.assign;function ji(e,t){const o={};for(const r in t){const n=t[r];o[r]=Ht(n)?n.map(e):e(n)}return o}const jr=()=>{},Ht=Array.isArray;function ds(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Qu=/#/g,Rh=/&/g,Fh=/\//g,Oh=/=/g,Mh=/\?/g,Zu=/\+/g,Nh=/%5B/g,kh=/%5D/g,ef=/%5E/g,Hh=/%60/g,tf=/%7B/g,$h=/%7C/g,of=/%7D/g,Bh=/%20/g;function ra(e){return e==null?"":encodeURI(""+e).replace($h,"|").replace(Nh,"[").replace(kh,"]")}function Wh(e){return ra(e).replace(tf,"{").replace(of,"}").replace(ef,"^")}function Cl(e){return ra(e).replace(Zu,"%2B").replace(Bh,"+").replace(Qu,"%23").replace(Rh,"%26").replace(Hh,"`").replace(tf,"{").replace(of,"}").replace(ef,"^")}function zh(e){return Cl(e).replace(Oh,"%3D")}function Uh(e){return ra(e).replace(Qu,"%23").replace(Mh,"%3F")}function Vh(e){return Uh(e).replace(Fh,"%2F")}function nn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const jh=/\/$/,Gh=e=>e.replace(jh,"");function Gi(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=Xh(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:nn(l)}}function Kh(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function ps(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Yh(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Cr(t.matched[r],o.matched[n])&&rf(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Cr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function rf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!qh(e[o],t[o]))return!1;return!0}function qh(e,t){return Ht(e)?ms(e,t):Ht(t)?ms(t,e):e?.valueOf()===t?.valueOf()}function ms(e,t){return Ht(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function Xh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Co={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let bl=(function(e){return e.pop="pop",e.push="push",e})({}),Ki=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Jh(e){if(!e)if(cr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Gh(e)}const Qh=/^[^#]+#/;function Zh(e,t){return e.replace(Qh,"#")+t}function eg(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const Ci=()=>({left:window.scrollX,top:window.scrollY});function tg(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=eg(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function hs(e,t){return(history.state?history.state.position-t:-1)+e}const xl=new Map;function og(e,t){xl.set(e,t)}function rg(e){const t=xl.get(e);return xl.delete(e),t}function ng(e){return typeof e=="string"||e&&typeof e=="object"}function nf(e){return typeof e=="string"||typeof e=="symbol"}let Oe=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const lf=Symbol("");Oe.MATCHER_NOT_FOUND+"",Oe.NAVIGATION_GUARD_REDIRECT+"",Oe.NAVIGATION_ABORTED+"",Oe.NAVIGATION_CANCELLED+"",Oe.NAVIGATION_DUPLICATED+"";function br(e,t){return xe(new Error,{type:e,[lf]:!0},t)}function Qt(e,t){return e instanceof Error&&lf in e&&(t==null||!!(e.type&t))}const ig=["params","query","hash"];function lg(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of ig)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function ag(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&Cl(n)):[r&&Cl(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function sg(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Ht(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const cg=Symbol(""),Cs=Symbol(""),bi=Symbol(""),na=Symbol(""),_l=Symbol("");function Dr(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function yo(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const c=d=>{d===!1?s(br(Oe.NAVIGATION_ABORTED,{from:o,to:t})):d instanceof Error?s(d):ng(d)?s(br(Oe.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(l&&r.enterCallbacks[n]===l&&typeof d=="function"&&l.push(d),a())},u=i(()=>e.call(r&&r.instances[n],t,o,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>s(d))})}function Yi(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Ju(s)){const c=(s.__vccOpts||s)[t];c&&i.push(yo(c,o,r,l,a,n))}else{let c=s();i.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const f=Dh(u)?u.default:u;l.mods[a]=u,l.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&yo(d,o,r,l,a,n)()}))}}return i}function ug(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lCr(c,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(c=>Cr(c,s))||n.push(s))}return[o,r,n]}let fg=()=>location.protocol+"//"+location.host;function af(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),ps(a,"")}return ps(o,e)+r+n}function dg(e,t,o,r){let n=[],i=[],l=null;const a=({state:d})=>{const p=af(e,location),g=o.value,C=t.value;let S=0;if(d){if(o.value=p,t.value=d,l&&l===g){l=null;return}S=C?d.position-C.position:0}else r(p);n.forEach(E=>{E(o.value,g,{delta:S,type:bl.pop,direction:S?S>0?Ki.forward:Ki.back:Ki.unknown})})};function s(){l=o.value}function c(d){n.push(d);const p=()=>{const g=n.indexOf(d);g>-1&&n.splice(g,1)};return i.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(xe({},d.state,{scroll:Ci()}),"")}}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:s,listen:c,destroy:f}}function bs(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?Ci():null}}function pg(e){const{history:t,location:o}=window,r={value:af(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,c,u){const f=e.indexOf("#"),d=f>-1?(o.host&&document.querySelector("base")?e:e.slice(f))+s:fg()+e+s;try{t[u?"replaceState":"pushState"](c,"",d),n.value=c}catch(p){console.error(p),o[u?"replace":"assign"](d)}}function l(s,c){i(s,xe({},t.state,bs(n.value.back,s,n.value.forward,!0),c,{position:n.value.position}),!0),r.value=s}function a(s,c){const u=xe({},n.value,t.state,{forward:s,scroll:Ci()});i(u.current,u,!0),i(s,xe({},bs(r.value,s,null),{position:u.position+1},c),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function mg(e){e=Jh(e);const t=pg(e),o=dg(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=xe({location:"",base:e,go:r,createHref:Zh.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}let Yo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ke=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(ke||{});const hg={type:Yo.Static,value:""},gg=/[a-zA-Z0-9_]/;function Cg(e){if(!e)return[[]];if(e==="/")return[[hg]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${o})/"${c}": ${p}`)}let o=ke.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,c="",u="";function f(){c&&(o===ke.Static?i.push({type:Yo.Static,value:c}):o===ke.Param||o===ke.ParamRegExp||o===ke.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Yo.Param,value:c,regexp:u,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=s}for(;at.length?t.length===1&&t[0]===lt.Static+lt.Segment?1:-1:0}function sf(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const Sg={strict:!1,end:!0,sensitive:!1};function yg(e,t,o){const r=_g(Cg(e.path),o),n=xe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function Eg(e,t){const o=[],r=new Map;t=ds(Sg,t);function n(f){return r.get(f)}function i(f,d,p){const g=!p,C=Ss(f);C.aliasOf=p&&p.record;const S=ds(t,f),E=[C];if("alias"in f){const y=typeof f.alias=="string"?[f.alias]:f.alias;for(const w of y)E.push(Ss(xe({},C,{components:p?p.record.components:C.components,path:w,aliasOf:p?p.record:C})))}let T,v;for(const y of E){const{path:w}=y;if(d&&w[0]!=="/"){const L=d.record.path,D=L[L.length-1]==="/"?"":"/";y.path=d.record.path+(w&&D+w)}if(T=yg(y,d,S),p?p.alias.push(T):(v=v||T,v!==T&&v.alias.push(T),g&&f.name&&!ys(T)&&l(f.name)),cf(T)&&s(T),C.children){const L=C.children;for(let D=0;D{l(v)}:jr}function l(f){if(nf(f)){const d=r.get(f);d&&(r.delete(f),o.splice(o.indexOf(d),1),d.children.forEach(l),d.alias.forEach(l))}else{const d=o.indexOf(f);d>-1&&(o.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(l),f.alias.forEach(l))}}function a(){return o}function s(f){const d=Ig(f,o);o.splice(d,0,f),f.record.name&&!ys(f)&&r.set(f.record.name,f)}function c(f,d){let p,g={},C,S;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw br(Oe.MATCHER_NOT_FOUND,{location:f});S=p.record.name,g=xe(vs(d.params,p.keys.filter(v=>!v.optional).concat(p.parent?p.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),f.params&&vs(f.params,p.keys.map(v=>v.name))),C=p.stringify(g)}else if(f.path!=null)C=f.path,p=o.find(v=>v.re.test(C)),p&&(g=p.parse(C),S=p.record.name);else{if(p=d.name?r.get(d.name):o.find(v=>v.re.test(d.path)),!p)throw br(Oe.MATCHER_NOT_FOUND,{location:f,currentLocation:d});S=p.record.name,g=xe({},d.params,f.params),C=p.stringify(g)}const E=[];let T=p;for(;T;)E.unshift(T.record),T=T.parent;return{name:S,path:C,params:g,matched:E,meta:Pg(E)}}e.forEach(f=>i(f));function u(){o.length=0,r.clear()}return{addRoute:i,resolve:c,removeRoute:l,clearRoutes:u,getRoutes:a,getRecordMatcher:n}}function vs(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function Ss(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Tg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Tg(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function ys(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Pg(e){return e.reduce((t,o)=>xe(t,o.meta),{})}function Ig(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;sf(e,t[i])<0?r=i:o=i+1}const n=Ag(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function Ag(e){let t=e;for(;t=t.parent;)if(cf(t)&&sf(e,t)===0)return t}function cf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Es(e){const t=Ze(bi),o=Ze(na),r=fe(()=>{const s=bt(e.to);return t.resolve(s)}),n=fe(()=>{const{matched:s}=r.value,{length:c}=s,u=s[c-1],f=o.matched;if(!u||!f.length)return-1;const d=f.findIndex(Cr.bind(null,u));if(d>-1)return d;const p=Ts(s[c-2]);return c>1&&Ts(u)===p&&f[f.length-1].path!==p?f.findIndex(Cr.bind(null,s[c-2])):d}),i=fe(()=>n.value>-1&&Fg(o.params,r.value.params)),l=fe(()=>n.value>-1&&n.value===o.matched.length-1&&rf(o.params,r.value.params));function a(s={}){if(Rg(s)){const c=t[bt(e.replace)?"replace":"push"](bt(e.to)).catch(jr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:fe(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function wg(e){return e.length===1?e[0]:e}const Lg=po({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Es,setup(e,{slots:t}){const o=fn(Es(e)),{options:r}=Ze(bi),n=fe(()=>({[Ps(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[Ps(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&wg(t.default(o));return e.custom?i:vr("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),Dg=Lg;function Rg(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Fg(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Ht(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function Ts(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ps=(e,t,o)=>e??t??o,Og=po({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=Ze(_l),n=fe(()=>e.route||r.value),i=Ze(Cs,0),l=fe(()=>{let c=bt(i);const{matched:u}=n.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=fe(()=>n.value.matched[l.value]);Wr(Cs,fe(()=>l.value+1)),Wr(cg,a),Wr(_l,n);const s=mt();return St(()=>[s.value,a.value,e.name],([c,u,f],[d,p,g])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Cr(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(C=>C(c))},{flush:"post"}),()=>{const c=n.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return Is(o.default,{Component:d,route:c});const p=f.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,S=vr(d,xe({},g,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(f.instances[u]=null)},ref:s}));return Is(o.default,{Component:S,route:c})||S}}});function Is(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const Mg=Og;function Ng(e){const t=Eg(e.routes,e),o=e.parseQuery||ag,r=e.stringifyQuery||gs,n=e.history,i=Dr(),l=Dr(),a=Dr(),s=Yl(Co);let c=Co;cr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ji.bind(null,H=>""+H),f=ji.bind(null,Vh),d=ji.bind(null,nn);function p(H,Y){let G,ee;return nf(H)?(G=t.getRecordMatcher(H),ee=Y):ee=H,t.addRoute(ee,G)}function g(H){const Y=t.getRecordMatcher(H);Y&&t.removeRoute(Y)}function C(){return t.getRoutes().map(H=>H.record)}function S(H){return!!t.getRecordMatcher(H)}function E(H,Y){if(Y=xe({},Y||s.value),typeof H=="string"){const x=Gi(o,H,Y.path),R=t.resolve({path:x.path},Y),$=n.createHref(x.fullPath);return xe(x,R,{params:d(R.params),hash:nn(x.hash),redirectedFrom:void 0,href:$})}let G;if(H.path!=null)G=xe({},H,{path:Gi(o,H.path,Y.path).path});else{const x=xe({},H.params);for(const R in x)x[R]==null&&delete x[R];G=xe({},H,{params:f(x)}),Y.params=f(Y.params)}const ee=t.resolve(G,Y),ue=H.hash||"";ee.params=u(d(ee.params));const b=Kh(r,xe({},H,{hash:Wh(ue),path:ee.path})),_=n.createHref(b);return xe({fullPath:b,hash:ue,query:r===gs?sg(H.query):H.query||{}},ee,{redirectedFrom:void 0,href:_})}function T(H){return typeof H=="string"?Gi(o,H,s.value.path):xe({},H)}function v(H,Y){if(c!==H)return br(Oe.NAVIGATION_CANCELLED,{from:Y,to:H})}function y(H){return D(H)}function w(H){return y(xe(T(H),{replace:!0}))}function L(H,Y){const G=H.matched[H.matched.length-1];if(G&&G.redirect){const{redirect:ee}=G;let ue=typeof ee=="function"?ee(H,Y):ee;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=T(ue):{path:ue},ue.params={}),xe({query:H.query,hash:H.hash,params:ue.path!=null?{}:H.params},ue)}}function D(H,Y){const G=c=E(H),ee=s.value,ue=H.state,b=H.force,_=H.replace===!0,x=L(G,ee);if(x)return D(xe(T(x),{state:typeof x=="object"?xe({},ue,x.state):ue,force:b,replace:_}),Y||G);const R=G;R.redirectedFrom=Y;let $;return!b&&Yh(r,ee,G)&&($=br(Oe.NAVIGATION_DUPLICATED,{to:R,from:ee}),Re(ee,ee,!0,!1)),($?Promise.resolve($):U(R,ee)).catch(M=>Qt(M)?Qt(M,Oe.NAVIGATION_GUARD_REDIRECT)?M:ft(M):de(M,R,ee)).then(M=>{if(M){if(Qt(M,Oe.NAVIGATION_GUARD_REDIRECT))return D(xe({replace:_},T(M.to),{state:typeof M.to=="object"?xe({},ue,M.to.state):ue,force:b}),Y||R)}else M=k(R,ee,!0,_,ue);return X(R,ee,M),M})}function F(H,Y){const G=v(H,Y);return G?Promise.reject(G):Promise.resolve()}function P(H){const Y=ht.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(H):H()}function U(H,Y){let G;const[ee,ue,b]=ug(H,Y);G=Yi(ee.reverse(),"beforeRouteLeave",H,Y);for(const x of ee)x.leaveGuards.forEach(R=>{G.push(yo(R,H,Y))});const _=F.bind(null,H,Y);return G.push(_),We(G).then(()=>{G=[];for(const x of i.list())G.push(yo(x,H,Y));return G.push(_),We(G)}).then(()=>{G=Yi(ue,"beforeRouteUpdate",H,Y);for(const x of ue)x.updateGuards.forEach(R=>{G.push(yo(R,H,Y))});return G.push(_),We(G)}).then(()=>{G=[];for(const x of b)if(x.beforeEnter)if(Ht(x.beforeEnter))for(const R of x.beforeEnter)G.push(yo(R,H,Y));else G.push(yo(x.beforeEnter,H,Y));return G.push(_),We(G)}).then(()=>(H.matched.forEach(x=>x.enterCallbacks={}),G=Yi(b,"beforeRouteEnter",H,Y,P),G.push(_),We(G))).then(()=>{G=[];for(const x of l.list())G.push(yo(x,H,Y));return G.push(_),We(G)}).catch(x=>Qt(x,Oe.NAVIGATION_CANCELLED)?x:Promise.reject(x))}function X(H,Y,G){a.list().forEach(ee=>P(()=>ee(H,Y,G)))}function k(H,Y,G,ee,ue){const b=v(H,Y);if(b)return b;const _=Y===Co,x=cr?history.state:{};G&&(ee||_?n.replace(H.fullPath,xe({scroll:_&&x&&x.scroll},ue)):n.push(H.fullPath,ue)),s.value=H,Re(H,Y,G,_),ft()}let Q;function me(){Q||(Q=n.listen((H,Y,G)=>{if(!gt.listening)return;const ee=E(H),ue=L(ee,gt.currentRoute.value);if(ue){D(xe(ue,{replace:!0,force:!0}),ee).catch(jr);return}c=ee;const b=s.value;cr&&og(hs(b.fullPath,G.delta),Ci()),U(ee,b).catch(_=>Qt(_,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_CANCELLED)?_:Qt(_,Oe.NAVIGATION_GUARD_REDIRECT)?(D(xe(T(_.to),{force:!0}),ee).then(x=>{Qt(x,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_DUPLICATED)&&!G.delta&&G.type===bl.pop&&n.go(-1,!1)}).catch(jr),Promise.reject()):(G.delta&&n.go(-G.delta,!1),de(_,ee,b))).then(_=>{_=_||k(ee,b,!1),_&&(G.delta&&!Qt(_,Oe.NAVIGATION_CANCELLED)?n.go(-G.delta,!1):G.type===bl.pop&&Qt(_,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),X(ee,b,_)}).catch(jr)}))}let ye=Dr(),se=Dr(),ne;function de(H,Y,G){ft(H);const ee=se.list();return ee.length?ee.forEach(ue=>ue(H,Y,G)):console.error(H),Promise.reject(H)}function tt(){return ne&&s.value!==Co?Promise.resolve():new Promise((H,Y)=>{ye.add([H,Y])})}function ft(H){return ne||(ne=!H,me(),ye.list().forEach(([Y,G])=>H?G(H):Y()),ye.reset()),H}function Re(H,Y,G,ee){const{scrollBehavior:ue}=e;if(!cr||!ue)return Promise.resolve();const b=!G&&rg(hs(H.fullPath,0))||(ee||!G)&&history.state&&history.state.scroll||null;return ci().then(()=>ue(H,Y,b)).then(_=>_&&tg(_)).catch(_=>de(_,H,Y))}const Fe=H=>n.go(H);let Tt;const ht=new Set,gt={currentRoute:s,listening:!0,addRoute:p,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:S,getRoutes:C,resolve:E,options:e,push:y,replace:w,go:Fe,back:()=>Fe(-1),forward:()=>Fe(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:se.add,isReady:tt,install(H){H.component("RouterLink",Dg),H.component("RouterView",Mg),H.config.globalProperties.$router=gt,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>bt(s)}),cr&&!Tt&&s.value===Co&&(Tt=!0,y(n.location).catch(ee=>{}));const Y={};for(const ee in Co)Object.defineProperty(Y,ee,{get:()=>s.value[ee],enumerable:!0});H.provide(bi,gt),H.provide(na,ru(Y)),H.provide(_l,s);const G=H.unmount;ht.add(H),H.unmount=function(){ht.delete(H),ht.size<1&&(c=Co,Q&&Q(),Q=null,s.value=Co,Tt=!1,ne=!1),G()}}};function We(H){return H.reduce((Y,G)=>Y.then(()=>P(G)),Promise.resolve())}return gt}function CT(){return Ze(bi)}function kg(e){return Ze(na)}function Hg(e){let t=".",o="__",r="--",n;if(e){let g=e.blockPrefix;g&&(t=g),g=e.elementPrefix,g&&(o=g),g=e.modifierPrefix,g&&(r=g)}const i={install(g){n=g.c;const C=g.context;C.bem={},C.bem.b=null,C.bem.els=null}};function l(g){let C,S;return{before(E){C=E.bem.b,S=E.bem.els,E.bem.els=null},after(E){E.bem.b=C,E.bem.els=S},$({context:E,props:T}){return g=typeof g=="string"?g:g({context:E,props:T}),E.bem.b=g,`${T?.bPrefix||t}${E.bem.b}`}}}function a(g){let C;return{before(S){C=S.bem.els},after(S){S.bem.els=C},$({context:S,props:E}){return g=typeof g=="string"?g:g({context:S,props:E}),S.bem.els=g.split(",").map(T=>T.trim()),S.bem.els.map(T=>`${E?.bPrefix||t}${S.bem.b}${o}${T}`).join(", ")}}}function s(g){return{$({context:C,props:S}){g=typeof g=="string"?g:g({context:C,props:S});const E=g.split(",").map(y=>y.trim());function T(y){return E.map(w=>`&${S?.bPrefix||t}${C.bem.b}${y!==void 0?`${o}${y}`:""}${r}${w}`).join(", ")}const v=C.bem.els;return v!==null?T(v[0]):T()}}}function c(g){return{$({context:C,props:S}){g=typeof g=="string"?g:g({context:C,props:S});const E=C.bem.els;return`&:not(${S?.bPrefix||t}${C.bem.b}${E!==null&&E.length>0?`${o}${E[0]}`:""}${r}${g})`}}}return Object.assign(i,{cB:((...g)=>n(l(g[0]),g[1],g[2])),cE:((...g)=>n(a(g[0]),g[1],g[2])),cM:((...g)=>n(s(g[0]),g[1],g[2])),cNotM:((...g)=>n(c(g[0]),g[1],g[2]))}),i}function $g(e){let t=0;for(let o=0;o{let n=$g(r);if(n){if(n===1){e.forEach(l=>{o.push(r.replace("&",l))});return}}else{e.forEach(l=>{o.push((l&&l+" ")+r)});return}let i=[r];for(;n--;){const l=[];i.forEach(a=>{e.forEach(s=>{l.push(a.replace("&",s))})}),i=l}i.forEach(l=>o.push(l))}),o}function zg(e,t){const o=[];return t.split(uf).forEach(r=>{e.forEach(n=>{o.push((n&&n+" ")+r)})}),o}function Ug(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=Wg(t,o):t=zg(t,o))}),t.join(", ").replace(Bg," ")}function As(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function ia(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function Vg(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function yn(e){return e?/^\s*@(s|m)/.test(e):!1}const jg=/[A-Z]/g;function ff(e){return e.replace(jg,t=>"-"+t.toLowerCase())}function Gg(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(o=>t+` ${ff(o[0])}: ${o[1]};`).join(` +`)+` +`+t+"}":`: ${e};`}function Kg(e,t,o){return typeof e=="function"?e({context:t.context,props:o}):e}function ws(e,t,o,r){if(!t)return"";const n=Kg(t,o,r);if(!n)return"";if(typeof n=="string")return`${e} { +${n} +}`;const i=Object.keys(n);if(i.length===0)return o.config.keepEmptyBlock?e+` { +}`:"";const l=e?[e+" {"]:[];return i.forEach(a=>{const s=n[a];if(a==="raw"){l.push(` +`+s+` +`);return}a=ff(a),s!=null&&l.push(` ${a}${Gg(s)}`)}),e&&l.push("}"),l.join(` +`)}function vl(e,t,o){e&&e.forEach(r=>{if(Array.isArray(r))vl(r,t,o);else if(typeof r=="function"){const n=r(t);Array.isArray(n)?vl(n,t,o):n&&o(n)}else r&&o(r)})}function df(e,t,o,r,n){const i=e.$;let l="";if(!i||typeof i=="string")yn(i)?l=i:t.push(i);else if(typeof i=="function"){const c=i({context:r.context,props:n});yn(c)?l=c:t.push(c)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")yn(i.$)?l=i.$:t.push(i.$);else if(i.$){const c=i.$({context:r.context,props:n});yn(c)?l=c:t.push(c)}const a=Ug(t),s=ws(a,e.props,r,n);l?o.push(`${l} {`):s.length&&o.push(s),e.children&&vl(e.children,{context:r.context,props:n},c=>{if(typeof c=="string"){const u=ws(a,{raw:c},r,n);o.push(u)}else df(c,t,o,r,n)}),t.pop(),l&&o.push("}"),i&&i.after&&i.after(r.context)}function Yg(e,t,o){const r=[];return df(e,[],r,t,o),r.join(` + +`)}function Sl(e){for(var t=0,o,r=0,n=e.length;n>=4;++r,n-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function qg(e,t,o,r){const{els:n}=t;if(o===void 0)n.forEach(As),t.els=[];else{const i=ia(o,r);i&&n.includes(i)&&(As(i),t.els=n.filter(l=>l!==i))}}function Ls(e,t){e.push(t)}function Xg(e,t,o,r,n,i,l,a,s){let c;if(o===void 0&&(c=t.render(r),o=Sl(c)),s){s.adapter(o,c??t.render(r));return}a===void 0&&(a=document.head);const u=ia(o,a);if(u!==null&&!i)return u;const f=u??Vg(o);if(c===void 0&&(c=t.render(r)),f.textContent=c,u!==null)return u;if(l){const d=a.querySelector(`meta[name="${l}"]`);if(d)return a.insertBefore(f,d),Ls(t.els,f),f}return n?a.insertBefore(f,a.querySelector("style, link")):a.appendChild(f),Ls(t.els,f),f}function Jg(e){return Yg(this,this.instance,e)}function Qg(e={}){const{id:t,ssr:o,props:r,head:n=!1,force:i=!1,anchorMetaName:l,parent:a}=e;return Xg(this.instance,this,t,r,n,i,l,a,o)}function Zg(e={}){const{id:t,parent:o}=e;qg(this.instance,this,t,o)}const En=function(e,t,o,r){return{instance:e,$:t,props:o,children:r,els:[],render:Jg,mount:Qg,unmount:Zg}},eC=function(e,t,o,r){return Array.isArray(t)?En(e,{$:null},null,t):Array.isArray(o)?En(e,t,null,o):Array.isArray(r)?En(e,t,o,r):En(e,t,o,null)};function tC(e={}){const t={c:((...o)=>eC(t,...o)),use:(o,...r)=>o.install(t,...r),find:ia,context:{},config:e};return t}const oC=".n-",rC="__",nC="--",pf=tC(),mf=Hg({blockPrefix:oC,elementPrefix:rC,modifierPrefix:nC});pf.use(mf);const{c:Ds,find:bT}=pf,{cB:xT,cE:_T,cM:vT,cNotM:ST}=mf;function yT(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}var hf=typeof global=="object"&&global&&global.Object===Object&&global,iC=typeof self=="object"&&self&&self.Object===Object&&self,Sr=hf||iC||Function("return this")(),Vn=Sr.Symbol,gf=Object.prototype,lC=gf.hasOwnProperty,aC=gf.toString,Rr=Vn?Vn.toStringTag:void 0;function sC(e){var t=lC.call(e,Rr),o=e[Rr];try{e[Rr]=void 0;var r=!0}catch{}var n=aC.call(e);return r&&(t?e[Rr]=o:delete e[Rr]),n}var cC=Object.prototype,uC=cC.toString;function fC(e){return uC.call(e)}var dC="[object Null]",pC="[object Undefined]",Rs=Vn?Vn.toStringTag:void 0;function xi(e){return e==null?e===void 0?pC:dC:Rs&&Rs in Object(e)?sC(e):fC(e)}function hn(e){return e!=null&&typeof e=="object"}var yl=Array.isArray;function or(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Cf(e){return e}var mC="[object AsyncFunction]",hC="[object Function]",gC="[object GeneratorFunction]",CC="[object Proxy]";function la(e){if(!or(e))return!1;var t=xi(e);return t==hC||t==gC||t==mC||t==CC}var qi=Sr["__core-js_shared__"],Fs=(function(){var e=/[^.]+$/.exec(qi&&qi.keys&&qi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function bC(e){return!!Fs&&Fs in e}var xC=Function.prototype,_C=xC.toString;function vC(e){if(e!=null){try{return _C.call(e)}catch{}try{return e+""}catch{}}return""}var SC=/[\\^$.*+?()[\]{}|]/g,yC=/^\[object .+?Constructor\]$/,EC=Function.prototype,TC=Object.prototype,PC=EC.toString,IC=TC.hasOwnProperty,AC=RegExp("^"+PC.call(IC).replace(SC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wC(e){if(!or(e)||bC(e))return!1;var t=la(e)?AC:yC;return t.test(vC(e))}function LC(e,t){return e?.[t]}function aa(e,t){var o=LC(e,t);return wC(o)?o:void 0}var Os=Object.create,DC=(function(){function e(){}return function(t){if(!or(t))return{};if(Os)return Os(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}})();function RC(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}function FC(e,t){var o=-1,r=e.length;for(t||(t=Array(r));++o0){if(++t>=OC)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function HC(e){return function(){return e}}var jn=(function(){try{var e=aa(Object,"defineProperty");return e({},"",{}),e}catch{}})(),$C=jn?function(e,t){return jn(e,"toString",{configurable:!0,enumerable:!1,value:HC(t),writable:!0})}:Cf,BC=kC($C),WC=9007199254740991,zC=/^(?:0|[1-9]\d*)$/;function bf(e,t){var o=typeof e;return t=t??WC,!!t&&(o=="number"||o!="symbol"&&zC.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=qC}function ca(e){return e!=null&&xf(e.length)&&!la(e)}function XC(e,t,o){if(!or(o))return!1;var r=typeof t;return(r=="number"?ca(o)&&bf(t,o.length):r=="string"&&t in o)?_i(o[t],e):!1}function JC(e){return YC(function(t,o){var r=-1,n=o.length,i=n>1?o[n-1]:void 0,l=n>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,l&&XC(o[0],o[1],l)&&(i=n<3?void 0:i,n=1),t=Object(t);++r-1}function ox(e,t){var o=this.__data__,r=vi(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}function ho(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t +${t} +`}function Hx(e,t,o){const{styles:r,ids:n}=o;n.has(e)||r!==null&&(n.add(e),r.push(kx(e,t)))}const $x=typeof document<"u";function Bx(){if($x)return;const e=Ze(Nx,null);if(e!==null)return{adapter:(t,o)=>Hx(t,o,e),context:e}}const js={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function Wx(e,t,o){t/=100,o/=100;let r=(n,i=(n+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function zx(e,t,o){t/=100,o/=100;let r=t*Math.min(o,1-o),n=(i,l=(i+e/30)%12)=>o-r*Math.max(Math.min(l-3,9-l,1),-1);return[n(0)*255,n(8)*255,n(4)*255]}const Yt="^\\s*",qt="\\s*$",wo="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",_t="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",qo="([0-9A-Fa-f])",Xo="([0-9A-Fa-f]{2})",Rf=new RegExp(`${Yt}hsl\\s*\\(${_t},${wo},${wo}\\)${qt}`),Ff=new RegExp(`${Yt}hsv\\s*\\(${_t},${wo},${wo}\\)${qt}`),Of=new RegExp(`${Yt}hsla\\s*\\(${_t},${wo},${wo},${_t}\\)${qt}`),Mf=new RegExp(`${Yt}hsva\\s*\\(${_t},${wo},${wo},${_t}\\)${qt}`),Ux=new RegExp(`${Yt}rgb\\s*\\(${_t},${_t},${_t}\\)${qt}`),Vx=new RegExp(`${Yt}rgba\\s*\\(${_t},${_t},${_t},${_t}\\)${qt}`),jx=new RegExp(`${Yt}#${qo}${qo}${qo}${qt}`),Gx=new RegExp(`${Yt}#${Xo}${Xo}${Xo}${qt}`),Kx=new RegExp(`${Yt}#${qo}${qo}${qo}${qo}${qt}`),Yx=new RegExp(`${Yt}#${Xo}${Xo}${Xo}${Xo}${qt}`);function dt(e){return parseInt(e,16)}function qx(e){try{let t;if(t=Of.exec(e))return[Gn(t[1]),Eo(t[5]),Eo(t[9]),Zo(t[13])];if(t=Rf.exec(e))return[Gn(t[1]),Eo(t[5]),Eo(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function Xx(e){try{let t;if(t=Mf.exec(e))return[Gn(t[1]),Eo(t[5]),Eo(t[9]),Zo(t[13])];if(t=Ff.exec(e))return[Gn(t[1]),Eo(t[5]),Eo(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function fo(e){try{let t;if(t=Gx.exec(e))return[dt(t[1]),dt(t[2]),dt(t[3]),1];if(t=Ux.exec(e))return[Xe(t[1]),Xe(t[5]),Xe(t[9]),1];if(t=Vx.exec(e))return[Xe(t[1]),Xe(t[5]),Xe(t[9]),Zo(t[13])];if(t=jx.exec(e))return[dt(t[1]+t[1]),dt(t[2]+t[2]),dt(t[3]+t[3]),1];if(t=Yx.exec(e))return[dt(t[1]),dt(t[2]),dt(t[3]),Zo(dt(t[4])/255)];if(t=Kx.exec(e))return[dt(t[1]+t[1]),dt(t[2]+t[2]),dt(t[3]+t[3]),Zo(dt(t[4]+t[4])/255)];if(e in js)return fo(js[e]);if(Rf.test(e)||Of.test(e)){const[o,r,n,i]=qx(e);return[...zx(o,r,n),i]}else if(Ff.test(e)||Mf.test(e)){const[o,r,n,i]=Xx(e);return[...Wx(o,r,n),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Jx(e){return e>1?1:e<0?0:e}function Al(e,t,o,r){return`rgba(${Xe(e)}, ${Xe(t)}, ${Xe(o)}, ${Jx(r)})`}function Ji(e,t,o,r,n){return Xe((e*t*(1-r)+o*r)/n)}function Z(e,t){Array.isArray(e)||(e=fo(e)),Array.isArray(t)||(t=fo(t));const o=e[3],r=t[3],n=Zo(o+r-o*r);return Al(Ji(e[0],o,t[0],r,n),Ji(e[1],o,t[1],r,n),Ji(e[2],o,t[2],r,n),n)}function J(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:fo(e);return typeof t.alpha=="number"?Al(o,r,n,t.alpha):Al(o,r,n,i)}function Me(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:fo(e),{lightness:l=1,alpha:a=1}=t;return Qx([o*l,r*l,n*l,i*a])}function Zo(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Gn(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function Xe(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Eo(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function Qx(e){const[t,o,r]=e;return 3 in e?`rgba(${Xe(t)}, ${Xe(o)}, ${Xe(r)}, ${Zo(e[3])})`:`rgba(${Xe(t)}, ${Xe(o)}, ${Xe(r)}, 1)`}const q={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},Zx=fo(q.neutralBase),Nf=fo(q.neutralInvertBase),e_=`rgba(${Nf.slice(0,3).join(", ")}, `;function he(e){return`${e_+String(e)})`}function t_(e){const t=Array.from(Nf);return t[3]=Number(e),Z(Zx,t)}const W={name:"common",...ua,baseColor:q.neutralBase,primaryColor:q.primaryDefault,primaryColorHover:q.primaryHover,primaryColorPressed:q.primaryActive,primaryColorSuppl:q.primarySuppl,infoColor:q.infoDefault,infoColorHover:q.infoHover,infoColorPressed:q.infoActive,infoColorSuppl:q.infoSuppl,successColor:q.successDefault,successColorHover:q.successHover,successColorPressed:q.successActive,successColorSuppl:q.successSuppl,warningColor:q.warningDefault,warningColorHover:q.warningHover,warningColorPressed:q.warningActive,warningColorSuppl:q.warningSuppl,errorColor:q.errorDefault,errorColorHover:q.errorHover,errorColorPressed:q.errorActive,errorColorSuppl:q.errorSuppl,textColorBase:q.neutralTextBase,textColor1:he(q.alpha1),textColor2:he(q.alpha2),textColor3:he(q.alpha3),textColorDisabled:he(q.alpha4),placeholderColor:he(q.alpha4),placeholderColorDisabled:he(q.alpha5),iconColor:he(q.alpha4),iconColorDisabled:he(q.alpha5),iconColorHover:he(Number(q.alpha4)*1.25),iconColorPressed:he(Number(q.alpha4)*.8),opacity1:q.alpha1,opacity2:q.alpha2,opacity3:q.alpha3,opacity4:q.alpha4,opacity5:q.alpha5,dividerColor:he(q.alphaDivider),borderColor:he(q.alphaBorder),closeIconColorHover:he(Number(q.alphaClose)),closeIconColor:he(Number(q.alphaClose)),closeIconColorPressed:he(Number(q.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:he(q.alpha4),clearColorHover:Me(he(q.alpha4),{alpha:1.25}),clearColorPressed:Me(he(q.alpha4),{alpha:.8}),scrollbarColor:he(q.alphaScrollbar),scrollbarColorHover:he(q.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:he(q.alphaProgressRail),railColor:he(q.alphaRail),popoverColor:q.neutralPopover,tableColor:q.neutralCard,cardColor:q.neutralCard,modalColor:q.neutralModal,bodyColor:q.neutralBody,tagColor:t_(q.alphaTag),avatarColor:he(q.alphaAvatar),invertedColor:q.neutralBase,inputColor:he(q.alphaInput),codeColor:he(q.alphaCode),tabColor:he(q.alphaTab),actionColor:he(q.alphaAction),tableHeaderColor:he(q.alphaAction),hoverColor:he(q.alphaPending),tableColorHover:he(q.alphaTablePending),tableColorStriped:he(q.alphaTableStriped),pressedColor:he(q.alphaPressed),opacityDisabled:q.alphaDisabled,inputColorDisabled:he(q.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"},re={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaAvatar:"0.2",alphaProgressRail:".08",alphaInput:"0",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},o_=fo(re.neutralBase),kf=fo(re.neutralInvertBase),r_=`rgba(${kf.slice(0,3).join(", ")}, `;function Gs(e){return`${r_+String(e)})`}function Ke(e){const t=Array.from(kf);return t[3]=Number(e),Z(o_,t)}const n_={name:"common",...ua,baseColor:re.neutralBase,primaryColor:re.primaryDefault,primaryColorHover:re.primaryHover,primaryColorPressed:re.primaryActive,primaryColorSuppl:re.primarySuppl,infoColor:re.infoDefault,infoColorHover:re.infoHover,infoColorPressed:re.infoActive,infoColorSuppl:re.infoSuppl,successColor:re.successDefault,successColorHover:re.successHover,successColorPressed:re.successActive,successColorSuppl:re.successSuppl,warningColor:re.warningDefault,warningColorHover:re.warningHover,warningColorPressed:re.warningActive,warningColorSuppl:re.warningSuppl,errorColor:re.errorDefault,errorColorHover:re.errorHover,errorColorPressed:re.errorActive,errorColorSuppl:re.errorSuppl,textColorBase:re.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Ke(re.alpha4),placeholderColor:Ke(re.alpha4),placeholderColorDisabled:Ke(re.alpha5),iconColor:Ke(re.alpha4),iconColorHover:Me(Ke(re.alpha4),{lightness:.75}),iconColorPressed:Me(Ke(re.alpha4),{lightness:.9}),iconColorDisabled:Ke(re.alpha5),opacity1:re.alpha1,opacity2:re.alpha2,opacity3:re.alpha3,opacity4:re.alpha4,opacity5:re.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Ke(Number(re.alphaClose)),closeIconColorHover:Ke(Number(re.alphaClose)),closeIconColorPressed:Ke(Number(re.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Ke(re.alpha4),clearColorHover:Me(Ke(re.alpha4),{lightness:.75}),clearColorPressed:Me(Ke(re.alpha4),{lightness:.9}),scrollbarColor:Gs(re.alphaScrollbar),scrollbarColorHover:Gs(re.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ke(re.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:re.neutralPopover,tableColor:re.neutralCard,cardColor:re.neutralCard,modalColor:re.neutralModal,bodyColor:re.neutralBody,tagColor:"#eee",avatarColor:Ke(re.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Ke(re.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:re.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"},i_={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function l_(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:r,scrollbarWidth:n,scrollbarBorderRadius:i}=e;return{...i_,height:r,width:n,borderRadius:i,color:t,colorHover:o}}const et={name:"Scrollbar",common:W,self:l_};var a_={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function Hf(e){const{textColorDisabled:t,iconColor:o,textColor2:r,fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s}=e;return{...a_,fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:o,extraTextColor:r}}const s_={name:"Empty",common:n_,self:Hf},rr={name:"Empty",common:W,self:Hf};function c_(e,t,o,r,n,i){const l=Bx(),a=Ze(Il,null);if(o){const s=()=>{const c=i?.value;o.mount({id:c===void 0?t:c+t,head:!0,props:{bPrefix:c?`.${c}-`:void 0},anchorMetaName:Vs,ssr:l,parent:a?.styleMountTarget}),a?.preflightStyleDisabled||Mx.mount({id:"n-global",head:!0,anchorMetaName:Vs,ssr:l,parent:a?.styleMountTarget})};l?s():Jl(s)}return fe(()=>{const{theme:{common:s,self:c,peers:u={}}={},themeOverrides:f={},builtinThemeOverrides:d={}}=n,{common:p,peers:g}=f,{common:C=void 0,[e]:{common:S=void 0,self:E=void 0,peers:T={}}={}}=a?.mergedThemeRef.value||{},{common:v=void 0,[e]:y={}}=a?.mergedThemeOverridesRef.value||{},{common:w,peers:L={}}=y,D=kr({},s||S||C||r.common,v,w,p);return{common:D,self:kr((c||E||r.self)?.(D),d,y,f),peers:kr({},r.peers,T,u),peerOverrides:kr({},d.peers,L,g)}})}c_.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};var u_={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function f_(e){const{borderRadius:t,popoverColor:o,textColor3:r,dividerColor:n,textColor2:i,primaryColorPressed:l,textColorDisabled:a,primaryColor:s,opacityDisabled:c,hoverColor:u,fontSizeTiny:f,fontSizeSmall:d,fontSizeMedium:p,fontSizeLarge:g,fontSizeHuge:C,heightTiny:S,heightSmall:E,heightMedium:T,heightLarge:v,heightHuge:y}=e;return{...u_,optionFontSizeTiny:f,optionFontSizeSmall:d,optionFontSizeMedium:p,optionFontSizeLarge:g,optionFontSizeHuge:C,optionHeightTiny:S,optionHeightSmall:E,optionHeightMedium:T,optionHeightLarge:v,optionHeightHuge:y,borderRadius:t,color:o,groupHeaderTextColor:r,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:l,optionTextColorDisabled:a,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:i,loadingColor:s}}const gn={name:"InternalSelectMenu",common:W,peers:{Scrollbar:et,Empty:rr},self:f_};var d_={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function p_(e){const{boxShadow2:t,popoverColor:o,textColor2:r,borderRadius:n,fontSize:i,dividerColor:l}=e;return{...d_,fontSize:i,borderRadius:n,color:o,dividerColor:l,textColor:r,boxShadow:t}}const nr={name:"Popover",common:W,peers:{Scrollbar:et},self:p_};function Ks(e){const t=fe(e),o=mt(t.value);return St(t,r=>{o.value=r}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(r){e.set(r)}}}var m_={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"};const $f={name:"Tag",common:W,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:l,warningColor:a,errorColor:s,baseColor:c,borderColor:u,tagColor:f,opacityDisabled:d,closeIconColor:p,closeIconColorHover:g,closeIconColorPressed:C,closeColorHover:S,closeColorPressed:E,borderRadiusSmall:T,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:w,fontSizeMedium:L,heightMini:D,heightTiny:F,heightSmall:P,heightMedium:U,buttonColor2Hover:X,buttonColor2Pressed:k,fontWeightStrong:Q}=e;return{...m_,closeBorderRadius:T,heightTiny:D,heightSmall:F,heightMedium:P,heightLarge:U,borderRadius:T,opacityDisabled:d,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:w,fontSizeLarge:L,fontWeightStrong:Q,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:X,colorPressedCheckable:k,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:g,closeIconColorPressed:C,closeColorHover:S,closeColorPressed:E,borderPrimary:`1px solid ${J(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:J(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:Me(n,{lightness:.7}),closeIconColorHoverPrimary:Me(n,{lightness:.7}),closeIconColorPressedPrimary:Me(n,{lightness:.7}),closeColorHoverPrimary:J(n,{alpha:.16}),closeColorPressedPrimary:J(n,{alpha:.12}),borderInfo:`1px solid ${J(i,{alpha:.3})}`,textColorInfo:i,colorInfo:J(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:Me(i,{alpha:.7}),closeIconColorHoverInfo:Me(i,{alpha:.7}),closeIconColorPressedInfo:Me(i,{alpha:.7}),closeColorHoverInfo:J(i,{alpha:.16}),closeColorPressedInfo:J(i,{alpha:.12}),borderSuccess:`1px solid ${J(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:J(l,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:Me(l,{alpha:.7}),closeIconColorHoverSuccess:Me(l,{alpha:.7}),closeIconColorPressedSuccess:Me(l,{alpha:.7}),closeColorHoverSuccess:J(l,{alpha:.16}),closeColorPressedSuccess:J(l,{alpha:.12}),borderWarning:`1px solid ${J(a,{alpha:.3})}`,textColorWarning:a,colorWarning:J(a,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:Me(a,{alpha:.7}),closeIconColorHoverWarning:Me(a,{alpha:.7}),closeIconColorPressedWarning:Me(a,{alpha:.7}),closeColorHoverWarning:J(a,{alpha:.16}),closeColorPressedWarning:J(a,{alpha:.11}),borderError:`1px solid ${J(s,{alpha:.3})}`,textColorError:s,colorError:J(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:Me(s,{alpha:.7}),closeIconColorHoverError:Me(s,{alpha:.7}),closeIconColorPressedError:Me(s,{alpha:.7}),closeColorHoverError:J(s,{alpha:.16}),closeColorPressedError:J(s,{alpha:.12})}}};var h_={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};const fa={name:"InternalSelection",common:W,peers:{Popover:nr},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:i,primaryColor:l,primaryColorHover:a,warningColor:s,warningColorHover:c,errorColor:u,errorColorHover:f,iconColor:d,iconColorDisabled:p,clearColor:g,clearColorHover:C,clearColorPressed:S,placeholderColor:E,placeholderColorDisabled:T,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:w,fontSizeLarge:L,heightTiny:D,heightSmall:F,heightMedium:P,heightLarge:U,fontWeight:X}=e;return{...h_,fontWeight:X,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:w,fontSizeLarge:L,heightTiny:D,heightSmall:F,heightMedium:P,heightLarge:U,borderRadius:t,textColor:o,textColorDisabled:r,placeholderColor:E,placeholderColorDisabled:T,color:n,colorDisabled:i,colorActive:J(l,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${a}`,borderActive:`1px solid ${l}`,borderFocus:`1px solid ${a}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${J(l,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${J(l,{alpha:.4})}`,caretColor:l,arrowColor:d,arrowColorDisabled:p,loadingColor:l,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${J(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${J(s,{alpha:.4})}`,colorActiveWarning:J(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${J(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${J(u,{alpha:.4})}`,colorActiveError:J(u,{alpha:.1}),caretColorError:u,clearColor:g,clearColorHover:C,clearColorPressed:S}}};var g_={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"};const C_={name:"Alert",common:W,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,dividerColor:n,inputColor:i,textColor1:l,textColor2:a,closeColorHover:s,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,infoColorSuppl:p,successColorSuppl:g,warningColorSuppl:C,errorColorSuppl:S,fontSize:E}=e;return{...g_,fontSize:E,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${n}`,color:i,titleTextColor:l,iconColor:a,contentTextColor:a,closeBorderRadius:o,closeColorHover:s,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,borderInfo:`1px solid ${J(p,{alpha:.35})}`,colorInfo:J(p,{alpha:.25}),titleTextColorInfo:l,iconColorInfo:p,contentTextColorInfo:a,closeColorHoverInfo:s,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:f,closeIconColorPressedInfo:d,borderSuccess:`1px solid ${J(g,{alpha:.35})}`,colorSuccess:J(g,{alpha:.25}),titleTextColorSuccess:l,iconColorSuccess:g,contentTextColorSuccess:a,closeColorHoverSuccess:s,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:d,borderWarning:`1px solid ${J(C,{alpha:.35})}`,colorWarning:J(C,{alpha:.25}),titleTextColorWarning:l,iconColorWarning:C,contentTextColorWarning:a,closeColorHoverWarning:s,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:f,closeIconColorPressedWarning:d,borderError:`1px solid ${J(S,{alpha:.35})}`,colorError:J(S,{alpha:.25}),titleTextColorError:l,iconColorError:S,contentTextColorError:a,closeColorHoverError:s,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:f,closeIconColorPressedError:d}}};var b_={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function x_(e){const{borderRadius:t,railColor:o,primaryColor:r,primaryColorHover:n,primaryColorPressed:i,textColor2:l}=e;return{...b_,borderRadius:t,railColor:o,railColorActive:r,linkColor:J(r,{alpha:.15}),linkTextColor:l,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:r}}const __={name:"Anchor",common:W,self:x_};var v_={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};function S_(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:l,inputColorDisabled:a,warningColor:s,warningColorHover:c,errorColor:u,errorColorHover:f,borderRadius:d,lineHeight:p,fontSizeTiny:g,fontSizeSmall:C,fontSizeMedium:S,fontSizeLarge:E,heightTiny:T,heightSmall:v,heightMedium:y,heightLarge:w,clearColor:L,clearColorHover:D,clearColorPressed:F,placeholderColor:P,placeholderColorDisabled:U,iconColor:X,iconColorDisabled:k,iconColorHover:Q,iconColorPressed:me,fontWeight:ye}=e;return{...v_,fontWeight:ye,countTextColorDisabled:r,countTextColor:o,heightTiny:T,heightSmall:v,heightMedium:y,heightLarge:w,fontSizeTiny:g,fontSizeSmall:C,fontSizeMedium:S,fontSizeLarge:E,lineHeight:p,lineHeightTextarea:p,borderRadius:d,iconSize:"16px",groupLabelColor:l,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:P,placeholderColorDisabled:U,color:l,colorHover:l,colorDisabled:a,colorFocus:J(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${J(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:J(s,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${J(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:J(u,{alpha:.1}),borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 8px 0 ${J(u,{alpha:.3})}`,caretColorError:u,clearColor:L,clearColorHover:D,clearColorPressed:F,iconColor:X,iconColorDisabled:k,iconColorHover:Q,iconColorPressed:me,suffixTextColor:t}}const Et={name:"Input",common:W,peers:{Scrollbar:et},self:S_};function y_(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const E_={name:"AutoComplete",common:W,peers:{InternalSelectMenu:gn,Input:Et},self:y_};function T_(e){const{borderRadius:t,avatarColor:o,cardColor:r,fontSize:n,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:c,modalColor:u,popoverColor:f}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${r}`,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:c,color:Z(r,o),colorModal:Z(u,o),colorPopover:Z(f,o)}}const Bf={name:"Avatar",common:W,self:T_};function P_(){return{gap:"-12px"}}var I_={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"};const A_={name:"BackTop",common:W,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:r,primaryColorPressed:n}=e;return{...I_,color:t,textColor:o,iconColor:o,iconColorHover:r,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"}}},w_={name:"Badge",common:W,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:r,warningColorSuppl:n,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:r,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}};var L_={fontWeightActive:"400"};function D_(e){const{fontSize:t,textColor3:o,textColor2:r,borderRadius:n,buttonColor2Hover:i,buttonColor2Pressed:l}=e;return{...L_,fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:n,itemColorHover:i,itemColorPressed:l,separatorColor:o}}const R_={name:"Breadcrumb",common:W,self:D_};var F_={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function O_(e){const{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadius:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:d,primaryColorHover:p,primaryColorPressed:g,borderColor:C,primaryColor:S,baseColor:E,infoColor:T,infoColorHover:v,infoColorPressed:y,successColor:w,successColorHover:L,successColorPressed:D,warningColor:F,warningColorHover:P,warningColorPressed:U,errorColor:X,errorColorHover:k,errorColorPressed:Q,fontWeight:me,buttonColor2:ye,buttonColor2Hover:se,buttonColor2Pressed:ne,fontWeightStrong:de}=e;return{...F_,heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:ye,colorSecondaryHover:se,colorSecondaryPressed:ne,colorTertiary:ye,colorTertiaryHover:se,colorTertiaryPressed:ne,colorQuaternary:"#0000",colorQuaternaryHover:se,colorQuaternaryPressed:ne,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:d,textColorHover:p,textColorPressed:g,textColorFocus:p,textColorDisabled:f,textColorText:f,textColorTextHover:p,textColorTextPressed:g,textColorTextFocus:p,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:p,textColorGhostPressed:g,textColorGhostFocus:p,textColorGhostDisabled:f,border:`1px solid ${C}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${g}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${C}`,rippleColor:S,colorPrimary:S,colorHoverPrimary:p,colorPressedPrimary:g,colorFocusPrimary:p,colorDisabledPrimary:S,textColorPrimary:E,textColorHoverPrimary:E,textColorPressedPrimary:E,textColorFocusPrimary:E,textColorDisabledPrimary:E,textColorTextPrimary:S,textColorTextHoverPrimary:p,textColorTextPressedPrimary:g,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:f,textColorGhostPrimary:S,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:g,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:S,borderPrimary:`1px solid ${S}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${g}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${S}`,rippleColorPrimary:S,colorInfo:T,colorHoverInfo:v,colorPressedInfo:y,colorFocusInfo:v,colorDisabledInfo:T,textColorInfo:E,textColorHoverInfo:E,textColorPressedInfo:E,textColorFocusInfo:E,textColorDisabledInfo:E,textColorTextInfo:T,textColorTextHoverInfo:v,textColorTextPressedInfo:y,textColorTextFocusInfo:v,textColorTextDisabledInfo:f,textColorGhostInfo:T,textColorGhostHoverInfo:v,textColorGhostPressedInfo:y,textColorGhostFocusInfo:v,textColorGhostDisabledInfo:T,borderInfo:`1px solid ${T}`,borderHoverInfo:`1px solid ${v}`,borderPressedInfo:`1px solid ${y}`,borderFocusInfo:`1px solid ${v}`,borderDisabledInfo:`1px solid ${T}`,rippleColorInfo:T,colorSuccess:w,colorHoverSuccess:L,colorPressedSuccess:D,colorFocusSuccess:L,colorDisabledSuccess:w,textColorSuccess:E,textColorHoverSuccess:E,textColorPressedSuccess:E,textColorFocusSuccess:E,textColorDisabledSuccess:E,textColorTextSuccess:w,textColorTextHoverSuccess:L,textColorTextPressedSuccess:D,textColorTextFocusSuccess:L,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:L,textColorGhostPressedSuccess:D,textColorGhostFocusSuccess:L,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${L}`,borderPressedSuccess:`1px solid ${D}`,borderFocusSuccess:`1px solid ${L}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:F,colorHoverWarning:P,colorPressedWarning:U,colorFocusWarning:P,colorDisabledWarning:F,textColorWarning:E,textColorHoverWarning:E,textColorPressedWarning:E,textColorFocusWarning:E,textColorDisabledWarning:E,textColorTextWarning:F,textColorTextHoverWarning:P,textColorTextPressedWarning:U,textColorTextFocusWarning:P,textColorTextDisabledWarning:f,textColorGhostWarning:F,textColorGhostHoverWarning:P,textColorGhostPressedWarning:U,textColorGhostFocusWarning:P,textColorGhostDisabledWarning:F,borderWarning:`1px solid ${F}`,borderHoverWarning:`1px solid ${P}`,borderPressedWarning:`1px solid ${U}`,borderFocusWarning:`1px solid ${P}`,borderDisabledWarning:`1px solid ${F}`,rippleColorWarning:F,colorError:X,colorHoverError:k,colorPressedError:Q,colorFocusError:k,colorDisabledError:X,textColorError:E,textColorHoverError:E,textColorPressedError:E,textColorFocusError:E,textColorDisabledError:E,textColorTextError:X,textColorTextHoverError:k,textColorTextPressedError:Q,textColorTextFocusError:k,textColorTextDisabledError:f,textColorGhostError:X,textColorGhostHoverError:k,textColorGhostPressedError:Q,textColorGhostFocusError:k,textColorGhostDisabledError:X,borderError:`1px solid ${X}`,borderHoverError:`1px solid ${k}`,borderPressedError:`1px solid ${Q}`,borderFocusError:`1px solid ${k}`,borderDisabledError:`1px solid ${X}`,rippleColorError:X,waveOpacity:"0.6",fontWeight:me,fontWeightStrong:de}}const ut={name:"Button",common:W,self(e){const t=O_(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}};var M_={titleFontSize:"22px"};function N_(e){const{borderRadius:t,fontSize:o,lineHeight:r,textColor2:n,textColor1:i,textColorDisabled:l,dividerColor:a,fontWeightStrong:s,primaryColor:c,baseColor:u,hoverColor:f,cardColor:d,modalColor:p,popoverColor:g}=e;return{...M_,borderRadius:t,borderColor:Z(d,a),borderColorModal:Z(p,a),borderColorPopover:Z(g,a),textColor:n,titleFontWeight:s,titleTextColor:i,dayTextColor:l,fontSize:o,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:u,cellColorHover:Z(d,f),cellColorHoverModal:Z(p,f),cellColorHoverPopover:Z(g,f),cellColor:d,cellColorModal:p,cellColorPopover:g,barColor:c}}var k_={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function H_(e){const{primaryColor:t,borderRadius:o,lineHeight:r,fontSize:n,cardColor:i,textColor2:l,textColor1:a,dividerColor:s,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,closeColorHover:p,closeColorPressed:g,modalColor:C,boxShadow1:S,popoverColor:E,actionColor:T}=e;return{...k_,lineHeight:r,color:i,colorModal:C,colorPopover:E,colorTarget:t,colorEmbedded:T,colorEmbeddedModal:T,colorEmbeddedPopover:T,textColor:l,titleTextColor:a,borderColor:s,actionColor:T,titleFontWeight:c,closeColorHover:p,closeColorPressed:g,closeBorderRadius:o,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:S,borderRadius:o}}const Wf={name:"Card",common:W,self(e){const t=H_(e),{cardColor:o,modalColor:r,popoverColor:n}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=n,t}};function $_(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}var B_={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function W_(e){const{baseColor:t,inputColorDisabled:o,cardColor:r,modalColor:n,popoverColor:i,textColorDisabled:l,borderColor:a,primaryColor:s,textColor2:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,borderRadiusSmall:p,lineHeight:g}=e;return{...B_,labelLineHeight:g,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,borderRadius:p,color:t,colorChecked:s,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:r,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:l,checkMarkColorDisabledChecked:l,border:`1px solid ${a}`,borderDisabled:`1px solid ${a}`,borderDisabledChecked:`1px solid ${a}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${J(s,{alpha:.3})}`,textColor:c,textColorDisabled:l}}const Tr={name:"Checkbox",common:W,self(e){const{cardColor:t}=e,o=W_(e);return o.color="#0000",o.checkMarkColor=t,o}};function z_(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n,textColor3:i,primaryColor:l,textColorDisabled:a,dividerColor:s,hoverColor:c,fontSizeMedium:u,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:o,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:u,optionColorHover:c,optionTextColor:n,optionTextColorActive:l,optionTextColorDisabled:a,optionCheckMarkColor:l,loadingColor:l,columnWidth:"180px"}}const U_={name:"Cascader",common:W,peers:{InternalSelectMenu:gn,InternalSelection:fa,Scrollbar:et,Checkbox:Tr,Empty:s_},self:z_},zf={name:"Code",common:W,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:r,textColor3:n}=e;return{textColor:t,fontSize:o,fontWeightStrong:r,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}};function V_(e){const{fontWeight:t,textColor1:o,textColor2:r,textColorDisabled:n,dividerColor:i,fontSize:l}=e;return{titleFontSize:l,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:n,fontSize:l,textColor:r,arrowColor:r,arrowColorDisabled:n,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const j_={name:"Collapse",common:W,self:V_};function G_(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}function K_(e){const{fontSize:t,boxShadow2:o,popoverColor:r,textColor2:n,borderRadius:i,borderColor:l,heightSmall:a,heightMedium:s,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,dividerColor:p}=e;return{panelFontSize:t,boxShadow:o,color:r,textColor:n,borderRadius:i,border:`1px solid ${l}`,heightSmall:a,heightMedium:s,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,dividerColor:p}}const Y_={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Dx("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}};var q_=po({name:"ConfigProvider",alias:["App"],props:Y_,setup(e){const t=Ze(Il,null),o=fe(()=>{const{theme:C}=e;if(C===null)return;const S=t?.mergedThemeRef.value;return C===void 0?S:S===void 0?C:Object.assign({},S,C)}),r=fe(()=>{const{themeOverrides:C}=e;if(C!==null){if(C===void 0)return t?.mergedThemeOverridesRef.value;{const S=t?.mergedThemeOverridesRef.value;return S===void 0?C:kr({},S,C)}}}),n=Ks(()=>{const{namespace:C}=e;return C===void 0?t?.mergedNamespaceRef.value:C}),i=Ks(()=>{const{bordered:C}=e;return C===void 0?t?.mergedBorderedRef.value:C}),l=fe(()=>{const{icons:C}=e;return C===void 0?t?.mergedIconsRef.value:C}),a=fe(()=>{const{componentOptions:C}=e;return C!==void 0?C:t?.mergedComponentPropsRef.value}),s=fe(()=>{const{clsPrefix:C}=e;return C!==void 0?C:t?t.mergedClsPrefixRef.value:"n"}),c=fe(()=>{const{rtl:C}=e;if(C===void 0)return t?.mergedRtlRef.value;const S={};for(const E of C)S[E.name]=qr(E),E.peers?.forEach(T=>{T.name in S||(S[T.name]=qr(T))});return S}),u=fe(()=>e.breakpoints||t?.mergedBreakpointsRef.value),f=e.inlineThemeDisabled||t?.inlineThemeDisabled,d=e.preflightStyleDisabled||t?.preflightStyleDisabled,p=e.styleMountTarget||t?.styleMountTarget,g=fe(()=>{const{value:C}=o,{value:S}=r,E=S&&Object.keys(S).length!==0,T=C?.name;return T?E?`${T}-${Sl(JSON.stringify(r.value))}`:T:E?Sl(JSON.stringify(r.value)):""});return Wr(Il,{mergedThemeHashRef:g,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:l,mergedComponentPropsRef:a,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:s,mergedLocaleRef:fe(()=>{const{locale:C}=e;if(C!==null)return C===void 0?t?.mergedLocaleRef.value:C}),mergedDateLocaleRef:fe(()=>{const{dateLocale:C}=e;if(C!==null)return C===void 0?t?.mergedDateLocaleRef.value:C}),mergedHljsRef:fe(()=>{const{hljs:C}=e;return C===void 0?t?.mergedHljsRef.value:C}),mergedKatexRef:fe(()=>{const{katex:C}=e;return C===void 0?t?.mergedKatexRef.value:C}),mergedThemeRef:o,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:d||!1,styleMountTarget:p}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:n,mergedTheme:o,mergedThemeOverrides:r}},render(){return this.abstract?this.$slots.default?.():vr(this.as||this.tag,{class:`${this.mergedClsPrefix||"n"}-config-provider`},this.$slots.default?.())}});const Uf={name:"Popselect",common:W,peers:{Popover:nr,InternalSelectMenu:gn}};function X_(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Vf={name:"Select",common:W,peers:{InternalSelection:fa,InternalSelectMenu:gn},self:X_};var J_={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function Q_(e){const{textColor2:t,primaryColor:o,primaryColorHover:r,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:l,borderColor:a,borderRadius:s,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:f,heightTiny:d,heightSmall:p,heightMedium:g}=e;return{...J_,buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${a}`,buttonBorderHover:`1px solid ${a}`,buttonBorderPressed:`1px solid ${a}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:n,itemTextColorActive:o,itemTextColorDisabled:l,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${a}`,itemBorderRadius:s,itemSizeSmall:d,itemSizeMedium:p,itemSizeLarge:g,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:l}}const jf={name:"Pagination",common:W,peers:{Select:Vf,Input:Et,Popselect:Uf},self(e){const{primaryColor:t,opacity3:o}=e,r=J(t,{alpha:Number(o)}),n=Q_(e);return n.itemBorderActive=`1px solid ${r}`,n.itemBorderDisabled="1px solid #0000",n}};var Z_={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function ev(e){const{primaryColor:t,textColor2:o,dividerColor:r,hoverColor:n,popoverColor:i,invertedColor:l,borderRadius:a,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,heightSmall:d,heightMedium:p,heightLarge:g,heightHuge:C,textColor3:S,opacityDisabled:E}=e;return{...Z_,optionHeightSmall:d,optionHeightMedium:p,optionHeightLarge:g,optionHeightHuge:C,borderRadius:a,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:o,prefixColor:o,optionColorHover:n,optionColorActive:J(t,{alpha:.1}),groupHeaderTextColor:S,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:l,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:E}}const da={name:"Dropdown",common:W,peers:{Popover:nr},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:r}=e,n=ev(e);return n.colorInverted=r,n.optionColorActive=J(o,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}};var tv={padding:"8px 14px"};const yi={name:"Tooltip",common:W,peers:{Popover:nr},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n}=e;return{...tv,borderRadius:t,boxShadow:o,color:r,textColor:n}}};var ov={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};const Gf={name:"Radio",common:W,self(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:i,textColor2:l,opacityDisabled:a,borderRadius:s,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,heightSmall:d,heightMedium:p,heightLarge:g,lineHeight:C}=e;return{...ov,labelLineHeight:C,buttonHeightSmall:d,buttonHeightMedium:p,buttonHeightLarge:g,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${J(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:l,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:l,buttonTextColorActive:r,buttonTextColorHover:o,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${J(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s}}},Kf={name:"Ellipsis",common:W,peers:{Tooltip:yi}};var rv={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function nv(e){const{cardColor:t,modalColor:o,popoverColor:r,textColor2:n,textColor1:i,tableHeaderColor:l,tableColorHover:a,iconColor:s,primaryColor:c,fontWeightStrong:u,borderRadius:f,lineHeight:d,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:C,dividerColor:S,heightSmall:E,opacityDisabled:T,tableColorStriped:v}=e;return{...rv,actionDividerColor:S,lineHeight:d,borderRadius:f,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:C,borderColor:Z(t,S),tdColorHover:Z(t,a),tdColorSorting:Z(t,a),tdColorStriped:Z(t,v),thColor:Z(t,l),thColorHover:Z(Z(t,l),a),thColorSorting:Z(Z(t,l),a),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:u,thButtonColorHover:a,thIconColor:s,thIconColorActive:c,borderColorModal:Z(o,S),tdColorHoverModal:Z(o,a),tdColorSortingModal:Z(o,a),tdColorStripedModal:Z(o,v),thColorModal:Z(o,l),thColorHoverModal:Z(Z(o,l),a),thColorSortingModal:Z(Z(o,l),a),tdColorModal:o,borderColorPopover:Z(r,S),tdColorHoverPopover:Z(r,a),tdColorSortingPopover:Z(r,a),tdColorStripedPopover:Z(r,v),thColorPopover:Z(r,l),thColorHoverPopover:Z(Z(r,l),a),thColorSortingPopover:Z(Z(r,l),a),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:E,opacityLoading:T}}const iv={name:"DataTable",common:W,peers:{Button:ut,Checkbox:Tr,Radio:Gf,Pagination:jf,Scrollbar:et,Empty:rr,Popover:nr,Ellipsis:Kf,Dropdown:da},self(e){const t=nv(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}};function lv(e){const{textColorBase:t,opacity1:o,opacity2:r,opacity3:n,opacity4:i,opacity5:l}=e;return{color:t,opacity1Depth:o,opacity2Depth:r,opacity3Depth:n,opacity4Depth:i,opacity5Depth:l}}const av={name:"Icon",common:W,self:lv};var sv={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function cv(e){const{popoverColor:t,textColor2:o,primaryColor:r,hoverColor:n,dividerColor:i,opacityDisabled:l,boxShadow2:a,borderRadius:s,iconColor:c,iconColorDisabled:u}=e;return{...sv,panelColor:t,panelBoxShadow:a,panelDividerColor:i,itemTextColor:o,itemTextColorActive:r,itemColorHover:n,itemOpacityDisabled:l,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:u}}const Yf={name:"TimePicker",common:W,peers:{Scrollbar:et,Button:ut,Input:Et},self:cv};var uv={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function fv(e){const{hoverColor:t,fontSize:o,textColor2:r,textColorDisabled:n,popoverColor:i,primaryColor:l,borderRadiusSmall:a,iconColor:s,iconColorDisabled:c,textColor1:u,dividerColor:f,boxShadow2:d,borderRadius:p,fontWeightStrong:g}=e;return{...uv,itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:r,itemTextColorDisabled:n,itemTextColorActive:i,itemTextColorCurrent:l,itemColorIncluded:J(l,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:l,itemBorderRadius:a,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:d,panelBorderRadius:p,calendarTitleFontWeight:g,scrollItemBorderRadius:p,iconColor:s,iconColorDisabled:c}}const dv={name:"DatePicker",common:W,peers:{Input:Et,Button:ut,TimePicker:Yf,Scrollbar:et},self(e){const{popoverColor:t,hoverColor:o,primaryColor:r}=e,n=fv(e);return n.itemColorDisabled=Z(t,o),n.itemColorIncluded=J(r,{alpha:.15}),n.itemColorHover=Z(t,o),n}};var pv={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function mv(e){const{tableHeaderColor:t,textColor2:o,textColor1:r,cardColor:n,modalColor:i,popoverColor:l,dividerColor:a,borderRadius:s,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:d,fontSizeLarge:p}=e;return{...pv,lineHeight:u,fontSizeSmall:f,fontSizeMedium:d,fontSizeLarge:p,titleTextColor:r,thColor:Z(n,t),thColorModal:Z(i,t),thColorPopover:Z(l,t),thTextColor:r,thFontWeight:c,tdTextColor:o,tdColor:n,tdColorModal:i,tdColorPopover:l,borderColor:Z(n,a),borderColorModal:Z(i,a),borderColorPopover:Z(l,a),borderRadius:s}}const hv={name:"Descriptions",common:W,self:mv};var gv={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function Cv(e){const{textColor1:t,textColor2:o,modalColor:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,infoColor:c,successColor:u,warningColor:f,errorColor:d,primaryColor:p,dividerColor:g,borderRadius:C,fontWeightStrong:S,lineHeight:E,fontSize:T}=e;return{...gv,fontSize:T,lineHeight:E,border:`1px solid ${g}`,titleTextColor:t,textColor:o,color:r,closeColorHover:a,closeColorPressed:s,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeBorderRadius:C,iconColor:p,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:d,borderRadius:C,titleFontWeight:S}}const qf={name:"Dialog",common:W,peers:{Button:ut},self:Cv};function bv(e){const{modalColor:t,textColor2:o,boxShadow3:r}=e;return{color:t,textColor:o,boxShadow:r}}const xv={name:"Modal",common:W,peers:{Scrollbar:et,Dialog:qf,Card:Wf},self:bv},_v={name:"LoadingBar",common:W,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};var vv={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function Sv(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,infoColor:i,successColor:l,errorColor:a,warningColor:s,popoverColor:c,boxShadow2:u,primaryColor:f,lineHeight:d,borderRadius:p,closeColorHover:g,closeColorPressed:C}=e;return{...vv,closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:l,iconColorWarning:s,iconColorError:a,iconColorLoading:f,closeColorHover:g,closeColorPressed:C,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,closeColorHoverInfo:g,closeColorPressedInfo:C,closeIconColorInfo:o,closeIconColorHoverInfo:r,closeIconColorPressedInfo:n,closeColorHoverSuccess:g,closeColorPressedSuccess:C,closeIconColorSuccess:o,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:n,closeColorHoverError:g,closeColorPressedError:C,closeIconColorError:o,closeIconColorHoverError:r,closeIconColorPressedError:n,closeColorHoverWarning:g,closeColorPressedWarning:C,closeIconColorWarning:o,closeIconColorHoverWarning:r,closeIconColorPressedWarning:n,closeColorHoverLoading:g,closeColorPressedLoading:C,closeIconColorLoading:o,closeIconColorHoverLoading:r,closeIconColorPressedLoading:n,loadingColor:f,lineHeight:d,borderRadius:p,border:"0"}}const yv={name:"Message",common:W,self:Sv};var Ev={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function Tv(e){const{textColor2:t,successColor:o,infoColor:r,warningColor:n,errorColor:i,popoverColor:l,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:f,textColor1:d,textColor3:p,borderRadius:g,fontWeightStrong:C,boxShadow2:S,lineHeight:E,fontSize:T}=e;return{...Ev,borderRadius:g,lineHeight:E,fontSize:T,headerFontWeight:C,iconColor:t,iconColorSuccess:o,iconColorInfo:r,iconColorWarning:n,iconColorError:i,color:l,textColor:t,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:g,closeColorHover:u,closeColorPressed:f,headerTextColor:d,descriptionTextColor:p,actionTextColor:t,boxShadow:S}}const Pv={name:"Notification",common:W,peers:{Scrollbar:et},self:Tv};function Iv(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const Av={name:"Divider",common:W,self:Iv};function wv(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,borderRadius:p,primaryColorHover:g}=e;return{bodyPadding:"16px 24px",borderRadius:p,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:g}}const Lv={name:"Drawer",common:W,peers:{Scrollbar:et},self:wv};var Dv={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const Rv={name:"DynamicInput",common:W,peers:{Input:Et,Button:ut},self(){return Dv}};var Fv={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const Xf={name:"Space",self(){return Fv}},Ov={name:"DynamicTags",common:W,peers:{Input:Et,Button:ut,Tag:$f,Space:Xf},self(){return{inputWidth:"64px"}}},Mv={name:"Element",common:W};var Nv={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const kv={name:"Flex",self(){return Nv}},Hv={name:"ButtonGroup",common:W};var $v={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function Bv(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...$v,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const Wv={name:"Form",common:W,self:Bv},zv={name:"GradientText",common:W,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:c,infoColorSuppl:u,fontWeightStrong:f}=e;return{fontWeight:f,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:u,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:c,colorStartSuccess:o,colorEndSuccess:a}}},Uv={name:"InputNumber",common:W,peers:{Button:ut,Input:Et},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function Vv(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const jv={name:"InputOtp",common:W,peers:{Input:Et},self:Vv},Gv={name:"Layout",common:W,peers:{Scrollbar:et},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Z(o,l),siderToggleBarColorHover:Z(o,a),__invertScrollbar:"false"}}};function Kv(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Z(r,s),colorPopover:n,colorHoverPopover:Z(n,s),borderColor:i,borderColorModal:Z(r,i),borderColorPopover:Z(n,i),borderRadius:l,fontSize:a}}const Yv={name:"List",common:W,self:Kv},qv={name:"Log",common:W,peers:{Scrollbar:et,Code:zf},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},Xv={name:"Mention",common:W,peers:{InternalSelectMenu:gn,Input:Et},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function Jv(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function Qv(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:c}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:J(r,{alpha:.1}),itemColorActiveHover:J(r,{alpha:.1}),itemColorActiveCollapsed:J(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...Jv("#BBB",r,"#FFF","#AAA")}}const Zv={name:"Menu",common:W,peers:{Tooltip:yi,Dropdown:da},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=Qv(e);return r.itemColorActive=J(t,{alpha:.15}),r.itemColorActiveHover=J(t,{alpha:.15}),r.itemColorActiveCollapsed=J(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var e0={iconSize:"22px"};function t0(e){const{fontSize:t,warningColor:o}=e;return{...e0,fontSize:t,iconColor:o}}const o0={name:"Popconfirm",common:W,peers:{Button:ut,Popover:nr},self:t0};function r0(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const Jf={name:"Progress",common:W,self(e){const t=r0(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},n0={name:"Rate",common:W,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var i0={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function l0(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{...i0,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const a0={name:"Result",common:W,self:l0};var s0={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const c0={name:"Slider",common:W,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:c,opacityDisabled:u}=e;return{...s0,fontSize:c,markFontSize:c,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function u0(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const f0={name:"Spin",common:W,self:u0};function d0(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const p0={name:"Statistic",common:W,self:d0};var m0={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function h0(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...m0,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const g0={name:"Steps",common:W,self:h0};var C0={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const b0={name:"Switch",common:W,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...C0,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${J(n,{alpha:.3})}`}}};var x0={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function _0(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:c,fontWeightStrong:u,lineHeight:f,fontSizeSmall:d,fontSizeMedium:p,fontSizeLarge:g}=e;return{...x0,fontSizeSmall:d,fontSizeMedium:p,fontSizeLarge:g,lineHeight:f,borderRadius:c,borderColor:Z(o,t),borderColorModal:Z(r,t),borderColorPopover:Z(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Z(o,l),tdColorStripedModal:Z(r,l),tdColorStripedPopover:Z(n,l),thColor:Z(o,i),thColorModal:Z(r,i),thColorPopover:Z(n,i),thTextColor:a,tdTextColor:s,thFontWeight:u}}const v0={name:"Table",common:W,self:_0};var S0={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function y0(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:c,baseColor:u,dividerColor:f,fontWeight:d,textColor1:p,borderRadius:g,fontSize:C,fontWeightStrong:S}=e;return{...S0,colorSegment:c,tabFontSizeCard:C,tabTextColorLine:p,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:g,tabColor:c,tabColorSegment:u,tabBorderColor:f,tabFontWeightActive:d,tabFontWeight:d,tabBorderRadius:g,paneTextColor:t,fontWeightStrong:S}}const E0={name:"Tabs",common:W,peers:{Button:ut},self(e){const t=y0(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function T0(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const P0={name:"Thing",common:W,self:T0};var I0={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const A0={name:"Timeline",common:W,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:c,fontSize:u}=e;return{...I0,contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var w0={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const L0={name:"Transfer",common:W,peers:{Checkbox:Tr,Scrollbar:et,Input:Et,Empty:rr,Button:ut},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:c,textColor1:u,textColorDisabled:f,textColor2:d,textColor3:p,hoverColor:g,closeColorHover:C,closeColorPressed:S,closeIconColor:E,closeIconColorHover:T,closeIconColorPressed:v,dividerColor:y}=e;return{...w0,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:y,borderColor:"#0000",listColor:s,headerColor:c,titleTextColor:u,titleTextColorDisabled:f,extraTextColor:p,extraTextColorDisabled:f,itemTextColor:d,itemTextColorDisabled:f,itemColorPending:g,titleFontWeight:t,closeColorHover:C,closeColorPressed:S,closeIconColor:E,closeIconColorHover:T,closeIconColorPressed:v}}};function D0(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:J(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const Qf={name:"Tree",common:W,peers:{Checkbox:Tr,Scrollbar:et,Empty:rr},self(e){const{primaryColor:t}=e,o=D0(e);return o.nodeColorActive=J(t,{alpha:.15}),o}},R0={name:"TreeSelect",common:W,peers:{Tree:Qf,Empty:rr,InternalSelection:fa}};var F0={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function O0(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:c,textColor3:u,infoColor:f,warningColor:d,errorColor:p,successColor:g,codeColor:C}=e;return{...F0,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:c,pTextColor:o,pTextColor1Depth:c,pTextColor2Depth:o,pTextColor3Depth:u,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:p,headerBarColorWarning:d,headerBarColorSuccess:g,textColor:o,textColor1Depth:c,textColor2Depth:o,textColor3Depth:u,textColorPrimary:t,textColorInfo:f,textColorSuccess:g,textColorWarning:d,textColorError:p,codeTextColor:o,codeColor:C,codeBorder:"1px solid #0000"}}const M0={name:"Typography",common:W,self:O0};function N0(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:c,lineHeight:u,borderRadius:f,fontSize:d}=e;return{fontSize:d,lineHeight:u,borderRadius:f,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:c,itemColorHoverError:J(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const k0={name:"Upload",common:W,peers:{Button:ut,Progress:Jf},self(e){const{errorColor:t}=e,o=N0(e);return o.itemColorHoverError=J(t,{alpha:.09}),o}},H0={name:"Watermark",common:W,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function $0(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}function B0(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}var W0={extraFontSize:"12px",width:"440px"};function z0(){return{}}var U0={titleFontSize:"18px",backSize:"22px"};function V0(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...U0,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const j0=()=>({}),G0={name:"AvatarGroup",common:W,peers:{Avatar:Bf},self:P_},K0={name:"Calendar",common:W,peers:{Button:ut},self:N_},Y0={name:"Carousel",common:W,self:$_},q0={name:"CollapseTransition",common:W,self:G_},X0={name:"ColorPicker",common:W,peers:{Input:Et,Button:ut},self:K_},J0={name:"Row",common:W},Q0={name:"PageHeader",common:W,self:V0},Z0={name:"FloatButton",common:W,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:c}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:c}}},eS={name:"IconWrapper",common:W,self:B0},tS={name:"Image",common:W,peers:{Tooltip:yi},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},oS={name:"Transfer",common:W,peers:{Checkbox:Tr,Scrollbar:et,Input:Et,Empty:rr,Button:ut},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:c,borderRadius:u,inputColor:f,tableHeaderColor:d,textColor1:p,textColorDisabled:g,textColor2:C,hoverColor:S}=e;return{...W0,itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:u,borderColor:"#0000",listColor:f,headerColor:d,titleTextColor:p,titleTextColorDisabled:g,extraTextColor:C,filterDividerColor:"#0000",itemTextColor:C,itemTextColorDisabled:g,itemColorPending:S,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},rS={name:"Marquee",common:W,self:z0},nS={name:"QrCode",common:W,self:e=>({borderRadius:e.borderRadius})},iS={name:"Skeleton",common:W,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},lS={name:"Split",common:W},aS={name:"Equation",common:W,self:j0},sS={name:"FloatButtonGroup",common:W,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},cS={name:"Heatmap",common:W,self(e){return{...$0(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},uS={name:"dark",common:W,Alert:C_,Anchor:__,AutoComplete:E_,Avatar:Bf,AvatarGroup:G0,BackTop:A_,Badge:w_,Breadcrumb:R_,Button:ut,ButtonGroup:Hv,Calendar:K0,Card:Wf,Carousel:Y0,Cascader:U_,Checkbox:Tr,Code:zf,Collapse:j_,CollapseTransition:q0,ColorPicker:X0,DataTable:iv,DatePicker:dv,Descriptions:hv,Dialog:qf,Divider:Av,Drawer:Lv,Dropdown:da,DynamicInput:Rv,DynamicTags:Ov,Element:Mv,Empty:rr,Ellipsis:Kf,Equation:aS,Flex:kv,Form:Wv,GradientText:zv,Heatmap:cS,Icon:av,IconWrapper:eS,Image:tS,Input:Et,InputNumber:Uv,InputOtp:jv,LegacyTransfer:oS,Layout:Gv,List:Yv,LoadingBar:_v,Log:qv,Menu:Zv,Mention:Xv,Message:yv,Modal:xv,Notification:Pv,PageHeader:Q0,Pagination:jf,Popconfirm:o0,Popover:nr,Popselect:Uf,Progress:Jf,QrCode:nS,Radio:Gf,Rate:n0,Result:a0,Row:J0,Scrollbar:et,Select:Vf,Skeleton:iS,Slider:c0,Space:Xf,Spin:f0,Statistic:p0,Steps:g0,Switch:b0,Table:v0,Tabs:E0,Tag:$f,Thing:P0,TimePicker:Yf,Timeline:A0,Tooltip:yi,Transfer:L0,Tree:Qf,TreeSelect:R0,Typography:M0,Upload:k0,Watermark:H0,Split:lS,FloatButton:Z0,FloatButtonGroup:sS,Marquee:rS},Ei="".trim().replace(/\/+$/,"");function Zf(e){return`${Ei}${e}`}function fS(){return"/s/"}function dS(e,t){return`${(t?.trim()||location.origin).replace(/\/$/,"")}${fS()}${encodeURIComponent(e)}`}const ed={health:"/api/v1/health",publicConfig:"/api/v1/config",setup:"/setup",shareText:"/share/text",shareFile:"/share/file",shareMetadata:"/share/metadata",shareSelect:"/share/select",shareDownload:"/share/download",chunkInit:"/chunk/upload/init",chunkUpload:(e,t)=>`/chunk/upload/${encodeURIComponent(e)}/${t}`,chunkStatus:e=>`/chunk/upload/status/${encodeURIComponent(e)}`,chunkFinish:e=>`/chunk/upload/complete/${encodeURIComponent(e)}`,chunkCancel:e=>`/chunk/upload/${encodeURIComponent(e)}`,presignInit:"/presign/upload/init",presignProxyUpload:e=>`/presign/upload/proxy/${encodeURIComponent(e)}`,presignConfirm:e=>`/presign/upload/confirm/${encodeURIComponent(e)}`,presignStatus:e=>`/presign/upload/status/${encodeURIComponent(e)}`,presignCancel:e=>`/presign/upload/${encodeURIComponent(e)}`,adminLogin:"/admin/login",adminVerify:"/admin/verify",adminLogout:"/admin/logout",adminDashboard:"/admin/dashboard",adminFileList:"/admin/file/list",adminFileDelete:"/admin/file/delete",adminFileBatchDelete:"/admin/file/batch-delete",adminFileUpdate:"/admin/file/update",adminConfigGet:"/admin/config/get",adminConfigUpdate:"/admin/config/update",adminAuditList:"/admin/audit/list",adminPasswordUpdate:"/admin/settings/password",adminStorageSwitch:"/admin/storage/switch"};function pS(e){return`${Ei}/docs/api/${encodeURIComponent(e)}.md`}function mS(){return`${Ei}/docs/openapi.yaml`}const PT=Object.freeze(Object.defineProperty({__proto__:null,API_BASE:Ei,api:Zf,paths:ed,pickupPageUrl:dS,remoteDocUrl:pS,remoteOpenApiUrl:mS},Symbol.toStringTag,{value:"Module"}));class st extends Error{code;msg;httpStatus;constructor(t,o,r){super(o||`请求失败(${t})`),this.name="ApiError",this.code=t,this.msg=o||`请求失败(${t})`,this.httpStatus=r}}const wl="fcb_admin_token";function td(){try{return localStorage.getItem(wl)??""}catch{return""}}function od(e){try{e?localStorage.setItem(wl,e):localStorage.removeItem(wl)}catch{}}let pa=null;function hS(e){pa=e}function ma(e,t){const o=new URL(Zf(e),location.origin);if(t)for(const[r,n]of Object.entries(t))n!=null&&`${n}`!=""&&o.searchParams.set(r,`${n}`);return o.toString()}function rd(){const e=td();return e?{Authorization:`Bearer ${e}`}:{}}async function gS(e,t={}){const{method:o="GET",json:r,form:n,formData:i,query:l,timeout:a=3e4,signal:s}=t,c=new AbortController,u=setTimeout(()=>c.abort(new DOMException("请求超时","TimeoutError")),a);s&&s.addEventListener("abort",()=>c.abort(s.reason),{once:!0});const f={...rd()};r!==void 0&&(f["Content-Type"]="application/json");let d;r!==void 0?d=JSON.stringify(r):i?d=i:n&&(d=new URLSearchParams(n).toString(),f["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8");let p;try{p=await fetch(ma(e,l),{method:o,headers:f,body:d,signal:c.signal})}catch(S){throw S instanceof DOMException&&S.name==="TimeoutError"?new st(0,"请求超时,请检查网络或稍后重试"):new st(0,"网络异常,无法连接服务器")}finally{clearTimeout(u)}if(!(p.headers.get("content-type")??"").includes("application/json")){const S=await p.text().catch(()=>"");throw p.ok?new st(p.status,"响应格式异常(非 JSON)",p.status):new st(p.status,S.slice(0,200)||`请求失败(HTTP ${p.status})`,p.status)}let C;try{C=await p.json()}catch{throw new st(p.status,"响应 JSON 解析失败",p.status)}if(!p.ok||C.code!==200){const S=C.code??p.status;throw(S===401||p.status===401)&&(od(""),pa?.()),new st(S,C.msg||`请求失败(${S})`,p.status)}return C.data}async function IT(e,t={}){const{query:o,timeout:r=12e4}=t,n=new AbortController,i=setTimeout(()=>n.abort(new DOMException("请求超时","TimeoutError")),r);let l;try{l=await fetch(ma(e,o),{method:"GET",headers:rd(),signal:n.signal})}catch{throw new st(0,"网络异常,无法连接服务器")}finally{clearTimeout(i)}const a=l.headers.get("content-type")??"";if(a.includes("application/json"))try{const s=await l.json();throw new st(s.code??l.status,s.msg||"取件失败",l.status)}catch(s){throw s instanceof st?s:new st(l.status,"取件失败",l.status)}if(!l.ok)throw new st(l.status,`取件失败(HTTP ${l.status})`,l.status);return{blob:await l.blob(),contentType:a}}function AT(e,t,o,r=6e5){return new Promise((n,i)=>{const l=new XMLHttpRequest;l.open("POST",ma(e)),l.timeout=r;const a=td();a&&l.setRequestHeader("Authorization",`Bearer ${a}`),l.upload.onprogress=s=>{s.lengthComputable&&o&&o(Math.round(s.loaded/s.total*100))},l.onload=()=>{try{const s=JSON.parse(l.responseText);l.status>=200&&l.status<300&&s.code===200?n(s.data):((s.code===401||l.status===401)&&(od(""),pa?.()),i(new st(s.code??l.status,s.msg||`上传失败(HTTP ${l.status})`,l.status)))}catch{i(new st(l.status,`上传失败(HTTP ${l.status})`,l.status))}},l.onerror=()=>i(new st(0,"网络异常,上传失败")),l.ontimeout=()=>i(new st(0,"上传超时,请重试")),l.send(t)})}const Kn=typeof window<"u",Fo=(e,t=!1)=>t?Symbol.for(e):Symbol(e),CS=(e,t,o)=>bS({l:e,k:t,s:o}),bS=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ne=e=>typeof e=="number"&&isFinite(e),xS=e=>id(e)==="[object Date]",Lo=e=>id(e)==="[object RegExp]",Ti=e=>ae(e)&&Object.keys(e).length===0,Ge=Object.assign,_S=Object.create,ve=(e=null)=>_S(e);let Ys;const io=()=>Ys||(Ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ve());function qs(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const vS=Object.prototype.hasOwnProperty;function Ot(e,t){return vS.call(e,t)}const Ae=Array.isArray,Pe=e=>typeof e=="function",K=e=>typeof e=="string",pe=e=>typeof e=="boolean",Ce=e=>e!==null&&typeof e=="object",SS=e=>Ce(e)&&Pe(e.then)&&Pe(e.catch),nd=Object.prototype.toString,id=e=>nd.call(e),ae=e=>{if(!Ce(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},yS=e=>e==null?"":Ae(e)||ae(e)&&e.toString===nd?JSON.stringify(e,null,2):String(e);function ES(e,t=""){return e.reduce((o,r,n)=>n===0?o+r:o+t+r,"")}function Pi(e){let t=e;return()=>++t}function TS(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Tn=e=>!Ce(e)||Ae(e);function Ln(e,t){if(Tn(e)||Tn(t))throw new Error("Invalid value");const o=[{src:e,des:t}];for(;o.length;){const{src:r,des:n}=o.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(Ce(r[i])&&!Ce(n[i])&&(n[i]=Array.isArray(r[i])?[]:ve()),Tn(n[i])||Tn(r[i])?n[i]=r[i]:o.push({src:r[i],des:n[i]}))})}}function PS(e,t,o){return{line:e,column:t,offset:o}}function Yn(e,t,o){return{start:e,end:t}}const IS=/\{([0-9a-zA-Z]+)\}/g;function ld(e,...t){return t.length===1&&AS(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(IS,(o,r)=>t.hasOwnProperty(r)?t[r]:"")}const ad=Object.assign,Xs=e=>typeof e=="string",AS=e=>e!==null&&typeof e=="object";function sd(e,t=""){return e.reduce((o,r,n)=>n===0?o+r:o+t+r,"")}const ha={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},wS={[ha.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function LS(e,t,...o){const r=ld(wS[e],...o||[]),n={message:String(r),code:e};return t&&(n.location=t),n}const ie={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},DS={[ie.EXPECTED_TOKEN]:"Expected token: '{0}'",[ie.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[ie.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[ie.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[ie.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[ie.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[ie.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[ie.EMPTY_PLACEHOLDER]:"Empty placeholder",[ie.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[ie.INVALID_LINKED_FORMAT]:"Invalid linked format",[ie.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[ie.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[ie.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[ie.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[ie.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[ie.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Pr(e,t,o={}){const{domain:r,messages:n,args:i}=o,l=ld((n||DS)[e]||"",...i||[]),a=new SyntaxError(String(l));return a.code=e,t&&(a.location=t),a.domain=r,a}function RS(e){throw e}const Zt=" ",FS="\r",it=` +`,OS="\u2028",MS="\u2029";function NS(e){const t=e;let o=0,r=1,n=1,i=0;const l=D=>t[D]===FS&&t[D+1]===it,a=D=>t[D]===it,s=D=>t[D]===MS,c=D=>t[D]===OS,u=D=>l(D)||a(D)||s(D)||c(D),f=()=>o,d=()=>r,p=()=>n,g=()=>i,C=D=>l(D)||s(D)||c(D)?it:t[D],S=()=>C(o),E=()=>C(o+i);function T(){return i=0,u(o)&&(r++,n=0),l(o)&&o++,o++,n++,t[o]}function v(){return l(o+i)&&i++,i++,t[o+i]}function y(){o=0,r=1,n=1,i=0}function w(D=0){i=D}function L(){const D=o+i;for(;D!==o;)T();i=0}return{index:f,line:d,column:p,peekOffset:g,charAt:C,currentChar:S,currentPeek:E,next:T,peek:v,reset:y,resetPeek:w,skipToPeek:L}}const bo=void 0,kS=".",Js="'",HS="tokenizer";function $S(e,t={}){const o=t.location!==!1,r=NS(e),n=()=>r.index(),i=()=>PS(r.line(),r.column(),r.index()),l=i(),a=n(),s={currentType:14,offset:a,startLoc:l,endLoc:l,lastType:14,lastOffset:a,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},c=()=>s,{onError:u}=t;function f(m,h,A,...O){const j=c();if(h.column+=A,h.offset+=A,u){const B=o?Yn(j.startLoc,h):null,I=Pr(m,B,{domain:HS,args:O});u(I)}}function d(m,h,A){m.endLoc=i(),m.currentType=h;const O={type:h};return o&&(O.loc=Yn(m.startLoc,m.endLoc)),A!=null&&(O.value=A),O}const p=m=>d(m,14);function g(m,h){return m.currentChar()===h?(m.next(),h):(f(ie.EXPECTED_TOKEN,i(),0,h),"")}function C(m){let h="";for(;m.currentPeek()===Zt||m.currentPeek()===it;)h+=m.currentPeek(),m.peek();return h}function S(m){const h=C(m);return m.skipToPeek(),h}function E(m){if(m===bo)return!1;const h=m.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h===95}function T(m){if(m===bo)return!1;const h=m.charCodeAt(0);return h>=48&&h<=57}function v(m,h){const{currentType:A}=h;if(A!==2)return!1;C(m);const O=E(m.currentPeek());return m.resetPeek(),O}function y(m,h){const{currentType:A}=h;if(A!==2)return!1;C(m);const O=m.currentPeek()==="-"?m.peek():m.currentPeek(),j=T(O);return m.resetPeek(),j}function w(m,h){const{currentType:A}=h;if(A!==2)return!1;C(m);const O=m.currentPeek()===Js;return m.resetPeek(),O}function L(m,h){const{currentType:A}=h;if(A!==8)return!1;C(m);const O=m.currentPeek()===".";return m.resetPeek(),O}function D(m,h){const{currentType:A}=h;if(A!==9)return!1;C(m);const O=E(m.currentPeek());return m.resetPeek(),O}function F(m,h){const{currentType:A}=h;if(!(A===8||A===12))return!1;C(m);const O=m.currentPeek()===":";return m.resetPeek(),O}function P(m,h){const{currentType:A}=h;if(A!==10)return!1;const O=()=>{const B=m.currentPeek();return B==="{"?E(m.peek()):B==="@"||B==="%"||B==="|"||B===":"||B==="."||B===Zt||!B?!1:B===it?(m.peek(),O()):k(m,!1)},j=O();return m.resetPeek(),j}function U(m){C(m);const h=m.currentPeek()==="|";return m.resetPeek(),h}function X(m){const h=C(m),A=m.currentPeek()==="%"&&m.peek()==="{";return m.resetPeek(),{isModulo:A,hasSpace:h.length>0}}function k(m,h=!0){const A=(j=!1,B="",I=!1)=>{const N=m.currentPeek();return N==="{"?B==="%"?!1:j:N==="@"||!N?B==="%"?!0:j:N==="%"?(m.peek(),A(j,"%",!0)):N==="|"?B==="%"||I?!0:!(B===Zt||B===it):N===Zt?(m.peek(),A(!0,Zt,I)):N===it?(m.peek(),A(!0,it,I)):!0},O=A();return h&&m.resetPeek(),O}function Q(m,h){const A=m.currentChar();return A===bo?bo:h(A)?(m.next(),A):null}function me(m){const h=m.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36}function ye(m){return Q(m,me)}function se(m){const h=m.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36||h===45}function ne(m){return Q(m,se)}function de(m){const h=m.charCodeAt(0);return h>=48&&h<=57}function tt(m){return Q(m,de)}function ft(m){const h=m.charCodeAt(0);return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function Re(m){return Q(m,ft)}function Fe(m){let h="",A="";for(;h=tt(m);)A+=h;return A}function Tt(m){S(m);const h=m.currentChar();return h!=="%"&&f(ie.EXPECTED_TOKEN,i(),0,h),m.next(),"%"}function ht(m){let h="";for(;;){const A=m.currentChar();if(A==="{"||A==="}"||A==="@"||A==="|"||!A)break;if(A==="%")if(k(m))h+=A,m.next();else break;else if(A===Zt||A===it)if(k(m))h+=A,m.next();else{if(U(m))break;h+=A,m.next()}else h+=A,m.next()}return h}function gt(m){S(m);let h="",A="";for(;h=ne(m);)A+=h;return m.currentChar()===bo&&f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),A}function We(m){S(m);let h="";return m.currentChar()==="-"?(m.next(),h+=`-${Fe(m)}`):h+=Fe(m),m.currentChar()===bo&&f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),h}function H(m){return m!==Js&&m!==it}function Y(m){S(m),g(m,"'");let h="",A="";for(;h=Q(m,H);)h==="\\"?A+=G(m):A+=h;const O=m.currentChar();return O===it||O===bo?(f(ie.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),O===it&&(m.next(),g(m,"'")),A):(g(m,"'"),A)}function G(m){const h=m.currentChar();switch(h){case"\\":case"'":return m.next(),`\\${h}`;case"u":return ee(m,h,4);case"U":return ee(m,h,6);default:return f(ie.UNKNOWN_ESCAPE_SEQUENCE,i(),0,h),""}}function ee(m,h,A){g(m,h);let O="";for(let j=0;j{const O=m.currentChar();return O==="{"||O==="%"||O==="@"||O==="|"||O==="("||O===")"||!O||O===Zt?A:(A+=O,m.next(),h(A))};return h("")}function R(m){S(m);const h=g(m,"|");return S(m),h}function $(m,h){let A=null;switch(m.currentChar()){case"{":return h.braceNest>=1&&f(ie.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),m.next(),A=d(h,2,"{"),S(m),h.braceNest++,A;case"}":return h.braceNest>0&&h.currentType===2&&f(ie.EMPTY_PLACEHOLDER,i(),0),m.next(),A=d(h,3,"}"),h.braceNest--,h.braceNest>0&&S(m),h.inLinked&&h.braceNest===0&&(h.inLinked=!1),A;case"@":return h.braceNest>0&&f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),A=M(m,h)||p(h),h.braceNest=0,A;default:{let j=!0,B=!0,I=!0;if(U(m))return h.braceNest>0&&f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),A=d(h,1,R(m)),h.braceNest=0,h.inLinked=!1,A;if(h.braceNest>0&&(h.currentType===5||h.currentType===6||h.currentType===7))return f(ie.UNTERMINATED_CLOSING_BRACE,i(),0),h.braceNest=0,V(m,h);if(j=v(m,h))return A=d(h,5,gt(m)),S(m),A;if(B=y(m,h))return A=d(h,6,We(m)),S(m),A;if(I=w(m,h))return A=d(h,7,Y(m)),S(m),A;if(!j&&!B&&!I)return A=d(h,13,b(m)),f(ie.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,A.value),S(m),A;break}}return A}function M(m,h){const{currentType:A}=h;let O=null;const j=m.currentChar();switch((A===8||A===9||A===12||A===10)&&(j===it||j===Zt)&&f(ie.INVALID_LINKED_FORMAT,i(),0),j){case"@":return m.next(),O=d(h,8,"@"),h.inLinked=!0,O;case".":return S(m),m.next(),d(h,9,".");case":":return S(m),m.next(),d(h,10,":");default:return U(m)?(O=d(h,1,R(m)),h.braceNest=0,h.inLinked=!1,O):L(m,h)||F(m,h)?(S(m),M(m,h)):D(m,h)?(S(m),d(h,12,_(m))):P(m,h)?(S(m),j==="{"?$(m,h)||O:d(h,11,x(m))):(A===8&&f(ie.INVALID_LINKED_FORMAT,i(),0),h.braceNest=0,h.inLinked=!1,V(m,h))}}function V(m,h){let A={type:14};if(h.braceNest>0)return $(m,h)||p(h);if(h.inLinked)return M(m,h)||p(h);switch(m.currentChar()){case"{":return $(m,h)||p(h);case"}":return f(ie.UNBALANCED_CLOSING_BRACE,i(),0),m.next(),d(h,3,"}");case"@":return M(m,h)||p(h);default:{if(U(m))return A=d(h,1,R(m)),h.braceNest=0,h.inLinked=!1,A;const{isModulo:j,hasSpace:B}=X(m);if(j)return B?d(h,0,ht(m)):d(h,4,Tt(m));if(k(m))return d(h,0,ht(m));break}}return A}function z(){const{currentType:m,offset:h,startLoc:A,endLoc:O}=s;return s.lastType=m,s.lastOffset=h,s.lastStartLoc=A,s.lastEndLoc=O,s.offset=n(),s.startLoc=i(),r.currentChar()===bo?d(s,14):V(r,s)}return{nextToken:z,currentOffset:n,currentPosition:i,context:c}}const BS="parser",WS=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function zS(e,t,o){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||o,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function US(e={}){const t=e.location!==!1,{onError:o,onWarn:r}=e;function n(v,y,w,L,...D){const F=v.currentPosition();if(F.offset+=L,F.column+=L,o){const P=t?Yn(w,F):null,U=Pr(y,P,{domain:BS,args:D});o(U)}}function i(v,y,w,L,...D){const F=v.currentPosition();if(F.offset+=L,F.column+=L,r){const P=t?Yn(w,F):null;r(LS(y,P,D))}}function l(v,y,w){const L={type:v};return t&&(L.start=y,L.end=y,L.loc={start:w,end:w}),L}function a(v,y,w,L){t&&(v.end=y,v.loc&&(v.loc.end=w))}function s(v,y){const w=v.context(),L=l(3,w.offset,w.startLoc);return L.value=y,a(L,v.currentOffset(),v.currentPosition()),L}function c(v,y){const w=v.context(),{lastOffset:L,lastStartLoc:D}=w,F=l(5,L,D);return F.index=parseInt(y,10),v.nextToken(),a(F,v.currentOffset(),v.currentPosition()),F}function u(v,y,w){const L=v.context(),{lastOffset:D,lastStartLoc:F}=L,P=l(4,D,F);return P.key=y,w===!0&&(P.modulo=!0),v.nextToken(),a(P,v.currentOffset(),v.currentPosition()),P}function f(v,y){const w=v.context(),{lastOffset:L,lastStartLoc:D}=w,F=l(9,L,D);return F.value=y.replace(WS,zS),v.nextToken(),a(F,v.currentOffset(),v.currentPosition()),F}function d(v){const y=v.nextToken(),w=v.context(),{lastOffset:L,lastStartLoc:D}=w,F=l(8,L,D);return y.type!==12?(n(v,ie.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),F.value="",a(F,L,D),{nextConsumeToken:y,node:F}):(y.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Lt(y)),F.value=y.value||"",a(F,v.currentOffset(),v.currentPosition()),{node:F})}function p(v,y){const w=v.context(),L=l(7,w.offset,w.startLoc);return L.value=y,a(L,v.currentOffset(),v.currentPosition()),L}function g(v){const y=v.context(),w=l(6,y.offset,y.startLoc);let L=v.nextToken();if(L.type===9){const D=d(v);w.modifier=D.node,L=D.nextConsumeToken||v.nextToken()}switch(L.type!==10&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),L=v.nextToken(),L.type===2&&(L=v.nextToken()),L.type){case 11:L.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),w.key=p(v,L.value||"");break;case 5:L.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),w.key=u(v,L.value||"");break;case 6:L.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),w.key=c(v,L.value||"");break;case 7:L.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(L)),w.key=f(v,L.value||"");break;default:{n(v,ie.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const D=v.context(),F=l(7,D.offset,D.startLoc);return F.value="",a(F,D.offset,D.startLoc),w.key=F,a(w,D.offset,D.startLoc),{nextConsumeToken:L,node:w}}}return a(w,v.currentOffset(),v.currentPosition()),{node:w}}function C(v){const y=v.context(),w=y.currentType===1?v.currentOffset():y.offset,L=y.currentType===1?y.endLoc:y.startLoc,D=l(2,w,L);D.items=[];let F=null,P=null;do{const k=F||v.nextToken();switch(F=null,k.type){case 0:k.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(k)),D.items.push(s(v,k.value||""));break;case 6:k.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(k)),D.items.push(c(v,k.value||""));break;case 4:P=!0;break;case 5:k.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(k)),D.items.push(u(v,k.value||"",!!P)),P&&(i(v,ha.USE_MODULO_SYNTAX,y.lastStartLoc,0,Lt(k)),P=null);break;case 7:k.value==null&&n(v,ie.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Lt(k)),D.items.push(f(v,k.value||""));break;case 8:{const Q=g(v);D.items.push(Q.node),F=Q.nextConsumeToken||null;break}}}while(y.currentType!==14&&y.currentType!==1);const U=y.currentType===1?y.lastOffset:v.currentOffset(),X=y.currentType===1?y.lastEndLoc:v.currentPosition();return a(D,U,X),D}function S(v,y,w,L){const D=v.context();let F=L.items.length===0;const P=l(1,y,w);P.cases=[],P.cases.push(L);do{const U=C(v);F||(F=U.items.length===0),P.cases.push(U)}while(D.currentType!==14);return F&&n(v,ie.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),a(P,v.currentOffset(),v.currentPosition()),P}function E(v){const y=v.context(),{offset:w,startLoc:L}=y,D=C(v);return y.currentType===14?D:S(v,w,L,D)}function T(v){const y=$S(v,ad({},e)),w=y.context(),L=l(0,w.offset,w.startLoc);return t&&L.loc&&(L.loc.source=v),L.body=E(y),e.onCacheKey&&(L.cacheKey=e.onCacheKey(v)),w.currentType!==14&&n(y,ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,v[w.offset]||""),a(L,y.currentOffset(),y.currentPosition()),L}return{parse:T}}function Lt(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function VS(e,t={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:i=>(o.helpers.add(i),i)}}function Qs(e,t){for(let o=0;oZs(o)),e}function Zs(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let o=0;ol;function s(C,S){l.code+=C}function c(C,S=!0){const E=S?r:"";s(n?E+" ".repeat(C):E)}function u(C=!0){const S=++l.indentLevel;C&&c(S)}function f(C=!0){const S=--l.indentLevel;C&&c(S)}function d(){c(l.indentLevel)}return{context:a,push:s,indent:u,deindent:f,newline:d,helper:C=>`_${C}`,needIndent:()=>l.needIndent}}function XS(e,t){const{helper:o}=e;e.push(`${o("linked")}(`),xr(e,t.key),t.modifier?(e.push(", "),xr(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function JS(e,t){const{helper:o,needIndent:r}=e;e.push(`${o("normalize")}([`),e.indent(r());const n=t.items.length;for(let i=0;i1){e.push(`${o("plural")}([`),e.indent(r());const n=t.cases.length;for(let i=0;i{const o=Xs(t.mode)?t.mode:"normal",r=Xs(t.filename)?t.filename:"message.intl";t.sourceMap;const n=t.breakLineCode!=null?t.breakLineCode:o==="arrow"?";":` +`,i=t.needIndent?t.needIndent:o!=="arrow",l=e.helpers||[],a=qS(e,{filename:r,breakLineCode:n,needIndent:i});a.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),l.length>0&&(a.push(`const { ${sd(l.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),xr(a,e),a.deindent(i),a.push("}"),delete e.helpers;const{code:s,map:c}=a.context();return{ast:e,code:s,map:c?c.toJSON():void 0}};function ty(e,t={}){const o=ad({},t),r=!!o.jit,n=!!o.minify,i=o.optimize==null?!0:o.optimize,a=US(o).parse(e);return r?(i&&GS(a),n&&ur(a),{ast:a,code:""}):(jS(a,o),ey(a,o))}function oy(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(io().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(io().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(io().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Kt(e){return Ce(e)&&Ca(e)===0&&(Ot(e,"b")||Ot(e,"body"))}const cd=["b","body"];function ry(e){return Oo(e,cd)}const ud=["c","cases"];function ny(e){return Oo(e,ud,[])}const fd=["s","static"];function iy(e){return Oo(e,fd)}const dd=["i","items"];function ly(e){return Oo(e,dd,[])}const pd=["t","type"];function Ca(e){return Oo(e,pd)}const md=["v","value"];function Pn(e,t){const o=Oo(e,md);if(o!=null)return o;throw an(t)}const hd=["m","modifier"];function ay(e){return Oo(e,hd)}const gd=["k","key"];function sy(e){const t=Oo(e,gd);if(t)return t;throw an(6)}function Oo(e,t,o){for(let r=0;r{l===void 0?l=a:l+=a},d[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},d[2]=()=>{d[0](),n++},d[3]=()=>{if(n>0)n--,r=4,d[0]();else{if(n=0,l===void 0||(l=py(l),l===!1))return!1;d[1]()}};function p(){const g=e[o+1];if(r===5&&g==="'"||r===6&&g==='"')return o++,a="\\"+g,d[0](),!0}for(;r!==null;)if(o++,i=e[o],!(i==="\\"&&p())){if(s=dy(i),f=Mo[r],c=f[s]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(a=i,u()===!1))))return;if(r===7)return t}}const ec=new Map;function hy(e,t){return Ce(e)?e[t]:null}function gy(e,t){if(!Ce(e))return null;let o=ec.get(t);if(o||(o=my(t),o&&ec.set(t,o)),!o)return null;const r=o.length;let n=e,i=0;for(;ie,by=e=>"",xy="text",_y=e=>e.length===0?"":ES(e),vy=yS;function tc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Sy(e){const t=Ne(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ne(e.named.count)||Ne(e.named.n))?Ne(e.named.count)?e.named.count:Ne(e.named.n)?e.named.n:t:t}function yy(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ey(e={}){const t=e.locale,o=Sy(e),r=Ce(e.pluralRules)&&K(t)&&Pe(e.pluralRules[t])?e.pluralRules[t]:tc,n=Ce(e.pluralRules)&&K(t)&&Pe(e.pluralRules[t])?tc:void 0,i=E=>E[r(o,E.length,n)],l=e.list||[],a=E=>l[E],s=e.named||ve();Ne(e.pluralIndex)&&yy(o,s);const c=E=>s[E];function u(E){const T=Pe(e.messages)?e.messages(E):Ce(e.messages)?e.messages[E]:!1;return T||(e.parent?e.parent.message(E):by)}const f=E=>e.modifiers?e.modifiers[E]:Cy,d=ae(e.processor)&&Pe(e.processor.normalize)?e.processor.normalize:_y,p=ae(e.processor)&&Pe(e.processor.interpolate)?e.processor.interpolate:vy,g=ae(e.processor)&&K(e.processor.type)?e.processor.type:xy,S={list:a,named:c,plural:i,linked:(E,...T)=>{const[v,y]=T;let w="text",L="";T.length===1?Ce(v)?(L=v.modifier||L,w=v.type||w):K(v)&&(L=v||L):T.length===2&&(K(v)&&(L=v||L),K(y)&&(w=y||w));const D=u(E)(S),F=w==="vnode"&&Ae(D)&&L?D[0]:D;return L?f(L)(F,w):F},message:u,type:g,interpolate:p,normalize:d,values:Ge(ve(),l,s)};return S}let sn=null;function Ty(e){sn=e}function Py(e,t,o){sn&&sn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:o})}const Iy=Ay("function:translate");function Ay(e){return t=>sn&&sn.emit(e,t)}const wy=ha.__EXTEND_POINT__,Wo=Pi(wy),Ly={FALLBACK_TO_TRANSLATE:Wo(),CANNOT_FORMAT_NUMBER:Wo(),FALLBACK_TO_NUMBER_FORMAT:Wo(),CANNOT_FORMAT_DATE:Wo(),FALLBACK_TO_DATE_FORMAT:Wo(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Wo(),__EXTEND_POINT__:Wo()},bd=ie.__EXTEND_POINT__,zo=Pi(bd),Mt={INVALID_ARGUMENT:bd,INVALID_DATE_ARGUMENT:zo(),INVALID_ISO_DATE_ARGUMENT:zo(),NOT_SUPPORT_NON_STRING_MESSAGE:zo(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:zo(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:zo(),NOT_SUPPORT_LOCALE_TYPE:zo(),__EXTEND_POINT__:zo()};function jt(e){return Pr(e,null,void 0)}function ba(e,t){return t.locale!=null?oc(t.locale):oc(e.locale)}let Qi;function oc(e){if(K(e))return e;if(Pe(e)){if(e.resolvedOnce&&Qi!=null)return Qi;if(e.constructor.name==="Function"){const t=e();if(SS(t))throw jt(Mt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Qi=t}else throw jt(Mt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw jt(Mt.NOT_SUPPORT_LOCALE_TYPE)}function Dy(e,t,o){return[...new Set([o,...Ae(t)?t:Ce(t)?Object.keys(t):K(t)?[t]:[o]])]}function xd(e,t,o){const r=K(o)?o:_r,n=e;n.__localeChainCache||(n.__localeChainCache=new Map);let i=n.__localeChainCache.get(r);if(!i){i=[];let l=[o];for(;Ae(l);)l=rc(i,l,t);const a=Ae(t)||!ae(t)?t:t.default?t.default:null;l=K(a)?[a]:a,Ae(l)&&rc(i,l,!1),n.__localeChainCache.set(r,i)}return i}function rc(e,t,o){let r=!0;for(let n=0;n`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function My(){return{upper:(e,t)=>t==="text"&&K(e)?e.toUpperCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&K(e)?e.toLowerCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&K(e)?ic(e):t==="vnode"&&Ce(e)&&"__v_isVNode"in e?ic(e.children):e}}let _d;function lc(e){_d=e}let vd;function Ny(e){vd=e}let Sd;function ky(e){Sd=e}let yd=null;const Hy=e=>{yd=e},$y=()=>yd;let Ed=null;const ac=e=>{Ed=e},By=()=>Ed;let sc=0;function Wy(e={}){const t=Pe(e.onWarn)?e.onWarn:TS,o=K(e.version)?e.version:Oy,r=K(e.locale)||Pe(e.locale)?e.locale:_r,n=Pe(r)?_r:r,i=Ae(e.fallbackLocale)||ae(e.fallbackLocale)||K(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,l=ae(e.messages)?e.messages:Zi(n),a=ae(e.datetimeFormats)?e.datetimeFormats:Zi(n),s=ae(e.numberFormats)?e.numberFormats:Zi(n),c=Ge(ve(),e.modifiers,My()),u=e.pluralRules||ve(),f=Pe(e.missing)?e.missing:null,d=pe(e.missingWarn)||Lo(e.missingWarn)?e.missingWarn:!0,p=pe(e.fallbackWarn)||Lo(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,C=!!e.unresolving,S=Pe(e.postTranslation)?e.postTranslation:null,E=ae(e.processor)?e.processor:null,T=pe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,y=Pe(e.messageCompiler)?e.messageCompiler:_d,w=Pe(e.messageResolver)?e.messageResolver:vd||hy,L=Pe(e.localeFallbacker)?e.localeFallbacker:Sd||Dy,D=Ce(e.fallbackContext)?e.fallbackContext:void 0,F=e,P=Ce(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,U=Ce(F.__numberFormatters)?F.__numberFormatters:new Map,X=Ce(F.__meta)?F.__meta:{};sc++;const k={version:o,cid:sc,locale:r,fallbackLocale:i,messages:l,modifiers:c,pluralRules:u,missing:f,missingWarn:d,fallbackWarn:p,fallbackFormat:g,unresolving:C,postTranslation:S,processor:E,warnHtmlMessage:T,escapeParameter:v,messageCompiler:y,messageResolver:w,localeFallbacker:L,fallbackContext:D,onWarn:t,__meta:X};return k.datetimeFormats=a,k.numberFormats=s,k.__datetimeFormatters=P,k.__numberFormatters=U,__INTLIFY_PROD_DEVTOOLS__&&Py(k,o,X),k}const Zi=e=>({[e]:ve()});function xa(e,t,o,r,n){const{missing:i,onWarn:l}=e;if(i!==null){const a=i(e,o,t,n);return K(a)?a:t}else return t}function Fr(e,t,o){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,o,t)}function zy(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Uy(e,t){const o=t.indexOf(e);if(o===-1)return!1;for(let r=o+1;rVy(o,e)}function Vy(e,t){const o=ry(t);if(o==null)throw an(0);if(Ca(o)===1){const i=ny(o);return e.plural(i.reduce((l,a)=>[...l,cc(e,a)],[]))}else return cc(e,o)}function cc(e,t){const o=iy(t);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const r=ly(t).reduce((n,i)=>[...n,Ll(e,i)],[]);return e.normalize(r)}}function Ll(e,t){const o=Ca(t);switch(o){case 3:return Pn(t,o);case 9:return Pn(t,o);case 4:{const r=t;if(Ot(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Ot(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw an(o)}case 5:{const r=t;if(Ot(r,"i")&&Ne(r.i))return e.interpolate(e.list(r.i));if(Ot(r,"index")&&Ne(r.index))return e.interpolate(e.list(r.index));throw an(o)}case 6:{const r=t,n=ay(r),i=sy(r);return e.linked(Ll(e,i),n?Ll(e,n):void 0,e.type)}case 7:return Pn(t,o);case 8:return Pn(t,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const Td=e=>e;let fr=ve();function Pd(e,t={}){let o=!1;const r=t.onError||RS;return t.onError=n=>{o=!0,r(n)},{...ty(e,t),detectError:o}}const jy=(e,t)=>{if(!K(e))throw jt(Mt.NOT_SUPPORT_NON_STRING_MESSAGE);{pe(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Td)(e),n=fr[r];if(n)return n;const{code:i,detectError:l}=Pd(e,t),a=new Function(`return ${i}`)();return l?a:fr[r]=a}};function Gy(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&K(e)){pe(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Td)(e),n=fr[r];if(n)return n;const{ast:i,detectError:l}=Pd(e,{...t,location:!1,jit:!0}),a=el(i);return l?a:fr[r]=a}else{const o=e.cacheKey;if(o){const r=fr[o];return r||(fr[o]=el(e))}else return el(e)}}const uc=()=>"",At=e=>Pe(e);function fc(e,...t){const{fallbackFormat:o,postTranslation:r,unresolving:n,messageCompiler:i,fallbackLocale:l,messages:a}=e,[s,c]=Dl(...t),u=pe(c.missingWarn)?c.missingWarn:e.missingWarn,f=pe(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=pe(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,g=K(c.default)||pe(c.default)?pe(c.default)?i?s:()=>s:c.default:o?i?s:()=>s:"",C=o||g!=="",S=ba(e,c);d&&Ky(c);let[E,T,v]=p?[s,S,a[S]||ve()]:Id(e,s,S,l,f,u),y=E,w=s;if(!p&&!(K(y)||Kt(y)||At(y))&&C&&(y=g,w=y),!p&&(!(K(y)||Kt(y)||At(y))||!K(T)))return n?Ii:s;let L=!1;const D=()=>{L=!0},F=At(y)?y:Ad(e,s,T,y,w,D);if(L)return y;const P=Xy(e,T,v,c),U=Ey(P),X=Yy(e,F,U),k=r?r(X,s):X;if(__INTLIFY_PROD_DEVTOOLS__){const Q={timestamp:Date.now(),key:K(s)?s:At(y)?y.key:"",locale:T||(At(y)?y.locale:""),format:K(y)?y:At(y)?y.source:"",message:k};Q.meta=Ge({},e.__meta,$y()||{}),Iy(Q)}return k}function Ky(e){Ae(e.list)?e.list=e.list.map(t=>K(t)?qs(t):t):Ce(e.named)&&Object.keys(e.named).forEach(t=>{K(e.named[t])&&(e.named[t]=qs(e.named[t]))})}function Id(e,t,o,r,n,i){const{messages:l,onWarn:a,messageResolver:s,localeFallbacker:c}=e,u=c(e,r,o);let f=ve(),d,p=null;const g="translate";for(let C=0;Cr);return c.locale=o,c.key=t,c}const s=l(r,qy(e,o,n,r,a,i));return s.locale=o,s.key=t,s.source=r,s}function Yy(e,t,o){return t(o)}function Dl(...e){const[t,o,r]=e,n=ve();if(!K(t)&&!Ne(t)&&!At(t)&&!Kt(t))throw jt(Mt.INVALID_ARGUMENT);const i=Ne(t)?String(t):(At(t),t);return Ne(o)?n.plural=o:K(o)?n.default=o:ae(o)&&!Ti(o)?n.named=o:Ae(o)&&(n.list=o),Ne(r)?n.plural=r:K(r)?n.default=r:ae(r)&&Ge(n,r),[i,n]}function qy(e,t,o,r,n,i){return{locale:t,key:o,warnHtmlMessage:n,onError:l=>{throw i&&i(l),l},onCacheKey:l=>CS(t,o,l)}}function Xy(e,t,o,r){const{modifiers:n,pluralRules:i,messageResolver:l,fallbackLocale:a,fallbackWarn:s,missingWarn:c,fallbackContext:u}=e,d={locale:t,modifiers:n,pluralRules:i,messages:p=>{let g=l(o,p);if(g==null&&u){const[,,C]=Id(u,p,t,a,s,c);g=l(C,p)}if(K(g)||Kt(g)){let C=!1;const E=Ad(e,p,t,g,p,()=>{C=!0});return C?uc:E}else return At(g)?g:uc}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Ne(r.plural)&&(d.pluralIndex=r.plural),d}function dc(e,...t){const{datetimeFormats:o,unresolving:r,fallbackLocale:n,onWarn:i,localeFallbacker:l}=e,{__datetimeFormatters:a}=e,[s,c,u,f]=Rl(...t),d=pe(u.missingWarn)?u.missingWarn:e.missingWarn;pe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=ba(e,u),C=l(e,n,g);if(!K(s)||s==="")return new Intl.DateTimeFormat(g,f).format(c);let S={},E,T=null;const v="datetime format";for(let L=0;L{wd.includes(s)?l[s]=o[s]:i[s]=o[s]}),K(r)?i.locale=r:ae(r)&&(l=r),ae(n)&&(l=n),[i.key||"",a,i,l]}function pc(e,t,o){const r=e;for(const n in o){const i=`${t}__${n}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function mc(e,...t){const{numberFormats:o,unresolving:r,fallbackLocale:n,onWarn:i,localeFallbacker:l}=e,{__numberFormatters:a}=e,[s,c,u,f]=Fl(...t),d=pe(u.missingWarn)?u.missingWarn:e.missingWarn;pe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=ba(e,u),C=l(e,n,g);if(!K(s)||s==="")return new Intl.NumberFormat(g,f).format(c);let S={},E,T=null;const v="number format";for(let L=0;L{Ld.includes(s)?l[s]=o[s]:i[s]=o[s]}),K(r)?i.locale=r:ae(r)&&(l=r),ae(n)&&(l=n),[i.key||"",a,i,l]}function hc(e,t,o){const r=e;for(const n in o){const i=`${t}__${n}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}oy();const Jy="9.14.4";function Qy(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(io().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(io().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(io().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(io().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(io().__INTLIFY_PROD_DEVTOOLS__=!1)}const Zy=Ly.__EXTEND_POINT__,eo=Pi(Zy);eo(),eo(),eo(),eo(),eo(),eo(),eo(),eo(),eo();const Dd=Mt.__EXTEND_POINT__,pt=Pi(Dd),$e={UNEXPECTED_RETURN_TYPE:Dd,INVALID_ARGUMENT:pt(),MUST_BE_CALL_SETUP_TOP:pt(),NOT_INSTALLED:pt(),NOT_AVAILABLE_IN_LEGACY_MODE:pt(),REQUIRED_VALUE:pt(),INVALID_VALUE:pt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:pt(),NOT_INSTALLED_WITH_PROVIDE:pt(),UNEXPECTED_ERROR:pt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:pt(),BRIDGE_SUPPORT_VUE_2_ONLY:pt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:pt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:pt(),__EXTEND_POINT__:pt()};function ze(e,...t){return Pr(e,null,void 0)}const Ol=Fo("__translateVNode"),Ml=Fo("__datetimeParts"),Nl=Fo("__numberParts"),Rd=Fo("__setPluralRules"),Fd=Fo("__injectWithOption"),kl=Fo("__dispose");function cn(e){if(!Ce(e)||Kt(e))return e;for(const t in e)if(Ot(e,t))if(!t.includes("."))Ce(e[t])&&cn(e[t]);else{const o=t.split("."),r=o.length-1;let n=e,i=!1;for(let l=0;l{if("locale"in a&&"resource"in a){const{locale:s,resource:c}=a;s?(l[s]=l[s]||ve(),Ln(c,l[s])):Ln(c,l)}else K(a)&&Ln(JSON.parse(a),l)}),n==null&&i)for(const a in l)Ot(l,a)&&cn(l[a]);return l}function Od(e){return e.type}function Md(e,t,o){let r=Ce(t.messages)?t.messages:ve();"__i18nGlobal"in o&&(r=Ai(e.locale.value,{messages:r,__i18n:o.__i18nGlobal}));const n=Object.keys(r);n.length&&n.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(Ce(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Ce(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function gc(e){return je(pn,null,e,0)}const Cc="__INTLIFY_META__",bc=()=>[],eE=()=>!1;let xc=0;function _c(e){return((t,o,r,n)=>e(o,r,Ao()||void 0,n))}const tE=()=>{const e=Ao();let t=null;return e&&(t=Od(e)[Cc])?{[Cc]:t}:null};function _a(e={},t){const{__root:o,__injectWithOption:r}=e,n=o===void 0,i=e.flatJson,l=Kn?mt:Yl,a=!!e.translateExistCompatible;let s=pe(e.inheritLocale)?e.inheritLocale:!0;const c=l(o&&s?o.locale.value:K(e.locale)?e.locale:_r),u=l(o&&s?o.fallbackLocale.value:K(e.fallbackLocale)||Ae(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),f=l(Ai(c.value,e)),d=l(ae(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),p=l(ae(e.numberFormats)?e.numberFormats:{[c.value]:{}});let g=o?o.missingWarn:pe(e.missingWarn)||Lo(e.missingWarn)?e.missingWarn:!0,C=o?o.fallbackWarn:pe(e.fallbackWarn)||Lo(e.fallbackWarn)?e.fallbackWarn:!0,S=o?o.fallbackRoot:pe(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,T=Pe(e.missing)?e.missing:null,v=Pe(e.missing)?_c(e.missing):null,y=Pe(e.postTranslation)?e.postTranslation:null,w=o?o.warnHtmlMessage:pe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const D=o?o.modifiers:ae(e.modifiers)?e.modifiers:{};let F=e.pluralRules||o&&o.pluralRules,P;P=(()=>{n&&ac(null);const I={version:Jy,locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:D,pluralRules:F,missing:v===null?void 0:v,missingWarn:g,fallbackWarn:C,fallbackFormat:E,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:w,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};I.datetimeFormats=d.value,I.numberFormats=p.value,I.__datetimeFormatters=ae(P)?P.__datetimeFormatters:void 0,I.__numberFormatters=ae(P)?P.__numberFormatters:void 0;const N=Wy(I);return n&&ac(N),N})(),Fr(P,c.value,u.value);function X(){return[c.value,u.value,f.value,d.value,p.value]}const k=fe({get:()=>c.value,set:I=>{c.value=I,P.locale=c.value}}),Q=fe({get:()=>u.value,set:I=>{u.value=I,P.fallbackLocale=u.value,Fr(P,c.value,I)}}),me=fe(()=>f.value),ye=fe(()=>d.value),se=fe(()=>p.value);function ne(){return Pe(y)?y:null}function de(I){y=I,P.postTranslation=I}function tt(){return T}function ft(I){I!==null&&(v=_c(I)),T=I,P.missing=v}const Re=(I,N,te,ce,Ee,ot)=>{X();let Ue;try{__INTLIFY_PROD_DEVTOOLS__,n||(P.fallbackContext=o?By():void 0),Ue=I(P)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(P.fallbackContext=void 0)}if(te!=="translate exists"&&Ne(Ue)&&Ue===Ii||te==="translate exists"&&!Ue){const[No,Li]=N();return o&&S?ce(o):Ee(No)}else{if(ot(Ue))return Ue;throw ze($e.UNEXPECTED_RETURN_TYPE)}};function Fe(...I){return Re(N=>Reflect.apply(fc,null,[N,...I]),()=>Dl(...I),"translate",N=>Reflect.apply(N.t,N,[...I]),N=>N,N=>K(N))}function Tt(...I){const[N,te,ce]=I;if(ce&&!Ce(ce))throw ze($e.INVALID_ARGUMENT);return Fe(N,te,Ge({resolvedMessage:!0},ce||{}))}function ht(...I){return Re(N=>Reflect.apply(dc,null,[N,...I]),()=>Rl(...I),"datetime format",N=>Reflect.apply(N.d,N,[...I]),()=>nc,N=>K(N))}function gt(...I){return Re(N=>Reflect.apply(mc,null,[N,...I]),()=>Fl(...I),"number format",N=>Reflect.apply(N.n,N,[...I]),()=>nc,N=>K(N))}function We(I){return I.map(N=>K(N)||Ne(N)||pe(N)?gc(String(N)):N)}const Y={normalize:We,interpolate:I=>I,type:"vnode"};function G(...I){return Re(N=>{let te;const ce=N;try{ce.processor=Y,te=Reflect.apply(fc,null,[ce,...I])}finally{ce.processor=null}return te},()=>Dl(...I),"translate",N=>N[Ol](...I),N=>[gc(N)],N=>Ae(N))}function ee(...I){return Re(N=>Reflect.apply(mc,null,[N,...I]),()=>Fl(...I),"number format",N=>N[Nl](...I),bc,N=>K(N)||Ae(N))}function ue(...I){return Re(N=>Reflect.apply(dc,null,[N,...I]),()=>Rl(...I),"datetime format",N=>N[Ml](...I),bc,N=>K(N)||Ae(N))}function b(I){F=I,P.pluralRules=F}function _(I,N){return Re(()=>{if(!I)return!1;const te=K(N)?N:c.value,ce=$(te),Ee=P.messageResolver(ce,I);return a?Ee!=null:Kt(Ee)||At(Ee)||K(Ee)},()=>[I],"translate exists",te=>Reflect.apply(te.te,te,[I,N]),eE,te=>pe(te))}function x(I){let N=null;const te=xd(P,u.value,c.value);for(let ce=0;ce{s&&(c.value=I,P.locale=I,Fr(P,c.value,u.value))}),St(o.fallbackLocale,I=>{s&&(u.value=I,P.fallbackLocale=I,Fr(P,c.value,u.value))}));const B={id:xc,locale:k,fallbackLocale:Q,get inheritLocale(){return s},set inheritLocale(I){s=I,I&&o&&(c.value=o.locale.value,u.value=o.fallbackLocale.value,Fr(P,c.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:me,get modifiers(){return D},get pluralRules(){return F||{}},get isGlobal(){return n},get missingWarn(){return g},set missingWarn(I){g=I,P.missingWarn=g},get fallbackWarn(){return C},set fallbackWarn(I){C=I,P.fallbackWarn=C},get fallbackRoot(){return S},set fallbackRoot(I){S=I},get fallbackFormat(){return E},set fallbackFormat(I){E=I,P.fallbackFormat=E},get warnHtmlMessage(){return w},set warnHtmlMessage(I){w=I,P.warnHtmlMessage=I},get escapeParameter(){return L},set escapeParameter(I){L=I,P.escapeParameter=I},t:Fe,getLocaleMessage:$,setLocaleMessage:M,mergeLocaleMessage:V,getPostTranslationHandler:ne,setPostTranslationHandler:de,getMissingHandler:tt,setMissingHandler:ft,[Rd]:b};return B.datetimeFormats=ye,B.numberFormats=se,B.rt=Tt,B.te=_,B.tm=R,B.d=ht,B.n=gt,B.getDateTimeFormat=z,B.setDateTimeFormat=m,B.mergeDateTimeFormat=h,B.getNumberFormat=A,B.setNumberFormat=O,B.mergeNumberFormat=j,B[Fd]=r,B[Ol]=G,B[Ml]=ue,B[Nl]=ee,B}function oE(e){const t=K(e.locale)?e.locale:_r,o=K(e.fallbackLocale)||Ae(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Pe(e.missing)?e.missing:void 0,n=pe(e.silentTranslationWarn)||Lo(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=pe(e.silentFallbackWarn)||Lo(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=pe(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,s=ae(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Pe(e.postTranslation)?e.postTranslation:void 0,f=K(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,p=pe(e.sync)?e.sync:!0;let g=e.messages;if(ae(e.sharedMessages)){const L=e.sharedMessages;g=Object.keys(L).reduce((F,P)=>{const U=F[P]||(F[P]={});return Ge(U,L[P]),F},g||{})}const{__i18n:C,__root:S,__injectWithOption:E}=e,T=e.datetimeFormats,v=e.numberFormats,y=e.flatJson,w=e.translateExistCompatible;return{locale:t,fallbackLocale:o,messages:g,flatJson:y,datetimeFormats:T,numberFormats:v,missing:r,missingWarn:n,fallbackWarn:i,fallbackRoot:l,fallbackFormat:a,modifiers:s,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:p,translateExistCompatible:w,__i18n:C,__root:S,__injectWithOption:E}}function Hl(e={},t){{const o=_a(oE(e)),{__extender:r}=e,n={id:o.id,get locale(){return o.locale.value},set locale(i){o.locale.value=i},get fallbackLocale(){return o.fallbackLocale.value},set fallbackLocale(i){o.fallbackLocale.value=i},get messages(){return o.messages.value},get datetimeFormats(){return o.datetimeFormats.value},get numberFormats(){return o.numberFormats.value},get availableLocales(){return o.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return o.getMissingHandler()},set missing(i){o.setMissingHandler(i)},get silentTranslationWarn(){return pe(o.missingWarn)?!o.missingWarn:o.missingWarn},set silentTranslationWarn(i){o.missingWarn=pe(i)?!i:i},get silentFallbackWarn(){return pe(o.fallbackWarn)?!o.fallbackWarn:o.fallbackWarn},set silentFallbackWarn(i){o.fallbackWarn=pe(i)?!i:i},get modifiers(){return o.modifiers},get formatFallbackMessages(){return o.fallbackFormat},set formatFallbackMessages(i){o.fallbackFormat=i},get postTranslation(){return o.getPostTranslationHandler()},set postTranslation(i){o.setPostTranslationHandler(i)},get sync(){return o.inheritLocale},set sync(i){o.inheritLocale=i},get warnHtmlInMessage(){return o.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){o.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return o.escapeParameter},set escapeParameterHtml(i){o.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return o.pluralRules||{}},__composer:o,t(...i){const[l,a,s]=i,c={};let u=null,f=null;if(!K(l))throw ze($e.INVALID_ARGUMENT);const d=l;return K(a)?c.locale=a:Ae(a)?u=a:ae(a)&&(f=a),Ae(s)?u=s:ae(s)&&(f=s),Reflect.apply(o.t,o,[d,u||f||{},c])},rt(...i){return Reflect.apply(o.rt,o,[...i])},tc(...i){const[l,a,s]=i,c={plural:1};let u=null,f=null;if(!K(l))throw ze($e.INVALID_ARGUMENT);const d=l;return K(a)?c.locale=a:Ne(a)?c.plural=a:Ae(a)?u=a:ae(a)&&(f=a),K(s)?c.locale=s:Ae(s)?u=s:ae(s)&&(f=s),Reflect.apply(o.t,o,[d,u||f||{},c])},te(i,l){return o.te(i,l)},tm(i){return o.tm(i)},getLocaleMessage(i){return o.getLocaleMessage(i)},setLocaleMessage(i,l){o.setLocaleMessage(i,l)},mergeLocaleMessage(i,l){o.mergeLocaleMessage(i,l)},d(...i){return Reflect.apply(o.d,o,[...i])},getDateTimeFormat(i){return o.getDateTimeFormat(i)},setDateTimeFormat(i,l){o.setDateTimeFormat(i,l)},mergeDateTimeFormat(i,l){o.mergeDateTimeFormat(i,l)},n(...i){return Reflect.apply(o.n,o,[...i])},getNumberFormat(i){return o.getNumberFormat(i)},setNumberFormat(i,l){o.setNumberFormat(i,l)},mergeNumberFormat(i,l){o.mergeNumberFormat(i,l)},getChoiceIndex(i,l){return-1}};return n.__extender=r,n}}const va={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function rE({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,n)=>[...r,...n.type===qe?n.children:[n]],[]):t.reduce((o,r)=>{const n=e[r];return n&&(o[r]=n()),o},ve())}function Nd(e){return qe}const nE=po({name:"i18n-t",props:Ge({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ne(e)||!isNaN(e)}},va),setup(e,t){const{slots:o,attrs:r}=t,n=e.i18n||Sa({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(o).filter(f=>f!=="_"),l=ve();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=K(e.plural)?+e.plural:e.plural);const a=rE(t,i),s=n[Ol](e.keypath,a,l),c=Ge(ve(),r),u=K(e.tag)||Ce(e.tag)?e.tag:Nd();return vr(u,c,s)}}}),vc=nE;function iE(e){return Ae(e)&&!K(e[0])}function kd(e,t,o,r){const{slots:n,attrs:i}=t;return()=>{const l={part:!0};let a=ve();e.locale&&(l.locale=e.locale),K(e.format)?l.key=e.format:Ce(e.format)&&(K(e.format.key)&&(l.key=e.format.key),a=Object.keys(e.format).reduce((d,p)=>o.includes(p)?Ge(ve(),d,{[p]:e.format[p]}):d,ve()));const s=r(e.value,l,a);let c=[l.key];Ae(s)?c=s.map((d,p)=>{const g=n[d.type],C=g?g({[d.type]:d.value,index:p,parts:s}):[d.value];return iE(C)&&(C[0].key=`${d.type}-${p}`),C}):K(s)&&(c=[s]);const u=Ge(ve(),i),f=K(e.tag)||Ce(e.tag)?e.tag:Nd();return vr(f,u,c)}}const lE=po({name:"i18n-n",props:Ge({value:{type:Number,required:!0},format:{type:[String,Object]}},va),setup(e,t){const o=e.i18n||Sa({useScope:e.scope,__useComponent:!0});return kd(e,t,Ld,(...r)=>o[Nl](...r))}}),Sc=lE,aE=po({name:"i18n-d",props:Ge({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},va),setup(e,t){const o=e.i18n||Sa({useScope:e.scope,__useComponent:!0});return kd(e,t,wd,(...r)=>o[Ml](...r))}}),yc=aE;function sE(e,t){const o=e;if(e.mode==="composition")return o.__getInstance(t)||e.global;{const r=o.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function cE(e){const t=l=>{const{instance:a,modifiers:s,value:c}=l;if(!a||!a.$)throw ze($e.UNEXPECTED_ERROR);const u=sE(e,a.$),f=Ec(c);return[Reflect.apply(u.t,u,[...Tc(f)]),u]};return{created:(l,a)=>{const[s,c]=t(a);Kn&&e.global===c&&(l.__i18nWatcher=St(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),l.__composer=c,l.textContent=s},unmounted:l=>{Kn&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:a})=>{if(l.__composer){const s=l.__composer,c=Ec(a);l.textContent=Reflect.apply(s.t,s,[...Tc(c)])}},getSSRProps:l=>{const[a]=t(l);return{textContent:a}}}}function Ec(e){if(K(e))return{path:e};if(ae(e)){if(!("path"in e))throw ze($e.REQUIRED_VALUE,"path");return e}else throw ze($e.INVALID_VALUE)}function Tc(e){const{path:t,locale:o,args:r,choice:n,plural:i}=e,l={},a=r||{};return K(o)&&(l.locale=o),Ne(n)&&(l.plural=n),Ne(i)&&(l.plural=i),[t,a,l]}function uE(e,t,...o){const r=ae(o[0])?o[0]:{},n=!!r.useI18nComponentName;(!pe(r.globalInstall)||r.globalInstall)&&([n?"i18n":vc.name,"I18nT"].forEach(l=>e.component(l,vc)),[Sc.name,"I18nN"].forEach(l=>e.component(l,Sc)),[yc.name,"I18nD"].forEach(l=>e.component(l,yc))),e.directive("t",cE(t))}function fE(e,t,o){return{beforeCreate(){const r=Ao();if(!r)throw ze($e.UNEXPECTED_ERROR);const n=this.$options;if(n.i18n){const i=n.i18n;if(n.__i18n&&(i.__i18n=n.__i18n),i.__root=t,this===this.$root)this.$i18n=Pc(e,i);else{i.__injectWithOption=!0,i.__extender=o.__vueI18nExtend,this.$i18n=Hl(i);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(n.__i18n)if(this===this.$root)this.$i18n=Pc(e,n);else{this.$i18n=Hl({__i18n:n.__i18n,__injectWithOption:!0,__extender:o.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;n.__i18nGlobal&&Md(t,n,n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,l)=>this.$i18n.te(i,l),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),o.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=Ao();if(!r)throw ze($e.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),o.__deleteInstance(r),delete this.$i18n}}}function Pc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Rd](t.pluralizationRules||e.pluralizationRules);const o=Ai(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(o).forEach(r=>e.mergeLocaleMessage(r,o[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const dE=Fo("global-vue-i18n");function pE(e={},t){const o=__VUE_I18N_LEGACY_API__&&pe(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=pe(e.globalInjection)?e.globalInjection:!0,n=__VUE_I18N_LEGACY_API__&&o?!!e.allowComposition:!0,i=new Map,[l,a]=mE(e,o),s=Fo("");function c(d){return i.get(d)||null}function u(d,p){i.set(d,p)}function f(d){i.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&o?"legacy":"composition"},get allowComposition(){return n},async install(p,...g){if(p.__VUE_I18N_SYMBOL__=s,p.provide(p.__VUE_I18N_SYMBOL__,d),ae(g[0])){const E=g[0];d.__composerExtend=E.__composerExtend,d.__vueI18nExtend=E.__vueI18nExtend}let C=null;!o&&r&&(C=yE(p,d.global)),__VUE_I18N_FULL_INSTALL__&&uE(p,d,...g),__VUE_I18N_LEGACY_API__&&o&&p.mixin(fE(a,a.__composer,d));const S=p.unmount;p.unmount=()=>{C&&C(),d.dispose(),S()}},get global(){return a},dispose(){l.stop()},__instances:i,__getInstance:c,__setInstance:u,__deleteInstance:f};return d}}function Sa(e={}){const t=Ao();if(t==null)throw ze($e.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ze($e.NOT_INSTALLED);const o=hE(t),r=CE(o),n=Od(t),i=gE(e,n);if(__VUE_I18N_LEGACY_API__&&o.mode==="legacy"&&!e.__useComponent){if(!o.allowComposition)throw ze($e.NOT_AVAILABLE_IN_LEGACY_MODE);return vE(t,i,r,e)}if(i==="global")return Md(r,e,n),r;if(i==="parent"){let s=bE(o,t,e.__useComponent);return s==null&&(s=r),s}const l=o;let a=l.__getInstance(t);if(a==null){const s=Ge({},e);"__i18n"in n&&(s.__i18n=n.__i18n),r&&(s.__root=r),a=_a(s),l.__composerExtend&&(a[kl]=l.__composerExtend(a)),_E(l,t,a),l.__setInstance(t,a)}return a}function mE(e,t,o){const r=Wl();{const n=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Hl(e)):r.run(()=>_a(e));if(n==null)throw ze($e.UNEXPECTED_ERROR);return[r,n]}}function hE(e){{const t=Ze(e.isCE?dE:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ze(e.isCE?$e.NOT_INSTALLED_WITH_PROVIDE:$e.UNEXPECTED_ERROR);return t}}function gE(e,t){return Ti(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function CE(e){return e.mode==="composition"?e.global:e.global.__composer}function bE(e,t,o=!1){let r=null;const n=t.root;let i=xE(t,o);for(;i!=null;){const l=e;if(e.mode==="composition")r=l.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=l.__getInstance(i);a!=null&&(r=a.__composer,o&&r&&!r[Fd]&&(r=null))}if(r!=null||n===i)break;i=i.parent}return r}function xE(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function _E(e,t,o){pi(()=>{},t),Ql(()=>{const r=o;e.__deleteInstance(t);const n=r[kl];n&&(n(),delete r[kl])},t)}function vE(e,t,o,r={}){const n=t==="local",i=Yl(null);if(n&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ze($e.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const l=pe(r.inheritLocale)?r.inheritLocale:!K(r.locale),a=mt(!n||l?o.locale.value:K(r.locale)?r.locale:_r),s=mt(!n||l?o.fallbackLocale.value:K(r.fallbackLocale)||Ae(r.fallbackLocale)||ae(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),c=mt(Ai(a.value,r)),u=mt(ae(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),f=mt(ae(r.numberFormats)?r.numberFormats:{[a.value]:{}}),d=n?o.missingWarn:pe(r.missingWarn)||Lo(r.missingWarn)?r.missingWarn:!0,p=n?o.fallbackWarn:pe(r.fallbackWarn)||Lo(r.fallbackWarn)?r.fallbackWarn:!0,g=n?o.fallbackRoot:pe(r.fallbackRoot)?r.fallbackRoot:!0,C=!!r.fallbackFormat,S=Pe(r.missing)?r.missing:null,E=Pe(r.postTranslation)?r.postTranslation:null,T=n?o.warnHtmlMessage:pe(r.warnHtmlMessage)?r.warnHtmlMessage:!0,v=!!r.escapeParameter,y=n?o.modifiers:ae(r.modifiers)?r.modifiers:{},w=r.pluralRules||n&&o.pluralRules;function L(){return[a.value,s.value,c.value,u.value,f.value]}const D=fe({get:()=>i.value?i.value.locale.value:a.value,set:x=>{i.value&&(i.value.locale.value=x),a.value=x}}),F=fe({get:()=>i.value?i.value.fallbackLocale.value:s.value,set:x=>{i.value&&(i.value.fallbackLocale.value=x),s.value=x}}),P=fe(()=>i.value?i.value.messages.value:c.value),U=fe(()=>u.value),X=fe(()=>f.value);function k(){return i.value?i.value.getPostTranslationHandler():E}function Q(x){i.value&&i.value.setPostTranslationHandler(x)}function me(){return i.value?i.value.getMissingHandler():S}function ye(x){i.value&&i.value.setMissingHandler(x)}function se(x){return L(),x()}function ne(...x){return i.value?se(()=>Reflect.apply(i.value.t,null,[...x])):se(()=>"")}function de(...x){return i.value?Reflect.apply(i.value.rt,null,[...x]):""}function tt(...x){return i.value?se(()=>Reflect.apply(i.value.d,null,[...x])):se(()=>"")}function ft(...x){return i.value?se(()=>Reflect.apply(i.value.n,null,[...x])):se(()=>"")}function Re(x){return i.value?i.value.tm(x):{}}function Fe(x,R){return i.value?i.value.te(x,R):!1}function Tt(x){return i.value?i.value.getLocaleMessage(x):{}}function ht(x,R){i.value&&(i.value.setLocaleMessage(x,R),c.value[x]=R)}function gt(x,R){i.value&&i.value.mergeLocaleMessage(x,R)}function We(x){return i.value?i.value.getDateTimeFormat(x):{}}function H(x,R){i.value&&(i.value.setDateTimeFormat(x,R),u.value[x]=R)}function Y(x,R){i.value&&i.value.mergeDateTimeFormat(x,R)}function G(x){return i.value?i.value.getNumberFormat(x):{}}function ee(x,R){i.value&&(i.value.setNumberFormat(x,R),f.value[x]=R)}function ue(x,R){i.value&&i.value.mergeNumberFormat(x,R)}const b={get id(){return i.value?i.value.id:-1},locale:D,fallbackLocale:F,messages:P,datetimeFormats:U,numberFormats:X,get inheritLocale(){return i.value?i.value.inheritLocale:l},set inheritLocale(x){i.value&&(i.value.inheritLocale=x)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:y},get pluralRules(){return i.value?i.value.pluralRules:w},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:d},set missingWarn(x){i.value&&(i.value.missingWarn=x)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(x){i.value&&(i.value.missingWarn=x)},get fallbackRoot(){return i.value?i.value.fallbackRoot:g},set fallbackRoot(x){i.value&&(i.value.fallbackRoot=x)},get fallbackFormat(){return i.value?i.value.fallbackFormat:C},set fallbackFormat(x){i.value&&(i.value.fallbackFormat=x)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:T},set warnHtmlMessage(x){i.value&&(i.value.warnHtmlMessage=x)},get escapeParameter(){return i.value?i.value.escapeParameter:v},set escapeParameter(x){i.value&&(i.value.escapeParameter=x)},t:ne,getPostTranslationHandler:k,setPostTranslationHandler:Q,getMissingHandler:me,setMissingHandler:ye,rt:de,d:tt,n:ft,tm:Re,te:Fe,getLocaleMessage:Tt,setLocaleMessage:ht,mergeLocaleMessage:gt,getDateTimeFormat:We,setDateTimeFormat:H,mergeDateTimeFormat:Y,getNumberFormat:G,setNumberFormat:ee,mergeNumberFormat:ue};function _(x){x.locale.value=a.value,x.fallbackLocale.value=s.value,Object.keys(c.value).forEach(R=>{x.mergeLocaleMessage(R,c.value[R])}),Object.keys(u.value).forEach(R=>{x.mergeDateTimeFormat(R,u.value[R])}),Object.keys(f.value).forEach(R=>{x.mergeNumberFormat(R,f.value[R])}),x.escapeParameter=v,x.fallbackFormat=C,x.fallbackRoot=g,x.fallbackWarn=p,x.missingWarn=d,x.warnHtmlMessage=T}return Jl(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ze($e.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const x=i.value=e.proxy.$i18n.__composer;t==="global"?(a.value=x.locale.value,s.value=x.fallbackLocale.value,c.value=x.messages.value,u.value=x.datetimeFormats.value,f.value=x.numberFormats.value):n&&_(x)}),b}const SE=["locale","fallbackLocale","availableLocales"],Ic=["t","rt","d","n","tm","te"];function yE(e,t){const o=Object.create(null);return SE.forEach(n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i)throw ze($e.UNEXPECTED_ERROR);const l=Le(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(o,n,l)}),e.config.globalProperties.$i18n=o,Ic.forEach(n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i||!i.value)throw ze($e.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,i)}),()=>{delete e.config.globalProperties.$i18n,Ic.forEach(n=>{delete e.config.globalProperties[`$${n}`]})}}Qy();__INTLIFY_JIT_COMPILATION__?lc(Gy):lc(jy);Ny(gy);ky(xd);if(__INTLIFY_PROD_DEVTOOLS__){const e=io();e.__INTLIFY__=!0,Ty(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const EE={app:{tagline:"文件快传",description:"开箱即用的文件快传系统"},nav:{home:"分享",docs:"API 文档",openapi:"OpenAPI",admin:"管理后台",homeTitle:"{name} — 首页",mainNav:"主导航"},theme:{label:"主题",light:"浅色",dark:"深色",system:"跟随系统"},lang:{label:"语言"},footer:{linkNav:"页脚链接",docs:"API 文档",openapi:"OpenAPI",admin:"管理后台",copyright:"© {year} {name}"},notify:{title:"系统通知",close:"知道了"},common:{loading:"加载中…",cancel:"取消",save:"保存",search:"搜索",refresh:"刷新",copy:"复制",copied:"已复制",copyFailed:"复制失败",close:"关闭",actions:"操作",all:"全部",query:"查询",reset:"重置",previousPage:"上一页",nextPage:"下一页",pagerInfo:"共 {total} 条 · 第 {page}/{pages} 页",text:"文本",file:"文件",success:"成功",failed:"失败",denied:"拒绝",none:"-"},time:{forever:"永久有效",permanent:"永久",expired:"已过期",lessThanMinute:"不足 1 分钟",minutes:"{n} 分钟",hoursMinutes:"{h} 小时 {m} 分",daysHours:"{d} 天 {h} 小时"},expireStyle:{day:"天",hour:"小时",minute:"分钟",count:"次数",forever:"永久"},home:{heroTitle:"{name} · 文件快传",heroDesc:"无需注册,文本文件一键分享,取件码即可领取",pickupPlaceholder:"输入取件码直接领取",pickupButton:"取 件",pickupRequired:"请输入取件码",tabText:"分享文本",tabFile:"分享文件",textContent:"文本内容",textPlaceholder:"粘贴要分享的文本、代码片段…",textBytes:"{bytes} / 222 KB(超出请改用文件分享)",textTooLong:"内容过多(超过 222KB),建议采用文件形式分享",textRequired:"请输入要分享的文本内容",customCode:"自定义提取码(可选)",customCodeHint:"留空随机生成;4-8 位字母或数字",customCodeInvalid:"提取码须为 4-8 位字母或数字",customCodeTaken:"该提取码已被占用,请换一个",generateCode:"生成取件码",fileRequired:"请选择要分享的文件",fileTooLarge:"文件大小超过限制(最大 {size})",chunkedUploading:"分片上传中",uploading:"上传中",uploadingDots:"上传中…",uploadAndShare:"上传并生成取件码",uploadDisabled:"管理员已关闭访客上传功能,如需分享请联系管理员",shareAnother:"再分享一个",textShared:"文本分享成功",fileShared:"文件分享成功",uploadCancelled:"上传已取消",shareFailed:"分享失败,请稍后重试",uploadFailed:"上传失败,请重试",rateLimited:"操作过于频繁,请稍后再试",notInitialized:"系统尚未初始化,请管理员先完成初始化配置"},result:{badge:"分享成功",code:"取件码",link:"取件链接",copyLink:"复制链接",copyLinkCode:"复制链接和提取码",copyCode:"复制取件码",codeCopied:"取件码已复制",linkCopied:"取件链接已复制",linkCodeCopied:"链接和提取码已复制",clickCopyCode:"点击复制提取码",expires:"有效期:{value}",forever:"永久",hint:"把取件码或链接发给对方,对方在首页输入取件码即可领取。",copyFailed:"复制失败,请手动选择复制"},pickup:{emptyCode:"取件码为空",querying:"正在查询取件码 {code} …",failed:"取件失败",failedDefault:"取件失败,请稍后重试",notFound:"取件码不存在或分享已过期",confirmHint:"请确认取件码是否正确,或联系分享人重新发送",retryPlaceholder:"输入其他取件码",retryButton:"重新取件",remainingUnlimited:"不限次数",remainingCount:"剩余 {n} 次",expireAt:"过期时间:{time}",loadingText:"正在获取内容…",copyContent:"复制内容",downloadTxt:"下载为 .txt",downloaded:"下载完成",downloadFailed:"下载失败,请重试",copied:"内容已复制",sizeUsed:"大小 {size} · 已被领取 {n} 次",downloading:"下载中 {percent}%",downloadFile:"下载文件({size})"},expire:{value:"数值",label:"有效期",foreverOption:"永久有效",countOption:"按次数",countHint:"分享在被领取指定次数后失效",timeHint:"有效期 {value} {unit}",foreverHint:"分享将一直有效,直到管理员删除",maxSecondsHint:"最长 {value}",maxCountHint:"最多 {n} 次"},drop:{aria:"选择或拖拽文件",zone:"点击选择或拖拽文件到此处",maxSize:"单文件最大 {size}",noLimit:"上传后自动生成取件码",remove:"移除",tooLarge:"文件大小 {size} 超过限制 {limit}",typeHint:"仅支持 {types}"},docs:{searchPlaceholder:"检索文档内容…",notGenerated:"文档尚未生成",buildHint:"构建时将从 docs/api/*.md 自动收录",noMatch:"没有匹配的章节",tocTitle:"本页目录",loading:"加载文档…",preparing:"API 文档筹备中",preparingHint:"文档源位于项目 docs/api/ 目录(每个 .md 一级标题作为章节名)。重新构建前端后,文档将内嵌到页面中离线可用。",emptyContent:"文档内容为空",loadFailed:"文档「{title}」加载失败",sidebar:"文档章节"},openapi:{title:"OpenAPI 3.0 接口规范",statusOk:"加载成功",statusError:"规范加载失败",statusLoading:"加载中…",source:"来源:{source}",sourceEmbedded:"构建内嵌 docs/openapi.yaml",notAvailable:"openapi.yaml 尚未生成或无法访问",notAvailableHint:"规范文件位于项目 docs/openapi.yaml。重新构建前端会将其内嵌;也可将文件部署到 {url} 供运行时加载。"},notFound:{title:"页面不存在",desc:"你访问的地址可能已变更",back:"回到首页"},admin:{login:{title:"管理员登录",subtitle:"{name} · 管理后台",password:"管理员密码",passwordPlaceholder:"请输入管理员密码",submit:"登 录",wrongPassword:"密码错误",failed:"登录失败,请稍后重试",required:"请输入管理员密码",hint:"密码由部署方在环境变量或系统设置中配置;连续输错会触发 IP 限流保护。"},nav:{title:"管理后台",files:"文件管理",audit:"审计日志",settings:"系统设置",logout:"退出登录",menu:"后台菜单",loggedOut:"已退出登录"},files:{title:"文件管理",totalRecords:"共 {total} 个分享记录",searchPlaceholder:"搜索取件码 / 文件名",batchDelete:"批量删除",batchDeleteWithCount:"批量删除({count})",deleteSelectedTitle:"删除选中的 {count} 项",selectFirst:"先勾选要删除的行",loading:"加载中…",empty:"暂无分享记录",loadFailed:"文件列表加载失败",colCode:"取件码",colName:"名称",colType:"类型",colSize:"大小",colUsed:"已领取",colRemaining:"剩余",colExpireAt:"过期时间",colStatus:"状态",colCreatedAt:"创建时间",remainingUnlimited:"不限",remainingCount:"{n} 次",statusValid:"有效",statusExpired:"已过期",copyCode:"复制码",copyLink:"复制链接",edit:"编辑",fetchText:"取内容",delete:"删除",confirmDelete:"确认删除分享「{name}」?该操作不可恢复。",confirmBatchDelete:"确认删除选中的 {count} 个分享?该操作不可恢复。",deleteSuccess:"删除成功",batchDeleteSuccess:"批量删除成功",deleteFailed:"删除失败",batchDeleteFailed:"批量删除失败",nothingChanged:"没有修改任何字段",updateSuccess:"更新成功",updateFailed:"更新失败",fetchTextFailed:"内容获取失败(分享可能已过期)",linkCopied:"取件链接已复制",codeCopied:"取件码已复制",editModalTitle:"编辑分享",expireAtHint:"过期时间(留空表示永久)",expireCountHint:"剩余可领取次数(-1 表示不限)"},audit:{title:"审计日志",subtitle:"记录上传 / 下载动作:时间、IP、UA、设备、结果、字节数与耗时",action:"动作",result:"结果",actionUpload:"上传",actionDownload:"下载",filterIp:"IP",filterStart:"开始时间",filterEnd:"结束时间",empty:"暂无审计记录(审计仅记录上传 / 下载动作)",loadFailed:"审计日志加载失败",colTime:"时间",colAction:"动作",colResult:"结果",colFile:"文件",colCode:"取件码",colBytes:"字节数",colIp:"IP",colDevice:"设备",colDuration:"耗时",colUaError:"UA / 错误"},settings:{title:"系统设置",subtitle:"站点名称与 Logo(自定义优先,留空恢复内置默认)",restoreDefaults:"恢复默认值",restoreDefaultsDone:"已填回默认值,点击保存生效",loading:"加载配置中…",loadFailed:"配置读取失败",sectionBasic:"基本",siteName:"站点名称 site_name",siteNameHint:"显示在导航栏、登录页与浏览器标题",siteDomain:"网站对外域名",siteDomainHint:"http(s)://域名[:端口],不带路径;留空则分享链接用当前访问地址",sectionLogo:"导航 Logo",logoUrl:"Logo 图片地址 logo_url",uploadImage:"上传图片",logoHint:"支持填写 URL 或上传本地图片(≤256KB,转存为内嵌数据);留空使用内置默认",imageTooLarge:"图片超过 256KB,请压缩后重试或直接填写图片 URL",imageLoaded:"图片已载入,点击保存后全站生效",imageReadFailed:"图片读取失败",navPreview:"导航栏实际效果:",sectionFavicon:"浏览器图标 Favicon",faviconUrl:"Favicon 地址 favicon_url",faviconHint:"建议使用 PNG/ICO 方形图标;留空使用内置默认",faviconPreviewHint:"浏览器标签页图标(保存后刷新页面生效)",saveAll:"保存设置(全站生效)",saved:"设置已保存,全站生效",saveFailed:"保存失败",sectionPassword:"修改管理员密码",passwordHint:"保存后所有已登录会话失效,需重新登录",oldPassword:"旧密码",newPassword:"新密码(至少 6 位)",confirmPassword:"确认新密码",pwdRequired:"请填写旧密码与新密码",pwdTooShort:"新密码至少 6 位",pwdMismatch:"两次输入的新密码不一致",pwdChanged:"密码已修改,请使用新密码重新登录",pwdChangeFailed:"修改失败",pwdWrong:"旧密码错误",sectionBackground:"背景图",backgroundUrl:"背景图地址 background_url",backgroundHint:"支持 http(s) 图片地址、data:image 图片或站内相对路径(≤2048 字符);留空使用主题默认",sectionFooter:"页脚",footerText:"页脚文案 footer_text",footerTextHint:"展示在页面底部,支持纯文本(≤2000 字符);留空显示默认标语",footerBeian:"备案号 footer_beian",footerBeianHint:"如 京ICP备2024xxxxxx号-1(≤128 字符)",sectionNotify:"系统通知",notifyEnabled:"启用右上角通知 notify_enabled",notifyTitle:"通知标题 notify_title",notifyTitleHint:"留空显示默认标题「系统通知」(≤128 字符)",notifyContent:"通知内容 notify_content",notifyContentHint:"支持 等受控 HTML(≤2000 字符)",sectionSavePolicy:"保存策略",maxSaveSeconds:"最长保存秒数 max_save_seconds",maxSaveSecondsHint:"0 = 不限制(服务端默认 7 天兜底),最大 {max} 秒(365 天)",maxSaveCount:"最大可取次数 max_save_count",maxSaveCountHint:"0 = 不限制,最大 {max} 次",sectionStorage:"存储策略",maxFileSize:"单文件上限 max_file_size(字节)",maxFileSizeHint:"0 = 回落 uploadSize(当前 {fallback}),最大 {max} 字节(10 GiB)",allowedFileTypes:"允许类型 allowed_file_types",allowedFileTypesHint:"逗号分隔:扩展名(jpg)或 MIME(image/*),* 不限制",sectionUploadRate:"上传频率限制",uploadCount:"窗口内允许上传次数 uploadCount",uploadCountHint:"最小 1,最大 {max}",uploadMinute:"频率窗口(分钟)uploadMinute",uploadMinuteHint:"最小 1,最大 {max}",uploadRate:"上行带宽(可选)",uploadRateHint:"0 = 不限速;单位 MB/s;范围 0~1024。修改后立即生效(管理端读最新 KV)",downloadRate:"下行带宽(可选)",downloadRateHint:"0 = 不限速;单位 MB/s;范围 0~1024。S3 预签名直传(客户端→S3)无法限速",unitHour:"小时",unitDay:"天",unitMB:"MB",unitGB:"GB",maxSaveTime:"最长保存时间 max_save_seconds",maxSaveTimeHint:"0 = 不限制(服务端默认 7 天兜底),最大 365 天",saveTimeUnlimited:"不限制(0)",maxFileSizeFriendly:"单文件上限 max_file_size",maxFileSizeHintV3:"0 = 回落 uploadSize(当前 {fallback}),最大 10 GB",sizeUnlimited:"不限制(0)",sectionEngine:"存储引擎",engineCurrent:"当前引擎",engineLocal:"本地存储",engineWebdav:"WebDAV",engineS3:"S3 对象存储",engineSwitch:"切换到该引擎",engineSwitching:"切换中…",engineSwitchOk:"存储引擎已切换为 {engine}",engineSwitchFail:"切换失败(已保持原引擎)",engineParamsTitle:"引擎参数",engineParamsSaved:"引擎参数已保存",localRoot:"存储根目录 local_storage_path",localRootHint:"留空 = 系统默认数据目录;修改后对新写入生效",webdavUrl:"服务地址 webdav_url",webdavUrlHint:"如 https://dav.example.com/dav/",webdavRoot:"远端根目录 webdav_root_path",webdavRootHint:"远端起始目录(不存在会自动逐级创建)",webdavUser:"用户名 webdav_username",webdavPass:"密码 webdav_password",secretKeepHint:"留空或 ****** = 不修改",s3Endpoint:"端点 s3_endpoint_url",s3EndpointHint:"如 https://s3.example.com:9000(AWS 官方可留空)",s3Bucket:"存储桶 s3_bucket_name",s3Region:"区域 s3_region_name",s3Ak:"AccessKeyID s3_access_key_id",s3Sk:"SecretAccessKey s3_secret_access_key",s3Token:"会话令牌 aws_session_token(可选)",s3Style:"寻址样式 s3_addressing_style",styleAuto:"auto(自动)",stylePath:"path(路径式,MinIO 常用)",styleVirtual:"virtual(虚拟主机式)",engineParamsSave:"保存引擎参数",approxSize:"≈ {size}"}}},TE={app:{tagline:"File Drop",description:"A ready-to-use file sharing service"},nav:{home:"Share",docs:"API Docs",openapi:"OpenAPI",admin:"Admin",homeTitle:"{name} — Home",mainNav:"Main navigation"},theme:{label:"Theme",light:"Light",dark:"Dark",system:"System"},lang:{label:"Language"},footer:{linkNav:"Footer links",docs:"API Docs",openapi:"OpenAPI",admin:"Admin",copyright:"© {year} {name}"},notify:{title:"System Notice",close:"Got it"},common:{loading:"Loading…",cancel:"Cancel",save:"Save",search:"Search",refresh:"Refresh",copy:"Copy",copied:"Copied",copyFailed:"Copy failed",close:"Close",actions:"Actions",all:"All",query:"Query",reset:"Reset",previousPage:"Previous",nextPage:"Next",pagerInfo:"{total} records · page {page}/{pages}",text:"Text",file:"File",success:"Success",failed:"Failed",denied:"Denied",none:"-"},time:{forever:"Never expires",permanent:"Permanent",expired:"Expired",lessThanMinute:"less than a minute",minutes:"{n} min",hoursMinutes:"{h} h {m} min",daysHours:"{d} d {h} h"},expireStyle:{day:"Days",hour:"Hours",minute:"Minutes",count:"Times",forever:"Forever"},home:{heroTitle:"{name} · File Drop",heroDesc:"No signup — share text or files and hand over a pickup code",pickupPlaceholder:"Enter a pickup code",pickupButton:"Pick up",pickupRequired:"Please enter a pickup code",tabText:"Share text",tabFile:"Share file",textContent:"Text content",textPlaceholder:"Paste the text or code snippet to share…",textBytes:"{bytes} / 222 KB (use file sharing for larger content)",textTooLong:"Content too long (over 222KB) — please share it as a file instead",textRequired:"Enter the text to share",customCode:"Custom pickup code (optional)",customCodeHint:"Leave empty for random; 4-8 letters/digits",customCodeInvalid:"Pickup code must be 4-8 letters or digits",customCodeTaken:"This pickup code is already taken",generateCode:"Generate code",fileRequired:"Please choose a file to share",fileTooLarge:"File exceeds the size limit (max {size})",chunkedUploading:"Chunked upload",uploading:"Uploading",uploadingDots:"Uploading…",uploadAndShare:"Upload & generate code",uploadDisabled:"Guest uploads are disabled. Please contact the administrator if you need to share.",shareAnother:"Share another one",textShared:"Text shared",fileShared:"File shared",uploadCancelled:"Upload cancelled",shareFailed:"Share failed, please try again later",uploadFailed:"Upload failed, please retry",rateLimited:"Too many requests, please slow down",notInitialized:"System is not initialized yet. An administrator must finish the setup first."},result:{badge:"Shared",code:"Pickup code",link:"Pickup link",copyLink:"Copy link",copyLinkCode:"Copy link & code",copyCode:"Copy code",codeCopied:"Pickup code copied",linkCopied:"Pickup link copied",linkCodeCopied:"Link and code copied",clickCopyCode:"Click to copy pickup code",expires:"Expires in: {value}",forever:"Forever",hint:"Send the code or link to the recipient; they can pick it up from the home page.",copyFailed:"Copy failed — please select the text manually"},pickup:{emptyCode:"Pickup code is empty",querying:"Looking up code {code} …",failed:"Pickup failed",failedDefault:"Pickup failed, please try again later",notFound:"Code not found or the share has expired",confirmHint:"Double-check the code, or ask the sender to share it again",retryPlaceholder:"Enter another pickup code",retryButton:"Try again",remainingUnlimited:"Unlimited",remainingCount:"{n} left",expireAt:"Expires: {time}",loadingText:"Fetching content…",copyContent:"Copy content",downloadTxt:"Download as .txt",downloaded:"Download complete",downloadFailed:"Download failed, please retry",copied:"Content copied",sizeUsed:"Size {size} · picked up {n} times",downloading:"Downloading {percent}%",downloadFile:"Download ({size})"},expire:{value:"Amount",label:"Expires in",foreverOption:"Never expires",countOption:"After N pickups",countHint:"The share becomes invalid after the given number of pickups",timeHint:"Valid for {value} {unit}",foreverHint:"The share stays valid until an administrator deletes it",maxSecondsHint:"At most {value}",maxCountHint:"At most {n} pickups"},drop:{aria:"Choose or drop a file",zone:"Click to choose or drop a file here",maxSize:"Max {size} per file",noLimit:"A pickup code is generated after upload",remove:"Remove",tooLarge:"File size {size} exceeds the limit {limit}",typeHint:"Allowed types: {types}"},docs:{searchPlaceholder:"Search documentation…",notGenerated:"Docs not generated yet",buildHint:"They are collected from docs/api/*.md at build time",noMatch:"No matching sections",tocTitle:"On this page",loading:"Loading document…",preparing:"API docs are on the way",preparingHint:"Sources live in the project docs/api/ directory (each .md is one section). Rebuild the frontend to embed them for offline use.",emptyContent:"Document is empty",loadFailed:'Failed to load document "{title}"',sidebar:"Documentation sections"},openapi:{title:"OpenAPI 3.0 Specification",statusOk:"Loaded",statusError:"Failed to load spec",statusLoading:"Loading…",source:"Source: {source}",sourceEmbedded:"Embedded docs/openapi.yaml at build time",notAvailable:"openapi.yaml is not generated or cannot be accessed",notAvailableHint:"The spec file lives in the project docs/openapi.yaml. Rebuilding the frontend embeds it; you can also deploy it to {url} for runtime loading."},notFound:{title:"Page not found",desc:"The address may have changed",back:"Back home"},admin:{login:{title:"Administrator Sign-in",subtitle:"{name} · Admin Console",password:"Admin password",passwordPlaceholder:"Enter the admin password",submit:"Sign in",wrongPassword:"Incorrect password",failed:"Sign-in failed, please try again later",required:"Please enter the admin password",hint:"The password is configured by the deployer via env vars or system settings; repeated failures trigger IP rate limiting."},nav:{title:"Admin",files:"Files",audit:"Audit Log",settings:"Settings",logout:"Sign out",menu:"Admin menu",loggedOut:"Signed out"},files:{title:"File Management",totalRecords:"{total} shares in total",searchPlaceholder:"Search code / file name",batchDelete:"Delete selected",batchDeleteWithCount:"Delete selected ({count})",deleteSelectedTitle:"Delete {count} selected items",selectFirst:"Select rows first",loading:"Loading…",empty:"No shares yet",loadFailed:"Failed to load the file list",colCode:"Code",colName:"Name",colType:"Type",colSize:"Size",colUsed:"Picked",colRemaining:"Remaining",colExpireAt:"Expires",colStatus:"Status",colCreatedAt:"Created",remainingUnlimited:"∞",remainingCount:"{n} left",statusValid:"Active",statusExpired:"Expired",copyCode:"Copy code",copyLink:"Copy link",edit:"Edit",fetchText:"Fetch text",delete:"Delete",confirmDelete:'Delete "{name}"? This cannot be undone.',confirmBatchDelete:"Delete {count} selected shares? This cannot be undone.",deleteSuccess:"Deleted",batchDeleteSuccess:"Batch deleted",deleteFailed:"Delete failed",batchDeleteFailed:"Batch delete failed",nothingChanged:"Nothing changed",updateSuccess:"Updated",updateFailed:"Update failed",fetchTextFailed:"Failed to fetch content (the share may have expired)",linkCopied:"Pickup link copied",codeCopied:"Pickup code copied",editModalTitle:"Edit share",expireAtHint:"Expires at (leave empty for never)",expireCountHint:"Remaining pickups (-1 for unlimited)"},audit:{title:"Audit Log",subtitle:"Upload / download events: time, IP, UA, device, result, bytes and duration",action:"Action",result:"Result",actionUpload:"Upload",actionDownload:"Download",filterIp:"IP",filterStart:"Start time",filterEnd:"End time",empty:"No audit records yet (only upload / download actions are recorded)",loadFailed:"Failed to load the audit log",colTime:"Time",colAction:"Action",colResult:"Result",colFile:"File",colCode:"Code",colBytes:"Bytes",colIp:"IP",colDevice:"Device",colDuration:"Duration",colUaError:"UA / Error"},settings:{title:"System Settings",subtitle:"Site name and branding (custom values win; leave empty to restore built-in defaults)",restoreDefaults:"Restore defaults",restoreDefaultsDone:"Defaults filled in — click save to apply",loading:"Loading settings…",loadFailed:"Failed to load settings",sectionBasic:"Basic",siteName:"Site name · site_name",siteNameHint:"Shown in the nav bar, login page and browser title",siteDomain:"Public site domain",siteDomainHint:"http(s)://host[:port], no path; leave empty to use the current address in share links",sectionLogo:"Nav logo",logoUrl:"Logo image URL · logo_url",uploadImage:"Upload image",logoHint:"Enter a URL or upload a local image (≤256KB, stored inline); leave empty for the built-in default",imageTooLarge:"Image exceeds 256KB — compress it or paste an image URL instead",imageLoaded:"Image loaded — click save to apply site-wide",imageReadFailed:"Failed to read the image",navPreview:"Nav bar preview:",sectionFavicon:"Browser favicon",faviconUrl:"Favicon URL · favicon_url",faviconHint:"Use a square PNG/ICO; leave empty for the built-in default",faviconPreviewHint:"Browser tab icon (applied after saving and refreshing)",saveAll:"Save settings (applies site-wide)",saved:"Settings saved site-wide",saveFailed:"Save failed",sectionPassword:"Change admin password",passwordHint:"After saving, all signed-in sessions are invalidated and you must sign in again",oldPassword:"Old password",newPassword:"New password (at least 6 characters)",confirmPassword:"Confirm new password",pwdRequired:"Please fill in the old and new passwords",pwdTooShort:"The new password must be at least 6 characters",pwdMismatch:"The two passwords do not match",pwdChanged:"Password changed — please sign in again with the new password",pwdChangeFailed:"Change failed",pwdWrong:"Old password is incorrect",sectionBackground:"Background image",backgroundUrl:"Background URL · background_url",backgroundHint:"http(s) image URL, data:image image or site-relative path (≤2048 chars); leave empty for the theme default",sectionFooter:"Footer",footerText:"Footer text · footer_text",footerTextHint:"Shown at the page bottom as plain text (≤2000 chars); leave empty for the default tagline",footerBeian:"ICP filing number · footer_beian",footerBeianHint:"e.g. 京ICP备2024xxxxxx号-1 (≤128 chars)",sectionNotify:"System notice",notifyEnabled:"Show floating notice · notify_enabled",notifyTitle:"Notice title · notify_title",notifyTitleHint:'Leave empty for the default title "System Notice" (≤128 chars)',notifyContent:"Notice content · notify_content",notifyContentHint:"Controlled HTML such as is allowed (≤2000 chars)",sectionSavePolicy:"Save policy",maxSaveSeconds:"Max save seconds · max_save_seconds",maxSaveSecondsHint:"0 = unlimited (server default 7-day fallback), max {max} seconds (365 days)",maxSaveCount:"Max pickup count · max_save_count",maxSaveCountHint:"0 = unlimited, max {max}",sectionStorage:"Storage policy",maxFileSize:"Max file size · max_file_size (bytes)",maxFileSizeHint:"0 = fall back to uploadSize (currently {fallback}), max {max} bytes (10 GiB)",allowedFileTypes:"Allowed types · allowed_file_types",allowedFileTypesHint:"Comma separated: extensions (jpg) or MIME (image/*); * means no limit",sectionUploadRate:"Upload rate limit",uploadCount:"Uploads per window · uploadCount",uploadCountHint:"Min 1, max {max}",uploadMinute:"Window length (minutes) · uploadMinute",uploadMinuteHint:"Min 1, max {max}",uploadRate:"Upload bandwidth (optional)",uploadRateHint:"0 = unlimited; MB/s; range 0~1024. Live-effective (admin reads latest KV each request)",downloadRate:"Download bandwidth (optional)",downloadRateHint:"0 = unlimited; MB/s; range 0~1024. S3 presigned direct upload cannot be throttled server-side",unitHour:"Hour(s)",unitDay:"Day(s)",unitMB:"MB",unitGB:"GB",maxSaveTime:"Max save time · max_save_seconds",maxSaveTimeHint:"0 = unlimited (server default 7-day fallback), max 365 days",saveTimeUnlimited:"Unlimited (0)",maxFileSizeFriendly:"Max file size · max_file_size",maxFileSizeHintV3:"0 = fall back to uploadSize (current {fallback}), max 10 GB",sizeUnlimited:"Unlimited (0)",sectionEngine:"Storage engine",engineCurrent:"Current engine",engineLocal:"Local storage",engineWebdav:"WebDAV",engineS3:"S3 object storage",engineSwitch:"Switch to this engine",engineSwitching:"Switching…",engineSwitchOk:"Storage engine switched to {engine}",engineSwitchFail:"Switch failed (previous engine kept)",engineParamsTitle:"Engine parameters",engineParamsSaved:"Engine parameters saved",localRoot:"Storage root · local_storage_path",localRootHint:"Empty = system default data directory; applies to new writes",webdavUrl:"Server URL · webdav_url",webdavUrlHint:"e.g. https://dav.example.com/dav/",webdavRoot:"Remote root · webdav_root_path",webdavRootHint:"Remote base directory (created recursively if missing)",webdavUser:"Username · webdav_username",webdavPass:"Password · webdav_password",secretKeepHint:"Empty or ****** = keep unchanged",s3Endpoint:"Endpoint · s3_endpoint_url",s3EndpointHint:"e.g. https://s3.example.com:9000 (leave empty for AWS)",s3Bucket:"Bucket · s3_bucket_name",s3Region:"Region · s3_region_name",s3Ak:"AccessKeyID · s3_access_key_id",s3Sk:"SecretAccessKey · s3_secret_access_key",s3Token:"Session token · aws_session_token (optional)",s3Style:"Addressing style · s3_addressing_style",styleAuto:"auto",stylePath:"path (typical for MinIO)",styleVirtual:"virtual-hosted",engineParamsSave:"Save engine parameters",approxSize:"≈ {size}"}}},Hd="fcb_locale";function PE(){try{const e=localStorage.getItem(Hd);return e==="zh-CN"||e==="en-US"?e:null}catch{return null}}function IE(){const e=PE();return e||(((typeof navigator<"u"?navigator.language:"en")??"en").toLowerCase().startsWith("zh")?"zh-CN":"en-US")}function AE(e){try{localStorage.setItem(Hd,e)}catch{}}const Ir=pE({legacy:!1,locale:IE(),fallbackLocale:"zh-CN",messages:{"zh-CN":EE,"en-US":TE},missingWarn:!1,fallbackWarn:!1});function Ac(){return Ir.global.locale.value??"zh-CN"}function wT(e){Ir.global.locale.value=e,document.documentElement.lang=e,AE(e)}Ir.global.t;function vo(e,t){return Ir.global.t(e,t??{})}function LT(e){if(e==null||Number.isNaN(e))return"-";if(e<1024)return`${e} B`;const t=["KB","MB","GB","TB"];let o=e,r=-1;do o/=1024,r++;while(o>=1024&&r=100?0:1)} ${t[r]}`}function DT(e){if(!e)return"-";const t=new Date(e);if(Number.isNaN(t.getTime()))return String(e);const o=r=>`${r}`.padStart(2,"0");return`${t.getFullYear()}-${o(t.getMonth()+1)}-${o(t.getDate())} ${o(t.getHours())}:${o(t.getMinutes())}:${o(t.getSeconds())}`}function RT(e){if(!e)return vo("time.forever");const t=new Date(e).getTime();if(Number.isNaN(t))return vo("time.forever");const o=t-Date.now();if(o<=0)return vo("time.expired");const r=Math.floor(o/6e4);if(r<1)return vo("time.lessThanMinute");if(r<60)return vo("time.minutes",{n:r});const n=Math.floor(r/60);if(n<24)return vo("time.hoursMinutes",{h:n,m:r%60});const i=Math.floor(n/24);return vo("time.daysHours",{d:i,h:n%24})}function FT(e){return e==null?"-":e<1e3?`${e} ms`:`${(e/1e3).toFixed(2)} s`}const wE=[{value:"day",label:"day"},{value:"hour",label:"hour"},{value:"minute",label:"minute"},{value:"count",label:"count"},{value:"forever",label:"forever"}];function OT(e){const t=wE.find(o=>o.value===e);return t?vo(`expireStyle.${t.value}`):e}function MT(e){if(!e)return null;const t=/filename\*=(?:UTF-8'')?([^;]+)/i.exec(e);if(t)try{return decodeURIComponent(t[1].replace(/["']/g,"").trim())}catch{}const o=/filename="?([^";]+)"?/i.exec(e);return o?o[1]:null}function NT(e,t){const o=URL.createObjectURL(e),r=document.createElement("a");r.href=o,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(o),5e3)}async function kT(e){try{return await navigator.clipboard.writeText(e),!0}catch{try{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const o=document.execCommand("copy");return t.remove(),o}catch{return!1}}}async function HT(e){const t=await crypto.subtle.digest("SHA-256",e);return Array.from(new Uint8Array(t)).map(o=>o.toString(16).padStart(2,"0")).join("")}function De(e,t){for(const o of t)if(e&&typeof e=="object"&&o in e&&e[o]!==void 0&&e[o]!==null)return e[o]}const LE="/assets/logo-CBe6oOaL.svg",DE="/assets/favicon-Dl6ZLL7S.png",RE=LE,FE=DE,tl="文件快传";function ol(e,t=!0){return e==null?t:typeof e=="boolean"?e:typeof e=="number"?e!==0:String(e)!=="0"&&String(e)!=="false"&&String(e)!==""}function wc(e){return Array.isArray(e)?e.map(t=>String(t).trim()).filter(Boolean):typeof e=="string"?e.split(",").map(t=>t.trim()).filter(Boolean):[]}function ar(e,t){const o=Number(e);return Number.isFinite(o)?o:t}const OE=Xu("config",{state:()=>({loaded:!1,loading:!1,siteName:tl,siteDomain:"",description:"",explain:"",uploadSize:10*1024*1024,allowedFileTypes:[],expireStyle:["day","hour","minute","forever","count"],enableChunk:!1,openUpload:!0,notifyEnabled:!1,notifyTitle:"",notifyContent:"",logoUrl:"",faviconUrl:"",backgroundUrl:"",footerText:"",footerBeian:"",maxFileSize:0,maxSaveSeconds:0,maxSaveCount:0,uploadCount:0,uploadMinute:0}),getters:{displayLogoUrl:e=>e.logoUrl?.trim()?e.logoUrl:RE,displayFaviconUrl:e=>e.faviconUrl?.trim()?e.faviconUrl:FE,displayName:e=>e.siteName?.trim()?e.siteName:tl,shareLinkBase:e=>e.siteDomain?.trim()?e.siteDomain.trim().replace(/\/$/,""):location.origin,effectiveMaxFileSize(){return this.maxFileSize>0?this.maxFileSize:this.uploadSize}},actions:{async load(){this.loading=!0;try{const e=await gS(ed.publicConfig,{timeout:8e3}),t=De(e,["config"])??e;this.siteName=String(De(t,["name","site_name","siteName"])??tl),this.siteDomain=String(De(t,["site_domain","siteDomain"])??"").trim(),this.description=String(De(t,["description"])??""),this.explain=String(De(t,["explain","page_explain"])??""),this.uploadSize=ar(De(t,["uploadSize","upload_size"]),10*1024*1024),this.allowedFileTypes=wc(De(t,["allowedFileTypes","allowed_file_types"]));const o=wc(De(t,["expireStyle","expire_style"]));o.length&&(this.expireStyle=o),this.enableChunk=ol(De(t,["enableChunk","enable_chunk"]),!1),this.openUpload=ol(De(t,["openUpload","open_upload"]),!0),this.notifyTitle=String(De(t,["notify_title","notifyTitle"])??""),this.notifyContent=String(De(t,["notify_content","notifyContent"])??""),this.notifyEnabled=ol(De(t,["notify_enabled","notifyEnabled"]),!1),this.backgroundUrl=String(De(t,["background_url","backgroundUrl"])??"").trim(),this.footerText=String(De(t,["footer_text","footerText"])??""),this.footerBeian=String(De(t,["footer_beian","footerBeian"])??""),this.maxFileSize=ar(De(t,["max_file_size","maxFileSize","maxFileSize"]),0),this.maxSaveSeconds=ar(De(t,["max_save_seconds","maxSaveSeconds"]),0),this.maxSaveCount=ar(De(t,["max_save_count","maxSaveCount"]),0),this.uploadCount=ar(De(t,["uploadCount","upload_count"]),0),this.uploadMinute=ar(De(t,["uploadMinute","upload_minute"]),0),this.logoUrl=String(De(t,["logo_url","logoUrl"])??"").trim(),this.faviconUrl=String(De(t,["favicon_url","faviconUrl"])??"").trim(),this.loaded=!0,this.applyToDocument()}catch{}finally{this.loading=!1}},applyToDocument(){let e=document.querySelector('link[rel="icon"]');e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=this.displayFaviconUrl}}}),$T=["light","dark","system"],$d="fcb_theme_mode";function ME(){try{const e=localStorage.getItem($d);return e==="light"||e==="dark"||e==="system"?e:null}catch{return null}}function NE(e){try{localStorage.setItem($d,e)}catch{}}function Bd(){return typeof matchMedia=="function"&&matchMedia("(prefers-color-scheme: dark)").matches}const Do=mt(ME()??"system"),qn=mt(Do.value==="system"?Bd()?"dark":"light":Do.value);let Lc=!1;function kE(){if(Lc||typeof matchMedia!="function")return;Lc=!0;const e=matchMedia("(prefers-color-scheme: dark)");e.addEventListener?.("change",()=>{Do.value==="system"&&(qn.value=e.matches?"dark":"light")})}function HE(){kE(),qn.value=Do.value==="system"?Bd()?"dark":"light":Do.value,document.documentElement.dataset.theme=qn.value}St(Do,HE,{immediate:!0});function $E(e){Do.value=e,NE(e)}function BE(){return{mode:Do,resolved:qn,setMode:$E}}let WE=0;const zE=Xu("toast",{state:()=>({items:[]}),actions:{push(e,t="info",o=3200){const r=++WE;this.items.push({id:r,type:t,text:e}),this.items.length>4&&this.items.shift(),setTimeout(()=>this.dismiss(r),o)},success(e){this.push(e,"success")},error(e){this.push(e,"error",4200)},info(e){this.push(e,"info")},dismiss(e){this.items=this.items.filter(t=>t.id!==e)}}}),UE={class:"toast-host","aria-live":"polite"},VE=["onClick"],jE={class:"toast-icon","aria-hidden":"true"},GE=po({__name:"ToastHost",setup(e){const t=zE();return(o,r)=>(Ft(),hr("div",UE,[(Ft(!0),hr(qe,null,tm(bt(t).items,n=>(Ft(),hr("div",{key:n.id,class:ii(["toast",`toast-${n.type}`]),role:"status",onClick:i=>bt(t).dismiss(n.id)},[Rt("span",jE,Dn(n.type==="success"?"✅":n.type==="error"?"⚠️":"ℹ️"),1),Rt("span",null,Dn(n.text),1)],10,VE))),128))]))}}),KE=["aria-label"],YE={class:"notify-head"},qE={class:"notify-title-text"},XE=["title","aria-label"],JE=["innerHTML"],QE=po({__name:"NotifyPop",props:{title:{},content:{}},emits:["close"],setup(e,{emit:t}){const o=t;return(r,n)=>(Ft(),hr("aside",{class:"notify-pop",role:"dialog","aria-live":"polite","aria-label":e.title||r.$t("notify.title")},[Rt("div",YE,[n[1]||(n[1]=Rt("span",{"aria-hidden":"true"},"🔔",-1)),Rt("span",qE,Dn(e.title||r.$t("notify.title")),1),Rt("button",{class:"notify-close",type:"button",title:r.$t("notify.close"),"aria-label":r.$t("notify.close"),onClick:n[0]||(n[0]=i=>o("close"))}," ✕ ",8,XE)]),Rt("div",{class:"notify-content",innerHTML:e.content},null,8,JE)],8,KE))}}),Wd=(e,t)=>{const o=e.__vccOpts||e;for(const[r,n]of t)o[r]=n;return o},ZE=Wd(QE,[["__scopeId","data-v-6154d8f4"]]),eT={class:"app-root"},tT={key:1,class:"app-bg-tint","aria-hidden":"true"},Dc="fcb_notify_read",oT=po({__name:"App",setup(e){const t=OE(),o=kg(),{resolved:r}=BE();St(Ac,d=>{document.documentElement.lang=d},{immediate:!0}),St([()=>o.fullPath,Ac,()=>t.displayName],()=>{const d=o.meta.titleKey,p=typeof d=="string"?Ir.global.t(d):t.displayName;document.title=`${p} · ${t.displayName}`},{immediate:!0});const n=fe(()=>r.value==="dark"?uS:null),i=fe(()=>r.value==="dark"?{common:{primaryColor:"#7d95ff",primaryColorHover:"#98abff",primaryColorPressed:"#6c86f5",primaryColorSuppl:"#98abff"}}:{common:{primaryColor:"#4f6ef7",primaryColorHover:"#3d5bf0",primaryColorPressed:"#4359e0",primaryColorSuppl:"#3d5bf0"}}),l=fe(()=>!!t.backgroundUrl.trim()),a=mt(!1),s=mt(!1);function c(){return`${t.notifyEnabled}|${t.notifyTitle}|${t.notifyContent}`}function u(){try{s.value=localStorage.getItem(Dc)===c()}catch{s.value=!1}}function f(){a.value=!1,s.value=!0;try{localStorage.setItem(Dc,c())}catch{}}return St(()=>[t.loaded,c()],()=>{const d=s.value;u(),!(!d&&s.value)&&t.loaded&&t.notifyEnabled&&t.notifyContent.trim()&&!s.value&&(a.value=!0)}),pi(()=>{t.load(),u(),t.loaded&&t.notifyEnabled&&t.notifyContent.trim()&&!s.value&&(a.value=!0)}),(d,p)=>{const g=Qp("RouterView");return Ft(),Zr(bt(q_),{theme:n.value,"theme-overrides":i.value,"inline-theme-disabled":""},{default:du(()=>[Rt("div",eT,[p[0]||(p[0]=Rt("div",{class:"app-ambient","aria-hidden":"true"},null,-1)),l.value?(Ft(),hr("div",{key:0,class:"app-bg","aria-hidden":"true",style:ni({backgroundImage:`url(${bt(t).backgroundUrl})`})},null,4)):wn("",!0),l.value?(Ft(),hr("div",tT)):wn("",!0),a.value?(Ft(),Zr(ZE,{key:2,title:bt(t).notifyTitle,content:bt(t).notifyContent,onClose:f},null,8,["title","content"])):wn("",!0),je(GE),je(g)])]),_:1},8,["theme","theme-overrides"])}}}),rT=Wd(oT,[["__scopeId","data-v-b2dd3b97"]]),nT="modulepreload",iT=function(e){return"/"+e},Rc={},Dt=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(c=>{if(c=iT(c),c in Rc)return;Rc[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":nT,u||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((p,g)=>{d.addEventListener("load",p),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},lT=mg(),Xn=Ng({history:lT,routes:[{path:"/",name:"home",component:()=>Dt(()=>import("./HomeView-DtwmVvt0.js"),__vite__mapDeps([0,1,2,3,4,5])),meta:{titleKey:"nav.home"}},{path:"/s/:code",name:"pickup",component:()=>Dt(()=>import("./PickupView-DgVraLBF.js"),__vite__mapDeps([6,1,2,3,4])),meta:{titleKey:"nav.home"}},{path:"/admin/login",name:"admin-login",component:()=>Dt(()=>import("./LoginView-CKYOzlGK.js"),__vite__mapDeps([7,1,2,3,8,9,10])),meta:{titleKey:"admin.nav.title"}},{path:"/admin",component:()=>Dt(()=>import("./AdminLayout-BtGxBJPS.js"),__vite__mapDeps([11,2,8,9])),meta:{requiresAuth:!0,titleKey:"admin.nav.title"},children:[{path:"",redirect:{name:"admin-files"}},{path:"files",name:"admin-files",component:()=>Dt(()=>import("./FilesView-bV8HZoYp.js"),__vite__mapDeps([12,9,4,13])),meta:{titleKey:"admin.nav.files"}},{path:"audit",name:"admin-audit",component:()=>Dt(()=>import("./AuditView-QQ5no24L.js"),__vite__mapDeps([14,9,13,15])),meta:{titleKey:"admin.nav.audit"}},{path:"settings",name:"admin-settings",component:()=>Dt(()=>import("./SettingsView-fRnqP1Pf.js"),__vite__mapDeps([16,9,8,17])),meta:{titleKey:"admin.nav.settings"}}]},{path:"/docs",name:"docs",component:()=>Dt(()=>import("./DocsView-C0zns43R.js"),__vite__mapDeps([18,1,2,3,19,20])),meta:{titleKey:"nav.docs"}},{path:"/docs/:slug",name:"docs-detail",component:()=>Dt(()=>import("./DocsView-C0zns43R.js"),__vite__mapDeps([18,1,2,3,19,20])),meta:{titleKey:"nav.docs"}},{path:"/openapi",name:"openapi",component:()=>Dt(()=>import("./OpenApiView-DRBb-4nZ.js"),__vite__mapDeps([21,1,2,3,22,19,23])),meta:{titleKey:"nav.openapi"}},{path:"/:pathMatch(.*)*",name:"not-found",component:()=>Dt(()=>import("./NotFoundView-BHkq8CY8.js"),__vite__mapDeps([24,1,2,3])),meta:{titleKey:"notFound.title"}}],scrollBehavior(e,t,o){return o||(e.hash?{el:e.hash,behavior:"smooth"}:{top:0})}});Xn.beforeEach(e=>{if(e.meta.requiresAuth&&!localStorage.getItem("fcb_admin_token"))return{name:"admin-login",query:{redirect:e.fullPath}}});hS(()=>{const e=Xn.currentRoute.value;e.name!=="admin-login"&&Xn.push({name:"admin-login",query:{redirect:e.fullPath}})});const wi=Sh(rT);wi.use(Th());wi.use(Ir);wi.use(Xn);wi.mount("#app");export{FT as $,du as A,CT as B,sT as C,pT as D,wE as E,qe as F,je as G,st as H,pi as I,St as J,DT as K,RT as L,NT as M,kg as N,Qp as O,Su as P,fT as Q,fn as R,De as S,uT as T,IT as U,Zf as V,td as W,MT as X,AT as Y,mT as Z,Wd as _,OE as a,Ze as a0,Yl as a1,Il as a2,Bx as a3,Jl as a4,Vs as a5,Mx as a6,en as a7,Je as a8,pn as a9,Ac as aA,wT as aB,BE as aC,PT as aD,Io as aa,ET as ab,cT as ac,Sl as ad,Ds as ae,ll as af,TT as ag,Wr as ah,dT as ai,ua as aj,xT as ak,_T as al,aT as am,n_ as an,C0 as ao,J as ap,vT as aq,ST as ar,c_ as as,yT as at,Dm as au,Xu as av,od as aw,mS as ax,Dt as ay,$T as az,Rt as b,hr as c,po as d,ii as e,bt as f,wn as g,fe as h,zE as i,mt as j,kT as k,OT as l,gT as m,ni as n,Ft as o,dS as p,Lm as q,tm as r,LT as s,Dn as t,Sa as u,gS as v,hT as w,ed as x,HT as y,Zr as z}; diff --git a/server/web/dist/assets/share-DQTp5ax3.js b/server/web/dist/assets/share-DQTp5ax3.js new file mode 100644 index 0000000..4599bf4 --- /dev/null +++ b/server/web/dist/assets/share-DQTp5ax3.js @@ -0,0 +1 @@ +import{v as x,S as s,U as m,V as g,x as u,W as w,H as i,X as f,Y as h}from"./index-DSPQyv0Z.js";function T(n,t,r,a=""){return x(u.shareText,{method:"POST",form:{text:n,expire_value:String(t),expire_style:r,code:a}})}function y(n,t,r,a,o=""){const e=new FormData;return e.append("file",n),e.append("expire_value",String(t)),e.append("expire_style",r),o&&e.append("code",o),h(u.shareFile,e,a)}async function S(n){const t=await x(u.shareMetadata,{query:{code:n}}),r=!!(s(t,["is_text","isText"])??s(t,["type"])==="text");return{code:String(s(t,["code"])??n),name:String(s(t,["name"])??"未命名"),size:Number(s(t,["size"])??0),type:r?"text":"file",isText:r,createdAt:s(t,["created_at","createdAt"])??null,expiredAt:s(t,["expired_at","expires_at","expiredAt","expiresAt"])??null,expiredCount:s(t,["expired_count","expiredCount","remaining_downloads","remainingDownloads"])??null,usedCount:Number(s(t,["used_count","usedCount"])??0),remainingDownloads:s(t,["remaining_downloads","remainingDownloads","expired_count","expiredCount"])??null}}async function b(n){const{blob:t}=await m(u.shareSelect,{query:{code:n}});return t.text()}function A(n,t){return new Promise((r,a)=>{const o=new URL(g(u.shareSelect),location.origin);o.searchParams.set("code",n);const e=new XMLHttpRequest;e.open("GET",o.toString()),e.timeout=6e5,e.responseType="blob";const l=w();l&&e.setRequestHeader("Authorization",`Bearer ${l}`),e.onprogress=p=>{p.lengthComputable&&t&&t(Math.round(p.loaded/p.total*100))},e.onload=()=>{if((e.getResponseHeader("content-type")??"").includes("application/json")){const d=new FileReader;d.onload=()=>{try{const c=JSON.parse(String(d.result));a(new i(c.code??e.status,c.msg||"取件失败",e.status))}catch{a(new i(e.status,"取件失败",e.status))}},d.readAsText(e.response);return}e.status>=200&&e.status<300?r({blob:e.response,filename:f(e.getResponseHeader("content-disposition"))}):a(new i(e.status,`取件失败(HTTP ${e.status})`,e.status))},e.onerror=()=>a(new i(0,"网络异常,取件失败")),e.ontimeout=()=>a(new i(0,"下载超时,请重试")),e.send()})}export{y as a,A as b,S as g,b as p,T as s}; diff --git a/server/web/dist/assets/share-Y37-qxxb.js b/server/web/dist/assets/share-Y37-qxxb.js new file mode 100644 index 0000000..6011c1a --- /dev/null +++ b/server/web/dist/assets/share-Y37-qxxb.js @@ -0,0 +1 @@ +import{v as x,S as s,U as m,V as g,x as u,W as w,H as i,X as f,Y as h}from"./index-QLbKGtH7.js";function T(n,t,r,a=""){return x(u.shareText,{method:"POST",form:{text:n,expire_value:String(t),expire_style:r,code:a}})}function y(n,t,r,a,o=""){const e=new FormData;return e.append("file",n),e.append("expire_value",String(t)),e.append("expire_style",r),o&&e.append("code",o),h(u.shareFile,e,a)}async function S(n){const t=await x(u.shareMetadata,{query:{code:n}}),r=!!(s(t,["is_text","isText"])??s(t,["type"])==="text");return{code:String(s(t,["code"])??n),name:String(s(t,["name"])??"未命名"),size:Number(s(t,["size"])??0),type:r?"text":"file",isText:r,createdAt:s(t,["created_at","createdAt"])??null,expiredAt:s(t,["expired_at","expires_at","expiredAt","expiresAt"])??null,expiredCount:s(t,["expired_count","expiredCount","remaining_downloads","remainingDownloads"])??null,usedCount:Number(s(t,["used_count","usedCount"])??0),remainingDownloads:s(t,["remaining_downloads","remainingDownloads","expired_count","expiredCount"])??null}}async function b(n){const{blob:t}=await m(u.shareSelect,{query:{code:n}});return t.text()}function A(n,t){return new Promise((r,a)=>{const o=new URL(g(u.shareSelect),location.origin);o.searchParams.set("code",n);const e=new XMLHttpRequest;e.open("GET",o.toString()),e.timeout=6e5,e.responseType="blob";const l=w();l&&e.setRequestHeader("Authorization",`Bearer ${l}`),e.onprogress=p=>{p.lengthComputable&&t&&t(Math.round(p.loaded/p.total*100))},e.onload=()=>{if((e.getResponseHeader("content-type")??"").includes("application/json")){const d=new FileReader;d.onload=()=>{try{const c=JSON.parse(String(d.result));a(new i(c.code??e.status,c.msg||"取件失败",e.status))}catch{a(new i(e.status,"取件失败",e.status))}},d.readAsText(e.response);return}e.status>=200&&e.status<300?r({blob:e.response,filename:f(e.getResponseHeader("content-disposition"))}):a(new i(e.status,`取件失败(HTTP ${e.status})`,e.status))},e.onerror=()=>a(new i(0,"网络异常,取件失败")),e.ontimeout=()=>a(new i(0,"下载超时,请重试")),e.send()})}export{y as a,A as b,S as g,b as p,T as s}; diff --git a/server/web/dist/assets/share-x2wQCCnt.js b/server/web/dist/assets/share-x2wQCCnt.js new file mode 100644 index 0000000..2bac058 --- /dev/null +++ b/server/web/dist/assets/share-x2wQCCnt.js @@ -0,0 +1 @@ +import{v as x,S as s,U as m,V as g,x as u,W as w,H as i,X as f,Y as h}from"./index-D7AAbqvI.js";function T(n,t,r,a=""){return x(u.shareText,{method:"POST",form:{text:n,expire_value:String(t),expire_style:r,code:a}})}function y(n,t,r,a,o=""){const e=new FormData;return e.append("file",n),e.append("expire_value",String(t)),e.append("expire_style",r),o&&e.append("code",o),h(u.shareFile,e,a)}async function S(n){const t=await x(u.shareMetadata,{query:{code:n}}),r=!!(s(t,["is_text","isText"])??s(t,["type"])==="text");return{code:String(s(t,["code"])??n),name:String(s(t,["name"])??"未命名"),size:Number(s(t,["size"])??0),type:r?"text":"file",isText:r,createdAt:s(t,["created_at","createdAt"])??null,expiredAt:s(t,["expired_at","expires_at","expiredAt","expiresAt"])??null,expiredCount:s(t,["expired_count","expiredCount","remaining_downloads","remainingDownloads"])??null,usedCount:Number(s(t,["used_count","usedCount"])??0),remainingDownloads:s(t,["remaining_downloads","remainingDownloads","expired_count","expiredCount"])??null}}async function b(n){const{blob:t}=await m(u.shareSelect,{query:{code:n}});return t.text()}function A(n,t){return new Promise((r,a)=>{const o=new URL(g(u.shareSelect),location.origin);o.searchParams.set("code",n);const e=new XMLHttpRequest;e.open("GET",o.toString()),e.timeout=6e5,e.responseType="blob";const l=w();l&&e.setRequestHeader("Authorization",`Bearer ${l}`),e.onprogress=p=>{p.lengthComputable&&t&&t(Math.round(p.loaded/p.total*100))},e.onload=()=>{if((e.getResponseHeader("content-type")??"").includes("application/json")){const d=new FileReader;d.onload=()=>{try{const c=JSON.parse(String(d.result));a(new i(c.code??e.status,c.msg||"取件失败",e.status))}catch{a(new i(e.status,"取件失败",e.status))}},d.readAsText(e.response);return}e.status>=200&&e.status<300?r({blob:e.response,filename:f(e.getResponseHeader("content-disposition"))}):a(new i(e.status,`取件失败(HTTP ${e.status})`,e.status))},e.onerror=()=>a(new i(0,"网络异常,取件失败")),e.ontimeout=()=>a(new i(0,"下载超时,请重试")),e.send()})}export{y as a,A as b,S as g,b as p,T as s}; diff --git a/server/web/dist/index.html b/server/web/dist/index.html index 9ad2c12..260d8ea 100644 --- a/server/web/dist/index.html +++ b/server/web/dist/index.html @@ -27,7 +27,7 @@ background: #0b0f1a; } - + diff --git a/web/README.md b/web/README.md index e7c59be..ff157a0 100644 --- a/web/README.md +++ b/web/README.md @@ -6,6 +6,9 @@ v2(任务 t3):液态玻璃主题(亮/暗/跟随系统)、中英双语 背景图 / 页脚自定义 / 系统通知(读 `GET /api/v1/config` 下发的 v2 字段)、上传页策略动态渲染、 管理设置页全量策略表单(PATCH `/admin/config/update`)。 +v3.2 起在管理设置「上传频率限制」卡底部新增**上下行带宽限速**字段(MB/s,0=不限速, +提交后换算为字节/秒写入 `upload_rate`/`download_rate` KV)。 + ## 页面 | 路由 | 说明 | diff --git a/web/src/locales/en-US.ts b/web/src/locales/en-US.ts index 0c8a02a..8c7c243 100644 --- a/web/src/locales/en-US.ts +++ b/web/src/locales/en-US.ts @@ -360,6 +360,10 @@ export default { uploadCountHint: 'Min 1, max {max}', uploadMinute: 'Window length (minutes) · uploadMinute', uploadMinuteHint: 'Min 1, max {max}', + uploadRate: 'Upload bandwidth (optional)', + uploadRateHint: '0 = unlimited; MB/s; range 0~1024. Live-effective (admin reads latest KV each request)', + downloadRate: 'Download bandwidth (optional)', + downloadRateHint: '0 = unlimited; MB/s; range 0~1024. S3 presigned direct upload cannot be throttled server-side', // —— v3: friendly units + storage engine —— unitHour: 'Hour(s)', unitDay: 'Day(s)', diff --git a/web/src/locales/zh-CN.ts b/web/src/locales/zh-CN.ts index ac7e76c..1acc38e 100644 --- a/web/src/locales/zh-CN.ts +++ b/web/src/locales/zh-CN.ts @@ -354,6 +354,10 @@ export default { uploadCountHint: '最小 1,最大 {max}', uploadMinute: '频率窗口(分钟)uploadMinute', uploadMinuteHint: '最小 1,最大 {max}', + uploadRate: '上行带宽(可选)', + uploadRateHint: '0 = 不限速;单位 MB/s;范围 0~1024。修改后立即生效(管理端读最新 KV)', + downloadRate: '下行带宽(可选)', + downloadRateHint: '0 = 不限速;单位 MB/s;范围 0~1024。S3 预签名直传(客户端→S3)无法限速', // —— v3:单位友好化 + 存储引擎 —— unitHour: '小时', unitDay: '天', diff --git a/web/src/views/admin/SettingsView.vue b/web/src/views/admin/SettingsView.vue index 34771f9..ad698ee 100644 --- a/web/src/views/admin/SettingsView.vue +++ b/web/src/views/admin/SettingsView.vue @@ -42,6 +42,7 @@ const FOOTER_BEIAN_MAX = 128 const BACKGROUND_URL_MAX = 2048 const UPLOAD_COUNT_MAX = 10000 const UPLOAD_MINUTE_MAX = 1440 +const RATE_MAX_MB = 1024 // 1 GiB/s 上限(与后端 KVSchema 1<<30 字节对齐) const form = reactive({ site_name: '', @@ -61,6 +62,9 @@ const form = reactive({ allowed_file_types: '', uploadCount: 0, uploadMinute: 0, + // v3.2:上下行带宽(前端友好单位 = MB/s;提交时换算为字节/秒) + uploadRate: 0, + downloadRate: 0, }) // —— v3:友好单位状态(canonical 单位仍为秒/字节,换算在前端)—— @@ -162,6 +166,9 @@ async function load(): Promise { form.allowed_file_types = types.join(',') form.uploadCount = toNum(pick(cfg, ['uploadCount', 'upload_count']), 0) form.uploadMinute = toNum(pick(cfg, ['uploadMinute', 'upload_minute']), 0) + // v3.2:带宽(KV 字节/秒 → UI MB/s,0 保留为不限) + form.uploadRate = Math.round(toNum(pick(cfg, ['upload_rate', 'uploadRate']), 0) / MB_BYTES) + form.downloadRate = Math.round(toNum(pick(cfg, ['download_rate', 'downloadRate']), 0) / MB_BYTES) // v3:当前引擎(get 的 _engine_hint.storage_backend 或公开 config 的 storage_engine) const hint = pick>(cfg, ['_engine_hint']) const backend = hint ? String(pick(hint, ['storage_backend']) ?? '') : '' @@ -229,6 +236,9 @@ async function save(): Promise { // 上传频率限制(键名对齐参考既有 camelCase 键) uploadCount: clamp(form.uploadCount || 0, 1, UPLOAD_COUNT_MAX), uploadMinute: clamp(form.uploadMinute || 0, 1, UPLOAD_MINUTE_MAX), + // v3.2:带宽(MB/s → 字节/秒;负数与 NaN 归 0) + upload_rate: clamp(Number(form.uploadRate) || 0, 0, RATE_MAX_MB) * MB_BYTES, + download_rate: clamp(Number(form.downloadRate) || 0, 0, RATE_MAX_MB) * MB_BYTES, }) toast.success(t('admin.settings.saved')) await config.load() // 立即刷新导航 Logo / favicon / 站点名称 / 背景 / 页脚 / 通知 @@ -256,6 +266,8 @@ function restoreDefaults(): void { form.allowed_file_types = '*' form.uploadCount = 10 form.uploadMinute = 1 + form.uploadRate = 0 + form.downloadRate = 0 // v3:单位状态复位 saveTimeValue.value = 0 saveTimeUnit.value = 'day' @@ -736,6 +748,41 @@ onMounted(load)

    {{ t('admin.settings.uploadMinuteHint', { max: UPLOAD_MINUTE_MAX }) }}

    + +
    +
    + +
    + + MB/s +
    +

    {{ t('admin.settings.uploadRateHint') }}

    +
    +
    + +
    + + MB/s +
    +

    {{ t('admin.settings.downloadRateHint') }}

    +
    +