@vectorize-io/hindsight-control-plane 0.1.9

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 (314) hide show
  1. package/bin/cli.js +86 -0
  2. package/package.json +69 -0
  3. package/public/favicon.png +0 -0
  4. package/public/logo.png +0 -0
  5. package/standalone/.next/BUILD_ID +1 -0
  6. package/standalone/.next/app-path-routes-manifest.json +24 -0
  7. package/standalone/.next/build-manifest.json +21 -0
  8. package/standalone/.next/package.json +1 -0
  9. package/standalone/.next/prerender-manifest.json +113 -0
  10. package/standalone/.next/required-server-files.json +317 -0
  11. package/standalone/.next/routes-manifest.json +193 -0
  12. package/standalone/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
  13. package/standalone/.next/server/app/_global-error/page/build-manifest.json +18 -0
  14. package/standalone/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
  15. package/standalone/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
  16. package/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
  17. package/standalone/.next/server/app/_global-error/page.js +10 -0
  18. package/standalone/.next/server/app/_global-error/page.js.map +5 -0
  19. package/standalone/.next/server/app/_global-error/page.js.nft.json +1 -0
  20. package/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +2 -0
  21. package/standalone/.next/server/app/_global-error.html +2 -0
  22. package/standalone/.next/server/app/_global-error.meta +15 -0
  23. package/standalone/.next/server/app/_global-error.rsc +12 -0
  24. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
  25. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +12 -0
  26. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +7 -0
  27. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +4 -0
  28. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  29. package/standalone/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
  30. package/standalone/.next/server/app/_not-found/page/build-manifest.json +18 -0
  31. package/standalone/.next/server/app/_not-found/page/next-font-manifest.json +6 -0
  32. package/standalone/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
  33. package/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
  34. package/standalone/.next/server/app/_not-found/page.js +13 -0
  35. package/standalone/.next/server/app/_not-found/page.js.map +5 -0
  36. package/standalone/.next/server/app/_not-found/page.js.nft.json +1 -0
  37. package/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +2 -0
  38. package/standalone/.next/server/app/_not-found.html +1 -0
  39. package/standalone/.next/server/app/_not-found.meta +16 -0
  40. package/standalone/.next/server/app/_not-found.rsc +16 -0
  41. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +16 -0
  42. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +8 -0
  43. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +7 -0
  44. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
  45. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +4 -0
  46. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -0
  47. package/standalone/.next/server/app/api/banks/route/app-paths-manifest.json +3 -0
  48. package/standalone/.next/server/app/api/banks/route/build-manifest.json +11 -0
  49. package/standalone/.next/server/app/api/banks/route/server-reference-manifest.json +4 -0
  50. package/standalone/.next/server/app/api/banks/route.js +6 -0
  51. package/standalone/.next/server/app/api/banks/route.js.map +5 -0
  52. package/standalone/.next/server/app/api/banks/route.js.nft.json +1 -0
  53. package/standalone/.next/server/app/api/banks/route_client-reference-manifest.js +2 -0
  54. package/standalone/.next/server/app/api/chunks/[chunkId]/route/app-paths-manifest.json +3 -0
  55. package/standalone/.next/server/app/api/chunks/[chunkId]/route/build-manifest.json +11 -0
  56. package/standalone/.next/server/app/api/chunks/[chunkId]/route/server-reference-manifest.json +4 -0
  57. package/standalone/.next/server/app/api/chunks/[chunkId]/route.js +6 -0
  58. package/standalone/.next/server/app/api/chunks/[chunkId]/route.js.map +5 -0
  59. package/standalone/.next/server/app/api/chunks/[chunkId]/route.js.nft.json +1 -0
  60. package/standalone/.next/server/app/api/chunks/[chunkId]/route_client-reference-manifest.js +2 -0
  61. package/standalone/.next/server/app/api/documents/[documentId]/route/app-paths-manifest.json +3 -0
  62. package/standalone/.next/server/app/api/documents/[documentId]/route/build-manifest.json +11 -0
  63. package/standalone/.next/server/app/api/documents/[documentId]/route/server-reference-manifest.json +4 -0
  64. package/standalone/.next/server/app/api/documents/[documentId]/route.js +6 -0
  65. package/standalone/.next/server/app/api/documents/[documentId]/route.js.map +5 -0
  66. package/standalone/.next/server/app/api/documents/[documentId]/route.js.nft.json +1 -0
  67. package/standalone/.next/server/app/api/documents/[documentId]/route_client-reference-manifest.js +2 -0
  68. package/standalone/.next/server/app/api/documents/route/app-paths-manifest.json +3 -0
  69. package/standalone/.next/server/app/api/documents/route/build-manifest.json +11 -0
  70. package/standalone/.next/server/app/api/documents/route/server-reference-manifest.json +4 -0
  71. package/standalone/.next/server/app/api/documents/route.js +6 -0
  72. package/standalone/.next/server/app/api/documents/route.js.map +5 -0
  73. package/standalone/.next/server/app/api/documents/route.js.nft.json +1 -0
  74. package/standalone/.next/server/app/api/documents/route_client-reference-manifest.js +2 -0
  75. package/standalone/.next/server/app/api/entities/[entityId]/regenerate/route/app-paths-manifest.json +3 -0
  76. package/standalone/.next/server/app/api/entities/[entityId]/regenerate/route/build-manifest.json +11 -0
  77. package/standalone/.next/server/app/api/entities/[entityId]/regenerate/route/server-reference-manifest.json +4 -0
  78. package/standalone/.next/server/app/api/entities/[entityId]/regenerate/route.js +6 -0
  79. package/standalone/.next/server/app/api/entities/[entityId]/regenerate/route.js.map +5 -0
  80. package/standalone/.next/server/app/api/entities/[entityId]/regenerate/route.js.nft.json +1 -0
  81. package/standalone/.next/server/app/api/entities/[entityId]/regenerate/route_client-reference-manifest.js +2 -0
  82. package/standalone/.next/server/app/api/entities/[entityId]/route/app-paths-manifest.json +3 -0
  83. package/standalone/.next/server/app/api/entities/[entityId]/route/build-manifest.json +11 -0
  84. package/standalone/.next/server/app/api/entities/[entityId]/route/server-reference-manifest.json +4 -0
  85. package/standalone/.next/server/app/api/entities/[entityId]/route.js +6 -0
  86. package/standalone/.next/server/app/api/entities/[entityId]/route.js.map +5 -0
  87. package/standalone/.next/server/app/api/entities/[entityId]/route.js.nft.json +1 -0
  88. package/standalone/.next/server/app/api/entities/[entityId]/route_client-reference-manifest.js +2 -0
  89. package/standalone/.next/server/app/api/entities/route/app-paths-manifest.json +3 -0
  90. package/standalone/.next/server/app/api/entities/route/build-manifest.json +11 -0
  91. package/standalone/.next/server/app/api/entities/route/server-reference-manifest.json +4 -0
  92. package/standalone/.next/server/app/api/entities/route.js +6 -0
  93. package/standalone/.next/server/app/api/entities/route.js.map +5 -0
  94. package/standalone/.next/server/app/api/entities/route.js.nft.json +1 -0
  95. package/standalone/.next/server/app/api/entities/route_client-reference-manifest.js +2 -0
  96. package/standalone/.next/server/app/api/graph/route/app-paths-manifest.json +3 -0
  97. package/standalone/.next/server/app/api/graph/route/build-manifest.json +11 -0
  98. package/standalone/.next/server/app/api/graph/route/server-reference-manifest.json +4 -0
  99. package/standalone/.next/server/app/api/graph/route.js +6 -0
  100. package/standalone/.next/server/app/api/graph/route.js.map +5 -0
  101. package/standalone/.next/server/app/api/graph/route.js.nft.json +1 -0
  102. package/standalone/.next/server/app/api/graph/route_client-reference-manifest.js +2 -0
  103. package/standalone/.next/server/app/api/health/route/app-paths-manifest.json +3 -0
  104. package/standalone/.next/server/app/api/health/route/build-manifest.json +11 -0
  105. package/standalone/.next/server/app/api/health/route/server-reference-manifest.json +4 -0
  106. package/standalone/.next/server/app/api/health/route.js +6 -0
  107. package/standalone/.next/server/app/api/health/route.js.map +5 -0
  108. package/standalone/.next/server/app/api/health/route.js.nft.json +1 -0
  109. package/standalone/.next/server/app/api/health/route_client-reference-manifest.js +2 -0
  110. package/standalone/.next/server/app/api/list/route/app-paths-manifest.json +3 -0
  111. package/standalone/.next/server/app/api/list/route/build-manifest.json +11 -0
  112. package/standalone/.next/server/app/api/list/route/server-reference-manifest.json +4 -0
  113. package/standalone/.next/server/app/api/list/route.js +6 -0
  114. package/standalone/.next/server/app/api/list/route.js.map +5 -0
  115. package/standalone/.next/server/app/api/list/route.js.nft.json +1 -0
  116. package/standalone/.next/server/app/api/list/route_client-reference-manifest.js +2 -0
  117. package/standalone/.next/server/app/api/memories/retain/route/app-paths-manifest.json +3 -0
  118. package/standalone/.next/server/app/api/memories/retain/route/build-manifest.json +11 -0
  119. package/standalone/.next/server/app/api/memories/retain/route/server-reference-manifest.json +4 -0
  120. package/standalone/.next/server/app/api/memories/retain/route.js +6 -0
  121. package/standalone/.next/server/app/api/memories/retain/route.js.map +5 -0
  122. package/standalone/.next/server/app/api/memories/retain/route.js.nft.json +1 -0
  123. package/standalone/.next/server/app/api/memories/retain/route_client-reference-manifest.js +2 -0
  124. package/standalone/.next/server/app/api/memories/retain_async/route/app-paths-manifest.json +3 -0
  125. package/standalone/.next/server/app/api/memories/retain_async/route/build-manifest.json +11 -0
  126. package/standalone/.next/server/app/api/memories/retain_async/route/server-reference-manifest.json +4 -0
  127. package/standalone/.next/server/app/api/memories/retain_async/route.js +6 -0
  128. package/standalone/.next/server/app/api/memories/retain_async/route.js.map +5 -0
  129. package/standalone/.next/server/app/api/memories/retain_async/route.js.nft.json +1 -0
  130. package/standalone/.next/server/app/api/memories/retain_async/route_client-reference-manifest.js +2 -0
  131. package/standalone/.next/server/app/api/operations/[agentId]/route/app-paths-manifest.json +3 -0
  132. package/standalone/.next/server/app/api/operations/[agentId]/route/build-manifest.json +11 -0
  133. package/standalone/.next/server/app/api/operations/[agentId]/route/server-reference-manifest.json +4 -0
  134. package/standalone/.next/server/app/api/operations/[agentId]/route.js +6 -0
  135. package/standalone/.next/server/app/api/operations/[agentId]/route.js.map +5 -0
  136. package/standalone/.next/server/app/api/operations/[agentId]/route.js.nft.json +1 -0
  137. package/standalone/.next/server/app/api/operations/[agentId]/route_client-reference-manifest.js +2 -0
  138. package/standalone/.next/server/app/api/profile/[bankId]/route/app-paths-manifest.json +3 -0
  139. package/standalone/.next/server/app/api/profile/[bankId]/route/build-manifest.json +11 -0
  140. package/standalone/.next/server/app/api/profile/[bankId]/route/server-reference-manifest.json +4 -0
  141. package/standalone/.next/server/app/api/profile/[bankId]/route.js +6 -0
  142. package/standalone/.next/server/app/api/profile/[bankId]/route.js.map +5 -0
  143. package/standalone/.next/server/app/api/profile/[bankId]/route.js.nft.json +1 -0
  144. package/standalone/.next/server/app/api/profile/[bankId]/route_client-reference-manifest.js +2 -0
  145. package/standalone/.next/server/app/api/recall/route/app-paths-manifest.json +3 -0
  146. package/standalone/.next/server/app/api/recall/route/build-manifest.json +11 -0
  147. package/standalone/.next/server/app/api/recall/route/server-reference-manifest.json +4 -0
  148. package/standalone/.next/server/app/api/recall/route.js +6 -0
  149. package/standalone/.next/server/app/api/recall/route.js.map +5 -0
  150. package/standalone/.next/server/app/api/recall/route.js.nft.json +1 -0
  151. package/standalone/.next/server/app/api/recall/route_client-reference-manifest.js +2 -0
  152. package/standalone/.next/server/app/api/reflect/route/app-paths-manifest.json +3 -0
  153. package/standalone/.next/server/app/api/reflect/route/build-manifest.json +11 -0
  154. package/standalone/.next/server/app/api/reflect/route/server-reference-manifest.json +4 -0
  155. package/standalone/.next/server/app/api/reflect/route.js +6 -0
  156. package/standalone/.next/server/app/api/reflect/route.js.map +5 -0
  157. package/standalone/.next/server/app/api/reflect/route.js.nft.json +1 -0
  158. package/standalone/.next/server/app/api/reflect/route_client-reference-manifest.js +2 -0
  159. package/standalone/.next/server/app/api/stats/[agentId]/route/app-paths-manifest.json +3 -0
  160. package/standalone/.next/server/app/api/stats/[agentId]/route/build-manifest.json +11 -0
  161. package/standalone/.next/server/app/api/stats/[agentId]/route/server-reference-manifest.json +4 -0
  162. package/standalone/.next/server/app/api/stats/[agentId]/route.js +6 -0
  163. package/standalone/.next/server/app/api/stats/[agentId]/route.js.map +5 -0
  164. package/standalone/.next/server/app/api/stats/[agentId]/route.js.nft.json +1 -0
  165. package/standalone/.next/server/app/api/stats/[agentId]/route_client-reference-manifest.js +2 -0
  166. package/standalone/.next/server/app/banks/[bankId]/page/app-paths-manifest.json +3 -0
  167. package/standalone/.next/server/app/banks/[bankId]/page/build-manifest.json +18 -0
  168. package/standalone/.next/server/app/banks/[bankId]/page/next-font-manifest.json +6 -0
  169. package/standalone/.next/server/app/banks/[bankId]/page/react-loadable-manifest.json +1 -0
  170. package/standalone/.next/server/app/banks/[bankId]/page/server-reference-manifest.json +4 -0
  171. package/standalone/.next/server/app/banks/[bankId]/page.js +15 -0
  172. package/standalone/.next/server/app/banks/[bankId]/page.js.map +5 -0
  173. package/standalone/.next/server/app/banks/[bankId]/page.js.nft.json +1 -0
  174. package/standalone/.next/server/app/banks/[bankId]/page_client-reference-manifest.js +2 -0
  175. package/standalone/.next/server/app/dashboard/page/app-paths-manifest.json +3 -0
  176. package/standalone/.next/server/app/dashboard/page/build-manifest.json +18 -0
  177. package/standalone/.next/server/app/dashboard/page/next-font-manifest.json +6 -0
  178. package/standalone/.next/server/app/dashboard/page/react-loadable-manifest.json +1 -0
  179. package/standalone/.next/server/app/dashboard/page/server-reference-manifest.json +4 -0
  180. package/standalone/.next/server/app/dashboard/page.js +15 -0
  181. package/standalone/.next/server/app/dashboard/page.js.map +5 -0
  182. package/standalone/.next/server/app/dashboard/page.js.nft.json +1 -0
  183. package/standalone/.next/server/app/dashboard/page_client-reference-manifest.js +2 -0
  184. package/standalone/.next/server/app/dashboard.html +1 -0
  185. package/standalone/.next/server/app/dashboard.meta +15 -0
  186. package/standalone/.next/server/app/dashboard.rsc +20 -0
  187. package/standalone/.next/server/app/dashboard.segments/_full.segment.rsc +20 -0
  188. package/standalone/.next/server/app/dashboard.segments/_head.segment.rsc +8 -0
  189. package/standalone/.next/server/app/dashboard.segments/_index.segment.rsc +7 -0
  190. package/standalone/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -0
  191. package/standalone/.next/server/app/dashboard.segments/dashboard/__PAGE__.segment.rsc +9 -0
  192. package/standalone/.next/server/app/dashboard.segments/dashboard.segment.rsc +4 -0
  193. package/standalone/.next/server/app/index.html +1 -0
  194. package/standalone/.next/server/app/index.meta +16 -0
  195. package/standalone/.next/server/app/index.rsc +17 -0
  196. package/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -0
  197. package/standalone/.next/server/app/index.segments/_full.segment.rsc +17 -0
  198. package/standalone/.next/server/app/index.segments/_head.segment.rsc +8 -0
  199. package/standalone/.next/server/app/index.segments/_index.segment.rsc +7 -0
  200. package/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -0
  201. package/standalone/.next/server/app/page/app-paths-manifest.json +3 -0
  202. package/standalone/.next/server/app/page/build-manifest.json +18 -0
  203. package/standalone/.next/server/app/page/next-font-manifest.json +6 -0
  204. package/standalone/.next/server/app/page/react-loadable-manifest.json +1 -0
  205. package/standalone/.next/server/app/page/server-reference-manifest.json +4 -0
  206. package/standalone/.next/server/app/page.js +16 -0
  207. package/standalone/.next/server/app/page.js.map +5 -0
  208. package/standalone/.next/server/app/page.js.nft.json +1 -0
  209. package/standalone/.next/server/app/page_client-reference-manifest.js +2 -0
  210. package/standalone/.next/server/app-paths-manifest.json +24 -0
  211. package/standalone/.next/server/chunks/4ca55_ndsight-control-plane__next-internal_server_app_api_banks_route_actions_99be6b43.js +3 -0
  212. package/standalone/.next/server/chunks/4ca55_ndsight-control-plane__next-internal_server_app_api_graph_route_actions_01c8a147.js +3 -0
  213. package/standalone/.next/server/chunks/5512b_dsight-control-plane__next-internal_server_app_api_health_route_actions_9dd1d809.js +3 -0
  214. package/standalone/.next/server/chunks/5512b_dsight-control-plane__next-internal_server_app_api_recall_route_actions_154c90a0.js +3 -0
  215. package/standalone/.next/server/chunks/79729_indsight-control-plane__next-internal_server_app_api_list_route_actions_928a8078.js +3 -0
  216. package/standalone/.next/server/chunks/[root-of-the-server]__02a1e7f7._.js +3 -0
  217. package/standalone/.next/server/chunks/[root-of-the-server]__0f1b189c._.js +3 -0
  218. package/standalone/.next/server/chunks/[root-of-the-server]__228c769f._.js +3 -0
  219. package/standalone/.next/server/chunks/[root-of-the-server]__317b54d0._.js +21 -0
  220. package/standalone/.next/server/chunks/[root-of-the-server]__464d3847._.js +3 -0
  221. package/standalone/.next/server/chunks/[root-of-the-server]__5e1d146d._.js +3 -0
  222. package/standalone/.next/server/chunks/[root-of-the-server]__6ee44ea3._.js +3 -0
  223. package/standalone/.next/server/chunks/[root-of-the-server]__73093267._.js +3 -0
  224. package/standalone/.next/server/chunks/[root-of-the-server]__81c0d784._.js +3 -0
  225. package/standalone/.next/server/chunks/[root-of-the-server]__9a7529ab._.js +3 -0
  226. package/standalone/.next/server/chunks/[root-of-the-server]__9c3dd746._.js +3 -0
  227. package/standalone/.next/server/chunks/[root-of-the-server]__bae0f53c._.js +3 -0
  228. package/standalone/.next/server/chunks/[root-of-the-server]__be9afc00._.js +3 -0
  229. package/standalone/.next/server/chunks/[root-of-the-server]__d2485edb._.js +3 -0
  230. package/standalone/.next/server/chunks/[root-of-the-server]__d4b39930._.js +3 -0
  231. package/standalone/.next/server/chunks/[root-of-the-server]__d4f9d631._.js +3 -0
  232. package/standalone/.next/server/chunks/[root-of-the-server]__e5a6b81d._.js +3 -0
  233. package/standalone/.next/server/chunks/[root-of-the-server]__f318615b._.js +3 -0
  234. package/standalone/.next/server/chunks/[turbopack]_runtime.js +770 -0
  235. package/standalone/.next/server/chunks/a6ea4_server_app_api_entities_[entityId]_regenerate_route_actions_3253250f.js +3 -0
  236. package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_chunks_[chunkId]_route_actions_03be08f6.js +3 -0
  237. package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_documents_[documentId]_route_actions_025f2dd6.js +3 -0
  238. package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_documents_route_actions_fca16a88.js +3 -0
  239. package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_entities_[entityId]_route_actions_c338d0cd.js +3 -0
  240. package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_entities_route_actions_f5ea1ca0.js +3 -0
  241. package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_memories_retain_async_route_actions_c08bfcdb.js +3 -0
  242. package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_memories_retain_route_actions_d10f6a07.js +3 -0
  243. package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_operations_[agentId]_route_actions_1f7c4bc6.js +3 -0
  244. package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_profile_[bankId]_route_actions_22dd8677.js +3 -0
  245. package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_reflect_route_actions_0b8dd978.js +3 -0
  246. package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_stats_[agentId]_route_actions_17816f15.js +3 -0
  247. package/standalone/.next/server/chunks/ssr/4ca55_ndsight-control-plane__next-internal_server_app__not-found_page_actions_a6d92cb7.js +3 -0
  248. package/standalone/.next/server/chunks/ssr/79729_indsight-control-plane__next-internal_server_app_dashboard_page_actions_aff4b92b.js +3 -0
  249. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__2454dfbf._.js +3 -0
  250. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__3f6f18bb._.js +3 -0
  251. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__6199c710._.js +3 -0
  252. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__655f8d11._.js +6 -0
  253. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__8dd83d7a._.js +3 -0
  254. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__915ad491._.js +3 -0
  255. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__b9356576._.js +4 -0
  256. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__bce2f57e._.js +3 -0
  257. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__d88eb440._.js +3 -0
  258. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__e93b5ed6._.js +3 -0
  259. package/standalone/.next/server/chunks/ssr/[turbopack]_runtime.js +770 -0
  260. package/standalone/.next/server/chunks/ssr/_26df66d0._.js +4 -0
  261. package/standalone/.next/server/chunks/ssr/_3476210c._.js +6 -0
  262. package/standalone/.next/server/chunks/ssr/_453ded79._.js +3 -0
  263. package/standalone/.next/server/chunks/ssr/_53a4aa41._.js +4 -0
  264. package/standalone/.next/server/chunks/ssr/_5e906836._.js +9 -0
  265. package/standalone/.next/server/chunks/ssr/_8362f37b._.js +6 -0
  266. package/standalone/.next/server/chunks/ssr/_944e56a6._.js +4 -0
  267. package/standalone/.next/server/chunks/ssr/_ad0e821a._.js +3 -0
  268. package/standalone/.next/server/chunks/ssr/e51bf__next-internal_server_app__global-error_page_actions_1e722cdc.js +3 -0
  269. package/standalone/.next/server/chunks/ssr/e51bf__next-internal_server_app_banks_[bankId]_page_actions_7613b8e1.js +3 -0
  270. package/standalone/.next/server/chunks/ssr/hindsight-control-plane__next-internal_server_app_page_actions_5b200f30.js +3 -0
  271. package/standalone/.next/server/chunks/ssr/hindsight-control-plane_src_fe96d618._.js +3 -0
  272. package/standalone/.next/server/chunks/ssr/node_modules_5363a9de._.js +3 -0
  273. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_08570d7f._.js +4 -0
  274. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_cc88faaa._.js +3 -0
  275. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_9774470f._.js +3 -0
  276. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_45780354.js +3 -0
  277. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js +3 -0
  278. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_15817684.js +3 -0
  279. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_3fe9760a._.js +6 -0
  280. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_89742413.js +4 -0
  281. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_server_route-modules_app-page_vendored_ssr_8ca85a16._.js +3 -0
  282. package/standalone/.next/server/functions-config-manifest.json +4 -0
  283. package/standalone/.next/server/middleware-build-manifest.js +22 -0
  284. package/standalone/.next/server/middleware-manifest.json +6 -0
  285. package/standalone/.next/server/next-font-manifest.js +1 -0
  286. package/standalone/.next/server/next-font-manifest.json +6 -0
  287. package/standalone/.next/server/pages/404.html +1 -0
  288. package/standalone/.next/server/pages/500.html +2 -0
  289. package/standalone/.next/server/pages-manifest.json +4 -0
  290. package/standalone/.next/server/server-reference-manifest.js +1 -0
  291. package/standalone/.next/server/server-reference-manifest.json +5 -0
  292. package/standalone/.next/static/chunks/023d923a37d494fc.js +1 -0
  293. package/standalone/.next/static/chunks/066a685143de5f7e.js +7 -0
  294. package/standalone/.next/static/chunks/0e1b9f3295e06ab1.js +1 -0
  295. package/standalone/.next/static/chunks/247eb132b7f7b574.js +1 -0
  296. package/standalone/.next/static/chunks/497f7b5edc7d3fce.js +1 -0
  297. package/standalone/.next/static/chunks/4a2e6ca9bc162ffe.js +4 -0
  298. package/standalone/.next/static/chunks/5d98431bbd7c934d.js +1 -0
  299. package/standalone/.next/static/chunks/8edb6029308e90e6.css +1 -0
  300. package/standalone/.next/static/chunks/9ab4ce518df78558.css +2 -0
  301. package/standalone/.next/static/chunks/a6dad97d9634a72d.js +1 -0
  302. package/standalone/.next/static/chunks/b6f4e02e299e89ec.js +1 -0
  303. package/standalone/.next/static/chunks/b93cf0798d24e38a.js +1 -0
  304. package/standalone/.next/static/chunks/bc4b7a284f8824f8.js +1 -0
  305. package/standalone/.next/static/chunks/d0cdc56d06040c69.js +2 -0
  306. package/standalone/.next/static/chunks/ff1a16fafef87110.js +1 -0
  307. package/standalone/.next/static/chunks/turbopack-030018f439265ea0.js +3 -0
  308. package/standalone/.next/static/sW64pgiMutF_hND5cO6Oe/_buildManifest.js +11 -0
  309. package/standalone/.next/static/sW64pgiMutF_hND5cO6Oe/_clientMiddlewareManifest.json +1 -0
  310. package/standalone/.next/static/sW64pgiMutF_hND5cO6Oe/_ssgManifest.js +1 -0
  311. package/standalone/package.json +69 -0
  312. package/standalone/public/favicon.png +0 -0
  313. package/standalone/public/logo.png +0 -0
  314. package/standalone/server.js +38 -0
@@ -0,0 +1,770 @@
1
+ const RUNTIME_PUBLIC_PATH = "server/chunks/[turbopack]_runtime.js";
2
+ const RELATIVE_ROOT_PATH = "../..";
3
+ const ASSET_PREFIX = "/";
4
+ /**
5
+ * This file contains runtime types and functions that are shared between all
6
+ * TurboPack ECMAScript runtimes.
7
+ *
8
+ * It will be prepended to the runtime code of each runtime.
9
+ */ /* eslint-disable @typescript-eslint/no-unused-vars */ /// <reference path="./runtime-types.d.ts" />
10
+ const REEXPORTED_OBJECTS = new WeakMap();
11
+ /**
12
+ * Constructs the `__turbopack_context__` object for a module.
13
+ */ function Context(module, exports) {
14
+ this.m = module;
15
+ // We need to store this here instead of accessing it from the module object to:
16
+ // 1. Make it available to factories directly, since we rewrite `this` to
17
+ // `__turbopack_context__.e` in CJS modules.
18
+ // 2. Support async modules which rewrite `module.exports` to a promise, so we
19
+ // can still access the original exports object from functions like
20
+ // `esmExport`
21
+ // Ideally we could find a new approach for async modules and drop this property altogether.
22
+ this.e = exports;
23
+ }
24
+ const contextPrototype = Context.prototype;
25
+ const hasOwnProperty = Object.prototype.hasOwnProperty;
26
+ const toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag;
27
+ function defineProp(obj, name, options) {
28
+ if (!hasOwnProperty.call(obj, name)) Object.defineProperty(obj, name, options);
29
+ }
30
+ function getOverwrittenModule(moduleCache, id) {
31
+ let module = moduleCache[id];
32
+ if (!module) {
33
+ // This is invoked when a module is merged into another module, thus it wasn't invoked via
34
+ // instantiateModule and the cache entry wasn't created yet.
35
+ module = createModuleObject(id);
36
+ moduleCache[id] = module;
37
+ }
38
+ return module;
39
+ }
40
+ /**
41
+ * Creates the module object. Only done here to ensure all module objects have the same shape.
42
+ */ function createModuleObject(id) {
43
+ return {
44
+ exports: {},
45
+ error: undefined,
46
+ id,
47
+ namespaceObject: undefined
48
+ };
49
+ }
50
+ const BindingTag_Value = 0;
51
+ /**
52
+ * Adds the getters to the exports object.
53
+ */ function esm(exports, bindings) {
54
+ defineProp(exports, '__esModule', {
55
+ value: true
56
+ });
57
+ if (toStringTag) defineProp(exports, toStringTag, {
58
+ value: 'Module'
59
+ });
60
+ let i = 0;
61
+ while(i < bindings.length){
62
+ const propName = bindings[i++];
63
+ const tagOrFunction = bindings[i++];
64
+ if (typeof tagOrFunction === 'number') {
65
+ if (tagOrFunction === BindingTag_Value) {
66
+ defineProp(exports, propName, {
67
+ value: bindings[i++],
68
+ enumerable: true,
69
+ writable: false
70
+ });
71
+ } else {
72
+ throw new Error(`unexpected tag: ${tagOrFunction}`);
73
+ }
74
+ } else {
75
+ const getterFn = tagOrFunction;
76
+ if (typeof bindings[i] === 'function') {
77
+ const setterFn = bindings[i++];
78
+ defineProp(exports, propName, {
79
+ get: getterFn,
80
+ set: setterFn,
81
+ enumerable: true
82
+ });
83
+ } else {
84
+ defineProp(exports, propName, {
85
+ get: getterFn,
86
+ enumerable: true
87
+ });
88
+ }
89
+ }
90
+ }
91
+ Object.seal(exports);
92
+ }
93
+ /**
94
+ * Makes the module an ESM with exports
95
+ */ function esmExport(bindings, id) {
96
+ let module;
97
+ let exports;
98
+ if (id != null) {
99
+ module = getOverwrittenModule(this.c, id);
100
+ exports = module.exports;
101
+ } else {
102
+ module = this.m;
103
+ exports = this.e;
104
+ }
105
+ module.namespaceObject = exports;
106
+ esm(exports, bindings);
107
+ }
108
+ contextPrototype.s = esmExport;
109
+ function ensureDynamicExports(module, exports) {
110
+ let reexportedObjects = REEXPORTED_OBJECTS.get(module);
111
+ if (!reexportedObjects) {
112
+ REEXPORTED_OBJECTS.set(module, reexportedObjects = []);
113
+ module.exports = module.namespaceObject = new Proxy(exports, {
114
+ get (target, prop) {
115
+ if (hasOwnProperty.call(target, prop) || prop === 'default' || prop === '__esModule') {
116
+ return Reflect.get(target, prop);
117
+ }
118
+ for (const obj of reexportedObjects){
119
+ const value = Reflect.get(obj, prop);
120
+ if (value !== undefined) return value;
121
+ }
122
+ return undefined;
123
+ },
124
+ ownKeys (target) {
125
+ const keys = Reflect.ownKeys(target);
126
+ for (const obj of reexportedObjects){
127
+ for (const key of Reflect.ownKeys(obj)){
128
+ if (key !== 'default' && !keys.includes(key)) keys.push(key);
129
+ }
130
+ }
131
+ return keys;
132
+ }
133
+ });
134
+ }
135
+ return reexportedObjects;
136
+ }
137
+ /**
138
+ * Dynamically exports properties from an object
139
+ */ function dynamicExport(object, id) {
140
+ let module;
141
+ let exports;
142
+ if (id != null) {
143
+ module = getOverwrittenModule(this.c, id);
144
+ exports = module.exports;
145
+ } else {
146
+ module = this.m;
147
+ exports = this.e;
148
+ }
149
+ const reexportedObjects = ensureDynamicExports(module, exports);
150
+ if (typeof object === 'object' && object !== null) {
151
+ reexportedObjects.push(object);
152
+ }
153
+ }
154
+ contextPrototype.j = dynamicExport;
155
+ function exportValue(value, id) {
156
+ let module;
157
+ if (id != null) {
158
+ module = getOverwrittenModule(this.c, id);
159
+ } else {
160
+ module = this.m;
161
+ }
162
+ module.exports = value;
163
+ }
164
+ contextPrototype.v = exportValue;
165
+ function exportNamespace(namespace, id) {
166
+ let module;
167
+ if (id != null) {
168
+ module = getOverwrittenModule(this.c, id);
169
+ } else {
170
+ module = this.m;
171
+ }
172
+ module.exports = module.namespaceObject = namespace;
173
+ }
174
+ contextPrototype.n = exportNamespace;
175
+ function createGetter(obj, key) {
176
+ return ()=>obj[key];
177
+ }
178
+ /**
179
+ * @returns prototype of the object
180
+ */ const getProto = Object.getPrototypeOf ? (obj)=>Object.getPrototypeOf(obj) : (obj)=>obj.__proto__;
181
+ /** Prototypes that are not expanded for exports */ const LEAF_PROTOTYPES = [
182
+ null,
183
+ getProto({}),
184
+ getProto([]),
185
+ getProto(getProto)
186
+ ];
187
+ /**
188
+ * @param raw
189
+ * @param ns
190
+ * @param allowExportDefault
191
+ * * `false`: will have the raw module as default export
192
+ * * `true`: will have the default property as default export
193
+ */ function interopEsm(raw, ns, allowExportDefault) {
194
+ const bindings = [];
195
+ let defaultLocation = -1;
196
+ for(let current = raw; (typeof current === 'object' || typeof current === 'function') && !LEAF_PROTOTYPES.includes(current); current = getProto(current)){
197
+ for (const key of Object.getOwnPropertyNames(current)){
198
+ bindings.push(key, createGetter(raw, key));
199
+ if (defaultLocation === -1 && key === 'default') {
200
+ defaultLocation = bindings.length - 1;
201
+ }
202
+ }
203
+ }
204
+ // this is not really correct
205
+ // we should set the `default` getter if the imported module is a `.cjs file`
206
+ if (!(allowExportDefault && defaultLocation >= 0)) {
207
+ // Replace the binding with one for the namespace itself in order to preserve iteration order.
208
+ if (defaultLocation >= 0) {
209
+ // Replace the getter with the value
210
+ bindings.splice(defaultLocation, 1, BindingTag_Value, raw);
211
+ } else {
212
+ bindings.push('default', BindingTag_Value, raw);
213
+ }
214
+ }
215
+ esm(ns, bindings);
216
+ return ns;
217
+ }
218
+ function createNS(raw) {
219
+ if (typeof raw === 'function') {
220
+ return function(...args) {
221
+ return raw.apply(this, args);
222
+ };
223
+ } else {
224
+ return Object.create(null);
225
+ }
226
+ }
227
+ function esmImport(id) {
228
+ const module = getOrInstantiateModuleFromParent(id, this.m);
229
+ // any ES module has to have `module.namespaceObject` defined.
230
+ if (module.namespaceObject) return module.namespaceObject;
231
+ // only ESM can be an async module, so we don't need to worry about exports being a promise here.
232
+ const raw = module.exports;
233
+ return module.namespaceObject = interopEsm(raw, createNS(raw), raw && raw.__esModule);
234
+ }
235
+ contextPrototype.i = esmImport;
236
+ function asyncLoader(moduleId) {
237
+ const loader = this.r(moduleId);
238
+ return loader(esmImport.bind(this));
239
+ }
240
+ contextPrototype.A = asyncLoader;
241
+ // Add a simple runtime require so that environments without one can still pass
242
+ // `typeof require` CommonJS checks so that exports are correctly registered.
243
+ const runtimeRequire = // @ts-ignore
244
+ typeof require === 'function' ? require : function require1() {
245
+ throw new Error('Unexpected use of runtime require');
246
+ };
247
+ contextPrototype.t = runtimeRequire;
248
+ function commonJsRequire(id) {
249
+ return getOrInstantiateModuleFromParent(id, this.m).exports;
250
+ }
251
+ contextPrototype.r = commonJsRequire;
252
+ /**
253
+ * `require.context` and require/import expression runtime.
254
+ */ function moduleContext(map) {
255
+ function moduleContext(id) {
256
+ if (hasOwnProperty.call(map, id)) {
257
+ return map[id].module();
258
+ }
259
+ const e = new Error(`Cannot find module '${id}'`);
260
+ e.code = 'MODULE_NOT_FOUND';
261
+ throw e;
262
+ }
263
+ moduleContext.keys = ()=>{
264
+ return Object.keys(map);
265
+ };
266
+ moduleContext.resolve = (id)=>{
267
+ if (hasOwnProperty.call(map, id)) {
268
+ return map[id].id();
269
+ }
270
+ const e = new Error(`Cannot find module '${id}'`);
271
+ e.code = 'MODULE_NOT_FOUND';
272
+ throw e;
273
+ };
274
+ moduleContext.import = async (id)=>{
275
+ return await moduleContext(id);
276
+ };
277
+ return moduleContext;
278
+ }
279
+ contextPrototype.f = moduleContext;
280
+ /**
281
+ * Returns the path of a chunk defined by its data.
282
+ */ function getChunkPath(chunkData) {
283
+ return typeof chunkData === 'string' ? chunkData : chunkData.path;
284
+ }
285
+ function isPromise(maybePromise) {
286
+ return maybePromise != null && typeof maybePromise === 'object' && 'then' in maybePromise && typeof maybePromise.then === 'function';
287
+ }
288
+ function isAsyncModuleExt(obj) {
289
+ return turbopackQueues in obj;
290
+ }
291
+ function createPromise() {
292
+ let resolve;
293
+ let reject;
294
+ const promise = new Promise((res, rej)=>{
295
+ reject = rej;
296
+ resolve = res;
297
+ });
298
+ return {
299
+ promise,
300
+ resolve: resolve,
301
+ reject: reject
302
+ };
303
+ }
304
+ // Load the CompressedmoduleFactories of a chunk into the `moduleFactories` Map.
305
+ // The CompressedModuleFactories format is
306
+ // - 1 or more module ids
307
+ // - a module factory function
308
+ // So walking this is a little complex but the flat structure is also fast to
309
+ // traverse, we can use `typeof` operators to distinguish the two cases.
310
+ function installCompressedModuleFactories(chunkModules, offset, moduleFactories, newModuleId) {
311
+ let i = offset;
312
+ while(i < chunkModules.length){
313
+ let moduleId = chunkModules[i];
314
+ let end = i + 1;
315
+ // Find our factory function
316
+ while(end < chunkModules.length && typeof chunkModules[end] !== 'function'){
317
+ end++;
318
+ }
319
+ if (end === chunkModules.length) {
320
+ throw new Error('malformed chunk format, expected a factory function');
321
+ }
322
+ // Each chunk item has a 'primary id' and optional additional ids. If the primary id is already
323
+ // present we know all the additional ids are also present, so we don't need to check.
324
+ if (!moduleFactories.has(moduleId)) {
325
+ const moduleFactoryFn = chunkModules[end];
326
+ applyModuleFactoryName(moduleFactoryFn);
327
+ newModuleId?.(moduleId);
328
+ for(; i < end; i++){
329
+ moduleId = chunkModules[i];
330
+ moduleFactories.set(moduleId, moduleFactoryFn);
331
+ }
332
+ }
333
+ i = end + 1; // end is pointing at the last factory advance to the next id or the end of the array.
334
+ }
335
+ }
336
+ // everything below is adapted from webpack
337
+ // https://github.com/webpack/webpack/blob/6be4065ade1e252c1d8dcba4af0f43e32af1bdc1/lib/runtime/AsyncModuleRuntimeModule.js#L13
338
+ const turbopackQueues = Symbol('turbopack queues');
339
+ const turbopackExports = Symbol('turbopack exports');
340
+ const turbopackError = Symbol('turbopack error');
341
+ function resolveQueue(queue) {
342
+ if (queue && queue.status !== 1) {
343
+ queue.status = 1;
344
+ queue.forEach((fn)=>fn.queueCount--);
345
+ queue.forEach((fn)=>fn.queueCount-- ? fn.queueCount++ : fn());
346
+ }
347
+ }
348
+ function wrapDeps(deps) {
349
+ return deps.map((dep)=>{
350
+ if (dep !== null && typeof dep === 'object') {
351
+ if (isAsyncModuleExt(dep)) return dep;
352
+ if (isPromise(dep)) {
353
+ const queue = Object.assign([], {
354
+ status: 0
355
+ });
356
+ const obj = {
357
+ [turbopackExports]: {},
358
+ [turbopackQueues]: (fn)=>fn(queue)
359
+ };
360
+ dep.then((res)=>{
361
+ obj[turbopackExports] = res;
362
+ resolveQueue(queue);
363
+ }, (err)=>{
364
+ obj[turbopackError] = err;
365
+ resolveQueue(queue);
366
+ });
367
+ return obj;
368
+ }
369
+ }
370
+ return {
371
+ [turbopackExports]: dep,
372
+ [turbopackQueues]: ()=>{}
373
+ };
374
+ });
375
+ }
376
+ function asyncModule(body, hasAwait) {
377
+ const module = this.m;
378
+ const queue = hasAwait ? Object.assign([], {
379
+ status: -1
380
+ }) : undefined;
381
+ const depQueues = new Set();
382
+ const { resolve, reject, promise: rawPromise } = createPromise();
383
+ const promise = Object.assign(rawPromise, {
384
+ [turbopackExports]: module.exports,
385
+ [turbopackQueues]: (fn)=>{
386
+ queue && fn(queue);
387
+ depQueues.forEach(fn);
388
+ promise['catch'](()=>{});
389
+ }
390
+ });
391
+ const attributes = {
392
+ get () {
393
+ return promise;
394
+ },
395
+ set (v) {
396
+ // Calling `esmExport` leads to this.
397
+ if (v !== promise) {
398
+ promise[turbopackExports] = v;
399
+ }
400
+ }
401
+ };
402
+ Object.defineProperty(module, 'exports', attributes);
403
+ Object.defineProperty(module, 'namespaceObject', attributes);
404
+ function handleAsyncDependencies(deps) {
405
+ const currentDeps = wrapDeps(deps);
406
+ const getResult = ()=>currentDeps.map((d)=>{
407
+ if (d[turbopackError]) throw d[turbopackError];
408
+ return d[turbopackExports];
409
+ });
410
+ const { promise, resolve } = createPromise();
411
+ const fn = Object.assign(()=>resolve(getResult), {
412
+ queueCount: 0
413
+ });
414
+ function fnQueue(q) {
415
+ if (q !== queue && !depQueues.has(q)) {
416
+ depQueues.add(q);
417
+ if (q && q.status === 0) {
418
+ fn.queueCount++;
419
+ q.push(fn);
420
+ }
421
+ }
422
+ }
423
+ currentDeps.map((dep)=>dep[turbopackQueues](fnQueue));
424
+ return fn.queueCount ? promise : getResult();
425
+ }
426
+ function asyncResult(err) {
427
+ if (err) {
428
+ reject(promise[turbopackError] = err);
429
+ } else {
430
+ resolve(promise[turbopackExports]);
431
+ }
432
+ resolveQueue(queue);
433
+ }
434
+ body(handleAsyncDependencies, asyncResult);
435
+ if (queue && queue.status === -1) {
436
+ queue.status = 0;
437
+ }
438
+ }
439
+ contextPrototype.a = asyncModule;
440
+ /**
441
+ * A pseudo "fake" URL object to resolve to its relative path.
442
+ *
443
+ * When UrlRewriteBehavior is set to relative, calls to the `new URL()` will construct url without base using this
444
+ * runtime function to generate context-agnostic urls between different rendering context, i.e ssr / client to avoid
445
+ * hydration mismatch.
446
+ *
447
+ * This is based on webpack's existing implementation:
448
+ * https://github.com/webpack/webpack/blob/87660921808566ef3b8796f8df61bd79fc026108/lib/runtime/RelativeUrlRuntimeModule.js
449
+ */ const relativeURL = function relativeURL(inputUrl) {
450
+ const realUrl = new URL(inputUrl, 'x:/');
451
+ const values = {};
452
+ for(const key in realUrl)values[key] = realUrl[key];
453
+ values.href = inputUrl;
454
+ values.pathname = inputUrl.replace(/[?#].*/, '');
455
+ values.origin = values.protocol = '';
456
+ values.toString = values.toJSON = (..._args)=>inputUrl;
457
+ for(const key in values)Object.defineProperty(this, key, {
458
+ enumerable: true,
459
+ configurable: true,
460
+ value: values[key]
461
+ });
462
+ };
463
+ relativeURL.prototype = URL.prototype;
464
+ contextPrototype.U = relativeURL;
465
+ /**
466
+ * Utility function to ensure all variants of an enum are handled.
467
+ */ function invariant(never, computeMessage) {
468
+ throw new Error(`Invariant: ${computeMessage(never)}`);
469
+ }
470
+ /**
471
+ * A stub function to make `require` available but non-functional in ESM.
472
+ */ function requireStub(_moduleId) {
473
+ throw new Error('dynamic usage of require is not supported');
474
+ }
475
+ contextPrototype.z = requireStub;
476
+ // Make `globalThis` available to the module in a way that cannot be shadowed by a local variable.
477
+ contextPrototype.g = globalThis;
478
+ function applyModuleFactoryName(factory) {
479
+ // Give the module factory a nice name to improve stack traces.
480
+ Object.defineProperty(factory, 'name', {
481
+ value: 'module evaluation'
482
+ });
483
+ }
484
+ /// <reference path="../shared/runtime-utils.ts" />
485
+ /// A 'base' utilities to support runtime can have externals.
486
+ /// Currently this is for node.js / edge runtime both.
487
+ /// If a fn requires node.js specific behavior, it should be placed in `node-external-utils` instead.
488
+ async function externalImport(id) {
489
+ let raw;
490
+ try {
491
+ raw = await import(id);
492
+ } catch (err) {
493
+ // TODO(alexkirsz) This can happen when a client-side module tries to load
494
+ // an external module we don't provide a shim for (e.g. querystring, url).
495
+ // For now, we fail semi-silently, but in the future this should be a
496
+ // compilation error.
497
+ throw new Error(`Failed to load external module ${id}: ${err}`);
498
+ }
499
+ if (raw && raw.__esModule && raw.default && 'default' in raw.default) {
500
+ return interopEsm(raw.default, createNS(raw), true);
501
+ }
502
+ return raw;
503
+ }
504
+ contextPrototype.y = externalImport;
505
+ function externalRequire(id, thunk, esm = false) {
506
+ let raw;
507
+ try {
508
+ raw = thunk();
509
+ } catch (err) {
510
+ // TODO(alexkirsz) This can happen when a client-side module tries to load
511
+ // an external module we don't provide a shim for (e.g. querystring, url).
512
+ // For now, we fail semi-silently, but in the future this should be a
513
+ // compilation error.
514
+ throw new Error(`Failed to load external module ${id}: ${err}`);
515
+ }
516
+ if (!esm || raw.__esModule) {
517
+ return raw;
518
+ }
519
+ return interopEsm(raw, createNS(raw), true);
520
+ }
521
+ externalRequire.resolve = (id, options)=>{
522
+ return require.resolve(id, options);
523
+ };
524
+ contextPrototype.x = externalRequire;
525
+ /* eslint-disable @typescript-eslint/no-unused-vars */ const path = require('path');
526
+ const relativePathToRuntimeRoot = path.relative(RUNTIME_PUBLIC_PATH, '.');
527
+ // Compute the relative path to the `distDir`.
528
+ const relativePathToDistRoot = path.join(relativePathToRuntimeRoot, RELATIVE_ROOT_PATH);
529
+ const RUNTIME_ROOT = path.resolve(__filename, relativePathToRuntimeRoot);
530
+ // Compute the absolute path to the root, by stripping distDir from the absolute path to this file.
531
+ const ABSOLUTE_ROOT = path.resolve(__filename, relativePathToDistRoot);
532
+ /**
533
+ * Returns an absolute path to the given module path.
534
+ * Module path should be relative, either path to a file or a directory.
535
+ *
536
+ * This fn allows to calculate an absolute path for some global static values, such as
537
+ * `__dirname` or `import.meta.url` that Turbopack will not embeds in compile time.
538
+ * See ImportMetaBinding::code_generation for the usage.
539
+ */ function resolveAbsolutePath(modulePath) {
540
+ if (modulePath) {
541
+ return path.join(ABSOLUTE_ROOT, modulePath);
542
+ }
543
+ return ABSOLUTE_ROOT;
544
+ }
545
+ Context.prototype.P = resolveAbsolutePath;
546
+ /* eslint-disable @typescript-eslint/no-unused-vars */ /// <reference path="../shared/runtime-utils.ts" />
547
+ function readWebAssemblyAsResponse(path) {
548
+ const { createReadStream } = require('fs');
549
+ const { Readable } = require('stream');
550
+ const stream = createReadStream(path);
551
+ // @ts-ignore unfortunately there's a slight type mismatch with the stream.
552
+ return new Response(Readable.toWeb(stream), {
553
+ headers: {
554
+ 'content-type': 'application/wasm'
555
+ }
556
+ });
557
+ }
558
+ async function compileWebAssemblyFromPath(path) {
559
+ const response = readWebAssemblyAsResponse(path);
560
+ return await WebAssembly.compileStreaming(response);
561
+ }
562
+ async function instantiateWebAssemblyFromPath(path, importsObj) {
563
+ const response = readWebAssemblyAsResponse(path);
564
+ const { instance } = await WebAssembly.instantiateStreaming(response, importsObj);
565
+ return instance.exports;
566
+ }
567
+ /* eslint-disable @typescript-eslint/no-unused-vars */ /// <reference path="../shared/runtime-utils.ts" />
568
+ /// <reference path="../shared-node/base-externals-utils.ts" />
569
+ /// <reference path="../shared-node/node-externals-utils.ts" />
570
+ /// <reference path="../shared-node/node-wasm-utils.ts" />
571
+ var SourceType = /*#__PURE__*/ function(SourceType) {
572
+ /**
573
+ * The module was instantiated because it was included in an evaluated chunk's
574
+ * runtime.
575
+ * SourceData is a ChunkPath.
576
+ */ SourceType[SourceType["Runtime"] = 0] = "Runtime";
577
+ /**
578
+ * The module was instantiated because a parent module imported it.
579
+ * SourceData is a ModuleId.
580
+ */ SourceType[SourceType["Parent"] = 1] = "Parent";
581
+ return SourceType;
582
+ }(SourceType || {});
583
+ process.env.TURBOPACK = '1';
584
+ const nodeContextPrototype = Context.prototype;
585
+ const url = require('url');
586
+ const moduleFactories = new Map();
587
+ nodeContextPrototype.M = moduleFactories;
588
+ const moduleCache = Object.create(null);
589
+ nodeContextPrototype.c = moduleCache;
590
+ /**
591
+ * Returns an absolute path to the given module's id.
592
+ */ function resolvePathFromModule(moduleId) {
593
+ const exported = this.r(moduleId);
594
+ const exportedPath = exported?.default ?? exported;
595
+ if (typeof exportedPath !== 'string') {
596
+ return exported;
597
+ }
598
+ const strippedAssetPrefix = exportedPath.slice(ASSET_PREFIX.length);
599
+ const resolved = path.resolve(RUNTIME_ROOT, strippedAssetPrefix);
600
+ return url.pathToFileURL(resolved).href;
601
+ }
602
+ nodeContextPrototype.R = resolvePathFromModule;
603
+ function loadRuntimeChunk(sourcePath, chunkData) {
604
+ if (typeof chunkData === 'string') {
605
+ loadRuntimeChunkPath(sourcePath, chunkData);
606
+ } else {
607
+ loadRuntimeChunkPath(sourcePath, chunkData.path);
608
+ }
609
+ }
610
+ const loadedChunks = new Set();
611
+ const unsupportedLoadChunk = Promise.resolve(undefined);
612
+ const loadedChunk = Promise.resolve(undefined);
613
+ const chunkCache = new Map();
614
+ function clearChunkCache() {
615
+ chunkCache.clear();
616
+ }
617
+ function loadRuntimeChunkPath(sourcePath, chunkPath) {
618
+ if (!isJs(chunkPath)) {
619
+ // We only support loading JS chunks in Node.js.
620
+ // This branch can be hit when trying to load a CSS chunk.
621
+ return;
622
+ }
623
+ if (loadedChunks.has(chunkPath)) {
624
+ return;
625
+ }
626
+ try {
627
+ const resolved = path.resolve(RUNTIME_ROOT, chunkPath);
628
+ const chunkModules = require(resolved);
629
+ installCompressedModuleFactories(chunkModules, 0, moduleFactories);
630
+ loadedChunks.add(chunkPath);
631
+ } catch (e) {
632
+ let errorMessage = `Failed to load chunk ${chunkPath}`;
633
+ if (sourcePath) {
634
+ errorMessage += ` from runtime for chunk ${sourcePath}`;
635
+ }
636
+ throw new Error(errorMessage, {
637
+ cause: e
638
+ });
639
+ }
640
+ }
641
+ function loadChunkAsync(chunkData) {
642
+ const chunkPath = typeof chunkData === 'string' ? chunkData : chunkData.path;
643
+ if (!isJs(chunkPath)) {
644
+ // We only support loading JS chunks in Node.js.
645
+ // This branch can be hit when trying to load a CSS chunk.
646
+ return unsupportedLoadChunk;
647
+ }
648
+ let entry = chunkCache.get(chunkPath);
649
+ if (entry === undefined) {
650
+ try {
651
+ // resolve to an absolute path to simplify `require` handling
652
+ const resolved = path.resolve(RUNTIME_ROOT, chunkPath);
653
+ // TODO: consider switching to `import()` to enable concurrent chunk loading and async file io
654
+ // However this is incompatible with hot reloading (since `import` doesn't use the require cache)
655
+ const chunkModules = require(resolved);
656
+ installCompressedModuleFactories(chunkModules, 0, moduleFactories);
657
+ entry = loadedChunk;
658
+ } catch (e) {
659
+ const errorMessage = `Failed to load chunk ${chunkPath} from module ${this.m.id}`;
660
+ // Cache the failure promise, future requests will also get this same rejection
661
+ entry = Promise.reject(new Error(errorMessage, {
662
+ cause: e
663
+ }));
664
+ }
665
+ chunkCache.set(chunkPath, entry);
666
+ }
667
+ // TODO: Return an instrumented Promise that React can use instead of relying on referential equality.
668
+ return entry;
669
+ }
670
+ contextPrototype.l = loadChunkAsync;
671
+ function loadChunkAsyncByUrl(chunkUrl) {
672
+ const path1 = url.fileURLToPath(new URL(chunkUrl, RUNTIME_ROOT));
673
+ return loadChunkAsync.call(this, path1);
674
+ }
675
+ contextPrototype.L = loadChunkAsyncByUrl;
676
+ function loadWebAssembly(chunkPath, _edgeModule, imports) {
677
+ const resolved = path.resolve(RUNTIME_ROOT, chunkPath);
678
+ return instantiateWebAssemblyFromPath(resolved, imports);
679
+ }
680
+ contextPrototype.w = loadWebAssembly;
681
+ function loadWebAssemblyModule(chunkPath, _edgeModule) {
682
+ const resolved = path.resolve(RUNTIME_ROOT, chunkPath);
683
+ return compileWebAssemblyFromPath(resolved);
684
+ }
685
+ contextPrototype.u = loadWebAssemblyModule;
686
+ function getWorkerBlobURL(_chunks) {
687
+ throw new Error('Worker blobs are not implemented yet for Node.js');
688
+ }
689
+ nodeContextPrototype.b = getWorkerBlobURL;
690
+ function instantiateModule(id, sourceType, sourceData) {
691
+ const moduleFactory = moduleFactories.get(id);
692
+ if (typeof moduleFactory !== 'function') {
693
+ // This can happen if modules incorrectly handle HMR disposes/updates,
694
+ // e.g. when they keep a `setTimeout` around which still executes old code
695
+ // and contains e.g. a `require("something")` call.
696
+ let instantiationReason;
697
+ switch(sourceType){
698
+ case 0:
699
+ instantiationReason = `as a runtime entry of chunk ${sourceData}`;
700
+ break;
701
+ case 1:
702
+ instantiationReason = `because it was required from module ${sourceData}`;
703
+ break;
704
+ default:
705
+ invariant(sourceType, (sourceType)=>`Unknown source type: ${sourceType}`);
706
+ }
707
+ throw new Error(`Module ${id} was instantiated ${instantiationReason}, but the module factory is not available.`);
708
+ }
709
+ const module1 = createModuleObject(id);
710
+ const exports = module1.exports;
711
+ moduleCache[id] = module1;
712
+ const context = new Context(module1, exports);
713
+ // NOTE(alexkirsz) This can fail when the module encounters a runtime error.
714
+ try {
715
+ moduleFactory(context, module1, exports);
716
+ } catch (error) {
717
+ module1.error = error;
718
+ throw error;
719
+ }
720
+ module1.loaded = true;
721
+ if (module1.namespaceObject && module1.exports !== module1.namespaceObject) {
722
+ // in case of a circular dependency: cjs1 -> esm2 -> cjs1
723
+ interopEsm(module1.exports, module1.namespaceObject);
724
+ }
725
+ return module1;
726
+ }
727
+ /**
728
+ * Retrieves a module from the cache, or instantiate it if it is not cached.
729
+ */ // @ts-ignore
730
+ function getOrInstantiateModuleFromParent(id, sourceModule) {
731
+ const module1 = moduleCache[id];
732
+ if (module1) {
733
+ if (module1.error) {
734
+ throw module1.error;
735
+ }
736
+ return module1;
737
+ }
738
+ return instantiateModule(id, 1, sourceModule.id);
739
+ }
740
+ /**
741
+ * Instantiates a runtime module.
742
+ */ function instantiateRuntimeModule(chunkPath, moduleId) {
743
+ return instantiateModule(moduleId, 0, chunkPath);
744
+ }
745
+ /**
746
+ * Retrieves a module from the cache, or instantiate it as a runtime module if it is not cached.
747
+ */ // @ts-ignore TypeScript doesn't separate this module space from the browser runtime
748
+ function getOrInstantiateRuntimeModule(chunkPath, moduleId) {
749
+ const module1 = moduleCache[moduleId];
750
+ if (module1) {
751
+ if (module1.error) {
752
+ throw module1.error;
753
+ }
754
+ return module1;
755
+ }
756
+ return instantiateRuntimeModule(chunkPath, moduleId);
757
+ }
758
+ const regexJsUrl = /\.js(?:\?[^#]*)?(?:#.*)?$/;
759
+ /**
760
+ * Checks if a given path/URL ends with .js, optionally followed by ?query or #fragment.
761
+ */ function isJs(chunkUrlOrPath) {
762
+ return regexJsUrl.test(chunkUrlOrPath);
763
+ }
764
+ module.exports = (sourcePath)=>({
765
+ m: (id)=>getOrInstantiateRuntimeModule(sourcePath, id),
766
+ c: (chunkData)=>loadRuntimeChunk(sourcePath, chunkData)
767
+ });
768
+
769
+
770
+ //# sourceMappingURL=%5Bturbopack%5D_runtime.js.map