@tablestore/tablestore-agent-cli 0.1.9 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/kb/create.d.ts.map +1 -1
- package/dist/commands/kb/create.js +21 -0
- package/dist/commands/kb/create.js.map +1 -1
- package/dist/commands/kb/retrieve.d.ts.map +1 -1
- package/dist/commands/kb/retrieve.js +3 -3
- package/dist/commands/kb/retrieve.js.map +1 -1
- package/dist/dashboard-runtime/dashboard/.next/BUILD_ID +1 -1
- package/dist/dashboard-runtime/dashboard/.next/app-path-routes-manifest.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/build-manifest.json +5 -5
- package/dist/dashboard-runtime/dashboard/.next/prerender-manifest.json +3 -3
- package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page/react-loadable-manifest.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.rsc +14 -14
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +10 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.rsc +14 -14
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_full.segment.rsc +14 -14
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_head.segment.rsc +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_index.segment.rsc +10 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.rsc +17 -17
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_full.segment.rsc +17 -17
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_head.segment.rsc +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_index.segment.rsc +10 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_tree.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding.segment.rsc +4 -4
- package/dist/dashboard-runtime/dashboard/.next/server/app/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app-paths-manifest.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0n~ec7s.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cee_lo._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0lvi0g-._.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0q8vcw8._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/dashboard__next-internal_server_app_api_v1_oss_list_route_actions_00xq2u..js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0b1r_app_(dashboard)_knowledge-base_[name]_documents_documents-client_tsx_0g2uxmt._.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0e95_src_app_(dashboard)_knowledge-base_[name]_settings_settings-client_tsx_13312zk._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0aqzu8w._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0hozzu6._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0jb9ccl._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0jhpb-b._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__13ylf4x._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_01-2v37._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_02bg849._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_04f2u4t._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09yzbcp._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0db498n._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ddbh97._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f4u0.1._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fj8l5g._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0hnw-ok._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0j-q~ro._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0jghj2_._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0kd7szs._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0l~-9i0._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0mtqe24._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0n4gd_6._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0o665bf._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ogxvev._.js +7 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0q748rf._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tr8-3u._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0u4elhp._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0vtm7dh._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xdioxg._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xzh5yw._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12r9c8h._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12~3vfk._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13_lb.o._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_00ofp7q._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_065m1.j._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0ejgygh._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0o9jhcn._.js +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0xf3ffa._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0y49vhd._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_10dsqx~._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_knowledge-base_create_page_tsx_0916~g-._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_error_tsx_01x7ppm._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_0ls1exu._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_0ugdjlb._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_shared_relative-time_tsx_0b7s9rc._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_0-tuf-h._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_dropdown-menu_tsx_0c~d-fd._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_select_tsx_0ys.i47._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_08h.f_8._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0jns_ph._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0pf30rh._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0~k~1nt._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/functions-config-manifest.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/middleware-build-manifest.js +5 -5
- package/dist/dashboard-runtime/dashboard/.next/server/pages/404.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/pages/500.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-2yqm.ft6yzy.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.2e8ciiogw04.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/00tz~p479bdgl.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/02i9olo-312mq.js +138 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/062k9jbtd9.lv.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/069zf4m5f.se2.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/06uuhz24tvdt..js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07cp19da_kfld.js +5 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/086esp1n941jl.js +138 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08e9vvmr~0bqr.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08i99xsvs8o5s.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08qlxn-3d_rtu.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/09uxq~55qug8c.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0__g1ogrdh412.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ab-ev0u1~ch5.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{154aheeo3m6bg.js → 0bpginsuceywq.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0bw682qzkh2ni.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0cto67_iw~p9z.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0d29.l~3ip181.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ewpzgu_qf0wf.js +4 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0h77.bqx5ltem.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ix_suxk3spjj.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jc31diex030o.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k79upjc40aky.css +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0lp2g_27uyhuz.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0lrw.bnws62y9.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0mea2ylxe.umh.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0dqag6qsw7xv8.js → 0px2r0l_3kp2t.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0snnsfosp3~gq.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0t0yqi68~eil6.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0td9nhfbpbmyt.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0tmwptel_4y0o.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u6_s-0w8.yr..js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u9wtl06_b72x.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0uv55p7kzteex.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0v9d5wl9nsva3.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0xko7~ja3xuc-.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{05_578ka0ga8d.js → 12pz6ag1s~te_.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/14.dp0-y_mhjo.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/15bzqpm440jvz.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/15wxh8ltqt88_.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/183~u3-4a74db.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{turbopack-0ybyy.9-.w~ub.js → turbopack-0w.hw6u8qra5z.js} +1 -1
- package/dist/dashboard-runtime/dashboard/package.json +1 -0
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/page.tsx +39 -38
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/error.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/documents/documents-client.tsx +0 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/layout-client.tsx +191 -40
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/qa/page.tsx +18 -19
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/retrieval/retrieval-client.tsx +8 -7
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/settings/settings-client.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/layout.tsx +3 -10
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/layout.tsx +128 -22
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/search/page.tsx +15 -8
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/page.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/route.ts +44 -3
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/oss/list/route.ts +125 -0
- package/dist/dashboard-runtime/dashboard/src/app/error.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/globals.css +137 -102
- package/dist/dashboard-runtime/dashboard/src/app/not-found.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/onboarding/page.tsx +2 -2
- package/dist/dashboard-runtime/dashboard/src/components/chat/add-mount-row.tsx +21 -46
- package/dist/dashboard-runtime/dashboard/src/components/chat/chat-mount-config.tsx +35 -27
- package/dist/dashboard-runtime/dashboard/src/components/chat/mount-empty-state.tsx +87 -0
- package/dist/dashboard-runtime/dashboard/src/components/chat/mount-picker.tsx +87 -0
- package/dist/dashboard-runtime/dashboard/src/components/chat/unified-retrieval-section.tsx +3 -2
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-chunks-dialog.tsx +49 -25
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-columns.tsx +57 -46
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-table.tsx +2 -4
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-toolbar.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-upload-dialog.tsx +155 -54
- package/dist/dashboard-runtime/dashboard/src/components/documents/oss-browser.tsx +264 -0
- package/dist/dashboard-runtime/dashboard/src/components/documents/oss-import-tab.tsx +143 -0
- package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-form.tsx +60 -60
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-create-form.tsx +52 -35
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-settings-form.tsx +152 -76
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/knowledge-base-retrieval-config.ts +110 -0
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/retrieval-result-count-field.tsx +106 -0
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/retrieval-result-count.ts +11 -0
- package/dist/dashboard-runtime/dashboard/src/components/layout/detail-sidebar.tsx +411 -0
- package/dist/dashboard-runtime/dashboard/src/components/layout/help-link.tsx +58 -0
- package/dist/dashboard-runtime/dashboard/src/components/layout/page-header.tsx +130 -11
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-instance-card.tsx +203 -0
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-item.tsx +14 -11
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-mobile.tsx +37 -29
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-usage-stats.tsx +26 -0
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar.tsx +94 -46
- package/dist/dashboard-runtime/dashboard/src/components/layout/theme-toggle.tsx +161 -41
- package/dist/dashboard-runtime/dashboard/src/components/memory/requests-histogram-chart.tsx +2 -2
- package/dist/dashboard-runtime/dashboard/src/components/qa/qa-chat-panel.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/assemble-retrieval-configuration.ts +22 -3
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-form.tsx +110 -20
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-params-fields.tsx +114 -56
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-rerank-fields.tsx +60 -23
- package/dist/dashboard-runtime/dashboard/src/components/shared/empty-state.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/shared/error-state.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/shared/llm-model-selector.tsx +160 -70
- package/dist/dashboard-runtime/dashboard/src/components/shared/relative-time.tsx +30 -6
- package/dist/dashboard-runtime/dashboard/src/components/ui/badge.tsx +16 -5
- package/dist/dashboard-runtime/dashboard/src/components/ui/button.tsx +9 -8
- package/dist/dashboard-runtime/dashboard/src/components/ui/card.tsx +14 -8
- package/dist/dashboard-runtime/dashboard/src/components/ui/chat-bubble.tsx +60 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/command.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/data-card.tsx +57 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/detail-section.tsx +40 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/dialog.tsx +7 -7
- package/dist/dashboard-runtime/dashboard/src/components/ui/dropdown-menu.tsx +6 -6
- package/dist/dashboard-runtime/dashboard/src/components/ui/empty-state.tsx +42 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/filter-pill.tsx +90 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/form.tsx +3 -3
- package/dist/dashboard-runtime/dashboard/src/components/ui/input.tsx +5 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/item-card.tsx +88 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/label.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/memory-row.tsx +63 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/mini-stat.tsx +48 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/nav-tab-bar.tsx +60 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/playground-shell.tsx +69 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/popover.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/result-row.tsx +37 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/scope-tag.tsx +30 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/select.tsx +6 -5
- package/dist/dashboard-runtime/dashboard/src/components/ui/sheet.tsx +4 -4
- package/dist/dashboard-runtime/dashboard/src/components/ui/sonner.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/stat-card.tsx +58 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/table.tsx +13 -6
- package/dist/dashboard-runtime/dashboard/src/components/ui/textarea.tsx +4 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/tooltip.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/usage-card.tsx +43 -0
- package/dist/dashboard-runtime/dashboard/src/config/navigation.ts +50 -9
- package/dist/dashboard-runtime/dashboard/src/hooks/use-detail-sidebar-collapsed.ts +86 -0
- package/dist/dashboard-runtime/dashboard/src/hooks/use-oss-import.ts +148 -0
- package/dist/dashboard-runtime/dashboard/src/hooks/use-oss-list.ts +89 -0
- package/dist/dashboard-runtime/dashboard/src/lib/extension-filter.ts +62 -0
- package/dist/dashboard-runtime/dashboard/src/lib/glob-filter.ts +76 -0
- package/dist/dashboard-runtime/dashboard/src/lib/oss-selection.ts +58 -0
- package/dist/dashboard-runtime/dashboard/src/lib/server/oss-client.ts +65 -0
- package/dist/dashboard-runtime/dashboard/src/schemas/knowledge-base.ts +3 -3
- package/dist/dashboard-runtime/dashboard/src/schemas/llm-chat.ts +1 -1
- package/dist/dashboard-runtime/dashboard/src/schemas/retrieval.ts +4 -1
- package/dist/dashboard-runtime/dashboard/src/services/api-client.ts +11 -6
- package/dist/dashboard-runtime/dashboard/src/services/documents.ts +27 -8
- package/dist/dashboard-runtime/dashboard/src/services/oss.ts +36 -0
- package/dist/dashboard-runtime/dashboard/src/types/knowledge-base.ts +1 -1
- package/dist/dashboard-runtime/dashboard/tailwind.config.ts +47 -12
- package/dist/dashboard-runtime/dashboard/vitest.config.mjs +6 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0lvo_@radix-ui_react-popper_dist_index_mjs_13rqw99._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0-kiaf5._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0_r24-c._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__11yei-s._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0303qx7._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06l.12l._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09eom0_._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0cd.__9._.js +0 -7
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0dqi8bq._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0e9y.xc._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f9u8i2._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fbjpet._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0i8py_a._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0jlt.cx._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0n5uozy._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0o32d.y._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0suxzcc._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tyxwr3._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0u9md36._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0v4jb2q._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0vzw0pw._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0z0rlpq._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0zn.ayc._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13l7w34._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0o4a.29._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0suis9l._.js +0 -9
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_10mc58z._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_knowledge-base_[name]_layout-client_tsx_05momc5._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_retrieval_02c2uck._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0aw_rgu._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0qdd37m._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_11mc1z9._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-etecbti5x22.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-xqk6wfme5fu.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.yj.t1hbwkg4.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/031-scv-8sah9.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/034uozc1ki09_.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/05hmbxh7h5ct-.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/05ow1qzcjz3pz.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07iqor2nl~iqc.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/087x52iesmpfe.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08an3157he_ad.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0aak.679si-3m.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ai8f~-9ig.gz.js +0 -138
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0c5tcbhzpwen7.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0dheju1t18upn.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ffr1_o~ss8r8.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0h38qfpz-dmiu.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0hkir82jccgck.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0l1fmyhvp-k49.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pcp6pjjz7o49.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pdq-gljpy7gd.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0q6-s11w9.sgo.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0rnm58mg0whfk.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0rxp5ykl1_lyb.js +0 -4
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0sg6z8.ci0l2b.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0v_~favugkv_a.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x3ysmon_~xsv.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x7sjde5wit~i.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0yzz97.2e6if6.js +0 -138
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0zbi5n76awxz1.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~alekqkiwwaq.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~e2n9bhosscr.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~i4llb9-utpp.css +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~n-y9cstar6b.js +0 -5
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/14z_j1qzycpe1.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/17k4h5zgalxqj.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/17m1wc_o0.5iz.js +0 -1
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-header.tsx +0 -91
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-tab-nav.tsx +0 -62
- package/dist/dashboard-runtime/dashboard/src/components/layout/breadcrumb-bar.tsx +0 -115
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-header.tsx +0 -46
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-tab-nav.tsx +0 -54
- /package/dist/dashboard-runtime/dashboard/.next/static/{nPPow7lCVx1fYDGH2XCxQ → doYIl-pd6Sqax3bfUgN3q}/_buildManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{nPPow7lCVx1fYDGH2XCxQ → doYIl-pd6Sqax3bfUgN3q}/_clientMiddlewareManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{nPPow7lCVx1fYDGH2XCxQ → doYIl-pd6Sqax3bfUgN3q}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,49133,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return s}});let s=e=>{}},35915,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return C},MissingStaticPage:function(){return S},NormalizeError:function(){return g},PageNotFoundError:function(){return b},SP:function(){return y},ST:function(){return m},WEB_VITALS:function(){return n},execOnce:function(){return a},getDisplayName:function(){return h},getLocationOrigin:function(){return c},getURL:function(){return l},isAbsoluteUrl:function(){return u},isResSent:function(){return d},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return w}};for(var i in s)Object.defineProperty(r,i,{enumerable:!0,get:s[i]});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...s)=>(r||(r=!0,t=e(...s)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>o.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function l(){let{href:e}=window.location,t=c();return e.substring(t.length)}function h(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let s=await e.getInitialProps(t);if(r&&d(r))return s;if(!s)throw Object.defineProperty(Error(`"${h(e)}.getInitialProps()" should resolve to an object. But found "${s}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return s}let y="u">typeof performance,m=y&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class v extends Error{}class g extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class S extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class C extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},81961,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={assign:function(){return u},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}};for(var i in s)Object.defineProperty(r,i,{enumerable:!0,get:s[i]});function n(e){let t={};for(let[r,s]of e.entries()){let e=t[r];void 0===e?t[r]=s:Array.isArray(e)?e.push(s):t[r]=[e,s]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,s]of Object.entries(e))if(Array.isArray(s))for(let e of s)t.append(r,a(e));else t.set(r,a(s));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,s]of r.entries())e.append(t,s)}return e}},87097,e=>{"use strict";var t=e.i(32534),r=e.i(44020),s=e.i(669),i=class extends r.Removable{#e;#t;#r;#s;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||n(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=(0,s.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});let i="pending"===this.state.status,n=!this.#s.canStart();try{if(i)t();else{this.#i({type:"pending",variables:e,isPaused:n}),this.#r.config.onMutate&&await this.#r.config.onMutate(e,this,r);let t=await this.options.onMutate?.(e,r);t!==this.state.context&&this.#i({type:"pending",context:t,variables:e,isPaused:n})}let s=await this.#s.start();return await this.#r.config.onSuccess?.(s,e,this.state.context,this,r),await this.options.onSuccess?.(s,e,this.state.context,r),await this.#r.config.onSettled?.(s,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(s,null,e,this.state.context,r),this.#i({type:"success",data:s}),s}catch(t){try{await this.#r.config.onError?.(t,e,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,r)}catch(e){Promise.reject(e)}try{await this.#r.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,r)}catch(e){Promise.reject(e)}throw this.#i({type:"error",error:t}),t}finally{this.#r.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),t.notifyManager.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function n(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}e.s(["Mutation",0,i,"getDefaultState",0,n])},65581,(e,t,r)=>{t.exports=e.r(97832)},93321,e=>{"use strict";function t(e,r,s=3e4){let i=new AbortController,n=setTimeout(()=>i.abort(),s);return fetch(e,{credentials:"same-origin",...r,signal:i.signal}).finally(()=>clearTimeout(n))}class r extends Error{code;status;requestId;traceId;constructor(e,t,r,s,i){super(t),this.name="ApiClientError",this.code=e,this.status=r,this.requestId=s,this.traceId=i}}let s={401:"UNAUTHORIZED",403:"FORBIDDEN",404:"NOT_FOUND",429:"RATE_LIMITED",503:"SERVICE_UNAVAILABLE"};async function i(e){if(!e.ok){let t,i=s[e.status]??"UNKNOWN_ERROR",n=`Request failed with status ${e.status}`,a=e.headers.get("x-trace-id")??void 0;try{let r=await e.json();i=r.code??i,n=r.message??n,t=r.requestId}catch{}throw d({code:i,message:n,status:e.status,requestId:t,traceId:a,url:e.url}),new r(i,n,e.status,t,a)}let t=await e.json();if("SUCCESS"!==t.code){let s=e.headers.get("x-trace-id")??void 0;throw d({code:t.code,message:t.message??"Unknown error",status:e.status,requestId:t.requestId,traceId:s,url:e.url}),new r(t.code,t.message??"Unknown error",e.status,t.requestId,s)}return t.data}function n(e){let t={};return e&&(t["Content-Type"]=e),t}async function a(e,r={}){return i(await h(e,()=>{var s;return t((s=e,`${s}`),{method:"GET",headers:n("application/json"),...r})}))}async function o(e,r,s){return i(await h(e,()=>{var i;return t((i=e,`${i}`),{method:"POST",headers:n("application/json"),body:void 0!==r?JSON.stringify(r):void 0},s)}))}async function u(e,r){return i(await h(e,()=>{var s;return t((s=e,`${s}`),{method:"PUT",headers:n("application/json"),body:void 0!==r?JSON.stringify(r):void 0})}))}async function c(e,r){return i(await h(e,()=>{var s;return t((s=e,`${s}`),{method:"DELETE",headers:n("application/json"),body:void 0!==r?JSON.stringify(r):void 0})}))}async function l(e,r,s){return i(await h(e,()=>{var i;return t((i=e,`${i}`),{method:"POST",body:r},s)}))}async function h(e,t){try{return await t()}catch(t){throw d({code:t instanceof DOMException&&"AbortError"===t.name?"NETWORK_ERROR":"BROWSER_ERROR",message:t instanceof Error?t.message:String(t),status:0,url:e,name:t instanceof Error?t.name:void 0,stack:t instanceof Error?t.stack:void 0}),t}}function d(e){if(!("string"==typeof e.url&&e.url.includes("/api/v1/logs/client")))try{let t=JSON.stringify({event:"browser.api_error",...e});if(navigator.sendBeacon)return void navigator.sendBeacon("/api/v1/logs/client",new Blob([t],{type:"application/json"}));fetch("/api/v1/logs/client",{method:"POST",headers:{"Content-Type":"application/json"},body:t,keepalive:!0})}catch{}}e.s(["ApiClientError",0,r,"apiDelete",0,c,"apiGet",0,a,"apiPost",0,o,"apiPut",0,u,"apiUpload",0,l])},47570,e=>{"use strict";let t=["runtime-context"],r=new Set(["instances","instance","knowledge-bases","chunks","memory","llm-providers","llm-provider-models","auth-status"]);function s(e){let t=e[0];return"string"==typeof t&&r.has(t)}e.s(["PENDING_DATA_SCOPE_KEY",0,"pending","RUNTIME_CONTEXT_QUERY_KEY",0,t,"invalidateInstanceScopedQueries",0,function(e){e.invalidateQueries({predicate:e=>s(e.queryKey)})},"invalidateKnowledgeBaseQueries",0,function(e){e.invalidateQueries({queryKey:["knowledge-bases"]})},"invalidateLLMProviderQueries",0,function(e){e.invalidateQueries({queryKey:["llm-providers"]})},"invalidateMemoryQueries",0,function(e){e.invalidateQueries({queryKey:["memory"]})},"queryKeys",0,{runtimeContext:t,instances:e=>["instances",e],instance:(e,t)=>["instance",e,t],knowledgeBases:e=>["knowledge-bases",e],knowledgeBase:(e,t)=>["knowledge-bases",e,t],documents:(e,t,r,s,i)=>["knowledge-bases",e,t,"documents",r,s,i],chunks:(e,t,r,s)=>["chunks",e,t,r,s],memoryStores:e=>["memory",e,"stores"],memoryStore:(e,t)=>["memory",e,"stores",t],memoryUnits:(e,t,r,s,i)=>["memory",e,"stores",t,"units",r,s,i],memoryUnit:(e,t,r,s)=>["memory",e,"stores",t,"units","detail",r,s],memoryRequests:(e,t,r,s,i,n)=>["memory",e,"stores",t,"requests",r,s,i,n],memoryMessages:(e,t,r,s,i,n)=>["memory",e,"stores",t,"messages",r,s,i,n?.minTimestamp,n?.maxTimestamp],llmProviders:e=>["llm-providers",e],llmProvider:(e,t)=>["llm-providers",e,t],llmProviderModels:(e,t)=>["llm-provider-models",e,t]},"resetInstanceScopedQueries",0,function(e,t){e.removeQueries({predicate:e=>{var r;return s(e.queryKey)&&(!t||(r=e.queryKey,r[1]===t))}})}])},7166,44897,50458,40870,43876,e=>{"use strict";let t;var r=e.i(44501),s=e.i(17635),i=e.i(65581),n=e.i(76848),a=e.i(39781),o=e.i(32534);e.i(35884);var u=e.i(58859),c=e.i(669),l=e.i(44020),h=class extends l.Removable{#n;#a;#o;#e;#s;#u;#c;constructor(e){super(),this.#c=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#e=e.client,this.#o=this.#e.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#n=p(this.options),this.state=e.state??this.#n,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#u,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=p(this.options);void 0!==e.data&&(this.setState(f(e.data,e.dataUpdatedAt)),this.#n=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(e,t){let r=(0,u.replaceData)(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(u.noop).catch(u.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#n}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,u.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===u.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,u.resolveStaleTime)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,u.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#c||this.#l()?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#l(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){let r;if("idle"!==this.state.fetchStatus&&this.#s?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let s=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#c=!0,s.signal)})},n=()=>{let e,r=(0,u.ensureQueryFn)(this.options,t),s=(i(e={client:this.#e,queryKey:this.queryKey,meta:this.meta}),e);return(this.#c=!1,this.options.persister)?this.options.persister(r,s,this):r(s)},a=(i(r={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#e,state:this.state,fetchFn:n}),r);this.options.behavior?.onFetch(a,this),this.#a=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#i({type:"fetch",meta:a.fetchOptions?.meta}),this.#s=(0,c.createRetryer)({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof c.CancelledError&&e.revert&&this.setState({...this.#a,fetchStatus:"idle"}),s.abort()},onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#s.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#o.config.onSuccess?.(e,this),this.#o.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof c.CancelledError){if(e.silent)return this.#s.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#i({type:"error",error:e}),this.#o.config.onError?.(e,this),this.#o.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#i(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...d(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...f(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#a=e.manual?r:void 0,r;case"error":let s=e.error;return{...t,error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),o.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function d(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,c.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function f(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function p(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,s=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,h,"fetchState",0,d],44897);var y=e.i(23144),m=e.i(7109),v=e.i(48827),g=class extends y.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#h=null,this.#d=(0,m.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#f=void 0;#p=void 0;#y=void 0;#m;#v;#d;#h;#g;#b;#S;#C;#w;#O;#R=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#f.addObserver(this),b(this.#f,this.options)?this.#E():this.updateResult(),this.#Q())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return S(this.#f,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return S(this.#f,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#T(),this.#P(),this.#f.removeObserver(this)}setOptions(e){let t=this.options,r=this.#f;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.resolveEnabled)(this.options.enabled,this.#f))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#I(),this.#f.setOptions(this.options),t._defaulted&&!(0,u.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#f,observer:this});let s=this.hasListeners();s&&C(this.#f,r,this.options,t)&&this.#E(),this.updateResult(),s&&(this.#f!==r||(0,u.resolveEnabled)(this.options.enabled,this.#f)!==(0,u.resolveEnabled)(t.enabled,this.#f)||(0,u.resolveStaleTime)(this.options.staleTime,this.#f)!==(0,u.resolveStaleTime)(t.staleTime,this.#f))&&this.#q();let i=this.#M();s&&(this.#f!==r||(0,u.resolveEnabled)(this.options.enabled,this.#f)!==(0,u.resolveEnabled)(t.enabled,this.#f)||i!==this.#O)&&this.#D(i)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(s,e);return t=this,r=i,(0,u.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#y=i,this.#v=this.options,this.#m=this.#f.state),i}getCurrentResult(){return this.#y}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#d.status||this.#d.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#R.add(e)}getCurrentQuery(){return this.#f}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#E({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#y))}#E(e){this.#I();let t=this.#f.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.noop)),t}#q(){this.#T();let e=(0,u.resolveStaleTime)(this.options.staleTime,this.#f);if(a.environmentManager.isServer()||this.#y.isStale||!(0,u.isValidTimeout)(e))return;let t=(0,u.timeUntilStale)(this.#y.dataUpdatedAt,e);this.#C=v.timeoutManager.setTimeout(()=>{this.#y.isStale||this.updateResult()},t+1)}#M(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#f):this.options.refetchInterval)??!1}#D(e){this.#P(),this.#O=e,!a.environmentManager.isServer()&&!1!==(0,u.resolveEnabled)(this.options.enabled,this.#f)&&(0,u.isValidTimeout)(this.#O)&&0!==this.#O&&(this.#w=v.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||n.focusManager.isFocused())&&this.#E()},this.#O))}#Q(){this.#q(),this.#D(this.#M())}#T(){void 0!==this.#C&&(v.timeoutManager.clearTimeout(this.#C),this.#C=void 0)}#P(){void 0!==this.#w&&(v.timeoutManager.clearInterval(this.#w),this.#w=void 0)}createResult(e,t){let r,s=this.#f,i=this.options,n=this.#y,a=this.#m,o=this.#v,c=e!==s?e.state:this.#p,{state:l}=e,h={...l},f=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&b(e,t),a=r&&C(e,s,t,i);(n||a)&&(h={...h,...d(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(h.fetchStatus="idle")}let{error:p,errorUpdatedAt:y,status:v}=h;r=h.data;let g=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===v){let e;n?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=n.data,g=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#S?.state.data,this.#S):t.placeholderData,void 0!==e&&(v="success",r=(0,u.replaceData)(n?.data,e,t),f=!0)}if(t.select&&void 0!==r&&!g)if(n&&r===a?.data&&t.select===this.#g)r=this.#b;else try{this.#g=t.select,r=t.select(r),r=(0,u.replaceData)(n?.data,r,t),this.#b=r,this.#h=null}catch(e){this.#h=e}this.#h&&(p=this.#h,r=this.#b,y=Date.now(),v="error");let S="fetching"===h.fetchStatus,O="pending"===v,R="error"===v,E=O&&S,Q=void 0!==r,T={status:v,fetchStatus:h.fetchStatus,isPending:O,isSuccess:"success"===v,isError:R,isInitialLoading:E,isLoading:E,data:r,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!O,isLoadingError:R&&!Q,isPaused:"paused"===h.fetchStatus,isPlaceholderData:f,isRefetchError:R&&Q,isStale:w(e,t),refetch:this.refetch,promise:this.#d,isEnabled:!1!==(0,u.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==T.data,r="error"===T.status&&!t,i=e=>{r?e.reject(T.error):t&&e.resolve(T.data)},n=()=>{i(this.#d=T.promise=(0,m.pendingThenable)())},a=this.#d;switch(a.status){case"pending":e.queryHash===s.queryHash&&i(a);break;case"fulfilled":(r||T.data!==a.value)&&n();break;case"rejected":r&&T.error===a.reason||n()}}return T}updateResult(){let e=this.#y,t=this.createResult(this.#f,this.options);if(this.#m=this.#f.state,this.#v=this.options,void 0!==this.#m.data&&(this.#S=this.#f),(0,u.shallowEqualObjects)(t,e))return;this.#y=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#R.size)return!0;let s=new Set(r??this.#R);return this.options.throwOnError&&s.add("error"),Object.keys(this.#y).some(t=>this.#y[t]!==e[t]&&s.has(t))};this.#x({listeners:r()})}#I(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#f)return;let t=this.#f;this.#f=e,this.#p=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#Q()}#x(e){o.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#y)}),this.#e.getQueryCache().notify({query:this.#f,type:"observerResultsUpdated"})})}};function b(e,t){return!1!==(0,u.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&S(e,t,t.refetchOnMount)}function S(e,t,r){if(!1!==(0,u.resolveEnabled)(t.enabled,e)&&"static"!==(0,u.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&w(e,t)}return!1}function C(e,t,r,s){return(e!==t||!1===(0,u.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&w(e,r)}function w(e,t){return!1!==(0,u.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,u.resolveStaleTime)(t.staleTime,e))}e.s(["QueryObserver",0,g],50458);var O=e.i(12984),R=s.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),E=s.createContext(!1);E.Provider;var Q=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function T(e,t,r){let i,n=s.useContext(E),c=s.useContext(R),l=(0,O.useQueryClient)(r),h=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(h);let d=l.getQueryCache().get(h.queryHash);if(h._optimisticResults=n?"isRestoring":"optimistic",h.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=h.staleTime;h.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof h.gcTime&&(h.gcTime=Math.max(h.gcTime,1e3))}i=d?.state.error&&"function"==typeof h.throwOnError?(0,u.shouldThrowError)(h.throwOnError,[d.state.error,d]):h.throwOnError,(h.suspense||h.experimental_prefetchInRender||i)&&!c.isReset()&&(h.retryOnMount=!1),s.useEffect(()=>{c.clearReset()},[c]);let f=!l.getQueryCache().get(h.queryHash),[p]=s.useState(()=>new t(l,h)),y=p.getOptimisticResult(h),m=!n&&!1!==e.subscribed;if(s.useSyncExternalStore(s.useCallback(e=>{let t=m?p.subscribe(o.notifyManager.batchCalls(e)):u.noop;return p.updateResult(),t},[p,m]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),s.useEffect(()=>{p.setOptions(h)},[h,p]),h?.suspense&&y.isPending)throw Q(h,p,c);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,u.shouldThrowError)(r,[e.error,s])))({result:y,errorResetBoundary:c,throwOnError:h.throwOnError,query:d,suspense:h.suspense}))throw y.error;if(l.getDefaultOptions().queries?._experimental_afterQuery?.(h,y),h.experimental_prefetchInRender&&!a.environmentManager.isServer()&&y.isLoading&&y.isFetching&&!n){let e=f?Q(h,p,c):d?.promise;e?.catch(u.noop).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?y:p.trackResult(y)}function P(e,t){return T(e,g,t)}e.s(["useBaseQuery",0,T],40870),e.s(["useQuery",0,P],43876);var I=e.i(87014),q=e.i(93321);async function M(){return(0,q.apiGet)("/api/v1/runtime/context",{cache:"no-store"})}var D=e.i(47570);let x="tsagent.runtimeContextNotice",A="tsagent.runtimeContextDashboardChange",F={configured:!1,credentialSource:null,activeInstance:null,configRevision:"unknown",dataScopeKey:D.PENDING_DATA_SCOPE_KEY,hasAnyInstance:!1},k=(0,s.createContext)({context:F,ready:!1});e.s(["RuntimeContextProvider",0,function({children:e}){let t=(0,O.useQueryClient)(),n=(0,i.usePathname)(),a=(0,s.useRef)(null),{data:o}=P({queryKey:D.RUNTIME_CONTEXT_QUERY_KEY,queryFn:M,staleTime:0,refetchInterval:5e3,refetchOnWindowFocus:"always",refetchOnReconnect:"always"});(0,s.useEffect)(()=>{let e=window.sessionStorage.getItem(x);e&&(window.sessionStorage.removeItem(x),I.toast.info(e,{id:"runtime-context-changed"}))},[]),(0,s.useEffect)(()=>{if(!o)return;let e=a.current;a.current=o,function({previous:e,current:t,pathname:r,queryClient:s,location:i,storage:n,resetQueries:a=D.resetInstanceScopedQueries,now:o=Date.now()}){var u,c;if(!e||e.dataScopeKey===t.dataScopeKey)return;a(s,e.dataScopeKey);let l=function(e){if(!e)return null;if(/^\/knowledge-base\/[^/]+(?:\/.*)?$/.test(e))return"/knowledge-base";if(/^\/memory\/[^/]+(?:\/.*)?$/.test(e))return"/memory";let t=e.match(/^\/llm-providers\/([^/]+)(?:\/.*)?$/);return t&&"new"!==t[1]?"/llm-providers":null}(r);!function(e,t,r,s){let i,n;try{i=e.getItem(A)}catch{return!1}if(!i)return!1;try{n=JSON.parse(i)}catch{try{e.removeItem(A)}catch{}return!1}let a=!Number.isFinite(n.createdAt)||s-n.createdAt>3e4,o=!n.previousDataScopeKey||n.previousDataScopeKey===t.dataScopeKey,u=n.targetActiveInstance===r.activeInstance;try{e.removeItem(A)}catch{}return!a&&o&&u}(n,e,t,o)&&n.setItem(x,(u=e,c=t,u.activeInstance!==c.activeInstance?c.activeInstance?`检测到 CLI 切换项目,已刷新到 ${c.activeInstance}`:"检测到 CLI 切换配置,已刷新到当前凭据":c.activeInstance?"项目配置已更新,数据已刷新":"运行时配置已更新,数据已刷新")),i.replace(l??i.href)}({previous:e,current:o,pathname:n,queryClient:t,location:window.location,storage:window.sessionStorage})},[o,n,t]);let u=(0,s.useMemo)(()=>({context:o??F,ready:!!o}),[o]);return(0,r.jsx)(k.Provider,{value:u,children:e})},"markDashboardRuntimeContextChange",0,function(e,t,r=Date.now()){try{e.setItem(A,JSON.stringify({...t,createdAt:r}))}catch{}},"useRuntimeContext",0,function(){return(0,s.useContext)(k)}],7166)},33362,e=>{"use strict";var t=e.i(17635);let r="/api/v1/logs/client";function s(e){try{let t=JSON.stringify({...e,url:window.location.href});if(navigator.sendBeacon){let e=new Blob([t],{type:"application/json"});navigator.sendBeacon(r,e);return}fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:t,keepalive:!0})}catch{}}e.s(["ClientErrorReporter",0,function(){return(0,t.useEffect)(()=>{let e=e=>{s({event:"browser.error",message:e.message,name:e.error instanceof Error?e.error.name:"Error",stack:e.error instanceof Error?e.error.stack:void 0})},t=e=>{let t=e.reason;s({event:"browser.unhandled_rejection",message:t instanceof Error?t.message:String(t),name:t instanceof Error?t.name:"UnhandledRejection",stack:t instanceof Error?t.stack:void 0})};return window.addEventListener("error",e),window.addEventListener("unhandledrejection",t),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",t)}},[]),null},"reportClientError",0,s])},92571,e=>{"use strict";var t=e.i(58859);function r(e,{pages:t,pageParams:s}){let i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,s[i],s):void 0}function s(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}e.s(["hasNextPage",0,function(e,t){return!!t&&null!=r(e,t)},"hasPreviousPage",0,function(e,t){return!!t&&!!e.getPreviousPageParam&&null!=s(e,t)},"infiniteQueryBehavior",0,function(e){return{onFetch:(i,n)=>{let a=i.options,o=i.fetchOptions?.meta?.fetchMore?.direction,u=i.state.data?.pages||[],c=i.state.data?.pageParams||[],l={pages:[],pageParams:[]},h=0,d=async()=>{let n=!1,d=(0,t.ensureQueryFn)(i.options,i.fetchOptions),f=async(e,r,s)=>{let a;if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);let o=(a={client:i.client,queryKey:i.queryKey,pageParam:r,direction:s?"backward":"forward",meta:i.options.meta},(0,t.addConsumeAwareSignal)(a,()=>i.signal,()=>n=!0),a),u=await d(o),{maxPages:c}=i.options,l=s?t.addToStart:t.addToEnd;return{pages:l(e.pages,u,c),pageParams:l(e.pageParams,r,c)}};if(o&&u.length){let e="backward"===o,t={pages:u,pageParams:c},i=(e?s:r)(a,t);l=await f(t,i,e)}else{let t=e??u.length;do{let e=0===h?c[0]??a.initialPageParam:r(a,l);if(h>0&&null==e)break;l=await f(l,e),h++}while(h<t)}return l};i.options.persister?i.fetchFn=()=>i.options.persister?.(d,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},n):i.fetchFn=d}}}])},12278,e=>{"use strict";var t=e.i(44501),r=e.i(17635),s=(e,t,r,s,i,n,a,o)=>{let u=document.documentElement,c=["light","dark"];function l(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,s=r&&n?i.map(e=>n[e]||e):i;r?(u.classList.remove(...s),u.classList.add(n&&n[t]?n[t]:t)):u.setAttribute(e,t)}),r=t,o&&c.includes(r)&&(u.style.colorScheme=r)}if(s)l(s);else try{let e=localStorage.getItem(t)||r,s=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;l(s)}catch(e){}},i=["light","dark"],n="(prefers-color-scheme: dark)",a="u"<typeof window,o=r.createContext(void 0),u={setTheme:e=>{},themes:[]},c=e=>r.useContext(o)?r.createElement(r.Fragment,null,e.children):r.createElement(h,{...e}),l=["light","dark"],h=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:s=!0,enableColorScheme:a=!0,storageKey:u="theme",themes:c=l,defaultTheme:h=s?"system":"light",attribute:m="data-theme",value:v,children:g,nonce:b,scriptProps:S})=>{let[C,w]=r.useState(()=>f(u,h)),[O,R]=r.useState(()=>"system"===C?y():C),E=v?Object.values(v):c,Q=r.useCallback(e=>{let r=e;if(!r)return;"system"===e&&s&&(r=y());let n=v?v[r]:r,o=t?p(b):null,u=document.documentElement,c=e=>{"class"===e?(u.classList.remove(...E),n&&u.classList.add(n)):e.startsWith("data-")&&(n?u.setAttribute(e,n):u.removeAttribute(e))};if(Array.isArray(m)?m.forEach(c):c(m),a){let e=i.includes(h)?h:null,t=i.includes(r)?r:e;u.style.colorScheme=t}null==o||o()},[b]),T=r.useCallback(e=>{let t="function"==typeof e?e(C):e;w(t);try{localStorage.setItem(u,t)}catch(e){}},[C]),P=r.useCallback(t=>{R(y(t)),"system"===C&&s&&!e&&Q("system")},[C,e]);r.useEffect(()=>{let e=window.matchMedia(n);return e.addListener(P),P(e),()=>e.removeListener(P)},[P]),r.useEffect(()=>{let e=e=>{e.key===u&&(e.newValue?w(e.newValue):T(h))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[T]),r.useEffect(()=>{Q(null!=e?e:C)},[e,C]);let I=r.useMemo(()=>({theme:C,setTheme:T,forcedTheme:e,resolvedTheme:"system"===C?O:C,themes:s?[...c,"system"]:c,systemTheme:s?O:void 0}),[C,T,e,O,s,c]);return r.createElement(o.Provider,{value:I},r.createElement(d,{forcedTheme:e,storageKey:u,attribute:m,enableSystem:s,enableColorScheme:a,defaultTheme:h,value:v,themes:c,nonce:b,scriptProps:S}),g)},d=r.memo(({forcedTheme:e,storageKey:t,attribute:i,enableSystem:n,enableColorScheme:a,defaultTheme:o,value:u,themes:c,nonce:l,scriptProps:h})=>{let d=JSON.stringify([i,t,o,e,c,u,n,a]).slice(1,-1);return r.createElement("script",{...h,suppressHydrationWarning:!0,nonce:"u"<typeof window?l:"",dangerouslySetInnerHTML:{__html:`(${s.toString()})(${d})`}})}),f=(e,t)=>{let r;if(!a){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},p=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},y=e=>(e||(e=window.matchMedia(n)),e.matches?"dark":"light");e.s(["ThemeProvider",0,function({children:e}){return(0,t.jsx)(c,{attribute:"class",defaultTheme:"system",enableSystem:!0,children:e})},"useTheme",0,function(){var e;return null!=(e=r.useContext(o))?e:u}],12278)},85290,e=>{"use strict";var t=e.i(44501),r=e.i(58859),s=e.i(44897),i=e.i(32534),n=e.i(23144),a=class extends n.Subscribable{constructor(e={}){super(),this.config=e,this.#A=new Map}#A;build(e,t,i){let n=t.queryKey,a=t.queryHash??(0,r.hashQueryKeyByOptions)(n,t),o=this.get(a);return o||(o=new s.Query({client:e,queryKey:n,queryHash:a,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){this.#A.has(e.queryHash)||(this.#A.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#A.get(e.queryHash);t&&(e.destroy(),t===e&&this.#A.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#A.get(e)}getAll(){return[...this.#A.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r.matchQuery)(e,t)):t}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},o=e.i(87097),u=n,c=class extends u.Subscribable{constructor(e={}){super(),this.config=e,this.#F=new Set,this.#k=new Map,this.#U=0}#F;#k;#U;build(e,t,r){let s=new o.Mutation({client:e,mutationCache:this,mutationId:++this.#U,options:e.defaultMutationOptions(t),state:r});return this.add(s),s}add(e){this.#F.add(e);let t=l(e);if("string"==typeof t){let r=this.#k.get(t);r?r.push(e):this.#k.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#F.delete(e)){let t=l(e);if("string"==typeof t){let r=this.#k.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#k.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=l(e);if("string"!=typeof t)return!0;{let r=this.#k.get(t),s=r?.find(e=>"pending"===e.state.status);return!s||s===e}}runNext(e){let t=l(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#k.get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){i.notifyManager.batch(()=>{this.#F.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#F.clear(),this.#k.clear()})}getAll(){return Array.from(this.#F)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.matchMutation)(e,t))}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.noop))))}};function l(e){return e.options.scope?.id}var h=e.i(76848),d=e.i(12513),f=e.i(92571),p=class{#K;#r;#u;#_;#N;#j;#L;#B;constructor(e={}){this.#K=e.queryCache||new a,this.#r=e.mutationCache||new c,this.#u=e.defaultOptions||{},this.#_=new Map,this.#N=new Map,this.#j=0}mount(){this.#j++,1===this.#j&&(this.#L=h.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#K.onFocus())}),this.#B=d.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#K.onOnline())}))}unmount(){this.#j--,0===this.#j&&(this.#L?.(),this.#L=void 0,this.#B?.(),this.#B=void 0)}isFetching(e){return this.#K.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#r.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#K.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),s=this.#K.build(this,t),i=s.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#K.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,s){let i=this.defaultQueryOptions({queryKey:e}),n=this.#K.get(i.queryHash),a=n?.state.data,o=(0,r.functionalUpdate)(t,a);if(void 0!==o)return this.#K.build(this,i).setData(o,{...s,manual:!0})}setQueriesData(e,t,r){return i.notifyManager.batch(()=>this.#K.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#K.get(t.queryHash)?.state}removeQueries(e){let t=this.#K;i.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#K;return i.notifyManager.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let s={revert:!0,...t};return Promise.all(i.notifyManager.batch(()=>this.#K.findAll(e).map(e=>e.cancel(s)))).then(r.noop).catch(r.noop)}invalidateQueries(e,t={}){return i.notifyManager.batch(()=>(this.#K.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let s={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(i.notifyManager.batch(()=>this.#K.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,s);return s.throwOnError||(t=t.catch(r.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let s=this.#K.build(this,t);return s.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.noop).catch(r.noop)}fetchInfiniteQuery(e){return e.behavior=(0,f.infiniteQueryBehavior)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.noop).catch(r.noop)}ensureInfiniteQueryData(e){return e.behavior=(0,f.infiniteQueryBehavior)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return d.onlineManager.isOnline()?this.#r.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#K}getMutationCache(){return this.#r}getDefaultOptions(){return this.#u}setDefaultOptions(e){this.#u=e}setQueryDefaults(e,t){this.#_.set((0,r.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#_.values()],s={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.queryKey)&&Object.assign(s,t.defaultOptions)}),s}setMutationDefaults(e,t){this.#N.set((0,r.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#N.values()],s={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.mutationKey)&&Object.assign(s,t.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#u.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#u.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#K.clear(),this.#r.clear()}},y=e.i(12984),m=e.i(17635),v=e.i(7166);e.s(["QueryProvider",0,function({children:e}){let[r]=(0,m.useState)(()=>new p({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0}}}));return(0,t.jsx)(y.QueryClientProvider,{client:r,children:(0,t.jsx)(v.RuntimeContextProvider,{children:e})})}],85290)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,45123,e=>{"use strict";var s=e.i(44501),t=e.i(17635),n=e.i(76490);let r=t.forwardRef(({className:e,...t},r)=>(0,s.jsx)("textarea",{className:(0,n.cn)("flex min-h-[64px] w-full rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] px-3 py-2 text-sm transition-colors","placeholder:text-[hsl(var(--subtle))]","focus-visible:outline-none focus-visible:border-[hsl(var(--primary))] focus-visible:ring-2 focus-visible:ring-[hsl(var(--primary)/0.2)] focus-visible:ring-offset-0","disabled:cursor-not-allowed disabled:bg-[hsl(var(--secondary))] disabled:text-[hsl(var(--muted-foreground))]",e),ref:r,...t}));r.displayName="Textarea",e.s(["Textarea",0,r])},34752,e=>{"use strict";let s=(0,e.i(86620).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,s],34752)},43754,e=>{"use strict";let s=(0,e.i(86620).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,s],43754)},47421,e=>{"use strict";var s=e.i(44501),t=e.i(17635),n=e.i(91967),r=e.i(43250),a=e.i(77275),o=e.i(90088),i=e.i(80939),c=e.i(25486),l=e.i(17256),d=e.i(33616),u="Tabs",[m,p]=(0,r.createContextScope)(u,[a.createRovingFocusGroupScope]),x=(0,a.createRovingFocusGroupScope)(),[h,f]=m(u),b=t.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:a,defaultValue:o,orientation:m="horizontal",dir:p,activationMode:x="automatic",...f}=e,b=(0,c.useDirection)(p),[g,y]=(0,l.useControllableState)({prop:r,onChange:a,defaultProp:o??"",caller:u});return(0,s.jsx)(h,{scope:n,baseId:(0,d.useId)(),value:g,onValueChange:y,orientation:m,dir:b,activationMode:x,children:(0,s.jsx)(i.Primitive.div,{dir:b,"data-orientation":m,...f,ref:t})})});b.displayName=u;var g="TabsList",y=t.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...o}=e,c=f(g,n),l=x(n);return(0,s.jsx)(a.Root,{asChild:!0,...l,orientation:c.orientation,dir:c.dir,loop:r,children:(0,s.jsx)(i.Primitive.div,{role:"tablist","aria-orientation":c.orientation,...o,ref:t})})});y.displayName=g;var v="TabsTrigger",j=t.forwardRef((e,t)=>{let{__scopeTabs:r,value:o,disabled:c=!1,...l}=e,d=f(v,r),u=x(r),m=S(d.baseId,o),p=C(d.baseId,o),h=o===d.value;return(0,s.jsx)(a.Item,{asChild:!0,...u,focusable:!c,active:h,children:(0,s.jsx)(i.Primitive.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:m,...l,ref:t,onMouseDown:(0,n.composeEventHandlers)(e.onMouseDown,e=>{c||0!==e.button||!1!==e.ctrlKey?e.preventDefault():d.onValueChange(o)}),onKeyDown:(0,n.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&d.onValueChange(o)}),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==d.activationMode;h||c||!e||d.onValueChange(o)})})})});j.displayName=v;var F="TabsContent",I=t.forwardRef((e,n)=>{let{__scopeTabs:r,value:a,forceMount:c,children:l,...d}=e,u=f(F,r),m=S(u.baseId,a),p=C(u.baseId,a),x=a===u.value,h=t.useRef(x);return t.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.jsx)(o.Presence,{present:c||x,children:({present:t})=>(0,s.jsx)(i.Primitive.div,{"data-state":x?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":m,hidden:!t,id:p,tabIndex:0,...d,ref:n,style:{...e.style,animationDuration:h.current?"0s":void 0},children:t&&l})})});function S(e,s){return`${e}-trigger-${s}`}function C(e,s){return`${e}-content-${s}`}I.displayName=F;var N=e.i(76490);let k=t.forwardRef(({className:e,...t},n)=>(0,s.jsx)(y,{ref:n,className:(0,N.cn)("inline-flex h-10 items-center justify-center rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--secondary))] p-1 text-muted-foreground shadow-[inset_0_1px_2px_rgba(15,23,42,0.04)]",e),...t}));k.displayName=y.displayName;let K=t.forwardRef(({className:e,...t},n)=>(0,s.jsx)(j,{ref:n,className:(0,N.cn)("inline-flex h-8 items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-3.5 text-sm font-medium","ring-offset-[hsl(var(--background))] transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","hover:text-foreground","data-[state=active]:bg-[hsl(var(--background))]","data-[state=active]:text-[hsl(var(--primary))]","data-[state=active]:shadow-[0_1px_2px_rgba(15,23,42,0.08),0_0_0_1px_hsl(var(--border))]","data-[state=active]:font-semibold",e),...t}));K.displayName=j.displayName;let T=t.forwardRef(({className:e,...t},n)=>(0,s.jsx)(I,{ref:n,className:(0,N.cn)("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));T.displayName=I.displayName,e.s(["Tabs",0,b,"TabsContent",0,T,"TabsList",0,k,"TabsTrigger",0,K],47421)},47474,e=>{"use strict";var s=e.i(44501),t=e.i(17635),n=e.i(88310),r=e.i(80883),a=e.i(43754),o=e.i(32356);let i=o.z.string().trim().regex(/^[a-z0-9-]{1,32}$/,"名称需为 1-32 位小写字母、数字或连字符").refine(e=>"default"!==e,'名称 "default" 为保留字'),c=(e,s=512)=>o.z.string().trim().min(1,`请输入${e}`).max(s),l=(e=512)=>o.z.string().trim().max(e).optional().or(o.z.literal("")),d=o.z.object({name:i,accessKeyId:c("AccessKey ID",128),accessKeySecret:c("AccessKey Secret",512),otsEndpoint:c("OTS Endpoint",256),otsInstanceName:c("OTS 实例名",128),ossEndpoint:l(256),ossBucketName:l(128),region:l(64),activate:o.z.boolean().optional()});o.z.object({accessKeyId:l(128),accessKeySecret:l(512),otsEndpoint:l(256),otsInstanceName:l(128),ossEndpoint:l(256),ossBucketName:l(128),region:l(64),activate:o.z.boolean().optional()}).refine(e=>{let s=!!(e.accessKeyId&&e.accessKeyId.length>0);return!!(e.accessKeySecret&&e.accessKeySecret.length>0)===s},{message:"AccessKey ID 与 Secret 必须成对更新,要么同时填写、要么同时留空",path:["accessKeySecret"]});let u=o.z.object({name:i,accessKeyId:l(128),accessKeySecret:l(512),otsEndpoint:c("OTS Endpoint",256),otsInstanceName:c("OTS 实例名",128),ossEndpoint:l(256),ossBucketName:l(128),region:l(64),activate:o.z.boolean().optional()}).refine(e=>{let s=!!(e.accessKeyId&&e.accessKeyId.length>0);return!!(e.accessKeySecret&&e.accessKeySecret.length>0)===s},{message:"AccessKey ID 与 Secret 必须成对更新,要么同时填写、要么同时留空",path:["accessKeySecret"]}),m=o.z.object({token:o.z.string().trim().min(10,"Token 长度不足,无法解析").max(4096),name:i.optional(),activate:o.z.boolean().optional()});var p=e.i(42595),x=e.i(21562),h=e.i(23888),f=e.i(66473),b=e.i(47421),g=e.i(45123);let y=d.extend({otsEndpoint:o.z.string().trim().url("请输入合法的 OTS Endpoint URL"),ossEndpoint:o.z.string().trim().url("请输入合法的 OSS Endpoint URL").optional().or(o.z.literal(""))}),v=m.pick({token:!0}),j=[{value:"cn-beijing",label:"华北 2(北京)"},{value:"cn-hangzhou",label:"华东 1(杭州)"},{value:"cn-shanghai",label:"华东 2(上海)"},{value:"cn-shenzhen",label:"华南 1(深圳)"},{value:"__custom__",label:"其它(自定义)"}];e.s(["ConnectInstanceForm",0,function({mode:e,defaultValues:o,accessKeyIdPlaceholder:i,accessKeySecretPlaceholder:c,onSubmit:l,busy:d,lockName:m,submitLabel:F}){let[I,S]=(0,t.useState)("manual"),C="edit"===e,N=o?.region??"cn-hangzhou",k=(0,t.useMemo)(()=>j.some(e=>e.value===N),[N]),[K,T]=(0,t.useState)(k?N:"__custom__"),E=(0,t.useMemo)(()=>(0,n.zodResolver)(C?u:y),[C]),w=(0,r.useForm)({resolver:E,defaultValues:{name:o?.name??"",accessKeyId:C?"":o?.accessKeyId??"",accessKeySecret:C?"":o?.accessKeySecret??"",otsEndpoint:o?.otsEndpoint??"",otsInstanceName:o?.otsInstanceName??"",ossEndpoint:o?.ossEndpoint??"",ossBucketName:o?.ossBucketName??"",region:N}}),R=(0,r.useForm)({resolver:(0,n.zodResolver)(v),defaultValues:{token:""}});async function _(e){let s=e.ossEndpoint?.trim()||void 0,t=e.ossBucketName?.trim()||void 0;s&&t&&(s=function(e,s){try{let t=new URL(e);if(t.hostname.startsWith(`${s}.`))return t.hostname=t.hostname.slice(s.length+1),t.toString().replace(/\/$/,"")}catch{}return e}(s,t));let n={...e,ossEndpoint:s,ossBucketName:t};await l(n)}async function z(e){let s={token:e.token.trim()};await l(s)}let M="create"===e;return(0,s.jsxs)(b.Tabs,{value:I,onValueChange:e=>S(e),className:"w-full",children:[M&&(0,s.jsxs)(b.TabsList,{className:"grid w-full grid-cols-2",children:[(0,s.jsx)(b.TabsTrigger,{value:"manual",children:"手动填写"}),(0,s.jsx)(b.TabsTrigger,{value:"token",children:"导入 Token"})]}),(0,s.jsx)(b.TabsContent,{value:"manual",className:"mt-4",children:(0,s.jsx)(x.Form,{...w,children:(0,s.jsxs)("form",{onSubmit:w.handleSubmit(_),className:"space-y-4",children:[(0,s.jsx)(x.FormField,{control:w.control,name:"name",render:({field:e})=>(0,s.jsxs)(x.FormItem,{children:[(0,s.jsx)(x.FormLabel,{children:"项目名称"}),(0,s.jsx)(x.FormControl,{children:(0,s.jsx)(h.Input,{...e,placeholder:"prod-main",disabled:m||d,autoComplete:"off"})}),(0,s.jsx)(x.FormDescription,{children:"仅用于本地区分,不会发送到服务端。"}),(0,s.jsx)(x.FormMessage,{})]})}),(0,s.jsx)(x.FormField,{control:w.control,name:"region",render:({field:e})=>(0,s.jsxs)(x.FormItem,{children:[(0,s.jsx)(x.FormLabel,{children:"Region"}),"__custom__"===K?(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(x.FormControl,{children:(0,s.jsx)(h.Input,{...e,placeholder:"cn-xxx",disabled:d})}),(0,s.jsx)(p.Button,{type:"button",variant:"outline",size:"sm",onClick:()=>{T("cn-hangzhou"),e.onChange("cn-hangzhou")},disabled:d,children:"使用预设"})]}):(0,s.jsxs)(f.Select,{value:K,onValueChange:s=>{T(s),"__custom__"!==s?e.onChange(s):e.onChange("")},disabled:d,children:[(0,s.jsx)(x.FormControl,{children:(0,s.jsx)(f.SelectTrigger,{children:(0,s.jsx)(f.SelectValue,{})})}),(0,s.jsx)(f.SelectContent,{children:j.map(e=>(0,s.jsx)(f.SelectItem,{value:e.value,children:e.label},e.value))})]}),(0,s.jsx)(x.FormMessage,{})]})}),(0,s.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,s.jsx)(x.FormField,{control:w.control,name:"accessKeyId",render:({field:e})=>(0,s.jsxs)(x.FormItem,{children:[(0,s.jsx)(x.FormLabel,{children:"AccessKey ID"}),(0,s.jsx)(x.FormControl,{children:(0,s.jsx)(h.Input,{...e,autoComplete:"off",disabled:d,placeholder:C&&i?`${i} \xb7 留空表示保留`:void 0})}),C&&(0,s.jsx)(x.FormDescription,{children:"AK 与 SK 必须成对更新,留空则保留现有凭证。"}),(0,s.jsx)(x.FormMessage,{})]})}),(0,s.jsx)(x.FormField,{control:w.control,name:"accessKeySecret",render:({field:e})=>(0,s.jsxs)(x.FormItem,{children:[(0,s.jsx)(x.FormLabel,{children:"AccessKey Secret"}),(0,s.jsx)(x.FormControl,{children:(0,s.jsx)(h.Input,{...e,type:"password",autoComplete:"new-password",disabled:d})}),(0,s.jsx)(x.FormMessage,{})]})})]}),(0,s.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,s.jsx)(x.FormField,{control:w.control,name:"otsEndpoint",render:({field:e})=>(0,s.jsxs)(x.FormItem,{children:[(0,s.jsx)(x.FormLabel,{children:"OTS Endpoint"}),(0,s.jsx)(x.FormControl,{children:(0,s.jsx)(h.Input,{...e,placeholder:"https://xxx.cn-hangzhou.ots.aliyuncs.com",disabled:d})}),(0,s.jsx)(x.FormMessage,{})]})}),(0,s.jsx)(x.FormField,{control:w.control,name:"otsInstanceName",render:({field:e})=>(0,s.jsxs)(x.FormItem,{children:[(0,s.jsx)(x.FormLabel,{children:"OTS 实例名"}),(0,s.jsx)(x.FormControl,{children:(0,s.jsx)(h.Input,{...e,disabled:d})}),(0,s.jsx)(x.FormMessage,{})]})})]}),(0,s.jsxs)("div",{className:"flex items-start gap-2 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--muted)/0.4)] px-3 py-2 text-xs text-[hsl(var(--muted-foreground))]",children:[(0,s.jsx)(a.Info,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-[hsl(var(--primary))]"}),(0,s.jsx)("span",{children:"OSS 信息为可选项。若需上传文档到知识库,OSS Endpoint 与 Bucket 必填; 留空则项目只能用于查询与检索,文件上传功能将不可用。"})]}),(0,s.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,s.jsx)(x.FormField,{control:w.control,name:"ossEndpoint",render:({field:e})=>(0,s.jsxs)(x.FormItem,{children:[(0,s.jsx)(x.FormLabel,{children:"OSS Endpoint(可选)"}),(0,s.jsx)(x.FormControl,{children:(0,s.jsx)(h.Input,{...e,placeholder:"https://oss-cn-hangzhou.aliyuncs.com",disabled:d})}),(0,s.jsx)(x.FormMessage,{})]})}),(0,s.jsx)(x.FormField,{control:w.control,name:"ossBucketName",render:({field:e})=>(0,s.jsxs)(x.FormItem,{children:[(0,s.jsx)(x.FormLabel,{children:"OSS Bucket(可选)"}),(0,s.jsx)(x.FormControl,{children:(0,s.jsx)(h.Input,{...e,disabled:d})}),(0,s.jsx)(x.FormMessage,{})]})})]}),(0,s.jsx)("div",{className:"flex justify-end pt-2",children:(0,s.jsx)(p.Button,{type:"submit",disabled:d,children:d?"提交中...":F??("edit"===e?"保存":"创建项目")})})]})})}),M&&(0,s.jsx)(b.TabsContent,{value:"token",className:"mt-4",children:(0,s.jsx)(x.Form,{...R,children:(0,s.jsxs)("form",{onSubmit:R.handleSubmit(z),className:"space-y-4",children:[(0,s.jsx)(x.FormField,{control:R.control,name:"token",render:({field:e})=>(0,s.jsxs)(x.FormItem,{children:[(0,s.jsx)(x.FormLabel,{children:"项目 Token"}),(0,s.jsx)(x.FormControl,{children:(0,s.jsx)(g.Textarea,{...e,rows:5,placeholder:"粘贴从其他环境导出的项目 Token",disabled:d})}),(0,s.jsx)(x.FormDescription,{children:"Token 中已包含 AK/SK、Endpoint 等全部连接信息。"}),(0,s.jsx)(x.FormMessage,{})]})}),(0,s.jsx)("div",{className:"flex justify-end pt-2",children:(0,s.jsx)(p.Button,{type:"submit",disabled:d,children:d?"导入中...":"导入并连接"})})]})})})]})}],47474)},53859,59387,e=>{"use strict";var s=e.i(37500),t=e.i(43876),n=e.i(12984),r=e.i(87014),a=e.i(93321);async function o(){return(0,a.apiGet)("/api/v1/instances")}async function i(e){return(0,a.apiGet)(`/api/v1/instances/${encodeURIComponent(e)}`)}async function c(e){return(0,a.apiPost)("/api/v1/instances",e)}async function l(e){return(0,a.apiPost)("/api/v1/instances",e)}async function d(e,s){return(0,a.apiPut)(`/api/v1/instances/${encodeURIComponent(e)}`,s)}async function u(e){return(0,a.apiDelete)(`/api/v1/instances/${encodeURIComponent(e)}`)}async function m(e){return(0,a.apiPost)(`/api/v1/instances/${encodeURIComponent(e)}/use`)}async function p(e){return(0,a.apiGet)(`/api/v1/instances/${encodeURIComponent(e)}/token`)}var x=e.i(47570),h=e.i(7166);function f(e){(0,x.invalidateInstanceScopedQueries)(e)}function b(e){(0,x.resetInstanceScopedQueries)(e)}function g(e){e.invalidateQueries({queryKey:x.RUNTIME_CONTEXT_QUERY_KEY})}e.s(["useConnectInstance",0,function(){let e=(0,n.useQueryClient)();return(0,s.useMutation)({mutationFn:e=>c(e),onSuccess:()=>{b(e),g(e),r.toast.success("项目已创建")},onError:e=>{r.toast.error(e instanceof Error?e.message:"创建项目失败")}})},"useDeleteInstance",0,function(){let e=(0,n.useQueryClient)();return(0,s.useMutation)({mutationFn:e=>u(e),onSuccess:()=>{f(e),g(e),r.toast.success("项目已删除")},onError:e=>{r.toast.error(e instanceof Error?e.message:"删除项目失败")}})},"useExportInstanceToken",0,function(){return(0,s.useMutation)({mutationFn:e=>p(e),onError:e=>{r.toast.error(e instanceof Error?e.message:"导出 Token 失败")}})},"useImportInstance",0,function(){let e=(0,n.useQueryClient)();return(0,s.useMutation)({mutationFn:e=>l(e),onSuccess:()=>{b(e),g(e),r.toast.success("Token 已导入")},onError:e=>{r.toast.error(e instanceof Error?e.message:"导入 Token 失败")}})},"useInstance",0,function(e){let{context:s,ready:n}=(0,h.useRuntimeContext)();return(0,t.useQuery)({queryKey:x.queryKeys.instance(s.dataScopeKey,e),queryFn:()=>i(e),enabled:n&&!!e,staleTime:3e4})},"useInstances",0,function(){let{context:e,ready:s}=(0,h.useRuntimeContext)();return(0,t.useQuery)({queryKey:x.queryKeys.instances(e.dataScopeKey),queryFn:o,enabled:s,staleTime:3e4})},"useSwitchInstance",0,function(){let e=(0,n.useQueryClient)(),{context:t}=(0,h.useRuntimeContext)();return(0,s.useMutation)({mutationFn:e=>m(e),onSuccess:({activeInstance:s})=>{(0,h.markDashboardRuntimeContextChange)(window.sessionStorage,{previousDataScopeKey:t.dataScopeKey,targetActiveInstance:s}),b(e),g(e),r.toast.success("已切换当前项目")},onError:e=>{r.toast.error(e instanceof Error?e.message:"切换项目失败")}})},"useUpdateInstance",0,function(e){let t=(0,n.useQueryClient)();return(0,s.useMutation)({mutationFn:s=>d(e,s),onSuccess:()=>{f(t),t.invalidateQueries({queryKey:["instance"]}),g(t),r.toast.success("项目已更新")},onError:e=>{r.toast.error(e instanceof Error?e.message:"更新项目失败")}})}],53859),e.s(["isImportPayload",0,function(e){return"string"==typeof e.token}],59387)},24883,e=>{"use strict";var s=e.i(44501),t=e.i(65581),n=e.i(34752),r=e.i(47474),a=e.i(53859),o=e.i(59387);e.s(["default",0,function(){let e=(0,t.useRouter)(),i=(0,a.useConnectInstance)(),c=(0,a.useImportInstance)(),l=i.isPending||c.isPending;async function d(s){(0,o.isImportPayload)(s)?await c.mutateAsync(s):await i.mutateAsync(s),e.replace("/chat")}return(0,s.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,s.jsxs)("header",{className:"flex flex-col items-center gap-3 text-center",children:[(0,s.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-primary/10 text-primary",children:(0,s.jsx)(n.Sparkles,{className:"h-6 w-6"})}),(0,s.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:"欢迎使用 Agent Storage"}),(0,s.jsx)("p",{className:"max-w-md text-sm text-muted-foreground",children:"创建你的第一个项目,即可开始管理知识库、记忆库与对话。"})]}),(0,s.jsx)("div",{className:"rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] p-6 shadow-sm sm:p-8",children:(0,s.jsx)(r.ConnectInstanceForm,{mode:"create",onSubmit:d,busy:l,submitLabel:"连接并开始使用"})}),(0,s.jsx)("p",{className:"text-center text-xs text-muted-foreground",children:"随时可以通过侧边栏的实例切换器或「项目管理」页创建更多项目。"})]})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37500,e=>{"use strict";var t=e.i(17635),r=e.i(87097),i=e.i(32534),n=e.i(23144),s=e.i(58859),o=class extends n.Subscribable{#e;#t=void 0;#r;#i;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,s.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.hashKey)(t.mutationKey)!==(0,s.hashKey)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#s()}mutate(e,t){return this.#i=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#n(){let e=this.#r?.state??(0,r.getDefaultState)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#s(e){i.notifyManager.batch(()=>{if(this.#i&&this.hasListeners()){let t=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#i.onSuccess?.(e.data,t,r,i)}catch(e){Promise.reject(e)}try{this.#i.onSettled?.(e.data,null,t,r,i)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#i.onError?.(e.error,t,r,i)}catch(e){Promise.reject(e)}try{this.#i.onSettled?.(void 0,e.error,t,r,i)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},l=e.i(12984);e.s(["useMutation",0,function(e,r){let n=(0,l.useQueryClient)(r),[a]=t.useState(()=>new o(n,e));t.useEffect(()=>{a.setOptions(e)},[a,e]);let u=t.useSyncExternalStore(t.useCallback(e=>a.subscribe(i.notifyManager.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=t.useCallback((e,t)=>{a.mutate(e,t).catch(s.noop)},[a]);if(u.error&&(0,s.shouldThrowError)(a.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:c,mutateAsync:u.mutate}}],37500)},66476,50110,e=>{"use strict";var t=e.i(44501),r=e.i(17635);e.i(80560);var i=e.i(6102),n=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let s=(0,i.createSlot)(`Primitive.${n}`),o=r.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(i?s:n,{...o,ref:r})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{});e.s(["Primitive",0,n],50110);var s=r.forwardRef((e,r)=>(0,t.jsx)(n.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var o=e.i(94237),l=e.i(76490);let a=(0,o.cva)("text-sm font-medium leading-none text-[hsl(var(--foreground))] peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),u=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)(s,{ref:i,className:(0,l.cn)(a(),e),...r}));u.displayName=s.displayName,e.s(["Label",0,u],66476)},7284,e=>{"use strict";e.s(["clsx",0,function(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=function e(t){var r,i,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(i=e(t[r]))&&(n&&(n+=" "),n+=i)}else for(i in t)t[i]&&(n&&(n+=" "),n+=i);return n}(e))&&(i&&(i+=" "),i+=t);return i}])},67928,e=>{"use strict";var t=e.i(17635);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let i=!1,n=e.map(e=>{let n=r(e,t);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let t=0;t<n.length;t++){let i=n[t];"function"==typeof i?i():r(e[t],null)}}}}e.s(["composeRefs",0,i,"useComposedRefs",0,function(...e){return t.useCallback(i(...e),e)}])},6102,e=>{"use strict";var t=e.i(17635),r=e.i(67928),i=e.i(44501),n=Symbol.for("react.lazy"),s=t[" use ".trim().toString()];function o(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===n&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function l(e){var n;let l,a=(n=e,(l=t.forwardRef((e,i)=>{let{children:n,...l}=e;if(o(n)&&"function"==typeof s&&(n=s(n._payload)),t.isValidElement(n)){var a;let e,s,o=(a=n,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let i in t){let n=e[i],s=t[i];/^on[A-Z]/.test(i)?n&&s?r[i]=(...e)=>{let t=s(...e);return n(...e),t}:n&&(r[i]=n):"style"===i?r[i]={...n,...s}:"className"===i&&(r[i]=[n,s].filter(Boolean).join(" "))}return{...e,...r}}(l,n.props);return n.type!==t.Fragment&&(u.ref=i?(0,r.composeRefs)(i,o):o),t.cloneElement(n,u)}return t.Children.count(n)>1?t.Children.only(null):null})).displayName=`${n}.SlotClone`,l),u=t.forwardRef((e,r)=>{let{children:n,...l}=e;o(n)&&"function"==typeof s&&(n=s(n._payload));let u=t.Children.toArray(n),f=u.find(c);if(f){let e=f.props.children,n=u.map(r=>r!==f?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,i.jsx)(a,{...l,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,i.jsx)(a,{...l,ref:r,children:n})});return u.displayName=`${e}.Slot`,u}var a=l("Slot"),u=Symbol("radix.slottable");function c(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}e.s(["Slot",0,a,"createSlot",0,l])},94237,e=>{"use strict";var t=e.i(7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=t.clsx;e.s(["cva",0,(e,t)=>n=>{var s;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:l}=t,a=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],i=null==l?void 0:l[e];if(null===t)return null;let s=r(t)||r(i);return o[e][s]}),u=n&&Object.entries(n).reduce((e,t)=>{let[r,i]=t;return void 0===i||(e[r]=i),e},{});return i(e,a,null==t||null==(s=t.compoundVariants)?void 0:s.reduce((e,t)=>{let{class:r,className:i,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...u}[t]):({...l,...u})[t]===r})?[...e,r,i]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}])},76490,e=>{"use strict";var t=e.i(7284),r=e.i(77130);e.s(["cn",0,function(...e){return(0,r.twMerge)((0,t.clsx)(e))},"extractFileName",0,function(e){let t=e.split("/");return t[t.length-1]||e}])},42595,e=>{"use strict";var t=e.i(44501),r=e.i(17635),i=e.i(6102),n=e.i(94237),s=e.i(76490);let o=(0,n.cva)("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--primary)/0.3)] focus-visible:ring-offset-1 focus-visible:ring-offset-[hsl(var(--background))] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] shadow-sm hover:opacity-90",destructive:"bg-[hsl(var(--destructive))] text-[hsl(var(--destructive-foreground))] shadow-sm hover:opacity-90",outline:"border border-[hsl(var(--border))] bg-[hsl(var(--card))] text-[hsl(var(--foreground))] shadow-sm hover:border-[hsl(var(--primary))] hover:text-[hsl(var(--primary))]",secondary:"bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] shadow-sm hover:opacity-80",ghost:"hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]",link:"text-[hsl(var(--primary))] underline-offset-4 hover:underline"},size:{default:"h-8 px-3 py-1",sm:"h-7 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-4",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),l=r.forwardRef(({className:e,variant:r,size:n,asChild:l=!1,...a},u)=>{let c=l?i.Slot:"button";return(0,t.jsx)(c,{className:(0,s.cn)(o({variant:r,size:n,className:e})),ref:u,...a})});l.displayName="Button",e.s(["Button",0,l])},86620,e=>{"use strict";var t=e.i(17635);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,t.createContext)({}),o=(0,t.forwardRef)(({color:e,size:i,strokeWidth:o,absoluteStrokeWidth:l,className:a="",children:u,iconNode:c,...f},d)=>{let{size:h=24,strokeWidth:p=2,absoluteStrokeWidth:m=!1,color:v="currentColor",className:y=""}=(0,t.useContext)(s)??{},b=l??m?24*Number(o??p)/Number(i??h):o??p;return(0,t.createElement)("svg",{ref:d,...n,width:i??h??n.width,height:i??h??n.height,stroke:e??v,strokeWidth:b,className:r("lucide",y,a),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(f)&&{"aria-hidden":"true"},...f},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(u)?u:[u]])});e.s(["default",0,(e,n)=>{let s=(0,t.forwardRef)(({className:s,...l},a)=>(0,t.createElement)(o,{ref:a,iconNode:n,className:r(`lucide-${i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,s),...l}));return s.displayName=i(e),s}],86620)},23888,e=>{"use strict";var t=e.i(44501),r=e.i(17635),i=e.i(76490);let n=r.forwardRef(({className:e,type:r,...n},s)=>(0,t.jsx)("input",{type:r,className:(0,i.cn)("flex h-8 w-full rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] px-3 py-1 text-sm transition-colors","file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground","placeholder:text-[hsl(var(--subtle))]","focus-visible:outline-none focus-visible:border-[hsl(var(--primary))] focus-visible:ring-2 focus-visible:ring-[hsl(var(--primary)/0.2)] focus-visible:ring-offset-0","disabled:cursor-not-allowed disabled:bg-[hsl(var(--secondary))] disabled:text-[hsl(var(--muted-foreground))]",e),ref:s,...n}));n.displayName="Input",e.s(["Input",0,n])},47791,e=>{"use strict";var t=e.i(17635),r=e.i(80939),i=e.i(44501),n=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=t.forwardRef((e,t)=>(0,i.jsx)(r.Primitive.span,{...e,ref:t,style:{...n,...e.style}}));s.displayName="VisuallyHidden",e.s(["Root",0,s,"VISUALLY_HIDDEN_STYLES",0,n])},90088,e=>{"use strict";var t=e.i(17635),r=e.i(67928),i=e.i(72687),n=e=>{var n;let o,l,{present:a,children:u}=e,c=function(e){var r,n;let[o,l]=t.useState(),a=t.useRef(null),u=t.useRef(e),c=t.useRef("none"),[f,d]=(r=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>n[e][t]??e,r));return t.useEffect(()=>{let e=s(a.current);c.current="mounted"===f?e:"none"},[f]),(0,i.useLayoutEffect)(()=>{let t=a.current,r=u.current;if(r!==e){let i=c.current,n=s(t);e?d("MOUNT"):"none"===n||t?.display==="none"?d("UNMOUNT"):r&&i!==n?d("ANIMATION_OUT"):d("UNMOUNT"),u.current=e}},[e,d]),(0,i.useLayoutEffect)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,r=r=>{let i=s(a.current).includes(CSS.escape(r.animationName));if(r.target===o&&i&&(d("ANIMATION_END"),!u.current)){let r=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=r)})}},i=e=>{e.target===o&&(c.current=s(a.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:t.useCallback(e=>{a.current=e?getComputedStyle(e):null,l(e)},[])}}(a),f="function"==typeof u?u({present:c.isPresent}):t.Children.only(u),d=(0,r.useComposedRefs)(c.ref,(n=f,(l=(o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?n.ref:(l=(o=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?n.props.ref:n.props.ref||n.ref));return"function"==typeof u||c.isPresent?t.cloneElement(f,{ref:d}):null};function s(e){return e?.animationName||"none"}n.displayName="Presence",e.s(["Presence",0,n])},6703,e=>{"use strict";let t=(0,e.i(86620).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],6703)},41986,25486,e=>{"use strict";var t=e.i(17635),r=e.i(43250),i=e.i(67928),n=e.i(52053),s=e.i(44501),o=new WeakMap;function l(e,t){var r,i;let n,s,o;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,i=t,n=r.length,(o=(s=a(i))>=0?s:n+s)<0||o>=n?-1:o);return -1===l?void 0:e[l]}function a(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#o;constructor(e){super(e),this.#o=[...super.keys()],o.set(this,!0)}set(e,t){return o.get(this)&&(this.has(e)?this.#o[this.#o.indexOf(e)]=e:this.#o.push(e)),super.set(e,t),this}insert(e,t,r){let i,n=this.has(t),s=this.#o.length,o=a(e),l=o>=0?o:s+o,u=l<0||l>=s?-1:l;if(u===this.size||n&&u===this.size-1||-1===u)return this.set(t,r),this;let c=this.size+ +!n;o<0&&l++;let f=[...this.#o],d=!1;for(let e=l;e<c;e++)if(l===e){let s=f[e];f[e]===t&&(s=f[e+1]),n&&this.delete(t),i=this.get(s),this.set(t,r)}else{d||f[e-1]!==t||(d=!0);let r=f[d?e:e-1],n=i;i=this.get(r),this.delete(r),this.set(r,n)}return this}with(t,r,i){let n=new e(this);return n.insert(t,r,i),n}before(e){let t=this.#o.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let i=this.#o.indexOf(e);return -1===i?this:this.insert(i,t,r)}after(e){let t=this.#o.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let i=this.#o.indexOf(e);return -1===i?this:this.insert(i+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#o=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#o.splice(this.#o.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=l(this.#o,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=l(this.#o,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#o.indexOf(e)}keyAt(e){return l(this.#o,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let i=r+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let i=r+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return i;r++}}findIndex(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return r;r++}return -1}filter(t,r){let i=[],n=0;for(let e of this)Reflect.apply(t,r,[e,n,this])&&i.push(e),n++;return new e(i)}map(t,r){let i=[],n=0;for(let e of this)i.push([e[0],Reflect.apply(t,r,[e,n,this])]),n++;return new e(i)}reduce(...e){let[t,r]=e,i=0,n=r??this.at(0);for(let r of this)n=0===i&&1===e.length?r:Reflect.apply(t,this,[n,r,i,this]),i++;return n}reduceRight(...e){let[t,r]=e,i=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let n=this.at(r);i=r===this.size-1&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),i=this.get(r);t.set(r,i)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let i=new e,n=this.size-1;if(void 0===t)return i;t<0&&(t+=this.size),void 0!==r&&r>0&&(n=r-1);for(let e=t;e<=n;e++){let t=this.keyAt(e),r=this.get(t);i.set(t,r)}return i}every(e,t){let r=0;for(let i of this){if(!Reflect.apply(e,t,[i,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return!0;r++}return!1}}),e.s(["createCollection",0,function(e){let o=e+"CollectionProvider",[l,a]=(0,r.createContextScope)(o),[u,c]=l(o,{collectionRef:{current:null},itemMap:new Map}),f=e=>{let{scope:r,children:i}=e,n=t.default.useRef(null),o=t.default.useRef(new Map).current;return(0,s.jsx)(u,{scope:r,itemMap:o,collectionRef:n,children:i})};f.displayName=o;let d=e+"CollectionSlot",h=(0,n.createSlot)(d),p=t.default.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=c(d,r),l=(0,i.useComposedRefs)(t,o.collectionRef);return(0,s.jsx)(h,{ref:l,children:n})});p.displayName=d;let m=e+"CollectionItemSlot",v="data-radix-collection-item",y=(0,n.createSlot)(m),b=t.default.forwardRef((e,r)=>{let{scope:n,children:o,...l}=e,a=t.default.useRef(null),u=(0,i.useComposedRefs)(r,a),f=c(m,n);return t.default.useEffect(()=>(f.itemMap.set(a,{ref:a,...l}),()=>void f.itemMap.delete(a))),(0,s.jsx)(y,{...{[v]:""},ref:u,children:o})});return b.displayName=m,[{Provider:f,Slot:p,ItemSlot:b},function(r){let i=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=i.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(i.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[i.collectionRef,i.itemMap])},a]}],41986);var u=t.createContext(void 0);e.s(["useDirection",0,function(e){let r=t.useContext(u);return e||r||"ltr"}],25486)},77275,e=>{"use strict";var t=e.i(17635),r=e.i(91967),i=e.i(41986),n=e.i(67928),s=e.i(43250),o=e.i(33616),l=e.i(80939),a=e.i(36131),u=e.i(17256),c=e.i(25486),f=e.i(44501),d="rovingFocusGroup.onEntryFocus",h={bubbles:!1,cancelable:!0},p="RovingFocusGroup",[m,v,y]=(0,i.createCollection)(p),[b,g]=(0,s.createContextScope)(p,[y]),[w,x]=b(p),R=t.forwardRef((e,t)=>(0,f.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(O,{...e,ref:t})})}));R.displayName=p;var O=t.forwardRef((e,i)=>{let{__scopeRovingFocusGroup:s,orientation:o,loop:m=!1,dir:y,currentTabStopId:b,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:x,onEntryFocus:R,preventScrollOnEntryFocus:O=!1,...C}=e,A=t.useRef(null),S=(0,n.useComposedRefs)(i,A),N=(0,c.useDirection)(y),[k,E]=(0,u.useControllableState)({prop:b,defaultProp:g??null,onChange:x,caller:p}),[j,I]=t.useState(!1),T=(0,a.useCallbackRef)(R),P=v(s),D=t.useRef(!1),[L,F]=t.useState(0);return t.useEffect(()=>{let e=A.current;if(e)return e.addEventListener(d,T),()=>e.removeEventListener(d,T)},[T]),(0,f.jsx)(w,{scope:s,orientation:o,dir:N,loop:m,currentTabStopId:k,onItemFocus:t.useCallback(e=>E(e),[E]),onItemShiftTab:t.useCallback(()=>I(!0),[]),onFocusableItemAdd:t.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>F(e=>e-1),[]),children:(0,f.jsx)(l.Primitive.div,{tabIndex:j||0===L?-1:0,"data-orientation":o,...C,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{D.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!D.current;if(e.target===e.currentTarget&&t&&!j){let t=new CustomEvent(d,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);M([e.find(e=>e.active),e.find(e=>e.id===k),...e].filter(Boolean).map(e=>e.ref.current),O)}}D.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>I(!1))})})}),C="RovingFocusGroupItem",A=t.forwardRef((e,i)=>{let{__scopeRovingFocusGroup:n,focusable:s=!0,active:a=!1,tabStopId:u,children:c,...d}=e,h=(0,o.useId)(),p=u||h,y=x(C,n),b=y.currentTabStopId===p,g=v(n),{onFocusableItemAdd:w,onFocusableItemRemove:R,currentTabStopId:O}=y;return t.useEffect(()=>{if(s)return w(),()=>R()},[s,w,R]),(0,f.jsx)(m.ItemSlot,{scope:n,id:p,focusable:s,active:a,children:(0,f.jsx)(l.Primitive.span,{tabIndex:b?0:-1,"data-orientation":y.orientation,...d,ref:i,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{s?y.onItemFocus(p):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>y.onItemFocus(p)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void y.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var i;let n=(i=e.key,"rtl"!==r?i:"ArrowLeft"===i?"ArrowRight":"ArrowRight"===i?"ArrowLeft":i);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return S[n]}(e,y.orientation,y.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){var r,i;"prev"===t&&n.reverse();let s=n.indexOf(e.currentTarget);n=y.loop?(r=n,i=s+1,r.map((e,t)=>r[(i+t)%r.length])):n.slice(s+1)}setTimeout(()=>M(n))}}),children:"function"==typeof c?c({isCurrentTabStop:b,hasTabStop:null!=O}):c})})});A.displayName=C;var S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function M(e,t=!1){let r=document.activeElement;for(let i of e)if(i===r||(i.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",0,A,"Root",0,R,"createRovingFocusGroupScope",0,g])}]);
|
package/dist/dashboard-runtime/dashboard/.next/static/chunks/{154aheeo3m6bg.js → 0bpginsuceywq.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,9823,e=>{"use strict";let t=(0,e.i(86620).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",0,t],9823)},30068,e=>{"use strict";let t=(0,e.i(86620).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],30068)},74792,e=>{"use strict";var t=e.i(44501),s=e.i(17635),r=e.i(9823),a=e.i(30068),i=e.i(42595),d=e.i(33362);e.s(["default",0,function({error:e,reset:l}){return(0,s.useEffect)(()=>{console.error("Dashboard route error:",e),(0,d.reportClientError)({event:"browser.error_boundary.dashboard",message:e.message,name:e.name,stack:e.stack,digest:e.digest})},[e]),(0,t.jsxs)("div",{className:"flex min-h-[60vh] flex-col items-center justify-center gap-6 px-4 text-center",children:[(0,t.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-destructive/10 text-destructive",children:(0,t.jsx)(r.AlertTriangle,{className:"h-7 w-7","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"space-y-2 max-w-md",children:[(0,t.jsx)("h2",{className:"
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,9823,e=>{"use strict";let t=(0,e.i(86620).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",0,t],9823)},30068,e=>{"use strict";let t=(0,e.i(86620).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],30068)},74792,e=>{"use strict";var t=e.i(44501),s=e.i(17635),r=e.i(9823),a=e.i(30068),i=e.i(42595),d=e.i(33362);e.s(["default",0,function({error:e,reset:l}){return(0,s.useEffect)(()=>{console.error("Dashboard route error:",e),(0,d.reportClientError)({event:"browser.error_boundary.dashboard",message:e.message,name:e.name,stack:e.stack,digest:e.digest})},[e]),(0,t.jsxs)("div",{className:"flex min-h-[60vh] flex-col items-center justify-center gap-6 px-4 text-center",children:[(0,t.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-destructive/10 text-destructive",children:(0,t.jsx)(r.AlertTriangle,{className:"h-7 w-7","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"space-y-2 max-w-md",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold tracking-tight text-foreground",children:"页面出错了"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground break-words",children:e.message||"发生了未知错误,请稍后重试。"}),e.digest?(0,t.jsxs)("p",{className:"text-xs text-muted-foreground/70",children:["错误编号:",(0,t.jsx)("code",{className:"font-mono",children:e.digest})]}):null]}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsxs)(i.Button,{onClick:l,variant:"default",children:[(0,t.jsx)(a.RefreshCw,{className:"mr-2 h-4 w-4","aria-hidden":"true"}),"重试"]}),(0,t.jsx)(i.Button,{asChild:!0,variant:"outline",children:(0,t.jsx)("a",{href:"/",children:"返回首页"})})]})]})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,54556,78928,90021,e=>{"use strict";let t,n=["top","right","bottom","left"],r=n.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),i=Math.min,o=Math.max,l=Math.round,a=Math.floor,f=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e,t){return"function"==typeof e?e(t):e}function c(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function m(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e,t,n){void 0===n&&(n=!1);let r=d(e),i=p(m(e)),o=h(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=R(l)),[l,R(l)]}function w(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let y=["left","right"],x=["right","left"],v=["top","bottom"],b=["bottom","top"];function R(e){let t=c(e);return s[t]+e.slice(t.length)}function A(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function S(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function C(e,t,n){let r,{reference:i,floating:o}=e,l=m(t),a=p(m(t)),f=h(a),s=c(t),u="y"===l,g=i.x+i.width/2-o.width/2,w=i.y+i.height/2-o.height/2,y=i[f]/2-o[f]/2;switch(s){case"top":r={x:g,y:i.y-o.height};break;case"bottom":r={x:g,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:w};break;case"left":r={x:i.x-o.width,y:w};break;default:r={x:i.x,y:i.y}}switch(d(t)){case"start":r[a]-=y*(n&&u?-1:1);break;case"end":r[a]+=y*(n&&u?-1:1)}return r}async function P(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:a,strategy:f}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=u(t,e),m=A(h),g=a[p?"floating"===d?"reference":"floating":d],w=S(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:f})),y="floating"===d?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),v=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},b=S(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:f}):y);return{top:(w.top-b.top+m.top)/v.y,bottom:(b.bottom-w.bottom+m.bottom)/v.y,left:(w.left-b.left+m.left)/v.x,right:(b.right-w.right+m.right)/v.x}}let L=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:P},f=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=C(s,r,f),d=r,p=0,h={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:g,fn:w}=m,{x:y,y:x,data:v,reset:b}=await w({x:u,y:c,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:s,platform:a,elements:{reference:e,floating:t}});u=null!=y?y:u,c=null!=x?x:c,h[g]={...h[g],...v},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(s=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:u,y:c}=C(s,d,f)),n=-1)}return{x:u,y:c,placement:d,strategy:i,middlewareData:h}};function O(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function T(e){return n.some(t=>e[t]>=0)}function E(e){let t=i(...e.map(e=>e.left)),n=i(...e.map(e=>e.top));return{x:t,y:n,width:o(...e.map(e=>e.right))-t,height:o(...e.map(e=>e.bottom))-n}}let H=new Set(["left","top"]);async function D(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=c(n),a=d(n),f="y"===m(n),s=H.has(l)?-1:1,p=o&&f?-1:1,h=u(t,e),{mainAxis:g,crossAxis:w,alignmentAxis:y}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof y&&(w="end"===a?-1*y:y),f?{x:w*p,y:g*s}:{x:g*s,y:w*p}}function k(){return"u">typeof window}function F(e){return $(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function W(e){var t;return null==(t=($(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $(e){return!!k()&&(e instanceof Node||e instanceof z(e).Node)}function j(e){return!!k()&&(e instanceof Element||e instanceof z(e).Element)}function M(e){return!!k()&&(e instanceof HTMLElement||e instanceof z(e).HTMLElement)}function B(e){return!(!k()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof z(e).ShadowRoot)}function N(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function V(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let _=/transform|translate|scale|rotate|perspective|filter/,I=/paint|layout|strict|content/,Y=e=>!!e&&"none"!==e;function U(e){let t=j(e)?K(e):e;return Y(t.transform)||Y(t.translate)||Y(t.scale)||Y(t.rotate)||Y(t.perspective)||!X()&&(Y(t.backdropFilter)||Y(t.filter))||_.test(t.willChange||"")||I.test(t.contain||"")}function X(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function q(e){return/^(html|body|#document)$/.test(F(e))}function K(e){return z(e).getComputedStyle(e)}function G(e){return j(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if("html"===F(e))return e;let t=e.assignedSlot||e.parentNode||B(e)&&e.host||W(e);return B(t)?t.host:t}function Q(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=J(t);return q(n)?t.ownerDocument?t.ownerDocument.body:t.body:M(n)&&N(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=z(i);if(!o)return t.concat(i,Q(i,[],n));{let e=Z(l);return t.concat(l,l.visualViewport||[],N(i)?i:[],e&&n?Q(e):[])}}function Z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=K(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=M(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,f=l(n)!==o||l(r)!==a;return f&&(n=o,r=a),{width:n,height:r,$:f}}function et(e){return j(e)?e:e.contextElement}function en(e){let t=et(e);if(!M(t))return f(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ee(t),a=(o?l(n.width):n.width)/r,s=(o?l(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let er=f(0);function ei(e){let t=z(e);return X()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:er}function eo(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=et(e),a=f(1);t&&(r?j(r)&&(a=en(r)):a=en(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===z(l))&&i)?ei(l):f(0),u=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(l){let e=z(l),t=r&&j(r)?z(r):r,n=e,i=Z(n);for(;i&&r&&t!==n;){let e=en(i),t=i.getBoundingClientRect(),r=K(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,p*=e.y,u+=o,c+=l,i=Z(n=z(i))}}return S({width:d,height:p,x:u,y:c})}function el(e,t){let n=G(e).scrollLeft;return t?t.left+n:eo(W(e)).left+n}function ea(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-el(e,n),y:n.top+t.scrollTop}}function ef(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=z(e),r=W(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,f=0;if(i){o=i.width,l=i.height;let e=X();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,f=i.offsetTop)}let s=el(r);if(s<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-i);l<=25&&(o-=l)}else s<=25&&(o+=s);return{width:o,height:l,x:a,y:f}}(e,n);else if("document"===t){let t,n,l,a,f,s,u;r=W(e),t=W(r),n=G(r),l=r.ownerDocument.body,a=o(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),f=o(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),s=-n.scrollLeft+el(r),u=-n.scrollTop,"rtl"===K(l).direction&&(s+=o(t.clientWidth,l.clientWidth)-a),i={width:a,height:f,x:s,y:u}}else if(j(t)){let e,r,o,l,a,s;r=(e=eo(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,l=M(t)?en(t):f(1),a=t.clientWidth*l.x,s=t.clientHeight*l.y,i={width:a,height:s,x:o*l.x,y:r*l.y}}else{let n=ei(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return S(i)}function es(e){return"static"===K(e).position}function eu(e,t){if(!M(e)||"fixed"===K(e).position)return null;if(t)return t(e);let n=e.offsetParent;return W(e)===n&&(n=n.ownerDocument.body),n}function ec(e,t){var n;let r=z(e);if(V(e))return r;if(!M(e)){let t=J(e);for(;t&&!q(t);){if(j(t)&&!es(t))return t;t=J(t)}return r}let i=eu(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(F(n)))&&es(i);)i=eu(i,t);return i&&q(i)&&es(i)&&!U(i)?r:i||function(e){let t=J(e);for(;M(t)&&!q(t);){if(U(t))return t;if(V(t))break;t=J(t)}return null}(e)||r}let ed=async function(e){let t=this.getOffsetParent||ec,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=M(t),i=W(t),o="fixed"===n,l=eo(e,!0,o,t),a={scrollLeft:0,scrollTop:0},s=f(0);if(r||!r&&!o)if(("body"!==F(t)||N(i))&&(a=G(t)),r){let e=eo(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=el(i));o&&!r&&i&&(s.x=el(i));let u=!i||r||o?f(0):ea(i,a);return{x:l.left+a.scrollLeft-s.x-u.x,y:l.top+a.scrollTop-s.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=W(r),a=!!t&&V(t.floating);if(r===l||a&&o)return n;let s={scrollLeft:0,scrollTop:0},u=f(1),c=f(0),d=M(r);if((d||!d&&!o)&&(("body"!==F(r)||N(l))&&(s=G(r)),d)){let e=eo(r);u=en(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let p=!l||d||o?f(0):ea(l,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+p.x,y:n.y*u.y-s.scrollTop*u.y+c.y+p.y}},getDocumentElement:W,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===n?V(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=Q(e,[],!1).filter(e=>j(e)&&"body"!==F(e)),i=null,o="fixed"===K(e).position,l=o?J(e):e;for(;j(l)&&!q(l);){let t=K(l),n=U(l);n||"fixed"!==t.position||(i=null),(o?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||N(l)&&!n&&function e(t,n){let r=J(t);return!(r===n||!j(r)||q(r))&&("fixed"===K(r).position||e(r,n))}(e,l)))?i=t:r=r.filter(e=>e!==l),l=J(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],f=ef(t,a[0],l),s=f.top,u=f.right,c=f.bottom,d=f.left;for(let e=1;e<a.length;e++){let n=ef(t,a[e],l);s=o(n.top,s),u=i(n.right,u),c=i(n.bottom,c),d=o(n.left,d)}return{width:u-d,height:c-s,x:d,y:s}},getOffsetParent:ec,getElementRects:ed,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ee(e);return{width:t,height:n}},getScale:en,isElement:j,isRTL:function(e){return"rtl"===K(e).direction}};function eh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let em=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:a}=t,f=await D(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+f.x,y:o+f.y,data:{...f,placement:l}}}}},eg=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l,platform:a}=t,{mainAxis:f=!0,crossAxis:s=!1,limiter:d={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...h}=u(e,t),g={x:n,y:r},w=await a.detectOverflow(t,h),y=m(c(l)),x=p(y),v=g[x],b=g[y];if(f){let e="y"===x?"top":"left",t="y"===x?"bottom":"right",n=v+w[e],r=v-w[t];v=o(n,i(v,r))}if(s){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=b+w[e],r=b-w[t];b=o(n,i(b,r))}let R=d.fn({...t,[x]:v,[y]:b});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[x]:f,[y]:s}}}}}},ew=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let a,f,s,{placement:p,middlewareData:h,rects:A,initialPlacement:S,platform:C,elements:P}=t,{mainAxis:L=!0,crossAxis:O=!0,fallbackPlacements:T,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:H="none",flipAlignment:D=!0,...k}=u(e,t);if(null!=(n=h.arrow)&&n.alignmentOffset)return{};let F=c(p),z=m(S),W=c(S)===S,$=await (null==C.isRTL?void 0:C.isRTL(P.floating)),j=T||(W||!D?[R(S)]:(a=R(S),[w(S),a,w(a)])),M="none"!==H;!T&&M&&j.push(...(f=d(S),s=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:y;return t?y:x;case"left":case"right":return t?v:b;default:return[]}}(c(S),"start"===H,$),f&&(s=s.map(e=>e+"-"+f),D&&(s=s.concat(s.map(w)))),s));let B=[S,...j],N=await C.detectOverflow(t,k),V=[],_=(null==(r=h.flip)?void 0:r.overflows)||[];if(L&&V.push(N[F]),O){let e=g(p,A,$);V.push(N[e[0]],N[e[1]])}if(_=[..._,{placement:p,overflows:V}],!V.every(e=>e<=0)){let e=((null==(i=h.flip)?void 0:i.index)||0)+1,t=B[e];if(t&&("alignment"!==O||z===m(t)||_.every(e=>m(e.placement)!==z||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(o=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(E){case"bestFit":{let e=null==(l=_.filter(e=>{if(M){let t=m(e.placement);return t===z||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=S}if(p!==n)return{reset:{placement:n}}}return{}}}},ey=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let l,a,{placement:f,rects:s,platform:p,elements:h}=t,{apply:g=()=>{},...w}=u(e,t),y=await p.detectOverflow(t,w),x=c(f),v=d(f),b="y"===m(f),{width:R,height:A}=s.floating;"top"===x||"bottom"===x?(l=x,a=v===(await (null==p.isRTL?void 0:p.isRTL(h.floating))?"start":"end")?"left":"right"):(a=x,l="end"===v?"top":"bottom");let S=A-y.top-y.bottom,C=R-y.left-y.right,P=i(A-y[l],S),L=i(R-y[a],C),O=!t.middlewareData.shift,T=P,E=L;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=C),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(T=S),O&&!v){let e=o(y.left,0),t=o(y.right,0),n=o(y.top,0),r=o(y.bottom,0);b?E=R-2*(0!==e||0!==t?e+t:o(y.left,y.right)):T=A-2*(0!==n||0!==r?n+r:o(y.top,y.bottom))}await g({...t,availableWidth:E,availableHeight:T});let H=await p.getDimensions(h.floating);return R!==H.width||A!==H.height?{reset:{rects:!0}}:{}}}},ex=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=u(e,t);switch(i){case"referenceHidden":{let e=O(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:T(e)}}}case"escaped":{let e=O(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:T(e)}}}default:return{}}}}},ev=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:a,platform:f,elements:s,middlewareData:c}=t,{element:g,padding:w=0}=u(e,t)||{};if(null==g)return{};let y=A(w),x={x:n,y:r},v=p(m(l)),b=h(v),R=await f.getDimensions(g),S="y"===v,C=S?"clientHeight":"clientWidth",P=a.reference[b]+a.reference[v]-x[v]-a.floating[b],L=x[v]-a.reference[v],O=await (null==f.getOffsetParent?void 0:f.getOffsetParent(g)),T=O?O[C]:0;T&&await (null==f.isElement?void 0:f.isElement(O))||(T=s.floating[C]||a.floating[b]);let E=T/2-R[b]/2-1,H=i(y[S?"top":"left"],E),D=i(y[S?"bottom":"right"],E),k=T-R[b]-D,F=T/2-R[b]/2+(P/2-L/2),z=o(H,i(F,k)),W=!c.arrow&&null!=d(l)&&F!==z&&a.reference[b]/2-(F<H?H:D)-R[b]/2<0,$=W?F<H?F-H:F-k:0;return{[v]:x[v]+$,data:{[v]:z,centerOffset:F-z-$,...W&&{alignmentOffset:$}},reset:W}}}),eb=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:a=0,mainAxis:f=!0,crossAxis:s=!0}=u(e,t),d={x:n,y:r},h=m(i),g=p(h),w=d[g],y=d[h],x=u(a,t),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(f){let e="y"===g?"height":"width",t=o.reference[g]-o.floating[e]+v.mainAxis,n=o.reference[g]+o.reference[e]-v.mainAxis;w<t?w=t:w>n&&(w=n)}if(s){var b,R;let e="y"===g?"width":"height",t=H.has(c(i)),n=o.reference[h]-o.floating[e]+(t&&(null==(b=l.offset)?void 0:b[h])||0)+(t?0:v.crossAxis),r=o.reference[h]+o.reference[e]+(t?0:(null==(R=l.offset)?void 0:R[h])||0)-(t?v.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[g]:w,[h]:y}}}},eR=(e,t,n)=>{let r=new Map,i={platform:ep,...n},o={...i.platform,_c:r};return L(e,t,{...i,platform:o})};e.s(["arrow",0,ev,"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,o,l;let{rects:a,middlewareData:f,placement:s,platform:p,elements:h}=t,{crossAxis:m=!1,alignment:y,allowedPlacements:x=r,autoAlignment:v=!0,...b}=u(e,t),R=void 0!==y||x===r?((l=y||null)?[...x.filter(e=>d(e)===l),...x.filter(e=>d(e)!==l)]:x.filter(e=>c(e)===e)).filter(e=>!l||d(e)===l||!!v&&w(e)!==e):x,A=await p.detectOverflow(t,b),S=(null==(n=f.autoPlacement)?void 0:n.index)||0,C=R[S];if(null==C)return{};let P=g(C,a,await (null==p.isRTL?void 0:p.isRTL(h.floating)));if(s!==C)return{reset:{placement:R[0]}};let L=[A[c(C)],A[P[0]],A[P[1]]],O=[...(null==(i=f.autoPlacement)?void 0:i.overflows)||[],{placement:C,overflows:L}],T=R[S+1];if(T)return{data:{index:S+1,overflows:O},reset:{placement:T}};let E=O.map(e=>{let t=d(e.placement);return[e.placement,t&&m?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),H=(null==(o=E.filter(e=>e[2].slice(0,d(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||E[0][0];return H!==s?{data:{index:S+1,overflows:O},reset:{placement:H}}:{}}}},"autoUpdate",0,function(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:f=!0,ancestorResize:s=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=et(e),h=f||s?[...p?Q(p):[],...t?Q(t):[]]:[];h.forEach(e=>{f&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let m=p&&c?function(e,t){let n,r=null,l=W(e);function f(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(u,c){void 0===u&&(u=!1),void 0===c&&(c=1),f();let d=e.getBoundingClientRect(),{left:p,top:h,width:m,height:g}=d;if(u||t(),!m||!g)return;let w={rootMargin:-a(h)+"px "+-a(l.clientWidth-(p+m))+"px "+-a(l.clientHeight-(h+g))+"px "+-a(p)+"px",threshold:o(0,i(1,c))||1},y=!0;function x(t){let r=t[0].intersectionRatio;if(r!==c){if(!y)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||eh(d,e.getBoundingClientRect())||s(),y=!1}try{r=new IntersectionObserver(x,{...w,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(x,w)}r.observe(e)}(!0),f}(p,n):null,g=-1,w=null;u&&(w=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&w&&t&&(w.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=w)||e.observe(t)})),n()}),p&&!d&&w.observe(p),t&&w.observe(t));let y=d?eo(e):null;return d&&function t(){let r=eo(e);y&&!eh(y,r)&&n(),y=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{f&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=w)||e.disconnect(),w=null,d&&cancelAnimationFrame(l)}},"computePosition",0,eR,"flip",0,ew,"hide",0,ex,"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:l,platform:a,strategy:f}=t,{padding:s=2,x:d,y:p}=u(e,t),h=Array.from(await (null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),g=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>S(E(e)))}(h),w=S(E(h)),y=A(s),x=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===g.length&&g[0].left>g[1].right&&null!=d&&null!=p)return g.find(e=>d>e.left-y.left&&d<e.right+y.right&&p>e.top-y.top&&p<e.bottom+y.bottom)||w;if(g.length>=2){if("y"===m(n)){let e=g[0],t=g[g.length-1],r="top"===c(n),i=e.top,o=t.bottom,l=r?e.left:t.left,a=r?e.right:t.right;return{top:i,bottom:o,left:l,right:a,width:a-l,height:o-i,x:l,y:i}}let e="left"===c(n),t=o(...g.map(e=>e.right)),r=i(...g.map(e=>e.left)),l=g.filter(n=>e?n.left===r:n.right===t),a=l[0].top,f=l[l.length-1].bottom;return{top:a,bottom:f,left:r,right:t,width:t-r,height:f-a,x:r,y:a}}return w}},floating:r.floating,strategy:f});return l.reference.x!==x.reference.x||l.reference.y!==x.reference.y||l.reference.width!==x.reference.width||l.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},"limitShift",0,eb,"offset",0,em,"shift",0,eg,"size",0,ey],78928);var eA=e.i(17635),eS=e.i(80560),eC="u">typeof document?eA.useLayoutEffect:function(){};function eP(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eP(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eP(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eL(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eO(e,t){let n=eL(e);return Math.round(t*n)/n}function eT(e){let t=eA.useRef(e);return eC(()=>{t.current=e}),t}e.s(["arrow",0,(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ev({element:n.current,padding:r}).fn(t):{}:n?ev({element:n,padding:r}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},"flip",0,(e,t)=>{let n=ew(e);return{name:n.name,fn:n.fn,options:[e,t]}},"hide",0,(e,t)=>{let n=ex(e);return{name:n.name,fn:n.fn,options:[e,t]}},"limitShift",0,(e,t)=>({fn:eb(e).fn,options:[e,t]}),"offset",0,(e,t)=>{let n=em(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=eg(e);return{name:n.name,fn:n.fn,options:[e,t]}},"size",0,(e,t)=>{let n=ey(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:a=!0,whileElementsMounted:f,open:s}=e,[u,c]=eA.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=eA.useState(r);eP(d,r)||p(r);let[h,m]=eA.useState(null),[g,w]=eA.useState(null),y=eA.useCallback(e=>{e!==R.current&&(R.current=e,m(e))},[]),x=eA.useCallback(e=>{e!==A.current&&(A.current=e,w(e))},[]),v=o||h,b=l||g,R=eA.useRef(null),A=eA.useRef(null),S=eA.useRef(u),C=null!=f,P=eT(f),L=eT(i),O=eT(s),T=eA.useCallback(()=>{if(!R.current||!A.current)return;let e={placement:t,strategy:n,middleware:d};L.current&&(e.platform=L.current),eR(R.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};E.current&&!eP(S.current,t)&&(S.current=t,eS.flushSync(()=>{c(t)}))})},[d,t,n,L,O]);eC(()=>{!1===s&&S.current.isPositioned&&(S.current.isPositioned=!1,c(e=>({...e,isPositioned:!1})))},[s]);let E=eA.useRef(!1);eC(()=>(E.current=!0,()=>{E.current=!1}),[]),eC(()=>{if(v&&(R.current=v),b&&(A.current=b),v&&b){if(P.current)return P.current(v,b,T);T()}},[v,b,T,P,C]);let H=eA.useMemo(()=>({reference:R,floating:A,setReference:y,setFloating:x}),[y,x]),D=eA.useMemo(()=>({reference:v,floating:b}),[v,b]),k=eA.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=eO(D.floating,u.x),r=eO(D.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...eL(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,D.floating,u.x,u.y]);return eA.useMemo(()=>({...u,update:T,refs:H,elements:D,floatingStyles:k}),[u,T,H,D,k])}],54556);var eE=e.i(80939),eH=e.i(44501),eD=eA.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eH.jsx)(eE.Primitive.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eH.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eD.displayName="Arrow",e.s(["Root",0,eD],90021)},61614,e=>{"use strict";var t=e.i(17635),n=e.i(72687);e.s(["useSize",0,function(e){let[r,i]=t.useState(void 0);return(0,n.useLayoutEffect)(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,r;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,r=t.blockSize}else n=e.offsetWidth,r=e.offsetHeight;i({width:n,height:r})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}i(void 0)},[e]),r}])},38154,e=>{"use strict";var t=e.i(17635),n=e.i(54556),r=e.i(78928),i=e.i(90021),o=e.i(67928),l=e.i(43250),a=e.i(80939),f=e.i(36131),s=e.i(72687),u=e.i(61614),c=e.i(44501),d="Popper",[p,h]=(0,l.createContextScope)(d),[m,g]=p(d),w=e=>{let{__scopePopper:n,children:r}=e,[i,o]=t.useState(null);return(0,c.jsx)(m,{scope:n,anchor:i,onAnchorChange:o,children:r})};w.displayName=d;var y="PopperAnchor",x=t.forwardRef((e,n)=>{let{__scopePopper:r,virtualRef:i,...l}=e,f=g(y,r),s=t.useRef(null),u=(0,o.useComposedRefs)(n,s),d=t.useRef(null);return t.useEffect(()=>{let e=d.current;d.current=i?.current||s.current,e!==d.current&&f.onAnchorChange(d.current)}),i?null:(0,c.jsx)(a.Primitive.div,{...l,ref:u})});x.displayName=y;var v="PopperContent",[b,R]=p(v),A=t.forwardRef((e,i)=>{let{__scopePopper:l,side:d="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:w=0,avoidCollisions:y=!0,collisionBoundary:x=[],collisionPadding:R=0,sticky:A="partial",hideWhenDetached:S=!1,updatePositionStrategy:C="optimized",onPlaced:P,...E}=e,H=g(v,l),[D,k]=t.useState(null),F=(0,o.useComposedRefs)(i,e=>k(e)),[z,W]=t.useState(null),$=(0,u.useSize)(z),j=$?.width??0,M=$?.height??0,B="number"==typeof R?R:{top:0,right:0,bottom:0,left:0,...R},N=Array.isArray(x)?x:[x],V=N.length>0,_={padding:B,boundary:N.filter(L),altBoundary:V},{refs:I,floatingStyles:Y,placement:U,isPositioned:X,middlewareData:q}=(0,n.useFloating)({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:(...e)=>(0,r.autoUpdate)(...e,{animationFrame:"always"===C}),elements:{reference:H.anchor},middleware:[(0,n.offset)({mainAxis:p+M,alignmentAxis:m}),y&&(0,n.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===A?(0,n.limitShift)():void 0,..._}),y&&(0,n.flip)({..._}),(0,n.size)({..._,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}}),z&&(0,n.arrow)({element:z,padding:w}),O({arrowWidth:j,arrowHeight:M}),S&&(0,n.hide)({strategy:"referenceHidden",..._})]}),[K,G]=T(U),J=(0,f.useCallbackRef)(P);(0,s.useLayoutEffect)(()=>{X&&J?.()},[X,J]);let Q=q.arrow?.x,Z=q.arrow?.y,ee=q.arrow?.centerOffset!==0,[et,en]=t.useState();return(0,s.useLayoutEffect)(()=>{D&&en(window.getComputedStyle(D).zIndex)},[D]),(0,c.jsx)("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:X?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[q.transformOrigin?.x,q.transformOrigin?.y].join(" "),...q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c.jsx)(b,{scope:l,placedSide:K,onArrowChange:W,arrowX:Q,arrowY:Z,shouldHideArrow:ee,children:(0,c.jsx)(a.Primitive.div,{"data-side":K,"data-align":G,...E,ref:F,style:{...E.style,animation:X?void 0:"none"}})})})});A.displayName=v;var S="PopperArrow",C={top:"bottom",right:"left",bottom:"top",left:"right"},P=t.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=R(S,n),l=C[o.placedSide];return(0,c.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,c.jsx)(i.Root,{...r,ref:t,style:{...r.style,display:"block"}})})});function L(e){return null!==e}P.displayName=S;var O=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[f,s]=T(n),u={start:"0%",center:"50%",end:"100%"}[s],c=(i.arrow?.x??0)+l/2,d=(i.arrow?.y??0)+a/2,p="",h="";return"bottom"===f?(p=o?u:`${c}px`,h=`${-a}px`):"top"===f?(p=o?u:`${c}px`,h=`${r.floating.height+a}px`):"right"===f?(p=`${-a}px`,h=o?u:`${d}px`):"left"===f&&(p=`${r.floating.width+a}px`,h=o?u:`${d}px`),{data:{x:p,y:h}}}});function T(e){let[t,n="center"]=e.split("-");return[t,n]}e.s(["Anchor",0,x,"Arrow",0,P,"Content",0,A,"Root",0,w,"createPopperScope",0,h])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,30068,e=>{"use strict";let t=(0,e.i(86620).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],30068)},23516,e=>{"use strict";var t=e.i(44501),r=e.i(70978),a=e.i(65581),s=e.i(79980),l=e.i(76490);let n={"knowledge-base":"知识库",memory:"记忆库","llm-providers":"大模型",projects:"项目管理",documents:"文档",retrieval:"检索测试",qa:"问答测试",search:"记忆检索",units:"长期记忆",messages:"短期记忆",requests:"请求审计",settings:"设置",create:"新建",new:"新建",chat:"对话"};e.s(["PageHeader",0,function({title:e,description:i,hideBreadcrumb:o,children:c,className:d}){let u=(0,a.usePathname)()??"/",f=o?[]:function(e){if(/^\/knowledge-base\/[^/]+(?:\/.*)?$/.test(e)||/^\/memory\/[^/]+(?:\/.*)?$/.test(e))return[];let t=e.split("/").filter(Boolean);if(0===t.length)return[];let r=[],a="";return t.forEach((e,s)=>{a+=`/${e}`;let l=decodeURIComponent(e),i=n[l]??l;r.push({label:i,href:s<t.length-1?a:void 0})}),r}(u);return(0,t.jsxs)("div",{className:(0,l.cn)("mb-5 flex flex-col gap-2",d),children:[f.length>1&&(0,t.jsxs)("nav",{"aria-label":"面包屑",className:"flex items-center gap-1 text-[13px] text-[hsl(var(--muted-foreground))]",children:[(0,t.jsx)(r.default,{href:"/",className:"transition-colors hover:text-[hsl(var(--foreground))]",children:"主页"}),f.map((e,a)=>(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(s.ChevronRight,{className:"h-3 w-3 opacity-60"}),e.href?(0,t.jsx)(r.default,{href:e.href,className:"transition-colors hover:text-[hsl(var(--foreground))]",children:e.label}):(0,t.jsx)("span",{className:"font-medium text-[hsl(var(--foreground))]",children:e.label})]},`${e.label}-${a}`))]}),(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold leading-tight text-[hsl(var(--foreground))]",children:e}),i&&(0,t.jsx)("p",{className:"text-[13px] text-[hsl(var(--muted-foreground))]",children:i})]}),c&&(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:c})]})]})}])},51517,e=>{"use strict";let t=(0,e.i(86620).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],51517)},33153,e=>{"use strict";let t=(0,e.i(86620).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],33153)},12251,e=>{"use strict";var t=e.i(44501),r=e.i(17635),a=e.i(33253),s=e.i(42595),l=e.i(23888);e.s(["ConfirmDialog",0,function({open:e,onOpenChange:n,title:i,description:o,confirmText:c="确认",cancelText:d="取消",variant:u="default",onConfirm:f,confirmInput:h,children:m}){let[p,x]=(0,r.useState)(""),b=void 0!==h&&""!==h,v=b&&p!==h,g=(0,r.useCallback)(()=>{v||(f(),x(""))},[v,f]),y=(0,r.useCallback)(e=>{e||x(""),n(e)},[n]);return(0,t.jsx)(a.Dialog,{open:e,onOpenChange:y,children:(0,t.jsxs)(a.DialogContent,{className:"sm:max-w-120",children:[(0,t.jsxs)(a.DialogHeader,{children:[(0,t.jsx)(a.DialogTitle,{children:i}),(0,t.jsx)(a.DialogDescription,{className:"break-all",children:o})]}),b&&(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsxs)("p",{className:"mb-2 text-sm text-muted-foreground",children:["请输入 ",(0,t.jsx)("strong",{children:h})," 以确认操作"]}),(0,t.jsx)(l.Input,{value:p,onChange:e=>x(e.target.value),placeholder:h,autoFocus:!0})]}),m&&(0,t.jsx)("div",{className:"py-1",children:m}),(0,t.jsxs)(a.DialogFooter,{children:[(0,t.jsx)(s.Button,{variant:"outline",onClick:()=>y(!1),children:d}),(0,t.jsx)(s.Button,{variant:"danger"===u?"destructive":"default",onClick:g,disabled:v,children:c})]})]})})}])},63630,e=>{"use strict";var t=e.i(44501),r=e.i(17635),a=e.i(67928),s=e.i(43250),l=e.i(91967),n=e.i(17256),i=e.i(84017),o=e.i(61614),c=e.i(90088),d=e.i(80939),u="Checkbox",[f,h]=(0,s.createContextScope)(u),[m,p]=f(u);function x(e){let{__scopeCheckbox:a,checked:s,children:l,defaultChecked:i,disabled:o,form:c,name:d,onCheckedChange:f,required:h,value:p="on",internal_do_not_use_render:x}=e,[b,v]=(0,n.useControllableState)({prop:s,defaultProp:i??!1,onChange:f,caller:u}),[g,y]=r.useState(null),[j,N]=r.useState(null),k=r.useRef(!1),C=!g||!!c||!!g.closest("form"),R={checked:b,disabled:o,setChecked:v,control:g,setControl:y,name:d,form:c,value:p,hasConsumerStoppedPropagationRef:k,required:h,defaultChecked:!w(i)&&i,isFormControl:C,bubbleInput:j,setBubbleInput:N};return(0,t.jsx)(m,{scope:a,...R,children:"function"==typeof x?x(R):l})}var b="CheckboxTrigger",v=r.forwardRef(({__scopeCheckbox:e,onKeyDown:s,onClick:n,...i},o)=>{let{control:c,value:u,disabled:f,checked:h,required:m,setControl:x,setChecked:v,hasConsumerStoppedPropagationRef:g,isFormControl:y,bubbleInput:j}=p(b,e),N=(0,a.useComposedRefs)(o,x),k=r.useRef(h);return r.useEffect(()=>{let e=c?.form;if(e){let t=()=>v(k.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,v]),(0,t.jsx)(d.Primitive.button,{type:"button",role:"checkbox","aria-checked":w(h)?"mixed":h,"aria-required":m,"data-state":C(h),"data-disabled":f?"":void 0,disabled:f,value:u,...i,ref:N,onKeyDown:(0,l.composeEventHandlers)(s,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,l.composeEventHandlers)(n,e=>{v(e=>!!w(e)||!e),j&&y&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})})});v.displayName=b;var g=r.forwardRef((e,r)=>{let{__scopeCheckbox:a,name:s,checked:l,defaultChecked:n,required:i,disabled:o,value:c,onCheckedChange:d,form:u,...f}=e;return(0,t.jsx)(x,{__scopeCheckbox:a,checked:l,defaultChecked:n,disabled:o,required:i,onCheckedChange:d,name:s,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v,{...f,ref:r,__scopeCheckbox:a}),e&&(0,t.jsx)(k,{__scopeCheckbox:a})]})})});g.displayName=u;var y="CheckboxIndicator",j=r.forwardRef((e,r)=>{let{__scopeCheckbox:a,forceMount:s,...l}=e,n=p(y,a);return(0,t.jsx)(c.Presence,{present:s||w(n.checked)||!0===n.checked,children:(0,t.jsx)(d.Primitive.span,{"data-state":C(n.checked),"data-disabled":n.disabled?"":void 0,...l,ref:r,style:{pointerEvents:"none",...e.style}})})});j.displayName=y;var N="CheckboxBubbleInput",k=r.forwardRef(({__scopeCheckbox:e,...s},l)=>{let{control:n,hasConsumerStoppedPropagationRef:c,checked:u,defaultChecked:f,required:h,disabled:m,name:x,value:b,form:v,bubbleInput:g,setBubbleInput:y}=p(N,e),j=(0,a.useComposedRefs)(l,y),k=(0,i.usePrevious)(u),C=(0,o.useSize)(n);r.useEffect(()=>{if(!g)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!c.current;if(k!==u&&e){let r=new Event("click",{bubbles:t});g.indeterminate=w(u),e.call(g,!w(u)&&u),g.dispatchEvent(r)}},[g,k,u,c]);let R=r.useRef(!w(u)&&u);return(0,t.jsx)(d.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??R.current,required:h,disabled:m,name:x,value:b,form:v,...s,tabIndex:-1,ref:j,style:{...s.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function w(e){return"indeterminate"===e}function C(e){return w(e)?"indeterminate":e?"checked":"unchecked"}k.displayName=N;var R=e.i(6703),T=e.i(76490);let E=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(g,{ref:a,className:(0,T.cn)("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...r,children:(0,t.jsx)(j,{className:(0,T.cn)("grid place-content-center text-current"),children:(0,t.jsx)(R.Check,{className:"h-4 w-4"})})}));E.displayName=g.displayName,e.s(["Checkbox",0,E],63630)},90035,51989,e=>{"use strict";var t=e.i(44501),r=e.i(96416),a=e.i(46398),s=e.i(76490);e.s(["SearchInput",0,function({value:e,onChange:l,placeholder:n="搜索…",className:i}){return(0,t.jsxs)("div",{className:(0,s.cn)("relative flex items-center",i),children:[(0,t.jsx)(r.Search,{className:"absolute left-3 pointer-events-none text-muted-foreground",size:16}),(0,t.jsx)("input",{type:"text",value:e,onChange:e=>l(e.target.value),placeholder:n,className:(0,s.cn)("h-9 w-full rounded-md border border-input bg-background pl-9 pr-8 text-sm","placeholder:text-muted-foreground/60","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1")}),e&&(0,t.jsx)("button",{type:"button",onClick:()=>l(""),className:"absolute right-2 inline-flex items-center justify-center rounded-full p-0.5 text-gray-400 hover:text-gray-600 transition-colors","aria-label":"清除搜索",children:(0,t.jsx)(a.X,{size:14})})]})}],90035);var l=e.i(17635);e.s(["useDebounce",0,function(e,t=300){let[r,a]=(0,l.useState)(e);return(0,l.useEffect)(()=>{let r=setTimeout(()=>{a(e)},t);return()=>{clearTimeout(r)}},[e,t]),r}],51989)},22740,e=>{"use strict";var t=e.i(44501),r=e.i(17635),a=e.i(76490);let s=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:s,className:(0,a.cn)("w-full caption-bottom text-sm",e),...r})}));s.displayName="Table";let l=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)("thead",{ref:s,className:(0,a.cn)("[&_tr]:border-b [&_tr]:border-[hsl(var(--border))] [&_tr]:bg-[hsl(var(--secondary))]",e),...r}));l.displayName="TableHeader";let n=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)("tbody",{ref:s,className:(0,a.cn)("[&_tr:last-child]:border-0",e),...r}));n.displayName="TableBody",r.forwardRef(({className:e,...r},s)=>(0,t.jsx)("tfoot",{ref:s,className:(0,a.cn)("border-t border-[hsl(var(--border))] bg-[hsl(var(--secondary)/0.5)] font-medium [&>tr]:last:border-b-0",e),...r})).displayName="TableFooter";let i=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)("tr",{ref:s,className:(0,a.cn)("border-b border-[hsl(var(--border-light))] transition-colors hover:bg-[hsl(var(--secondary)/0.5)] data-[state=selected]:bg-[hsl(var(--primary-soft))]",e),...r}));i.displayName="TableRow";let o=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)("th",{ref:s,className:(0,a.cn)("h-9 px-3 text-left align-middle text-xs font-medium text-[hsl(var(--muted-foreground))] [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...r}));o.displayName="TableHead";let c=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)("td",{ref:s,className:(0,a.cn)("px-3 py-2 align-middle text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...r}));c.displayName="TableCell",r.forwardRef(({className:e,...r},s)=>(0,t.jsx)("caption",{ref:s,className:(0,a.cn)("mt-4 text-sm text-[hsl(var(--muted-foreground))]",e),...r})).displayName="TableCaption",e.s(["Table",0,s,"TableBody",0,n,"TableCell",0,c,"TableHead",0,o,"TableHeader",0,l,"TableRow",0,i])},31592,73581,e=>{"use strict";var t=e.i(44501),r=e.i(17635),a=e.i(30068),s=e.i(42595),l=e.i(76490);e.s(["RefreshButton",0,function({loading:e,onClick:n,title:i="刷新",className:o,size:c="icon",label:d,variant:u="ghost"}){let f=(0,r.useRef)(null),h=(0,r.useRef)(null),m=(0,r.useRef)(e),p=()=>{let e=f.current;if(!e||h.current)return;let t=e.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:800,easing:"linear",iterations:1,fill:"none"});h.current=t,t.addEventListener("finish",()=>{h.current=null,m.current&&p()}),t.addEventListener("cancel",()=>{h.current=null})};(0,r.useEffect)(()=>{m.current=e},[e]),(0,r.useEffect)(()=>{e&&p()},[e]),(0,r.useEffect)(()=>()=>{h.current?.cancel(),h.current=null},[]);let x="icon"!==c&&!!d;return(0,t.jsxs)(s.Button,{type:"button",variant:u,size:c,onClick:()=>{e||(p(),n())},title:i,"aria-label":d??i,"aria-busy":e||void 0,className:(0,l.cn)("group text-muted-foreground transition-colors duration-150","hover:text-foreground active:scale-[0.96]","ghost"===u&&"hover:bg-[hsl(var(--accent))]",o),children:[(0,t.jsx)("span",{ref:f,"aria-hidden":!0,className:(0,l.cn)("inline-flex transform-gpu",x&&"mr-1.5"),children:(0,t.jsx)(a.RefreshCw,{className:"sm"===c?"h-3.5 w-3.5":"h-4 w-4"})}),x&&d]})}],31592);let n=(0,e.i(86620).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,n],73581)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31211,e=>{"use strict";var t=e.i(44501),a=e.i(17635),r=e.i(76490);e.s(["Skeleton",0,function({className:e,delay:a,style:s,...n}){return(0,t.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-primary/10",e),style:{animationDelay:a?`${a}ms`:void 0,...s},...n})},"SkeletonGroup",0,function({children:e,stagger:r=80,className:s,...n}){let l=a.Children.toArray(e);return(0,t.jsx)("div",{className:s,...n,children:l.map((e,t)=>{if(!a.isValidElement(e))return e;let s=e.props.delay??0;return a.cloneElement(e,{delay:s+t*r})})})}])},10414,e=>{"use strict";var t=e.i(44501),a=e.i(17635),r=e.i(76490);let s=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,r.cn)("rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] text-[hsl(var(--card-foreground))] shadow-sm",e),...a}));s.displayName="Card",a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1 px-5 pt-5 pb-3 border-b border-[hsl(var(--border-light))]",e),...a})).displayName="CardHeader",a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,r.cn)("text-base font-semibold leading-tight",e),...a})).displayName="CardTitle",a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,r.cn)("text-sm text-[hsl(var(--muted-foreground))]",e),...a})).displayName="CardDescription";let n=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,r.cn)("px-5 py-4",e),...a}));n.displayName="CardContent",a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center px-5 py-3 border-t border-[hsl(var(--border-light))]",e),...a})).displayName="CardFooter";let l=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,r.cn)("rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] text-[hsl(var(--card-foreground))] shadow-sm","transition-[transform,box-shadow,border-color] duration-200 ease-[cubic-bezier(0.34,1.56,0.64,1)]","hover:border-[hsl(var(--primary))] hover:shadow-primary-soft",e),...a}));l.displayName="CardInteractive",e.s(["Card",0,s,"CardContent",0,n,"CardInteractive",0,l])},81015,e=>{"use strict";e.s(["buildMemoryScope",0,function(e){return{appId:e.get("appId")??"",tenantId:e.get("tenantId")||void 0,agentId:e.get("agentId")||void 0,runId:e.get("runId")||void 0}},"formatScope",0,function(e){return e?[e.appId,e.tenantId,e.agentId,e.runId].filter(Boolean).join(" / "):"-"},"hasPreciseScope",0,function(e){return!!e.appId&&"*"!==e.appId&&!!e.tenantId&&"*"!==e.tenantId&&!!e.agentId&&"*"!==e.agentId&&!!e.runId&&"*"!==e.runId},"hasSearchableScope",0,function(e){return!!e.appId&&"*"!==e.appId&&!!e.tenantId&&"*"!==e.tenantId},"hasWildcardScope",0,function(e){return Object.values(e).some(e=>"*"===e)},"parseJsonObject",0,function(e){if(!e.trim())return;let t=JSON.parse(e);if(!t||"object"!=typeof t||Array.isArray(t))throw Error("JSON must be an object");return t},"scopeToSearchParams",0,function(e){let t=new URLSearchParams;return t.set("appId",e.appId),e.tenantId&&t.set("tenantId",e.tenantId),e.agentId&&t.set("agentId",e.agentId),e.runId&&t.set("runId",e.runId),t}])},67530,e=>{"use strict";let t=(0,e.i(86620).default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",0,t],67530)},53552,e=>{"use strict";let t=(0,e.i(86620).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],53552)},7663,e=>{"use strict";var t=e.i(44501),a=e.i(70978),r=e.i(65581),s=e.i(53552),n=e.i(86620);let l=(0,n.default)("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),i=(0,n.default)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);var d=e.i(94237),c=e.i(76490),o=e.i(83389),u=e.i(17635);let h="detail-sidebar.collapsed",m="detail-sidebar-collapsed-change",x=null;function p(){if(null!==x)return x;try{x="1"===window.localStorage.getItem(h)}catch{x=!1}return x}function f(e){let t=t=>{x=!!t.detail,e()},a=t=>{t.key===h&&(x="1"===t.newValue,e())};return window.addEventListener(m,t),window.addEventListener("storage",a),()=>{window.removeEventListener(m,t),window.removeEventListener("storage",a)}}function v(){return p()}function g(){return!1}function b(){let e=(0,u.useSyncExternalStore)(f,v,g),t=(0,u.useCallback)(e=>{x=e;try{window.localStorage.setItem(h,e?"1":"0")}catch{}window.dispatchEvent(new CustomEvent(m,{detail:e}))},[]),a=(0,u.useCallback)(()=>{t(!p())},[t]);return{collapsed:e,setCollapsed:t,toggle:a}}var j=e.i(12122);function y(){let{toggle:e}=b();return(0,t.jsx)(j.TooltipProvider,{delayDuration:200,children:(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":"展开侧边栏",onClick:e,className:"hidden md:flex absolute left-3 top-3 z-10 h-8 w-8 items-center justify-center rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] text-[hsl(var(--muted-foreground))] shadow-sm transition-colors hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--foreground))]",children:(0,t.jsx)(i,{className:"h-4 w-4"})})}),(0,t.jsx)(j.TooltipContent,{side:"right",sideOffset:6,children:"展开侧边栏"})]})})}let I=(0,d.cva)("flex h-9 w-9 items-center justify-center rounded-lg [&>svg]:h-[18px] [&>svg]:w-[18px]",{variants:{accent:{primary:"bg-[hsl(var(--primary-soft))] text-[hsl(var(--primary))]",success:"bg-[hsl(var(--success-soft))] text-[hsl(var(--success))]",warning:"bg-[hsl(var(--warning-soft))] text-[hsl(var(--warning))]",danger:"bg-[hsl(var(--danger-soft))] text-[hsl(var(--danger))]",purple:"bg-[hsl(var(--purple-soft))] text-[hsl(var(--purple))]"}},defaultVariants:{accent:"primary"}});function w({children:e,className:a}){let{collapsed:r}=(0,o.useSidebarCollapsed)();return(0,t.jsx)("div",{className:(0,c.cn)("fixed inset-0 z-30 flex items-stretch overflow-hidden bg-[hsl(var(--background))] transition-[left] duration-200 ease-out","max-md:top-14",r?"md:left-16":"md:left-[220px]",a),children:e})}function N({className:e,children:a}){return(0,t.jsx)("div",{className:(0,c.cn)("-mx-7 -my-5 flex h-[calc(100%+2.5rem)] overflow-hidden max-md:-mx-4 max-md:my-0 max-md:h-full",e),children:a})}e.s(["AppShellLayout",0,w,"DetailLayout",0,function({sidebar:e,children:a}){let{collapsed:r}=b();return(0,t.jsxs)(w,{children:[e,(0,t.jsxs)("div",{className:"relative min-w-0 flex-1",children:[r?(0,t.jsx)(y,{}):null,(0,t.jsx)("div",{className:"absolute inset-0 overflow-y-auto px-7 py-5 max-md:px-4",children:a})]})]})},"DetailSidebar",0,function({className:e,children:a}){let{collapsed:r}=b();return r?null:(0,t.jsx)("aside",{className:(0,c.cn)("hidden h-full w-[220px] shrink-0 flex-col border-r border-[hsl(var(--border))] bg-[hsl(var(--card))] overflow-hidden md:flex",e),children:a})},"DetailSidebarBack",0,function({href:e,label:r="返回列表"}){return(0,t.jsx)("div",{className:"border-t border-[hsl(var(--border-light))] p-3",children:(0,t.jsxs)(a.default,{href:e,className:"flex h-8 items-center justify-center gap-1.5 rounded-md text-[13px] font-medium text-[hsl(var(--muted-foreground))] transition-colors hover:bg-[hsl(var(--background))] hover:text-[hsl(var(--primary))]",children:[(0,t.jsx)(s.ArrowLeft,{className:"h-3.5 w-3.5"}),r]})})},"DetailSidebarHeader",0,function({icon:e,accent:a,name:r,typeLabel:s,description:n,actions:i,extra:d}){let{toggle:c}=b();return(0,t.jsxs)("header",{className:"flex flex-col gap-2 border-b border-[hsl(var(--border-light))] px-4 pb-4 pt-4",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsx)("div",{className:I({accent:a}),children:e}),(0,t.jsxs)("div",{className:"-mt-1 -mr-1 flex items-center gap-0.5",children:[i,(0,t.jsx)(j.TooltipProvider,{delayDuration:200,children:(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":"收起侧边栏",onClick:c,className:"flex h-7 w-7 items-center justify-center rounded-md text-[hsl(var(--muted-foreground))] transition-colors hover:bg-[hsl(var(--background))] hover:text-[hsl(var(--foreground))]",children:(0,t.jsx)(l,{className:"h-4 w-4"})})}),(0,t.jsx)(j.TooltipContent,{side:"bottom",sideOffset:6,children:"收起侧边栏"})]})})]})]}),(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)("div",{className:"text-sm font-semibold leading-tight text-[hsl(var(--foreground))]",children:r}),s?(0,t.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-wider text-[hsl(var(--muted-foreground))]",children:s}):null]}),n?(0,t.jsx)("p",{className:"line-clamp-3 text-[13px] leading-snug text-[hsl(var(--muted-foreground))]",children:n}):null,d?(0,t.jsx)("div",{className:"flex flex-col gap-1.5 text-[11px] text-[hsl(var(--subtle))]",children:d}):null]})},"DetailSidebarMenu",0,function({items:e,className:s}){let n=(0,r.usePathname)()??"";return(0,t.jsx)("nav",{className:(0,c.cn)("flex-1 overflow-y-auto px-2 py-2",s),children:(0,t.jsx)("ul",{className:"space-y-0.5",children:e.map(e=>{let r=e.href.split("?")[0],s=n===r||n.startsWith(`${r}/`);return(0,t.jsx)("li",{children:(0,t.jsxs)(a.default,{href:e.href,className:(0,c.cn)("flex h-8 items-center gap-2 rounded-md px-3 text-[13px] font-medium transition-colors duration-150",s?"bg-[hsl(var(--sidebar-active-bg))] text-[hsl(var(--sidebar-active-fg))]":"text-[hsl(var(--sidebar-text))] hover:bg-[hsl(var(--background))] hover:text-[hsl(var(--foreground))]"),children:[e.icon?(0,t.jsx)("span",{className:"[&>svg]:h-4 [&>svg]:w-4",children:e.icon}):null,(0,t.jsx)("span",{className:"flex-1 truncate",children:e.label}),e.endAdornment?(0,t.jsx)("span",{className:"ml-auto text-[11px]",children:e.endAdornment}):null]})},e.href)})})})},"WorkbenchLayout",0,function({aside:e,children:a,asideWidth:r=360}){return(0,t.jsxs)(N,{className:"flex-col lg:flex-row",children:[(0,t.jsx)("aside",{style:{"--workbench-aside-w":`${r}px`},className:(0,c.cn)("shrink-0 overflow-y-auto border-b border-[hsl(var(--border))] bg-[hsl(var(--card))] px-6 py-5 max-md:px-4","lg:w-[var(--workbench-aside-w)] lg:border-b-0 lg:border-r"),children:e}),(0,t.jsx)("main",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:a})]})}],7663)},30363,e=>{"use strict";let t=(0,e.i(86620).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],30363)},96416,e=>{"use strict";let t=(0,e.i(86620).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],96416)},12251,e=>{"use strict";var t=e.i(44501),a=e.i(17635),r=e.i(33253),s=e.i(42595),n=e.i(23888);e.s(["ConfirmDialog",0,function({open:e,onOpenChange:l,title:i,description:d,confirmText:c="确认",cancelText:o="取消",variant:u="default",onConfirm:h,confirmInput:m,children:x}){let[p,f]=(0,a.useState)(""),v=void 0!==m&&""!==m,g=v&&p!==m,b=(0,a.useCallback)(()=>{g||(h(),f(""))},[g,h]),j=(0,a.useCallback)(e=>{e||f(""),l(e)},[l]);return(0,t.jsx)(r.Dialog,{open:e,onOpenChange:j,children:(0,t.jsxs)(r.DialogContent,{className:"sm:max-w-120",children:[(0,t.jsxs)(r.DialogHeader,{children:[(0,t.jsx)(r.DialogTitle,{children:i}),(0,t.jsx)(r.DialogDescription,{className:"break-all",children:d})]}),v&&(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsxs)("p",{className:"mb-2 text-sm text-muted-foreground",children:["请输入 ",(0,t.jsx)("strong",{children:m})," 以确认操作"]}),(0,t.jsx)(n.Input,{value:p,onChange:e=>f(e.target.value),placeholder:m,autoFocus:!0})]}),x&&(0,t.jsx)("div",{className:"py-1",children:x}),(0,t.jsxs)(r.DialogFooter,{children:[(0,t.jsx)(s.Button,{variant:"outline",onClick:()=>j(!1),children:o}),(0,t.jsx)(s.Button,{variant:"danger"===u?"destructive":"default",onClick:b,disabled:g,children:c})]})]})})}])},83823,e=>{"use strict";let t=(0,e.i(86620).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,t],83823)},90399,e=>{"use strict";let t=(0,e.i(86620).default)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);e.s(["MoreVertical",0,t],90399)},65958,e=>{"use strict";var t=e.i(43876),a=e.i(64204),r=e.i(47570),s=e.i(7166);e.s(["useMemoryStore",0,function(e){let{context:n,ready:l}=(0,s.useRuntimeContext)();return(0,t.useQuery)({queryKey:r.queryKeys.memoryStore(n.dataScopeKey,e),queryFn:()=>(0,a.describeMemoryStore)(e),enabled:l&&!!e})}])},70821,e=>{"use strict";var t=e.i(44501),a=e.i(65581),r=e.i(87014),s=e.i(12251),n=e.i(37500),l=e.i(12984),i=e.i(64204),d=e.i(47570);e.s(["MemoryDeleteDialog",0,function({memoryStoreName:e,open:c,onOpenChange:o,redirectToList:u=!1}){let h,m=(0,a.useRouter)(),x=(h=(0,l.useQueryClient)(),(0,n.useMutation)({mutationFn:e=>(0,i.deleteMemoryStore)(e),onSuccess:()=>{(0,d.invalidateMemoryQueries)(h)}}));async function p(){if(e)try{await x.mutateAsync(e),r.toast.success("记忆库已删除"),o(!1),u&&m.push("/memory")}catch(e){r.toast.error(e instanceof Error?e.message:"删除记忆库失败")}}return(0,t.jsx)(s.ConfirmDialog,{open:c,onOpenChange:o,title:"删除记忆库",description:`确定要删除记忆库 "${e??""}" 吗?此操作不可撤销。`,confirmInput:e??void 0,confirmText:"删除",variant:"danger",onConfirm:p})}],70821)},27111,e=>{"use strict";var t=e.i(44501),a=e.i(65581),r=e.i(17635),s=e.i(18722),n=e.i(77163);let l=(0,e.i(86620).default)("file-clock",[["path",{d:"M16 22h2a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v2.85",key:"ryk6xj"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 14v2.2l1.6 1",key:"6m4bie"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}]]);var i=e.i(37769),d=e.i(90399),c=e.i(96416),o=e.i(67530),u=e.i(30363),h=e.i(31211),m=e.i(1709),x=e.i(7663),p=e.i(65958),f=e.i(70821),v=e.i(20268),g=e.i(90055),b=e.i(83823),j=e.i(67225),y=e.i(42595),I=e.i(10414),w=e.i(23888),N=e.i(66476),S=e.i(66473),k=e.i(81015),C=e.i(64204);let M=[{key:"appId",label:"App",placeholder:"app-001"},{key:"tenantId",label:"Tenant",placeholder:"tenant-001"},{key:"agentId",label:"Agent",placeholder:"agent-001"},{key:"runId",label:"Run",placeholder:"run-001"}];function D(){let e=(0,a.useRouter)(),s=(0,a.usePathname)(),n=(0,a.useSearchParams)(),l=(0,r.useMemo)(()=>(0,k.buildMemoryScope)(n),[n.toString()]),[i,d]=(0,r.useState)(!1),[c,o]=(0,r.useState)(l),[u,h]=(0,r.useState)(null),[m,x]=(0,r.useState)(null),[p,f]=(0,r.useState)(!1),D=(0,r.useRef)(!1),T=s.split("/").filter(Boolean)[1],R=(0,k.hasWildcardScope)(l);(0,r.useEffect)(()=>{T&&!D.current&&(D.current=!0,e());async function e(){try{await (0,C.describeMemoryStore)(T);let e=await (0,C.listMemoryUnits)(T,{appId:"*"},{limit:1});e.items?.length>0&&e.items[0].scope?x(e.items[0].scope):x({appId:"__default__",tenantId:"__default__",agentId:"__default__",runId:"__default__"})}catch{}finally{f(!0)}}},[T]),(0,r.useEffect)(()=>{if(!(!T||s.includes("/create"))&&!n.get("appId")){let t=new URLSearchParams({appId:"*",tenantId:"*",agentId:"*",runId:"*"});e.replace(`${s}?${t.toString()}`)}},[n.toString(),s,e,T]),(0,r.useEffect)(()=>{o(e=>e.appId===l.appId&&e.tenantId===l.tenantId&&e.agentId===l.agentId&&e.runId===l.runId?e:l),h(null)},[l.appId,l.tenantId,l.agentId,l.runId]);let $=m?`${m.appId??"-"}/${m.tenantId??"-"}/${m.agentId??"-"}/${m.runId??"-"}`:p?"暂无数据":"加载中...",L=(c.appId??"")==="*"&&(c.tenantId??"")==="*"&&(c.agentId??"")==="*"&&(c.runId??"")==="*",A=!!m&&(c.appId??"")===(m.appId??"")&&(c.tenantId??"")===(m.tenantId??"")&&(c.agentId??"")===(m.agentId??"")&&(c.runId??"")===(m.runId??"");return(0,t.jsx)(I.Card,{className:"border-dashed",children:(0,t.jsxs)(I.CardContent,{className:"p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,t.jsx)(j.Settings2,{className:"h-4 w-4 text-muted-foreground"}),M.map(({key:e,label:a})=>(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:a}),(0,t.jsx)("span",{className:"rounded-md bg-[hsl(var(--muted))] px-2.5 py-1 text-xs font-mono text-[hsl(var(--foreground))]",children:l[e]??"—"})]},e))]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[R&&(0,t.jsx)("span",{className:"rounded-md bg-amber-50 px-2 py-1 text-xs text-amber-700 dark:bg-amber-950 dark:text-amber-300",children:"只读"}),(0,t.jsxs)(y.Button,{variant:"outline",size:"sm",onClick:()=>d(!i),children:[i?(0,t.jsx)(g.ChevronUp,{className:"mr-1 h-3.5 w-3.5"}):(0,t.jsx)(v.ChevronDown,{className:"mr-1 h-3.5 w-3.5"}),"修改"]})]})]}),i&&(0,t.jsxs)("div",{className:"mt-4 space-y-4 border-t pt-4",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)(N.Label,{className:"text-xs",children:"快速预设"}),(0,t.jsxs)(S.Select,{value:L?"wildcard":A?"precise":"custom",onValueChange:function(e){"wildcard"===e?o({appId:"*",tenantId:"*",agentId:"*",runId:"*"}):"precise"===e&&m&&o({...m})},children:[(0,t.jsx)(S.SelectTrigger,{className:"h-8 text-sm",children:(0,t.jsx)(S.SelectValue,{})}),(0,t.jsxs)(S.SelectContent,{children:[(0,t.jsx)(S.SelectItem,{value:"wildcard",children:"全部数据(*/*/*/*)"}),(0,t.jsxs)(S.SelectItem,{value:"precise",disabled:!m,children:["精确范围(",$,")"]})]})]})]}),(0,t.jsx)("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:M.map(({key:e,label:a,placeholder:r})=>(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)(N.Label,{htmlFor:`scope-${e}`,className:"text-xs",children:[a,"appId"===e&&(0,t.jsx)("span",{className:"ml-0.5 text-[hsl(var(--destructive))]",children:"*"})]}),(0,t.jsx)(w.Input,{id:`scope-${e}`,value:c[e]??"",placeholder:r,onChange:t=>{var a;return a=t.target.value,void("appId"===e?o(e=>({...e,appId:a})):o(t=>({...t,[e]:a||void 0})))},className:"h-8 text-sm"})]},e))}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[u&&(0,t.jsx)("p",{className:"text-xs text-[hsl(var(--destructive))]",children:u}),!u&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"写操作需精确 scope,读/搜索支持通配符 *。"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)(y.Button,{variant:"outline",size:"sm",onClick:function(){o({appId:"*",tenantId:"*",agentId:"*",runId:"*"}),h(null),e.replace(`${s}?appId=*&tenantId=*&agentId=*&runId=*`)},children:[(0,t.jsx)(b.RotateCcw,{className:"mr-1 h-3 w-3"}),"重置"]}),(0,t.jsx)(y.Button,{size:"sm",onClick:function(){let t={appId:(c.appId??"").trim()||"appId",tenantId:(c.tenantId??"").trim()||void 0,agentId:(c.agentId??"").trim()||void 0,runId:(c.runId??"").trim()||void 0};if(!t.appId||"appId"===t.appId)return void h("App 是必填项");h(null);let a=(0,k.scopeToSearchParams)(t);e.replace(`${s}?${a.toString()}`),d(!1)},children:"应用"})]})]})]})]})})}let T=[{label:"长期记忆",segment:"units",icon:(0,t.jsx)(n.Database,{className:"h-4 w-4"})},{label:"记忆检索",segment:"search",icon:(0,t.jsx)(c.Search,{className:"h-4 w-4"})},{label:"短期记忆",segment:"messages",icon:(0,t.jsx)(i.MessageSquare,{className:"h-4 w-4"})},{label:"请求审计",segment:"requests",icon:(0,t.jsx)(l,{className:"h-4 w-4"})},{label:"设置",segment:"settings",icon:(0,t.jsx)(o.Settings,{className:"h-4 w-4"})}];function R(){return(0,t.jsxs)(x.DetailSidebar,{children:[(0,t.jsxs)("div",{className:"space-y-3 px-4 pt-4 pb-4 border-b border-[hsl(var(--border-light))]",children:[(0,t.jsx)(h.Skeleton,{className:"h-9 w-9 rounded-lg"}),(0,t.jsx)(h.Skeleton,{className:"h-4 w-3/4"}),(0,t.jsx)(h.Skeleton,{className:"h-3 w-1/2"})]}),(0,t.jsxs)("div",{className:"space-y-1 px-2 py-2",children:[(0,t.jsx)(h.Skeleton,{className:"h-8 w-full"}),(0,t.jsx)(h.Skeleton,{className:"h-8 w-full"}),(0,t.jsx)(h.Skeleton,{className:"h-8 w-full"}),(0,t.jsx)(h.Skeleton,{className:"h-8 w-full"}),(0,t.jsx)(h.Skeleton,{className:"h-8 w-full"})]})]})}e.s(["default",0,function({children:e}){let n=decodeURIComponent((0,a.useParams)().store),l=(0,a.useSearchParams)(),{data:i,isLoading:c}=(0,p.useMemoryStore)(n),[o,v]=(0,r.useState)(!1),g=l.toString()?`?${l.toString()}`:"",b=`/memory/${encodeURIComponent(n)}`,j=T.map(e=>({href:`${b}/${e.segment}${g}`,label:e.label,icon:e.icon}));return c?(0,t.jsx)(x.DetailLayout,{sidebar:(0,t.jsx)(R,{}),children:(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsx)(h.Skeleton,{className:"h-10 w-64"}),(0,t.jsx)(h.Skeleton,{className:"h-28 w-full"}),(0,t.jsx)(h.Skeleton,{className:"h-64 w-full"})]})}):i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.DetailLayout,{sidebar:(0,t.jsxs)(x.DetailSidebar,{children:[(0,t.jsx)(x.DetailSidebarHeader,{icon:(0,t.jsx)(s.Brain,{}),accent:"purple",name:i.memoryStoreName,typeLabel:"记忆库 · MEMORY STORE",description:i.description,actions:(0,t.jsxs)(m.DropdownMenu,{children:[(0,t.jsx)(m.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":"更多操作",className:"flex h-7 w-7 items-center justify-center rounded-md text-[hsl(var(--muted-foreground))] transition-colors hover:bg-[hsl(var(--background))] hover:text-[hsl(var(--foreground))]",children:(0,t.jsx)(d.MoreVertical,{className:"h-4 w-4"})})}),(0,t.jsx)(m.DropdownMenuContent,{align:"end",children:(0,t.jsxs)(m.DropdownMenuItem,{onSelect:e=>{e.preventDefault(),v(!0)},className:"text-[hsl(var(--destructive))] focus:bg-[hsl(var(--danger-soft))] focus:text-[hsl(var(--destructive))] hover:bg-[hsl(var(--danger-soft))] hover:text-[hsl(var(--destructive))]",children:[(0,t.jsx)(u.Trash2,{className:"h-3.5 w-3.5"}),"删除记忆库"]})})]})}),(0,t.jsx)(x.DetailSidebarMenu,{items:j}),(0,t.jsx)(x.DetailSidebarBack,{href:"/memory",label:"返回列表"})]}),children:(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsx)(D,{}),(0,t.jsx)("div",{children:e})]})}),(0,t.jsx)(f.MemoryDeleteDialog,{memoryStoreName:n,open:o,onOpenChange:v,redirectToList:!0})]}):(0,t.jsx)(x.DetailLayout,{sidebar:(0,t.jsx)(R,{}),children:(0,t.jsx)("div",{className:"flex items-center justify-center py-20 text-muted-foreground",children:"记忆库不存在或已被删除"})})}],27111)}]);
|