@jiangxiaosheng/digital-agent-platform 1.0.3 → 1.0.5
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/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +71 -67
- package/.next/app-path-routes-manifest.json +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/eslint/.cache_1bmmeh3 +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/1.pack +0 -0
- package/.next/cache/webpack/client-production/3.pack +0 -0
- package/.next/cache/webpack/client-production/4.pack +0 -0
- package/.next/cache/webpack/client-production/5.pack +0 -0
- package/.next/cache/webpack/client-production/6.pack +0 -0
- package/.next/cache/webpack/client-production/7.pack +0 -0
- package/.next/cache/webpack/client-production/8.pack +0 -0
- package/.next/cache/webpack/client-production/9.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack.old +0 -0
- package/.next/cache/webpack/edge-server-production/1.pack +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/1.pack +0 -0
- package/.next/cache/webpack/server-production/3.pack +0 -0
- package/.next/cache/webpack/server-production/4.pack +0 -0
- package/.next/cache/webpack/server-production/5.pack +0 -0
- package/.next/cache/webpack/server-production/6.pack +0 -0
- package/.next/cache/webpack/server-production/7.pack +0 -0
- package/.next/cache/webpack/server-production/8.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack.old +0 -0
- package/.next/next-minimal-server.js.nft.json +1 -1
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/server/app/[locale]/agents/[id]/chat/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/agents/[id]/edit/page.js +1 -1
- package/.next/server/app/[locale]/agents/[id]/edit/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/agents/[id]/edit/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/agents/new/page.js +1 -1
- package/.next/server/app/[locale]/agents/new/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/agents/new/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/knowledge/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/settings/page.js +1 -1
- package/.next/server/app/[locale]/settings/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/api/agents/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agents/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth-config/test/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/bash-output/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/chat/[agentId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/env-vars/[key]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/env-vars/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/env-vars/scan/route.js +1 -1
- package/.next/server/app/api/env-vars/scan/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/file-serve/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/fs/browse/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/knowledge/[id]/documents/[docId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/knowledge/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/knowledge/[id]/upload/route.js +1 -1
- package/.next/server/app/api/knowledge/[id]/upload/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/knowledge/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/knowledge/search/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models/route.js +1 -1
- package/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[agentId]/[sessionId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[agentId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/history/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/[name]/route.js +1 -1
- package/.next/server/app/api/skills/[name]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/install/route.js +1 -1
- package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/route.js +1 -1
- package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tts/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/voice-provider/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/workspace-files/route_client-reference-manifest.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +17 -17
- package/.next/server/chunks/1354.js +1 -0
- package/.next/server/chunks/7420.js +1 -0
- package/.next/server/chunks/7555.js +1 -0
- package/.next/server/chunks/9576.js +1 -0
- package/.next/server/middleware-manifest.json +4 -4
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/_error.js +1 -1
- package/.next/static/chunks/3763-85d191447a96df85.js +1 -0
- package/.next/static/chunks/5822-2ca912318cc34b52.js +1 -0
- package/.next/static/chunks/5964-cdb47df650c9e359.js +1 -0
- package/.next/static/chunks/6009-1f2b513c3fe454c1.js +1 -0
- package/.next/static/chunks/app/[locale]/agents/[id]/edit/{page-8d0cc73c7aff7774.js → page-74a70d27b56ead9b.js} +1 -1
- package/.next/static/chunks/app/[locale]/agents/new/{page-aeaa197c0ccfd2f9.js → page-11833508212d4d80.js} +1 -1
- package/.next/static/chunks/app/[locale]/knowledge/{page-7b4b6aa0a07d7da3.js → page-4928374e08e30a81.js} +1 -1
- package/.next/static/chunks/app/[locale]/settings/page-472b2cd8df49bf94.js +1 -0
- package/.next/trace +4 -4
- package/package.json +1 -1
- package/src/app/[locale]/settings/page.tsx +3 -3
- package/src/app/api/models/route.ts +8 -2
- package/src/components/agents/model-selector.tsx +6 -0
- package/src/lib/skills.ts +2 -1
- package/.next/server/chunks/1285.js +0 -1
- package/.next/server/chunks/2112.js +0 -1
- package/.next/server/chunks/4125.js +0 -1
- package/.next/static/chunks/2733-714d0e6cd51477c7.js +0 -1
- package/.next/static/chunks/3923-e04a628626d77a16.js +0 -1
- package/.next/static/chunks/6742-ad22486f7c4c8592.js +0 -1
- package/.next/static/chunks/app/[locale]/settings/page-71d67c3b9f712584.js +0 -1
- /package/.next/static/{jzQoM_kWiDDx3mIoxV6tk → rUwWYP4-J64RRKJv93Ihp}/_buildManifest.js +0 -0
- /package/.next/static/{jzQoM_kWiDDx3mIoxV6tk → rUwWYP4-J64RRKJv93Ihp}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/workspace-files/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/workspace-files/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/edit/page.tsx":{"id":260,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/knowledge/page.tsx":{"id":6037,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/chat/page.tsx":{"id":3927,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/settings/page.tsx":{"id":9789,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/new/page.tsx":{"id":1594,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/page.tsx":{"id":3893,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/duan/files/pi-web/digital-agent-platform/src/":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/layout":[{"inlined":false,"path":"static/css/632ce3b5496b50af.css"}],"/Users/duan/files/pi-web/digital-agent-platform/src/app/page":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/workspace-files/route":[]},"rscModuleMapping":{"260":{"*":{"id":"98992","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"77438","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"90835","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"40802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"48530","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"59087","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"21702","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"34863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"25155","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"27994","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"40729","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"88921","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"13219","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"28660","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"35387","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-9b9d7723f8078270.js"/><script src="/_next/static/chunks/4bd1b696-c90310bf0ab1fbc7.js" async=""></script><script src="/_next/static/chunks/1517-9c89c425ac486877.js" async=""></script><script src="/_next/static/chunks/main-app-07be5f69ef8a336a.js" async=""></script><meta name="next-size-adjust" content=""/><title>Digital Agent Platform</title><meta name="description" content="Configure and chat with your AI digital agents"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><script src="/_next/static/chunks/webpack-9b9d7723f8078270.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[5244,[],\"\"]\n3:I[3866,[],\"\"]\n5:I[6213,[],\"OutletBoundary\"]\n7:I[6213,[],\"MetadataBoundary\"]\n9:I[6213,[],\"ViewportBoundary\"]\nb:I[4835,[],\"\"]\n:HL[\"/_next/static/css/632ce3b5496b50af.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-9b9d7723f8078270.js"/><script src="/_next/static/chunks/4bd1b696-c90310bf0ab1fbc7.js" async=""></script><script src="/_next/static/chunks/1517-9c89c425ac486877.js" async=""></script><script src="/_next/static/chunks/main-app-07be5f69ef8a336a.js" async=""></script><meta name="next-size-adjust" content=""/><title>Digital Agent Platform</title><meta name="description" content="Configure and chat with your AI digital agents"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><script src="/_next/static/chunks/webpack-9b9d7723f8078270.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[5244,[],\"\"]\n3:I[3866,[],\"\"]\n5:I[6213,[],\"OutletBoundary\"]\n7:I[6213,[],\"MetadataBoundary\"]\n9:I[6213,[],\"ViewportBoundary\"]\nb:I[4835,[],\"\"]\n:HL[\"/_next/static/css/632ce3b5496b50af.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"rUwWYP4-J64RRKJv93Ihp\",\"p\":\"\",\"c\":[\"\",\"\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/632ce3b5496b50af.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[],[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[\"$L4\",null,[\"$\",\"$L5\",null,{\"children\":\"$L6\"}]]}],{},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$1\",\"RApUB13JSlfnqHv8ujIC8\",{\"children\":[[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"4:E{\"digest\":\"NEXT_REDIRECT;replace;/zh;307;\"}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"1\",{\"children\":\"Digital Agent Platform\"}],[\"$\",\"meta\",\"2\",{\"name\":\"description\",\"content\":\"Configure and chat with your AI digital agents\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\n"])</script></body></html>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
9:I[6213,[],"ViewportBoundary"]
|
|
7
7
|
b:I[4835,[],""]
|
|
8
8
|
:HL["/_next/static/css/632ce3b5496b50af.css","style"]
|
|
9
|
-
0:{"P":null,"b":"
|
|
9
|
+
0:{"P":null,"b":"rUwWYP4-J64RRKJv93Ihp","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/632ce3b5496b50af.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":["$L4",null,["$","$L5",null,{"children":"$L6"}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","RApUB13JSlfnqHv8ujIC8",{"children":[["$","$L7",null,{"children":"$L8"}],["$","$L9",null,{"children":"$La"}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]]}],false]],"m":"$undefined","G":["$b","$undefined"],"s":false,"S":true}
|
|
10
10
|
4:E{"digest":"NEXT_REDIRECT;replace;/zh;307;"}
|
|
11
11
|
a:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
12
12
|
8:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"Digital Agent Platform"}],["$","meta","2",{"name":"description","content":"Configure and chat with your AI digital agents"}]]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/edit/page.tsx":{"id":260,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/knowledge/page.tsx":{"id":6037,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/chat/page.tsx":{"id":3927,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/settings/page.tsx":{"id":9789,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/new/page.tsx":{"id":1594,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/page.tsx":{"id":3893,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/duan/files/pi-web/digital-agent-platform/src/":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/layout":[{"inlined":false,"path":"static/css/632ce3b5496b50af.css"}],"/Users/duan/files/pi-web/digital-agent-platform/src/app/page":[]},"rscModuleMapping":{"260":{"*":{"id":"98992","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"77438","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"90835","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"40802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"48530","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"59087","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"21702","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"34863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"25155","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"27994","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"40729","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"88921","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"13219","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"28660","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"35387","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
{
|
|
2
|
-
"/_not-found/page": "app/_not-found/page.js",
|
|
3
|
-
"/api/agents/route": "app/api/agents/route.js",
|
|
4
2
|
"/api/agents/[id]/route": "app/api/agents/[id]/route.js",
|
|
3
|
+
"/api/agents/route": "app/api/agents/route.js",
|
|
4
|
+
"/_not-found/page": "app/_not-found/page.js",
|
|
5
|
+
"/api/knowledge/[id]/documents/[docId]/route": "app/api/knowledge/[id]/documents/[docId]/route.js",
|
|
5
6
|
"/api/knowledge/[id]/route": "app/api/knowledge/[id]/route.js",
|
|
6
7
|
"/api/knowledge/route": "app/api/knowledge/route.js",
|
|
7
|
-
"/api/knowledge/[id]/documents/[docId]/route": "app/api/knowledge/[id]/documents/[docId]/route.js",
|
|
8
|
-
"/api/sessions/[agentId]/[sessionId]/route": "app/api/sessions/[agentId]/[sessionId]/route.js",
|
|
9
8
|
"/api/knowledge/search/route": "app/api/knowledge/search/route.js",
|
|
10
9
|
"/api/sessions/[agentId]/route": "app/api/sessions/[agentId]/route.js",
|
|
10
|
+
"/api/sessions/[agentId]/[sessionId]/route": "app/api/sessions/[agentId]/[sessionId]/route.js",
|
|
11
11
|
"/api/settings/route": "app/api/settings/route.js",
|
|
12
12
|
"/api/tts/route": "app/api/tts/route.js",
|
|
13
|
-
"/api/
|
|
13
|
+
"/api/bash-output/route": "app/api/bash-output/route.js",
|
|
14
14
|
"/api/auth-config/test/route": "app/api/auth-config/test/route.js",
|
|
15
15
|
"/api/env-vars/route": "app/api/env-vars/route.js",
|
|
16
|
-
"/api/env-vars/
|
|
16
|
+
"/api/env-vars/[key]/route": "app/api/env-vars/[key]/route.js",
|
|
17
17
|
"/api/file-serve/route": "app/api/file-serve/route.js",
|
|
18
18
|
"/api/fs/browse/route": "app/api/fs/browse/route.js",
|
|
19
|
-
"/api/
|
|
19
|
+
"/api/env-vars/scan/route": "app/api/env-vars/scan/route.js",
|
|
20
20
|
"/api/models-config/route": "app/api/models-config/route.js",
|
|
21
|
-
"/api/knowledge/[id]/upload/route": "app/api/knowledge/[id]/upload/route.js",
|
|
22
|
-
"/api/skills/[name]/route": "app/api/skills/[name]/route.js",
|
|
23
|
-
"/api/models-config/test/route": "app/api/models-config/test/route.js",
|
|
24
21
|
"/api/skills/install/route": "app/api/skills/install/route.js",
|
|
22
|
+
"/api/skills/[name]/route": "app/api/skills/[name]/route.js",
|
|
23
|
+
"/api/knowledge/[id]/upload/route": "app/api/knowledge/[id]/upload/route.js",
|
|
24
|
+
"/api/chat/[agentId]/route": "app/api/chat/[agentId]/route.js",
|
|
25
25
|
"/api/skills/route": "app/api/skills/route.js",
|
|
26
|
+
"/api/models-config/test/route": "app/api/models-config/test/route.js",
|
|
26
27
|
"/api/skills/search/route": "app/api/skills/search/route.js",
|
|
28
|
+
"/api/sessions/history/route": "app/api/sessions/history/route.js",
|
|
27
29
|
"/api/voice-provider/route": "app/api/voice-provider/route.js",
|
|
28
30
|
"/api/models/route": "app/api/models/route.js",
|
|
29
|
-
"/api/chat/[agentId]/route": "app/api/chat/[agentId]/route.js",
|
|
30
|
-
"/api/sessions/history/route": "app/api/sessions/history/route.js",
|
|
31
31
|
"/api/workspace-files/route": "app/api/workspace-files/route.js",
|
|
32
32
|
"/page": "app/page.js",
|
|
33
|
-
"/[locale]/agents/
|
|
33
|
+
"/[locale]/agents/[id]/edit/page": "app/[locale]/agents/[id]/edit/page.js",
|
|
34
34
|
"/[locale]/knowledge/page": "app/[locale]/knowledge/page.js",
|
|
35
|
-
"/[locale]/settings/page": "app/[locale]/settings/page.js",
|
|
36
35
|
"/[locale]/agents/[id]/chat/page": "app/[locale]/agents/[id]/chat/page.js",
|
|
37
|
-
"/[locale]/
|
|
38
|
-
"/[locale]/
|
|
39
|
-
"/[locale]/page": "app/[locale]/page.js"
|
|
36
|
+
"/[locale]/page": "app/[locale]/page.js",
|
|
37
|
+
"/[locale]/settings/page": "app/[locale]/settings/page.js",
|
|
38
|
+
"/[locale]/agents/new/page": "app/[locale]/agents/new/page.js",
|
|
39
|
+
"/[locale]/agents/page": "app/[locale]/agents/page.js"
|
|
40
40
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=1354,exports.ids=[1354],exports.modules={31091:(e,t,s)=>{s.d(t,{Bd:()=>v,Pi:()=>h,yU:()=>y});var a=s(45512),r=s(58009),n=s(98755),i=s(24849),d=s(16873),l=s(31393),o=s(17803),c=s(78397),m=s(65213),u=s(39400),p=s(77722),x=s(37637),f=s(43264),g=s(44195);let b=null;function h(){b=null}function y(e,t){let[s,a]=(0,r.useState)({supportsThinking:!1,supportsTemperature:!0,thinkingLevels:[],contextWindow:2e5,maxTokens:8192});return s}function v({providerId:e,modelId:t,onChange:s}){let[h,y]=(0,r.useState)(!1),[v,j]=(0,r.useState)(b??[]),[w,k]=(0,r.useState)(!1),[C,L]=(0,r.useState)(""),[T,R]=(0,r.useState)(e||"anthropic"),z=(0,r.useCallback)(()=>{R(e||v[0]?.id||"anthropic"),L(""),y(!0)},[e,v]),A=v.find(t=>t.id===e),F=A?.models.find(e=>e.id===t),U=F?`${A?.name} / ${F.name}`:e&&t?`${e} / ${t}`:"选择模型…",$=v.find(e=>e.id===T),D=($?.models??[]).filter(e=>{if(!C)return!0;let t=C.toLowerCase();return e.id.toLowerCase().includes(t)||e.name.toLowerCase().includes(t)}),I=e=>{s(e.providerId,e.id,{supportsThinking:e.supportsThinking,supportsTemperature:e.supportsTemperature,thinkingLevels:e.thinkingLevels,contextWindow:e.contextWindow,maxTokens:e.maxTokens}),y(!1),L("")};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.$,{type:"button",variant:"outline",onClick:z,className:"w-full justify-between font-normal h-10",children:[(0,a.jsx)("span",{className:"truncate text-sm",children:U}),(0,a.jsx)(n.A,{className:"ml-2 h-4 w-4 flex-shrink-0 opacity-50"})]}),(0,a.jsx)(f.lG,{open:h,onOpenChange:y,children:(0,a.jsxs)(f.Cf,{className:"max-w-2xl p-0 gap-0 overflow-hidden",children:[(0,a.jsx)(f.c7,{className:"px-4 pt-4 pb-3 border-b shrink-0",children:(0,a.jsx)(f.L3,{className:"text-base",children:"选择模型"})}),(0,a.jsxs)("div",{className:"flex",style:{height:520},children:[(0,a.jsxs)("div",{className:"w-48 shrink-0 border-r flex flex-col",children:[(0,a.jsx)("div",{className:"px-2 py-1.5 border-b",children:(0,a.jsx)("p",{className:"text-xs font-medium text-muted-foreground px-1",children:"提供商"})}),(0,a.jsx)(x.F,{className:"flex-1",children:(0,a.jsxs)("div",{className:"p-1.5 space-y-0.5",children:[w&&!v.length&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground text-center py-6",children:"加载中…"}),v.map(t=>{let s=t.id===T,r=t.id===e;return(0,a.jsxs)("button",{type:"button",onClick:()=>{R(t.id),L("")},className:(0,g.cn)("w-full text-left rounded-md px-2.5 py-2 transition-colors",s?"bg-secondary":"hover:bg-secondary/40"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[r&&(0,a.jsx)(i.A,{className:"h-3 w-3 text-primary shrink-0"}),(0,a.jsx)("span",{className:(0,g.cn)("text-sm truncate",!s&&"text-muted-foreground"),children:t.name})]}),(0,a.jsxs)("span",{className:"text-[11px] text-muted-foreground pl-0",children:[t.models.length," 个模型"]})]},t.id)})]})})]}),(0,a.jsxs)("div",{className:"flex-1 flex flex-col min-w-0",children:[(0,a.jsx)("div",{className:"px-2 py-1.5 border-b shrink-0",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(d.A,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),(0,a.jsx)(p.p,{placeholder:"搜索模型名称或 ID…",value:C,onChange:e=>L(e.target.value),className:"pl-8 h-8 text-sm",autoFocus:!0})]})}),(0,a.jsx)(x.F,{className:"flex-1",children:(0,a.jsxs)("div",{className:"p-2 space-y-1",children:[0===D.length&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground text-center py-10",children:C?"无匹配模型":"该提供商暂无模型"}),D.map(s=>{var r;let n=s.providerId===e&&s.id===t;return(0,a.jsxs)("button",{type:"button",onClick:()=>I(s),className:(0,g.cn)("w-full text-left rounded-lg px-3 py-2.5 border transition-colors",n?"border-primary/50 bg-primary/5 dark:bg-primary/10":"border-transparent hover:border-border hover:bg-secondary/40"),children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:"text-sm font-medium leading-tight",children:s.name}),n&&(0,a.jsx)(i.A,{className:"h-3.5 w-3.5 text-primary shrink-0"})]}),(0,a.jsx)("p",{className:"text-[11px] text-muted-foreground font-mono truncate mt-0.5",children:s.id})]}),void 0!==s.costInput&&(0,a.jsxs)("span",{className:"text-[11px] text-muted-foreground flex items-center gap-0.5 shrink-0 mt-0.5",children:[(0,a.jsx)(l.A,{className:"h-2.5 w-2.5"}),s.costInput,"/",s.costOutput,"/M"]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-1 mt-2",children:[(0,a.jsx)(N,{icon:(0,a.jsx)(o.A,{className:"h-2.5 w-2.5"}),label:(r=s.contextWindow)>=1e6?`${(r/1e6).toFixed(0)}M ctx`:r>=1e3?`${(r/1e3).toFixed(0)}K ctx`:`${r} ctx`}),s.supportsThinking&&(0,a.jsx)(N,{icon:(0,a.jsx)(c.A,{className:"h-2.5 w-2.5"}),label:s.thinkingLevels.length>0?`Thinking (${s.thinkingLevels.join("/")})`:"Thinking",className:"text-purple-600 dark:text-purple-400 border-purple-300 dark:border-purple-700"}),!s.supportsTemperature&&(0,a.jsx)(N,{icon:(0,a.jsx)(m.A,{className:"h-2.5 w-2.5"}),label:"无 Temp",className:"text-amber-600 dark:text-amber-400 border-amber-300 dark:border-amber-700"}),s.inputTypes.includes("image")&&(0,a.jsx)(N,{label:"\uD83D\uDC41 Vision"})]})]},s.id)})]})})]})]})]})})]})}function N({icon:e,label:t,className:s}){return(0,a.jsxs)("span",{className:(0,g.cn)("inline-flex items-center gap-0.5 rounded border px-1.5 py-0.5 text-[10px] leading-none text-muted-foreground",s),children:[e,t]})}},78447:(e,t,s)=>{s.d(t,{E:()=>d});var a=s(45512);s(58009);var r=s(21643),n=s(44195);let i=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function d({className:e,variant:t,...s}){return(0,a.jsx)("div",{className:(0,n.cn)(i({variant:t}),e),...s})}},39400:(e,t,s)=>{s.d(t,{$:()=>o});var a=s(45512),r=s(58009),n=s(12705),i=s(21643),d=s(44195);let l=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=r.forwardRef(({className:e,variant:t,size:s,asChild:r=!1,...i},o)=>{let c=r?n.DX:"button";return(0,a.jsx)(c,{className:(0,d.cn)(l({variant:t,size:s,className:e})),ref:o,...i})});o.displayName="Button"},43264:(e,t,s)=>{s.d(t,{Cf:()=>u,Es:()=>x,L3:()=>f,c7:()=>p,lG:()=>l,rr:()=>g});var a=s(45512),r=s(58009),n=s(27553),i=s(44269),d=s(44195);let l=n.bL;n.l9;let o=n.ZL,c=n.bm,m=r.forwardRef(({className:e,...t},s)=>(0,a.jsx)(n.hJ,{ref:s,className:(0,d.cn)("fixed inset-0 z-50 bg-black/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));m.displayName=n.hJ.displayName;let u=r.forwardRef(({className:e,children:t,...s},r)=>(0,a.jsxs)(o,{children:[(0,a.jsx)(m,{}),(0,a.jsxs)(n.UC,{ref:r,className:(0,d.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 rounded-lg",e),...s,children:[t,(0,a.jsx)(c,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none",children:(0,a.jsx)(i.A,{className:"h-4 w-4"})})]})]}));u.displayName=n.UC.displayName;let p=({className:e,...t})=>(0,a.jsx)("div",{className:(0,d.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});p.displayName="DialogHeader";let x=({className:e,...t})=>(0,a.jsx)("div",{className:(0,d.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});x.displayName="DialogFooter";let f=r.forwardRef(({className:e,...t},s)=>(0,a.jsx)(n.hE,{ref:s,className:(0,d.cn)("text-lg font-semibold leading-none tracking-tight",e),...t}));f.displayName=n.hE.displayName;let g=r.forwardRef(({className:e,...t},s)=>(0,a.jsx)(n.VY,{ref:s,className:(0,d.cn)("text-sm text-muted-foreground",e),...t}));g.displayName=n.VY.displayName},77722:(e,t,s)=>{s.d(t,{p:()=>i});var a=s(45512),r=s(58009),n=s(44195);let i=r.forwardRef(({className:e,type:t,...s},r)=>(0,a.jsx)("input",{type:t,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...s}));i.displayName="Input"},52628:(e,t,s)=>{s.d(t,{J:()=>d});var a=s(45512),r=s(58009),n=s(92405),i=s(44195);let d=r.forwardRef(({className:e,...t},s)=>(0,a.jsx)(n.b,{ref:s,className:(0,i.cn)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...t}));d.displayName=n.b.displayName},93732:(e,t,s)=>{s.d(t,{bq:()=>m,eb:()=>p,gC:()=>u,l6:()=>o,yv:()=>c});var a=s(45512),r=s(58009),n=s(16091),i=s(98755),d=s(24849),l=s(44195);let o=n.bL;n.YJ;let c=n.WT,m=r.forwardRef(({className:e,children:t,...s},r)=>(0,a.jsxs)(n.l9,{ref:r,className:(0,l.cn)("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...s,children:[t,(0,a.jsx)(n.In,{asChild:!0,children:(0,a.jsx)(i.A,{className:"h-4 w-4 opacity-50"})})]}));m.displayName=n.l9.displayName;let u=r.forwardRef(({className:e,children:t,position:s="popper",...r},i)=>(0,a.jsx)(n.ZL,{children:(0,a.jsx)(n.UC,{ref:i,className:(0,l.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-white dark:bg-zinc-800 text-foreground shadow-xl animate-in fade-in-0 zoom-in-95","popper"===s&&"translate-y-1",e),position:s,...r,children:(0,a.jsx)(n.LM,{className:(0,l.cn)("p-1","popper"===s&&"w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));u.displayName=n.UC.displayName;let p=r.forwardRef(({className:e,children:t,...s},r)=>(0,a.jsxs)(n.q7,{ref:r,className:(0,l.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...s,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(d.A,{className:"h-4 w-4"})})}),(0,a.jsx)(n.p4,{children:t})]}));p.displayName=n.q7.displayName,r.forwardRef(({className:e,...t},s)=>(0,a.jsx)(n.JU,{ref:s,className:(0,l.cn)("py-1.5 pl-8 pr-2 text-xs font-semibold",e),...t})).displayName=n.JU.displayName,r.forwardRef(({className:e,...t},s)=>(0,a.jsx)(n.wv,{ref:s,className:(0,l.cn)("-mx-1 my-1 h-px bg-muted",e),...t})).displayName=n.wv.displayName},28712:(e,t,s)=>{s.d(t,{d:()=>d});var a=s(45512),r=s(58009),n=s(84969),i=s(44195);let d=r.forwardRef(({className:e,...t},s)=>(0,a.jsx)(n.bL,{className:(0,i.cn)("peer inline-flex h-[22px] w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=unchecked]:bg-zinc-300 dark:data-[state=unchecked]:bg-zinc-600","data-[state=checked]:bg-[#57BE6B]",e),...t,ref:s,children:(0,a.jsx)(n.zi,{className:(0,i.cn)("pointer-events-none block h-[16px] w-[16px] rounded-full bg-white shadow-md ring-0","transition-transform duration-200","data-[state=checked]:translate-x-[18px] data-[state=unchecked]:translate-x-0")})}));d.displayName=n.bL.displayName},17524:(e,t,s)=>{s.d(t,{Xi:()=>o,av:()=>c,j7:()=>l,tU:()=>d});var a=s(45512),r=s(58009),n=s(93607),i=s(44195);let d=n.bL,l=r.forwardRef(({className:e,...t},s)=>(0,a.jsx)(n.B8,{ref:s,className:(0,i.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));l.displayName=n.B8.displayName;let o=r.forwardRef(({className:e,...t},s)=>(0,a.jsx)(n.l9,{ref:s,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));o.displayName=n.l9.displayName;let c=r.forwardRef(({className:e,...t},s)=>(0,a.jsx)(n.UC,{ref:s,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",e),...t}));c.displayName=n.UC.displayName},75002:(e,t,s)=>{s.d(t,{T:()=>i});var a=s(45512),r=s(58009),n=s(44195);let i=r.forwardRef(({className:e,...t},s)=>(0,a.jsx)("textarea",{className:(0,n.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...t}));i.displayName="Textarea"}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=7420,exports.ids=[7420],exports.modules={37420:(e,s,a)=>{a.d(s,{S:()=>F});var t=a(45512),r=a(58009);a(28531);var l=a(29362),n=a(20169),o=a(61075),d=a(27413),i=a(16873),c=a(20554),x=a(67497),m=a(73388),h=a(39400),u=a(77722),p=a(75002),g=a(52628),b=a(28712),j=a(84732),f=a(44195);let v=r.forwardRef(({className:e,...s},a)=>(0,t.jsxs)(j.bL,{ref:a,className:(0,f.cn)("relative flex w-full touch-none select-none items-center",e),...s,children:[(0,t.jsx)(j.CC,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-zinc-200 dark:bg-zinc-600",children:(0,t.jsx)(j.Q6,{className:"absolute h-full bg-[#57BE6B]"})}),(0,t.jsx)(j.zi,{className:(0,f.cn)("block h-4 w-4 rounded-full bg-white shadow-md ring-0 transition-all","border-2 border-[#57BE6B]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#57BE6B] focus-visible:ring-offset-2","hover:scale-110","disabled:pointer-events-none disabled:opacity-50")})]}));v.displayName=j.bL.displayName;var k=a(78447),y=a(17524),N=a(93732),w=a(31091),C=a(6394),B=a(87137),T=a(99905),E=a(28638),A=a(23545),K=a(24849),S=a(43264),J=a(37637);function L({value:e,onChange:s,placeholder:a}){let[l,n]=(0,r.useState)(!1),[o,d]=(0,r.useState)(null),[i,c]=(0,r.useState)(!1),[x,m]=(0,r.useState)(""),p=(0,r.useCallback)(async e=>{c(!0);try{let s=await fetch(`/api/fs/browse?path=${encodeURIComponent(e)}`),a=await s.json();d(a)}catch{}finally{c(!1)}},[]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(u.p,{value:e,onChange:e=>s(e.target.value),placeholder:a??"~/projects/my-project",className:"font-mono text-sm flex-1"}),(0,t.jsxs)(h.$,{type:"button",variant:"outline",size:"sm",onClick:()=>{let s=e?.trim().replace(/^~/,"~")||"~";m(e||""),p(s.replace(/^~/,"")?s:"~"),n(!0)},className:"shrink-0 gap-1.5",children:[(0,t.jsx)(C.A,{className:"h-4 w-4"}),"浏览"]})]}),(0,t.jsx)(S.lG,{open:l,onOpenChange:n,children:(0,t.jsxs)(S.Cf,{className:"max-w-lg p-0 gap-0",children:[(0,t.jsx)(S.c7,{className:"px-4 pt-4 pb-3 border-b",children:(0,t.jsx)(S.L3,{className:"text-base",children:"选择工作区目录"})}),(0,t.jsxs)("div",{className:"flex items-center gap-1 px-3 py-2 border-b bg-secondary/30 flex-wrap",children:[(0,t.jsx)("button",{type:"button",onClick:()=>p("~"),className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:(0,t.jsx)(B.A,{className:"h-3.5 w-3.5"})}),o?.breadcrumb.slice(1).map((e,s)=>t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(T.A,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("button",{type:"button",onClick:()=>p(e.path),className:"text-xs text-muted-foreground hover:text-foreground transition-colors max-w-[120px] truncate",children:e.label})]},s))]}),(0,t.jsx)(J.F,{className:"h-64",children:(0,t.jsxs)("div",{className:"p-2 space-y-0.5",children:[o?.canGoUp&&(0,t.jsxs)("button",{type:"button",onClick:()=>p(o.parent),className:"w-full flex items-center gap-2.5 rounded-lg px-3 py-2 text-sm text-muted-foreground hover:bg-secondary/60 transition-colors",children:[(0,t.jsx)(E.A,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"text-xs",children:"返回上级"})]}),i&&!o&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground text-center py-8",children:"加载中…"}),!i&&o?.entries.length===0&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground text-center py-8",children:"此目录为空"}),o?.entries.map(e=>{let s=x===e.path;return t.jsxs("div",{className:"flex items-center group",children:[t.jsxs("button",{type:"button",onClick:()=>m(e.path),onDoubleClick:()=>p(e.path),className:f.cn("flex-1 flex items-center gap-2.5 rounded-lg px-3 py-2 text-sm transition-colors text-left",s?"bg-[#57BE6B]/15 dark:bg-[#57BE6B]/20 border border-[#57BE6B]/40":"hover:bg-secondary/60 border border-transparent"),children:[t.jsx(A.A,{className:f.cn("h-4 w-4 shrink-0",s?"text-[#57BE6B]":"text-amber-500")}),t.jsx("span",{className:"truncate font-medium",children:e.name}),s&&t.jsx(K.A,{className:"ml-auto h-3.5 w-3.5 text-[#57BE6B] shrink-0"})]}),t.jsx("button",{type:"button",onClick:()=>p(e.path),className:"opacity-0 group-hover:opacity-100 p-2 text-muted-foreground hover:text-foreground transition-all",title:"进入目录",children:t.jsx(T.A,{className:"h-4 w-4"})})]},e.path)})]})}),(0,t.jsx)("div",{className:"px-4 py-2.5 border-t bg-secondary/20",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground shrink-0",children:"选中:"}),(0,t.jsx)("code",{className:"text-xs font-mono text-foreground truncate flex-1",children:x||o?.current||"未选择"})]})}),(0,t.jsxs)(S.Es,{className:"px-4 py-3 border-t",children:[(0,t.jsx)(h.$,{variant:"outline",onClick:()=>n(!1),children:"取消"}),(0,t.jsxs)(h.$,{onClick:()=>{s(x||o?.current||""),n(!1)},disabled:!x&&!o?.current,children:[(0,t.jsx)(C.A,{className:"mr-2 h-4 w-4"}),"选择此目录"]})]})]})})]})}var P=a(68473);let $={off:"关闭",minimal:"最低",low:"低",medium:"中等",high:"高",xhigh:"极高",max:"最大"},z=[{key:"bash",icon:n.A,color:"bg-orange-100 text-orange-600 dark:bg-orange-900/40 dark:text-orange-400",labelKey:"bash",hintKey:"bashHint"},{key:"fileRead",icon:o.A,color:"bg-blue-100 text-blue-600 dark:bg-blue-900/40 dark:text-blue-400",labelKey:"fileRead",hintKey:"fileReadHint"},{key:"fileWrite",icon:d.A,color:"bg-violet-100 text-violet-600 dark:bg-violet-900/40 dark:text-violet-400",labelKey:"fileWrite",hintKey:"fileWriteHint"},{key:"grep",icon:i.A,color:"bg-green-100 text-green-600 dark:bg-green-900/40 dark:text-green-400",labelKey:"grep",hintKey:"grepHint"},{key:"find",icon:c.A,color:"bg-teal-100 text-teal-600 dark:bg-teal-900/40 dark:text-teal-400",labelKey:"find",hintKey:"findHint"},{key:"calculator",icon:x.A,color:"bg-yellow-100 text-yellow-600 dark:bg-yellow-900/40 dark:text-yellow-400",labelKey:"calculator",hintKey:"calculatorHint"}];function F({initialValues:e,onSave:s,saving:a,submitLabel:n}){let o=(0,l.useTranslations)("agents.form"),d=(0,l.useTranslations)("common"),[i,c]=(0,r.useState)({...e}),[x,j]=(0,r.useState)([]),C=(0,w.yU)(i.model.provider,i.model.modelId),[B,T]=(0,r.useState)(C),E=(e,s)=>c(a=>({...a,[e]:s})),A=(e,s)=>c(a=>({...a,model:{...a.model,[e]:s}})),K=(e,s)=>c(a=>({...a,persona:{...a.persona,[e]:s}})),S=e=>c(s=>({...s,tools:{...s.tools,[e]:!s.tools[e]}})),J=e=>c(s=>({...s,knowledgeBases:s.knowledgeBases.includes(e)?s.knowledgeBases.filter(s=>s!==e):[...s.knowledgeBases,e]})),F=B.supportsThinking&&B.thinkingLevels.length>0?B.thinkingLevels:B.supportsThinking?["low","medium","high","xhigh","max"]:[],H=F.includes(i.model.thinkingLevel)?i.model.thinkingLevel:F[0]??"off",R=Object.values(i.tools).filter(Boolean).length,W=(i.enabledSkills??[]).length;return(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),s(i)},children:[(0,t.jsxs)(y.tU,{defaultValue:"basic",children:[(0,t.jsxs)(y.j7,{className:"mb-6 w-full grid grid-cols-5 h-10",children:[(0,t.jsx)(y.Xi,{value:"basic",className:"text-xs",children:"基本信息"}),(0,t.jsx)(y.Xi,{value:"model",className:"text-xs",children:o("modelConfig")}),(0,t.jsxs)(y.Xi,{value:"tools",className:"text-xs relative",children:[o("toolsConfig"),R>0&&(0,t.jsx)("span",{className:"ml-1 inline-flex items-center justify-center h-4 w-4 rounded-full bg-primary text-primary-foreground text-[9px] font-bold",children:R})]}),(0,t.jsxs)(y.Xi,{value:"skills",className:"text-xs relative",children:["Skills",W>0&&(0,t.jsx)("span",{className:"ml-1 inline-flex items-center justify-center h-4 w-4 rounded-full bg-purple-500 text-white text-[9px] font-bold",children:W})]})]}),(0,t.jsxs)(y.av,{value:"basic",className:"space-y-5",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.J,{children:o("avatar")}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:P.B.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>E("avatar",e),className:(0,f.cn)("h-10 w-10 rounded-xl text-xl transition-all hover:scale-110",i.avatar===e&&"ring-2 ring-primary ring-offset-2 bg-secondary"),children:e},e))})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)(g.J,{htmlFor:"name",children:[o("name")," *"]}),(0,t.jsx)(u.p,{id:"name",required:!0,value:i.name,onChange:e=>E("name",e.target.value),placeholder:o("namePlaceholder")})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(g.J,{htmlFor:"desc",children:o("description")}),(0,t.jsx)(u.p,{id:"desc",value:i.description,onChange:e=>E("description",e.target.value),placeholder:o("descriptionPlaceholder")})]})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(g.J,{htmlFor:"prompt",children:o("systemPrompt")}),(0,t.jsx)(p.T,{id:"prompt",rows:8,value:i.systemPrompt,onChange:e=>E("systemPrompt",e.target.value),placeholder:o("systemPromptPlaceholder")})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(g.J,{children:o("tone")}),(0,t.jsxs)(N.l6,{value:i.persona.tone,onValueChange:e=>K("tone",e),children:[(0,t.jsx)(N.bq,{children:(0,t.jsx)(N.yv,{})}),(0,t.jsx)(N.gC,{children:["formal","casual","friendly","professional"].map(e=>(0,t.jsx)(N.eb,{value:e,children:o(`tones.${e}`)},e))})]})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(g.J,{children:o("language")}),(0,t.jsxs)(N.l6,{value:i.persona.language,onValueChange:e=>K("language",e),children:[(0,t.jsx)(N.bq,{children:(0,t.jsx)(N.yv,{})}),(0,t.jsxs)(N.gC,{children:[(0,t.jsx)(N.eb,{value:"zh-CN",children:"中文(简体)"}),(0,t.jsx)(N.eb,{value:"zh-TW",children:"中文(繁體)"}),(0,t.jsx)(N.eb,{value:"en-US",children:"English"}),(0,t.jsx)(N.eb,{value:"ja-JP",children:"日本語"}),(0,t.jsx)(N.eb,{value:"ko-KR",children:"한국어"})]})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.J,{className:"text-gray-700 dark:text-gray-300",children:o("knowledgeConfig")}),(0,t.jsx)("p",{className:"text-xs text-gray-600 dark:text-muted-foreground",children:o("knowledgeHint")}),0===x.length?(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-muted-foreground py-2",children:o("noKnowledge")}):x.map(e=>(0,t.jsxs)("div",{className:"neo-card flex items-center gap-3 rounded-lg p-3 bg-white dark:bg-slate-800/50 hover:scale-[1.01] transition-transform",children:[(0,t.jsx)(b.d,{id:`kb-${e.id}`,checked:i.knowledgeBases.includes(e.id),onCheckedChange:()=>J(e.id)}),(0,t.jsxs)(g.J,{htmlFor:`kb-${e.id}`,className:"cursor-pointer font-normal flex-1 text-gray-800 dark:text-white",children:[e.name,(0,t.jsxs)("span",{className:"ml-2 text-xs text-gray-600 dark:text-muted-foreground",children:[e.documentCount," 文档 \xb7 ",e.chunkCount," 块"]})]})]},e.id))]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)(g.J,{className:"flex items-center gap-1.5",children:["工作区目录",(0,t.jsx)("span",{className:"text-xs text-muted-foreground font-normal",children:"(可选)"})]}),(0,t.jsx)(L,{value:i.workspacePath??"",onChange:e=>E("workspacePath",e),placeholder:"~/projects/my-project (留空使用默认工作区)"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"数字人使用工具时(bash/read/write)的根目录。留空则自动创建专属工作区。"})]})]}),(0,t.jsxs)(y.av,{value:"model",className:"space-y-5",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(g.J,{children:o("modelId")}),(0,t.jsx)(w.Bd,{providerId:i.model.provider,modelId:i.model.modelId,onChange:(e,s,a)=>{T(a),c(t=>({...t,model:{...t.model,provider:e,modelId:s,thinkingLevel:a.supportsThinking?"off"!==t.model.thinkingLevel?t.model.thinkingLevel:a.thinkingLevels[0]??"medium":"off"}}))}}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5 pt-1",children:[(0,t.jsxs)(k.E,{variant:"secondary",className:"text-xs font-normal",children:["上下文 ",I(B.contextWindow)]}),(0,t.jsxs)(k.E,{variant:"secondary",className:"text-xs font-normal",children:["输出最大 ",I(B.maxTokens)]}),B.supportsThinking&&(0,t.jsx)(k.E,{className:"text-xs font-normal bg-purple-100 text-purple-700 dark:bg-purple-900/50 dark:text-purple-300 border-0 hover:bg-purple-100",children:"\uD83E\uDDE0 支持 Thinking"}),!B.supportsTemperature&&(0,t.jsx)(k.E,{variant:"outline",className:"text-xs font-normal text-amber-600 dark:text-amber-400 border-amber-300 dark:border-amber-600",children:"\uD83C\uDF21 无 Temperature"})]})]}),B.supportsThinking&&F.length>0&&(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(g.J,{children:o("thinkingLevel")}),(0,t.jsxs)(N.l6,{value:H,onValueChange:e=>A("thinkingLevel",e),children:[(0,t.jsx)(N.bq,{children:(0,t.jsx)(N.yv,{})}),(0,t.jsx)(N.gC,{children:F.map(e=>(0,t.jsx)(N.eb,{value:e,children:$[e]??e},e))})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"思考深度越高,推理越准确,Token 消耗也会增加。"})]}),B.supportsTemperature&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(g.J,{children:o("temperature")}),(0,t.jsx)("span",{className:"text-sm tabular-nums text-muted-foreground",children:i.model.temperature.toFixed(2)})]}),(0,t.jsx)(v,{min:0,max:1,step:.01,value:[i.model.temperature],onValueChange:([e])=>A("temperature",e)}),(0,t.jsxs)("div",{className:"flex justify-between text-[11px] text-muted-foreground px-0.5",children:[(0,t.jsx)("span",{children:"精确 0.00"}),(0,t.jsx)("span",{children:"平衡 0.70"}),(0,t.jsx)("span",{children:"创意 1.00"})]})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(g.J,{children:o("maxTokens")}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:["上限 ",I(B.maxTokens)]})]}),(0,t.jsx)(u.p,{type:"number",min:256,max:B.maxTokens||2e5,value:i.model.maxTokens,onChange:e=>A("maxTokens",Math.min(Number(e.target.value),B.maxTokens||2e5))})]})]}),(0,t.jsxs)(y.av,{value:"tools",className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-xs text-gray-600 dark:text-muted-foreground",children:"开启后数字人可在对话中使用对应工具。点击卡片切换。"}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-2",children:[z.map(({key:e,icon:s,color:a,labelKey:r,hintKey:l})=>{let n=i.tools[e];return(0,t.jsxs)("button",{type:"button",onClick:()=>S(e),className:(0,f.cn)("flex items-center gap-4 rounded-xl p-4 text-left transition-all",n?"neo-card-inset border-2 border-blue-200 bg-blue-50 dark:border-[#57BE6B]/60 dark:bg-[#57BE6B]/20 shadow-sm":"neo-button bg-white dark:bg-transparent border border-gray-200 dark:border-border hover:border-blue-300 dark:hover:border-zinc-600 hover:scale-[1.01]"),children:[(0,t.jsx)("div",{className:(0,f.cn)("h-10 w-10 rounded-xl flex items-center justify-center shrink-0",a),children:(0,t.jsx)(s,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-gray-800 dark:text-white",children:o(`tools.${r}`)}),(0,t.jsx)("p",{className:"text-xs text-gray-600 dark:text-muted-foreground mt-0.5",children:o(`tools.${l}`)})]}),(0,t.jsx)(D,{enabled:n})]},e)}),(0,t.jsxs)("button",{type:"button",onClick:()=>c(e=>({...e,voice:{enabled:!e.voice.enabled}})),className:(0,f.cn)("flex items-center gap-4 rounded-xl p-4 text-left transition-all",i.voice.enabled?"neo-card-inset border-2 border-green-200 bg-green-50 dark:border-green-500/60 dark:bg-green-500/20 shadow-sm":"neo-button bg-white dark:bg-transparent border border-gray-200 dark:border-border hover:border-green-300 dark:hover:border-zinc-600 hover:scale-[1.01]"),children:[(0,t.jsx)("div",{className:(0,f.cn)("h-10 w-10 rounded-xl flex items-center justify-center shrink-0",i.voice.enabled?"bg-green-500 text-white":"bg-gray-100 text-gray-500 dark:bg-muted dark:text-muted-foreground"),children:(0,t.jsx)(m.A,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-gray-800 dark:text-white",children:"语音功能"}),(0,t.jsx)("p",{className:"text-xs text-gray-600 dark:text-muted-foreground mt-0.5",children:"启用语音朗读功能(全局供应商在设置中配置)"})]}),(0,t.jsx)(D,{enabled:i.voice.enabled})]})]})]}),(0,t.jsx)(y.av,{value:"skills",className:"space-y-3",children:(0,t.jsx)("div",{className:"neo-card flex items-start gap-3 rounded-xl border-2 border-purple-200 dark:border-purple-800 bg-purple-50 dark:bg-purple-900/20 p-4",children:(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)("p",{className:"text-sm text-gray-700 dark:text-gray-300",children:"Skills 功能允许agent使用自定义工具和能力。"})})})})]}),(0,t.jsx)("div",{className:"mt-6 flex justify-end",children:(0,t.jsx)(h.$,{type:"submit",disabled:a||!i.name.trim(),className:"neo-button bg-gradient-to-r from-blue-500 to-indigo-500 dark:from-cyan-600 dark:to-blue-600 hover:from-blue-600 hover:to-indigo-600 dark:hover:from-cyan-500 dark:hover:to-blue-500 text-white",children:a?d("loading"):n??d("save")})})]})}function I(e){return e>=1e6?`${(e/1e6).toFixed(0)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:String(e)}function D({enabled:e,color:s="default"}){return(0,t.jsx)("div",{className:(0,f.cn)("h-[22px] w-10 rounded-full transition-colors duration-200 shrink-0 relative",e?"bg-[#57BE6B]":"bg-zinc-300 dark:bg-zinc-600"),children:(0,t.jsx)("div",{className:(0,f.cn)("absolute top-[3px] h-4 w-4 rounded-full bg-white shadow-md transition-transform duration-200",e?"translate-x-[19px]":"translate-x-[3px]")})})}},68473:(e,s,a)=>{a.d(s,{B:()=>r,k:()=>t});let t={name:"",avatar:"\uD83E\uDD16",description:"",systemPrompt:"",persona:{tone:"friendly",language:"zh-CN"},model:{provider:"anthropic",modelId:"claude-opus-4-5",temperature:.7,maxTokens:8192,thinkingLevel:"medium"},voice:{enabled:!1},tools:{bash:!1,fileRead:!1,fileWrite:!1,grep:!1,find:!1,calculator:!1},knowledgeBases:[],enabledSkills:[],workspacePath:""},r=["\uD83E\uDD16","\uD83E\uDDE0","\uD83D\uDCA1","\uD83C\uDFAF","\uD83C\uDF1F","\uD83E\uDDBE","\uD83D\uDC7E","\uD83C\uDFAD","\uD83D\uDC68\uD83D\uDCBC","\uD83D\uDC69\uD83D\uDCBC","\uD83D\uDC68\uD83C\uDFEB","\uD83D\uDC69\uD83C\uDFEB","\uD83D\uDC68\uD83D\uDCBB","\uD83D\uDC69\uD83D\uDCBB","\uD83E\uDDD1\uD83C\uDFA8","\uD83E\uDDD1\uD83D\uDD2C","\uD83D\uDC09","\uD83E\uDD8A","\uD83D\uDC3C","\uD83E\uDD81","\uD83D\uDC2C","\uD83E\uDD8B","\uD83C\uDF08","⚡"]}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=7555,exports.ids=[7555],exports.modules={78397:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(41680).A)("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]])},17803:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(41680).A)("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]])},31393:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(41680).A)("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},16873:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(41680).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},20169:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(41680).A)("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]])},65213:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(41680).A)("Thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]])},39217:(e,t,n)=>{n.d(t,{N:()=>c});var r=n(58009),o=n(6004),i=n(29952),l=n(12705),a=n(45512),s=Object.defineProperty,u=(e,t)=>s(e,"name",{value:t,configurable:!0});function c(e){let t=e+"CollectionProvider",[n,s]=(0,o.A)(t),[c,f]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=u(e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,a.jsx)(c,{scope:t,itemMap:i,collectionRef:o,children:n})},"CollectionProvider");d.displayName=t;let p=e+"CollectionSlot",h=(0,l.TL)(p),m=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=f(p,n),l=(0,i.s)(t,o.collectionRef);return(0,a.jsx)(h,{ref:l,children:r})});m.displayName=p;let g=e+"CollectionItemSlot",y="data-radix-collection-item",v=(0,l.TL)(g),w=r.forwardRef((e,t)=>{let{scope:n,children:o,...l}=e,s=r.useRef(null),u=(0,i.s)(t,s),c=f(g,n);return r.useEffect(()=>(c.itemMap.set(s,{ref:s,...l}),()=>void c.itemMap.delete(s))),(0,a.jsx)(v,{[y]:"",ref:u,children:o})});function x(t){let n=f(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${y}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return w.displayName=g,u(x,"useCollection"),[{Provider:d,Slot:m,ItemSlot:w},x,s]}u(c,"createCollection");var f=new WeakMap,d=class e extends Map{static{u(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],f.set(this,!0)}set(e,t){return f.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r;let o=this.has(t),i=this.#e.length,l=m(e),a=l>=0?l:i+l,s=a<0||a>=i?-1:a;if(s===this.size||o&&s===this.size-1||-1===s)return this.set(t,n),this;let u=this.size+(o?0:1);l<0&&a++;let c=[...this.#e],f=!1;for(let e=a;e<u;e++)if(a===e){let i=c[e];c[e]===t&&(i=c[e+1]),o&&this.delete(t),r=this.get(i),this.set(t,n)}else{f||c[e-1]!==t||(f=!0);let n=c[f?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=p(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=p(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return p(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(...e){let[t,n]=e,r=0,o=n??this.at(0);for(let n of this)o=0===r&&1===e.length?n:Reflect.apply(t,this,[o,n,r,this]),r++;return o}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let o=this.at(n);r=n===this.size-1&&1===e.length?o:Reflect.apply(t,this,[r,o,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function p(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=h(e,t);return -1===n?void 0:e[n]}function h(e,t){let n=e.length,r=m(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}function m(e){return e!=e||0===e?0:Math.trunc(e)}function g(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function y(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function v(e,t){return e[1].element&&t[1].element?y(e[1].element,t[1].element)?-1:1:0}function w(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type){e();return}})}u(p,"at"),u(h,"toSafeIndex"),u(m,"toSafeInteger"),u(function(e){let t=e+"CollectionProvider",[n,s]=(0,o.A)(t),[c,f]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new d,setItemMap:u(()=>void 0,"setItemMap")}),p=u(({state:e,...t})=>e?(0,a.jsx)(m,{...t,state:e}):(0,a.jsx)(h,{...t}),"CollectionProvider");p.displayName=t;let h=u(e=>{let t=k();return(0,a.jsx)(m,{...e,state:t})},"CollectionInit");h.displayName=t+"Init";let m=u(e=>{let{scope:t,children:n,state:o}=e,l=r.useRef(null),[s,u]=r.useState(null),f=(0,i.s)(l,u),[d,p]=o;return r.useEffect(()=>{if(!s)return;let e=w(()=>{});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s]),(0,a.jsx)(c,{scope:t,itemMap:d,setItemMap:p,collectionRef:f,collectionRefObject:l,collectionElement:s,children:n})},"CollectionProviderImpl");m.displayName=t+"Impl";let y=e+"CollectionSlot",x=(0,l.TL)(y),b=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=f(y,n),l=(0,i.s)(t,o.collectionRef);return(0,a.jsx)(x,{ref:l,children:r})});b.displayName=y;let S=e+"CollectionItemSlot",R=(0,l.TL)(S),C=r.forwardRef((e,t)=>{let{scope:n,children:o,...l}=e,s=r.useRef(null),[u,c]=r.useState(null),p=(0,i.s)(t,s,c),{setItemMap:h}=f(S,n),m=r.useRef(l);g(m.current,l)||(m.current=l);let y=m.current;return r.useEffect(()=>(h(e=>u?e.has(u)?e.set(u,{...y,element:u}).toSorted(v):(e.set(u,{...y,element:u}),e.toSorted(v)):e),()=>{h(e=>u&&e.has(u)?(e.delete(u),new d(e)):e)}),[u,y,h]),(0,a.jsx)(R,{"data-radix-collection-item":"",ref:p,children:o})});function k(){return r.useState(new d)}function A(t){let{itemMap:n}=f(e+"CollectionConsumer",t);return n}return C.displayName=S,u(k,"useInitCollection"),u(A,"useCollection"),[{Provider:p,Slot:b,ItemSlot:C},{createCollectionScope:s,useCollection:A,useInitCollection:k}]},"createCollection"),u(g,"shallowEqual"),u(y,"isElementPreceding"),u(v,"sortByDocumentPosition"),u(w,"getChildListObserver")},92405:(e,t,n)=>{n.d(t,{b:()=>a});var r=n(58009),o=n(30830),i=n(45512),l=Object.defineProperty,a=r.forwardRef(l(function(e,t){return(0,i.jsx)(o.sG.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0}))},16091:(e,t,n)=>{let r;n.d(t,{UC:()=>tE,YJ:()=>tW,In:()=>tk,q7:()=>tZ,VF:()=>tJ,p4:()=>tY,JU:()=>tq,ZL:()=>tT,bL:()=>tS,wv:()=>tQ,l9:()=>tR,WT:()=>tC,LM:()=>tB});var o=n(58009),i=n(55740),l=n(29374),a=n(31412),s=n(39217),u=n(29952),c=n(6004),f=n(59018),d=n(42155),p=n(19632),h=n(82534),m=n(30096);let g=["top","right","bottom","left"],y=Math.min,v=Math.max,w=Math.round,x=Math.floor,b=e=>({x:e,y:e}),S={left:"right",right:"left",bottom:"top",top:"bottom"};function R(e,t){return"function"==typeof e?e(t):e}function C(e){return e.split("-")[0]}function k(e){return e.split("-")[1]}function A(e){return"x"===e?"y":"x"}function j(e){return"y"===e?"height":"width"}function T(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function P(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let E=["left","right"],M=["right","left"],I=["top","bottom"],O=["bottom","top"];function L(e){let t=C(e);return S[t]+e.slice(t.length)}function D(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function F(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function H(e,t,n){let r,{reference:o,floating:i}=e,l=T(t),a=A(T(t)),s=j(a),u=C(t),c=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[s]/2-i[s]/2;switch(u){case"top":r={x:c,y:o.y-i.height};break;case"bottom":r={x:c,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}let p=k(t);return p&&(r[a]+=d*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function K(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=R(t,e),h=D(p),m=a[d?"floating"===f?"reference":"floating":f],g=F(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),y="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,v=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(v))&&await (null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},x=F(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:s}):y);return{top:(g.top-x.top+h.top)/w.y,bottom:(x.bottom-g.bottom+h.bottom)/w.y,left:(g.left-x.left+h.left)/w.x,right:(x.right-g.right+h.right)/w.x}}let N=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:K},s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=H(u,r,s),d=r,p=0,h={};for(let n=0;n<i.length;n++){let m=i[n];if(!m)continue;let{name:g,fn:y}=m,{x:v,y:w,data:x,reset:b}=await y({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,f=null!=w?w:f,h[g]={...h[g],...x},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:f}=H(u,d,s)),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:h}};function z(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function B(e){return g.some(t=>e[t]>=0)}let G=new Set(["left","top"]);async function V(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=C(n),a=k(n),s="y"===T(n),u=G.has(l)?-1:1,c=i&&s?-1:1,f=R(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}function W(){return"undefined"!=typeof window}function q(e){return U(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function $(e){var t;return null==(t=(U(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function U(e){return!!W()&&(e instanceof Node||e instanceof _(e).Node)}function Z(e){return!!W()&&(e instanceof Element||e instanceof _(e).Element)}function X(e){return!!W()&&(e instanceof HTMLElement||e instanceof _(e).HTMLElement)}function Y(e){return!!W()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof _(e).ShadowRoot)}function J(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=el(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Q(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ee=/transform|translate|scale|rotate|perspective|filter/,et=/paint|layout|strict|content/,en=e=>!!e&&"none"!==e;function er(e){let t=Z(e)?el(e):e;return en(t.transform)||en(t.translate)||en(t.scale)||en(t.rotate)||en(t.perspective)||!eo()&&(en(t.backdropFilter)||en(t.filter))||ee.test(t.willChange||"")||et.test(t.contain||"")}function eo(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function ei(e){return/^(html|body|#document)$/.test(q(e))}function el(e){return _(e).getComputedStyle(e)}function ea(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function es(e){if("html"===q(e))return e;let t=e.assignedSlot||e.parentNode||Y(e)&&e.host||$(e);return Y(t)?t.host:t}function eu(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=es(t);return ei(n)?(t.ownerDocument||t).body:X(n)&&J(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=_(o);if(!i)return t.concat(o,eu(o,[],n));{let e=ec(l);return t.concat(l,l.visualViewport||[],J(o)?o:[],e&&n?eu(e):[])}}function ec(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ef(e){let t=el(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=X(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=w(n)!==i||w(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ed(e){return Z(e)?e:e.contextElement}function ep(e){let t=ed(e);if(!X(t))return b(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ef(t),l=(i?w(n.width):n.width)/r,a=(i?w(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eh=b(0);function em(e){let t=_(e);return eo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eh}function eg(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ed(e),a=b(1);t&&(r?Z(r)&&(a=ep(r)):a=ep(e));let s=(void 0===(o=n)&&(o=!1),r&&o&&r===_(l))?em(l):b(0),u=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l&&r){let e=_(l),t=Z(r)?_(r):r,n=e,o=ec(n);for(;o&&t!==n;){let e=ep(o),t=o.getBoundingClientRect(),r=el(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,f*=e.x,d*=e.y,u+=i,c+=l,o=ec(n=_(o))}}return F({width:f,height:d,x:u,y:c})}function ey(e,t){let n=ea(e).scrollLeft;return t?t.left+n:eg($(e)).left+n}function ev(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ey(e,n),y:n.top+t.scrollTop}}function ew(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=_(e),i=$(e),l=o.visualViewport,a=i.clientWidth,s=i.clientHeight,u=0,c=0;if(l){let e=!eo()||"fixed"===t;r?e||(u=-l.offsetLeft,c=-l.offsetTop):(a=l.width,s=l.height,e&&(u=l.offsetLeft,c=l.offsetTop))}if(0>=ey(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(a-=l)}return{width:a,height:s,x:u,y:c}}(e,n,t);else if("document"===t)r=function(e){let t=ea(e),n=e.ownerDocument.body,r=v(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=v(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+ey(e),l=-t.scrollTop;return"rtl"===el(n).direction&&(i+=v(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}($(e));else if(Z(t))r=function(e,t){let n=eg(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ep(e),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=em(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return F(r)}function ex(e){return"static"===el(e).position}function eb(e,t){if(!X(e)||"fixed"===el(e).position)return null;if(t)return t(e);let n=e.offsetParent;return $(e)===n&&(n=n.ownerDocument.body),n}function eS(e,t){var n;let r=_(e);if(Q(e))return r;if(!X(e)){let t=es(e);for(;t&&!ei(t);){if(Z(t)&&!ex(t))return t;t=es(t)}return r}let o=eb(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(q(n)))&&ex(o);)o=eb(o,t);return o&&ei(o)&&ex(o)&&!er(o)?r:o||function(e){let t=es(e);for(;X(t)&&!ei(t);){if(er(t))return t;if(Q(t))break;t=es(t)}return null}(e)||r}let eR=async function(e){let t=this.getOffsetParent||eS,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=X(t),o=$(t),i="fixed"===n,l=eg(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=b(0);if((r||!i)&&(("body"!==q(t)||J(o))&&(a=ea(t)),r)){let e=eg(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}!r&&o&&(s.x=ey(o));let u=!o||r||i?b(0):ev(o,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}}},eC={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=$(r),a=!!t&&Q(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},u=b(1),c=b(0),f=X(r);if((f||!i)&&(("body"!==q(r)||J(l))&&(s=ea(r)),f)){let e=eg(r);u=ep(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let d=!l||f||i?b(0):ev(l,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-s.scrollTop*u.y+c.y+d.y}},getDocumentElement:$,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?Q(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eu(e,[],!1).filter(e=>Z(e)&&"body"!==q(e)),o=null,i="fixed"===el(e).position,l=i?es(e):e;for(;Z(l)&&!ei(l);){let e=el(l),t=er(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=es(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=ew(t,i[0],o),a=l.top,s=l.right,u=l.bottom,c=l.left;for(let e=1;e<i.length;e++){let n=ew(t,i[e],o);a=v(n.top,a),s=y(n.right,s),u=y(n.bottom,u),c=v(n.left,c)}return{width:s-c,height:u-a,x:c,y:a}},getOffsetParent:eS,getElementRects:eR,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=ef(e);return{width:t,height:n}},getScale:ep,isElement:Z,isRTL:function(e){return"rtl"===el(e).direction}};function ek(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eA=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:u,padding:c=0}=R(e,t)||{};if(null==u)return{};let f=D(c),d={x:n,y:r},p=A(T(o)),h=j(p),m=await l.getDimensions(u),g="y"===p,w=g?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[p]-d[p]-i.floating[h],b=d[p]-i.reference[p],S=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u)),C=S?S[w]:0;C&&await (null==l.isElement?void 0:l.isElement(S))||(C=a.floating[w]||i.floating[h]);let P=C/2-m[h]/2-1,E=y(f[g?"top":"left"],P),M=y(f[g?"bottom":"right"],P),I=C-m[h]-M,O=C/2-m[h]/2+(x/2-b/2),L=v(E,y(O,I)),F=!s.arrow&&null!=k(o)&&O!==L&&i.reference[h]/2-(O<E?E:M)-m[h]/2<0,H=F?O<E?O-E:O-I:0;return{[p]:d[p]+H,data:{[p]:L,centerOffset:O-L-H,...F&&{alignmentOffset:H}},reset:F}}}),ej=(e,t,n)=>{let r=new Map,o=null!=n?n:{},i={...eC,...o.platform,_c:r};return N(e,t,{...o,platform:i})};var eT="undefined"!=typeof document?o.useLayoutEffect:function(){};function eP(e,t){let n,r,o;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=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eP(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eE(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eM(e,t){let n=eE(e);return Math.round(t*n)/n}function eI(e){let t=o.useRef(e);return eT(()=>{t.current=e}),t}let eO=e=>({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?eA({element:n.current,padding:r}).fn(t):{}:n?eA({element:n,padding:r}).fn(t):{}}}),eL=(e,t)=>{let n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,s=await V(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},eD=(e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=R(e,t),c={x:n,y:r},f=await i.detectOverflow(t,u),d=T(o),p=A(d),h=c[p],m=c[d],g=(e,t)=>v(t+f["y"===e?"top":"left"],y(t,t-f["y"===e?"bottom":"right"]));l&&(h=g(p,h)),a&&(m=g(d,m));let w=s.fn({...t,[p]:h,[d]:m});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[p]:l,[d]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},eF=(e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r,o,i;let{x:l,y:a,placement:s,rects:u,middlewareData:c}=t,{offset:f=0,mainAxis:d=!0,crossAxis:p=!0}=R(e,t),h={x:l,y:a},m=T(s),g=A(m),y=h[g],v=h[m],w=R(f,t),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:null!=(n=w.mainAxis)?n:0,crossAxis:null!=(r=w.crossAxis)?r:0};if(d){let e="y"===g?"height":"width",t=u.reference[g]-u.floating[e]+x.mainAxis,n=u.reference[g]+u.reference[e]-x.mainAxis;y<t?y=t:y>n&&(y=n)}if(p){let e="y"===g?"width":"height",t=G.has(C(s)),n=u.reference[m]-u.floating[e]+(t&&(null==(o=c.offset)?void 0:o[m])||0)+(t?0:x.crossAxis),r=u.reference[m]+u.reference[e]+(t?0:(null==(i=c.offset)?void 0:i[m])||0)-(t?x.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[g]:y,[m]:v}}}}(e).fn,options:[e,t]}),eH=(e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:s,rects:u,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...w}=R(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let x=C(a),b=T(c),S=C(c)===c,D=await (null==f.isRTL?void 0:f.isRTL(d.floating)),F=m||(S||!v?[L(c)]:function(e){let t=L(e);return[P(e),t,P(t)]}(c)),H="none"!==y;!m&&H&&F.push(...function(e,t,n,r){let o=k(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?M:E;return t?E:M;case"left":case"right":return t?I:O;default:return[]}}(C(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(P)))),i}(c,v,y,D));let K=[c,...F],N=await f.detectOverflow(t,w),z=[],B=(null==(r=s.flip)?void 0:r.overflows)||[];if(p&&z.push(N[x]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=k(e),o=A(T(e)),i=j(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),[l,L(l)]}(a,u,D);z.push(N[e[0]],N[e[1]])}if(B=[...B,{placement:a,overflows:z}],!z.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=K[e];if(t&&(!("alignment"===h&&b!==T(t))||B.every(e=>T(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:B},reset:{placement:t}};let n=null==(i=B.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(g){case"bestFit":{let e=null==(l=B.filter(e=>{if(H){let t=T(e.placement);return t===b||"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=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},eK=(e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r;let{placement:o,rects:i,platform:l,elements:a}=t,{apply:s=()=>{},...u}=R(e,t),c=await l.detectOverflow(t,u),f=C(o),d=k(o),p="y"===T(o),{width:h,height:m}=i.floating;"top"===f||"bottom"===f?(n=f,r=d===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(r=f,n="end"===d?"top":"bottom");let g=m-c.top-c.bottom,w=h-c.left-c.right,x=y(m-c[n],g),b=y(h-c[r],w),S=t.middlewareData.shift,A=!S,j=x,P=b;null!=S&&S.enabled.x&&(P=w),null!=S&&S.enabled.y&&(j=g),A&&!d&&(p?P=h-2*v(c.left,c.right):j=m-2*v(c.top,c.bottom)),await s({...t,availableWidth:P,availableHeight:j});let E=await l.getDimensions(a.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},eN=(e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=R(e,t);switch(o){case"referenceHidden":{let e=z(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:B(e)}}}case"escaped":{let e=z(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:B(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},ez=(e,t)=>{let n=eO(e);return{name:n.name,fn:n.fn,options:[e,t]}};var eB=n(30830),eG=n(92828),eV=n(49397),eW=n(38762),eq=n(45512),e_=Object.defineProperty,e$=(e,t)=>e_(e,"name",{value:t,configurable:!0}),eU="Popper",[eZ,eX]=(0,c.A)(eU),[eY,eJ]=eZ(eU),eQ=e$(e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null),[l,a]=o.useState(void 0);return(0,eq.jsx)(eY,{scope:t,anchor:r,onAnchorChange:i,placementState:l,setPlacementState:a,children:n})},"Popper"),e0=o.forwardRef(e$(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,l=eJ("PopperAnchor",n),a=o.useRef(null),s=l.onAnchorChange,c=o.useCallback(e=>{a.current=e,e&&s(e)},[s]),f=(0,u.s)(t,c),d=o.useRef(null);o.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&s(d.current)});let p=l.placementState&&e8(l.placementState),h=p?.[0],m=p?.[1];return r?null:(0,eq.jsx)(eB.sG.div,{"data-radix-popper-side":h,"data-radix-popper-align":m,...i,ref:f})},"PopperAnchor")),e1="PopperContent",[e2,e5]=eZ(e1),e4=o.forwardRef(e$(function(e,t){let{__scopePopper:n,side:r="bottom",sideOffset:l=0,align:a="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:w,...b}=e,S=eJ(e1,n),[R,C]=o.useState(null),k=(0,u.s)(t,C),[A,j]=o.useState(null),T=(0,eW.X)(A),P=T?.width??0,E=T?.height??0,M="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},I=Array.isArray(d)?d:[d],O=I.length>0,L={padding:M,boundary:I.filter(e9),altBoundary:O},{refs:D,floatingStyles:F,placement:H,isPositioned:K,middlewareData:N}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:l,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:c,open:f}=e,[d,p]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=o.useState(r);eP(h,r)||m(r);let[g,y]=o.useState(null),[v,w]=o.useState(null),x=o.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),b=o.useCallback(e=>{e!==k.current&&(k.current=e,w(e))},[]),S=a||g,R=s||v,C=o.useRef(null),k=o.useRef(null),A=o.useRef(d),j=null!=c,T=eI(c),P=eI(l),E=eI(f),M=o.useCallback(()=>{if(!C.current||!k.current)return;let e={placement:t,strategy:n,middleware:h};P.current&&(e.platform=P.current),ej(C.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==E.current};I.current&&!eP(A.current,t)&&(A.current=t,i.flushSync(()=>{p(t)}))})},[h,t,n,P,E]);eT(()=>{!1===f&&A.current.isPositioned&&(A.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[f]);let I=o.useRef(!1);eT(()=>(I.current=!0,()=>{I.current=!1}),[]),eT(()=>{if(S&&(C.current=S),R&&(k.current=R),S&&R){if(T.current)return T.current(S,R,M);M()}},[S,R,M,T,j]);let O=o.useMemo(()=>({reference:C,floating:k,setReference:x,setFloating:b}),[x,b]),L=o.useMemo(()=>({reference:S,floating:R}),[S,R]),D=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!L.floating)return e;let t=eM(L.floating,d.x),r=eM(L.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eE(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,L.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:M,refs:O,elements:L,floatingStyles:D}),[d,M,O,L,D])}({strategy:"fixed",placement:r+("center"!==a?"-"+a:""),whileElementsMounted:e$((...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=ed(e),f=i||l?[...c?eu(c):[],...t?eu(t):[]]:[];f.forEach(e=>{i&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let d=c&&s?function(e,t,n){let r,o=null,i=$(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function a(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),l();let u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(n||t(),!d||!p)return;let h=x(f),m=x(i.clientWidth-(c+d)),g={rootMargin:-h+"px "+-m+"px "+-x(i.clientHeight-(f+p))+"px "+-x(c)+"px",threshold:v(0,y(1,s))||1},w=!0;function b(t){let n=t[0].intersectionRatio;if(!ek(u,e.getBoundingClientRect()))return a();if(n!==s){if(!w)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{o=new IntersectionObserver(b,{...g,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(b,g)}o.observe(e)}let s=_(e),u=()=>a(n);return s.addEventListener("resize",u),a(!0),()=>{s.removeEventListener("resize",u),l()}}(c,n,l):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!u&&h.observe(c),t&&h.observe(t));let m=u?eg(e):null;return u&&function t(){let r=eg(e);m&&!ek(m,r)&&n(),m=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===g}),"whileElementsMounted"),elements:{reference:S.anchor},middleware:[eL({mainAxis:l+E,alignmentAxis:s}),f&&eD({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?eF():void 0,...L}),f&&eH({...L}),eK({...L,apply:e$(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=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",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")}),A&&ez({element:A,padding:c}),e3({arrowWidth:P,arrowHeight:E}),m&&eN({strategy:"referenceHidden",...L,boundary:O?L.boundary:void 0})]}),z=S.setPlacementState;(0,eV.N)(()=>(z(H),()=>{z(void 0)}),[H,z]);let[B,G]=e8(H),V=(0,eG.c)(w);(0,eV.N)(()=>{K&&V?.()},[K,V]);let W=N.arrow?.x,q=N.arrow?.y,U=N.arrow?.centerOffset!==0,[Z,X]=o.useState();return(0,eV.N)(()=>{R&&X(window.getComputedStyle(R).zIndex)},[R]),(0,eq.jsx)("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:K?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(" "),...N.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eq.jsx)(e2,{scope:n,placedSide:B,placedAlign:G,onArrowChange:j,arrowX:W,arrowY:q,shouldHideArrow:U,children:(0,eq.jsx)(eB.sG.div,{"data-side":B,"data-align":G,...b,ref:k,style:{...b.style,animation:K?b.style?.animation:"none"}})})})},"PopperContent"));function e9(e){return null!==e}e$(e9,"isNotNull");var e3=e$(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[s,u]=e8(n),c={start:"0%",center:"50%",end:"100%"}[u],f=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+a/2,p="",h="";return"bottom"===s?(p=i?c:`${f}px`,h=`${-a}px`):"top"===s?(p=i?c:`${f}px`,h=`${r.floating.height+a}px`):"right"===s?(p=`${-a}px`,h=i?c:`${d}px`):"left"===s&&(p=`${r.floating.width+a}px`,h=i?c:`${d}px`),{data:{x:p,y:h}}}}),"transformOrigin");function e8(e){let[t,n="center"]=e.split("-");return[t,n]}e$(e8,"getSideAndAlignFromPlacement");var e6=n(80707),e7=n(98060),te=n(12705),tt=n(80397),tn=n(66582),tr=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"}),to=n(72421),ti=n(54669),tl=Object.defineProperty,ta=(e,t)=>tl(e,"name",{value:t,configurable:!0}),ts=[" ","Enter","ArrowUp","ArrowDown"],tu=[" ","Enter"],tc="Select",[tf,td,tp]=(0,s.N)(tc),[th,tm]=(0,c.A)(tc,[tp,eX]),tg=eX(),[ty,tv]=th(tc),[tw,tx]=th(tc);function tb(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:l,value:a,defaultValue:s,onValueChange:u,dir:c,name:d,autoComplete:p,disabled:h,required:g,form:y,internal_do_not_use_render:v}=e,w=tg(t),[x,b]=o.useState(null),[S,R]=o.useState(null),[C,k]=o.useState(!1),A=(0,f.jH)(c),[j,T]=(0,tt.i)({prop:r,defaultProp:i??!1,onChange:l,caller:tc}),[P,E]=(0,tt.i)({prop:a,defaultProp:s,onChange:u,caller:tc}),M=o.useRef(null),I=o.useRef(P);o.useEffect(()=>{let e=y?x?.ownerDocument.getElementById(y):x?.form;if(e instanceof HTMLFormElement){let t=ta(()=>E(I.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[y,x,E]);let O=!x||!!y||!!x.closest("form"),[L,D]=o.useState(new Set),F=(0,m.B)(),H=Array.from(L).map(e=>e.props.value).join(";"),K=o.useCallback(e=>{D(t=>new Set(t).add(e))},[]),N=o.useCallback(e=>{D(t=>{let n=new Set(t);return n.delete(e),n})},[]),z={required:g,trigger:x,onTriggerChange:b,valueNode:S,onValueNodeChange:R,valueNodeHasChildren:C,onValueNodeHasChildrenChange:k,contentId:F,value:P,onValueChange:E,open:j,onOpenChange:T,dir:A,triggerPointerDownPosRef:M,disabled:h,name:d,autoComplete:p,form:y,nativeOptions:L,nativeSelectKey:H,isFormControl:O};return(0,eq.jsx)(eQ,{...w,children:(0,eq.jsx)(ty,{scope:t,...z,children:(0,eq.jsx)(tf.Provider,{scope:t,children:(0,eq.jsx)(tw,{scope:t,onNativeOptionAdd:K,onNativeOptionRemove:N,children:t1(v)?v(z):n})})})})}ta(tb,"SelectProvider");var tS=ta(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,eq.jsx)(tb,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,eq.jsxs)(eq.Fragment,{children:[n,e?(0,eq.jsx)(t0,{__scopeSelect:t}):null]})})},"Select"),tR=o.forwardRef(ta(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,l=tg(n),s=tv("SelectTrigger",n),c=s.disabled||r,f=(0,u.s)(t,s.onTriggerChange),d=td(n),p=o.useRef("touch"),[h,m,g]=t5(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=t4(t,e,n);void 0!==r&&s.onValueChange(r.value)}),y=ta(e=>{c||(s.onOpenChange(!0),g()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},"handleOpen");return(0,eq.jsx)(e0,{asChild:!0,...l,children:(0,eq.jsx)(eB.sG.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":t2(s.value)?"":void 0,...i,ref:f,onClick:(0,a.mK)(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&y(e)}),onPointerDown:(0,a.mK)(i.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,a.mK)(i.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&ts.includes(e.key)&&(y(),e.preventDefault())})})})},"SelectTrigger")),tC=o.forwardRef(ta(function(e,t){let{__scopeSelect:n,className:r,style:i,children:l,placeholder:a="",...s}=e,c=tv("SelectValue",n),{onValueNodeHasChildrenChange:f}=c,d=void 0!==l,p=(0,u.s)(t,c.onValueNodeChange);(0,eV.N)(()=>{f(d)},[f,d]);let h=t2(c.value);return(0,eq.jsx)(eB.sG.span,{...s,asChild:!h&&s.asChild,ref:p,style:{pointerEvents:"none"},children:(0,eq.jsx)(o.Fragment,{children:h?a:l},h?"placeholder":"value")})},"SelectValue")),tk=o.forwardRef(ta(function(e,t){let{__scopeSelect:n,children:r,...o}=e;return(0,eq.jsx)(eB.sG.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})},"SelectIcon")),[tA,tj]=th("SelectPortal",{forceMount:void 0}),tT=ta(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,eq.jsx)(tA,{scope:e.__scopeSelect,forceMount:n,children:(0,eq.jsx)(e6.Z,{asChild:!0,...r})})},"SelectPortal"),tP="SelectContent",tE=o.forwardRef(ta(function(e,t){let n=tj(tP,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,l=tv(tP,e.__scopeSelect),[a,s]=o.useState();return(0,eV.N)(()=>{s(new DocumentFragment)},[]),(0,eq.jsx)(e7.C,{present:r||l.open,children:({present:e})=>e?(0,eq.jsx)(tD,{...i,ref:t}):(0,eq.jsx)(tM,{...i,fragment:a})})},"SelectContent")),tM=o.forwardRef(ta(function(e,t){let{__scopeSelect:n,children:r,fragment:o}=e;return o?i.createPortal((0,eq.jsx)(tI,{scope:n,children:(0,eq.jsx)(tf.Slot,{scope:n,children:(0,eq.jsx)("div",{ref:t,children:r})})}),o):null},"SelectContentFragment")),[tI,tO]=th(tP),tL=(0,te.TL)("SelectContent.RemoveScroll"),tD=o.forwardRef(ta(function(e,t){let{__scopeSelect:n}=e,{position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:s,side:c,sideOffset:f,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:v,collisionPadding:w,sticky:x,hideWhenDetached:b,avoidCollisions:S,...R}=e,C=tv(tP,n),[k,A]=o.useState(null),[j,T]=o.useState(null),P=(0,u.s)(t,A),[E,M]=o.useState(null),[I,O]=o.useState(null),L=td(n),[D,F]=o.useState(!1),H=o.useRef(!1);o.useEffect(()=>{if(k)return(0,to.Eq)(k)},[k]),(0,p.Oh)();let K=o.useCallback(e=>{let[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(n?.scrollIntoView({block:"nearest"}),n===t&&j&&(j.scrollTop=0),n===r&&j&&(j.scrollTop=j.scrollHeight),n?.focus(),document.activeElement!==o))return},[L,j]),N=o.useCallback(()=>K([E,k]),[K,E,k]);o.useEffect(()=>{D&&N()},[D,N]);let{onOpenChange:z,triggerPointerDownPosRef:B}=C;o.useEffect(()=>{if(k){let e={x:0,y:0},t=ta(t=>{e={x:Math.abs(Math.round(t.pageX)-(B.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(B.current?.y??0))}},"handlePointerMove"),n=ta(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(k)||z(!1),document.removeEventListener("pointermove",t),B.current=null},"handlePointerUp");return null!==B.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[k,z,B]),o.useEffect(()=>{let e=ta(()=>z(!1),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[z]);let[G,V]=t5(e=>{let t=L().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=t4(t,e,n);r&&setTimeout(()=>r.ref.current?.focus())}),W=o.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==C.value&&C.value===t||r)&&(M(e),r&&(H.current=!0))},[C.value]),q=o.useCallback(()=>k?.focus(),[k]),_=o.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==C.value&&C.value===t||r)&&O(e)},[C.value]),$="popper"===r?tH:tF;return(0,eq.jsx)(tI,{scope:n,content:k,viewport:j,onViewportChange:T,itemRefCallback:W,selectedItem:E,onItemLeave:q,itemTextRefCallback:_,focusSelectedItem:N,selectedItemText:I,position:r,isPositioned:D,searchRef:G,children:(0,eq.jsx)(ti.A,{as:tL,allowPinchZoom:!0,children:(0,eq.jsx)(h.n,{asChild:!0,trapped:C.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.mK)(i,e=>{C.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,eq.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:(0,eq.jsx)($,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:e=>e.preventDefault(),...R,...$===tH?{side:c,sideOffset:f,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:v,collisionPadding:w,sticky:x,hideWhenDetached:b,avoidCollisions:S}:{},onPlaced:()=>F(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:(0,a.mK)(R.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||V(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>K(t)),e.preventDefault()}})})})})})})},"SelectContentImpl")),tF=o.forwardRef(ta(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=tv(tP,n),s=tO(tP,n),[c,f]=o.useState(null),[d,p]=o.useState(null),h=(0,u.s)(t,p),m=td(n),g=o.useRef(!1),y=o.useRef(!0),{viewport:v,selectedItem:w,selectedItemText:x,focusSelectedItem:b}=s,S=o.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&d&&v&&w&&x){let e=a.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=x.getBoundingClientRect();if("rtl"!==a.dir){let r=o.left-t.left,i=n.left-r,a=e.left-i,s=e.width+a,u=Math.max(s,t.width),f=window.innerWidth-10,d=(0,l.q)(i,[10,Math.max(10,f-u)]);c.style.minWidth=s+"px",c.style.left=d+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,s=e.width+a,u=Math.max(s,t.width),f=window.innerWidth-10,d=(0,l.q)(i,[10,Math.max(10,f-u)]);c.style.minWidth=s+"px",c.style.right=d+"px"}let i=m(),s=window.innerHeight-20,u=v.scrollHeight,f=window.getComputedStyle(d),p=parseInt(f.borderTopWidth,10),h=parseInt(f.paddingTop,10),y=parseInt(f.borderBottomWidth,10),b=p+h+u+parseInt(f.paddingBottom,10)+y,S=Math.min(5*w.offsetHeight,b),R=window.getComputedStyle(v),C=parseInt(R.paddingTop,10),k=parseInt(R.paddingBottom,10),A=e.top+e.height/2-10,j=w.offsetHeight/2,T=p+h+(w.offsetTop+j);if(T<=A){let e=i.length>0&&w===i[i.length-1].ref.current;c.style.bottom="0px";let t=Math.max(s-A,j+(e?k:0)+(d.clientHeight-v.offsetTop-v.offsetHeight)+y);c.style.height=T+t+"px"}else{let e=i.length>0&&w===i[0].ref.current;c.style.top="0px";let t=Math.max(A,p+v.offsetTop+(e?C:0)+j);c.style.height=t+(b-T)+"px",v.scrollTop=T-A+v.offsetTop}c.style.margin="10px 0",c.style.minHeight=S+"px",c.style.maxHeight=s+"px",r?.(),requestAnimationFrame(()=>g.current=!0)}},[m,a.trigger,a.valueNode,c,d,v,w,x,a.dir,r]);(0,eV.N)(()=>S(),[S]);let[R,C]=o.useState();(0,eV.N)(()=>{d&&C(window.getComputedStyle(d).zIndex)},[d]);let k=o.useCallback(e=>{e&&!0===y.current&&(S(),b?.(),y.current=!1)},[S,b]);return(0,eq.jsx)(tK,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:k,children:(0,eq.jsx)("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,eq.jsx)(eB.sG.div,{...i,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})},"SelectItemAlignedPosition")),tH=o.forwardRef(ta(function(e,t){let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=tg(n);return(0,eq.jsx)(e4,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[tK,tN]=th(tP,{}),tz="SelectViewport",tB=o.forwardRef(ta(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,l=tO(tz,n),s=tN(tz,n),c=(0,u.s)(t,l.onViewportChange),f=o.useRef(0);return(0,eq.jsxs)(eq.Fragment,{children:[(0,eq.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,eq.jsx)(tf.Slot,{scope:n,children:(0,eq.jsx)(eB.sG.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:(0,a.mK)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(f.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,l=Math.min(r,i),a=i-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}f.current=t.scrollTop})})})]})},"SelectViewport")),[tG,tV]=th("SelectGroup"),tW=o.forwardRef(ta(function(e,t){let{__scopeSelect:n,...r}=e,o=(0,m.B)();return(0,eq.jsx)(tG,{scope:n,id:o,children:(0,eq.jsx)(eB.sG.div,{role:"group","aria-labelledby":o,...r,ref:t})})},"SelectGroup")),tq=o.forwardRef(ta(function(e,t){let{__scopeSelect:n,...r}=e,o=tV("SelectLabel",n);return(0,eq.jsx)(eB.sG.div,{id:o.id,...r,ref:t})},"SelectLabel")),t_="SelectItem",[t$,tU]=th(t_),tZ=o.forwardRef(ta(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:l,...s}=e,c=tv(t_,n),f=tO(t_,n),d=c.value===r,[p,h]=o.useState(l??""),[g,y]=o.useState(!1),v=(0,eG.c)(e=>f.itemRefCallback?.(e,r,i)),w=(0,u.s)(t,v),x=(0,m.B)(),b=o.useRef("touch"),S=ta(()=>{i||(c.onValueChange(r),c.onOpenChange(!1))},"handleSelect");return(0,eq.jsx)(t$,{scope:n,value:r,disabled:i,textId:x,isSelected:d,onItemTextChange:o.useCallback(e=>{h(t=>t||(e?.textContent??"").trim())},[]),children:(0,eq.jsx)(tf.ItemSlot,{scope:n,value:r,disabled:i,textValue:p,children:(0,eq.jsx)(eB.sG.div,{role:"option","aria-labelledby":x,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:w,onFocus:(0,a.mK)(s.onFocus,()=>y(!0)),onBlur:(0,a.mK)(s.onBlur,()=>y(!1)),onClick:(0,a.mK)(s.onClick,()=>{"mouse"!==b.current&&S()}),onPointerUp:(0,a.mK)(s.onPointerUp,()=>{"mouse"===b.current&&S()}),onPointerDown:(0,a.mK)(s.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,a.mK)(s.onPointerMove,e=>{b.current=e.pointerType,i?f.onItemLeave?.():"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.mK)(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:(0,a.mK)(s.onKeyDown,e=>{i||e.target!==e.currentTarget||f.searchRef?.current!==""&&" "===e.key||(tu.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})},"SelectItem")),tX="SelectItemText",tY=o.forwardRef(ta(function(e,t){let{__scopeSelect:n,className:r,style:l,...a}=e,s=tv(tX,n),c=tO(tX,n),f=tU(tX,n),d=tx(tX,n),[p,h]=o.useState(null),m=(0,eG.c)(e=>c.itemTextRefCallback?.(e,f.value,f.disabled)),g=(0,u.s)(t,h,f.onItemTextChange,m),y=p?.textContent,v=o.useMemo(()=>(0,eq.jsx)("option",{value:f.value,disabled:f.disabled,children:y},f.value),[f.disabled,f.value,y]),{onNativeOptionAdd:w,onNativeOptionRemove:x}=d;return(0,eV.N)(()=>(w(v),()=>x(v)),[w,x,v]),(0,eq.jsxs)(eq.Fragment,{children:[(0,eq.jsx)(eB.sG.span,{id:f.textId,...a,ref:g}),f.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!t2(s.value)?i.createPortal(a.children,s.valueNode):null]})},"SelectItemText")),tJ=o.forwardRef(ta(function(e,t){let{__scopeSelect:n,...r}=e;return tU("SelectItemIndicator",n).isSelected?(0,eq.jsx)(eB.sG.span,{"aria-hidden":!0,...r,ref:t}):null},"SelectItemIndicator")),tQ=o.forwardRef(ta(function(e,t){let{__scopeSelect:n,...r}=e;return(0,eq.jsx)(eB.sG.div,{"aria-hidden":!0,...r,ref:t})},"SelectSeparator")),t0=o.forwardRef(ta(function({__scopeSelect:e,...t},n){let r=tv("SelectBubbleInput",e),{value:i,onValueChange:l,required:a,disabled:s,name:c,autoComplete:f,form:d}=r,{nativeOptions:p,nativeSelectKey:h}=r,m=o.useRef(null),g=(0,u.s)(n,m),y=i??"",v=(0,tn.Z)(y),w=Array.from(p).some(e=>(e.props.value??"")==="");return o.useEffect(()=>{let e=m.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(v!==y&&t){let n=new Event("change",{bubbles:!0});t.call(e,y),e.dispatchEvent(n)}},[v,y]),(0,eq.jsxs)(eB.sG.select,{"aria-hidden":!0,required:a,tabIndex:-1,name:c,autoComplete:f,disabled:s,form:d,onChange:e=>l(e.target.value),...t,style:{...tr,...t.style},ref:g,defaultValue:y,children:[t2(i)&&!w?(0,eq.jsx)("option",{value:""}):null,Array.from(p)]},h)},"SelectBubbleInput"));function t1(e){return"function"==typeof e}function t2(e){return""===e||void 0===e}function t5(e){let t=(0,eG.c)(e),n=o.useRef(""),r=o.useRef(0),i=o.useCallback(e=>{t(n.current+e)},[t]),l=o.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,l]}function t4(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,i=t9(e,Math.max(o,0));1===r.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function t9(e,t){return e.map((n,r)=>e[(t+r)%e.length])}ta(t1,"isFunction"),ta(t2,"shouldShowPlaceholder"),ta(t5,"useTypeaheadSearch"),ta(t4,"findNextItem"),ta(t9,"wrapArray")},84969:(e,t,n)=>{n.d(t,{bL:()=>x,zi:()=>b});var r=n(58009),o=n(31412),i=n(29952),l=n(6004),a=n(80397),s=n(38762),u=n(30830),c=n(45512),f=Object.defineProperty,d=(e,t)=>f(e,"name",{value:t,configurable:!0}),p="Switch",[h,m]=(0,l.A)(p),[g,y]=h(p);function v(e){let{__scopeSwitch:t,checked:n,children:o,defaultChecked:i,disabled:l,form:s,name:u,onCheckedChange:f,required:d,value:h="on",internal_do_not_use_render:m}=e,[y,v]=(0,a.i)({prop:n,defaultProp:i??!1,onChange:f,caller:p}),[w,x]=r.useState(null),[b,S]=r.useState(null),C=r.useRef(!1),[k,A]=r.useReducer(e=>e+1,0),j=!w||!!s||!!w.closest("form"),T={checked:y,setChecked:v,disabled:l,control:w,setControl:x,name:u,form:s,value:h,hasConsumerStoppedPropagationRef:C,userInteractionCount:k,onUserInteraction:A,required:d,defaultChecked:i,isFormControl:j,bubbleInput:b,setBubbleInput:S};return(0,c.jsx)(g,{scope:t,...T,children:R(m)?m(T):o})}d(v,"SwitchProvider");var w=r.forwardRef(d(function({__scopeSwitch:e,onClick:t,...n},l){let{control:a,form:s,value:f,disabled:p,checked:h,required:m,setControl:g,setChecked:v,hasConsumerStoppedPropagationRef:w,onUserInteraction:x,isFormControl:b,bubbleInput:S}=y("SwitchTrigger",e),R=(0,i.s)(l,g),k=r.useRef(h);return r.useEffect(()=>{let e=s?a?.ownerDocument.getElementById(s):a?.form;if(e instanceof HTMLFormElement){let t=d(()=>v(k.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[a,s,v]),(0,c.jsx)(u.sG.button,{type:"button",role:"switch","aria-checked":h,"aria-required":m,"data-state":C(h),"data-disabled":p?"":void 0,disabled:p,value:f,...n,ref:R,onClick:(0,o.mK)(t,e=>{x(),v(e=>!e),S&&b&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())})})},"SwitchTrigger")),x=r.forwardRef(d(function(e,t){let{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:l,disabled:a,value:s,onCheckedChange:u,form:f,...d}=e;return(0,c.jsx)(v,{__scopeSwitch:n,checked:o,defaultChecked:i,disabled:a,required:l,onCheckedChange:u,name:r,form:f,value:s,internal_do_not_use_render:({isFormControl:e})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(w,{...d,ref:t,__scopeSwitch:n}),e&&(0,c.jsx)(S,{__scopeSwitch:n})]})})},"Switch")),b=r.forwardRef(d(function(e,t){let{__scopeSwitch:n,...r}=e,o=y("SwitchThumb",n);return(0,c.jsx)(u.sG.span,{"data-state":C(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})},"SwitchThumb")),S=r.forwardRef(d(function({__scopeSwitch:e,onClick:t,...n},l){let{control:a,hasConsumerStoppedPropagationRef:f,userInteractionCount:d,checked:p,defaultChecked:h,required:m,disabled:g,name:v,value:w,form:x,bubbleInput:b,setBubbleInput:S}=y("SwitchBubbleInput",e),R=(0,i.s)(l,S),C=(0,s.X)(a),k=r.useRef(!1),A=r.useRef(p),j=r.useRef(d);r.useEffect(()=>{if(!b)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=d!==j.current;j.current=d;let n=A.current!==p;A.current=p;let r=!(t&&f.current);if(n&&e){k.current=!t;let n=new Event("click",{bubbles:r});e.call(b,p),b.dispatchEvent(n),k.current=!1}},[b,p,f,d]);let T=r.useRef(p);return(0,c.jsx)(u.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??T.current,required:m,disabled:g,name:v,value:w,form:x,...n,tabIndex:-1,ref:R,onClick:(0,o.mK)(t,e=>{k.current&&e.stopPropagation()}),style:{...n.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function R(e){return"function"==typeof e}function C(e){return e?"checked":"unchecked"}d(R,"isFunction"),d(C,"getState")},93607:(e,t,n)=>{n.d(t,{UC:()=>es,B8:()=>el,bL:()=>ei,l9:()=>ea});var r=n(58009),o=n.t(r,2),i=n(31412),l=n(6004),a=n(39217),s=n(29952),u=n(30096),c=n(30830),f=n(92828),d=n(80397),p=n(59018),h=n(49397),m=Object.defineProperty,g=(e,t)=>m(e,"name",{value:t,configurable:!0}),y=!1;function v(){let[e,t]=r.useState(y);return r.useEffect(()=>{y||(y=!0,t(!0))},[]),e}g(v,"useIsHydrated");var w=o[" useSyncExternalStore ".trim().toString()];function x(){return()=>{}}function b(){return w(x,()=>!0,()=>!1)}g(x,"subscribe"),g(b,"useIsHydratedModern");var S="function"==typeof w?b:v,R=n(45512),C=Object.defineProperty,k=(e,t)=>C(e,"name",{value:t,configurable:!0}),A="rovingFocusGroup.onEntryFocus",j={bubbles:!1,cancelable:!0},T="RovingFocusGroup",[P,E,M]=(0,a.N)(T),[I,O]=(0,l.A)(T,[M]),[L,D]=I(T),F=r.forwardRef(k(function(e,t){return(0,R.jsx)(P.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,R.jsx)(P.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,R.jsx)(H,{...e,ref:t})})})},"RovingFocusGroup")),H=r.forwardRef(k(function(e,t){let{__scopeRovingFocusGroup:n,orientation:o,loop:l=!1,dir:a,currentTabStopId:u,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:m,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...v}=e,w=r.useRef(null),x=(0,s.s)(t,w),b=(0,p.jH)(a),[S,C]=(0,d.i)({prop:u,defaultProp:h??null,onChange:m,caller:T}),[k,P]=r.useState(!1),M=(0,f.c)(g),I=E(n),O=r.useRef(!1),[D,F]=r.useState(0);return r.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(A,M),()=>e.removeEventListener(A,M)},[M]),(0,R.jsx)(L,{scope:n,orientation:o,dir:b,loop:l,currentTabStopId:S,onItemFocus:r.useCallback(e=>C(e),[C]),onItemShiftTab:r.useCallback(()=>P(!0),[]),onFocusableItemAdd:r.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>F(e=>e-1),[]),children:(0,R.jsx)(c.sG.div,{tabIndex:k||0===D?-1:0,"data-orientation":o,...v,ref:x,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{O.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!O.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(A,j);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);G([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),y)}}O.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>P(!1))})})},"RovingFocusGroupImpl")),K=r.forwardRef(k(function(e,t){let{__scopeRovingFocusGroup:n,focusable:o=!0,active:l=!1,tabStopId:a,children:s,...f}=e,d=(0,u.B)(),p=a||d,m=D("RovingFocusGroupItem",n),g=m.currentTabStopId===p,y=E(n),{onFocusableItemAdd:v,onFocusableItemRemove:w,currentTabStopId:x}=m,b=S();return(0,h.N)(()=>{if(b&&o)return v(),()=>w()},[b,o,v,w]),r.useEffect(()=>{if(!b&&o)return v(),()=>w()},[b,o,v,w]),(0,R.jsx)(P.ItemSlot,{scope:n,id:p,focusable:o,active:l,children:(0,R.jsx)(c.sG.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...f,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=B(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=y().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=m.loop?V(n,r+1):n.slice(r+1)}setTimeout(()=>G(n))}}),children:"function"==typeof s?s({isCurrentTabStop:g,hasTabStop:null!=x}):s})})},"RovingFocusGroupItem")),N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function z(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function B(e,t,n){let r=z(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return N[r]}function G(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function V(e,t){return e.map((n,r)=>e[(t+r)%e.length])}k(z,"getDirectionAwareKey"),k(B,"getFocusIntent"),k(G,"focusFirst"),k(V,"wrapArray");var W=n(98060),q=Object.defineProperty,_=(e,t)=>q(e,"name",{value:t,configurable:!0}),$="Tabs",[U,Z]=(0,l.A)($,[O]),X=O(),[Y,J]=U($),Q=r.forwardRef(_(function(e,t){let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:l="horizontal",dir:a,activationMode:s="automatic",...f}=e,h=(0,p.jH)(a),[m,g]=(0,d.i)({prop:r,onChange:o,defaultProp:i??"",caller:$});return(0,R.jsx)(Y,{scope:n,baseId:(0,u.B)(),value:m,onValueChange:g,orientation:l,dir:h,activationMode:s,children:(0,R.jsx)(c.sG.div,{dir:h,"data-orientation":l,...f,ref:t})})},"Tabs")),ee=r.forwardRef(_(function(e,t){let{__scopeTabs:n,loop:r=!0,...o}=e,i=J("TabsList",n),l=X(n);return(0,R.jsx)(F,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:r,children:(0,R.jsx)(c.sG.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})},"TabsList")),et=r.forwardRef(_(function(e,t){let{__scopeTabs:n,value:r,disabled:o=!1,...l}=e,a=J("TabsTrigger",n),s=X(n),u=er(a.baseId,r),f=eo(a.baseId,r),d=r===a.value;return(0,R.jsx)(K,{asChild:!0,...s,focusable:!o,active:d,children:(0,R.jsx)(c.sG.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":f,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...l,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{!o&&e.target===e.currentTarget&&[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:(0,i.mK)(e.onFocus,()=>{let e="manual"!==a.activationMode;d||o||!e||a.onValueChange(r)})})})},"TabsTrigger")),en=r.forwardRef(_(function(e,t){let{__scopeTabs:n,value:o,forceMount:i,children:l,...a}=e,s=J("TabsContent",n),u=er(s.baseId,o),f=eo(s.baseId,o),d=o===s.value,p=r.useRef(d);return r.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,R.jsx)(W.C,{present:i||d,children:({present:n})=>(0,R.jsx)(c.sG.div,{"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:f,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:n&&l})})},"TabsContent"));function er(e,t){return`${e}-trigger-${t}`}function eo(e,t){return`${e}-content-${t}`}_(er,"makeTriggerId"),_(eo,"makeContentId");var ei=Q,el=ee,ea=et,es=en},66582:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(58009);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,Object.defineProperty)(o,"name",{value:"usePrevious",configurable:!0})},38762:(e,t,n)=>{n.d(t,{X:()=>i});var r=n(58009),o=n(49397);function i(e){let[t,n]=r.useState(void 0);return(0,o.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(0,Object.defineProperty)(i,"name",{value:"useSize",configurable:!0})}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=9576,exports.ids=[9576],exports.modules={67497:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(41680).A)("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]])},52706:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(41680).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},28638:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(41680).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},27413:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(41680).A)("FilePen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]])},20554:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(41680).A)("FolderSearch",[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]])},87137:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(41680).A)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},73388:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(41680).A)("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]])},84732:(e,t,r)=>{r.d(t,{CC:()=>T,Q6:()=>z,bL:()=>j,zi:()=>q});var n=r(58009),o=r(29374),i=r(31412),l=r(29952),a=r(6004),d=r(80397),u=r(59018),s=r(66582),c=r(38762),f=r(30830),h=r(39217),m=r(45512),p=Object.defineProperty,g=(e,t)=>p(e,"name",{value:t,configurable:!0}),w=["PageUp","PageDown"],y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],v={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},S="Slider",[b,x,M]=(0,h.N)(S),[k,A]=(0,a.A)(S,[M]),[P,D]=k(S),j=n.forwardRef(g(function(e,t){let{name:r,min:a=0,max:u=100,step:s=1,orientation:c="horizontal",disabled:f=!1,minStepsBetweenThumbs:h=0,defaultValue:p=[a],value:v,onValueChange:S=g(()=>{},"onValueChange"),onValueCommit:x=g(()=>{},"onValueCommit"),inverted:M=!1,form:k,...A}=e,D=n.useRef(new Set),j=n.useRef(0),R=n.useRef(!1),E="horizontal"===c,[H,T]=n.useState(null),I=(0,l.s)(t,T),[z=[],K]=(0,d.i)({prop:v,defaultProp:p,onChange:g(e=>{let t=[...D.current];t[j.current]?.focus({preventScroll:!0,focusVisible:R.current}),R.current=!1,S(e)},"onChange")}),_=n.useRef(z),L=n.useRef(z);function F(e){let t=X(z,e);O(e,t)}function B(e){O(e,j.current)}function q(){String(z)!==String(_.current)&&x(z)}function O(e,t,{commit:r}={commit:!1}){let n=J(s),i=W(Math.round((e-a)/s)*s+a,n),l=(0,o.q)(i,[a,u]);K((e=[])=>{let n=U(e,l,t);if(!Q(n,h*s))return e;{j.current=n.indexOf(l);let t=String(n)!==String(e);return t&&r&&x(n),t?n:e}})}return n.useEffect(()=>{let e=k?H?.ownerDocument.getElementById(k):H?.closest("form");if(e instanceof HTMLFormElement){let t=g(()=>K(L.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[H,k,K]),g(F,"handleSlideStart"),g(B,"handleSlideMove"),g(q,"handleSlideEnd"),g(O,"updateValues"),(0,m.jsx)(P,{scope:e.__scopeSlider,name:r,disabled:f,min:a,max:u,valueIndexToChangeRef:j,thumbs:D.current,values:z,orientation:c,form:k,children:(0,m.jsx)(b.Provider,{scope:e.__scopeSlider,children:(0,m.jsx)(b.Slot,{scope:e.__scopeSlider,children:(0,m.jsx)(E?V:C,{"aria-disabled":f,"data-disabled":f?"":void 0,...A,ref:I,onPointerDown:(0,i.mK)(A.onPointerDown,()=>{f||(_.current=z,R.current=!1)}),min:a,max:u,inverted:M,onSlideStart:f?void 0:F,onSlideMove:f?void 0:B,onSlideEnd:f?void 0:q,onHomeKeyDown:()=>{f||(R.current=!0,O(a,0,{commit:!0}))},onEndKeyDown:()=>{f||(R.current=!0,O(u,z.length-1,{commit:!0}))},onStepKeyDown:({event:e,direction:t})=>{if(!f){R.current=!0;let r=w.includes(e.key)||e.shiftKey&&y.includes(e.key),n=j.current;O(ee(z[n],{min:a,step:s,direction:t,multiplier:r?10:1}),n,{commit:!0})}}})})})})},"Slider")),[R,E]=k(S,{startEdge:"left",endEdge:"right",size:"width",direction:1}),V=n.forwardRef(g(function(e,t){let{min:r,max:o,dir:i,inverted:a,onSlideStart:d,onSlideMove:s,onSlideEnd:c,onStepKeyDown:f,...h}=e,[p,w]=n.useState(null),y=(0,l.s)(t,w),S=n.useRef(void 0),b=(0,u.jH)(i),x="ltr"===b,M=x&&!a||!x&&a;function k(e){let t=S.current||p.getBoundingClientRect(),n=Z([0,t.width],M?[r,o]:[o,r]);return S.current=t,n(e-t.left)}return g(k,"getValueFromPointer"),(0,m.jsx)(R,{scope:e.__scopeSlider,startEdge:M?"left":"right",endEdge:M?"right":"left",direction:M?1:-1,size:"width",children:(0,m.jsx)(H,{dir:b,"data-orientation":"horizontal",...h,ref:y,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=k(e.clientX);d?.(t)},onSlideMove:e=>{let t=k(e.clientX);s?.(t)},onSlideEnd:()=>{S.current=void 0,c?.()},onStepKeyDown:e=>{let t=v[M?"from-left":"from-right"].includes(e.key);f?.({event:e,direction:t?-1:1})}})})},"SliderHorizontal")),C=n.forwardRef(g(function(e,t){let{min:r,max:o,inverted:i,onSlideStart:a,onSlideMove:d,onSlideEnd:u,onStepKeyDown:s,...c}=e,f=n.useRef(null),h=(0,l.s)(t,f),p=n.useRef(void 0),w=!i;function y(e){let t=p.current||f.current.getBoundingClientRect(),n=Z([0,t.height],w?[o,r]:[r,o]);return p.current=t,n(e-t.top)}return g(y,"getValueFromPointer"),(0,m.jsx)(R,{scope:e.__scopeSlider,startEdge:w?"bottom":"top",endEdge:w?"top":"bottom",size:"height",direction:w?1:-1,children:(0,m.jsx)(H,{"data-orientation":"vertical",...c,ref:h,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=y(e.clientY);a?.(t)},onSlideMove:e=>{let t=y(e.clientY);d?.(t)},onSlideEnd:()=>{p.current=void 0,u?.()},onStepKeyDown:e=>{let t=v[w?"from-bottom":"from-top"].includes(e.key);s?.({event:e,direction:t?-1:1})}})})},"SliderVertical")),H=n.forwardRef(g(function(e,t){let{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:l,onHomeKeyDown:a,onEndKeyDown:d,onStepKeyDown:u,...s}=e,c=D(S,r);return(0,m.jsx)(f.sG.span,{...s,ref:t,onKeyDown:(0,i.mK)(e.onKeyDown,e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(d(e),e.preventDefault()):w.concat(y).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:(0,i.mK)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),c.thumbs.has(t)?t.focus({preventScroll:!0,focusVisible:!1}):n(e)}),onPointerMove:(0,i.mK)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:(0,i.mK)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),l(e))})})},"SliderImpl")),T=n.forwardRef(g(function(e,t){let{__scopeSlider:r,...n}=e,o=D("SliderTrack",r);return(0,m.jsx)(f.sG.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})},"SliderTrack")),I="SliderRange",z=n.forwardRef(g(function(e,t){let{__scopeSlider:r,...o}=e,i=D(I,r),a=E(I,r),d=n.useRef(null),u=(0,l.s)(t,d),s=i.values.length,c=i.values.map(e=>G(e,i.min,i.max)),h=s>1?Math.min(...c):0,p=100-Math.max(...c);return(0,m.jsx)(f.sG.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...o,ref:u,style:{...e.style,[a.startEdge]:h+"%",[a.endEdge]:p+"%"}})},"SliderRange")),[K,_]=k("SliderThumb");function L(e){let{__scopeSlider:t,name:r,children:o,internal_do_not_use_render:i}=e,l=D("SliderThumbProvider",t),a=x(t),[d,u]=n.useState(null),s=n.useMemo(()=>d?a().findIndex(e=>e.ref.current===d):-1,[a,d]),f=(0,c.X)(d),h=!d||!!l.form||!!d.closest("form"),p=l.values[s],g=r??(l.name?l.name+(l.values.length>1?"[]":""):void 0),w=void 0===p?0:G(p,l.min,l.max);n.useEffect(()=>{if(d)return l.thumbs.add(d),()=>{l.thumbs.delete(d)}},[d,l.thumbs]);let y={value:p,name:g,form:l.form,isFormControl:h,index:s,thumb:d,onThumbChange:u,percent:w,size:f};return(0,m.jsx)(K,{scope:t,...y,children:et(i)?i(y):o})}g(L,"SliderThumbProvider");var F="SliderThumbTrigger",B=n.forwardRef(g(function(e,t){let{__scopeSlider:r,...n}=e,o=D(F,r),a=E(F,r),{index:d,value:u,percent:s,size:c,onThumbChange:h}=_(F,r),p=(0,l.s)(t,h),g=N(d,o.values.length),w=c?.[a.size],y=w?$(w,s,a.direction):0;return(0,m.jsx)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${s}% + ${y}px)`},children:(0,m.jsx)(b.ItemSlot,{scope:r,children:(0,m.jsx)(f.sG.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":o.min,"aria-valuenow":u,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...n,ref:p,style:void 0===u?{display:"none"}:e.style,onFocus:(0,i.mK)(e.onFocus,()=>{o.valueIndexToChangeRef.current=d})})})})},"SliderThumbTrigger")),q=n.forwardRef(g(function(e,t){let{__scopeSlider:r,name:n,...o}=e;return(0,m.jsx)(L,{__scopeSlider:r,name:n,internal_do_not_use_render:({index:e,isFormControl:n})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(B,{...o,ref:t,__scopeSlider:r}),n?(0,m.jsx)(O,{__scopeSlider:r},e):null]})})},"SliderThumb")),O=n.forwardRef(g(function({__scopeSlider:e,...t},r){let{value:o,name:i,form:a}=_("SliderBubbleInput",e),d=n.useRef(null),u=(0,l.s)(d,r),c=(0,s.Z)(o);return n.useEffect(()=>{let e=d.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(c!==o&&t){let r=new Event("input",{bubbles:!0});t.call(e,o),e.dispatchEvent(r)}},[c,o]),(0,m.jsx)(f.sG.input,{style:{display:"none"},name:i,form:a,...t,ref:u,defaultValue:o})},"SliderBubbleInput"));function U(e=[],t,r){let n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}function G(e,t,r){return(0,o.q)(100/(r-t)*(e-t),[0,100])}function N(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}function X(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t)),n=Math.min(...r);return r.indexOf(n)}function $(e,t,r){let n=e/2,o=Z([0,50],[0,n]);return(n-o(t)*r)*r}function Y(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function Q(e,t){return!(t>0)||Math.min(...Y(e))>=t}function Z(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function J(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes("e")){let[e,r]=t.split("e"),n=e.split(".")[1]||"",o=Number(r);return Math.max(0,n.length-o)}let r=t.split(".")[1];return r?r.length:0}function W(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}function ee(e,{min:t,step:r,direction:n,multiplier:o}){let i;let l=J(r),a=(e-t)/r,d=Math.round(a);return i=W(d*r+t,l)===W(e,l)?d+o*n:n>0?Math.ceil(a):Math.floor(a),W(i*r+t,l)}function et(e){return"function"==typeof e}g(U,"getNextSortedValues"),g(G,"convertValueToPercentage"),g(N,"getLabel"),g(X,"getClosestValueIndex"),g($,"getThumbInBoundsOffset"),g(Y,"getStepsBetweenValues"),g(Q,"hasMinStepsBetweenValues"),g(Z,"linearScale"),g(J,"getDecimalCount"),g(W,"roundValue"),g(ee,"getNextStepValue"),g(et,"isFunction")}};
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"wasm": [],
|
|
18
18
|
"assets": [],
|
|
19
19
|
"env": {
|
|
20
|
-
"__NEXT_BUILD_ID": "
|
|
20
|
+
"__NEXT_BUILD_ID": "rUwWYP4-J64RRKJv93Ihp",
|
|
21
21
|
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "vM5ExGTA+gx6NM1N0IpT8xy74KDPWqZC0XwoKlhtptU=",
|
|
22
|
-
"__NEXT_PREVIEW_MODE_ID": "
|
|
23
|
-
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "
|
|
24
|
-
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "
|
|
22
|
+
"__NEXT_PREVIEW_MODE_ID": "a125f7809af8ce4330e0de06f8e14f54",
|
|
23
|
+
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "01fecdb558187969727f4ccf930bcc6b49191440f03dfd16f316fa7e077d52ab",
|
|
24
|
+
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "5de453e6be91c61812fa067fe7ef33f639004f01dfa693cc9fd0f79e4a7e03fd"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
},
|