@geminilight/mindos-windows-arm64 1.0.6 → 1.0.8

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 (483) hide show
  1. package/_standalone/.mindos-build-version +1 -1
  2. package/_standalone/__next/BUILD_ID +1 -1
  3. package/_standalone/__next/app-path-routes-manifest.json +24 -24
  4. package/_standalone/__next/build-manifest.json +3 -3
  5. package/_standalone/__next/prerender-manifest.json +3 -3
  6. package/_standalone/__next/react-loadable-manifest.json +48 -7
  7. package/_standalone/__next/server/app/.well-known/agent-card.json/route_client-reference-manifest.js +1 -1
  8. package/_standalone/__next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/_standalone/__next/server/app/_global-error.html +2 -2
  10. package/_standalone/__next/server/app/_global-error.rsc +1 -1
  11. package/_standalone/__next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/_standalone/__next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  13. package/_standalone/__next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  14. package/_standalone/__next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  15. package/_standalone/__next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  16. package/_standalone/__next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  17. package/_standalone/__next/server/app/_not-found/page.js +1 -1
  18. package/_standalone/__next/server/app/_not-found/page.js.nft.json +1 -1
  19. package/_standalone/__next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  20. package/_standalone/__next/server/app/agents/[agentKey]/page.js +2 -2
  21. package/_standalone/__next/server/app/agents/[agentKey]/page.js.nft.json +1 -1
  22. package/_standalone/__next/server/app/agents/[agentKey]/page_client-reference-manifest.js +1 -1
  23. package/_standalone/__next/server/app/agents/page.js +2 -2
  24. package/_standalone/__next/server/app/agents/page.js.nft.json +1 -1
  25. package/_standalone/__next/server/app/agents/page_client-reference-manifest.js +1 -1
  26. package/_standalone/__next/server/app/api/a2a/agents/route_client-reference-manifest.js +1 -1
  27. package/_standalone/__next/server/app/api/a2a/delegations/route_client-reference-manifest.js +1 -1
  28. package/_standalone/__next/server/app/api/a2a/discover/route_client-reference-manifest.js +1 -1
  29. package/_standalone/__next/server/app/api/a2a/route_client-reference-manifest.js +1 -1
  30. package/_standalone/__next/server/app/api/acp/config/route_client-reference-manifest.js +1 -1
  31. package/_standalone/__next/server/app/api/acp/detect/route_client-reference-manifest.js +1 -1
  32. package/_standalone/__next/server/app/api/acp/install/route_client-reference-manifest.js +1 -1
  33. package/_standalone/__next/server/app/api/acp/registry/route_client-reference-manifest.js +1 -1
  34. package/_standalone/__next/server/app/api/acp/session/route_client-reference-manifest.js +1 -1
  35. package/_standalone/__next/server/app/api/agent-activity/route_client-reference-manifest.js +1 -1
  36. package/_standalone/__next/server/app/api/agents/copy-skill/route_client-reference-manifest.js +1 -1
  37. package/_standalone/__next/server/app/api/agents/custom/detect/route_client-reference-manifest.js +1 -1
  38. package/_standalone/__next/server/app/api/agents/custom/route_client-reference-manifest.js +1 -1
  39. package/_standalone/__next/server/app/api/ask/route.js +2 -2
  40. package/_standalone/__next/server/app/api/ask/route_client-reference-manifest.js +1 -1
  41. package/_standalone/__next/server/app/api/ask-sessions/route_client-reference-manifest.js +1 -1
  42. package/_standalone/__next/server/app/api/auth/route_client-reference-manifest.js +1 -1
  43. package/_standalone/__next/server/app/api/backlinks/route_client-reference-manifest.js +1 -1
  44. package/_standalone/__next/server/app/api/bootstrap/route_client-reference-manifest.js +1 -1
  45. package/_standalone/__next/server/app/api/changes/route_client-reference-manifest.js +1 -1
  46. package/_standalone/__next/server/app/api/channels/verify/route_client-reference-manifest.js +1 -1
  47. package/_standalone/__next/server/app/api/connect/route_client-reference-manifest.js +1 -1
  48. package/_standalone/__next/server/app/api/embedding/route_client-reference-manifest.js +1 -1
  49. package/_standalone/__next/server/app/api/export/route_client-reference-manifest.js +1 -1
  50. package/_standalone/__next/server/app/api/extract-docx/route_client-reference-manifest.js +1 -1
  51. package/_standalone/__next/server/app/api/extract-pdf/route_client-reference-manifest.js +1 -1
  52. package/_standalone/__next/server/app/api/file/import/route_client-reference-manifest.js +1 -1
  53. package/_standalone/__next/server/app/api/file/raw/route_client-reference-manifest.js +1 -1
  54. package/_standalone/__next/server/app/api/file/route_client-reference-manifest.js +1 -1
  55. package/_standalone/__next/server/app/api/files/route_client-reference-manifest.js +1 -1
  56. package/_standalone/__next/server/app/api/git/route_client-reference-manifest.js +1 -1
  57. package/_standalone/__next/server/app/api/graph/route_client-reference-manifest.js +1 -1
  58. package/_standalone/__next/server/app/api/health/route_client-reference-manifest.js +1 -1
  59. package/_standalone/__next/server/app/api/im/activity/route_client-reference-manifest.js +1 -1
  60. package/_standalone/__next/server/app/api/im/config/route_client-reference-manifest.js +1 -1
  61. package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route_client-reference-manifest.js +1 -1
  62. package/_standalone/__next/server/app/api/im/feishu/long-connection/route_client-reference-manifest.js +1 -1
  63. package/_standalone/__next/server/app/api/im/status/route_client-reference-manifest.js +1 -1
  64. package/_standalone/__next/server/app/api/im/test/route_client-reference-manifest.js +1 -1
  65. package/_standalone/__next/server/app/api/im/webhook/feishu/route_client-reference-manifest.js +1 -1
  66. package/_standalone/__next/server/app/api/im/webhook-status/route_client-reference-manifest.js +1 -1
  67. package/_standalone/__next/server/app/api/inbox/clip/route_client-reference-manifest.js +1 -1
  68. package/_standalone/__next/server/app/api/inbox/route_client-reference-manifest.js +1 -1
  69. package/_standalone/__next/server/app/api/init/route_client-reference-manifest.js +1 -1
  70. package/_standalone/__next/server/app/api/lint/route_client-reference-manifest.js +1 -1
  71. package/_standalone/__next/server/app/api/mcp/agents/route_client-reference-manifest.js +1 -1
  72. package/_standalone/__next/server/app/api/mcp/direct-tools/route_client-reference-manifest.js +1 -1
  73. package/_standalone/__next/server/app/api/mcp/install/route_client-reference-manifest.js +1 -1
  74. package/_standalone/__next/server/app/api/mcp/install-skill/route_client-reference-manifest.js +1 -1
  75. package/_standalone/__next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -1
  76. package/_standalone/__next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
  77. package/_standalone/__next/server/app/api/mcp/tools/route_client-reference-manifest.js +1 -1
  78. package/_standalone/__next/server/app/api/mcp/uninstall/route_client-reference-manifest.js +1 -1
  79. package/_standalone/__next/server/app/api/monitoring/route_client-reference-manifest.js +1 -1
  80. package/_standalone/__next/server/app/api/obsidian/compat-report/route_client-reference-manifest.js +1 -1
  81. package/_standalone/__next/server/app/api/obsidian/import/route_client-reference-manifest.js +1 -1
  82. package/_standalone/__next/server/app/api/obsidian-plugins/settings/route_client-reference-manifest.js +1 -1
  83. package/_standalone/__next/server/app/api/recent-files/route_client-reference-manifest.js +1 -1
  84. package/_standalone/__next/server/app/api/restart/route_client-reference-manifest.js +1 -1
  85. package/_standalone/__next/server/app/api/search/prewarm/route_client-reference-manifest.js +1 -1
  86. package/_standalone/__next/server/app/api/search/route_client-reference-manifest.js +1 -1
  87. package/_standalone/__next/server/app/api/settings/list-models/route_client-reference-manifest.js +1 -1
  88. package/_standalone/__next/server/app/api/settings/reset-token/route_client-reference-manifest.js +1 -1
  89. package/_standalone/__next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  90. package/_standalone/__next/server/app/api/settings/test-key/route_client-reference-manifest.js +1 -1
  91. package/_standalone/__next/server/app/api/setup/check-path/route_client-reference-manifest.js +1 -1
  92. package/_standalone/__next/server/app/api/setup/check-port/route_client-reference-manifest.js +1 -1
  93. package/_standalone/__next/server/app/api/setup/generate-token/route_client-reference-manifest.js +1 -1
  94. package/_standalone/__next/server/app/api/setup/ls/route_client-reference-manifest.js +1 -1
  95. package/_standalone/__next/server/app/api/setup/route_client-reference-manifest.js +1 -1
  96. package/_standalone/__next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  97. package/_standalone/__next/server/app/api/space-overview/route_client-reference-manifest.js +1 -1
  98. package/_standalone/__next/server/app/api/sync/route_client-reference-manifest.js +1 -1
  99. package/_standalone/__next/server/app/api/tree-version/route_client-reference-manifest.js +1 -1
  100. package/_standalone/__next/server/app/api/uninstall/route_client-reference-manifest.js +1 -1
  101. package/_standalone/__next/server/app/api/update/route_client-reference-manifest.js +1 -1
  102. package/_standalone/__next/server/app/api/update-check/route_client-reference-manifest.js +1 -1
  103. package/_standalone/__next/server/app/api/update-status/route_client-reference-manifest.js +1 -1
  104. package/_standalone/__next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
  105. package/_standalone/__next/server/app/capture/history/page.js +1 -1
  106. package/_standalone/__next/server/app/capture/history/page.js.nft.json +1 -1
  107. package/_standalone/__next/server/app/capture/history/page_client-reference-manifest.js +1 -1
  108. package/_standalone/__next/server/app/capture/page.js +1 -1
  109. package/_standalone/__next/server/app/capture/page.js.nft.json +1 -1
  110. package/_standalone/__next/server/app/capture/page_client-reference-manifest.js +1 -1
  111. package/_standalone/__next/server/app/changelog/page.js +1 -1
  112. package/_standalone/__next/server/app/changelog/page.js.nft.json +1 -1
  113. package/_standalone/__next/server/app/changelog/page_client-reference-manifest.js +1 -1
  114. package/_standalone/__next/server/app/changes/page.js +1 -1
  115. package/_standalone/__next/server/app/changes/page.js.nft.json +1 -1
  116. package/_standalone/__next/server/app/changes/page_client-reference-manifest.js +1 -1
  117. package/_standalone/__next/server/app/echo/[segment]/page.js +4 -4
  118. package/_standalone/__next/server/app/echo/[segment]/page.js.nft.json +1 -1
  119. package/_standalone/__next/server/app/echo/[segment]/page_client-reference-manifest.js +1 -1
  120. package/_standalone/__next/server/app/echo/page.js +1 -1
  121. package/_standalone/__next/server/app/echo/page.js.nft.json +1 -1
  122. package/_standalone/__next/server/app/echo/page_client-reference-manifest.js +1 -1
  123. package/_standalone/__next/server/app/explore/page.js +3 -3
  124. package/_standalone/__next/server/app/explore/page.js.nft.json +1 -1
  125. package/_standalone/__next/server/app/explore/page_client-reference-manifest.js +1 -1
  126. package/_standalone/__next/server/app/help/page.js +2 -2
  127. package/_standalone/__next/server/app/help/page.js.nft.json +1 -1
  128. package/_standalone/__next/server/app/help/page_client-reference-manifest.js +1 -1
  129. package/_standalone/__next/server/app/inbox/history/page.js +1 -1
  130. package/_standalone/__next/server/app/inbox/history/page.js.nft.json +1 -1
  131. package/_standalone/__next/server/app/inbox/history/page_client-reference-manifest.js +1 -1
  132. package/_standalone/__next/server/app/login/page.js +1 -1
  133. package/_standalone/__next/server/app/login/page.js.nft.json +1 -1
  134. package/_standalone/__next/server/app/login/page_client-reference-manifest.js +1 -1
  135. package/_standalone/__next/server/app/page.js +1 -1
  136. package/_standalone/__next/server/app/page.js.nft.json +1 -1
  137. package/_standalone/__next/server/app/page_client-reference-manifest.js +1 -1
  138. package/_standalone/__next/server/app/settings/page.js +8 -3
  139. package/_standalone/__next/server/app/settings/page.js.nft.json +1 -1
  140. package/_standalone/__next/server/app/settings/page_client-reference-manifest.js +1 -1
  141. package/_standalone/__next/server/app/setup/page.js +1 -1
  142. package/_standalone/__next/server/app/setup/page.js.nft.json +1 -1
  143. package/_standalone/__next/server/app/setup/page_client-reference-manifest.js +1 -1
  144. package/_standalone/__next/server/app/todo/page.js +1 -1
  145. package/_standalone/__next/server/app/todo/page.js.nft.json +1 -1
  146. package/_standalone/__next/server/app/todo/page_client-reference-manifest.js +1 -1
  147. package/_standalone/__next/server/app/trash/page.js +2 -2
  148. package/_standalone/__next/server/app/trash/page.js.nft.json +1 -1
  149. package/_standalone/__next/server/app/trash/page_client-reference-manifest.js +1 -1
  150. package/_standalone/__next/server/app/view/[...path]/page.js +3 -3
  151. package/_standalone/__next/server/app/view/[...path]/page.js.nft.json +1 -1
  152. package/_standalone/__next/server/app/view/[...path]/page_client-reference-manifest.js +1 -1
  153. package/_standalone/__next/server/app/wiki/page.js +1 -1
  154. package/_standalone/__next/server/app/wiki/page.js.nft.json +1 -1
  155. package/_standalone/__next/server/app/wiki/page_client-reference-manifest.js +1 -1
  156. package/_standalone/__next/server/app-paths-manifest.json +24 -24
  157. package/_standalone/__next/server/chunks/103.js +1 -1
  158. package/_standalone/__next/server/chunks/1976.js +1 -1
  159. package/_standalone/__next/server/chunks/6602.js +43 -66
  160. package/_standalone/__next/server/chunks/6646.js +16 -0
  161. package/_standalone/__next/server/chunks/8461.js +7 -7
  162. package/_standalone/__next/server/chunks/9868.js +2 -0
  163. package/_standalone/__next/server/chunks/{3219.js → 9969.js} +4 -4
  164. package/_standalone/__next/server/middleware-build-manifest.js +1 -1
  165. package/_standalone/__next/server/middleware-react-loadable-manifest.js +1 -1
  166. package/_standalone/__next/server/pages/500.html +2 -2
  167. package/_standalone/__next/server/server-reference-manifest.js +1 -1
  168. package/_standalone/__next/server/server-reference-manifest.json +1 -1
  169. package/_standalone/__next/static/chunks/{1430-c4ffa328888515c1.js → 1104-0822d9349a412b9b.js} +7 -2
  170. package/_standalone/__next/static/chunks/1655.0a559759973b42e9.js +1 -0
  171. package/_standalone/__next/static/chunks/{2073-3f913ebb13702b7e.js → 2073-fadffc82a27afdc7.js} +2 -2
  172. package/{static-web/_next/static/chunks/9216.d3339c27169b21bf.js → _standalone/__next/static/chunks/2245.ef71edb24c5232c2.js} +1 -1
  173. package/_standalone/__next/static/chunks/2258-2d3b5aac6a1fa92a.js +53 -0
  174. package/{static-web/_next/static/chunks/4937-4101fcdadacf46e3.js → _standalone/__next/static/chunks/2409-244f9b90dceb0c04.js} +1 -1
  175. package/_standalone/__next/static/chunks/3279-b49c25a4f2964b16.js +1 -0
  176. package/_standalone/__next/static/chunks/3807-115388f118106ca8.js +1 -0
  177. package/_standalone/__next/static/chunks/3966.ea75f9c5490955de.js +1 -0
  178. package/_standalone/__next/static/chunks/4010.48b219cb22dfa5d8.js +10 -0
  179. package/_standalone/__next/static/chunks/5026-7fed7ca22272c18f.js +1 -0
  180. package/_standalone/__next/static/chunks/5152-87e6ed56dfd7d17d.js +1 -0
  181. package/_standalone/__next/static/chunks/577.5e448c99068f1323.js +1 -0
  182. package/_standalone/__next/static/chunks/5913.a0a734f87b13f81a.js +1 -0
  183. package/_standalone/__next/static/chunks/596.9cbaf6ba90cb204f.js +7 -0
  184. package/_standalone/__next/static/chunks/6223-3fb90852221bda56.js +1 -0
  185. package/_standalone/__next/static/chunks/6343.582d063078c45d73.js +6 -0
  186. package/_standalone/__next/static/chunks/8174-50048777dc2469c0.js +1 -0
  187. package/_standalone/__next/static/chunks/{5913.3cee388e26959b62.js → 8294.cc9f9ff2f8b219ed.js} +1 -1
  188. package/_standalone/__next/static/chunks/8626-7da79d9ab2504eed.js +1 -0
  189. package/_standalone/__next/static/chunks/{8732.9002f42201b06fe8.js → 8732.87554c78e8825fac.js} +4 -4
  190. package/_standalone/__next/static/chunks/8922-3babcd35e18e9e4f.js +1 -0
  191. package/_standalone/__next/static/chunks/9440-eee639175695be7d.js +33 -0
  192. package/_standalone/__next/static/chunks/9479-b48d19e3588823c1.js +34 -0
  193. package/_standalone/__next/static/chunks/{9602.4e99e3525e5f062c.js → 9602.218427fc7b3d6b11.js} +1 -1
  194. package/_standalone/__next/static/chunks/app/agents/[agentKey]/page-ef111ea0a3368752.js +1 -0
  195. package/_standalone/__next/static/chunks/app/agents/page-aacead0f47cedb0d.js +1 -0
  196. package/_standalone/__next/static/chunks/app/layout-ed608bbf9585e78f.js +99 -0
  197. package/_standalone/__next/static/chunks/app/page-d22928276c36528c.js +1 -0
  198. package/_standalone/__next/static/chunks/app/settings/{page-c9f44b3447a41431.js → page-045afd8c0908f923.js} +1 -1
  199. package/{static-web/_next/static/chunks/app/setup/page-f5de08d0d588c778.js → _standalone/__next/static/chunks/app/setup/page-034a608f19d04653.js} +1 -1
  200. package/_standalone/__next/static/chunks/app/trash/page-251aaf5aac9d5a0b.js +1 -0
  201. package/_standalone/__next/static/chunks/app/view/[...path]/page-7e17c3d13fe2e275.js +12 -0
  202. package/_standalone/__next/static/chunks/webpack-1decda0633a8a874.js +1 -0
  203. package/_standalone/__next/static/css/5f000212c8b2e09a.css +1 -0
  204. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  205. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  206. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  207. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  208. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  209. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  210. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  211. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  212. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  213. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  214. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  215. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  216. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  217. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  218. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  219. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  220. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  221. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  222. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  223. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  224. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  225. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  226. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  227. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  228. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  229. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  230. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  231. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  232. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  233. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  234. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  235. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  236. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  237. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  238. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  239. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  240. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  241. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  242. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  243. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  244. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/index.js +14 -0
  245. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
  246. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/package.json +61 -0
  247. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  248. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  249. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  250. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  251. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  252. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  253. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  254. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  255. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  256. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  257. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  258. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  259. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  260. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  261. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  262. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  263. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  264. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  265. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  266. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  267. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  268. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  269. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  270. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  271. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  272. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  273. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  274. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  275. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  276. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  277. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  278. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  279. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  280. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  281. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  282. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  283. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  284. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  285. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  286. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  287. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  288. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  289. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  290. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  291. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  292. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  293. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  294. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  295. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  296. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  297. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  298. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  299. package/_standalone/__node_modules/bignumber.js/doc/API.html +2249 -0
  300. package/_standalone/__node_modules/entities/LICENSE +11 -0
  301. package/_standalone/__node_modules/entities/dist/decode-codepoint.js +46 -0
  302. package/_standalone/__node_modules/entities/dist/decode.js +544 -0
  303. package/_standalone/__node_modules/entities/dist/encode.js +90 -0
  304. package/_standalone/__node_modules/entities/dist/escape.js +132 -0
  305. package/_standalone/__node_modules/entities/dist/generated/decode-data-html.js +5 -0
  306. package/_standalone/__node_modules/entities/dist/generated/decode-data-xml.js +5 -0
  307. package/_standalone/__node_modules/entities/dist/generated/encode-html.js +12 -0
  308. package/_standalone/__node_modules/entities/dist/index.js +91 -0
  309. package/_standalone/__node_modules/entities/dist/internal/bin-trie-flags.js +18 -0
  310. package/_standalone/__node_modules/entities/dist/internal/decode-shared.js +17 -0
  311. package/_standalone/__node_modules/entities/dist/internal/encode-shared.js +93 -0
  312. package/_standalone/__node_modules/entities/package.json +83 -0
  313. package/_standalone/__node_modules/entities/src/decode-codepoint.ts +50 -0
  314. package/_standalone/__node_modules/entities/src/decode.ts +671 -0
  315. package/_standalone/__node_modules/entities/src/encode.ts +95 -0
  316. package/_standalone/__node_modules/entities/src/escape.ts +160 -0
  317. package/_standalone/__node_modules/entities/src/generated/decode-data-html.ts +7 -0
  318. package/_standalone/__node_modules/entities/src/generated/decode-data-xml.ts +7 -0
  319. package/_standalone/__node_modules/entities/src/generated/encode-html.ts +18 -0
  320. package/_standalone/__node_modules/entities/src/index.ts +162 -0
  321. package/_standalone/__node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
  322. package/_standalone/__node_modules/entities/src/internal/decode-shared.ts +18 -0
  323. package/_standalone/__node_modules/entities/src/internal/encode-shared.ts +123 -0
  324. package/_standalone/__node_modules/has-flag/index.js +8 -0
  325. package/_standalone/__node_modules/has-flag/license +9 -0
  326. package/_standalone/__node_modules/has-flag/package.json +46 -0
  327. package/_standalone/__node_modules/koffi/doc/benchmarks.md +126 -0
  328. package/_standalone/__node_modules/koffi/doc/callbacks.md +210 -0
  329. package/_standalone/__node_modules/koffi/doc/contribute.md +148 -0
  330. package/_standalone/__node_modules/koffi/doc/functions.md +250 -0
  331. package/_standalone/__node_modules/koffi/doc/index.md +61 -0
  332. package/_standalone/__node_modules/koffi/doc/input.md +471 -0
  333. package/_standalone/__node_modules/koffi/doc/migration.md +159 -0
  334. package/_standalone/__node_modules/koffi/doc/misc.md +180 -0
  335. package/_standalone/__node_modules/koffi/doc/output.md +305 -0
  336. package/_standalone/__node_modules/koffi/doc/packaging.md +88 -0
  337. package/_standalone/__node_modules/koffi/doc/platforms.md +36 -0
  338. package/_standalone/__node_modules/koffi/doc/pointers.md +328 -0
  339. package/_standalone/__node_modules/koffi/doc/start.md +118 -0
  340. package/_standalone/__node_modules/koffi/doc/unions.md +186 -0
  341. package/_standalone/__node_modules/koffi/doc/variables.md +102 -0
  342. package/_standalone/__node_modules/supports-color/browser.js +5 -0
  343. package/_standalone/__node_modules/supports-color/index.js +135 -0
  344. package/_standalone/__node_modules/supports-color/license +9 -0
  345. package/_standalone/__node_modules/supports-color/package.json +53 -0
  346. package/_standalone/__node_modules/yaml/browser/dist/doc/Document.js +335 -0
  347. package/_standalone/__node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  348. package/_standalone/__node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  349. package/_standalone/__node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  350. package/_standalone/__node_modules/yaml/browser/dist/doc/directives.js +176 -0
  351. package/_standalone/__node_modules/yaml/dist/doc/Document.js +337 -0
  352. package/_standalone/__node_modules/yaml/dist/doc/anchors.js +76 -0
  353. package/_standalone/__node_modules/yaml/dist/doc/applyReviver.js +57 -0
  354. package/_standalone/__node_modules/yaml/dist/doc/createNode.js +90 -0
  355. package/_standalone/__node_modules/yaml/dist/doc/directives.js +178 -0
  356. package/_standalone/public/agent-icons/claude.svg +1 -0
  357. package/_standalone/public/agent-icons/cursor.svg +1 -0
  358. package/_standalone/public/agent-icons/github-copilot.svg +1 -0
  359. package/_standalone/public/agent-icons/google.svg +1 -0
  360. package/_standalone/public/agent-icons/openai.svg +1 -0
  361. package/_standalone/public/agent-icons/windsurf.svg +1 -0
  362. package/bin/lib/stop.js +45 -0
  363. package/bin/lib/sync.js +32 -19
  364. package/dist/server/handlers/file.js +5 -2
  365. package/dist/server/handlers/file.js.map +1 -1
  366. package/dist/server/handlers/mcp-restart.d.ts +2 -0
  367. package/dist/server/handlers/mcp-restart.d.ts.map +1 -1
  368. package/dist/server/handlers/mcp-restart.js +45 -2
  369. package/dist/server/handlers/mcp-restart.js.map +1 -1
  370. package/dist/server/handlers/skills.d.ts.map +1 -1
  371. package/dist/server/handlers/skills.js +17 -3
  372. package/dist/server/handlers/skills.js.map +1 -1
  373. package/dist/server/handlers/sync.d.ts.map +1 -1
  374. package/dist/server/handlers/sync.js +28 -10
  375. package/dist/server/handlers/sync.js.map +1 -1
  376. package/dist/server/index.d.ts +1 -1
  377. package/dist/server/index.d.ts.map +1 -1
  378. package/dist/server/index.js +1 -1
  379. package/dist/server/index.js.map +1 -1
  380. package/dist/server/runtime.d.ts.map +1 -1
  381. package/dist/server/runtime.js +20 -21
  382. package/dist/server/runtime.js.map +1 -1
  383. package/package.json +1 -1
  384. package/runtime-manifest.json +1 -1
  385. package/scripts/build-bun-binary.mjs +139 -6
  386. package/scripts/prepare-standalone.mjs +0 -1
  387. package/scripts/prepare-static-web.mjs +52 -4
  388. package/scripts/release.sh +1 -1
  389. package/scripts/setup.js +115 -2
  390. package/scripts/verify-standalone.mjs +12 -0
  391. package/static-web/.mindos-build-version +1 -1
  392. package/static-web/_next/static/chunks/{1430-c4ffa328888515c1.js → 1104-0822d9349a412b9b.js} +7 -2
  393. package/static-web/_next/static/chunks/1655.0a559759973b42e9.js +1 -0
  394. package/static-web/_next/static/chunks/{2073-3f913ebb13702b7e.js → 2073-fadffc82a27afdc7.js} +2 -2
  395. package/{_standalone/__next/static/chunks/9216.d3339c27169b21bf.js → static-web/_next/static/chunks/2245.ef71edb24c5232c2.js} +1 -1
  396. package/static-web/_next/static/chunks/2258-2d3b5aac6a1fa92a.js +53 -0
  397. package/{_standalone/__next/static/chunks/4937-4101fcdadacf46e3.js → static-web/_next/static/chunks/2409-244f9b90dceb0c04.js} +1 -1
  398. package/static-web/_next/static/chunks/3279-b49c25a4f2964b16.js +1 -0
  399. package/static-web/_next/static/chunks/3807-115388f118106ca8.js +1 -0
  400. package/static-web/_next/static/chunks/3966.ea75f9c5490955de.js +1 -0
  401. package/static-web/_next/static/chunks/4010.48b219cb22dfa5d8.js +10 -0
  402. package/static-web/_next/static/chunks/5026-7fed7ca22272c18f.js +1 -0
  403. package/static-web/_next/static/chunks/5152-87e6ed56dfd7d17d.js +1 -0
  404. package/static-web/_next/static/chunks/577.5e448c99068f1323.js +1 -0
  405. package/static-web/_next/static/chunks/5913.a0a734f87b13f81a.js +1 -0
  406. package/static-web/_next/static/chunks/596.9cbaf6ba90cb204f.js +7 -0
  407. package/static-web/_next/static/chunks/6223-3fb90852221bda56.js +1 -0
  408. package/static-web/_next/static/chunks/6343.582d063078c45d73.js +6 -0
  409. package/static-web/_next/static/chunks/8174-50048777dc2469c0.js +1 -0
  410. package/static-web/_next/static/chunks/{5913.3cee388e26959b62.js → 8294.cc9f9ff2f8b219ed.js} +1 -1
  411. package/static-web/_next/static/chunks/8626-7da79d9ab2504eed.js +1 -0
  412. package/static-web/_next/static/chunks/{8732.9002f42201b06fe8.js → 8732.87554c78e8825fac.js} +4 -4
  413. package/static-web/_next/static/chunks/8922-3babcd35e18e9e4f.js +1 -0
  414. package/static-web/_next/static/chunks/9440-eee639175695be7d.js +33 -0
  415. package/static-web/_next/static/chunks/9479-b48d19e3588823c1.js +34 -0
  416. package/static-web/_next/static/chunks/{9602.4e99e3525e5f062c.js → 9602.218427fc7b3d6b11.js} +1 -1
  417. package/static-web/_next/static/chunks/app/agents/[agentKey]/page-ef111ea0a3368752.js +1 -0
  418. package/static-web/_next/static/chunks/app/agents/page-aacead0f47cedb0d.js +1 -0
  419. package/static-web/_next/static/chunks/app/layout-ed608bbf9585e78f.js +99 -0
  420. package/static-web/_next/static/chunks/app/page-d22928276c36528c.js +1 -0
  421. package/static-web/_next/static/chunks/app/settings/{page-c9f44b3447a41431.js → page-045afd8c0908f923.js} +1 -1
  422. package/{_standalone/__next/static/chunks/app/setup/page-f5de08d0d588c778.js → static-web/_next/static/chunks/app/setup/page-034a608f19d04653.js} +1 -1
  423. package/static-web/_next/static/chunks/app/trash/page-251aaf5aac9d5a0b.js +1 -0
  424. package/static-web/_next/static/chunks/app/view/[...path]/page-7e17c3d13fe2e275.js +12 -0
  425. package/static-web/_next/static/chunks/webpack-1decda0633a8a874.js +1 -0
  426. package/static-web/_next/static/css/5f000212c8b2e09a.css +1 -0
  427. package/static-web/agent-icons/claude.svg +1 -0
  428. package/static-web/agent-icons/cursor.svg +1 -0
  429. package/static-web/agent-icons/github-copilot.svg +1 -0
  430. package/static-web/agent-icons/google.svg +1 -0
  431. package/static-web/agent-icons/openai.svg +1 -0
  432. package/static-web/agent-icons/windsurf.svg +1 -0
  433. package/static-web/help/index.html +5 -20
  434. package/static-web/index.html +8 -22
  435. package/static-web/setup/index.html +5 -20
  436. package/static-web/static-web-manifest.json +1 -1
  437. package/static-web/wiki/index.html +5 -20
  438. package/_standalone/__next/server/chunks/2037.js +0 -2
  439. package/_standalone/__next/server/chunks/9350.js +0 -11
  440. package/_standalone/__next/static/chunks/2288-4dcb8ad3ccbd651e.js +0 -1
  441. package/_standalone/__next/static/chunks/2461-a1073a0bd04c228a.js +0 -33
  442. package/_standalone/__next/static/chunks/3424-060f01a8983e438d.js +0 -1
  443. package/_standalone/__next/static/chunks/4172-4fc551f07f7d082f.js +0 -1
  444. package/_standalone/__next/static/chunks/4454-f582e17b76ccf1d1.js +0 -1
  445. package/_standalone/__next/static/chunks/47-41e1a06e6d389b69.js +0 -48
  446. package/_standalone/__next/static/chunks/5152-2db55438be7ecb94.js +0 -1
  447. package/_standalone/__next/static/chunks/5200-6c82e5ce54a95b4b.js +0 -6
  448. package/_standalone/__next/static/chunks/6274-f173cb227ad1ef21.js +0 -1
  449. package/_standalone/__next/static/chunks/6947.7e50e18da7dc4aef.js +0 -1
  450. package/_standalone/__next/static/chunks/725-3b648bf7929ff78d.js +0 -1
  451. package/_standalone/__next/static/chunks/9479-7b304601a56304cd.js +0 -32
  452. package/_standalone/__next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js +0 -1
  453. package/_standalone/__next/static/chunks/app/agents/page-6591b482a193e657.js +0 -1
  454. package/_standalone/__next/static/chunks/app/layout-5966cd317bbed698.js +0 -114
  455. package/_standalone/__next/static/chunks/app/page-5c9489e28657376e.js +0 -1
  456. package/_standalone/__next/static/chunks/app/trash/page-d87207a63591ee16.js +0 -1
  457. package/_standalone/__next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +0 -12
  458. package/_standalone/__next/static/chunks/webpack-75abef9cbb1ea912.js +0 -1
  459. package/_standalone/__next/static/css/0d2fd378b5449176.css +0 -1
  460. package/static-web/_next/static/chunks/2288-4dcb8ad3ccbd651e.js +0 -1
  461. package/static-web/_next/static/chunks/2461-a1073a0bd04c228a.js +0 -33
  462. package/static-web/_next/static/chunks/3424-060f01a8983e438d.js +0 -1
  463. package/static-web/_next/static/chunks/4172-4fc551f07f7d082f.js +0 -1
  464. package/static-web/_next/static/chunks/4454-f582e17b76ccf1d1.js +0 -1
  465. package/static-web/_next/static/chunks/47-41e1a06e6d389b69.js +0 -48
  466. package/static-web/_next/static/chunks/5152-2db55438be7ecb94.js +0 -1
  467. package/static-web/_next/static/chunks/5200-6c82e5ce54a95b4b.js +0 -6
  468. package/static-web/_next/static/chunks/6274-f173cb227ad1ef21.js +0 -1
  469. package/static-web/_next/static/chunks/6947.7e50e18da7dc4aef.js +0 -1
  470. package/static-web/_next/static/chunks/725-3b648bf7929ff78d.js +0 -1
  471. package/static-web/_next/static/chunks/9479-7b304601a56304cd.js +0 -32
  472. package/static-web/_next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js +0 -1
  473. package/static-web/_next/static/chunks/app/agents/page-6591b482a193e657.js +0 -1
  474. package/static-web/_next/static/chunks/app/layout-5966cd317bbed698.js +0 -114
  475. package/static-web/_next/static/chunks/app/page-5c9489e28657376e.js +0 -1
  476. package/static-web/_next/static/chunks/app/trash/page-d87207a63591ee16.js +0 -1
  477. package/static-web/_next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +0 -12
  478. package/static-web/_next/static/chunks/webpack-75abef9cbb1ea912.js +0 -1
  479. package/static-web/_next/static/css/0d2fd378b5449176.css +0 -1
  480. /package/_standalone/__next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_buildManifest.js +0 -0
  481. /package/_standalone/__next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_ssgManifest.js +0 -0
  482. /package/static-web/_next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_buildManifest.js +0 -0
  483. /package/static-web/_next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_ssgManifest.js +0 -0
@@ -1,33 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2461],{3824:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(66839),r=n(44223),a=n(53454),i=n(76723),o=n(72615);function l(e){return"options"in e}function c({value:e,onChange:t,options:n,className:c="",size:d="md",placeholder:u}){let[m,p]=(0,r.useState)(!1),[f,h]=(0,r.useState)(-1),[x,g]=(0,r.useState)(null),v=(0,r.useRef)(null),b=(0,r.useRef)(null),y=(0,r.useMemo)(()=>(function(e){let t=[];for(let n of e)l(n)?t.push(...n.options):t.push(n);return t})(n),[n]),j=(0,r.useMemo)(()=>y.find(t=>t.value===e)??null,[y,e]),w=(0,r.useCallback)(()=>{p(!1),h(-1)},[]),N=(0,r.useCallback)(e=>{t(e),w()},[t,w]);(0,r.useEffect)(()=>{if(!m)return;let e=e=>{v.current&&!v.current.contains(e.target)&&b.current&&!b.current.contains(e.target)&&w()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[m,w]),(0,r.useEffect)(()=>{if(!m)return;let e=e=>{switch(e.key){case"Escape":e.preventDefault(),w(),v.current?.focus();break;case"ArrowDown":e.preventDefault(),h(e=>Math.min(e+1,y.length-1));break;case"ArrowUp":e.preventDefault(),h(e=>Math.max(e-1,0));break;case"Enter":e.preventDefault(),f>=0&&f<y.length&&(N(y[f].value),v.current?.focus())}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[m,w,f,y,N]),(0,r.useEffect)(()=>{if(!m||!b.current||f<0)return;let e=b.current.querySelector(`[data-idx="${f}"]`);e&&e.scrollIntoView({block:"nearest"})},[m,f]);let k=(0,r.useCallback)(()=>{if(!v.current)return;let e=v.current.getBoundingClientRect(),t="sm"===d?200:260,n=window.innerHeight-e.bottom,s=e.top;g({top:n<t+8&&s>n?e.top:e.bottom,left:e.left,width:e.width,flipUp:n<t+8&&s>n})},[d]);(0,r.useEffect)(()=>{if(!m)return void g(null);let t=y.findIndex(t=>t.value===e);return h(t>=0?t:0),k(),window.addEventListener("scroll",k,!0),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k,!0),window.removeEventListener("resize",k)}},[m,y,e,k]);let S="sm"===d,T=S?`inline-flex items-center gap-1 appearance-none rounded-md border border-border bg-background text-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring transition-colors text-2xs px-1.5 py-0.5 pr-5 ${c}`:`w-full flex items-center gap-2 appearance-none rounded-lg border border-border bg-background text-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring transition-colors text-sm px-3 py-2 pr-8 ${c}`,C=S?"w-full flex items-center gap-1.5 px-2 py-1 text-2xs text-left transition-colors cursor-pointer":"w-full flex items-center gap-2 px-3 py-1.5 text-sm text-left transition-colors cursor-pointer",A=-1;function E(t){let n=++A,r=t.value===e,a=n===f;return(0,s.jsxs)("button",{type:"button",role:"option","aria-selected":r,"data-idx":n,onClick:()=>N(t.value),onMouseEnter:()=>h(n),className:`${C} ${a?"bg-muted text-foreground":"text-foreground"}`,children:[t.icon,(0,s.jsx)("span",{className:"flex-1 truncate",children:t.label}),t.suffix,r&&(0,s.jsx)(i.A,{size:S?10:12,className:"shrink-0 text-[var(--amber)]"})]},t.value)}let R=m&&x&&(0,a.createPortal)((0,s.jsx)("div",{ref:b,className:S?"fixed z-50 overflow-y-auto rounded-md border border-border bg-card shadow-lg py-0.5":"fixed z-50 overflow-y-auto rounded-lg border border-border bg-card shadow-lg py-1",role:"listbox",style:{left:x.left,minWidth:x.width,maxHeight:S?200:260,...x.flipUp?{bottom:window.innerHeight-x.top+4}:{top:x.top+4}},children:n.map((e,t)=>l(e)?(0,s.jsxs)("div",{children:[t>0&&(0,s.jsx)("div",{className:"my-0.5 border-t border-border/50"}),(0,s.jsx)("div",{className:`py-1 text-2xs font-medium text-muted-foreground uppercase tracking-wider ${S?"px-2":"px-3"}`,children:e.label}),e.options.map(E)]},e.label):E(e))}),document.body);return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("button",{ref:v,type:"button",onClick:()=>p(e=>!e),"aria-haspopup":"listbox","aria-expanded":m,className:T,children:[j?.icon,(0,s.jsx)("span",{className:"flex-1 truncate text-left",children:j?.label??u??"—"}),j?.suffix,(0,s.jsx)(o.A,{size:S?12:14,className:`${S?"absolute right-1 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none":"absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none"} transition-transform duration-150 ${m?"rotate-180":""}`})]}),R]})}},6379:(e,t,n)=>{n.d(t,{Ay:()=>en,Fo:()=>O,gL:()=>P});var s=n(66839),r=n(44223),a=n(56261),i=n(62329),o=n(58221),l=n(18659),c=n(30401),d=n(44361),u=n(72615),m=n(95991),p=n(14987),f=n(27636),h=n(61017),x=n(52954),g=n(82417),v=n(24336),b=n(2408),y=n(31606),j=n(65799);let w=(0,j.createServerReference)("60370ba03dc83c1e902aff5b9a25205c5b6b843ea5",j.callServer,void 0,j.findSourceMapURL,"createFileAction"),N=(0,j.createServerReference)("60a7147e8a589aa8fcd0602636bbfc11893a44886d",j.callServer,void 0,j.findSourceMapURL,"renameSpaceAction");var k=n(12655);let S=(0,j.createServerReference)("40dde1921e0bb2f8e4a43d2e77a41225230de413db",j.callServer,void 0,j.findSourceMapURL,"deleteSpaceAction"),T=(0,j.createServerReference)("40d3b59414a5e0520ddec1039741e96386c7445f78",j.callServer,void 0,j.findSourceMapURL,"deleteFolderAction");var C=n(36636),A=n(51326),E=n(79455),R=n(2073),z=n(84734),L=n(27069);let $="show-hidden-files";function D(e){let t=t=>{t.key===$&&e()},n=()=>e();return window.addEventListener("storage",t),window.addEventListener("mindos:hidden-files-changed",n),()=>{window.removeEventListener("storage",t),window.removeEventListener("mindos:hidden-files-changed",n)}}function F(){return"true"===localStorage.getItem($)}function O(e){localStorage.setItem($,String(e)),window.dispatchEvent(new Event("mindos:hidden-files-changed"))}function P(){return(0,r.useSyncExternalStore)(D,F,()=>!1)}var I=n(73601),M=n(85764),U=n(10952);let W=(0,j.createServerReference)("40d306efe4cd5d739ab6ba5ae5d669fee638371e69",j.callServer,void 0,j.findSourceMapURL,"convertToSpaceAction");var H=n(62800);async function J(e){try{await navigator.clipboard.writeText(e)}catch{}}let B="w-full flex items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-muted transition-colors text-left",_="w-full flex items-center gap-2 px-3 py-2 text-sm text-error hover:bg-error/10 transition-colors text-left",Y="my-1 border-t border-border/50";function G({x:e,y:t,onClose:n,menuHeight:a,children:i}){let o=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&n()},t=e=>{"Escape"===e.key&&n()};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[n]);let l=Math.min(t,window.innerHeight-(a??160)),c=Math.min(e,window.innerWidth-200);return(0,s.jsx)("div",{ref:o,className:"fixed z-50 min-w-[180px] bg-card border border-border rounded-lg shadow-lg py-1",style:{top:l,left:c},children:i})}function K({x:e,y:t,node:n,onClose:r,onRename:i,onNewFile:l,onImport:c,onDelete:d}){let u=(0,a.useRouter)(),{t:m}=(0,R.Y)(),{isPinned:p,togglePin:f}=(0,L.Z)(),h=p(n.path);return(0,s.jsxs)(G,{x:e,y:t,onClose:r,children:[(0,s.jsxs)("button",{className:B,onClick:()=>{l(),r()},children:[(0,s.jsx)(I.A,{size:14,className:"shrink-0"})," ",m.fileTree.newFile]}),(0,s.jsxs)("button",{className:B,onClick:()=>{u.push(`/view/${(0,o.O0)(`${n.path}/INSTRUCTION.md`)}`),r()},children:[(0,s.jsx)(M.A,{size:14,className:"shrink-0"})," ",m.fileTree.viewRules]}),c&&(0,s.jsxs)("button",{className:B,onClick:()=>{c(n.path),r()},children:[(0,s.jsx)(U.A,{size:14,className:"shrink-0"})," ",m.fileTree.importFile]}),(0,s.jsx)("div",{className:Y}),(0,s.jsxs)("button",{className:B,onClick:()=>{f(n.path),r()},children:[(0,s.jsx)(g.A,{size:14,className:`shrink-0 ${h?"fill-[var(--amber)] text-[var(--amber)]":""}`}),h?m.fileTree.removeFromFavorites:m.fileTree.pinToFavorites]}),(0,s.jsxs)("button",{className:B,onClick:()=>{J(n.path),r()},children:[(0,s.jsx)(v.A,{size:14,className:"shrink-0"})," ",m.fileTree.copyPath]}),(0,s.jsxs)("button",{className:B,onClick:()=>{i(),r()},children:[(0,s.jsx)(b.A,{size:14,className:"shrink-0"})," ",m.fileTree.renameSpace]}),(0,s.jsx)("div",{className:Y}),(0,s.jsxs)("button",{className:_,onClick:()=>{r(),d()},children:[(0,s.jsx)(y.A,{size:14,className:"shrink-0"}),m.fileTree.deleteSpace]})]})}function V({x:e,y:t,node:n,onClose:i,onRename:o,onNewFile:l,onDelete:c}){let d=(0,a.useRouter)(),{t:u}=(0,R.Y)(),[m,f]=(0,r.useTransition)(),{isPinned:h,togglePin:x}=(0,L.Z)(),j=h(n.path);return(0,s.jsxs)(G,{x:e,y:t,onClose:i,menuHeight:220,children:[(0,s.jsxs)("button",{className:B,onClick:()=>{l(),i()},children:[(0,s.jsx)(I.A,{size:14,className:"shrink-0"})," ",u.fileTree.newFile]}),(0,s.jsx)("div",{className:Y}),(0,s.jsxs)("button",{className:B,onClick:()=>{x(n.path),i()},children:[(0,s.jsx)(g.A,{size:14,className:`shrink-0 ${j?"fill-[var(--amber)] text-[var(--amber)]":""}`}),j?u.fileTree.removeFromFavorites:u.fileTree.pinToFavorites]}),(0,s.jsxs)("button",{className:B,disabled:m,onClick:()=>{f(async()=>{if((await W(n.path)).success){d.refresh(),window.dispatchEvent(new Event("mindos:files-changed"));let e=n.name.replace(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}\s]+/u,"")||n.name;(0,H.wD)().then(t=>{t&&(0,H.Vz)(e,n.path)})}i()})},children:[(0,s.jsx)(p.A,{size:14,className:"shrink-0 text-[var(--amber)]"})," ",u.fileTree.convertToSpace]}),(0,s.jsxs)("button",{className:B,onClick:()=>{J(n.path),i()},children:[(0,s.jsx)(v.A,{size:14,className:"shrink-0"})," ",u.fileTree.copyPath]}),(0,s.jsxs)("button",{className:B,onClick:()=>{o(),i()},children:[(0,s.jsx)(b.A,{size:14,className:"shrink-0"})," ",u.fileTree.rename]}),(0,s.jsx)("div",{className:Y}),(0,s.jsxs)("button",{className:_,onClick:()=>{i(),c()},children:[(0,s.jsx)(y.A,{size:14,className:"shrink-0"}),u.fileTree.deleteFolder]})]})}var Z=n(72466);function q(){window.dispatchEvent(new Event("mindos:files-changed"))}async function Q(e){try{await navigator.clipboard.writeText(e)}catch{}}function X({dirPath:e,depth:t,onDone:n}){let[i,l]=(0,r.useState)(""),[c,u]=(0,r.useTransition)(),[m,p]=(0,r.useState)(""),f=(0,a.useRouter)(),{t:h}=(0,R.Y)(),x=(0,r.useRef)(null),g=(0,r.useCallback)(()=>{let t=i.trim();t?u(async()=>{let s=await w(e,t);s.success&&s.filePath?(n(),f.push(`/view/${(0,o.O0)(s.filePath)}`),f.refresh(),q()):p(s.error||h.fileTree.failed)}):p(h.fileTree.enterFileName)},[i,e,n,f,h]);return(0,r.useEffect)(()=>{let e=e=>{x.current&&!x.current.contains(e.target)&&n()},t=setTimeout(()=>document.addEventListener("mousedown",e),0);return()=>{clearTimeout(t),document.removeEventListener("mousedown",e)}},[n]),(0,s.jsxs)("div",{ref:x,className:"px-2 pb-1",style:{paddingLeft:`${12*t+20}px`},children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)("input",{autoFocus:!0,type:"text",value:i,onChange:e=>{l(e.target.value),p("")},onKeyDown:e=>{"Enter"===e.key&&g(),"Escape"===e.key&&n()},placeholder:"filename.md",className:" flex-1 bg-muted border border-border rounded px-2 py-1 text-xs text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring "}),c?(0,s.jsx)(d.A,{size:13,className:"text-muted-foreground animate-spin shrink-0"}):(0,s.jsx)("button",{onClick:g,className:"text-xs text-[var(--amber)] hover:text-foreground shrink-0 px-1",children:h.fileTree.create})]}),m&&(0,s.jsx)("p",{className:"text-xs text-error mt-0.5 px-1",children:m})]})}let ee=(0,r.memo)(function({node:e,depth:t,currentPath:n,onNavigate:l,maxOpenDepth:c,onImport:g}){let v=(0,a.useRouter)(),b=n.startsWith(e.path+"/")||n===e.path,y=!!e.isSpace,[j,w]=(0,r.useState)(0===t||b),[A,L]=(0,r.useState)(0===t||b),[$,D]=(0,r.useState)(!1),[F,O]=(0,r.useState)(!1),[P,I]=(0,r.useState)(e.name),[M,U]=(0,r.useTransition)(),W=(0,r.useRef)(null),H=(0,r.useRef)(null),[J,B]=(0,r.useState)(null),{t:_}=(0,R.Y)(),[Y,G]=(0,r.useState)(null),[Q,ee]=(0,r.useTransition)(),{isDragTarget:et,handleRowDragOver:es,handleRowDragEnter:er,handleRowDragLeave:ea,handleRowDrop:ei}=function(e,t,n,s){let[a,i]=(0,r.useState)(!1),o=(0,r.useRef)(null),l=(0,r.useRef)(null),c=(0,r.useCallback)(()=>{o.current&&(clearTimeout(o.current),o.current=null)},[]),d=(0,r.useCallback)(e=>{e.dataTransfer.types.includes("Files")&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="copy",l.current&&(clearTimeout(l.current),l.current=null),a||i(!0))},[a]),u=(0,r.useCallback)(e=>{e.dataTransfer.types.includes("Files")&&(e.preventDefault(),e.stopPropagation(),i(!0),c(),t||(o.current=setTimeout(()=>{n(!0),o.current=null},500)))},[t,c,n]),m=(0,r.useCallback)(e=>{e.dataTransfer.types.includes("Files")&&(e.stopPropagation(),l.current=setTimeout(()=>{i(!1),c(),l.current=null},50))},[c]),p=(0,r.useCallback)(t=>{t.preventDefault(),t.stopPropagation(),i(!1),c(),l.current&&(clearTimeout(l.current),l.current=null);let n=t.dataTransfer.files;n.length>0&&(0,Z.Nh)(Array.from(n),e.path,s)},[e.path,s,c]);return(0,r.useEffect)(()=>()=>{o.current&&clearTimeout(o.current),l.current&&clearTimeout(l.current)},[]),{isDragTarget:a,handleRowDragOver:d,handleRowDragEnter:u,handleRowDragLeave:m,handleRowDrop:p}}(e,j,(0,r.useCallback)(e=>{w(e),e&&L(!0)},[]),_),eo=(0,r.useCallback)(()=>{w(e=>(e||L(!0),!e))},[]),el=(0,r.useRef)(void 0);(0,r.useEffect)(()=>{if(null==c){el.current=c;return}if(el.current!==c){if(null===el.current||void 0===el.current)t>c?w(!1):L(!0);else{let e=t<=c;w(e),e&&L(!0)}el.current=c}},[c,t]),(0,r.useEffect)(()=>()=>{H.current&&clearTimeout(H.current)},[]);let ec=(0,r.useCallback)(t=>{t?.preventDefault(),t?.stopPropagation(),H.current&&(clearTimeout(H.current),H.current=null),I(e.name),O(!0),setTimeout(()=>W.current?.select(),0)},[e.name]),ed=(0,r.useCallback)(()=>{let t=P.trim();t&&t!==e.name?U(async()=>{let n=y?N:k.f,s=await n(e.path,t);s.success&&s.newPath?(O(!1),v.push(`/view/${(0,o.O0)(s.newPath)}`),v.refresh(),q()):O(!1)}):O(!1)},[P,e.name,e.path,v,y]),eu=(0,r.useCallback)(()=>{F||(H.current&&clearTimeout(H.current),H.current=setTimeout(()=>{v.push(`/view/${(0,o.O0)(e.path)}`),l?.(),H.current=null},180))},[F,v,e.path,l]);(0,r.useCallback)(e=>{e.stopPropagation(),eo()},[eo]);let em=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),B({x:e.clientX,y:e.clientY})},[]),ep=y?function e(t){return"file"===t.type?+!i.C.has(t.name):(t.children??[]).reduce((t,n)=>t+e(n),0)}(e):0;if(F)return(0,s.jsxs)("div",{className:"relative px-2 py-0.5",style:{paddingLeft:`${12*t+8}px`},children:[(0,s.jsx)("input",{ref:W,autoFocus:!0,value:P,onChange:e=>I(e.target.value),onKeyDown:e=>{"Enter"===e.key&&ed(),"Escape"===e.key&&O(!1)},onBlur:ed,className:"w-full bg-muted border border-border rounded px-2 py-0.5 text-xs text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"}),M&&(0,s.jsx)(d.A,{size:12,className:"absolute right-3 top-1/2 -translate-y-1/2 animate-spin text-muted-foreground"})]});let ef=y&&0===t;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:`relative group/dir flex items-center transition-colors duration-100 ${et?"bg-[var(--amber)]/10 rounded-md":""}`,onContextMenu:em,onDragEnter:er,onDragOver:es,onDragLeave:ea,onDrop:ei,children:[(0,s.jsx)("button",{onClick:eo,className:"shrink-0 p-1 rounded hover:bg-muted text-muted-foreground transition-colors",style:{marginLeft:`${12*t+4}px`},"aria-label":j?`Collapse ${e.name}`:`Expand ${e.name}`,"aria-expanded":j,children:(0,s.jsx)("span",{className:"block transition-transform duration-150",style:{transform:j?"rotate(0deg)":"rotate(-90deg)"},children:(0,s.jsx)(u.A,{size:10})})}),(0,s.jsxs)("button",{type:"button",onClick:eu,draggable:!0,onDragStart:t=>{t.dataTransfer.setData("text/mindos-path",e.path),t.dataTransfer.setData("text/mindos-type","directory"),t.dataTransfer.effectAllowed="copy"},className:`
2
- flex-1 flex items-center gap-1.5 px-1 py-1 rounded text-left min-w-0 pr-16
3
- text-sm transition-colors duration-100
4
- hover:bg-muted cursor-default
5
- ${b?"text-foreground":"text-muted-foreground hover:text-foreground"}
6
- `,children:[y?"Inbox"===e.name?(0,s.jsx)(m.A,{size:14,className:"shrink-0 text-[var(--amber)]"}):(0,s.jsx)(p.A,{size:14,className:"shrink-0 text-[var(--amber)]"}):j?(0,s.jsx)(f.A,{size:14,className:"text-yellow-400 shrink-0"}):(0,s.jsx)(h.A,{size:14,className:"text-yellow-400 shrink-0"}),(0,s.jsx)("span",{className:"truncate leading-5",suppressHydrationWarning:!0,children:e.name}),y&&!j&&(0,s.jsx)("span",{className:"ml-auto text-xs text-muted-foreground shrink-0 tabular-nums pr-1",children:ep})]}),(0,s.jsx)("div",{className:"absolute right-1 top-1/2 -translate-y-1/2 hidden group-hover/dir:flex items-center gap-0.5 z-10",children:(0,s.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation();let t=e.currentTarget.getBoundingClientRect();B({x:t.left,y:t.bottom+4})},className:"p-0.5 rounded text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",title:"More",children:(0,s.jsx)(x.A,{size:14})})})]}),(0,s.jsx)("div",{className:`grid transition-[grid-template-rows] duration-200 ease-out ${j?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:(0,s.jsxs)("div",{className:`overflow-hidden ${ef?"border-l-2 ml-[18px]":""}`,style:ef?{borderColor:"color-mix(in srgb, var(--amber) 30%, transparent)"}:void 0,...!j&&{inert:!0},children:[A&&e.children&&(0,s.jsx)(en,{nodes:e.children,depth:ef?1:t+1,onNavigate:l,maxOpenDepth:c,parentIsSpace:y,onImport:g}),$&&(0,s.jsx)(X,{dirPath:e.path,depth:ef?0:t,onDone:()=>D(!1)})]})}),J&&(y?(0,s.jsx)(K,{x:J.x,y:J.y,node:e,onClose:()=>B(null),onRename:()=>ec(),onNewFile:()=>{w(!0),L(!0),D(!0)},onImport:g,onDelete:()=>G("space")}):(0,s.jsx)(V,{x:J.x,y:J.y,node:e,onClose:()=>B(null),onRename:()=>ec(),onNewFile:()=>{w(!0),L(!0),D(!0)},onDelete:()=>G("folder")})),(0,s.jsx)(z.TM,{open:null!==Y,title:"space"===Y?_.fileTree.deleteSpace:_.fileTree.deleteFolder,message:"space"===Y?_.fileTree.confirmDeleteSpace(e.name):_.fileTree.confirmDeleteFolder(e.name),confirmLabel:"space"===Y?_.fileTree.deleteSpace:_.fileTree.deleteFolder,cancelLabel:_.view?.cancel??"Cancel",variant:"destructive",onCancel:()=>G(null),onConfirm:()=>{G(null),ee(async()=>{let t="space"===Y?await S(e.path):await T(e.path);if(t.success&&t.trashId){let n=t.trashId,s=e.path.split("/").pop()??e.path;E.oR.undo(`${_.trash?.movedToTrash??"Deleted"} ${s}`,async()=>{let e=await (0,C.Y)(n);e.success?(v.refresh(),q()):E.oR.error(e.error??"Undo failed")},{label:_.trash?.undo??"Undo"}),v.push("/"),v.refresh(),q()}})}})]})}),et=(0,r.memo)(function({node:e,depth:t,currentPath:n,onNavigate:u}){let m=(0,a.useRouter)(),p=n===e.path,[f,h]=(0,r.useState)(!1),[j,w]=(0,r.useState)(e.name),[N,S]=(0,r.useTransition)(),[,T]=(0,r.useTransition)(),$=(0,r.useRef)(null),{t:D}=(0,R.Y)(),{isPinned:F,togglePin:O}=(0,L.Z)(),P=F(e.path),I=!e.path.includes("/")&&i.A.has(e.name),[M,U]=(0,r.useState)(!1),[W,H]=(0,r.useState)(null),J=(0,r.useCallback)(()=>{f||(m.push(`/view/${(0,o.O0)(e.path)}`),u?.())},[m,e.path,u,f]),K=(0,r.useCallback)(t=>{t.stopPropagation(),w(e.name),h(!0),setTimeout(()=>$.current?.select(),0)},[e.name]),V=(0,r.useCallback)(()=>{let t=j.trim();t&&t!==e.name?S(async()=>{let n=await (0,k.f)(e.path,t);n.success&&n.newPath?(h(!1),m.push(`/view/${(0,o.O0)(n.newPath)}`),m.refresh(),q()):h(!1)}):h(!1)},[j,e.name,e.path,m]),Z=(0,r.useCallback)(e=>{e.stopPropagation(),U(!0)},[]),X=(0,r.useCallback)(t=>{t.dataTransfer.setData("text/mindos-path",e.path),t.dataTransfer.effectAllowed="copy"},[e.path]),ee=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),H({x:e.clientX,y:e.clientY})},[]);return f?(0,s.jsxs)("div",{className:"relative px-2 py-0.5",style:{paddingLeft:`${12*t+8}px`},children:[(0,s.jsx)("input",{ref:$,autoFocus:!0,value:j,onChange:e=>w(e.target.value),onKeyDown:e=>{"Enter"===e.key&&V(),"Escape"===e.key&&h(!1)},onBlur:V,className:"w-full bg-muted border border-border rounded px-2 py-0.5 text-xs text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"}),N&&(0,s.jsx)(d.A,{size:12,className:"absolute right-3 top-1/2 -translate-y-1/2 animate-spin text-muted-foreground"})]}):(0,s.jsxs)("div",{className:"relative group/file",children:[(0,s.jsxs)("button",{onClick:J,onContextMenu:ee,draggable:!0,onDragStart:X,"data-filepath":e.path,className:`
7
- w-full flex items-center gap-1.5 px-2 py-1 rounded text-left
8
- text-sm transition-colors duration-100 cursor-default pr-16
9
- ${p?"bg-accent text-foreground":"hover:bg-muted text-muted-foreground hover:text-foreground"}
10
- `,style:{paddingLeft:`${12*t+8}px`},children:["directory"===e.type?null:".csv"===e.extension?(0,s.jsx)(l.A,{size:14,className:"text-success shrink-0"}):(0,s.jsx)(c.A,{size:14,className:"text-muted-foreground shrink-0"}),(0,s.jsx)("span",{className:"truncate leading-5",suppressHydrationWarning:!0,children:e.name}),P&&(0,s.jsx)(g.A,{size:10,className:"shrink-0 fill-[var(--amber)] text-[var(--amber)] opacity-60"})]}),(0,s.jsx)("div",{className:"absolute right-1 top-1/2 -translate-y-1/2 hidden group-hover/file:flex items-center gap-0.5",children:(0,s.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation();let t=e.currentTarget.getBoundingClientRect();H({x:t.left,y:t.bottom+4})},className:"p-0.5 rounded text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",title:"More",children:(0,s.jsx)(x.A,{size:14})})}),W&&(0,s.jsxs)(G,{x:W.x,y:W.y,onClose:()=>H(null),menuHeight:140,children:[(0,s.jsxs)("button",{className:B,onClick:()=>{Q(e.path),H(null)},children:[(0,s.jsx)(v.A,{size:14,className:"shrink-0"})," ",D.fileTree.copyPath]}),(0,s.jsxs)("button",{className:B,onClick:()=>{O(e.path),H(null)},children:[(0,s.jsx)(g.A,{size:14,className:`shrink-0 ${P?"fill-[var(--amber)] text-[var(--amber)]":""}`}),P?D.fileTree.removeFromFavorites:D.fileTree.pinToFavorites]}),!I&&(0,s.jsxs)("button",{className:B,onClick:e=>{H(null),K(e)},children:[(0,s.jsx)(b.A,{size:14,className:"shrink-0"})," ",D.fileTree.rename]}),!I&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Y}),(0,s.jsxs)("button",{className:_,onClick:e=>{H(null),Z(e)},children:[(0,s.jsx)(y.A,{size:14,className:"shrink-0"})," ",D.fileTree.delete]})]})]}),(0,s.jsx)(z.TM,{open:M,title:D.fileTree.delete,message:D.fileTree.confirmDelete(e.name),confirmLabel:D.fileTree.delete,cancelLabel:D.view?.cancel??"Cancel",variant:"destructive",onCancel:()=>U(!1),onConfirm:()=>{U(!1),T(async()=>{let t=await (0,A.i)(e.path);if(t.success){if(t.trashId){let n=t.trashId,s=e.path.split("/").pop()??e.path;E.oR.undo(`${D.trash?.movedToTrash??"Deleted"} ${s}`,async()=>{let e=await (0,C.Y)(n);e.success?(m.refresh(),q()):E.oR.error(e.error??"Undo failed")},{label:D.trash?.undo??"Undo"})}m.refresh(),q()}})}})]})});function en({nodes:e,depth:t=0,onNavigate:n,maxOpenDepth:o,parentIsSpace:l,onImport:c}){var d;let u,m=(u="/view/",(d=(0,a.usePathname)()).startsWith(u)?d.slice(u.length).split("/").map(decodeURIComponent).join("/"):""),p=P(),f=0===t,h=(0,r.useMemo)(()=>{let t=p?e:e.filter(e=>!(f&&e.name.startsWith(".")||"file"===e.type&&i.C.has(e.name)||"directory"===e.type&&e.name.startsWith(".")));return f?t.filter(e=>"directory"!==e.type||"Inbox"!==e.name):t},[e,p,f]);return(0,r.useEffect)(()=>{if(!m||0!==t)return;let e=setTimeout(()=>{let e=document.querySelector(`[data-filepath="${CSS.escape(m)}"]`);e?.scrollIntoView({block:"nearest",behavior:"smooth"})},120);return()=>clearTimeout(e)},[m,t]),(0,s.jsx)("div",{className:"flex flex-col gap-0.5",children:h.map(e=>"directory"===e.type?(0,s.jsx)(ee,{node:e,depth:t,currentPath:m,onNavigate:n,maxOpenDepth:o,onImport:c},e.path):(0,s.jsx)(et,{node:e,depth:t,currentPath:m,onNavigate:n},e.path))})}},12655:(e,t,n)=>{n.d(t,{f:()=>r});var s=n(65799);let r=(0,s.createServerReference)("60239502cf2efb160c3deb517f047df9dee5c98d60",s.callServer,void 0,s.findSourceMapURL,"renameFileAction")},27069:(e,t,n)=>{n.d(t,{Z:()=>h});var s=n(44223);let r="mindos-pinned-files",a="mindos:pins-changed";function i(){try{let e=localStorage.getItem(r);return e?JSON.parse(e):[]}catch{return[]}}function o(){return d}let l=[];function c(){return l}let d=[],u=!1;function m(){u||(d=i(),u=!0)}function p(e){m();let t=t=>{t.key===r&&(d=i(),e())},n=()=>{d=i(),e()};return window.addEventListener("storage",t),window.addEventListener(a,n),()=>{window.removeEventListener("storage",t),window.removeEventListener(a,n)}}function f(e){d=e;try{localStorage.setItem(r,JSON.stringify(e))}catch{}window.dispatchEvent(new Event(a))}function h(){m();let e=(0,s.useSyncExternalStore)(p,o,c),t=(0,s.useCallback)(t=>e.includes(t),[e]),n=(0,s.useCallback)(e=>{let t=i(),n=t.indexOf(e);n>=0?t.splice(n,1):t.unshift(e),f(t)},[]);return{pinnedFiles:e,isPinned:t,togglePin:n,reorderPins:(0,s.useCallback)(e=>{f(e)},[]),removePin:(0,s.useCallback)(e=>{f(i().filter(t=>t!==e))},[])}}},36636:(e,t,n)=>{n.d(t,{Y:()=>r});var s=n(65799);let r=(0,s.createServerReference)("405c268338104564b3515ba0c568ffa466d3b52f50",s.callServer,void 0,s.findSourceMapURL,"undoDeleteAction")},46354:(e,t,n)=>{n.d(t,{$7:()=>i,MZ:()=>d,TS:()=>l,UG:()=>a,YB:()=>c,pl:()=>o});let s=[],r=new Set;function a(){try{let e=localStorage.getItem("mindos-disabled-renderers");r=function(e){if(!e)return new Set;let t=JSON.parse(e);return Array.isArray(t)?new Set(t.filter(e=>"string"==typeof e&&e.length>0)):new Set}(e)}catch{r=new Set}}function i(e,t){let n=s.find(t=>t.id===e);if(!n?.core){t?r.delete(e):r.add(e);try{localStorage.setItem("mindos-disabled-renderers",JSON.stringify([...r]))}catch{}}}function o(e){let t=s.find(t=>t.id===e);return!!t?.core||!r.has(e)}function l(e){s.find(t=>t.id===e.id)||s.push(e)}function c(e,t,n){if(n){let e=s.find(e=>e.id===n);return e&&o(e.id)?e:void 0}return s.find(n=>o(n.id)&&n.match({filePath:e,extension:t}))}function d(){return s.filter(e=>!e.appBuiltinFeature)}},51326:(e,t,n)=>{n.d(t,{i:()=>r});var s=n(65799);let r=(0,s.createServerReference)("40e93274068af9427baf93a6b8b937a4c4e85e76f7",s.callServer,void 0,s.findSourceMapURL,"deleteFileAction")},62329:(e,t,n)=>{n.d(t,{A:()=>r,C:()=>s});let s=new Set(["INSTRUCTION.md","README.md","CONFIG.json","CHANGELOG.md"]),r=new Set(["TODO.md"])},62800:(e,t,n)=>{n.d(t,{Vz:()=>o,wD:()=>r});var s=n(65264);async function r(){try{let e=await (0,s.n)("/api/settings"),t=e.ai?.provider??"",n=(e.ai?.providers??{})[t];return!!n?.apiKey}catch{return!1}}function a(e){for(let t of e.split("\n")){let e=t.trim();if(!e.startsWith("data:"))continue;let n=e.slice(5).trim();if(n)try{let e=JSON.parse(n);if("error"===e.type)return String(e.message||"AI initialization failed")}catch{}}return null}async function i(e){let t=e.getReader(),n=new TextDecoder,s="";try{for(;;){let{done:e,value:r}=await t.read();if(e)break;let i=(s+=n.decode(r,{stream:!0})).split("\n");s=i.pop()??"";let o=a(i.join("\n"));if(o)throw Error(o)}if(s){let e=a(s);if(e)throw Error(e)}}finally{t.releaseLock()}}function o(e,t,n=""){let s="u">typeof document&&"zh"===document.documentElement.lang?`初始化新建的心智空间「${e}」,路径为「${t}/」。${n?`描述:「${n}」。`:""}两个文件均已存在模板,用 write_file 覆盖:
11
- 1. 「${t}/README.md」— 写入空间用途、结构概览、使用指南
12
- 2. 「${t}/INSTRUCTION.md」— 写入 AI Agent 在此空间中的行为规则和操作约定
13
-
14
- 内容简洁实用,直接使用工具写入。`:`Initialize the new Mind Space "${e}" at "${t}/". ${n?`Description: "${n}". `:""}Both files already exist with templates — use write_file to overwrite:
15
- 1. "${t}/README.md" — write purpose, structure overview, usage guidelines
16
- 2. "${t}/INSTRUCTION.md" — write rules for AI agents operating in this space
17
-
18
- Keep content concise and actionable. Write files directly using tools.`;window.dispatchEvent(new CustomEvent("mindos:ai-init",{detail:{spaceName:e,spacePath:t,description:n,state:"working"}})),fetch("/api/ask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[{role:"user",content:s}],currentFile:t+"/INSTRUCTION.md"})}).then(async e=>{if(!e.ok||!e.body)throw Error(`HTTP ${e.status}`);await i(e.body),window.dispatchEvent(new CustomEvent("mindos:ai-init",{detail:{spacePath:t,state:"done"}})),window.dispatchEvent(new Event("mindos:files-changed"))}).catch(()=>{window.dispatchEvent(new CustomEvent("mindos:ai-init",{detail:{spacePath:t,state:"error"}}))})}},72466:(e,t,n)=>{n.d(t,{Aw:()=>c,Nh:()=>u,QL:()=>i,TM:()=>o,h0:()=>l,lL:()=>d});var s=n(79455);function r(e){let t=new Uint8Array(e),n=[];for(let e=0;e<t.length;e+=8192)n.push(String.fromCharCode(...t.subarray(e,e+8192)));return btoa(n.join(""))}async function a(e){if(e.byteLength<524288||"u"<typeof Worker)return r(e);let t=e.slice(0);return new Promise(n=>{let s=new Blob([`
19
- self.onmessage = function(e) {
20
- try {
21
- var bytes = new Uint8Array(e.data);
22
- var chunks = [];
23
- for (var i = 0; i < bytes.length; i += 8192) {
24
- chunks.push(String.fromCharCode.apply(null, bytes.subarray(i, i + 8192)));
25
- }
26
- self.postMessage(btoa(chunks.join('')));
27
- } catch (err) {
28
- self.postMessage({ error: err.message || 'base64 encoding failed' });
29
- }
30
- };
31
- `],{type:"application/javascript"}),a=URL.createObjectURL(s),i=new Worker(a),o=()=>{i.terminate(),URL.revokeObjectURL(a)},l=setTimeout(()=>{o(),n(r(t))},1e4);i.onmessage=e=>{clearTimeout(l),o(),"string"==typeof e.data?n(e.data):n(r(t))},i.onerror=()=>{clearTimeout(l),o(),n(r(t))},i.postMessage(e,[e])})}async function i(e,t){let n=[],r=0;for(let t of e){if(t.size>0xa00000){r++;continue}try{let e=t.name.toLowerCase(),s=e.endsWith(".doc")||e.endsWith(".docx")||e.endsWith(".docm");if(e.endsWith(".pdf")||s){let e=await t.arrayBuffer();n.push({name:t.name,content:await a(e),encoding:"base64"})}else{let e=await t.text();n.push({name:t.name,content:e})}}catch{}}if(0===n.length)return void(r>0?s.oR.error(t.inbox.tooLarge(r),4e3):e.length>0&&s.oR.error(t.inbox.saveFailed,4e3));try{var i;let e=await fetch("/api/inbox",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:n})});if(!e.ok){let n=await e.json().catch(()=>({}));console.error("[QuickDrop] Save failed:",n.error),s.oR.error(t.inbox.saveFailed,4e3);return}let a=await e.json(),o=a.saved?.length??0,l=a.skipped?.length??0;i=r,o>0&&i>0&&0===l?s.oR.success(t.inbox.savedWithOversized(o,i),4e3):o>0&&l+i>0?s.oR.success(t.inbox.savedWithSkipped(o,l+i),4e3):o>0?s.oR.success(t.inbox.savedToast(o),3e3):(i>0&&s.oR.error(t.inbox.tooLarge(i),4e3),l>0&&s.oR.error(t.inbox.savedWithSkipped(0,l),4e3),0===i&&0===l&&s.oR.error(t.inbox.saveFailed,4e3)),window.dispatchEvent(new Event("mindos:files-changed")),window.dispatchEvent(new Event("mindos:inbox-updated"))}catch(e){console.error("[QuickDrop] Network error:",e),s.oR.error(t.inbox.saveFailed,4e3)}}async function o(e,t){try{let n=await fetch("/api/inbox/clip",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),r=await n.json();if(!n.ok){let e=r.error||t.inbox.clipFailed;return s.oR.error(e,4e3),{ok:!1}}return s.oR.success(t.inbox.clipSuccess(r.title||e),3e3),window.dispatchEvent(new Event("mindos:files-changed")),window.dispatchEvent(new Event("mindos:inbox-updated")),{ok:!0,title:r.title}}catch(e){return console.error("[ClipURL] Network error:",e),s.oR.error(t.inbox.clipFailed,4e3),{ok:!1}}}function l(e){let t=e.trim();if(!t.startsWith("http://")&&!t.startsWith("https://"))return!1;try{return new URL(t),!0}catch{return!1}}function c(e){if(e.dataTransfer?.files&&e.dataTransfer.files.length>0)return null;let t=e.dataTransfer?.getData("text/uri-list");if(t){let e=t.split(/[\r\n]+/).find(e=>!e.startsWith("#")&&e.trim().length>0);if(e&&l(e))return e.trim()}let n=e.dataTransfer?.getData("text/plain");return n&&l(n)?n.trim():null}function d(e){let t=e.dataTransfer?.types??[];return!t.includes("Files")&&(t.includes("text/uri-list")||t.includes("text/plain"))}async function u(e,t,n){let r=[],i=0,o=new Set(["pdf","png","jpg","jpeg","gif","webp","bmp","ico","mp3","wav","m4a","ogg","flac","aac","mp4","webm","mov","mkv","doc","docx","docm"]);for(let t of e){if(t.size>0xa00000){i++;continue}try{let e=(t.name.split(".").pop()??"").toLowerCase();if(o.has(e)){let e=await t.arrayBuffer();r.push({name:t.name,content:await a(e),encoding:"base64"})}else{let e=await t.text();r.push({name:t.name,content:e})}}catch{}}if(0===r.length)return void(i>0?s.oR.error(n.inbox.tooLarge(i),4e3):e.length>0&&s.oR.error(n.inbox.saveFailed,4e3));let l=t.split("/").pop()||t;try{let e=await fetch("/api/file/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:r,targetSpace:t,organize:!1,conflict:"rename"})});if(!e.ok){let t=await e.json().catch(()=>({}));console.error("[TreeDrop] Save failed:",t.error),s.oR.error(n.inbox.saveFailed,4e3);return}let a=await e.json(),o=a.created?.length??0,c=a.skipped?.length??0;o>0&&c+i>0?s.oR.success(n.inbox.savedWithSkipped(o,c+i),4e3):o>0?s.oR.success(n.inbox.savedToDir(o,l),3e3):(i>0&&s.oR.error(n.inbox.tooLarge(i),4e3),c>0&&s.oR.error(n.inbox.savedWithSkipped(0,c),4e3)),window.dispatchEvent(new Event("mindos:files-changed"))}catch(e){console.error("[TreeDrop] Network error:",e),s.oR.error(n.inbox.saveFailed,4e3)}}},75579:(e,t,n)=>{n.d(t,{vP:()=>w,$_:()=>b,fF:()=>v});var s=n(66839),r=n(44223),a=n(21082),i=n(98327),o=n(44361),l=n(3972),c=n(76723),d=n(44910),u=n(67885),m=n(38688),p=n(69527),f=n(65264),h=n(9986),x=n(55798);function g({t:e,onInitComplete:t}){var n;let i=e.settings?.sync,[l,u]=(0,r.useState)(""),[g,v]=(0,r.useState)(""),[y,j]=(0,r.useState)("main"),[w,N]=(0,r.useState)(!1),[k,S]=(0,r.useState)(-1),[T,C]=(0,r.useState)(""),A=(0,r.useRef)(null),E=k>=0&&k<4,R=l.trim()?(n=l.trim(),/^https:\/\/.+/.test(n)?"https":!!/^git@[\w.-]+:.+/.test(n)&&"ssh"):null,z="https"===R||"ssh"===R,L=async()=>{S(0),C("");let e=(e,t)=>setTimeout(()=>S(t=>t>=0&&t<4?e:t),t);A.current=e(1,2e3);let n=e(2,5e3);try{await (0,f.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"init",remote:l.trim(),token:g.trim()||void 0,branch:y.trim()||"main"}),timeout:12e4}),S(4),setTimeout(()=>t(),600)}catch(n){let e=n instanceof Error?n.message:"Connection failed";e.includes("timed out")&&(e=i?.timeoutError??"Connection timed out. The remote repository may be large or the network is slow. Please try again.");let t=b(e,l,i);C(t?`${e}
32
- ${t}`:e),S(-1)}finally{A.current&&clearTimeout(A.current),clearTimeout(n)}},$=[i?.stepConnecting??"Connecting to remote...",i?.stepAuthenticating??"Authenticating...",i?.stepSyncing??"Syncing data...",i?.stepAlmostDone??"Almost done..."];return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)(p.L7,{icon:(0,s.jsx)(d.A,{size:15}),title:i?.emptyTitle??"Cross-device Sync",description:i?.emptyDesc??"Automatically sync your knowledge base across devices via Git.",children:[(0,s.jsxs)(p.D0,{label:i?.remoteUrl??"Git Remote URL",hint:"ssh"===R?i?.sshHint??"Requires SSH key on this machine. Verify with: ssh -T git@github.com":void 0,children:[(0,s.jsx)(p.pd,{type:"text",value:l,onChange:e=>{u(e.target.value),C("")},placeholder:"git@github.com:user/repo.git",className:`font-mono ${l.trim()&&!z?"border-destructive":""}`}),!l.trim()&&(0,s.jsxs)("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs text-muted-foreground mt-1.5",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("code",{className:"text-foreground/60 bg-muted/60 px-1 py-0.5 rounded text-2xs",children:"SSH"})," ",i?.sshBrief??"one-time key setup, no token needed"]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("code",{className:"text-foreground/60 bg-muted/60 px-1 py-0.5 rounded text-2xs",children:"HTTPS"})," ",i?.httpsBrief??"works anywhere, token recommended"]})]}),l.trim()&&!z&&(0,s.jsx)("p",{className:"text-xs text-destructive mt-1",children:i?.invalidUrl??"Invalid Git URL — use HTTPS (https://...) or SSH (git@...)"})]}),"https"===R&&(0,s.jsxs)(p.D0,{label:(0,s.jsxs)(s.Fragment,{children:[i?.accessToken??"Access Token"," ",(0,s.jsx)("span",{className:"text-muted-foreground font-normal",children:i?.optional??"(optional, for private repos)"})]}),hint:void 0,children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(p.pd,{type:w?"text":"password",value:g,onChange:e=>v(e.target.value),placeholder:"ghp_xxxxxxxxxxxx",className:"pr-9 font-mono"}),(0,s.jsx)("button",{type:"button",onClick:()=>N(!w),className:"absolute right-2 top-1/2 -translate-y-1/2 p-0.5 rounded hover:bg-muted text-muted-foreground transition-colors",children:w?(0,s.jsx)(h.A,{size:14}):(0,s.jsx)(x.A,{size:14})})]}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground mt-1",children:[i?.tokenHint??"GitHub:"," ",(0,s.jsx)("a",{href:"https://github.com/settings/tokens/new?scopes=repo&description=MindOS+Sync",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-foreground transition-colors",children:i?.tokenLink??"Create a token (repo scope)"})]})]}),(0,s.jsx)(p.D0,{label:i?.branchLabel??"Branch",children:(0,s.jsx)(p.pd,{type:"text",value:y,onChange:e=>j(e.target.value),placeholder:"main",className:"max-w-[200px] font-mono"})}),!E&&4!==k&&(0,s.jsx)(p.jn,{onClick:L,disabled:!z,className:"flex items-center gap-2",children:i?.connectButton??"Connect & Start Sync"}),(E||4===k)&&(0,s.jsxs)("div",{className:"space-y-2 py-1",children:[$.map((e,t)=>{let n=k>t||4===k,r=k===t&&k<4;return k<t&&k<4?null:(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[n?(0,s.jsx)(c.A,{size:13,className:"text-success shrink-0"}):(0,s.jsx)(o.A,{size:13,className:"animate-spin text-muted-foreground shrink-0"}),(0,s.jsx)("span",{className:n?"text-success":r?"text-foreground":"text-muted-foreground",children:e})]},t)}),4===k&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,s.jsx)(m.A,{size:13,className:"text-success shrink-0"}),(0,s.jsx)("span",{className:"text-success font-medium",children:i?.stepDone??"Sync configured successfully!"})]})]}),T&&(0,s.jsxs)("div",{className:"flex items-start gap-2 text-xs p-3 rounded-lg bg-destructive/10 text-destructive",role:"alert","aria-live":"polite",children:[(0,s.jsx)(a.A,{size:13,className:"shrink-0 mt-0.5"}),(0,s.jsx)("div",{className:"space-y-1",children:T.split("\n").map((e,t)=>(0,s.jsx)("span",{className:`block ${t>0?"text-destructive/70":""}`,children:e},t))})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2 text-xs text-muted-foreground px-5",children:[i?.featureAutoCommit??"Auto-commit on save",i?.featureAutoPull??"Auto-pull from remote",i?.featureConflict??"Conflict detection",i?.featureMultiDevice??"Works across devices"].map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(m.A,{size:11,className:"text-success/60 shrink-0"}),(0,s.jsx)("span",{children:e})]},t))})]})}function v(e,t){if(!e)return t?.timeNever??"never";let n=Date.now()-new Date(e).getTime();if(n<6e4)return t?.timeJustNow??"just now";let s=Math.floor(n/6e4);if(n<36e5)return t?.timeMinAgo?.(s)??`${s}m ago`;let r=Math.floor(n/36e5);if(n<864e5)return t?.timeHourAgo?.(r)??`${r}h ago`;let a=Math.floor(n/864e5);return t?.timeDayAgo?.(a)??`${a}d ago`}function b(e,t,n){let s=e.toLowerCase();return s.includes("permission denied")||s.includes("publickey")?n?.hintSshAuth??"SSH key may not be configured. Run: ssh-keygen -t ed25519 && ssh -T git@github.com":s.includes("host key")||s.includes("known_hosts")||s.includes("fingerprint")?n?.hintSshHost??"Run: ssh-keyscan github.com >> ~/.ssh/known_hosts":s.includes("authentication failed")||s.includes("invalid credentials")||s.includes("401")||s.includes("403")?n?.hintHttpsAuth??"Access token may be expired or missing. Check Settings → Developer settings → Personal access tokens.":s.includes("timed out")||s.includes("timeout")||s.includes("could not resolve")?n?.hintNetwork??"Check your network connection and try again.":s.includes("not found")||s.includes("does not exist")||s.includes("repository not found")?n?.hintNotFound??"Repository not found. Check the URL and ensure the repo exists.":s.includes("non-fast-forward")||s.includes("rejected")||s.includes("fetch first")?n?.hintPushRejected??'Remote has changes. Click "Sync Now" to pull and retry.':s.includes("conflict")||s.includes("merge")?n?.hintConflict??"Merge conflict detected. Check the Conflicts section below.":""}function y({file:e,time:t,syncT:n,onResolved:l}){let[c,d]=(0,r.useState)(null),[u,m]=(0,r.useState)(!1),[p,h]=(0,r.useState)(null),[x,g]=(0,r.useState)(!1),b=async()=>{if(u)return void m(!1);if(!p){g(!0);try{let t=await (0,f.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"conflict-preview",remote:e})});h(t)}catch{}g(!1)}m(!0)},y=async t=>{d("keep-local"===t?"local":"remote");try{await (0,f.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"resolve-conflict",remote:e,branch:t})}),l()}catch{d(null)}};return(0,s.jsxs)("div",{className:"rounded-lg border border-border/50 overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 p-2 text-xs bg-muted/20",children:[(0,s.jsx)(a.A,{size:12,className:"text-error shrink-0"}),(0,s.jsxs)("button",{type:"button",onClick:b,className:"font-mono truncate hover:text-foreground hover:underline transition-colors flex-1 min-w-0 text-left",title:n?.viewDiff??"View differences",children:[(0,s.jsx)(i.A,{size:11,className:`inline mr-1 transition-transform ${u?"rotate-90":""}`}),e]}),(0,s.jsx)("span",{className:"text-muted-foreground shrink-0",children:v(t,n)}),(0,s.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,s.jsx)("button",{type:"button",onClick:()=>y("keep-local"),disabled:!!c,className:"px-2 py-0.5 rounded border border-border text-2xs hover:bg-muted transition-colors disabled:opacity-40",title:n?.keepLocalHint??"Keep this device's version",children:"local"===c?(0,s.jsx)(o.A,{size:10,className:"animate-spin"}):n?.keepLocal??"Keep local"}),(0,s.jsx)("button",{type:"button",onClick:()=>y("keep-remote"),disabled:!!c,className:"px-2 py-0.5 rounded border border-border text-2xs hover:bg-muted transition-colors disabled:opacity-40",title:n?.keepRemoteHint??"Replace with remote version",children:"remote"===c?(0,s.jsx)(o.A,{size:10,className:"animate-spin"}):n?.keepRemote??"Keep remote"})]})]}),u&&(0,s.jsx)("div",{className:"border-t border-border/50",children:x?(0,s.jsx)("div",{className:"flex justify-center py-3",children:(0,s.jsx)(o.A,{size:13,className:"animate-spin text-muted-foreground"})}):p?(0,s.jsxs)("div",{className:"grid grid-cols-2 divide-x divide-border/50 text-2xs font-mono max-h-60 overflow-auto",children:[(0,s.jsxs)("div",{className:"p-2",children:[(0,s.jsx)("div",{className:"text-muted-foreground mb-1 font-sans text-xs font-medium",children:n?.localVersion??"Local (this device)"}),(0,s.jsx)("pre",{className:"whitespace-pre-wrap text-foreground/80 leading-relaxed",children:p.local||(n?.emptyFile??"(empty)")})]}),(0,s.jsxs)("div",{className:"p-2",children:[(0,s.jsx)("div",{className:"text-muted-foreground mb-1 font-sans text-xs font-medium",children:n?.remoteVersion??"Remote"}),(0,s.jsx)("pre",{className:"whitespace-pre-wrap text-foreground/80 leading-relaxed",children:p.remote||(n?.emptyFile??"(empty)")})]})]}):null})]})}function j({syncT:e}){let[t,n]=(0,r.useState)(!1),[a,d]=(0,r.useState)(""),[u,m]=(0,r.useState)(""),[p,h]=(0,r.useState)(!1),[x,g]=(0,r.useState)(!1),v=(0,r.useRef)(!1),b=a!==u;(0,r.useEffect)(()=>{t&&!v.current&&(v.current=!0,h(!0),(0,f.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"gitignore-get"})}).then(e=>{d(e.content),m(e.content)}).catch(()=>{}).finally(()=>h(!1)))},[t]);let y=async()=>{try{await (0,f.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"gitignore-save",content:a})}),m(a),g(!0),setTimeout(()=>g(!1),2e3)}catch{}};return(0,s.jsxs)("div",{className:"pt-2 border-t border-border/50",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>n(!t),className:"flex items-center gap-2 w-full text-left text-sm text-muted-foreground hover:text-foreground transition-colors py-1",children:[(0,s.jsx)(i.A,{size:14,className:`shrink-0 transition-transform ${t?"rotate-90":""}`}),(0,s.jsx)(l.A,{size:13,className:"shrink-0"}),(0,s.jsx)("span",{children:e?.gitignoreTitle??"Excluded files"}),(0,s.jsx)("span",{className:"text-2xs opacity-50",children:".gitignore"})]}),t&&(0,s.jsx)("div",{className:"mt-2 space-y-2",children:p?(0,s.jsx)("div",{className:"flex justify-center py-4",children:(0,s.jsx)(o.A,{size:14,className:"animate-spin text-muted-foreground"})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("textarea",{value:a,onChange:e=>d(e.target.value),rows:8,className:"w-full rounded-lg border border-border bg-background px-3 py-2 text-xs font-mono leading-relaxed text-foreground placeholder:text-muted-foreground focus:outline-none focus-visible:ring-1 focus-visible:ring-ring resize-y",placeholder:e?.gitignorePlaceholder??"# Files to exclude from sync\n*.tmp\nsecret/",spellCheck:!1}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[b&&(0,s.jsx)("button",{type:"button",onClick:y,className:"flex items-center gap-1.5 px-3 py-1 text-xs rounded-lg bg-[var(--amber)] text-[var(--amber-foreground)] hover:opacity-90 transition-opacity",children:e?.gitignoreSave??"Save"}),x&&(0,s.jsxs)("span",{className:"flex items-center gap-1 text-xs text-success",children:[(0,s.jsx)(c.A,{size:12})," ",e?.gitignoreSaved??"Saved"]})]})]})})]})}function w({t:e,visible:t}){let n=e.settings?.sync,[i,l]=(0,r.useState)(null),[c,h]=(0,r.useState)(!0),[x,w]=(0,r.useState)(!1),[N,k]=(0,r.useState)(!1),[S,T]=(0,r.useState)(null),C=(0,r.useCallback)(async()=>{try{let e=await (0,f.n)("/api/sync",{timeout:1e4});l(e)}catch{l(e=>e??null)}finally{h(!1)}},[]);(0,r.useEffect)(()=>{C()},[C]);let A=(0,r.useRef)(t);(0,r.useEffect)(()=>{t&&!A.current&&null!==i&&C(),A.current=t},[t,i,C]);let E=async()=>{w(!0),T(null);try{await (0,f.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"now"}),timeout:12e4}),T({type:"success",text:n?.syncComplete??"Sync complete"}),await C()}catch(s){var e;let t;T({type:"error",text:(t=b(e=s instanceof Error?s.message:"Sync failed",void 0,n))?`${e}
33
- ${t}`:e})}finally{w(!1),setTimeout(()=>T(null),3e3)}},R=async()=>{if(!i)return;k(!0),T(null);let e=i.enabled?"off":"on";try{await (0,f.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e})}),await C(),T({type:"success",text:i.enabled?n?.autoSyncDisabled??"Auto-sync disabled":n?.autoSyncEnabled??"Auto-sync enabled"})}catch{T({type:"error",text:n?.toggleFailed??"Failed to toggle sync"})}finally{k(!1),setTimeout(()=>T(null),3e3)}},z=async()=>{k(!0);try{await (0,f.n)("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"reset"})}),await C()}catch{T({type:"error",text:n?.resetFailed??"Failed to reset sync configuration"})}finally{k(!1),setTimeout(()=>T(null),3e3)}};if(c)return(0,s.jsx)("div",{className:"flex justify-center py-8",children:(0,s.jsx)(o.A,{size:18,className:"animate-spin text-muted-foreground"})});if(!i||!i.enabled)return(0,s.jsx)(g,{t:e,onInitComplete:C});if(i.needsSetup)return(0,s.jsx)("div",{className:"space-y-6",children:(0,s.jsxs)("div",{className:"flex items-start gap-3 p-4 rounded-lg bg-destructive/10",children:[(0,s.jsx)(a.A,{size:18,className:"text-destructive shrink-0 mt-0.5"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-destructive",children:n?.brokenTitle??"Sync configuration is broken"}),(0,s.jsx)("p",{className:"text-xs text-destructive/80",children:i.lastError||(n?.brokenDesc??"The git repository or remote is missing. Reset to re-configure.")}),(0,s.jsxs)(p.jn,{onClick:z,disabled:N,className:"flex items-center gap-2 mt-2",children:[N&&(0,s.jsx)(o.A,{size:14,className:"animate-spin"}),n?.resetButton??"Reset & Re-configure"]})]})]})});let L=i.conflicts||[];return(0,s.jsx)("div",{className:"space-y-4",children:(0,s.jsxs)(p.L7,{icon:(0,s.jsx)(d.A,{size:15}),title:n?.sectionTitle??"Sync",description:i.remote,badge:(0,s.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-success/15 text-success font-medium",children:n?.labelEnabled??"Active"}),children:[(0,s.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:n?.labelBranch??"Branch"}),(0,s.jsx)("span",{className:"font-mono text-xs",children:i.branch})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:n?.labelLastSync??"Last sync"}),(0,s.jsx)("span",{className:"text-xs",children:v(i.lastSync,n)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:n?.labelUnpushed??"Unpushed"}),(0,s.jsx)("span",{className:"text-xs",children:"string"==typeof i.unpushed&&/^\d+$/.test(i.unpushed)?n?.unpushedCommits?.(parseInt(i.unpushed,10))??`${i.unpushed} commits`:`${i.unpushed??"?"} commits`})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:n?.labelAutoSync??"Auto-sync"}),(0,s.jsxs)("span",{className:"flex items-center gap-1 text-xs",children:["commit"," ",(0,s.jsxs)(p.l6,{size:"sm",value:String(i.autoCommitInterval),onChange:async e=>{let t=parseInt(e.target.value,10);try{(await fetch("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update-intervals",autoCommitInterval:t})})).ok&&C()}catch{}},children:[(0,s.jsx)("option",{value:"10",children:"10s"}),(0,s.jsx)("option",{value:"15",children:"15s"}),(0,s.jsx)("option",{value:"30",children:"30s"}),(0,s.jsx)("option",{value:"60",children:"60s"}),(0,s.jsx)("option",{value:"120",children:"120s"})]})," \xb7 pull ",(0,s.jsxs)(p.l6,{size:"sm",value:String(i.autoPullInterval),onChange:async e=>{let t=parseInt(e.target.value,10);try{(await fetch("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update-intervals",autoPullInterval:t})})).ok&&C()}catch{}},children:[(0,s.jsx)("option",{value:"60",children:"1min"}),(0,s.jsx)("option",{value:"120",children:"2min"}),(0,s.jsx)("option",{value:"300",children:"5min"}),(0,s.jsx)("option",{value:"600",children:"10min"}),(0,s.jsx)("option",{value:"1800",children:"30min"}),(0,s.jsx)("option",{value:"3600",children:"60min"})]})]})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,s.jsxs)("button",{type:"button",onClick:E,disabled:x,className:"flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-lg border border-border text-muted-foreground hover:text-foreground hover:bg-muted disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[(0,s.jsx)(u.A,{size:12,className:x?"animate-spin":""}),n?.syncNow??"Sync Now"]}),(0,s.jsx)("button",{type:"button",onClick:R,disabled:N,className:"flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-lg border border-border text-muted-foreground hover:text-destructive hover:border-destructive/50 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:n?.disableAutoSync??"Disable Auto-sync"})]}),S&&(0,s.jsx)("div",{className:"flex items-start gap-1.5 text-xs",role:"status","aria-live":"polite",children:"success"===S.type?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.A,{size:13,className:"text-success shrink-0 mt-0.5"}),(0,s.jsx)("span",{className:"text-success",children:S.text})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.A,{size:13,className:"text-destructive shrink-0 mt-0.5"}),(0,s.jsx)("div",{className:"space-y-0.5",children:S.text.split("\n").map((e,t)=>(0,s.jsx)("span",{className:`block ${t>0?"text-destructive/70":"text-destructive"}`,children:e},t))})]})}),L.length>0&&(0,s.jsxs)("div",{className:"pt-2 border-t border-border/50 space-y-3",children:[(0,s.jsx)("p",{className:"text-xs font-medium text-foreground",children:n?.conflictsTitle?.(L.length)??`Conflicts (${L.length})`}),(0,s.jsx)("p",{className:"text-2xs text-muted-foreground",children:n?.conflictExplain??"These files were changed on both this device and the remote. Choose which version to keep for each file."}),(0,s.jsx)("div",{className:"space-y-2",children:L.map((e,t)=>(0,s.jsx)(y,{file:e.file,time:e.time,syncT:n,onResolved:C},t))})]}),i.lastError&&0===L.length&&(0,s.jsxs)("div",{className:"flex items-start gap-2 text-xs p-2.5 rounded-lg bg-destructive/10 text-destructive",children:[(0,s.jsx)(a.A,{size:12,className:"shrink-0 mt-0.5"}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("span",{className:"block",children:i.lastError}),b(i.lastError,i.remote,n)&&(0,s.jsx)("span",{className:"block text-destructive/70",children:b(i.lastError,i.remote,n)})]})]}),(0,s.jsx)(j,{syncT:n})]})})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3424],{2408:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},5038:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},9181:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("toggle-left",[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]])},9986:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},12240:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},12361:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]])},19777:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]])},21082:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},24336:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},26732:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},28284:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]])},29696:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},30401:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},30626:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},31082:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},31606:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},38325:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},38688:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},44361:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},48632:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]])},53097:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},55798:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},71044:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},72700:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("wifi-off",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},72799:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},73033:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},73601:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},75157:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("file-pen",[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]])},76723:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},86386:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("file-plus",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]])},88283:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},98327:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},98480:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4172],{3837:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},8973:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},9986:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},11235:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},19777:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]])},29696:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},30626:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},38325:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},38688:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},46743:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]])},52212:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},52364:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},53097:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},58626:(e,t,o)=>{o.d(t,{aY:()=>tP});var n=o(66839),r=o(44223),i=o(53454);function l(e){e()}function s(e,t){return o=>e(t(o))}function a(e){return void 0!==e}function u(){}function d(e,t){return t(e)}function c(...e){return e}function h(e){e(2)}function m(e){return e(4)}function f(e,t){return e(1,e=>t(0,e))}function p(e,t){let o=e(1,e=>{o(),t(e)});return o}function g(e){let t,o;return n=>r=>{t=r,o&&clearTimeout(o),o=setTimeout(()=>{n(t)},e)}}function x(e,t){return e===t}function v(e=x){let t;return o=>n=>{e(t,n)||(t=n,o(n))}}function I(e){return t=>o=>{e(o)&&t(o)}}function T(e){return t=>s(t,e)}function y(e){return t=>()=>{t(e)}}function w(e,...t){let o=function(...e){return t=>e.reduceRight(d,t)}(...t);return(t,n)=>{switch(t){case 2:h(e);return;case 1:return e(1,o(n))}}}function C(e,t){return o=>n=>{o(t=e(t,n))}}function S(e){return t=>o=>{e>0?e--:t(o)}}function H(e){let t=null,o;return n=>r=>{t=r,o||(o=setTimeout(()=>{o=void 0,n(t)},e))}}function z(...e){let t=Array(e.length),o=0,n=null,r=2**e.length-1;return e.forEach((e,i)=>{let l=2**i;e(1,e=>{let s=o;o|=l,t[i]=e,s!==r&&o===r&&n&&(n(),n=null)})}),e=>i=>{let l=()=>{e([i].concat(t))};o===r?l():n=l}}function k(e){let t=e,o=R();return(e,n)=>{switch(e){case 0:t=n;break;case 1:n(t);break;case 4:return t}return o(e,n)}}function b(e,t){var o;return o=k(t),f(e,o),o}function R(){let e=[];return(t,o)=>{switch(t){case 0:e.slice().forEach(e=>{e(o)});return;case 2:e.splice(0,e.length);return;case 1:return e.push(o),()=>{let t=e.indexOf(o);t>-1&&e.splice(t,1)}}}}function E(e){var t;return t=R(),f(e,t),t}function M(e,t=[],{singleton:o}={singleton:!0}){return{constructor:e,dependencies:t,id:B(),singleton:o}}let B=()=>Symbol();function A(...e){let t=R(),o=Array(e.length),n=0,r=2**e.length-1;return e.forEach((e,i)=>{let l=2**i;e(1,e=>{o[i]=e,(n|=l)===r&&t(0,o)})}),function(e,i){switch(e){case 2:return void h(t);case 1:return n===r&&i(o),t(1,i)}}}function L(e,t=x){return w(e,v(t))}function j(...e){return function(t,o){switch(t){case 2:return;case 1:return function(...e){return()=>{e.map(l)}}(...e.map(e=>e(1,o)))}}}let F=1,O={0:"debug",3:"error",[F]:"log",2:"warn"},P=M(()=>{let e=k(3);return{log:k((t,o,n=F)=>{n>=((typeof globalThis>"u"?window:globalThis).VIRTUOSO_LOG_LEVEL??m(e))&&console[O[n]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,o)}),logLevel:e}},[],{singleton:!0});function W(e,t,o){return V(e,t,o).callbackRef}function V(e,t,o){let n=r.useRef(null),i=r.useMemo(()=>"u">typeof ResizeObserver?new ResizeObserver(t=>{let n=()=>{let o=t[0].target;null!==o.offsetParent&&e(o)};o?n():requestAnimationFrame(n)}):null,[e,o]);return{callbackRef:e=>{e&&t?(i?.observe(e),n.current=e):(n.current&&i?.unobserve(n.current),n.current=null)},ref:n}}function D(e,t,o,n,i,l,s,a,u){return V(r.useCallback(o=>{let r,u=function(e,t,o,n){let r=e.length;if(0===r)return null;let i=[];for(let l=0;l<r;l++){let r=e.item(l);if(void 0===r.dataset.index)continue;let s=parseInt(r.dataset.index),a=parseFloat(r.dataset.knownSize),u=t(r,o);if(0===u&&n("Zero-sized element, this should not happen",{child:r},3),u===a)continue;let d=i[i.length-1];0===i.length||d.size!==u||d.endIndex!==s-1?i.push({endIndex:s,size:u,startIndex:s}):i[i.length-1].endIndex++}return i}(o.children,t,a?"offsetWidth":"offsetHeight",i),d=o.parentElement;for(;void 0===d.dataset.virtuosoScroller;)d=d.parentElement;let c="window"===d.lastElementChild.dataset.viewportType;c&&(r=d.ownerDocument.defaultView);let h=s?a?s.scrollLeft:s.scrollTop:c?a?r.scrollX||r.document.documentElement.scrollLeft:r.scrollY||r.document.documentElement.scrollTop:a?d.scrollLeft:d.scrollTop;n({scrollHeight:s?a?s.scrollWidth:s.scrollHeight:c?a?r.document.documentElement.scrollWidth:r.document.documentElement.scrollHeight:a?d.scrollWidth:d.scrollHeight,scrollTop:Math.max(h,0),viewportHeight:s?a?s.offsetWidth:s.offsetHeight:c?a?r.innerWidth:r.innerHeight:a?d.offsetWidth:d.offsetHeight}),l?.(a?G("column-gap",getComputedStyle(o).columnGap,i):G("row-gap",getComputedStyle(o).rowGap,i)),null!==u&&e(u)},[e,t,i,l,s,n,a]),o,u)}function G(e,t,o){return"normal"!==t&&t?.endsWith("px")!==!0&&o(`${e} was not resolved to pixel value correctly`,t,2),"normal"===t?0:parseInt(t??"0",10)}function _(e,t,o){let n=r.useRef(null),i=r.useCallback(o=>{let r,i;if(!o?.offsetParent)return;let l=o.getBoundingClientRect(),a=l.width;if(t){let e=t.getBoundingClientRect(),o=l.top-e.top;i=e.height-Math.max(0,o),r=o+t.scrollTop}else{let e=s.current.ownerDocument.defaultView;i=e.innerHeight-Math.max(0,l.top),r=l.top+e.scrollY}n.current={listHeight:l.height,offsetTop:r,visibleHeight:i,visibleWidth:a},e(n.current)},[e,t]),{callbackRef:l,ref:s}=V(i,!0,o),a=r.useCallback(()=>{i(s.current)},[i,s]);return r.useEffect(()=>{if(t){t.addEventListener("scroll",a);let e=new ResizeObserver(()=>{requestAnimationFrame(a)});return e.observe(t),()=>{t.removeEventListener("scroll",a),e.unobserve(t)}}let e=s.current?.ownerDocument.defaultView;return e?.addEventListener("scroll",a),e?.addEventListener("resize",a),()=>{e?.removeEventListener("scroll",a),e?.removeEventListener("resize",a)}},[a,t,s]),l}let N=M(()=>{let e=R(),t=R(),o=k(0),n=R(),r=k(0),i=R(),l=R(),s=k(0),a=k(0),u=k(0),d=k(0),c=R(),h=R(),m=k(!1),p=k(!1),g=k(!1);return f(w(e,T(({scrollTop:e})=>e)),t),f(w(e,T(({scrollHeight:e})=>e)),l),f(t,r),{deviation:o,fixedFooterHeight:u,fixedHeaderHeight:a,footerHeight:d,headerHeight:s,horizontalDirection:p,scrollBy:h,scrollContainerState:e,scrollHeight:l,scrollingInProgress:m,scrollTo:c,scrollTop:t,skipAnimationFrameInResizeObserver:g,smoothScrollTargetReached:n,statefulScrollTop:r,viewportHeight:i}},[],{singleton:!0}),q={lvl:0};function K(e,t){let o=e.length;if(0===o)return[];let{index:n,value:r}=t(e[0]),i=[];for(let l=1;l<o;l++){let{index:o,value:s}=t(e[l]);i.push({end:o-1,start:n,value:r}),n=o,r=s}return i.push({end:1/0,start:n,value:r}),i}function $(e){return e===q}function U(e,t){if(!$(e))return t===e.k?e.v:t<e.k?U(e.l,t):U(e.r,t)}function Y(e,t,o="k"){if($(e))return[-1/0,void 0];if(Number(e[o])===t)return[e.k,e.v];if(Number(e[o])<t){let n=Y(e.r,t,o);return n[0]===-1/0?[e.k,e.v]:n}return Y(e.l,t,o)}function X(e,t,o){return $(e)?eo(t,o,1):t===e.k?ee(e,{k:t,v:o}):t<e.k?er(en(ee(e,{l:X(e.l,t,o)}))):er(en(ee(e,{r:X(e.r,t,o)})))}function Z(e,t,o){if($(e))return[];let n=Y(e,t)[0];return K(function e(t,o,n){if($(t))return[];let{k:r,l:i,r:l,v:s}=t,a=[];return r>o&&(a=a.concat(e(i,o,n))),r>=o&&r<=n&&a.push({k:r,v:s}),r<=n&&(a=a.concat(e(l,o,n))),a}(e,n,o),({k:e,v:t})=>({index:e,value:t}))}function J(e){return $(e)?[]:[...J(e.l),{k:e.k,v:e.v},...J(e.r)]}function Q(e){let{l:t,lvl:o,r:n}=e;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(et(t))return en(ee(e,{lvl:o-1}));if(!$(t)&&!$(t.r))return ee(t.r,{l:ee(t,{r:t.r.l}),lvl:o,r:ee(e,{l:t.r.r,lvl:o-1})});throw Error("Unexpected empty nodes")}if(et(e))return er(ee(e,{lvl:o-1}));if(!$(n)&&!$(n.l)){let t=n.l,r=et(t)?n.lvl-1:n.lvl;return ee(t,{l:ee(e,{lvl:o-1,r:t.l}),lvl:t.lvl+1,r:er(ee(n,{l:t.r,lvl:r}))})}throw Error("Unexpected empty nodes")}function ee(e,t){return eo(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function et(e){return $(e)||e.lvl>e.r.lvl}function eo(e,t,o,n=q,r=q){return{k:e,l:n,lvl:o,r,v:t}}function en(e){let{l:t}=e;return $(t)||t.lvl!==e.lvl?e:ee(t,{r:ee(e,{l:t.r})})}function er(e){let{lvl:t,r:o}=e;return $(o)||$(o.r)||o.lvl!==t||o.r.lvl!==t?e:ee(o,{l:ee(e,{r:o.l}),lvl:t+1})}function ei(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function el(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}let es=M(()=>({recalcInProgress:k(!1)}),[],{singleton:!0});function ea(e,t,o,n=0){let r=e.length-1;for(;n<=r;){let i=Math.floor((n+r)/2),l=o(e[i],t);if(0===l)return i;if(-1===l){if(r-n<2)return i-1;r=i-1}else{if(r===n)return i;n=i+1}}throw Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function eu(e,t){return Math.round(e.getBoundingClientRect()[t])}function ed(e){return!$(e.groupOffsetTree)}function ec({index:e},t){return t===e?0:t<e?-1:1}function eh({offset:e},t){return t===e?0:t<e?-1:1}function em(e,t,o){if(0===t.length)return 0;let{index:n,offset:r,size:i}=t[ea(t,e,ec)],l=e-n,s=i*l+(l-1)*o+r;return s>0?s+o:s}function ef(e,t){if(!ed(t))return e;let o=0;for(;t.groupIndices[o]<=e+o;)o++;return e+o}function ep(e,t,o){if("u">typeof e.groupIndex)return t.groupIndices[e.groupIndex]+1;let n=ef("LAST"===e.index?o:e.index,t);return Math.max(0,n,Math.min(o,n))}function eg(e,[t,o,n,r]){t.length>0&&n("received item sizes",t,0);let i=e.sizeTree,l=i,s=0;if(o.length>0&&$(i)&&2===t.length){let e=t[0].size,n=t[1].size;l=o.reduce((t,o)=>X(X(t,o,e),o+1,n),l)}else[l,s]=function(e,t){let o=$(e)?0:1/0;for(let n of t){let{endIndex:t,size:r,startIndex:i}=n;if(o=Math.min(o,i),$(e)){e=X(e,0,r);continue}let l=Z(e,i-1,t+1);if(l.some(function(e){let{endIndex:t,size:o,startIndex:n}=e;return e=>e.start===n&&(e.end===t||e.end===1/0)&&e.value===o}(n)))continue;let s=!1,a=!1;for(let{end:o,start:n,value:i}of l)s?(t>=n||r===i)&&(e=function e(t,o){if($(t))return q;let{k:n,l:r,r:i}=t;if(o===n){if($(r))return i;if($(i))return r;let[e,o]=function e(t){return $(t.r)?[t.k,t.v]:e(t.r)}(r);return Q(ee(t,{k:e,l:function e(t){return $(t.r)?t.l:Q(ee(t,{r:e(t.r)}))}(r),v:o}))}return o<n?Q(ee(t,{l:e(r,o)})):Q(ee(t,{r:e(i,o)}))}(e,n)):(a=i!==r,s=!0),o>t&&t>=n&&i!==r&&(e=X(e,t+1,i));a&&(e=X(e,i,r))}return[e,o]}(l,t);if(l===i)return e;let{lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c}=ev(e.offsetTree,s,l,r);return{groupIndices:o,groupOffsetTree:o.reduce((e,t)=>X(e,t,em(t,c,r)),q),lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c,sizeTree:l}}function ex(e,t){let o=0,n=0;for(;o<e;)o+=t[n+1]-t[n]-1,n++;return n-(o!==e)}function ev(e,t,o,n){let r=e,i=0,l=0,s=0,a=0;if(0!==t){a=ea(r,t-1,ec),s=r[a].offset;let e=Y(o,t-1);i=e[0],l=e[1],r.length&&r[a].size===Y(o,t)[1]&&(a-=1),r=r.slice(0,a+1)}else r=[];for(let{start:e,value:a}of Z(o,t,1/0)){let t=e-i,o=t*l+s+t*n;r.push({index:e,offset:o,size:a}),i=e,s=o,l=a}return{lastIndex:i,lastOffset:s,lastSize:l,offsetTree:r}}function eI(e){return{index:e.index,value:e}}let eT={offsetHeight:"height",offsetWidth:"width"},ey=M(([{log:e},{recalcInProgress:t}])=>{let o=R(),n=R(),r=b(n,0),i=R(),l=R(),s=k(0),a=k([]),u=k(void 0),d=k(void 0),c=k(void 0),h=k(void 0),p=k((e,t)=>eu(e,eT[t])),g=k(void 0),x=k(0),y={groupIndices:[],groupOffsetTree:q,lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:q},S=b(w(o,z(a,e,x),C(eg,y),v()),y),H=b(w(a,v(),C((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),T(({prev:e})=>e)),[]);f(w(a,I(e=>e.length>0),z(S,x),T(([e,t,o])=>{let n=e.reduce((e,n,r)=>X(e,n,em(n,t.offsetTree,o)||r),q);return{...t,groupIndices:e,groupOffsetTree:n}})),S),f(w(n,z(S),I(([e,{lastIndex:t}])=>e<t),T(([e,{lastIndex:t,lastSize:o}])=>[{endIndex:t,size:o,startIndex:e}])),o),f(u,d);let M=b(w(u,T(e=>void 0===e)),!0);f(w(d,I(e=>void 0!==e&&$(m(S).sizeTree)),T(e=>{let t=m(c),o=m(a).length>0;return void 0!==t&&0!==t?o?[{endIndex:0,size:t,startIndex:0},{endIndex:1,size:e,startIndex:1}]:[]:[{endIndex:0,size:e,startIndex:0}]})),o),f(w(h,I(e=>void 0!==e&&e.length>0&&$(m(S).sizeTree)),T(e=>{let t=[],o=e[0],n=0;for(let r=1;r<e.length;r++){let i=e[r];i!==o&&(t.push({endIndex:r-1,size:o,startIndex:n}),o=i,n=r)}return t.push({endIndex:e.length-1,size:o,startIndex:n}),t})),o),f(w(a,z(c,d),I(([,e,t])=>void 0!==e&&void 0!==t),T(([e,t,o])=>{let n=[];for(let r=0;r<e.length;r++){let i=e[r],l=e[r+1];n.push({startIndex:i,endIndex:i,size:t}),void 0!==l&&n.push({startIndex:i+1,endIndex:l-1,size:o})}return n})),o);let B=E(w(o,z(S),C(({sizes:e},[t,o])=>({changed:o!==e,sizes:o}),{changed:!1,sizes:y}),T(e=>e.changed)));w(s,C((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),T(e=>e.diff))(1,e=>{let{groupIndices:o}=m(S);if(e>0)t(0,!0),i(0,e+ex(e,o));else if(e<0){let t=m(H);t.length>0&&(e-=ex(-e,t)),l(0,e)}}),w(s,z(e))(1,([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},3)});let A=E(i);f(w(i,z(S),T(([e,t])=>{let o=t.groupIndices.length>0,n=[],r=t.lastSize;if(o){let o=U(t.sizeTree,0),i=0,l=0;for(;i<e;){let e=t.groupIndices[l],s=t.groupIndices.length===l+1?1/0:t.groupIndices[l+1]-e-1;n.push({endIndex:e,size:o,startIndex:e}),n.push({endIndex:e+1+s-1,size:r,startIndex:e+1}),l++,i+=s+1}let s=J(t.sizeTree);return i!==e&&s.shift(),s.reduce((t,{k:o,v:n})=>{let r=t.ranges;return 0!==t.prevSize&&(r=[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:o+e,prevSize:n,ranges:r}},{prevIndex:e,prevSize:0,ranges:n}).ranges}return J(t.sizeTree).reduce((t,{k:o,v:n})=>({prevIndex:o+e,prevSize:n,ranges:[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:r,ranges:[]}).ranges})),o);let L=E(w(l,z(S,x),T(([e,{offsetTree:t},o])=>em(-e,t,o))));return f(w(l,z(S,x),T(([e,t,o])=>{if(t.groupIndices.length>0){if($(t.sizeTree))return t;let n=q,r=m(H),i=0,l=0,s=0;for(;i<-e;){s=r[l];let e=r[l+1]-s-1;l++,i+=e+1}return n=J(t.sizeTree).reduce((t,{k:o,v:n})=>X(t,Math.max(0,o+e),n),n),i!==-e&&(n=X(n,0,U(t.sizeTree,s)),n=X(n,1,Y(t.sizeTree,-e+1)[1])),{...t,sizeTree:n,...ev(t.offsetTree,0,n,o)}}let n=J(t.sizeTree).reduce((t,{k:o,v:n})=>X(t,Math.max(0,o+e),n),q);return{...t,sizeTree:n,...ev(t.offsetTree,0,n,o)}})),S),{beforeUnshiftWith:A,data:g,defaultItemSize:d,firstItemIndex:s,fixedItemSize:u,fixedGroupSize:c,gap:x,groupIndices:a,heightEstimates:h,itemSize:p,listRefresh:B,shiftWith:l,shiftWithOffset:L,sizeRanges:o,sizes:S,statefulTotalCount:r,totalCount:n,trackItemSizes:M,unshiftWith:i}},c(P,es),{singleton:!0});function ew(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}let eC=M(([{groupIndices:e,sizes:t,totalCount:o},{headerHeight:n,scrollTop:r}])=>{let i=R(),l=R(),s=E(w(i,T(ew)));return f(w(s,T(e=>e.totalCount)),o),f(w(s,T(e=>e.groupIndices)),e),f(w(A(r,t,n),I(([e,t])=>ed(t)),T(([e,t,o])=>Y(t.groupOffsetTree,Math.max(e-o,0),"v")[0]),v(),T(e=>[e])),l),{groupCounts:i,topItemsIndexes:l}},c(ey,N)),eS=M(([{log:e}])=>{let t=k(!1),o=E(w(t,I(e=>e),v()));return t(1,t=>{t&&m(e)("props updated",{},0)}),{didMount:o,propsReady:t}},c(P),{singleton:!0}),eH="u">typeof document&&"scrollBehavior"in document.documentElement.style;function ez(e){let t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&eH||(t.behavior="auto"),void 0===t.offset&&(t.offset=0),t}let ek=M(([{gap:e,listRefresh:t,sizes:o,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,footerHeight:l,headerHeight:s,scrollingInProgress:a,scrollTo:u,smoothScrollTargetReached:d,viewportHeight:c},{log:h}])=>{let m=R(),g=R(),x=k(0),v=null,I=null,y=null;function C(){null!==v&&(v(),v=null),null!==y&&(y(),y=null),I&&(clearTimeout(I),I=null),a(0,!1)}return f(w(m,z(o,c,n,x,s,l,h),z(e,i,r),T(([[e,o,n,r,i,l,s,u],c,h,f])=>{let x=ez(e),{align:T,behavior:S,offset:H}=x,z=r-1,k=ep(x,o,z),b=em(k,o.offsetTree,c)+l;"end"===T?(b+=h+Y(o.sizeTree,k)[1]-n+f,k===z&&(b+=s)):"center"===T?b+=(h+Y(o.sizeTree,k)[1]-n+f)/2:b-=i,void 0!==H&&0!==H&&(b+=H);let R=t=>{C(),t?(u("retrying to scroll to",{location:e},0),m(0,e)):(g(0,!0),u("list did not change, scroll successful",{},0))};if(C(),"smooth"===S){let e=!1;y=t(1,t=>{e=e||t}),v=p(d,()=>{R(e)})}else v=p(w(t,e=>{let t=setTimeout(()=>{e(!1)},150);return o=>{o&&(e(!0),clearTimeout(t))}}),R);return I=setTimeout(()=>{C()},1200),a(0,!0),u("scrolling from index to",{behavior:S,index:k,top:b},0),{behavior:S,top:b}})),u),{scrollTargetReached:g,scrollToIndex:m,topListHeight:x}},c(ey,N,P),{singleton:!0});function eb(e,t){0===e?t():requestAnimationFrame(()=>{eb(e-1,t)})}function eR(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.index}let eE=M(([{defaultItemSize:e,listRefresh:t,sizes:o},{scrollTop:n},{scrollTargetReached:r,scrollToIndex:i},{didMount:l}])=>{let s=k(!0),u=k(0),d=k(!0);return f(w(l,z(u),I(([e,t])=>0!==t),y(!1)),s),f(w(l,z(u),I(([e,t])=>0!==t),y(!1)),d),w(A(t,l),z(s,o,e,d),I(([[,e],t,{sizeTree:o},n,r])=>e&&(!$(o)||a(n))&&!t&&!r),z(u))(1,([,e])=>{p(r,()=>{d(0,!0)}),eb(4,()=>{p(n,()=>{s(0,!0)}),i(0,e)})}),{initialItemFinalLocationReached:d,initialTopMostItemIndex:u,scrolledToInitialItem:s}},c(ey,N,ek,eS),{singleton:!0});function eM(e,t){return 1.01>Math.abs(e-t)}let eB="down",eA={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},eL=M(([{footerHeight:e,headerHeight:t,scrollBy:o,scrollContainerState:n,scrollTop:r,viewportHeight:i}])=>{let l=k(!1),s=k(!0),a=R(),u=R(),d=k(4),c=k(0),h=b(w(j(w(L(r),S(1),y(!0)),w(L(r),S(1),y(!1),g(100))),v()),!1),p=b(w(j(w(o,y(!0)),w(o,y(!1),g(200))),v()),!1);f(w(A(L(r),L(c)),T(([e,t])=>e<=t),v()),s),f(w(s,H(50)),u);let x=E(w(A(n,L(i),L(t),L(e),L(d)),C((e,[{scrollHeight:t,scrollTop:o},n,r,i,l])=>{let s={scrollHeight:t,scrollTop:o,viewportHeight:n};if(o+n-t>-l){let t,n;return o>e.state.scrollTop?(t="SCROLLED_DOWN",n=e.state.scrollTop-o):(t="SIZE_DECREASED",n=e.state.scrollTop-o||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:n,state:s}}return{atBottom:!1,notAtBottomBecause:s.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":n<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":o<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:s}},eA),v((e,t)=>void 0!==e&&e.atBottom===t.atBottom))),M=b(w(n,C((e,{scrollHeight:t,scrollTop:o,viewportHeight:n})=>{if(!eM(e.scrollHeight,t)){let r=t-(o+n)<1;return e.scrollTop!==o&&r?{changed:!0,jump:e.scrollTop-o,scrollHeight:t,scrollTop:o}:{changed:!0,jump:0,scrollHeight:t,scrollTop:o}}return{changed:!1,jump:0,scrollHeight:t,scrollTop:o}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),I(e=>e.changed),T(e=>e.jump)),0);f(w(x,T(e=>e.atBottom)),l),f(w(l,H(50)),a);let B=k(eB);f(w(n,T(({scrollTop:e})=>e),v(),C((e,t)=>m(p)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?"up":eB,prevScrollTop:t},{direction:eB,prevScrollTop:0}),T(e=>e.direction)),B),f(w(n,H(50),y("none")),B);let F=k(0);return f(w(h,I(e=>!e),y(0)),F),f(w(r,H(100),z(h),I(([e,t])=>t),C(([e,t],[o])=>[t,o],[0,0]),T(([e,t])=>t-e)),F),{atBottomState:x,atBottomStateChange:a,atBottomThreshold:d,atTopStateChange:u,atTopThreshold:c,isAtBottom:l,isAtTop:s,isScrolling:h,lastJumpDueToItemResize:M,scrollDirection:B,scrollVelocity:F}},c(N)),ej="bottom",eF="none";function eO(e,t,o){return"number"==typeof e?"up"===o&&"top"===t||o===eB&&t===ej?e:0:"up"===o?"top"===t?e.main:e.reverse:t===ej?e.main:e.reverse}function eP(e,t){return"number"==typeof e?e:e[t]??0}let eW=M(([{deviation:e,fixedHeaderHeight:t,headerHeight:o,scrollTop:n,viewportHeight:r}])=>{let i=R(),l=k(0),s=k(0),a=k(0),u=b(w(A(L(n),L(r),L(o),L(i,el),L(a),L(l),L(t),L(e),L(s)),T(([e,t,o,[n,r],i,l,s,a,u])=>{let d=e-a,c=Math.max(o-d,0),h=eF,m=eP(u,"top"),f=eP(u,ej);return n-=a,n+=o+s,r+=o+s,n>e+(l+s)-m&&(h="up"),(r-=a)<e-c+t+f&&(h=eB),h!==eF?[Math.max(d-o-eO(i,"top",h)-m,0),d-c-s+t+eO(i,ej,h)+f]:null}),I(e=>null!==e),v(el)),[0,0]);return{increaseViewportBy:s,listBoundary:i,overscan:a,topListHeight:l,visibleRange:u}},c(N),{singleton:!0}),eV={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function eD(e,t,o,n,r,i){let{lastIndex:l,lastOffset:s,lastSize:a}=r,u=0,d=0;if(e.length>0){u=e[0].offset;let t=e[e.length-1];d=t.offset+t.size}let c=o-l,h=u,m=s+c*a+(c-1)*n-d;return{bottom:d,firstItemIndex:i,items:e_(e,r,i),offsetBottom:m,offsetTop:u,top:h,topItems:e_(t,r,i),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:o}}function eG(e,t,o,n,r,i){let l=0;if(o.groupIndices.length>0)for(let t of o.groupIndices){if(t-l>=e)break;l++}let s=e+l,a=eR(t,s);return eD(Array.from({length:s}).map((e,t)=>({data:i[t+a],index:t+a,offset:0,size:0})),[],s,r,o,n)}function e_(e,t,o){if(0===e.length)return[];if(!ed(t))return e.map(e=>({...e,index:e.index+o,originalIndex:e.index}));let n=e[0].index,r=e[e.length-1].index,i=[],l=Z(t.groupOffsetTree,n,r),s,a=0;for(let n of e){let e;(!s||s.end<n.index)&&(s=l.shift(),a=t.groupIndices.indexOf(s.start)),e=n.index===s.start?{index:a,type:"group"}:{groupIndex:a,index:n.index-(a+1)+o},i.push({...e,data:n.data,offset:n.offset,originalIndex:n.index,size:n.size})}return i}function eN(e,t){return void 0===e?0:"number"==typeof e?e:e[t]??0}let eq=M(([{data:e,firstItemIndex:t,gap:o,sizes:n,totalCount:r},i,{listBoundary:l,topListHeight:s,visibleRange:u},{initialTopMostItemIndex:d,scrolledToInitialItem:c},{topListHeight:h},p,{didMount:g},{recalcInProgress:x}])=>{let y=k([]),C=k(0),S=R(),M=k(0);f(i.topItemsIndexes,y);let B=b(w(A(g,x,L(u,el),L(r),L(n),L(d),c,L(y),L(t),L(o),L(M),e),I(([e,t,,o,,,,,,,,n])=>{let r=void 0!==n&&n.length!==o;return e&&!t&&!r}),T(([,,[e,t],o,n,r,i,l,s,a,u,d])=>{var c;let{offsetTree:h,sizeTree:f}=n,p=m(C);if(0===o)return{...eV,totalCount:o};if(0===e&&0===t)return 0===p?{...eV,totalCount:o}:eG(p,r,n,s,a,d||[]);if($(f))return p>0?null:eD(function(e,t,o){if(ed(t)){let n=ef(e,t);return[{index:Y(t.groupOffsetTree,n)[0],offset:0,size:0},{data:o?.[0],index:n,offset:0,size:0}]}return[{data:o?.[0],index:e,offset:0,size:0}]}(eR(r,o),n,d),[],o,a,n,s);let g=[];if(l.length>0){let e=l[0],t=l[l.length-1],o=0;for(let n of Z(f,e,t)){let r=n.value,i=Math.max(n.start,e),l=Math.min(n.end,t);for(let e=i;e<=l;e++)g.push({data:d?.[e],index:e,offset:o,size:r}),o+=r}}if(!i)return eD([],g,o,a,n,s);let x=l.length>0?l[l.length-1]+1:0,v=function(e,t,o,n=0){let r,i;return n>0&&(t=Math.max(t,e[ea(e,n,ec)].offset)),K((r=ea(e,t,eh),i=ea(e,o,eh,r),e.slice(r,i+1)),eI)}(h,e,t,x);if(0===v.length)return null;let I=o-1,T=((o=>{for(let n of v){let r=n.value,i=r.offset,l=n.start,s=r.size;if(r.offset<e){let t=(l+=Math.floor((e-r.offset+a)/(s+a)))-n.start;i+=t*s+t*a}l<x&&(i+=(x-l)*s,l=x);let u=Math.min(n.end,I);for(let e=l;e<=u&&!(i>=t);e++)o.push({data:d?.[e],index:e,offset:i,size:s}),i+=s+a}})(c=[]),c),y=eN(u,"top"),w=eN(u,ej);if(T.length>0&&(y>0||w>0)){let e=T[0],t=T[T.length-1];if(y>0&&e.index>x){let t=Math.min(y,e.index-x),o=[],n=e.offset;for(let r=e.index-1;r>=e.index-t;r--){let t=Z(f,r,r)[0]?.value??e.size;n-=t+a,o.unshift({data:d?.[r],index:r,offset:n,size:t})}T.unshift(...o)}if(w>0&&t.index<I){let e=Math.min(w,I-t.index),o=t.offset+t.size+a;for(let n=t.index+1;n<=t.index+e;n++){let e=Z(f,n,n)[0]?.value??t.size;T.push({data:d?.[n],index:n,offset:o,size:e}),o+=e+a}}}return eD(T,g,o,a,n,s)}),I(e=>null!==e),v()),eV);f(w(e,I(a),T(e=>e?.length)),r),f(w(B,T(e=>e.topListHeight)),h),f(h,s),f(w(B,T(e=>[e.top,e.bottom])),l),f(w(B,T(e=>e.items)),S);let j=E(w(B,I(({items:e})=>e.length>0),z(r,e),I(([{items:e},t])=>e[e.length-1].originalIndex===t-1),T(([,e,t])=>[e-1,t]),v(el),T(([e])=>e))),F=E(w(B,H(200),I(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),T(({items:e})=>e[0].index),v())),O=E(w(B,I(({items:e})=>e.length>0),T(({items:e})=>{let t=0,o=e.length-1;for(;"group"===e[t].type&&t<o;)t++;for(;"group"===e[o].type&&o>t;)o--;return{endIndex:e[o].index,startIndex:e[t].index}}),v(ei)));return{endReached:j,initialItemCount:C,itemsRendered:S,listState:B,minOverscanItemCount:M,rangeChanged:O,startReached:F,topItemsIndexes:y,...p}},c(ey,eC,eW,eE,ek,eL,eS,es),{singleton:!0}),eK=M(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:o,headerHeight:n},{listState:r}])=>{let i=R(),l=b(w(A(o,e,n,t,r),T(([e,t,o,n,r])=>e+t+o+n+r.offsetBottom+r.bottom)),0);return f(L(l),i),{totalListHeight:l,totalListHeightChanged:i}},c(N,eq),{singleton:!0}),e$=M(([{viewportHeight:e},{totalListHeight:t}])=>{let o=k(!1),n=b(w(A(o,e,t),I(([e])=>e),T(([,e,t])=>Math.max(0,e-t)),H(0),v()),0);return{alignToBottom:o,paddingTopAddition:n}},c(N,eK),{singleton:!0}),eU=M(()=>({context:k(null)})),eY=({itemBottom:e,itemTop:t,locationParams:{align:o,behavior:n,...r},viewportBottom:i,viewportTop:l})=>t<l?{...r,align:o??"start",...void 0!==n?{behavior:n}:{}}:e>i?{...r,align:o??"end",...void 0!==n?{behavior:n}:{}}:null,eX=M(([{gap:e,sizes:t,totalCount:o},{fixedFooterHeight:n,fixedHeaderHeight:r,headerHeight:i,scrollingInProgress:l,scrollTop:s,viewportHeight:a},{scrollToIndex:u}])=>{let d=R();return f(w(d,z(t,a,o,i,r,n,s),z(e),T(([[e,t,o,n,r,i,s,a],u])=>{let{calculateViewLocation:d=eY,done:c,...h}=e,f=ep(e,t,n-1),g=em(f,t.offsetTree,u)+r+i,x=d({itemBottom:g+Y(t.sizeTree,f)[1],itemTop:g,locationParams:h,viewportBottom:a+o-s,viewportTop:a+i});return null!==x?c&&p(w(l,I(e=>!e),S(m(l)?1:2)),c):c?.(),x}),I(e=>null!==e)),u),{scrollIntoView:d}},c(ey,N,ek,eq,P),{singleton:!0});function eZ(e){return!1!==e&&("smooth"===e?"smooth":"auto")}let eJ=M(([{listRefresh:e,totalCount:t,fixedItemSize:o,data:n},{atBottomState:r,isAtBottom:i},{scrollToIndex:l},{scrolledToInitialItem:s},{didMount:a,propsReady:u},{log:d},{scrollingInProgress:c},{context:h},{scrollIntoView:g}])=>{let x=k(!1),v=R(),y=null;function b(e){l(0,{align:"end",behavior:e,index:"LAST"})}function E(e){setTimeout(p(r,t=>{e&&!t.atBottom&&"SIZE_INCREASED"===t.notAtBottomBecause&&null===y&&(m(d)("scrolling to bottom due to increased size",{},0),b("auto"))}),100)}w(A(w(L(t),S(1)),a),z(L(x),i,s,c),T(([[e,t],o,n,r,i])=>{let l,s=t&&r,a="auto";return s&&(l=n||i,a="function"==typeof o?eZ(o(l)):l&&eZ(o),s=s&&!1!==a),{followOutputBehavior:a,shouldFollow:s,totalCount:e}}),I(({shouldFollow:e})=>e))(1,({followOutputBehavior:t,totalCount:n})=>{null!==y&&(y(),y=null),void 0!==m(o)?requestAnimationFrame(()=>{m(d)("following output to ",{totalCount:n},0),b(t)}):y=p(e,()=>{m(d)("following output to ",{totalCount:n},0),b(t),y=null})}),w(A(L(x),t,u),I(([e,,t])=>!1!==e&&t),C(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),I(({refreshed:e})=>e),z(x,t))(1,([,e])=>{m(s)&&E(!1!==e)}),v(1,()=>{E(!1!==m(x))}),A(L(x),r)(1,([e,t])=>{!1===e||t.atBottom||"VIEWPORT_HEIGHT_DECREASING"!==t.notAtBottomBecause||b("auto")});let M=k(null),B=R();return f(j(w(L(n),T(e=>e?.length??0)),w(L(t))),B),w(A(w(B,S(1)),a),z(L(M),s,c,h),T(([[e,t],o,n,r,i])=>t&&n&&o?.({context:i,totalCount:e,scrollingInProgress:r})),I(e=>!!e),H(0))(1,t=>{null!==y&&(y(),y=null),void 0!==m(o)?requestAnimationFrame(()=>{m(d)("scrolling into view",{}),g(0,t)}):y=p(e,()=>{m(d)("scrolling into view",{}),g(0,t),y=null})}),{autoscrollToBottom:v,followOutput:x,scrollIntoViewOnChange:M}},c(ey,eL,ek,eE,eS,P,N,eU,eX)),eQ=M(([{data:e,firstItemIndex:t,gap:o,sizes:n},{initialTopMostItemIndex:r},{initialItemCount:i,listState:l},{didMount:s}])=>(f(w(s,z(i),I(([,e])=>0!==e),z(r,n,t,o,e),T(([[,e],t,o,n,r,i=[]])=>eG(e,t,o,n,r,i))),l),{}),c(ey,eE,eq,eS),{singleton:!0}),e0=M(([{didMount:e},{scrollTo:t},{listState:o}])=>{let n=k(0);return w(e,z(n),I(([,e])=>0!==e),T(([,e])=>({top:e})))(1,e=>{p(w(o,S(1),I(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{t(0,e)})})}),{initialScrollTop:n}},c(eS,N,eq),{singleton:!0}),e1=M(([{scrollVelocity:e}])=>{let t=k(!1),o=R(),n=k(!1);return f(w(e,z(n,t,o),I(([e,t])=>!1!==t&&void 0!==t),T(([e,t,o,n])=>{let{enter:r,exit:i}=t;if(o){if(i(e,n))return!1}else if(r(e,n))return!0;return o}),v()),t),w(A(t,e,o),z(n))(1,([[e,t,o],n])=>{e&&!1!==n&&void 0!==n&&n.change&&n.change(t,o)}),{isSeeking:t,scrollSeekConfiguration:n,scrollSeekRangeChanged:o,scrollVelocity:e}},c(eL),{singleton:!0}),e2=M(([{scrollContainerState:e,scrollTo:t}])=>{let o=R(),n=R(),r=R(),i=k(!1),l=k(void 0);return f(w(A(o,n),T(([{scrollTop:e,viewportHeight:t},{offsetTop:o,listHeight:n}])=>({scrollHeight:n,scrollTop:Math.max(0,e-o),viewportHeight:t}))),e),f(w(t,z(n),T(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),r),{customScrollParent:l,useWindowScroll:i,windowScrollContainerState:o,windowScrollTo:r,windowViewportRect:n}},c(N)),e7=M(([{sizeRanges:e,sizes:t},{headerHeight:o,scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:l,windowScrollContainerState:s,windowViewportRect:u}])=>{let d=R(),c=k(void 0),h=k(null),m=k(null);return f(s,h),f(u,m),w(d,z(t,n,l,h,m,o))(1,([e,t,o,n,r,i,l])=>{let s=J(t.sizeTree).map(({k:e,v:t},o,n)=>{let r=n[o+1];return{endIndex:void 0!==r?r.k-1:1/0,size:t,startIndex:e}});n&&null!==r&&null!==i&&(o=r.scrollTop-i.offsetTop),e({ranges:s,scrollTop:o-=l})}),f(w(c,I(a),T(e5)),r),f(w(i,z(c),I(([,e])=>void 0!==e),v(),T(([,e])=>e.ranges)),e),{getState:d,restoreStateFrom:c}},c(ey,N,eE,eS,e2));function e5(e){return{align:"start",index:0,offset:e.scrollTop}}let e3=M(([{topItemsIndexes:e}])=>{let t=k(0);return f(w(t,I(e=>e>=0),T(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},c(eq));function e4(e){let t=!1,o;return()=>(t||(t=!0,o=e()),o)}let e6=e4(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),e8=M(([{deviation:e,scrollBy:t,scrollingInProgress:o,scrollTop:n},{isAtBottom:r,isScrolling:i,lastJumpDueToItemResize:l,scrollDirection:s},{listState:a},{beforeUnshiftWith:u,gap:d,shiftWithOffset:c,sizes:h},{log:m},{recalcInProgress:p}])=>{let g=E(w(a,z(l),C(([,e,t,o],[{bottom:n,items:r,offsetBottom:i,totalCount:l},s])=>{let a=n+i,u=0;return t===l&&e.length>0&&r.length>0&&(0===r[0].originalIndex&&0===e[0].originalIndex||0!=(u=a-o)&&(u+=s)),[u,r,l,a]},[0,[],0,0]),I(([e])=>0!==e),z(n,s,o,r,m,p),I(([,e,t,o,,,n])=>!n&&!o&&0!==e&&"up"===t),T(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},0),e))));function x(o){o>0?(t(0,{behavior:"auto",top:-o}),e(0,0)):(e(0,0),t(0,{behavior:"auto",top:-o}))}return w(g,z(e,i))(1,([t,o,n])=>{n&&e6()?e(0,o-t):x(-t)}),w(A(b(i,!1),e,p),I(([e,t,o])=>!e&&!o&&0!==t),T(([e,t])=>t),H(1))(1,x),f(w(c,T(e=>({top:-e}))),t),w(u,z(h,d),T(([e,{groupIndices:t,lastSize:o,sizeTree:n},r])=>{if(0===t.length)return e*(o+r);let i=0,l=U(n,0),s=0,a=0;for(;s<e;){s++,i+=l;let n=t.length===a+1?1/0:t[a+1]-t[a]-1;s+n>e&&(i-=l,n=e-s+1),s+=n,i+=n*(o+r),a++}return i}))(1,o=>{e(0,o),requestAnimationFrame(()=>{t(0,{top:o}),requestAnimationFrame(()=>{e(0,0),p(0,!1)})})}),{deviation:e}},c(N,eL,eq,ey,P,es)),e9=M(([e,t,o,n,r,i,l,s,a,u,d])=>({...e,...t,...o,...n,...r,...i,...l,...s,...a,...u,...d}),c(eW,eQ,eS,e1,eK,e0,e$,e2,eX,P,eU)),te=M(([{data:e,defaultItemSize:t,firstItemIndex:o,fixedItemSize:n,fixedGroupSize:r,gap:i,groupIndices:l,heightEstimates:s,itemSize:a,sizeRanges:u,sizes:d,statefulTotalCount:c,totalCount:h,trackItemSizes:m},{initialItemFinalLocationReached:p,initialTopMostItemIndex:g,scrolledToInitialItem:x},v,I,y,C,{scrollToIndex:S},H,{topItemCount:z},{groupCounts:k},b])=>{let{listState:R,minOverscanItemCount:E,topItemsIndexes:M,rangeChanged:B,...A}=C;return f(B,b.scrollSeekRangeChanged),f(w(b.windowViewportRect,T(e=>e.visibleHeight)),v.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:o,fixedItemHeight:n,fixedGroupHeight:r,gap:i,groupCounts:k,heightEstimates:s,initialItemFinalLocationReached:p,initialTopMostItemIndex:g,scrolledToInitialItem:x,sizeRanges:u,topItemCount:z,topItemsIndexes:M,totalCount:h,...y,groupIndices:l,itemSize:a,listState:R,minOverscanItemCount:E,scrollToIndex:S,statefulTotalCount:c,trackItemSizes:m,rangeChanged:B,...A,...b,...v,sizes:d,...I}},c(ey,eE,N,e7,eJ,eq,ek,e8,e3,eC,e9)),tt="u">typeof document?r.useLayoutEffect:r.useEffect;function to(e,t,o){let i=Object.keys(t.required||{}),l=Object.keys(t.optional||{}),s=Object.keys(t.methods||{}),a=Object.keys(t.events||{}),d=r.createContext({});function c(e,o){for(let n of(void 0!==e.propsReady&&(0,e.propsReady)(0,!1),i))(0,e[t.required[n]])(0,o[n]);for(let n of l)n in o&&(0,e[t.optional[n]])(0,o[n]);void 0!==e.propsReady&&(0,e.propsReady)(0,!0)}function f(e){return a.reduce((o,n)=>{var r;let i,l,s;return o[n]=(r=e[t.events[n]],s=()=>i?.(),function(e,t){switch(e){case 1:return t?l===t?void 0:(s(),l=t,i=r(1,t)):(s(),u);case 2:s(),l=null;return}}),o},{})}return{Component:r.forwardRef(function(u,m){var p;let{children:g,...x}=u,[v]=r.useState(()=>{var t;let o,n;return o=new Map,c(t=(n=({constructor:e,dependencies:t,id:r,singleton:i})=>{if(i&&o.has(r))return o.get(r);let l=e(t.map(e=>n(e)));return i&&o.set(r,l),l})(e),x),t}),[I]=r.useState(()=>f(v));return tt(()=>{for(let e of a)e in x&&(0,I[e])(1,x[e]);return()=>{Object.values(I).map(h)}},[x,I,v]),tt(()=>{c(v,x)}),r.useImperativeHandle(m,(p=s.reduce((e,o)=>(e[o]=e=>{(0,v[t.methods[o]])(0,e)},e),{}),()=>p)),(0,n.jsx)(d.Provider,{value:v,children:void 0!==o?(0,n.jsx)(o,{...function(e,t){let o={},n={},r=0,i=e.length;for(;r<i;)n[e[r]]=1,r+=1;for(let e in t)Object.hasOwn(n,e)||(o[e]=t[e]);return o}([...i,...l,...a],x),children:g}):g})}),useEmitter:(e,t)=>{let o=r.useContext(d)[e];tt(()=>o(1,t),[t,o])},useEmitterValue:parseInt(r.version)>=18?e=>{let t=r.useContext(d)[e],o=r.useCallback(e=>t(1,e),[t]);return r.useSyncExternalStore(o,()=>m(t),()=>m(t))}:e=>{let t=r.useContext(d)[e],[o,n]=r.useState(()=>m(t));return tt(()=>t(1,e=>{e!==o&&n(()=>e)}),[t,o]),o},usePublisher:e=>{let t=r.useContext(d);return r.useCallback(o=>{(0,t[e])(0,o)},[t,e])}}}let tn=r.createContext(void 0),tr=r.createContext(void 0),ti="-webkit-sticky",tl="sticky",ts=e4(()=>{if(typeof document>"u")return tl;let e=document.createElement("div");return e.style.position=ti,e.style.position===ti?ti:tl}),ta="u">typeof document?r.useLayoutEffect:r.useEffect;function tu(e){return"self"in e}function td(e,t,o,n=u,l,s){let a=r.useRef(null),d=r.useRef(null),c=r.useRef(null),h=r.useCallback(o=>{let n,r,l,a=o.target;if("body"in a||tu(a)){let e=tu(a)?a:a.defaultView;l=!0===s?e.scrollX:e.scrollY,n=!0===s?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,r=!0===s?e.innerWidth:e.innerHeight}else l=!0===s?a.scrollLeft:a.scrollTop,n=!0===s?a.scrollWidth:a.scrollHeight,r=!0===s?a.offsetWidth:a.offsetHeight;let u=()=>{e({scrollHeight:n,scrollTop:Math.max(l,0),viewportHeight:r})};!0===o.suppressFlushSync?u():i.flushSync(u),null!==d.current&&(l===d.current||l<=0||l===n-r)&&(d.current=null,t(!0),c.current&&(clearTimeout(c.current),c.current=null))},[e,t,s]);return r.useEffect(()=>{let e=l||a.current;return n(l||a.current),h({suppressFlushSync:!0,target:e}),e.addEventListener("scroll",h,{passive:!0}),()=>{n(null),e.removeEventListener("scroll",h)}},[a,h,o,n,l]),{scrollByCallback:function(e){!0===s&&(e={...void 0!==e.behavior?{behavior:e.behavior}:{},...void 0!==e.top?{left:e.top}:{}}),a.current.scrollBy(e)},scrollerRef:a,scrollToCallback:function(o){let n,r,i,l=a.current;if(!l||(!0===s?"offsetWidth"in l&&0===l.offsetWidth:"offsetHeight"in l&&0===l.offsetHeight))return;let u="smooth"===o.behavior;tu(l)?(r=Math.max(eu(l.document.documentElement,!0===s?"width":"height"),!0===s?l.document.documentElement.scrollWidth:l.document.documentElement.scrollHeight),n=!0===s?l.innerWidth:l.innerHeight,i=!0===s?window.scrollX:window.scrollY):(r=l[!0===s?"scrollWidth":"scrollHeight"],n=eu(l,!0===s?"width":"height"),i=l[!0===s?"scrollLeft":"scrollTop"]);let h=r-n;if(o.top=Math.ceil(Math.max(Math.min(h,o.top),0)),eM(n,r)||o.top===i){e({scrollHeight:r,scrollTop:i,viewportHeight:n}),u&&t(!0);return}u?(d.current=o.top,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,d.current=null,t(!0)},1e3)):d.current=null,!0===s&&(o={...void 0!==o.behavior?{behavior:o.behavior}:{},left:o.top}),l.scrollTo(o)}}}function tc(e){return e}let th=M(()=>{let e=k(e=>`Item ${e}`),t=k(e=>`Group ${e}`),o=k({}),n=k(tc),r=k("div"),i=k(u),l=(e,t=null)=>b(w(o,T(t=>t[e]),v()),t);return{components:o,computeItemKey:n,EmptyPlaceholder:l("EmptyPlaceholder"),FooterComponent:l("Footer"),GroupComponent:l("Group","div"),groupContent:t,HeaderComponent:l("Header"),HeaderFooterTag:r,ItemComponent:l("Item","div"),itemContent:e,ListComponent:l("List","div"),ScrollerComponent:l("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),TopItemListComponent:l("TopItemList")}}),tm=M(([e,t])=>({...e,...t}),c(te,th)),tf=({height:e})=>(0,n.jsx)("div",{style:{height:e}}),tp={overflowAnchor:"none",position:ts(),zIndex:1},tg={overflowAnchor:"none"},tx={...tg,display:"inline-block",height:"100%"},tv=r.memo(function({showTopList:e=!1}){let t=tL("listState"),o=tj("sizeRanges"),i=tL("useWindowScroll"),l=tL("customScrollParent"),s=tj("windowScrollContainerState"),a=tj("scrollContainerState"),d=tL("itemContent"),c=tL("context"),h=tL("groupContent"),m=tL("trackItemSizes"),f=tL("itemSize"),p=tL("log"),g=tj("gap"),x=tL("horizontalDirection"),{callbackRef:v}=D(o,f,m,e?u:l||i?s:a,p,g,l,x,tL("skipAnimationFrameInResizeObserver")),[I,T]=r.useState(0);tA("deviation",e=>{I!==e&&T(e)});let y=tL("EmptyPlaceholder"),w=tL("ScrollSeekPlaceholder")??tf,C=tL("ListComponent"),S=tL("ItemComponent"),H=tL("GroupComponent"),z=tL("computeItemKey"),k=tL("isSeeking"),b=tL("groupIndices").length>0,R=tL("alignToBottom"),E=tL("initialItemFinalLocationReached"),M=e?{}:{boxSizing:"border-box",...x?{display:"inline-block",height:"100%",marginLeft:0!==I?I:R?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:0!==I?I:R?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...E?{}:{visibility:"hidden"}};return e||0!==t.totalCount||null==y?(0,n.jsx)(C,{...tC(C,c),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:v,style:M,children:(e?t.topItems:t.items).map(e=>{let o=e.originalIndex,n=z(o+t.firstItemIndex,e.data,c);return k?(0,r.createElement)(w,{...tC(w,c),height:e.size,index:e.index,key:n,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?(0,r.createElement)(H,{...tC(H,c),"data-index":o,"data-item-index":e.index,"data-known-size":e.size,key:n,style:tp},h(e.index,c)):(0,r.createElement)(S,{...tC(S,c),...tS(S,e.data),"data-index":o,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:n,style:x?tx:tg},b?d(e.index,e.groupIndex,e.data,c):d(e.index,e.data,c))})}):(0,n.jsx)(y,{...tC(y,c)})}),tI={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},tT={outline:"none",overflowX:"auto",position:"relative"},ty=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:void 0}),tw={position:ts(),top:0,width:"100%",zIndex:1};function tC(e,t){if("string"!=typeof e)return{context:t}}function tS(e,t){return{item:"string"==typeof e?void 0:t}}let tH=r.memo(function(){let e=tL("HeaderComponent"),t=tj("headerHeight"),o=tL("HeaderFooterTag"),i=W(r.useMemo(()=>e=>{t(eu(e,"height"))},[t]),!0,tL("skipAnimationFrameInResizeObserver")),l=tL("context");return null!=e?(0,n.jsx)(o,{ref:i,children:(0,n.jsx)(e,{...tC(e,l)})}):null}),tz=r.memo(function(){let e=tL("FooterComponent"),t=tj("footerHeight"),o=tL("HeaderFooterTag"),i=W(r.useMemo(()=>e=>{t(eu(e,"height"))},[t]),!0,tL("skipAnimationFrameInResizeObserver")),l=tL("context");return null!=e?(0,n.jsx)(o,{ref:i,children:(0,n.jsx)(e,{...tC(e,l)})}):null});function tk({useEmitter:e,useEmitterValue:t,usePublisher:o}){return r.memo(function({children:r,style:i,context:l,...s}){let a=o("scrollContainerState"),u=t("ScrollerComponent"),d=o("smoothScrollTargetReached"),c=t("scrollerRef"),h=t("horizontalDirection")||!1,{scrollByCallback:m,scrollerRef:f,scrollToCallback:p}=td(a,d,u,c,void 0,h);return e("scrollTo",p),e("scrollBy",m),(0,n.jsx)(u,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:f,style:{...h?tT:tI,...i},tabIndex:0,...s,...tC(u,l),children:r})})}function tb({useEmitter:e,useEmitterValue:t,usePublisher:o}){return r.memo(function({children:i,style:l,context:s,...a}){let u=o("windowScrollContainerState"),d=t("ScrollerComponent"),c=o("smoothScrollTargetReached"),h=t("totalListHeight"),m=t("deviation"),f=t("customScrollParent"),p=r.useRef(null),{scrollByCallback:g,scrollerRef:x,scrollToCallback:v}=td(u,c,d,t("scrollerRef"),f);return ta(()=>(x.current=f||p.current?.ownerDocument.defaultView,()=>{x.current=null}),[x,f]),e("windowScrollTo",v),e("scrollBy",g),(0,n.jsx)(d,{ref:p,"data-virtuoso-scroller":!0,style:{position:"relative",...l,...0!==h?{height:h+m}:void 0},...a,...tC(d,s),children:i})})}let tR=({children:e})=>{let t=r.useContext(tn),o=tj("viewportHeight"),i=tj("fixedItemHeight"),l=tL("alignToBottom"),a=tL("horizontalDirection"),u=W(r.useMemo(()=>s(o,e=>eu(e,a?"width":"height")),[o,a]),!0,tL("skipAnimationFrameInResizeObserver"));return r.useEffect(()=>{t&&(o(t.viewportHeight),i(t.itemHeight))},[t,o,i]),(0,n.jsx)("div",{"data-viewport-type":"element",ref:u,style:ty(l),children:e})},tE=({children:e})=>{let t=r.useContext(tn),o=tj("windowViewportRect"),i=tj("fixedItemHeight"),l=_(o,tL("customScrollParent"),tL("skipAnimationFrameInResizeObserver")),s=tL("alignToBottom");return r.useEffect(()=>{t&&(i(t.itemHeight),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,i]),(0,n.jsx)("div",{"data-viewport-type":"window",ref:l,style:ty(s),children:e})},tM=({children:e})=>{let t=tL("TopItemListComponent")??"div",o=tL("headerHeight"),r={...tw,marginTop:`${o}px`},i=tL("context");return(0,n.jsx)(t,{style:r,...tC(t,i),children:e})},{Component:tB,useEmitter:tA,useEmitterValue:tL,usePublisher:tj}=to(tm,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},r.memo(function(e){let t=tL("useWindowScroll"),o=tL("topItemsIndexes").length>0,r=tL("customScrollParent"),i=tL("context");return(0,n.jsxs)(r||t?tO:tF,{...e,context:i,children:[o&&(0,n.jsx)(tM,{children:(0,n.jsx)(tv,{showTopList:!0})}),(0,n.jsxs)(r||t?tE:tR,{children:[(0,n.jsx)(tH,{}),(0,n.jsx)(tv,{}),(0,n.jsx)(tz,{})]})]})})),tF=tk({useEmitter:tA,useEmitterValue:tL,usePublisher:tj}),tO=tb({useEmitter:tA,useEmitterValue:tL,usePublisher:tj}),tP=tB,tW=M(()=>{let e=k(e=>(0,n.jsxs)("td",{children:["Item $",e]})),t=k(null),o=k(e=>(0,n.jsxs)("td",{colSpan:1e3,children:["Group ",e]})),r=k(null),i=k(null),l=k({}),s=k(tc),a=k(u),d=(e,t=null)=>b(w(l,T(t=>t[e]),v()),t);return{components:l,computeItemKey:s,context:t,EmptyPlaceholder:d("EmptyPlaceholder"),FillerRow:d("FillerRow"),fixedFooterContent:i,fixedHeaderContent:r,itemContent:e,groupContent:o,ScrollerComponent:d("Scroller","div"),scrollerRef:a,ScrollSeekPlaceholder:d("ScrollSeekPlaceholder"),TableBodyComponent:d("TableBody","tbody"),TableComponent:d("Table","table"),TableFooterComponent:d("TableFoot","tfoot"),TableHeadComponent:d("TableHead","thead"),TableRowComponent:d("TableRow","tr"),GroupComponent:d("Group","tr")}}),tV=M(([e,t])=>({...e,...t}),c(te,tW)),tD=({height:e})=>(0,n.jsx)("tr",{children:(0,n.jsx)("td",{style:{height:e}})}),tG=({height:e})=>(0,n.jsx)("tr",{children:(0,n.jsx)("td",{style:{border:0,height:e,padding:0}})}),t_={overflowAnchor:"none"},tN={position:ts(),zIndex:2,overflowAnchor:"none"},tq=r.memo(function({showTopList:e=!1}){let t=tX("listState"),o=tX("computeItemKey"),n=tX("firstItemIndex"),i=tX("context"),l=tX("isSeeking"),s=tX("fixedHeaderHeight"),a=tX("groupIndices").length>0,u=tX("itemContent"),d=tX("groupContent"),c=tX("ScrollSeekPlaceholder")??tD,h=tX("GroupComponent"),m=tX("TableRowComponent"),f=(e?t.topItems:[]).reduce((e,t,o)=>(0===o?e.push(t.size):e.push(e[o-1]+t.size),e),[]);return(e?t.topItems:t.items).map(t=>{let p=t.originalIndex,g=o(p+n,t.data,i),x=e?0===p?0:f[p-1]:0;return l?(0,r.createElement)(c,{...tC(c,i),height:t.size,index:t.index,key:g,type:t.type||"item"}):"group"===t.type?(0,r.createElement)(h,{...tC(h,i),"data-index":p,"data-item-index":t.index,"data-known-size":t.size,key:g,style:{...tN,top:s}},d(t.index,i)):(0,r.createElement)(m,{...tC(m,i),...tS(m,t.data),"data-index":p,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:g,style:e?{...tN,top:s+x}:t_},a?u(t.index,t.groupIndex,t.data,i):u(t.index,t.data,i))})}),tK=r.memo(function(){let e=tX("listState"),t=tX("topItemsIndexes").length>0,o=tZ("sizeRanges"),i=tX("useWindowScroll"),l=tX("customScrollParent"),s=tZ("windowScrollContainerState"),a=tZ("scrollContainerState"),u=tX("trackItemSizes"),{callbackRef:d,ref:c}=D(o,tX("itemSize"),u,l||i?s:a,tX("log"),void 0,l,!1,tX("skipAnimationFrameInResizeObserver")),[h,m]=r.useState(0);tY("deviation",e=>{h!==e&&(c.current.style.marginTop=`${e}px`,m(e))});let f=tX("EmptyPlaceholder"),p=tX("FillerRow")??tG,g=tX("TableBodyComponent"),x=tX("paddingTopAddition"),v=tX("statefulTotalCount"),I=tX("context");if(0===v&&null!=f)return(0,n.jsx)(f,{...tC(f,I)});let T=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),y=e.offsetTop+x+h-T,w=e.offsetBottom,C=y>0?(0,n.jsx)(p,{context:I,height:y},"padding-top"):null,S=w>0?(0,n.jsx)(p,{context:I,height:w},"padding-bottom"):null;return(0,n.jsxs)(g,{"data-testid":"virtuoso-item-list",ref:d,...tC(g,I),children:[C,t&&(0,n.jsx)(tq,{showTopList:!0}),(0,n.jsx)(tq,{}),S]})}),t$=({children:e})=>{let t=r.useContext(tn),o=tZ("viewportHeight"),i=tZ("fixedItemHeight"),l=W(r.useMemo(()=>s(o,e=>eu(e,"height")),[o]),!0,tX("skipAnimationFrameInResizeObserver"));return r.useEffect(()=>{t&&(o(t.viewportHeight),i(t.itemHeight))},[t,o,i]),(0,n.jsx)("div",{"data-viewport-type":"element",ref:l,style:ty(!1),children:e})},tU=({children:e})=>{let t=r.useContext(tn),o=tZ("windowViewportRect"),i=tZ("fixedItemHeight"),l=_(o,tX("customScrollParent"),tX("skipAnimationFrameInResizeObserver"));return r.useEffect(()=>{t&&(i(t.itemHeight),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,i]),(0,n.jsx)("div",{"data-viewport-type":"window",ref:l,style:ty(!1),children:e})},{useEmitter:tY,useEmitterValue:tX,usePublisher:tZ}=to(tV,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},r.memo(function(e){let t=tX("useWindowScroll"),o=tX("customScrollParent"),i=tZ("fixedHeaderHeight"),l=tZ("fixedFooterHeight"),a=tX("fixedHeaderContent"),u=tX("fixedFooterContent"),d=tX("context"),c=W(r.useMemo(()=>s(i,e=>eu(e,"height")),[i]),!0,tX("skipAnimationFrameInResizeObserver")),h=W(r.useMemo(()=>s(l,e=>eu(e,"height")),[l]),!0,tX("skipAnimationFrameInResizeObserver")),m=o||t?tQ:tJ,f=o||t?tU:t$,p=tX("TableComponent"),g=tX("TableHeadComponent"),x=tX("TableFooterComponent"),v=a?(0,n.jsx)(g,{ref:c,style:{position:"sticky",top:0,zIndex:2},...tC(g,d),children:a()},"TableHead"):null,I=u?(0,n.jsx)(x,{ref:h,style:{bottom:0,position:"sticky",zIndex:1},...tC(x,d),children:u()},"TableFoot"):null;return(0,n.jsx)(m,{...e,...tC(m,d),children:(0,n.jsx)(f,{children:(0,n.jsxs)(p,{style:{borderSpacing:0,overflowAnchor:"none"},...tC(p,d),children:[v,(0,n.jsx)(tK,{},"TableBody"),I]})})})})),tJ=tk({useEmitter:tY,useEmitterValue:tX,usePublisher:tZ}),tQ=tb({useEmitter:tY,useEmitterValue:tX,usePublisher:tZ}),t0={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},t1={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:t2,floor:t7,max:t5,min:t3,round:t4}=Math;function t6(e,t,o){return Array.from({length:t-e+1}).map((t,n)=>({data:null===o?null:o[n+e],index:n+e}))}function t8(e,t){return void 0!==e&&e.width===t.width&&e.height===t.height}function t9(e,t){return void 0!==e&&e.column===t.column&&e.row===t.row}let oe=M(([{increaseViewportBy:e,listBoundary:t,overscan:o,visibleRange:n},{footerHeight:r,headerHeight:i,scrollBy:l,scrollContainerState:s,scrollTo:a,scrollTop:u,smoothScrollTargetReached:d,viewportHeight:c},h,m,{didMount:g,propsReady:x},{customScrollParent:C,useWindowScroll:M,windowScrollContainerState:B,windowScrollTo:j,windowViewportRect:F},O])=>{let P=k(0),W=k(0),V=k(t0),D=k({height:0,width:0}),G=k({height:0,width:0}),_=R(),N=R(),q=k(0),K=k(null),$=k({column:0,row:0}),U=R(),Y=R(),X=k(!1),Z=k(0),J=k(!0),Q=k(!1),ee=k(!1);w(g,z(Z),I(([e,t])=>0!==t))(1,()=>{J(0,!1)}),w(A(g,J,G,D,Z,Q),I(([e,t,o,n,,r])=>e&&!t&&0!==o.height&&0!==n.height&&!r))(1,([,,,,e])=>{Q(0,!0),eb(1,()=>{_(0,e)}),p(w(u),()=>{t(0,[0,0]),J(0,!0)})}),f(w(Y,I(e=>null!=e&&e.scrollTop>0),y(0)),W),w(g,z(Y),I(([,e])=>null!=e))(1,([,e])=>{e&&(D(0,e.viewport),G(0,e.item),$(0,e.gap),e.scrollTop>0&&(X(0,!0),p(w(u,S(1)),e=>{X(0,!1)}),a(0,{top:e.scrollTop})))}),f(w(D,T(({height:e})=>e)),c),f(w(A(L(D,t8),L(G,t8),L($,(e,t)=>void 0!==e&&e.column===t.column&&e.row===t.row),L(u)),T(([e,t,o,n])=>({gap:o,item:t,scrollTop:n,viewport:e}))),U),f(w(A(L(P),n,L($,t9),L(G,t8),L(D,t8),L(K),L(W),L(X),L(J),L(Z)),I(([,,,,,,,e])=>!e),T(([e,[t,o],n,r,i,l,s,,a,u])=>{let d,c,{column:h,row:m}=n,{height:f,width:p}=r,{width:g}=i;if(0===s&&(0===e||0===g))return t0;if(0===p){var x;let t=eR(u,e),o=t+Math.max(s-1,0);return x=t6(t,o,l),{...t1,items:x}}let v=ot(g,p,h);a?0===t&&0===o&&s>0?(d=0,c=s-1):(d=v*t7((t+m)/(f+m)),c=t3(e-1,t5(c=v*t2((o+m)/(f+m))-1,v-1)),d=t3(c,t5(0,d))):(d=0,c=-1);let I=t6(d,c,l),{bottom:T,top:y}=oo(i,n,r,I),w=t2(e/v);return{bottom:T,itemHeight:f,items:I,itemWidth:p,offsetBottom:w*f+(w-1)*m-T,offsetTop:y,top:y}})),V),f(w(K,I(e=>null!==e),T(e=>e.length)),P),f(w(A(D,G,V,$),I(([e,t,{items:o}])=>o.length>0&&0!==t.height&&0!==e.height),T(([e,t,{items:o},n])=>{let{bottom:r,top:i}=oo(e,n,t,o);return[i,r]}),v(el)),t);let et=k(!1);f(w(u,z(et),T(([e,t])=>t||0!==e)),et);let eo=E(w(A(V,P),I(([{items:e}])=>e.length>0),z(et),I(([[e,t],o])=>{let n=e.items[e.items.length-1].index===t-1;return(o||e.bottom>0&&e.itemHeight>0&&0===e.offsetBottom&&e.items.length===t)&&n}),T(([[,e]])=>e-1),v())),en=E(w(L(V),I(({items:e})=>e.length>0&&0===e[0].index),y(0),v())),er=E(w(L(V),z(X),I(([{items:e},t])=>e.length>0&&!t),T(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),v(ei),H(0)));f(er,m.scrollSeekRangeChanged),f(w(_,z(D,G,P,$),T(([e,t,o,n,r])=>{let i=ez(e),{align:l,behavior:s,offset:a}=i,u=i.index;"LAST"===u&&(u=n-1);let d=on(t,r,o,u=t5(0,u,t3(n-1,u)));return"end"===l?d=t4(d-t.height+o.height):"center"===l&&(d=t4(d-t.height/2+o.height/2)),void 0!==a&&0!==a&&(d+=a),{behavior:s,top:d}})),a);let es=b(w(V,T(e=>e.offsetBottom+e.bottom)),0);return f(w(F,T(e=>({height:e.visibleHeight,width:e.visibleWidth}))),D),{customScrollParent:C,data:K,deviation:q,footerHeight:r,gap:$,headerHeight:i,increaseViewportBy:e,initialItemCount:W,itemDimensions:G,overscan:o,restoreStateFrom:Y,scrollBy:l,scrollContainerState:s,scrollHeight:N,scrollTo:a,scrollToIndex:_,scrollTop:u,smoothScrollTargetReached:d,totalCount:P,useWindowScroll:M,viewportDimensions:D,windowScrollContainerState:B,windowScrollTo:j,windowViewportRect:F,...m,gridState:V,horizontalDirection:ee,initialTopMostItemIndex:Z,totalListHeight:es,...h,endReached:eo,propsReady:x,rangeChanged:er,startReached:en,stateChanged:U,stateRestoreInProgress:X,...O}},c(eW,N,eL,e1,eS,e2,P));function ot(e,t,o){return t5(1,t7((e+o)/(t7(t)+o)))}function oo(e,t,o,n){let{height:r}=o;if(void 0===r||0===n.length)return{bottom:0,top:0};let i=on(e,t,o,n[0].index);return{bottom:on(e,t,o,n[n.length-1].index)+r,top:i}}function on(e,t,o,n){let r=t7(n/ot(e.width,o.width,t.column)),i=r*o.height+t5(0,r-1)*t.row;return i>0?i+t.row:i}let or=M(()=>{let e=k(e=>`Item ${e}`),t=k({}),o=k(null),n=k("virtuoso-grid-item"),r=k("virtuoso-grid-list"),i=k(tc),l=k("div"),s=k(u),a=(e,o=null)=>b(w(t,T(t=>t[e]),v()),o),d=k(!1),c=k(!1);return f(L(c),d),{components:t,computeItemKey:i,context:o,FooterComponent:a("Footer"),HeaderComponent:a("Header"),headerFooterTag:l,itemClassName:n,ItemComponent:a("Item","div"),itemContent:e,listClassName:r,ListComponent:a("List","div"),readyStateChanged:d,reportReadyState:c,ScrollerComponent:a("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:a("ScrollSeekPlaceholder","div")}}),oi=M(([e,t])=>({...e,...t}),c(oe,or)),ol=r.memo(function(){let e=oh("gridState"),t=oh("listClassName"),o=oh("itemClassName"),i=oh("itemContent"),l=oh("computeItemKey"),s=oh("isSeeking"),a=om("scrollHeight"),u=oh("ItemComponent"),d=oh("ListComponent"),c=oh("ScrollSeekPlaceholder"),h=oh("context"),m=om("itemDimensions"),f=om("gap"),p=oh("log"),g=oh("stateRestoreInProgress"),x=om("reportReadyState"),v=W(r.useMemo(()=>e=>{a(e.parentElement.parentElement.scrollHeight);let t=e.firstChild;if(null!==t){let{height:e,width:o}=t.getBoundingClientRect();m({height:e,width:o})}f({column:og("column-gap",getComputedStyle(e).columnGap,p),row:og("row-gap",getComputedStyle(e).rowGap,p)})},[a,m,f,p]),!0,!1);return ta(()=>{e.itemHeight>0&&e.itemWidth>0&&x(!0)},[e]),g?null:(0,n.jsx)(d,{className:t,ref:v,...tC(d,h),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{let a=l(t.index,t.data,h);return s?(0,n.jsx)(c,{...tC(c,h),height:e.itemHeight,index:t.index,width:e.itemWidth},a):(0,r.createElement)(u,{...tC(u,h),className:o,"data-index":t.index,key:a},i(t.index,t.data,h))})})}),os=r.memo(function(){let e=oh("HeaderComponent"),t=om("headerHeight"),o=oh("headerFooterTag"),i=W(r.useMemo(()=>e=>{t(eu(e,"height"))},[t]),!0,!1),l=oh("context");return null!=e?(0,n.jsx)(o,{ref:i,children:(0,n.jsx)(e,{...tC(e,l)})}):null}),oa=r.memo(function(){let e=oh("FooterComponent"),t=om("footerHeight"),o=oh("headerFooterTag"),i=W(r.useMemo(()=>e=>{t(eu(e,"height"))},[t]),!0,!1),l=oh("context");return null!=e?(0,n.jsx)(o,{ref:i,children:(0,n.jsx)(e,{...tC(e,l)})}):null}),ou=({children:e})=>{let t=r.useContext(tr),o=om("itemDimensions"),i=om("viewportDimensions"),l=W(r.useMemo(()=>e=>{i(e.getBoundingClientRect())},[i]),!0,!1);return r.useEffect(()=>{t&&(i({height:t.viewportHeight,width:t.viewportWidth}),o({height:t.itemHeight,width:t.itemWidth}))},[t,i,o]),(0,n.jsx)("div",{ref:l,style:ty(!1),children:e})},od=({children:e})=>{let t=r.useContext(tr),o=om("windowViewportRect"),i=om("itemDimensions"),l=_(o,oh("customScrollParent"),!1);return r.useEffect(()=>{t&&(i({height:t.itemHeight,width:t.itemWidth}),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,o,i]),(0,n.jsx)("div",{ref:l,style:ty(!1),children:e})},{useEmitter:oc,useEmitterValue:oh,usePublisher:om}=to(oi,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},r.memo(function({...e}){let t=oh("useWindowScroll"),o=oh("customScrollParent"),r=o||t?op:of,i=o||t?od:ou,l=oh("context");return(0,n.jsx)(r,{...e,...tC(r,l),children:(0,n.jsxs)(i,{children:[(0,n.jsx)(os,{}),(0,n.jsx)(ol,{}),(0,n.jsx)(oa,{})]})})})),of=tk({useEmitter:oc,useEmitterValue:oh,usePublisher:om}),op=tb({useEmitter:oc,useEmitterValue:oh,usePublisher:om});function og(e,t,o){return"normal"!==t&&t?.endsWith("px")!==!0&&o(`${e} was not resolved to pixel value correctly`,t,2),"normal"===t?0:parseInt(t??"0",10)}},67643:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},67885:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},71128:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]])},72700:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("wifi-off",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},75157:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("file-pen",[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]])},78132:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]])},78610:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},80772:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},86386:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(73015).A)("file-plus",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]])}}]);