pkgviz 0.1.1 → 0.1.2

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.
Files changed (94) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +4 -4
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/cache/.previewinfo +1 -1
  5. package/.next/cache/.rscinfo +1 -1
  6. package/.next/cache/.tsbuildinfo +1 -1
  7. package/.next/cache/chrome-devtools-workspace-uuid +1 -1
  8. package/.next/cache/eslint/.cache_6t30dc +1 -1
  9. package/.next/cache/webpack/client-production/0.pack +0 -0
  10. package/.next/cache/webpack/client-production/index.pack +0 -0
  11. package/.next/cache/webpack/edge-server-production/index.pack +0 -0
  12. package/.next/cache/webpack/server-production/0.pack +0 -0
  13. package/.next/cache/webpack/server-production/index.pack +0 -0
  14. package/.next/prerender-manifest.json +3 -3
  15. package/.next/server/app/_not-found/page.js +2 -2
  16. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/.next/server/app/_not-found.html +1 -1
  18. package/.next/server/app/_not-found.rsc +16 -17
  19. package/.next/server/app/api/audit/json/route.js +1 -1
  20. package/.next/server/app/api/audit/json/route.js.nft.json +1 -1
  21. package/.next/server/app/api/audit/json/route_client-reference-manifest.js +1 -1
  22. package/.next/server/app/api/audit/xml/route.js +1 -1
  23. package/.next/server/app/api/audit/xml/route.js.nft.json +1 -1
  24. package/.next/server/app/api/audit/xml/route_client-reference-manifest.js +1 -1
  25. package/.next/server/app/api/fs/detectLanguage/route.js +2 -2
  26. package/.next/server/app/api/fs/detectLanguage/route_client-reference-manifest.js +1 -1
  27. package/.next/server/app/api/fs/getAllFilesRecursive/route.js +1 -1
  28. package/.next/server/app/api/fs/getAllFilesRecursive/route.js.nft.json +1 -1
  29. package/.next/server/app/api/fs/getAllFilesRecursive/route_client-reference-manifest.js +1 -1
  30. package/.next/server/app/api/fs/getGraph/route.js +1 -1
  31. package/.next/server/app/api/fs/getGraph/route.js.nft.json +1 -1
  32. package/.next/server/app/api/fs/getGraph/route_client-reference-manifest.js +1 -1
  33. package/.next/server/app/index.html +1 -1
  34. package/.next/server/app/index.rsc +17 -21
  35. package/.next/server/app/page.js +2 -2
  36. package/.next/server/app/page.js.nft.json +1 -1
  37. package/.next/server/app/page_client-reference-manifest.js +1 -1
  38. package/.next/server/chunks/671.js +4 -4
  39. package/.next/server/chunks/881.js +2 -0
  40. package/.next/server/pages/404.html +1 -1
  41. package/.next/server/pages/500.html +1 -1
  42. package/.next/server/pages/_error.js +3 -3
  43. package/.next/server/pages-manifest.json +1 -1
  44. package/.next/server/server-reference-manifest.js +1 -1
  45. package/.next/server/server-reference-manifest.json +1 -1
  46. package/.next/static/chunks/485-f571e09734f16464.js +1 -0
  47. package/.next/static/chunks/app/layout-c710aa82473a1ae2.js +1 -0
  48. package/.next/static/chunks/app/page-68d264a9117783ba.js +1 -0
  49. package/.next/static/css/{9d2991f387a19b1b.css → ea77dbcae77d4605.css} +1 -1
  50. package/.next/trace +14 -13
  51. package/README.md +8 -19
  52. package/package.json +5 -4
  53. package/.next/cache/eslint/.cache_23iu9t +0 -1
  54. package/.next/cache/webpack/client-production/1.pack +0 -0
  55. package/.next/cache/webpack/client-production/10.pack +0 -0
  56. package/.next/cache/webpack/client-production/11.pack +0 -0
  57. package/.next/cache/webpack/client-production/12.pack +0 -0
  58. package/.next/cache/webpack/client-production/13.pack +0 -0
  59. package/.next/cache/webpack/client-production/14.pack +0 -0
  60. package/.next/cache/webpack/client-production/15.pack +0 -0
  61. package/.next/cache/webpack/client-production/16.pack +0 -0
  62. package/.next/cache/webpack/client-production/2.pack +0 -0
  63. package/.next/cache/webpack/client-production/3.pack +0 -0
  64. package/.next/cache/webpack/client-production/4.pack +0 -0
  65. package/.next/cache/webpack/client-production/5.pack +0 -0
  66. package/.next/cache/webpack/client-production/6.pack +0 -0
  67. package/.next/cache/webpack/client-production/7.pack +0 -0
  68. package/.next/cache/webpack/client-production/8.pack +0 -0
  69. package/.next/cache/webpack/client-production/9.pack +0 -0
  70. package/.next/cache/webpack/client-production/index.pack.old +0 -0
  71. package/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
  72. package/.next/cache/webpack/server-production/1.pack +0 -0
  73. package/.next/cache/webpack/server-production/10.pack +0 -0
  74. package/.next/cache/webpack/server-production/11.pack +0 -0
  75. package/.next/cache/webpack/server-production/12.pack +0 -0
  76. package/.next/cache/webpack/server-production/13.pack +0 -0
  77. package/.next/cache/webpack/server-production/14.pack +0 -0
  78. package/.next/cache/webpack/server-production/15.pack +0 -0
  79. package/.next/cache/webpack/server-production/16.pack +0 -0
  80. package/.next/cache/webpack/server-production/2.pack +0 -0
  81. package/.next/cache/webpack/server-production/3.pack +0 -0
  82. package/.next/cache/webpack/server-production/4.pack +0 -0
  83. package/.next/cache/webpack/server-production/5.pack +0 -0
  84. package/.next/cache/webpack/server-production/6.pack +0 -0
  85. package/.next/cache/webpack/server-production/7.pack +0 -0
  86. package/.next/cache/webpack/server-production/8.pack +0 -0
  87. package/.next/cache/webpack/server-production/9.pack +0 -0
  88. package/.next/cache/webpack/server-production/index.pack.old +0 -0
  89. package/.next/server/chunks/669.js +0 -2
  90. package/.next/static/chunks/466-b4a500cbd8df897e.js +0 -1
  91. package/.next/static/chunks/app/layout-160414dfb322fd52.js +0 -1
  92. package/.next/static/chunks/app/page-17b2a17ccc3dc891.js +0 -1
  93. /package/.next/static/{tOO3k6S3kc9LUxosG3ajE → QX1s18_hvzEu9EF6zFENT}/_buildManifest.js +0 -0
  94. /package/.next/static/{tOO3k6S3kc9LUxosG3ajE → QX1s18_hvzEu9EF6zFENT}/_ssgManifest.js +0 -0
package/README.md CHANGED
@@ -10,16 +10,13 @@ Visualizing and showing the dependencies of packages in your project is the firs
10
10
 
11
11
  ## Prerequisites
12
12
 
13
- Make sure to have PNPM & Node installed, check `package.json` for allowed versions
13
+ Make sure to have Bun & Node installed, check `package.json` for allowed versions
14
14
 
15
15
  ## Quickstart
16
16
 
17
17
  ```bash
18
- # 1. Install dependencies
18
+ # 1. Install dependencies (bun/yarn/pnpm/npm)
19
19
  bun install
20
- yarn install
21
- pnpm install
22
- npm install
23
20
 
24
21
  # 2. Create your .env file
25
22
  cp .env.tpl .env
@@ -27,10 +24,7 @@ cp .env.tpl .env
27
24
  # 3. Supply the project path to analyze in the .env file
28
25
 
29
26
  # 4. Run the app
30
- bun run dev
31
- yarn run dev
32
- pnpm run dev
33
- npm run dev
27
+ bun dev
34
28
  ```
35
29
 
36
30
  ## Documentation
@@ -39,26 +33,21 @@ Find the official documentation at Github Pages here:
39
33
 
40
34
  [artiphishle.github.io/forensics-docs](https://artiphishle.github.io/forensics-docs/)
41
35
 
36
+ ## Just get the analysis
37
+
38
+ Run `bunx pkgviz` from any project root (Java & TypeScript, more to follow) and a `audit.json` will be generated for you.
39
+
42
40
  ## Test
43
41
 
44
42
  ```bash
45
- # Run tests
43
+ # Run tests (bun/yarn/pnpm/npm)
46
44
  bun run test
47
- yarn run test
48
- pnpm run test
49
- npm run test
50
45
 
51
46
  # Print Coverage to stdout
52
47
  bun run test:cov
53
- yarn run test:cov
54
- pnpm run test:cov
55
- npm run test:cov
56
48
 
57
49
  # Generate HTML Coverage to 'test/coverage/index.html'
58
50
  bun test:cov:html
59
- yarn test:cov:html
60
- pnpm test:cov:html
61
- npm test:cov:html
62
51
  ```
63
52
 
64
53
  ## Contributing
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "bun": ">=1.2.18",
14
14
  "npm": ">=10.9.2"
15
15
  },
16
- "version": "0.1.1",
16
+ "version": "0.1.2",
17
17
  "scripts": {
18
18
  "dev": "next dev --turbopack",
19
19
  "build": "next build",
@@ -27,7 +27,7 @@
27
27
  "test:cov:html": "c8 --report-dir=./test/coverage --reporter=html tsx --test"
28
28
  },
29
29
  "dependencies": {
30
- "@artiphishle/testosterone": "^0.1.3",
30
+ "@artiphishle/testosterone": "^0.2.5",
31
31
  "cytoscape": "^3.31.2",
32
32
  "cytoscape-klay": "^3.1.4",
33
33
  "fp-ts": "^2.16.9",
@@ -38,8 +38,9 @@
38
38
  "radix-ui": "^1.2.0",
39
39
  "react": "^19.0.0",
40
40
  "react-dom": "^19.0.0",
41
- "xml-js": "^1.6.11",
42
- "typescript": "^5"
41
+ "testosterone": "^1.3.1",
42
+ "typescript": "^5",
43
+ "xml-js": "^1.6.11"
43
44
  },
44
45
  "devDependencies": {
45
46
  "@eslint/eslintrc": "^3",
@@ -1 +0,0 @@
1
- [{"/Users/a_rtiphishl_e/git/forensics/src/app/api/audit/json/route.ts":"1","/Users/a_rtiphishl_e/git/forensics/src/app/api/audit/xml/route.ts":"2","/Users/a_rtiphishl_e/git/forensics/src/app/api/fs/detectLanguage/route.ts":"3","/Users/a_rtiphishl_e/git/forensics/src/app/api/fs/getAllFilesRecursive/route.ts":"4","/Users/a_rtiphishl_e/git/forensics/src/app/layout.tsx":"5","/Users/a_rtiphishl_e/git/forensics/src/app/page.tsx":"6","/Users/a_rtiphishl_e/git/forensics/src/components/Breadcrumb.tsx":"7","/Users/a_rtiphishl_e/git/forensics/src/components/Header.tsx":"8","/Users/a_rtiphishl_e/git/forensics/src/components/Loader.tsx":"9","/Users/a_rtiphishl_e/git/forensics/src/components/Main.tsx":"10","/Users/a_rtiphishl_e/git/forensics/src/components/Settings.tsx":"11","/Users/a_rtiphishl_e/git/forensics/src/components/Switch.tsx":"12","/Users/a_rtiphishl_e/git/forensics/src/components/ZoomInput.tsx":"13","/Users/a_rtiphishl_e/git/forensics/src/contexts/SettingsContext.tsx":"14","/Users/a_rtiphishl_e/git/forensics/src/hooks/useCytoscape.ts":"15","/Users/a_rtiphishl_e/git/forensics/src/i18n/en.ts":"16","/Users/a_rtiphishl_e/git/forensics/src/i18n/i18n.ts":"17","/Users/a_rtiphishl_e/git/forensics/src/types/types.ts":"18","/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/rules/markCyclicPackages.ts":"19","/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterByPackagePrefix.ts":"20","/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterSubPackages.ts":"21","/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterVendorPackages.ts":"22","/Users/a_rtiphishl_e/git/forensics/src/utils/getAudit.ts":"23","/Users/a_rtiphishl_e/git/forensics/src/utils/java/extractJavaPackageFromImport.ts":"24","/Users/a_rtiphishl_e/git/forensics/src/utils/java/findEntryPoint.ts":"25","/Users/a_rtiphishl_e/git/forensics/src/utils/java/parseJavaFile.ts":"26","/Users/a_rtiphishl_e/git/forensics/src/utils/parseEnv.ts":"27","/Users/a_rtiphishl_e/git/forensics/src/utils/java/getIntrinsicPackagesRecursive.ts":"28","/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/buildGraph.ts":"29","/Users/a_rtiphishl_e/git/forensics/src/utils/getParsedFileStructure.ts":"30","/Users/a_rtiphishl_e/git/forensics/src/app/api/fs/getGraph/route.ts":"31","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/style.ts":"32","/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/getMaxEdgeWeight.ts":"33","/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/getWeightBuckets.ts":"34","/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/hasChildren.ts":"35","/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterEmptyPackages.ts":"36","/Users/a_rtiphishl_e/git/forensics/src/utils/getJson.ts":"37","/Users/a_rtiphishl_e/git/forensics/src/utils/typescript/extractTypeScriptPackageFromImport.ts":"38","/Users/a_rtiphishl_e/git/forensics/src/utils/typescript/parseFile.ts":"39","/Users/a_rtiphishl_e/git/forensics/src/utils/detectLanguage.ts":"40","/Users/a_rtiphishl_e/git/forensics/src/app/providers.tsx":"41","/Users/a_rtiphishl_e/git/forensics/src/components/Setting.tsx":"42","/Users/a_rtiphishl_e/git/forensics/src/components/ThemeToggle.tsx":"43","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/circle/layout.ts":"44","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/circle/style.ts":"45","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/concentric/layout.ts":"46","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/concentric/style.ts":"47","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/grid/layout.ts":"48","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/grid/style.ts":"49","/Users/a_rtiphishl_e/git/forensics/src/utils/detectLanguage.types.ts":"50","/Users/a_rtiphishl_e/git/forensics/src/contexts/constants.ts":"51","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/breadthfirst/layout.ts":"52","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/breadthfirst/style.ts":"53","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/klay/layout.ts":"54","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/klay/style.ts":"55","/Users/a_rtiphishl_e/git/forensics/src/themes/constants.ts":"56","/Users/a_rtiphishl_e/git/forensics/src/themes/getLayoutStyle.ts":"57","/Users/a_rtiphishl_e/git/forensics/src/themes/types.ts":"58","/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterSubPackagesFromDepth.ts":"59","/Users/a_rtiphishl_e/git/forensics/src/store/useLocalStorage.ts":"60"},{"size":530,"mtime":1745838828022,"results":"61","hashOfConfig":"62"},{"size":575,"mtime":1745838828021,"results":"63","hashOfConfig":"62"},{"size":383,"mtime":1753464452463,"results":"64","hashOfConfig":"62"},{"size":248,"mtime":1745838828023,"results":"65","hashOfConfig":"62"},{"size":726,"mtime":1757336810996,"results":"66","hashOfConfig":"62"},{"size":1365,"mtime":1757340558114,"results":"67","hashOfConfig":"62"},{"size":1040,"mtime":1745866486085,"results":"68","hashOfConfig":"62"},{"size":905,"mtime":1757336666530,"results":"69","hashOfConfig":"62"},{"size":243,"mtime":1745866501232,"results":"70","hashOfConfig":"62"},{"size":350,"mtime":1757302444184,"results":"71","hashOfConfig":"62"},{"size":5917,"mtime":1757346309504,"results":"72","hashOfConfig":"62"},{"size":1180,"mtime":1757295345047,"results":"73","hashOfConfig":"62"},{"size":1466,"mtime":1757295345048,"results":"74","hashOfConfig":"62"},{"size":2815,"mtime":1757353916156,"results":"75","hashOfConfig":"62"},{"size":7724,"mtime":1757353777248,"results":"76","hashOfConfig":"62"},{"size":656,"mtime":1757319907539,"results":"77","hashOfConfig":"62"},{"size":233,"mtime":1745838828035,"results":"78","hashOfConfig":"62"},{"size":1146,"mtime":1757353759676,"results":"79","hashOfConfig":"62"},{"size":7570,"mtime":1757347898073,"results":"80","hashOfConfig":"62"},{"size":761,"mtime":1745838828031,"results":"81","hashOfConfig":"62"},{"size":2809,"mtime":1753464452465,"results":"82","hashOfConfig":"62"},{"size":569,"mtime":1745838828031,"results":"83","hashOfConfig":"62"},{"size":1494,"mtime":1757348117556,"results":"84","hashOfConfig":"62"},{"size":1248,"mtime":1745838828027,"results":"85","hashOfConfig":"62"},{"size":615,"mtime":1745838828028,"results":"86","hashOfConfig":"62"},{"size":3317,"mtime":1757336761223,"results":"87","hashOfConfig":"62"},{"size":1677,"mtime":1757319907540,"results":"88","hashOfConfig":"62"},{"size":1060,"mtime":1745838828027,"results":"89","hashOfConfig":"62"},{"size":3127,"mtime":1757348456546,"results":"90","hashOfConfig":"62"},{"size":3203,"mtime":1757344441925,"results":"91","hashOfConfig":"62"},{"size":695,"mtime":1757348019728,"results":"92","hashOfConfig":"62"},{"size":4356,"mtime":1757295345048,"results":"93","hashOfConfig":"62"},{"size":274,"mtime":1746777364291,"results":"94","hashOfConfig":"62"},{"size":1506,"mtime":1757336753129,"results":"95","hashOfConfig":"62"},{"size":285,"mtime":1746794901538,"results":"96","hashOfConfig":"62"},{"size":1002,"mtime":1757305846381,"results":"97","hashOfConfig":"62"},{"size":271,"mtime":1745838828028,"results":"98","hashOfConfig":"62"},{"size":664,"mtime":1757345410788,"results":"99","hashOfConfig":"62"},{"size":3568,"mtime":1757346159441,"results":"100","hashOfConfig":"62"},{"size":3856,"mtime":1757336708623,"results":"101","hashOfConfig":"62"},{"size":388,"mtime":1757295345046,"results":"102","hashOfConfig":"62"},{"size":395,"mtime":1757295345047,"results":"103","hashOfConfig":"62"},{"size":772,"mtime":1757295345047,"results":"104","hashOfConfig":"62"},{"size":320,"mtime":1757302444186,"results":"105","hashOfConfig":"62"},{"size":424,"mtime":1757305846381,"results":"106","hashOfConfig":"62"},{"size":179,"mtime":1757302444186,"results":"107","hashOfConfig":"62"},{"size":177,"mtime":1753560368623,"results":"108","hashOfConfig":"62"},{"size":341,"mtime":1757302444187,"results":"109","hashOfConfig":"62"},{"size":490,"mtime":1753560115795,"results":"110","hashOfConfig":"62"},{"size":240,"mtime":1753464452464,"results":"111","hashOfConfig":"62"},{"size":188,"mtime":1757348634455,"results":"112","hashOfConfig":"62"},{"size":2037,"mtime":1757305846380,"results":"113","hashOfConfig":"62"},{"size":179,"mtime":1757305846380,"results":"114","hashOfConfig":"62"},{"size":7103,"mtime":1757312739041,"results":"115","hashOfConfig":"62"},{"size":171,"mtime":1757312739041,"results":"116","hashOfConfig":"62"},{"size":681,"mtime":1757354183353,"results":"117","hashOfConfig":"62"},{"size":803,"mtime":1757354247403,"results":"118","hashOfConfig":"62"},{"size":133,"mtime":1757348604413,"results":"119","hashOfConfig":"62"},{"size":5776,"mtime":1757319907540,"results":"120","hashOfConfig":"62"},{"size":934,"mtime":1757353874335,"results":"121","hashOfConfig":"62"},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"177kd3e",{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"131","messages":"132","suppressedMessages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"143","messages":"144","suppressedMessages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"149","messages":"150","suppressedMessages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","suppressedMessages":"154","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"155","messages":"156","suppressedMessages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","suppressedMessages":"160","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"161","messages":"162","suppressedMessages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","suppressedMessages":"166","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"167","messages":"168","suppressedMessages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","suppressedMessages":"172","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"173","messages":"174","suppressedMessages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","suppressedMessages":"178","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"179","messages":"180","suppressedMessages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","suppressedMessages":"184","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"185","messages":"186","suppressedMessages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","suppressedMessages":"190","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"191","messages":"192","suppressedMessages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","suppressedMessages":"196","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"197","messages":"198","suppressedMessages":"199","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","suppressedMessages":"202","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"203","messages":"204","suppressedMessages":"205","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"206","messages":"207","suppressedMessages":"208","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"209","messages":"210","suppressedMessages":"211","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"212","messages":"213","suppressedMessages":"214","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"215","messages":"216","suppressedMessages":"217","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"218","messages":"219","suppressedMessages":"220","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"221","messages":"222","suppressedMessages":"223","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"224","messages":"225","suppressedMessages":"226","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"227","messages":"228","suppressedMessages":"229","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"230","messages":"231","suppressedMessages":"232","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"233","messages":"234","suppressedMessages":"235","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"236","messages":"237","suppressedMessages":"238","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"239","messages":"240","suppressedMessages":"241","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"242","messages":"243","suppressedMessages":"244","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"245","messages":"246","suppressedMessages":"247","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"248","messages":"249","suppressedMessages":"250","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"251","messages":"252","suppressedMessages":"253","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"254","messages":"255","suppressedMessages":"256","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"257","messages":"258","suppressedMessages":"259","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"260","messages":"261","suppressedMessages":"262","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"263","messages":"264","suppressedMessages":"265","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"266","messages":"267","suppressedMessages":"268","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"269","messages":"270","suppressedMessages":"271","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"272","messages":"273","suppressedMessages":"274","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"275","messages":"276","suppressedMessages":"277","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"278","messages":"279","suppressedMessages":"280","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"281","messages":"282","suppressedMessages":"283","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"284","messages":"285","suppressedMessages":"286","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"287","messages":"288","suppressedMessages":"289","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"290","messages":"291","suppressedMessages":"292","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"293","messages":"294","suppressedMessages":"295","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"296","messages":"297","suppressedMessages":"298","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"299","messages":"300","suppressedMessages":"301","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/a_rtiphishl_e/git/forensics/src/app/api/audit/json/route.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/api/audit/xml/route.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/api/fs/detectLanguage/route.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/api/fs/getAllFilesRecursive/route.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/layout.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/page.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Breadcrumb.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Header.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Loader.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Main.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Settings.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Switch.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/ZoomInput.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/contexts/SettingsContext.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/hooks/useCytoscape.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/i18n/en.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/i18n/i18n.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/types/types.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/rules/markCyclicPackages.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterByPackagePrefix.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterSubPackages.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterVendorPackages.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/getAudit.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/java/extractJavaPackageFromImport.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/java/findEntryPoint.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/java/parseJavaFile.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/parseEnv.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/java/getIntrinsicPackagesRecursive.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/buildGraph.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/getParsedFileStructure.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/api/fs/getGraph/route.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/style.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/getMaxEdgeWeight.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/getWeightBuckets.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/hasChildren.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterEmptyPackages.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/getJson.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/typescript/extractTypeScriptPackageFromImport.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/typescript/parseFile.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/detectLanguage.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/providers.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Setting.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/ThemeToggle.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/circle/layout.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/circle/style.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/concentric/layout.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/concentric/style.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/grid/layout.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/grid/style.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/detectLanguage.types.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/contexts/constants.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/breadthfirst/layout.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/breadthfirst/style.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/klay/layout.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/klay/style.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/constants.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/getLayoutStyle.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/types.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterSubPackagesFromDepth.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/store/useLocalStorage.ts",[],[]]
@@ -1,2 +0,0 @@
1
- exports.id=669,exports.ids=[669],exports.modules={116:(a,b,c)=>{"use strict";c.d(b,{HD:()=>m,Wl:()=>l,ki:()=>k,od:()=>j});var d=c(7218);c(9130);var e=c(9021),f=c.n(e),g=c(3873),h=c.n(g),i=c(9435);async function j(a){if(!f().existsSync(a)||!f().statSync(a).isDirectory())throw Error(`Directory does not exist: ${a}`);let b=f().readdirSync(a),c={[i.g.JavaScript]:[],[i.g.TypeScript]:[],[i.g.Java]:[],[i.g.Unknown]:[]};if(b.includes("package.json")&&!b.includes("tsconfig.json")&&c[i.g.JavaScript].push("package.json without tsconfig.json"),b.some(a=>a.endsWith(".js")||a.endsWith(".jsx"))&&c[i.g.JavaScript].push(".js/.jsx files"),b.includes("node_modules")&&c[i.g.JavaScript].push("node_modules directory"),b.includes("tsconfig.json")&&c[i.g.TypeScript].push("tsconfig.json"),b.some(a=>a.endsWith(".ts")||a.endsWith(".tsx"))&&c[i.g.TypeScript].push(".ts/.tsx files"),b.includes("package.json"))try{let b=JSON.parse(f().readFileSync(h().join(a,"package.json"),"utf8"));(b.dependencies?.typescript||b.devDependencies?.typescript)&&c[i.g.TypeScript].push("typescript dependency")}catch(a){console.error(a)}b.includes("pom.xml")&&c[i.g.Java].push("pom.xml"),(b.includes("build.gradle")||b.includes("build.gradle.kts"))&&c[i.g.Java].push("gradle build file"),b.some(a=>a.endsWith(".java"))&&c[i.g.Java].push(".java files"),(b.includes(".mvn")||b.includes("mvnw")||b.includes("mvnw.cmd"))&&c[i.g.Java].push("Maven wrapper");let d={[i.g.JavaScript]:c[i.g.JavaScript].length,[i.g.TypeScript]:c[i.g.TypeScript].length,[i.g.Java]:c[i.g.Java].length,[i.g.Unknown]:0},e=i.g.Unknown,g=0;for(let[a,b]of Object.entries(d))b>g&&(g=b,e=a);let j=Object.values(d).reduce((a,b)=>a+b,0);return{language:e,confidence:j>0?g/j:0,indicators:c[e]}}async function k(a){let b=f().readdirSync(a);return b.includes("package.json")&&!b.includes("tsconfig.json")}async function l(a){let b=f().readdirSync(a);return b.includes("tsconfig.json")&&b.includes("package.json")}async function m(a){let b=f().readdirSync(a);return b.includes("pom.xml")||b.some(a=>a.endsWith(".java"))||b.includes("build.gradle")||b.includes("build.gradle.kts")}(0,c(7478).D)([j,k,l,m]),(0,d.A)(j,"4032fd1bc41915d3b34b247f2d03883e08a21814b9",null),(0,d.A)(k,"4073eddbbfa6d3b1885a87940a364df8005f92243d",null),(0,d.A)(l,"4062ab72d69278f312eea5dfbb1325d479c934b5c0",null),(0,d.A)(m,"40fb82966d2793eba4da272a945a7b2ee538cd1441",null)},6032:(a,b,c)=>{"use strict";c.d(b,{b:()=>g});var d=c(7218);c(9130);var e=c(9021),f=c(3873);async function g(a=(0,f.resolve)("/Users/a_rtiphishl_e/git/pkgviz"),b,c=[]){if(!a)throw Error("Required env: NEXT_PUBLIC_PROJECT_PATH");let d=(0,f.resolve)(a,"src/main/java"),h=b??d,i=(0,e.readdirSync)(h,{withFileTypes:!0}),j=i.filter(a=>a.isDirectory());if(i.filter(a=>a.isFile()&&a.name.endsWith(".java")).length>0&&0===j.length){let a=(0,f.relative)(d,h).replace(/\//g,".");c.push(a)}for(let b of j){let d=(0,f.resolve)(h,b.name);await g(a,d,c)}return c}(0,c(7478).D)([g]),(0,d.A)(g,"702986da4b663c1a33ef3c386dce3246363731a9fa",null)},6089:(a,b,c)=>{"use strict";c.d(b,{z:()=>q,j:()=>p});var d=c(7218);c(9130);var e=c(3024),f=c(6760),g=c(116),h=c(7937),i=c(9748),j=c.n(i),k=c(3873),l=c.n(k),m=c(9899);async function n(a,b){let c=await j().readFile(a,"utf-8"),d=l().relative(b,a),e=d.split("/").slice(0,-1);return{className:function(a,b){let c=a.match(/class\s+(\w+)/);return c?c[1]:l().basename(b,".ts")}(c,a),imports:function(a){let b=m.createSourceFile("temp.ts",a,m.ScriptTarget.Latest,!0),c=[];return b.forEachChild(a=>{if(m.isImportDeclaration(a)){let b=a.moduleSpecifier.text,d=b.replace(/^\@/,"src");c.push({name:d.split("/").join("."),pkg:function(a){console.log("import:",a);let b=a.split("/").slice(0,-1).join("/");return(b.startsWith("@/")?b.replace(/^@/,"src"):b).split("/").join(".")}(b),isIntrinsic:b.startsWith("@")})}}),c}(c),methods:function(a){let b=m.createSourceFile("temp.ts",a,m.ScriptTarget.Latest,!0),c=[];return!function a(b){if(m.isMethodDeclaration(b)&&b.name){let a=b.name.getText(),d=b.type?.getText()??"void",e=b.parameters.map(a=>a.getText()),f=m.getCombinedModifierFlags(b),g="default";f&m.ModifierFlags.Private?g="private":f&m.ModifierFlags.Protected?g="protected":f&m.ModifierFlags.Public&&(g="public"),c.push({name:a,returnType:d,parameters:e,visibility:g})}m.forEachChild(b,a)}(b),c}(c),calls:function(a){let b=m.createSourceFile("temp.ts",a,m.ScriptTarget.Latest,!0),c=[];return!function a(b){if(m.isCallExpression(b)&&m.isPropertyAccessExpression(b.expression)){let a=b.expression.expression.getText(),d=b.expression.name.getText();c.push({callee:a,method:d})}m.forEachChild(b,a)}(b),c}(c),package:e.join("."),path:d}}var o=c(9435);async function p(a,b={},c=a,d){let g=(0,e.readdirSync)(a,{withFileTypes:!0}),i=[".cache","coverage",".git",".github","examples","packages","test",".meta","node_modules",".next",".vscode"];for(let e of g){if(i.includes(e.name))continue;let g=(0,f.join)(a,e.name);d===o.g.Java?e.isDirectory()?b[e.name]=await p(g,{},"",d):e.isFile()&&e.name.endsWith(".java")&&(b[e.name]=await (0,h.q)(g,c)):d===o.g.TypeScript&&(e.isDirectory()?b[e.name]=await p(g,{},"",d):(e.isFile()&&e.name.endsWith(".ts")||e.name.endsWith(".tsx"))&&(b[e.name]=await n(g,c)))}return b}async function q(a="/Users/a_rtiphishl_e/git/pkgviz"){let b=(await (0,g.od)(a)).language;if(console.log("detected:",b),![o.g.Java,o.g.TypeScript].includes(b))throw Error("Supported language is 'Java' & 'TypeScript'. More to follow.");let c=function(a,b){switch(b){case o.g.Java:return!function(a){let b=(0,f.resolve)(a,"src/main/java");if(!(0,e.existsSync)(b))throw Error("Missing dir: 'src/main/java'")}(a),(0,f.resolve)(a,"src/main/java");case o.g.TypeScript:return(0,f.resolve)(a);default:throw Error(`Invalid file structure for ${b}`)}}(a,b);return console.log("rootDir:",c),await p(c,{},"",b)}(0,c(7478).D)([p,q]),(0,d.A)(p,"78301c09c45540d3b3d88fbffd4190e52f0c26bb8b",null),(0,d.A)(q,"4082586f2bc6e0dff9dd57aa593357079bd5118cd6",null)},6487:()=>{},7218:(a,b,c)=>{"use strict";Object.defineProperty(b,"A",{enumerable:!0,get:function(){return d.registerServerReference}});let d=c(1369)},7478:(a,b)=>{"use strict";function c(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
2
- Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(b,"D",{enumerable:!0,get:function(){return c}})},7937:(a,b,c)=>{"use strict";c.d(b,{q:()=>j});var d=c(7218);c(9130);var e=c(9021),f=c.n(e),g=c(3873),h=c.n(g),i=c(6032);async function j(a,b){let c=f().readFileSync(a,"utf-8"),d=h().basename(a,".java"),e=await (0,i.b)(),g=function(a,b){let c=RegExp(`(?:public\\s+)?(class|interface|enum|record)\\s+${b}\\b`);if(a.match(c))return b;let d=a.match(/(?:public\s+)?(class|interface|enum|record)\s+([A-Za-z0-9_]+)/);return d?.[2]||""}(c,d),j=function(a){let b=a.match(/^package\s+([a-zA-Z0-9_.]+);/m);return b?.[1]||""}(c),k=Array.from(c.matchAll(/^import\s+([a-zA-Z0-9_.*]+);/gm)).map(a=>a[1]).map(a=>{let b=function(a){let b=a.replace(/\.\*$/,""),c=b.split(".").reverse();if(c.length<2||c[0].toLowerCase()===c[0])return b;let d=!1,e=[];for(let a of c)!d&&/^[A-Z]/.test(a)||(d=!0,e.push(a));return e.reverse().join(".")}(a);return{name:a,pkg:b,isIntrinsic:e.includes(b)}}),l=function(a){let b,c=/(?:(public|protected|private)\s+)?(?:static\s+)?([\w<>[\]]+)\s+(\w+)\s*\(([^)]*)\)\s*\{/g,d=[];for(;null!==(b=c.exec(a));){let a=b[1]||"default",c=b[2],e=b[3],f=b[4].split(",").map(a=>a.trim()).filter(Boolean);d.push({name:e,returnType:c,parameters:f,visibility:a})}return d}(c),m=function(a){let b,c=/(\b\w+)\.(\w+)\s*\(/g,d=[];for(;null!==(b=c.exec(a));){let a=b[1],c=b[2];d.push({callee:a,method:c})}return d}(c);return{className:g,package:j,imports:k,methods:l,calls:m,path:h().relative(b,a)}}(0,c(7478).D)([j]),(0,d.A)(j,"6068bc3c27fb26fb7fa9b2828f657d5452c9aac3fd",null)},8335:()=>{},9130:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{decryptActionBoundArgs:function(){return q},encryptActionBoundArgs:function(){return p}}),c(4822);let d=c(1369),e=c(5624),f=c(7855),g=c(2602),h=c(3033),i=c(4971),j=function(a){return a&&a.__esModule?a:{default:a}}(c(1120)),k=new TextEncoder,l=new TextDecoder;async function m(a,b){let c=await (0,g.getActionEncryptionKey)();if(void 0===c)throw Object.defineProperty(Error("Missing encryption key for Server Action. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E65",enumerable:!1,configurable:!0});let d=atob(b),e=d.slice(0,16),f=d.slice(16),h=l.decode(await (0,g.decrypt)(c,(0,g.stringToUint8Array)(e),(0,g.stringToUint8Array)(f)));if(!h.startsWith(a))throw Object.defineProperty(Error("Invalid Server Action payload: failed to decrypt."),"__NEXT_ERROR_CODE",{value:"E191",enumerable:!1,configurable:!0});return h.slice(a.length)}async function n(a,b){let c=await (0,g.getActionEncryptionKey)();if(void 0===c)throw Object.defineProperty(Error("Missing encryption key for Server Action. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E65",enumerable:!1,configurable:!0});let d=new Uint8Array(16);h.workUnitAsyncStorage.exit(()=>crypto.getRandomValues(d));let e=(0,g.arrayBufferToString)(d.buffer),f=await (0,g.encrypt)(c,d,k.encode(a+b));return btoa(e+(0,g.arrayBufferToString)(f))}var o=function(a){return a[a.Ready=0]="Ready",a[a.Pending=1]="Pending",a[a.Complete=2]="Complete",a}(o||{});let p=j.default.cache(async function a(b,...c){let e=h.workUnitAsyncStorage.getStore(),j=(null==e?void 0:e.type)==="prerender"?e.cacheSignal:void 0,{clientModules:k}=(0,g.getClientReferenceManifestForRsc)(),l=Error();Error.captureStackTrace(l,a);let m=!1,o=(null==e?void 0:e.type)==="prerender"?(0,i.createHangingInputAbortSignal)(e):void 0,p=0;function q(){0===p&&(p=1,null==j||j.beginRead())}function r(){1===p&&(null==j||j.endRead()),p=2}o&&j&&o.addEventListener("abort",q,{once:!0});let s=await (0,f.streamToString)((0,d.renderToReadableStream)(c,k,{filterStackFrame:void 0,signal:o,onError(a){(null==o||!o.aborted)&&(m||(m=!0,l.message=a instanceof Error?a.message:String(a)))}}),o);if(m)throw r(),l;if(!e)return n(b,s);q();let t=(0,h.getPrerenderResumeDataCache)(e),u=(0,h.getRenderResumeDataCache)(e),v=b+s,w=(null==t?void 0:t.encryptedBoundArgs.get(v))??(null==u?void 0:u.encryptedBoundArgs.get(v));if(w)return w;let x=await n(b,s);return r(),null==t||t.encryptedBoundArgs.set(v,x),x});async function q(a,b){let c,d=await b,f=h.workUnitAsyncStorage.getStore();if(f){let b="prerender"===f.type?f.cacheSignal:void 0,e=(0,h.getPrerenderResumeDataCache)(f),g=(0,h.getRenderResumeDataCache)(f);(c=(null==e?void 0:e.decryptedBoundArgs.get(d))??(null==g?void 0:g.decryptedBoundArgs.get(d)))||(null==b||b.beginRead(),c=await m(a,d),null==b||b.endRead(),null==e||e.decryptedBoundArgs.set(d,c))}else c=await m(a,d);let{edgeRscModuleMapping:i,rscModuleMapping:j}=(0,g.getClientReferenceManifestForRsc)();return await (0,e.createFromReadableStream)(new ReadableStream({start(a){a.enqueue(k.encode(c)),(null==f?void 0:f.type)==="prerender"?f.renderSignal.aborted?a.close():f.renderSignal.addEventListener("abort",()=>a.close(),{once:!0}):a.close()}}),{serverConsumerManifest:{moduleLoading:null,moduleMap:j,serverModuleMap:(0,g.getServerModuleMap)()}})}},9435:(a,b,c)=>{"use strict";c.d(b,{g:()=>d});var d=function(a){return a.JavaScript="javascript",a.TypeScript="typescript",a.Java="java",a.Unknown="unknown",a}({})}};
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[466],{1275:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});var r=n(2115),o=n(2712);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}},1362:(e,t,n)=>{"use strict";n.d(t,{D:()=>u,ThemeProvider:()=>c});var r=n(2115),o=(e,t,n,r,o,i,l,a)=>{let s=document.documentElement,u=["light","dark"];function c(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&i?o.map(e=>i[e]||e):o;n?(s.classList.remove(...r),s.classList.add(i&&i[t]?i[t]:t)):s.setAttribute(e,t)}),n=t,a&&u.includes(n)&&(s.style.colorScheme=n)}if(r)c(r);else try{let e=localStorage.getItem(t)||n,r=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(r)}catch(e){}},i=["light","dark"],l="(prefers-color-scheme: dark)",a=r.createContext(void 0),s={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=r.useContext(a))?e:s},c=e=>r.useContext(a)?r.createElement(r.Fragment,null,e.children):r.createElement(f,{...e}),d=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:o=!0,enableColorScheme:s=!0,storageKey:u="theme",themes:c=d,defaultTheme:f=o?"system":"light",attribute:y="data-theme",value:g,children:w,nonce:b,scriptProps:x}=e,[E,S]=r.useState(()=>h(u,f)),[k,C]=r.useState(()=>"system"===E?v():E),R=g?Object.values(g):c,A=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=v());let r=g?g[t]:t,l=n?m(b):null,a=document.documentElement,u=e=>{"class"===e?(a.classList.remove(...R),r&&a.classList.add(r)):e.startsWith("data-")&&(r?a.setAttribute(e,r):a.removeAttribute(e))};if(Array.isArray(y)?y.forEach(u):u(y),s){let e=i.includes(f)?f:null,n=i.includes(t)?t:e;a.style.colorScheme=n}null==l||l()},[b]),P=r.useCallback(e=>{let t="function"==typeof e?e(E):e;S(t);try{localStorage.setItem(u,t)}catch(e){}},[E]),L=r.useCallback(e=>{C(v(e)),"system"===E&&o&&!t&&A("system")},[E,t]);r.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(L),L(e),()=>e.removeListener(L)},[L]),r.useEffect(()=>{let e=e=>{e.key===u&&(e.newValue?S(e.newValue):P(f))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[P]),r.useEffect(()=>{A(null!=t?t:E)},[t,E]);let T=r.useMemo(()=>({theme:E,setTheme:P,forcedTheme:t,resolvedTheme:"system"===E?k:E,themes:o?[...c,"system"]:c,systemTheme:o?k:void 0}),[E,P,t,k,o,c]);return r.createElement(a.Provider,{value:T},r.createElement(p,{forcedTheme:t,storageKey:u,attribute:y,enableSystem:o,enableColorScheme:s,defaultTheme:f,value:g,themes:c,nonce:b,scriptProps:x}),w)},p=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:i,enableSystem:l,enableColorScheme:a,defaultTheme:s,value:u,themes:c,nonce:d,scriptProps:f}=e,p=JSON.stringify([i,n,s,t,c,u,l,a]).slice(1,-1);return r.createElement("script",{...f,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(o.toString(),")(").concat(p,")")}})}),h=(e,t)=>{let n;try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t},m=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},v=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},1788:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},2664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=n(9991),o=n(7102);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},2712:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n(2115),o=globalThis?.document?r.useLayoutEffect:()=>{}},2757:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return a},urlObjectKeys:function(){return l}});let r=n(6966)._(n(8859)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",l=e.pathname||"",a=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(r.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==u?(u="//"+(u||""),l&&"/"!==l[0]&&(l="/"+l)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),""+i+u+(l=l.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+a}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return i(e)}},3052:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},3180:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},3655:(e,t,n)=>{"use strict";n.d(t,{hO:()=>s,sG:()=>a});var r=n(2115),o=n(7650),i=n(9708),l=n(5155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function s(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},4073:(e,t,n)=>{"use strict";n.d(t,{CC:()=>K,Q6:()=>U,bL:()=>B,zi:()=>V});var r=n(2115),o=n(9367),i=n(5185),l=n(6101),a=n(6081),s=n(5845),u=n(4315),c=n(5503),d=n(1275),f=n(3655),p=n(7328),h=n(5155),m=["PageUp","PageDown"],v=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},g="Slider",[w,b,x]=(0,p.N)(g),[E,S]=(0,a.A)(g,[x]),[k,C]=E(g),R=r.forwardRef((e,t)=>{let{name:n,min:l=0,max:a=100,step:u=1,orientation:c="horizontal",disabled:d=!1,minStepsBetweenThumbs:f=0,defaultValue:p=[l],value:y,onValueChange:g=()=>{},onValueCommit:b=()=>{},inverted:x=!1,form:E,...S}=e,C=r.useRef(new Set),R=r.useRef(0),A="horizontal"===c,[P=[],j]=(0,s.i)({prop:y,defaultProp:p,onChange:e=>{var t;null==(t=[...C.current][R.current])||t.focus(),g(e)}}),N=r.useRef(P);function M(e,t){let{commit:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},r=(String(u).split(".")[1]||"").length,i=function(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-l)/u)*u+l,r),s=(0,o.q)(i,[l,a]);j(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(e,s,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,n)=>e[n+1]-t))>=t;return!0}(r,f*u))return e;{R.current=r.indexOf(s);let t=String(r)!==String(e);return t&&n&&b(r),t?r:e}})}return(0,h.jsx)(k,{scope:e.__scopeSlider,name:n,disabled:d,min:l,max:a,valueIndexToChangeRef:R,thumbs:C.current,values:P,orientation:c,form:E,children:(0,h.jsx)(w.Provider,{scope:e.__scopeSlider,children:(0,h.jsx)(w.Slot,{scope:e.__scopeSlider,children:(0,h.jsx)(A?L:T,{"aria-disabled":d,"data-disabled":d?"":void 0,...S,ref:t,onPointerDown:(0,i.m)(S.onPointerDown,()=>{d||(N.current=P)}),min:l,max:a,inverted:x,onSlideStart:d?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}(P,e);M(e,t)},onSlideMove:d?void 0:function(e){M(e,R.current)},onSlideEnd:d?void 0:function(){let e=N.current[R.current];P[R.current]!==e&&b(P)},onHomeKeyDown:()=>!d&&M(l,0,{commit:!0}),onEndKeyDown:()=>!d&&M(a,P.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:n}=e;if(!d){let e=m.includes(t.key)||t.shiftKey&&v.includes(t.key),r=R.current;M(P[r]+u*(e?10:1)*n,r,{commit:!0})}}})})})})});R.displayName=g;var[A,P]=E(g,{startEdge:"left",endEdge:"right",size:"width",direction:1}),L=r.forwardRef((e,t)=>{let{min:n,max:o,dir:i,inverted:a,onSlideStart:s,onSlideMove:c,onSlideEnd:d,onStepKeyDown:f,...p}=e,[m,v]=r.useState(null),g=(0,l.s)(t,e=>v(e)),w=r.useRef(void 0),b=(0,u.jH)(i),x="ltr"===b,E=x&&!a||!x&&a;function S(e){let t=w.current||m.getBoundingClientRect(),r=W([0,t.width],E?[n,o]:[o,n]);return w.current=t,r(e-t.left)}return(0,h.jsx)(A,{scope:e.__scopeSlider,startEdge:E?"left":"right",endEdge:E?"right":"left",direction:E?1:-1,size:"width",children:(0,h.jsx)(j,{dir:b,"data-orientation":"horizontal",...p,ref:g,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=S(e.clientX);null==s||s(t)},onSlideMove:e=>{let t=S(e.clientX);null==c||c(t)},onSlideEnd:()=>{w.current=void 0,null==d||d()},onStepKeyDown:e=>{let t=y[E?"from-left":"from-right"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})})}),T=r.forwardRef((e,t)=>{let{min:n,max:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:u,onStepKeyDown:c,...d}=e,f=r.useRef(null),p=(0,l.s)(t,f),m=r.useRef(void 0),v=!i;function g(e){let t=m.current||f.current.getBoundingClientRect(),r=W([0,t.height],v?[o,n]:[n,o]);return m.current=t,r(e-t.top)}return(0,h.jsx)(A,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:(0,h.jsx)(j,{"data-orientation":"vertical",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=g(e.clientY);null==a||a(t)},onSlideMove:e=>{let t=g(e.clientY);null==s||s(t)},onSlideEnd:()=>{m.current=void 0,null==u||u()},onStepKeyDown:e=>{let t=y[v?"from-bottom":"from-top"].includes(e.key);null==c||c({event:e,direction:t?-1:1})}})})}),j=r.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:l,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:u,...c}=e,d=C(g,n);return(0,h.jsx)(f.sG.span,{...c,ref:t,onKeyDown:(0,i.m)(e.onKeyDown,e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):m.concat(v).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:(0,i.m)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():r(e)}),onPointerMove:(0,i.m)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:(0,i.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),l(e))})})}),N="SliderTrack",M=r.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,o=C(N,n);return(0,h.jsx)(f.sG.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});M.displayName=N;var O="SliderRange",D=r.forwardRef((e,t)=>{let{__scopeSlider:n,...o}=e,i=C(O,n),a=P(O,n),s=r.useRef(null),u=(0,l.s)(t,s),c=i.values.length,d=i.values.map(e=>z(e,i.min,i.max)),p=c>1?Math.min(...d):0,m=100-Math.max(...d);return(0,h.jsx)(f.sG.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...o,ref:u,style:{...e.style,[a.startEdge]:p+"%",[a.endEdge]:m+"%"}})});D.displayName=O;var I="SliderThumb",_=r.forwardRef((e,t)=>{let n=b(e.__scopeSlider),[o,i]=r.useState(null),a=(0,l.s)(t,e=>i(e)),s=r.useMemo(()=>o?n().findIndex(e=>e.ref.current===o):-1,[n,o]);return(0,h.jsx)(H,{...e,ref:a,index:s})}),H=r.forwardRef((e,t)=>{let{__scopeSlider:n,index:o,name:a,...s}=e,u=C(I,n),c=P(I,n),[p,m]=r.useState(null),v=(0,l.s)(t,e=>m(e)),y=!p||u.form||!!p.closest("form"),g=(0,d.X)(p),b=u.values[o],x=void 0===b?0:z(b,u.min,u.max),E=function(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}(o,u.values.length),S=null==g?void 0:g[c.size],k=S?function(e,t,n){let r=e/2,o=W([0,50],[0,r]);return(r-o(t)*n)*n}(S,x,c.direction):0;return r.useEffect(()=>{if(p)return u.thumbs.add(p),()=>{u.thumbs.delete(p)}},[p,u.thumbs]),(0,h.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:"calc(".concat(x,"% + ").concat(k,"px)")},children:[(0,h.jsx)(w.ItemSlot,{scope:e.__scopeSlider,children:(0,h.jsx)(f.sG.span,{role:"slider","aria-label":e["aria-label"]||E,"aria-valuemin":u.min,"aria-valuenow":b,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...s,ref:v,style:void 0===b?{display:"none"}:e.style,onFocus:(0,i.m)(e.onFocus,()=>{u.valueIndexToChangeRef.current=o})})}),y&&(0,h.jsx)(F,{name:null!=a?a:u.name?u.name+(u.values.length>1?"[]":""):void 0,form:u.form,value:b},o)]})});_.displayName=I;var F=r.forwardRef((e,t)=>{let{__scopeSlider:n,value:o,...i}=e,a=r.useRef(null),s=(0,l.s)(a,t),u=(0,c.Z)(o);return r.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(u!==o&&t){let n=new Event("input",{bubbles:!0});t.call(e,o),e.dispatchEvent(n)}},[u,o]),(0,h.jsx)(f.sG.input,{style:{display:"none"},...i,ref:s,defaultValue:o})});function z(e,t,n){return(0,o.q)(100/(n-t)*(e-t),[0,100])}function W(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}F.displayName="RadioBubbleInput";var B=R,K=M,U=D,V=_},4315:(e,t,n)=>{"use strict";n.d(t,{jH:()=>i});var r=n(2115);n(5155);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},4631:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]])},4884:(e,t,n)=>{"use strict";n.d(t,{bL:()=>E,zi:()=>S});var r=n(2115),o=n(5185),i=n(6101),l=n(6081),a=n(5845),s=n(5503),u=n(1275),c=n(3655),d=n(5155),f="Switch",[p,h]=(0,l.A)(f),[m,v]=p(f),y=r.forwardRef((e,t)=>{let{__scopeSwitch:n,name:l,checked:s,defaultChecked:u,required:p,disabled:h,value:v="on",onCheckedChange:y,form:g,...w}=e,[E,S]=r.useState(null),k=(0,i.s)(t,e=>S(e)),C=r.useRef(!1),R=!E||g||!!E.closest("form"),[A,P]=(0,a.i)({prop:s,defaultProp:null!=u&&u,onChange:y,caller:f});return(0,d.jsxs)(m,{scope:n,checked:A,disabled:h,children:[(0,d.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":A,"aria-required":p,"data-state":x(A),"data-disabled":h?"":void 0,disabled:h,value:v,...w,ref:k,onClick:(0,o.m)(e.onClick,e=>{P(e=>!e),R&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),R&&(0,d.jsx)(b,{control:E,bubbles:!C.current,name:l,value:v,checked:A,required:p,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});y.displayName=f;var g="SwitchThumb",w=r.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,o=v(g,n);return(0,d.jsx)(c.sG.span,{"data-state":x(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});w.displayName=g;var b=r.forwardRef((e,t)=>{let{__scopeSwitch:n,control:o,checked:l,bubbles:a=!0,...c}=e,f=r.useRef(null),p=(0,i.s)(f,t),h=(0,s.Z)(l),m=(0,u.X)(o);return r.useEffect(()=>{let e=f.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(h!==l&&t){let n=new Event("click",{bubbles:a});t.call(e,l),e.dispatchEvent(n)}},[h,l,a]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:l,...c,tabIndex:-1,ref:p,style:{...c.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function x(e){return e?"checked":"unchecked"}b.displayName="SwitchBubbleInput";var E=y,S=w},5185:(e,t,n)=>{"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{m:()=>r})},5503:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(2115);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])}},5845:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r,o=n(2115),i=n(2712),l=(r||(r=n.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.N;function a({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,s]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),a=o.useRef(t);return l(()=>{a.current=t},[t]),o.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[c,o.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[u,e,a,s])]}Symbol("RADIX:SYNC_STATE")},6081:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2115),o=n(5155);function i(e,t=[]){let n=[],l=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return l.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;n=[...n,i];let s=t=>{let{scope:n,children:i,...s}=t,u=n?.[e]?.[a]||l,c=r.useMemo(()=>s,Object.values(s));return(0,o.jsx)(u.Provider,{value:c,children:i})};return s.displayName=t+"Provider",[s,function(n,o){let s=o?.[e]?.[a]||l,u=r.useContext(s);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(l,...t)]}},6101:(e,t,n)=>{"use strict";n.d(t,{s:()=>l,t:()=>i});var r=n(2115);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function l(...e){return r.useCallback(i(...e),e)}},6474:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},6654:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let r=n(2115);function o(e,t){let n=(0,r.useRef)(null),o=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(n.current=i(e,r)),t&&(o.current=i(t,r))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6793:(e,t,n)=>{"use strict";n.d(t,{UC:()=>n4,YJ:()=>re,In:()=>n3,q7:()=>rt,p4:()=>rn,ZL:()=>n7,bL:()=>n5,l9:()=>n9,WT:()=>n6,LM:()=>n8});var r,o,i,l=n(2115),a=n.t(l,2),s=n(7650),u=n(9367),c=n(5185),d=n(7328),f=n(6101),p=n(6081),h=n(4315),m=n(3655);function v(e){let t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...e)=>t.current?.(...e),[])}var y=n(5155),g="dismissableLayer.update",w=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),b=l.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:d,onDismiss:p,...h}=e,b=l.useContext(w),[S,k]=l.useState(null),C=null!=(r=null==S?void 0:S.ownerDocument)?r:null==(n=globalThis)?void 0:n.document,[,R]=l.useState({}),A=(0,f.s)(t,e=>k(e)),P=Array.from(b.layers),[L]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),T=P.indexOf(L),j=S?P.indexOf(S):-1,N=b.layersWithOutsidePointerEventsDisabled.size>0,M=j>=T,O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=v(e),o=l.useRef(!1),i=l.useRef(()=>{});return l.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){E("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));M&&!n&&(null==s||s(e),null==d||d(e),e.defaultPrevented||null==p||p())},C),D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=v(e),o=l.useRef(!1);return l.useEffect(()=>{let e=e=>{e.target&&!o.current&&E("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...b.branches].some(e=>e.contains(t))&&(null==u||u(e),null==d||d(e),e.defaultPrevented||null==p||p())},C);return!function(e,t=globalThis?.document){let n=v(e);l.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{j===b.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))},C),l.useEffect(()=>{if(S)return i&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(o=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(S)),b.layers.add(S),x(),()=>{i&&1===b.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=o)}},[S,C,i,b]),l.useEffect(()=>()=>{S&&(b.layers.delete(S),b.layersWithOutsidePointerEventsDisabled.delete(S),x())},[S,b]),l.useEffect(()=>{let e=()=>R({});return document.addEventListener(g,e),()=>document.removeEventListener(g,e)},[]),(0,y.jsx)(m.sG.div,{...h,ref:A,style:{pointerEvents:N?M?"auto":"none":void 0,...e.style},onFocusCapture:(0,c.m)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,c.m)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,c.m)(e.onPointerDownCapture,O.onPointerDownCapture)})});function x(){let e=new CustomEvent(g);document.dispatchEvent(e)}function E(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,m.hO)(i,l):i.dispatchEvent(l)}b.displayName="DismissableLayer",l.forwardRef((e,t)=>{let n=l.useContext(w),r=l.useRef(null),o=(0,f.s)(t,r);return l.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,y.jsx)(m.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var S=0;function k(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var C="focusScope.autoFocusOnMount",R="focusScope.autoFocusOnUnmount",A={bubbles:!1,cancelable:!0},P=l.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,u]=l.useState(null),c=v(o),d=v(i),p=l.useRef(null),h=(0,f.s)(t,e=>u(e)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let e=function(e){if(g.paused||!s)return;let t=e.target;s.contains(t)?p.current=t:j(p.current,{select:!0})},t=function(e){if(g.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||j(p.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&j(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,g.paused]),l.useEffect(()=>{if(s){N.add(g);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(C,A);s.addEventListener(C,c),s.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(j(r,{select:t}),document.activeElement!==n)return}(L(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&j(s))}return()=>{s.removeEventListener(C,c),setTimeout(()=>{let t=new CustomEvent(R,A);s.addEventListener(R,d),s.dispatchEvent(t),t.defaultPrevented||j(null!=e?e:document.body,{select:!0}),s.removeEventListener(R,d),N.remove(g)},0)}}},[s,c,d,g]);let w=l.useCallback(e=>{if(!n&&!r||g.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=L(e);return[T(t,e),T(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&j(i,{select:!0})):(e.preventDefault(),n&&j(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,g.paused]);return(0,y.jsx)(m.sG.div,{tabIndex:-1,...a,ref:h,onKeyDown:w})});function L(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function T(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function j(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}P.displayName="FocusScope";var N=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=M(e,t)).unshift(t)},remove(t){var n;null==(n=(e=M(e,t))[0])||n.resume()}}}();function M(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var O=n(2712),D=a[" useId ".trim().toString()]||(()=>void 0),I=0;function _(e){let[t,n]=l.useState(D());return(0,O.N)(()=>{e||n(e=>e??String(I++))},[e]),e||(t?`radix-${t}`:"")}let H=["top","right","bottom","left"],F=Math.min,z=Math.max,W=Math.round,B=Math.floor,K=e=>({x:e,y:e}),U={left:"right",right:"left",bottom:"top",top:"bottom"},V={start:"end",end:"start"};function G(e,t){return"function"==typeof e?e(t):e}function q(e){return e.split("-")[0]}function X(e){return e.split("-")[1]}function Y(e){return"x"===e?"y":"x"}function $(e){return"y"===e?"height":"width"}let Z=new Set(["top","bottom"]);function Q(e){return Z.has(q(e))?"y":"x"}function J(e){return e.replace(/start|end/g,e=>V[e])}let ee=["left","right"],et=["right","left"],en=["top","bottom"],er=["bottom","top"];function eo(e){return e.replace(/left|right|bottom|top/g,e=>U[e])}function ei(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function el(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 ea(e,t,n){let r,{reference:o,floating:i}=e,l=Q(t),a=Y(Q(t)),s=$(a),u=q(t),c="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;switch(u){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,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}}switch(X(t)){case"start":r[a]-=p*(n&&c?-1:1);break;case"end":r[a]+=p*(n&&c?-1:1)}return r}let es=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=ea(u,r,s),f=r,p={},h=0;for(let n=0;n<a.length;n++){let{name:i,fn:m}=a[n],{x:v,y:y,data:g,reset:w}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=y?y:d,p={...p,[i]:{...p[i],...g}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:d}=ea(u,f,s)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function eu(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:d="floating",altBoundary:f=!1,padding:p=0}=G(t,e),h=ei(p),m=a[f?"floating"===d?"reference":"floating":d],v=el(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"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,g=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(g))&&await (null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},b=el(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:g,strategy:s}):y);return{top:(v.top-b.top+h.top)/w.y,bottom:(b.bottom-v.bottom+h.bottom)/w.y,left:(v.left-b.left+h.left)/w.x,right:(b.right-v.right+h.right)/w.x}}function ec(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ed(e){return H.some(t=>e[t]>=0)}let ef=new Set(["left","top"]);async function ep(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=q(n),a=X(n),s="y"===Q(n),u=ef.has(l)?-1:1,c=i&&s?-1:1,d=G(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function eh(){return"undefined"!=typeof window}function em(e){return eg(e)?(e.nodeName||"").toLowerCase():"#document"}function ev(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ey(e){var t;return null==(t=(eg(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eg(e){return!!eh()&&(e instanceof Node||e instanceof ev(e).Node)}function ew(e){return!!eh()&&(e instanceof Element||e instanceof ev(e).Element)}function eb(e){return!!eh()&&(e instanceof HTMLElement||e instanceof ev(e).HTMLElement)}function ex(e){return!!eh()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ev(e).ShadowRoot)}let eE=new Set(["inline","contents"]);function eS(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eO(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!eE.has(o)}let ek=new Set(["table","td","th"]),eC=[":popover-open",":modal"];function eR(e){return eC.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eA=["transform","translate","scale","rotate","perspective"],eP=["transform","translate","scale","rotate","perspective","filter"],eL=["paint","layout","strict","content"];function eT(e){let t=ej(),n=ew(e)?eO(e):e;return eA.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||eP.some(e=>(n.willChange||"").includes(e))||eL.some(e=>(n.contain||"").includes(e))}function ej(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let eN=new Set(["html","body","#document"]);function eM(e){return eN.has(em(e))}function eO(e){return ev(e).getComputedStyle(e)}function eD(e){return ew(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eI(e){if("html"===em(e))return e;let t=e.assignedSlot||e.parentNode||ex(e)&&e.host||ey(e);return ex(t)?t.host:t}function e_(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eI(t);return eM(n)?t.ownerDocument?t.ownerDocument.body:t.body:eb(n)&&eS(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=ev(o);if(i){let e=eH(l);return t.concat(l,l.visualViewport||[],eS(o)?o:[],e&&n?e_(e):[])}return t.concat(o,e_(o,[],n))}function eH(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eF(e){let t=eO(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=eb(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 ez(e){return ew(e)?e:e.contextElement}function eW(e){let t=ez(e);if(!eb(t))return K(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 eB=K(0);function eK(e){let t=ev(e);return ej()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eB}function eU(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ez(e),a=K(1);t&&(r?ew(r)&&(a=eW(r)):a=eW(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===ev(l))&&o)?eK(l):K(0),u=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l){let e=ev(l),t=r&&ew(r)?ev(r):r,n=e,o=eH(n);for(;o&&r&&t!==n;){let e=eW(o),t=o.getBoundingClientRect(),r=eO(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,d*=e.x,f*=e.y,u+=i,c+=l,o=eH(n=ev(o))}}return el({width:d,height:f,x:u,y:c})}function eV(e,t){let n=eD(e).scrollLeft;return t?t.left+n:eU(ey(e)).left+n}function eG(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:eV(e,r)),y:r.top+t.scrollTop}}let eq=new Set(["absolute","fixed"]);function eX(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=ev(e),r=ey(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=ej();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){let t=ey(e),n=eD(e),r=e.ownerDocument.body,o=z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+eV(e),a=-n.scrollTop;return"rtl"===eO(r).direction&&(l+=z(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(ey(e));else if(ew(t))r=function(e,t){let n=eU(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=eb(e)?eW(e):K(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=eK(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return el(r)}function eY(e){return"static"===eO(e).position}function e$(e,t){if(!eb(e)||"fixed"===eO(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ey(e)===n&&(n=n.ownerDocument.body),n}function eZ(e,t){var n;let r=ev(e);if(eR(e))return r;if(!eb(e)){let t=eI(e);for(;t&&!eM(t);){if(ew(t)&&!eY(t))return t;t=eI(t)}return r}let o=e$(e,t);for(;o&&(n=o,ek.has(em(n)))&&eY(o);)o=e$(o,t);return o&&eM(o)&&eY(o)&&!eT(o)?r:o||function(e){let t=eI(e);for(;eb(t)&&!eM(t);){if(eT(t))return t;if(eR(t))break;t=eI(t)}return null}(e)||r}let eQ=async function(e){let t=this.getOffsetParent||eZ,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=eb(t),o=ey(t),i="fixed"===n,l=eU(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=K(0);if(r||!r&&!i)if(("body"!==em(t)||eS(o))&&(a=eD(t)),r){let e=eU(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=eV(o));i&&!r&&o&&(s.x=eV(o));let u=!o||r||i?K(0):eG(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}}},eJ={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=ey(r),a=!!t&&eR(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},u=K(1),c=K(0),d=eb(r);if((d||!d&&!i)&&(("body"!==em(r)||eS(l))&&(s=eD(r)),eb(r))){let e=eU(r);u=eW(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!l||d||i?K(0):eG(l,s,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-s.scrollTop*u.y+c.y+f.y}},getDocumentElement:ey,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?eR(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=e_(e,[],!1).filter(e=>ew(e)&&"body"!==em(e)),o=null,i="fixed"===eO(e).position,l=i?eI(e):e;for(;ew(l)&&!eM(l);){let t=eO(l),n=eT(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&eq.has(o.position)||eS(l)&&!n&&function e(t,n){let r=eI(t);return!(r===n||!ew(r)||eM(r))&&("fixed"===eO(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=eI(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=eX(t,n,o);return e.top=z(r.top,e.top),e.right=F(r.right,e.right),e.bottom=F(r.bottom,e.bottom),e.left=z(r.left,e.left),e},eX(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eZ,getElementRects:eQ,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eF(e);return{width:t,height:n}},getScale:eW,isElement:ew,isRTL:function(e){return"rtl"===eO(e).direction}};function e0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let e1=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}=G(e,t)||{};if(null==u)return{};let d=ei(c),f={x:n,y:r},p=Y(Q(o)),h=$(p),m=await l.getDimensions(u),v="y"===p,y=v?"clientHeight":"clientWidth",g=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u)),x=b?b[y]:0;x&&await (null==l.isElement?void 0:l.isElement(b))||(x=a.floating[y]||i.floating[h]);let E=x/2-m[h]/2-1,S=F(d[v?"top":"left"],E),k=F(d[v?"bottom":"right"],E),C=x-m[h]-k,R=x/2-m[h]/2+(g/2-w/2),A=z(S,F(R,C)),P=!s.arrow&&null!=X(o)&&R!==A&&i.reference[h]/2-(R<S?S:k)-m[h]/2<0,L=P?R<S?R-S:R-C:0;return{[p]:f[p]+L,data:{[p]:A,centerOffset:R-A-L,...P&&{alignmentOffset:L}},reset:P}}});var e2="undefined"!=typeof document?l.useLayoutEffect:function(){};function e5(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(!e5(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)&&!e5(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e9(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e6(e,t){let n=e9(e);return Math.round(t*n)/n}function e3(e){let t=l.useRef(e);return e2(()=>{t.current=e}),t}var e7=l.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,y.jsx)(m.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,y.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e7.displayName="Arrow";var e4=n(1275),e8="Popper",[te,tt]=(0,p.A)(e8),[tn,tr]=te(e8),to=e=>{let{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return(0,y.jsx)(tn,{scope:t,anchor:r,onAnchorChange:o,children:n})};to.displayName=e8;var ti="PopperAnchor",tl=l.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=tr(ti,n),a=l.useRef(null),s=(0,f.s)(t,a);return l.useEffect(()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,y.jsx)(m.sG.div,{...o,ref:s})});tl.displayName=ti;var ta="PopperContent",[ts,tu]=te(ta),tc=l.forwardRef((e,t)=>{var n,r,o,i,a,u,c,d;let{__scopePopper:p,side:h="bottom",sideOffset:g=0,align:w="center",alignOffset:b=0,arrowPadding:x=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:k=0,sticky:C="partial",hideWhenDetached:R=!1,updatePositionStrategy:A="optimized",onPlaced:P,...L}=e,T=tr(ta,p),[j,N]=l.useState(null),M=(0,f.s)(t,e=>N(e)),[D,I]=l.useState(null),_=(0,e4.X)(D),H=null!=(c=null==_?void 0:_.width)?c:0,W=null!=(d=null==_?void 0:_.height)?d:0,K="number"==typeof k?k:{top:0,right:0,bottom:0,left:0,...k},U=Array.isArray(S)?S:[S],V=U.length>0,Z={padding:K,boundary:U.filter(th),altBoundary:V},{refs:ei,floatingStyles:el,placement:ea,isPositioned:eh,middlewareData:em}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=l.useState(r);e5(h,r)||m(r);let[v,y]=l.useState(null),[g,w]=l.useState(null),b=l.useCallback(e=>{e!==k.current&&(k.current=e,y(e))},[]),x=l.useCallback(e=>{e!==C.current&&(C.current=e,w(e))},[]),E=i||v,S=a||g,k=l.useRef(null),C=l.useRef(null),R=l.useRef(f),A=null!=c,P=e3(c),L=e3(o),T=e3(d),j=l.useCallback(()=>{if(!k.current||!C.current)return;let e={placement:t,strategy:n,middleware:h};L.current&&(e.platform=L.current),((e,t,n)=>{let r=new Map,o={platform:eJ,...n},i={...o.platform,_c:r};return es(e,t,{...o,platform:i})})(k.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};N.current&&!e5(R.current,t)&&(R.current=t,s.flushSync(()=>{p(t)}))})},[h,t,n,L,T]);e2(()=>{!1===d&&R.current.isPositioned&&(R.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let N=l.useRef(!1);e2(()=>(N.current=!0,()=>{N.current=!1}),[]),e2(()=>{if(E&&(k.current=E),S&&(C.current=S),E&&S){if(P.current)return P.current(E,S,j);j()}},[E,S,j,P,A]);let M=l.useMemo(()=>({reference:k,floating:C,setReference:b,setFloating:x}),[b,x]),O=l.useMemo(()=>({reference:E,floating:S}),[E,S]),D=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=e6(O.floating,f.x),r=e6(O.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...e9(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,O.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:j,refs:M,elements:O,floatingStyles:D}),[f,j,M,O,D])}({strategy:"fixed",placement:h+("center"!==w?"-"+w:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 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=ez(e),d=i||l?[...c?e_(c):[],...e_(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=c&&s?function(e,t){let n,r=null,o=ey(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(a||t(),!f||!p)return;let h=B(d),m=B(o.clientWidth-(c+f)),v={rootMargin:-h+"px "+-m+"px "+-B(o.clientHeight-(d+p))+"px "+-B(c)+"px",threshold:z(0,F(1,s))||1},y=!0;function g(t){let r=t[0].intersectionRatio;if(r!==s){if(!y)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||e0(u,e.getBoundingClientRect())||l(),y=!1}try{r=new IntersectionObserver(g,{...v,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,v)}r.observe(e)}(!0),i}(c,n):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!u&&h.observe(c),h.observe(t));let m=u?eU(e):null;return u&&function t(){let r=eU(e);m&&!e0(m,r)&&n(),m=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===A})},elements:{reference:T.anchor},middleware:[((e,t)=>({...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 ep(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),options:[e,t]}))({mainAxis:g+W,alignmentAxis:b}),E&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=G(e,t),u={x:n,y:r},c=await eu(t,s),d=Q(q(o)),f=Y(d),p=u[f],h=u[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=z(n,F(p,r))}if(l){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=h+c[e],r=h-c[t];h=z(n,F(h,r))}let m=a.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:l}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=G(e,t),c={x:n,y:r},d=Q(o),f=Y(d),p=c[f],h=c[d],m=G(a,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var y,g;let e="y"===f?"width":"height",t=ef.has(q(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(y=l.offset)?void 0:y[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(g=l.offset)?void 0:g[d])||0)-(t?v.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}}(e),options:[e,t]}))():void 0,...Z}),E&&((e,t)=>({...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:d,elements:f}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...w}=G(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let b=q(a),x=Q(c),E=q(c)===c,S=await (null==d.isRTL?void 0:d.isRTL(f.floating)),k=m||(E||!g?[eo(c)]:function(e){let t=eo(e);return[J(e),t,J(t)]}(c)),C="none"!==y;!m&&C&&k.push(...function(e,t,n,r){let o=X(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?et:ee;return t?ee:et;case"left":case"right":return t?en:er;default:return[]}}(q(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(J)))),i}(c,g,y,S));let R=[c,...k],A=await eu(t,w),P=[],L=(null==(r=s.flip)?void 0:r.overflows)||[];if(p&&P.push(A[b]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=X(e),o=Y(Q(e)),i=$(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=eo(l)),[l,eo(l)]}(a,u,S);P.push(A[e[0]],A[e[1]])}if(L=[...L,{placement:a,overflows:P}],!P.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=R[e];if(t&&("alignment"!==h||x===Q(t)||L.every(e=>e.overflows[0]>0&&Q(e.placement)===x)))return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(i=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(l=L.filter(e=>{if(C){let t=Q(e.placement);return t===x||"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),options:[e,t]}))({...Z}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:l,rects:a,platform:s,elements:u}=t,{apply:c=()=>{},...d}=G(e,t),f=await eu(t,d),p=q(l),h=X(l),m="y"===Q(l),{width:v,height:y}=a.floating;"top"===p||"bottom"===p?(o=p,i=h===(await (null==s.isRTL?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(i=p,o="end"===h?"top":"bottom");let g=y-f.top-f.bottom,w=v-f.left-f.right,b=F(y-f[o],g),x=F(v-f[i],w),E=!t.middlewareData.shift,S=b,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=g),E&&!h){let e=z(f.left,0),t=z(f.right,0),n=z(f.top,0),r=z(f.bottom,0);m?k=v-2*(0!==e||0!==t?e+t:z(f.left,f.right)):S=y-2*(0!==n||0!==r?n+r:z(f.top,f.bottom))}await c({...t,availableWidth:k,availableHeight:S});let C=await s.getDimensions(u.floating);return v!==C.width||y!==C.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...Z,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),D&&((e,t)=>({...(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?e1({element:n.current,padding:r}).fn(t):{}:n?e1({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:D,padding:x}),tm({arrowWidth:H,arrowHeight:W}),R&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=G(e,t);switch(r){case"referenceHidden":{let e=ec(await eu(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ed(e)}}}case"escaped":{let e=ec(await eu(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ed(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...Z})]}),[ev,eg]=tv(ea),ew=v(P);(0,O.N)(()=>{eh&&(null==ew||ew())},[eh,ew]);let eb=null==(n=em.arrow)?void 0:n.x,ex=null==(r=em.arrow)?void 0:r.y,eE=(null==(o=em.arrow)?void 0:o.centerOffset)!==0,[eS,ek]=l.useState();return(0,O.N)(()=>{j&&ek(window.getComputedStyle(j).zIndex)},[j]),(0,y.jsx)("div",{ref:ei.setFloating,"data-radix-popper-content-wrapper":"",style:{...el,transform:eh?el.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eS,"--radix-popper-transform-origin":[null==(i=em.transformOrigin)?void 0:i.x,null==(a=em.transformOrigin)?void 0:a.y].join(" "),...(null==(u=em.hide)?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,y.jsx)(ts,{scope:p,placedSide:ev,onArrowChange:I,arrowX:eb,arrowY:ex,shouldHideArrow:eE,children:(0,y.jsx)(m.sG.div,{"data-side":ev,"data-align":eg,...L,ref:M,style:{...L.style,animation:eh?void 0:"none"}})})})});tc.displayName=ta;var td="PopperArrow",tf={top:"bottom",right:"left",bottom:"top",left:"right"},tp=l.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=tu(td,n),i=tf[o.placedSide];return(0,y.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,y.jsx)(e7,{...r,ref:t,style:{...r.style,display:"block"}})})});function th(e){return null!==e}tp.displayName=td;var tm=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:s,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=tv(a),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!=(i=null==(r=u.arrow)?void 0:r.x)?i:0)+d/2,y=(null!=(l=null==(o=u.arrow)?void 0:o.y)?l:0)+f/2,g="",w="";return"bottom"===p?(g=c?m:"".concat(v,"px"),w="".concat(-f,"px")):"top"===p?(g=c?m:"".concat(v,"px"),w="".concat(s.floating.height+f,"px")):"right"===p?(g="".concat(-f,"px"),w=c?m:"".concat(y,"px")):"left"===p&&(g="".concat(s.floating.width+f,"px"),w=c?m:"".concat(y,"px")),{data:{x:g,y:w}}}});function tv(e){let[t,n="center"]=e.split("-");return[t,n]}var ty=l.forwardRef((e,t)=>{var n,r;let{container:o,...i}=e,[a,u]=l.useState(!1);(0,O.N)(()=>u(!0),[]);let c=o||a&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return c?s.createPortal((0,y.jsx)(m.sG.div,{...i,ref:t}),c):null});ty.displayName="Portal";var tg=n(9708),tw=n(5845),tb=n(5503),tx=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"});l.forwardRef((e,t)=>(0,y.jsx)(m.sG.span,{...e,ref:t,style:{...tx,...e.style}})).displayName="VisuallyHidden";var tE=new WeakMap,tS=new WeakMap,tk={},tC=0,tR=function(e){return e&&(e.host||tR(e.parentNode))},tA=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tR(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});tk[n]||(tk[n]=new WeakMap);var i=tk[n],l=[],a=new Set,s=new Set(o),u=function(e){!e||a.has(e)||(a.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(tE.get(e)||0)+1,u=(i.get(e)||0)+1;tE.set(e,s),i.set(e,u),l.push(e),1===s&&o&&tS.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),a.clear(),tC++,function(){l.forEach(function(e){var t=tE.get(e)-1,o=i.get(e)-1;tE.set(e,t),i.set(e,o),t||(tS.has(e)||e.removeAttribute(r),tS.delete(e)),o||e.removeAttribute(n)}),--tC||(tE=new WeakMap,tE=new WeakMap,tS=new WeakMap,tk={})}},tP=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tA(r,o,n,"aria-hidden")):function(){return null}},tL=function(){return(tL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function tT(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create;Object.create;var tj=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),tN="width-before-scroll-bar";function tM(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tO="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,tD=new WeakMap;function tI(e){return e}var t_=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=tI),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},l=function(){return Promise.resolve().then(i)};l(),n={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),n}}}});return o.options=tL({async:!0,ssr:!1},e),o}(),tH=function(){},tF=l.forwardRef(function(e,t){var n,r,o,i,a=l.useRef(null),s=l.useState({onScrollCapture:tH,onWheelCapture:tH,onTouchMoveCapture:tH}),u=s[0],c=s[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,v=e.shards,y=e.sideCar,g=e.noRelative,w=e.noIsolation,b=e.inert,x=e.allowPinchZoom,E=e.as,S=e.gapMode,k=tT(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=(n=[a,t],r=function(e){return n.forEach(function(t){return tM(t,e)})},(o=(0,l.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,tO(function(){var e=tD.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||tM(e,null)}),r.forEach(function(e){t.has(e)||tM(e,o)})}tD.set(i,n)},[n]),i),R=tL(tL({},k),u);return l.createElement(l.Fragment,null,m&&l.createElement(y,{sideCar:t_,removeScrollBar:h,shards:v,noRelative:g,noIsolation:w,inert:b,setCallbacks:c,allowPinchZoom:!!x,lockRef:a,gapMode:S}),d?l.cloneElement(l.Children.only(f),tL(tL({},R),{ref:C})):l.createElement(void 0===E?"div":E,tL({},R,{className:p,ref:C}),f))});tF.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tF.classNames={fullWidth:tN,zeroRight:tj};var tz=function(e){var t=e.sideCar,n=tT(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return l.createElement(r,tL({},n))};tz.isSideCarExport=!0;var tW=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,l;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tB=function(){var e=tW();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tK=function(){var e=tB();return function(t){return e(t.styles,t.dynamic),null}},tU={left:0,top:0,right:0,gap:0},tV=function(e){return parseInt(e||"",10)||0},tG=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[tV(n),tV(r),tV(o)]},tq=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tU;var t=tG(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tX=tK(),tY="data-scroll-locked",t$=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(tY,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(tj," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(tN," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(tj," .").concat(tj," {\n right: 0 ").concat(r,";\n }\n \n .").concat(tN," .").concat(tN," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(tY,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},tZ=function(){var e=parseInt(document.body.getAttribute(tY)||"0",10);return isFinite(e)?e:0},tQ=function(){l.useEffect(function(){return document.body.setAttribute(tY,(tZ()+1).toString()),function(){var e=tZ()-1;e<=0?document.body.removeAttribute(tY):document.body.setAttribute(tY,e.toString())}},[])},tJ=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;tQ();var i=l.useMemo(function(){return tq(o)},[o]);return l.createElement(tX,{styles:t$(i,!t,o,n?"":"!important")})},t0=!1;if("undefined"!=typeof window)try{var t1=Object.defineProperty({},"passive",{get:function(){return t0=!0,!0}});window.addEventListener("test",t1,t1),window.removeEventListener("test",t1,t1)}catch(e){t0=!1}var t2=!!t0&&{passive:!1},t5=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},t9=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),t6(e,r)){var o=t3(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},t6=function(e,t){return"v"===e?t5(t,"overflowY"):t5(t,"overflowX")},t3=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},t7=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,s=n.target,u=t.contains(s),c=!1,d=a>0,f=0,p=0;do{if(!s)break;var h=t3(e,s),m=h[0],v=h[1]-h[2]-l*m;(m||v)&&t6(e,s)&&(f+=v,p+=m);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(c=!0),c},t4=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},t8=function(e){return[e.deltaX,e.deltaY]},ne=function(e){return e&&"current"in e?e.current:e},nt=0,nn=[];let nr=(r=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(nt++)[0],i=l.useState(tK)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(ne),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=t4(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=t9(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=t9(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return t7(p,t,e,"h"===p?s:u,!0)},[]),u=l.useCallback(function(e){if(nn.length&&nn[nn.length-1]===i){var n="deltaY"in e?t8(e):t4(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(ne).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=l.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=l.useCallback(function(e){n.current=t4(e),r.current=void 0},[]),f=l.useCallback(function(t){c(t.type,t8(t),t.target,s(t,e.lockRef.current))},[]),p=l.useCallback(function(t){c(t.type,t4(t),t.target,s(t,e.lockRef.current))},[]);l.useEffect(function(){return nn.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,t2),document.addEventListener("touchmove",u,t2),document.addEventListener("touchstart",d,t2),function(){nn=nn.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,t2),document.removeEventListener("touchmove",u,t2),document.removeEventListener("touchstart",d,t2)}},[]);var h=e.removeScrollBar,m=e.inert;return l.createElement(l.Fragment,null,m?l.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?l.createElement(tJ,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},t_.useMedium(r),tz);var no=l.forwardRef(function(e,t){return l.createElement(tF,tL({},e,{ref:t,sideCar:nr}))});no.classNames=tF.classNames;var ni=[" ","Enter","ArrowUp","ArrowDown"],nl=[" ","Enter"],na="Select",[ns,nu,nc]=(0,d.N)(na),[nd,nf]=(0,p.A)(na,[nc,tt]),np=tt(),[nh,nm]=nd(na),[nv,ny]=nd(na),ng=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:u,dir:c,name:d,autoComplete:f,disabled:p,required:m,form:v}=e,g=np(t),[w,b]=l.useState(null),[x,E]=l.useState(null),[S,k]=l.useState(!1),C=(0,h.jH)(c),[R,A]=(0,tw.i)({prop:r,defaultProp:null!=o&&o,onChange:i,caller:na}),[P,L]=(0,tw.i)({prop:a,defaultProp:s,onChange:u,caller:na}),T=l.useRef(null),j=!w||v||!!w.closest("form"),[N,M]=l.useState(new Set),O=Array.from(N).map(e=>e.props.value).join(";");return(0,y.jsx)(to,{...g,children:(0,y.jsxs)(nh,{required:m,scope:t,trigger:w,onTriggerChange:b,valueNode:x,onValueNodeChange:E,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:_(),value:P,onValueChange:L,open:R,onOpenChange:A,dir:C,triggerPointerDownPosRef:T,disabled:p,children:[(0,y.jsx)(ns.Provider,{scope:t,children:(0,y.jsx)(nv,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(e=>{M(t=>new Set(t).add(e))},[]),onNativeOptionRemove:l.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),j?(0,y.jsxs)(nJ,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:P,onChange:e=>L(e.target.value),disabled:p,form:v,children:[void 0===P?(0,y.jsx)("option",{value:""}):null,Array.from(N)]},O):null]})})};ng.displayName=na;var nw="SelectTrigger",nb=l.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,i=np(n),a=nm(nw,n),s=a.disabled||r,u=(0,f.s)(t,a.onTriggerChange),d=nu(n),p=l.useRef("touch"),[h,v,g]=n1(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=n2(t,e,n);void 0!==r&&a.onValueChange(r.value)}),w=e=>{s||(a.onOpenChange(!0),g()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,y.jsx)(tl,{asChild:!0,...i,children:(0,y.jsx)(m.sG.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":n0(a.value)?"":void 0,...o,ref:u,onClick:(0,c.m)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&w(e)}),onPointerDown:(0,c.m)(o.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&&(w(e),e.preventDefault())}),onKeyDown:(0,c.m)(o.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&ni.includes(e.key)&&(w(),e.preventDefault())})})})});nb.displayName=nw;var nx="SelectValue",nE=l.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,s=nm(nx,n),{onValueNodeHasChildrenChange:u}=s,c=void 0!==i,d=(0,f.s)(t,s.onValueNodeChange);return(0,O.N)(()=>{u(c)},[u,c]),(0,y.jsx)(m.sG.span,{...a,ref:d,style:{pointerEvents:"none"},children:n0(s.value)?(0,y.jsx)(y.Fragment,{children:l}):i})});nE.displayName=nx;var nS=l.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,y.jsx)(m.sG.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});nS.displayName="SelectIcon";var nk=e=>(0,y.jsx)(ty,{asChild:!0,...e});nk.displayName="SelectPortal";var nC="SelectContent",nR=l.forwardRef((e,t)=>{let n=nm(nC,e.__scopeSelect),[r,o]=l.useState();return((0,O.N)(()=>{o(new DocumentFragment)},[]),n.open)?(0,y.jsx)(nT,{...e,ref:t}):r?s.createPortal((0,y.jsx)(nA,{scope:e.__scopeSelect,children:(0,y.jsx)(ns.Slot,{scope:e.__scopeSelect,children:(0,y.jsx)("div",{children:e.children})})}),r):null});nR.displayName=nC;var[nA,nP]=nd(nC),nL=(0,tg.TL)("SelectContent.RemoveScroll"),nT=l.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:u,align:d,alignOffset:p,arrowPadding:h,collisionBoundary:m,collisionPadding:v,sticky:g,hideWhenDetached:w,avoidCollisions:x,...E}=e,C=nm(nC,n),[R,A]=l.useState(null),[L,T]=l.useState(null),j=(0,f.s)(t,e=>A(e)),[N,M]=l.useState(null),[O,D]=l.useState(null),I=nu(n),[_,H]=l.useState(!1),F=l.useRef(!1);l.useEffect(()=>{if(R)return tP(R)},[R]),l.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:k()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:k()),S++,()=>{1===S&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),S--}},[]);let z=l.useCallback(e=>{let[t,...n]=I().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&L&&(L.scrollTop=0),n===r&&L&&(L.scrollTop=L.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[I,L]),W=l.useCallback(()=>z([N,R]),[z,N,R]);l.useEffect(()=>{_&&W()},[_,W]);let{onOpenChange:B,triggerPointerDownPosRef:K}=C;l.useEffect(()=>{if(R){let e={x:0,y:0},t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!=(o=null==(n=K.current)?void 0:n.x)?o:0)),y:Math.abs(Math.round(t.pageY)-(null!=(i=null==(r=K.current)?void 0:r.y)?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():R.contains(n.target)||B(!1),document.removeEventListener("pointermove",t),K.current=null};return null!==K.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[R,B,K]),l.useEffect(()=>{let e=()=>B(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[B]);let[U,V]=n1(e=>{let t=I().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=n2(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),G=l.useCallback((e,t,n)=>{let r=!F.current&&!n;(void 0!==C.value&&C.value===t||r)&&(M(e),r&&(F.current=!0))},[C.value]),q=l.useCallback(()=>null==R?void 0:R.focus(),[R]),X=l.useCallback((e,t,n)=>{let r=!F.current&&!n;(void 0!==C.value&&C.value===t||r)&&D(e)},[C.value]),Y="popper"===r?nN:nj,$=Y===nN?{side:s,sideOffset:u,align:d,alignOffset:p,arrowPadding:h,collisionBoundary:m,collisionPadding:v,sticky:g,hideWhenDetached:w,avoidCollisions:x}:{};return(0,y.jsx)(nA,{scope:n,content:R,viewport:L,onViewportChange:T,itemRefCallback:G,selectedItem:N,onItemLeave:q,itemTextRefCallback:X,focusSelectedItem:W,selectedItemText:O,position:r,isPositioned:_,searchRef:U,children:(0,y.jsx)(no,{as:nL,allowPinchZoom:!0,children:(0,y.jsx)(P,{asChild:!0,trapped:C.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,c.m)(o,e=>{var t;null==(t=C.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,y.jsx)(b,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:(0,y.jsx)(Y,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:e=>e.preventDefault(),...E,...$,onPlaced:()=>H(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:(0,c.m)(E.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=I().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(()=>z(t)),e.preventDefault()}})})})})})})});nT.displayName="SelectContentImpl";var nj=l.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,i=nm(nC,n),a=nP(nC,n),[s,c]=l.useState(null),[d,p]=l.useState(null),h=(0,f.s)(t,e=>p(e)),v=nu(n),g=l.useRef(!1),w=l.useRef(!0),{viewport:b,selectedItem:x,selectedItemText:E,focusSelectedItem:S}=a,k=l.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&d&&b&&x&&E){let e=i.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=E.getBoundingClientRect();if("rtl"!==i.dir){let r=o.left-t.left,i=n.left-r,l=e.left-i,a=e.width+l,c=Math.max(a,t.width),d=window.innerWidth-10,f=(0,u.q)(i,[10,Math.max(10,d-c)]);s.style.minWidth=a+"px",s.style.left=f+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,l=window.innerWidth-e.right-i,a=e.width+l,c=Math.max(a,t.width),d=window.innerWidth-10,f=(0,u.q)(i,[10,Math.max(10,d-c)]);s.style.minWidth=a+"px",s.style.right=f+"px"}let l=v(),a=window.innerHeight-20,c=b.scrollHeight,f=window.getComputedStyle(d),p=parseInt(f.borderTopWidth,10),h=parseInt(f.paddingTop,10),m=parseInt(f.borderBottomWidth,10),y=p+h+c+parseInt(f.paddingBottom,10)+m,w=Math.min(5*x.offsetHeight,y),S=window.getComputedStyle(b),k=parseInt(S.paddingTop,10),C=parseInt(S.paddingBottom,10),R=e.top+e.height/2-10,A=x.offsetHeight/2,P=p+h+(x.offsetTop+A);if(P<=R){let e=l.length>0&&x===l[l.length-1].ref.current;s.style.bottom="0px";let t=Math.max(a-R,A+(e?C:0)+(d.clientHeight-b.offsetTop-b.offsetHeight)+m);s.style.height=P+t+"px"}else{let e=l.length>0&&x===l[0].ref.current;s.style.top="0px";let t=Math.max(R,p+b.offsetTop+(e?k:0)+A);s.style.height=t+(y-P)+"px",b.scrollTop=P-R+b.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=w+"px",s.style.maxHeight=a+"px",null==r||r(),requestAnimationFrame(()=>g.current=!0)}},[v,i.trigger,i.valueNode,s,d,b,x,E,i.dir,r]);(0,O.N)(()=>k(),[k]);let[C,R]=l.useState();(0,O.N)(()=>{d&&R(window.getComputedStyle(d).zIndex)},[d]);let A=l.useCallback(e=>{e&&!0===w.current&&(k(),null==S||S(),w.current=!1)},[k,S]);return(0,y.jsx)(nM,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:A,children:(0,y.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,y.jsx)(m.sG.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});nj.displayName="SelectItemAlignedPosition";var nN=l.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=np(n);return(0,y.jsx)(tc,{...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)"}})});nN.displayName="SelectPopperPosition";var[nM,nO]=nd(nC,{}),nD="SelectViewport",nI=l.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,i=nP(nD,n),a=nO(nD,n),s=(0,f.s)(t,i.onViewportChange),u=l.useRef(0);return(0,y.jsxs)(y.Fragment,{children:[(0,y.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,y.jsx)(ns.Slot,{scope:n,children:(0,y.jsx)(m.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,c.m)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if((null==r?void 0:r.current)&&n){let e=Math.abs(u.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")}}}u.current=t.scrollTop})})})]})});nI.displayName=nD;var n_="SelectGroup",[nH,nF]=nd(n_),nz=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=_();return(0,y.jsx)(nH,{scope:n,id:o,children:(0,y.jsx)(m.sG.div,{role:"group","aria-labelledby":o,...r,ref:t})})});nz.displayName=n_;var nW="SelectLabel";l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=nF(nW,n);return(0,y.jsx)(m.sG.div,{id:o.id,...r,ref:t})}).displayName=nW;var nB="SelectItem",[nK,nU]=nd(nB),nV=l.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=nm(nB,n),u=nP(nB,n),d=s.value===r,[p,h]=l.useState(null!=i?i:""),[v,g]=l.useState(!1),w=(0,f.s)(t,e=>{var t;return null==(t=u.itemRefCallback)?void 0:t.call(u,e,r,o)}),b=_(),x=l.useRef("touch"),E=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,y.jsx)(nK,{scope:n,value:r,disabled:o,textId:b,isSelected:d,onItemTextChange:l.useCallback(e=>{h(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,y.jsx)(ns.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:(0,y.jsx)(m.sG.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":d&&v,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:w,onFocus:(0,c.m)(a.onFocus,()=>g(!0)),onBlur:(0,c.m)(a.onBlur,()=>g(!1)),onClick:(0,c.m)(a.onClick,()=>{"mouse"!==x.current&&E()}),onPointerUp:(0,c.m)(a.onPointerUp,()=>{"mouse"===x.current&&E()}),onPointerDown:(0,c.m)(a.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,c.m)(a.onPointerMove,e=>{if(x.current=e.pointerType,o){var t;null==(t=u.onItemLeave)||t.call(u)}else"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,c.m)(a.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=u.onItemLeave)||t.call(u)}}),onKeyDown:(0,c.m)(a.onKeyDown,e=>{var t;((null==(t=u.searchRef)?void 0:t.current)===""||" "!==e.key)&&(nl.includes(e.key)&&E()," "===e.key&&e.preventDefault())})})})})});nV.displayName=nB;var nG="SelectItemText",nq=l.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,...i}=e,a=nm(nG,n),u=nP(nG,n),c=nU(nG,n),d=ny(nG,n),[p,h]=l.useState(null),v=(0,f.s)(t,e=>h(e),c.onItemTextChange,e=>{var t;return null==(t=u.itemTextRefCallback)?void 0:t.call(u,e,c.value,c.disabled)}),g=null==p?void 0:p.textContent,w=l.useMemo(()=>(0,y.jsx)("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:x}=d;return(0,O.N)(()=>(b(w),()=>x(w)),[b,x,w]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(m.sG.span,{id:c.textId,...i,ref:v}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?s.createPortal(i.children,a.valueNode):null]})});nq.displayName=nG;var nX="SelectItemIndicator";l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return nU(nX,n).isSelected?(0,y.jsx)(m.sG.span,{"aria-hidden":!0,...r,ref:t}):null}).displayName=nX;var nY="SelectScrollUpButton";l.forwardRef((e,t)=>{let n=nP(nY,e.__scopeSelect),r=nO(nY,e.__scopeSelect),[o,i]=l.useState(!1),a=(0,f.s)(t,r.onScrollButtonChange);return(0,O.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){i(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,y.jsx)(nZ,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}).displayName=nY;var n$="SelectScrollDownButton";l.forwardRef((e,t)=>{let n=nP(n$,e.__scopeSelect),r=nO(n$,e.__scopeSelect),[o,i]=l.useState(!1),a=(0,f.s)(t,r.onScrollButtonChange);return(0,O.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,y.jsx)(nZ,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}).displayName=n$;var nZ=l.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,i=nP("SelectScrollButton",n),a=l.useRef(null),s=nu(n),u=l.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>u(),[u]),(0,O.N)(()=>{var e;let t=s().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[s]),(0,y.jsx)(m.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,c.m)(o.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(r,50))}),onPointerMove:(0,c.m)(o.onPointerMove,()=>{var e;null==(e=i.onItemLeave)||e.call(i),null===a.current&&(a.current=window.setInterval(r,50))}),onPointerLeave:(0,c.m)(o.onPointerLeave,()=>{u()})})});l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,y.jsx)(m.sG.div,{"aria-hidden":!0,...r,ref:t})}).displayName="SelectSeparator";var nQ="SelectArrow";l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=np(n),i=nm(nQ,n),l=nP(nQ,n);return i.open&&"popper"===l.position?(0,y.jsx)(tp,{...o,...r,ref:t}):null}).displayName=nQ;var nJ=l.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,...o}=e,i=l.useRef(null),a=(0,f.s)(t,i),s=(0,tb.Z)(r);return l.useEffect(()=>{let e=i.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[s,r]),(0,y.jsx)(m.sG.select,{...o,style:{...tx,...o.style},ref:a,defaultValue:r})});function n0(e){return""===e||void 0===e}function n1(e){let t=v(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(e=>{let o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),i=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function n2(e,t,n){var r,o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=n?e.indexOf(n):-1,a=(r=e,o=Math.max(l,0),r.map((e,t)=>r[(o+t)%r.length]));1===i.length&&(a=a.filter(e=>e!==n));let s=a.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}nJ.displayName="SelectBubbleInput";var n5=ng,n9=nb,n6=nE,n3=nS,n7=nk,n4=nR,n8=nI,re=nz,rt=nV,rn=nq},6874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return v},useLinkStatus:function(){return g}});let r=n(6966),o=n(5155),i=r._(n(2115)),l=n(2757),a=n(5227),s=n(9818),u=n(6654),c=n(9991),d=n(5929);n(3230);let f=n(4930),p=n(2664),h=n(6634);function m(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function v(e){let t,n,r,[l,v]=(0,i.useOptimistic)(f.IDLE_LINK_STATUS),g=(0,i.useRef)(null),{href:w,as:b,children:x,prefetch:E=null,passHref:S,replace:k,shallow:C,scroll:R,onClick:A,onMouseEnter:P,onTouchStart:L,legacyBehavior:T=!1,onNavigate:j,ref:N,unstable_dynamicOnHover:M,...O}=e;t=x,T&&("string"==typeof t||"number"==typeof t)&&(t=(0,o.jsx)("a",{children:t}));let D=i.default.useContext(a.AppRouterContext),I=!1!==E,_=null===E||"auto"===E?s.PrefetchKind.AUTO:s.PrefetchKind.FULL,{href:H,as:F}=i.default.useMemo(()=>{let e=m(w);return{href:e,as:b?m(b):e}},[w,b]);T&&(n=i.default.Children.only(t));let z=T?n&&"object"==typeof n&&n.ref:N,W=i.default.useCallback(e=>(null!==D&&(g.current=(0,f.mountLinkInstance)(e,H,D,_,I,v)),()=>{g.current&&((0,f.unmountLinkForCurrentNavigation)(g.current),g.current=null),(0,f.unmountPrefetchableInstance)(e)}),[I,H,D,_,v]),B={ref:(0,u.useMergedRef)(W,z),onClick(e){T||"function"!=typeof A||A(e),T&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),D&&(e.defaultPrevented||function(e,t,n,r,o,l,a){let{nodeName:s}=e.currentTarget;if(!("A"===s.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,p.isLocalURL)(t)){o&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}i.default.startTransition(()=>{(0,h.dispatchNavigateAction)(n||t,o?"replace":"push",null==l||l,r.current)})}}(e,H,F,g,k,R,j))},onMouseEnter(e){T||"function"!=typeof P||P(e),T&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),D&&I&&(0,f.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){T||"function"!=typeof L||L(e),T&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),D&&I&&(0,f.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,c.isAbsoluteUrl)(F)?B.href=F:T&&!S&&("a"!==n.type||"href"in n.props)||(B.href=(0,d.addBasePath)(F)),r=T?i.default.cloneElement(n,B):(0,o.jsx)("a",{...O,...B,children:t}),(0,o.jsx)(y.Provider,{value:l,children:r})}n(3180);let y=(0,i.createContext)(f.IDLE_LINK_STATUS),g=()=>(0,i.useContext)(y);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7328:(e,t,n)=>{"use strict";function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function o(e,t){var n=r(e,t,"get");return n.get?n.get.call(e):n.value}function i(e,t,n){var o=r(e,t,"set");if(o.set)o.set.call(e,n);else{if(!o.writable)throw TypeError("attempted to set read only private field");o.value=n}return n}n.d(t,{N:()=>f});var l,a=n(2115),s=n(6081),u=n(6101),c=n(9708),d=n(5155);function f(e){let t=e+"CollectionProvider",[n,r]=(0,s.A)(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:n}=e,r=a.useRef(null),i=a.useRef(new Map).current;return(0,d.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};l.displayName=t;let f=e+"CollectionSlot",p=(0,c.TL)(f),h=a.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=i(f,n),l=(0,u.s)(t,o.collectionRef);return(0,d.jsx)(p,{ref:l,children:r})});h.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",y=(0,c.TL)(m),g=a.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,l=a.useRef(null),s=(0,u.s)(t,l),c=i(m,n);return a.useEffect(()=>(c.itemMap.set(l,{ref:l,...o}),()=>void c.itemMap.delete(l))),(0,d.jsx)(y,{...{[v]:""},ref:s,children:r})});return g.displayName=m,[{Provider:l,Slot:h,ItemSlot:g},function(t){let n=i(e+"CollectionConsumer",t);return a.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var p=new WeakMap;function h(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=m(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function m(e){return e!=e||0===e?0:Math.trunc(e)}l=new WeakMap,class e extends Map{set(e,t){return p.get(this)&&(this.has(e)?o(this,l)[o(this,l).indexOf(e)]=e:o(this,l).push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),a=o(this,l).length,s=m(e),u=s>=0?s:a+s,c=u<0||u>=a?-1:u;if(c===this.size||i&&c===this.size-1||-1===c)return this.set(t,n),this;let d=this.size+ +!i;s<0&&u++;let f=[...o(this,l)],p=!1;for(let e=u;e<d;e++)if(u===e){let o=f[e];f[e]===t&&(o=f[e+1]),i&&this.delete(t),r=this.get(o),this.set(t,n)}else{p||f[e-1]!==t||(p=!0);let n=f[p?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=o(this,l).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=o(this,l).indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=o(this,l).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=o(this,l).indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return i(this,l,[]),super.clear()}delete(e){let t=super.delete(e);return t&&o(this,l).splice(o(this,l).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=h(o(this,l),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=h(o(this,l),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return o(this,l).indexOf(e)}keyAt(e){return h(o(this,l),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(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=0,l=null!=o?o:this.at(0);for(let e of this)l=0===i&&1===t.length?e:Reflect.apply(r,this,[l,e,i,this]),i++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);i=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[i,n,e,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=[...this.entries()];return o.splice(...n),new e(o)}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}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,l,{writable:!0,value:void 0}),i(this,l,[...super.keys()]),p.set(this,!0)}}},7340:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).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"}]])},7604:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("circle-dot-dashed",[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]])},8859:(e,t)=>{"use strict";function n(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function r(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[n,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(n,r(e));else t.set(n,r(o));return t}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(let t of n){for(let n of t.keys())e.delete(n);for(let[n,r]of t.entries())e.append(n,r)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},9206:function(e,t,n){e.exports=function(e){var t=[function(e,t,n){"use strict";var r=n(4),o=n(1),i=n(2),l={addUnnecessaryBendpoints:"de.cau.cs.kieler.klay.layered.unnecessaryBendpoints",alignment:"de.cau.cs.kieler.alignment",aspectRatio:"de.cau.cs.kieler.aspectRatio",borderSpacing:"borderSpacing",compactComponents:"de.cau.cs.kieler.klay.layered.components.compact",compactionStrategy:"de.cau.cs.kieler.klay.layered.nodeplace.compactionStrategy",contentAlignment:"de.cau.cs.kieler.klay.layered.contentAlignment",crossingMinimization:"de.cau.cs.kieler.klay.layered.crossMin",cycleBreaking:"de.cau.cs.kieler.klay.layered.cycleBreaking",debugMode:"de.cau.cs.kieler.debugMode",direction:"de.cau.cs.kieler.direction",edgeLabelSideSelection:"de.cau.cs.kieler.klay.layered.edgeLabelSideSelection",edgeRouting:"de.cau.cs.kieler.edgeRouting",edgeSpacingFactor:"de.cau.cs.kieler.klay.layered.edgeSpacingFactor",feedbackEdges:"de.cau.cs.kieler.klay.layered.feedBackEdges",fixedAlignment:"de.cau.cs.kieler.klay.layered.fixedAlignment",greedySwitchCrossingMinimization:"de.cau.cs.kieler.klay.layered.greedySwitch",hierarchyHandling:"de.cau.cs.kieler.hierarchyHandling",inLayerSpacingFactor:"de.cau.cs.kieler.klay.layered.inLayerSpacingFactor",interactiveReferencePoint:"de.cau.cs.kieler.klay.layered.interactiveReferencePoint",layerConstraint:"de.cau.cs.kieler.klay.layered.layerConstraint",layoutHierarchy:"de.cau.cs.kieler.layoutHierarchy",linearSegmentsDeflectionDampening:"de.cau.cs.kieler.klay.layered.linearSegmentsDeflectionDampening",mergeEdges:"de.cau.cs.kieler.klay.layered.mergeEdges",mergeHierarchyCrossingEdges:"de.cau.cs.kieler.klay.layered.mergeHierarchyEdges",noLayout:"de.cau.cs.kieler.noLayout",nodeLabelPlacement:"de.cau.cs.kieler.nodeLabelPlacement",nodeLayering:"de.cau.cs.kieler.klay.layered.nodeLayering",nodePlacement:"de.cau.cs.kieler.klay.layered.nodePlace",portAlignment:"de.cau.cs.kieler.portAlignment",portAlignmentEastern:"de.cau.cs.kieler.portAlignment.east",portAlignmentNorth:"de.cau.cs.kieler.portAlignment.north",portAlignmentSouth:"de.cau.cs.kieler.portAlignment.south",portAlignmentWest:"de.cau.cs.kieler.portAlignment.west",portConstraints:"de.cau.cs.kieler.portConstraints",portLabelPlacement:"de.cau.cs.kieler.portLabelPlacement",portOffset:"de.cau.cs.kieler.offset",portSide:"de.cau.cs.kieler.portSide",portSpacing:"de.cau.cs.kieler.portSpacing",postCompaction:"de.cau.cs.kieler.klay.layered.postCompaction",priority:"de.cau.cs.kieler.priority",randomizationSeed:"de.cau.cs.kieler.randomSeed",routeSelfLoopInside:"de.cau.cs.kieler.selfLoopInside",separateConnectedComponents:"de.cau.cs.kieler.separateConnComp",sizeConstraint:"de.cau.cs.kieler.sizeConstraint",sizeOptions:"de.cau.cs.kieler.sizeOptions",spacing:"de.cau.cs.kieler.spacing",splineSelfLoopPlacement:"de.cau.cs.kieler.klay.layered.splines.selfLoopPlacement",thoroughness:"de.cau.cs.kieler.klay.layered.thoroughness",wideNodesOnMultipleLayers:"de.cau.cs.kieler.klay.layered.wideNodesOnMultipleLayers"},a=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r],i=l[o],a=e[o];n[i]=a}return n},s={interactiveReferencePoint:"CENTER"},u=function(e){for(var t=e.parent(),n=e.scratch("klay"),r={x:n.x,y:n.y};t.nonempty();){var o=t.scratch("klay");r.x+=o.x,r.y+=o.y,t=t.parent()}return r},c=function(e,t){var n=e.layoutDimensions(t),r=e.numericStyle("padding"),o={_cyEle:e,id:e.id(),padding:{top:r,left:r,bottom:r,right:r}};return e.isParent()||(o.width=n.w,o.height=n.h),e.scratch("klay",o),o},d=function(e,t){var n={_cyEle:e,id:e.id(),source:e.data("source"),target:e.data("target"),properties:{}},r=t.priority(e);return null!=r&&(n.properties.priority=r),e.scratch("klay",n),n},f=function(e,t,n){for(var r=[],o=[],i={},l={id:"root",children:[],edges:[]},a=0;a<e.length;a++){var s=e[a],u=c(s,n);r.push(u),i[s.id()]=u}for(var f=0;f<t.length;f++){var p=t[f],h=d(p,n);o.push(h),i[p.id()]=h}for(var m=0;m<r.length;m++){var v=r[m],y=v._cyEle;if(y.isChild()){var g=i[y.parent().id()];(g.children=g.children||[]).push(v)}else l.children.push(v)}for(var w=0;w<o.length;w++){var b=o[w],x=b._cyEle;x.source().parent(),x.target().parent(),l.edges.push(b)}return l};function p(e){var t=e.klay;this.options=o({},i,e),this.options.klay=o({},i.klay,t,s)}p.prototype.run=function(){var e=this.options,t=e.eles,n=t.nodes(),o=f(n,t.edges(),e);return r.layout({graph:o,options:a(e.klay),success:function(){},error:function(e){throw e}}),n.filter(function(e){return!e.isParent()}).layoutPositions(this,e,u),this},p.prototype.stop=function(){return this},p.prototype.destroy=function(){return this},e.exports=p},function(e,t,n){"use strict";e.exports=null!=Object.assign?Object.assign.bind(Object):function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.filter(function(e){return null!=e}).forEach(function(t){Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e}},function(e,t,n){"use strict";e.exports={nodeDimensionsIncludeLabels:!1,fit:!0,padding:20,animate:!1,animateFilter:function(e,t){return!0},animationDuration:500,animationEasing:void 0,transform:function(e,t){return t},ready:void 0,stop:void 0,klay:{addUnnecessaryBendpoints:!1,aspectRatio:1.6,borderSpacing:20,compactComponents:!1,crossingMinimization:"LAYER_SWEEP",cycleBreaking:"GREEDY",direction:"UNDEFINED",edgeRouting:"ORTHOGONAL",edgeSpacingFactor:.5,feedbackEdges:!1,fixedAlignment:"NONE",inLayerSpacingFactor:1,layoutHierarchy:!1,linearSegmentsDeflectionDampening:.3,mergeEdges:!1,mergeHierarchyCrossingEdges:!0,nodeLayering:"NETWORK_SIMPLEX",nodePlacement:"BRANDES_KOEPF",randomizationSeed:1,routeSelfLoopInside:!1,separateConnectedComponents:!0,spacing:20,thoroughness:7},priority:function(e){return null}}},function(e,t,n){"use strict";var r=n(0),o=function(e){e&&e("layout","klay",r)};"undefined"!=typeof cytoscape&&o(cytoscape),e.exports=o},function(t,n){t.exports=e}],n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}(n(9107))},9367:(e,t,n)=>{"use strict";function r(e,[t,n]){return Math.min(n,Math.max(t,e))}n.d(t,{q:()=>r})},9708:(e,t,n)=>{"use strict";n.d(t,{TL:()=>l});var r=n(2115),o=n(6101),i=n(5155);function l(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var l;let e,a,s=(l=n,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,o.t)(t,s):s),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...l}=e,a=r.Children.toArray(o),u=a.find(s);if(u){let e=u.props.children,o=a.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...l,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...l,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}var a=Symbol("radix.slottable");function s(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}},9946:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(2115);let o=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:u="",children:c,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...l,width:o,height:o,stroke:n,strokeWidth:s?24*Number(a)/Number(o):a,className:i("lucide",u),...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),s=(e,t)=>{let n=(0,r.forwardRef)((n,l)=>{let{className:s,...u}=n;return(0,r.createElement)(a,{ref:l,iconNode:t,className:i("lucide-".concat(o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),s),...u})});return n.displayName=o(e),n}},9991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return g},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return v},SP:function(){return f},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return s},getLocationOrigin:function(){return l},getURL:function(){return a},isAbsoluteUrl:function(){return i},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return w}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return n||(n=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function l(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function a(){let{href:e}=window.location,t=l();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Object.defineProperty(Error('"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let f="undefined"!=typeof performance,p=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class g extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}}}]);