@oscharko-dev/keiko 0.3.11 → 0.3.13

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 (209) hide show
  1. package/dist/ui/csp-hashes.json +13 -13
  2. package/dist/ui/static/404.html +1 -1
  3. package/dist/ui/static/__next.__PAGE__.txt +2 -2
  4. package/dist/ui/static/__next._full.txt +3 -3
  5. package/dist/ui/static/__next._head.txt +1 -1
  6. package/dist/ui/static/__next._index.txt +1 -1
  7. package/dist/ui/static/__next._tree.txt +1 -1
  8. package/dist/ui/static/_next/static/chunks/{0ovebg0sbcqct.js → 089ft_ee-2y20.js} +1 -1
  9. package/dist/ui/static/_next/static/chunks/09ifk61aybcwe.js +1 -0
  10. package/dist/ui/static/_next/static/chunks/0spfmty-r-rqj.js +1 -0
  11. package/dist/ui/static/_next/static/chunks/{2b7g5wrm7slyv.js → 123hx5vnwghyp.js} +1 -1
  12. package/dist/ui/static/_next/static/chunks/1aad3wmm8b0h_.js +1 -0
  13. package/dist/ui/static/_next/static/chunks/1s1u4fx4mdurk.js +1 -0
  14. package/dist/ui/static/_next/static/chunks/{2ksqufkg3ptp1.js → 26sy339azhbd8.js} +1 -1
  15. package/dist/ui/static/_next/static/chunks/2bshxlpms4hq2.js +1 -0
  16. package/dist/ui/static/_next/static/chunks/{2ohow-fui5d_w.js → 2c9gq9vpyd9sm.js} +1 -1
  17. package/dist/ui/static/_next/static/chunks/{3mw_ni1a9rykb.js → 2iqsdgq5z7zi-.js} +1 -1
  18. package/dist/ui/static/_next/static/chunks/{0d5rtaf3-jc-x.js → 2iuxjus3qppec.js} +1 -1
  19. package/dist/ui/static/_next/static/chunks/2t0ktf1dxwv0_.js +1 -0
  20. package/dist/ui/static/_next/static/chunks/2xgtm8mmbv8mx.js +1 -0
  21. package/dist/ui/static/_next/static/chunks/3od_e1_j5aq-u.js +1 -0
  22. package/dist/ui/static/_not-found/__next._full.txt +1 -1
  23. package/dist/ui/static/_not-found/__next._head.txt +1 -1
  24. package/dist/ui/static/_not-found/__next._index.txt +1 -1
  25. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
  26. package/dist/ui/static/_not-found/__next._not-found.txt +1 -1
  27. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  28. package/dist/ui/static/_not-found.html +1 -1
  29. package/dist/ui/static/_not-found.txt +1 -1
  30. package/dist/ui/static/atlassian-connectors/__next._full.txt +5 -5
  31. package/dist/ui/static/atlassian-connectors/__next._head.txt +1 -1
  32. package/dist/ui/static/atlassian-connectors/__next._index.txt +1 -1
  33. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  34. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +2 -2
  35. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.txt +2 -2
  36. package/dist/ui/static/atlassian-connectors.html +1 -1
  37. package/dist/ui/static/atlassian-connectors.txt +5 -5
  38. package/dist/ui/static/index.html +1 -1
  39. package/dist/ui/static/index.txt +3 -3
  40. package/dist/ui/static/launch/__next._full.txt +3 -3
  41. package/dist/ui/static/launch/__next._head.txt +1 -1
  42. package/dist/ui/static/launch/__next._index.txt +1 -1
  43. package/dist/ui/static/launch/__next._tree.txt +1 -1
  44. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +2 -2
  45. package/dist/ui/static/launch/__next.launch.txt +1 -1
  46. package/dist/ui/static/launch.html +1 -1
  47. package/dist/ui/static/launch.txt +3 -3
  48. package/dist/ui/static/local-knowledge/__next._full.txt +3 -3
  49. package/dist/ui/static/local-knowledge/__next._head.txt +1 -1
  50. package/dist/ui/static/local-knowledge/__next._index.txt +1 -1
  51. package/dist/ui/static/local-knowledge/__next._tree.txt +1 -1
  52. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +2 -2
  53. package/dist/ui/static/local-knowledge/__next.local-knowledge.txt +1 -1
  54. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +5 -5
  55. package/dist/ui/static/local-knowledge/capsule/__next._head.txt +1 -1
  56. package/dist/ui/static/local-knowledge/capsule/__next._index.txt +1 -1
  57. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  58. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +2 -2
  59. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.txt +2 -2
  60. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.txt +1 -1
  61. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  62. package/dist/ui/static/local-knowledge/capsule.txt +5 -5
  63. package/dist/ui/static/local-knowledge.html +1 -1
  64. package/dist/ui/static/local-knowledge.txt +3 -3
  65. package/node_modules/@oscharko-dev/keiko-cli/package.json +13 -13
  66. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  67. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts +79 -1
  68. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
  69. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +116 -0
  70. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +5 -5
  71. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
  72. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.js +4 -4
  73. package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-records.d.ts +10 -0
  74. package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-records.d.ts.map +1 -1
  75. package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-records.js +8 -0
  76. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  77. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  78. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  79. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  80. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  81. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  82. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  83. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  84. package/node_modules/@oscharko-dev/keiko-harness/package.json +6 -6
  85. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/index.d.ts +1 -1
  86. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/index.d.ts.map +1 -1
  87. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/index.js +1 -1
  88. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/persist.d.ts +1 -0
  89. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/persist.d.ts.map +1 -1
  90. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/persist.js +8 -0
  91. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/types.d.ts +2 -0
  92. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/types.d.ts.map +1 -1
  93. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/types.js +8 -0
  94. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/bounded-indexing.d.ts +2 -0
  95. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/bounded-indexing.d.ts.map +1 -1
  96. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/bounded-indexing.js +1 -0
  97. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.d.ts.map +1 -1
  98. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.js +53 -14
  99. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator.d.ts +3 -0
  100. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator.d.ts.map +1 -1
  101. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator.js +163 -9
  102. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/types.d.ts +1 -0
  103. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/types.d.ts.map +1 -1
  104. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod-progress.d.ts.map +1 -1
  105. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod-progress.js +2 -0
  106. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  107. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  108. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  109. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  110. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  111. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  112. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  113. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  114. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  115. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  116. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  117. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  118. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  119. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  120. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  121. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  122. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  123. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  124. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts.map +1 -1
  125. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +13 -0
  126. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts +2 -0
  127. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts.map +1 -1
  128. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.js +26 -6
  129. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  130. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  131. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +3 -3
  132. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  133. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  134. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  135. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  136. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  137. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  138. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
  139. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +28 -17
  140. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +22 -1
  141. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
  142. package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +19 -0
  143. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +5 -1
  144. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
  145. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +1 -0
  146. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +3 -0
  147. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
  148. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +80 -4
  149. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
  150. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +306 -50
  151. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
  152. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +12 -2
  153. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts +1 -0
  154. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts.map +1 -1
  155. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.js +132 -14
  156. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-remediation.d.ts.map +1 -1
  157. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-remediation.js +5 -2
  158. package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.d.ts.map +1 -1
  159. package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.js +13 -6
  160. package/node_modules/@oscharko-dev/keiko-server/package.json +21 -21
  161. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  162. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  163. package/node_modules/@oscharko-dev/keiko-tools/package.json +5 -5
  164. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  165. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  166. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  167. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  168. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  169. package/package.json +25 -25
  170. package/release-impact.catalog.json +112 -4
  171. package/vendor/{oscharko-dev-keiko-cli-0.3.11.tgz → oscharko-dev-keiko-cli-0.3.13.tgz} +0 -0
  172. package/vendor/{oscharko-dev-keiko-connectors-0.3.11.tgz → oscharko-dev-keiko-connectors-0.3.13.tgz} +0 -0
  173. package/vendor/oscharko-dev-keiko-contracts-0.3.13.tgz +0 -0
  174. package/vendor/{oscharko-dev-keiko-evaluations-0.3.11.tgz → oscharko-dev-keiko-evaluations-0.3.13.tgz} +0 -0
  175. package/vendor/{oscharko-dev-keiko-evidence-0.3.11.tgz → oscharko-dev-keiko-evidence-0.3.13.tgz} +0 -0
  176. package/vendor/{oscharko-dev-keiko-git-0.3.11.tgz → oscharko-dev-keiko-git-0.3.13.tgz} +0 -0
  177. package/vendor/{oscharko-dev-keiko-harness-0.3.11.tgz → oscharko-dev-keiko-harness-0.3.13.tgz} +0 -0
  178. package/vendor/oscharko-dev-keiko-local-knowledge-0.3.13.tgz +0 -0
  179. package/vendor/{oscharko-dev-keiko-memory-capture-0.3.11.tgz → oscharko-dev-keiko-memory-capture-0.3.13.tgz} +0 -0
  180. package/vendor/{oscharko-dev-keiko-memory-consolidation-0.3.11.tgz → oscharko-dev-keiko-memory-consolidation-0.3.13.tgz} +0 -0
  181. package/vendor/oscharko-dev-keiko-memory-governance-0.3.13.tgz +0 -0
  182. package/vendor/{oscharko-dev-keiko-memory-retrieval-0.3.11.tgz → oscharko-dev-keiko-memory-retrieval-0.3.13.tgz} +0 -0
  183. package/vendor/{oscharko-dev-keiko-memory-vault-0.3.11.tgz → oscharko-dev-keiko-memory-vault-0.3.13.tgz} +0 -0
  184. package/vendor/oscharko-dev-keiko-model-gateway-0.3.13.tgz +0 -0
  185. package/vendor/{oscharko-dev-keiko-quality-intelligence-0.3.11.tgz → oscharko-dev-keiko-quality-intelligence-0.3.13.tgz} +0 -0
  186. package/vendor/{oscharko-dev-keiko-sandbox-0.3.11.tgz → oscharko-dev-keiko-sandbox-0.3.13.tgz} +0 -0
  187. package/vendor/{oscharko-dev-keiko-sdk-0.3.11.tgz → oscharko-dev-keiko-sdk-0.3.13.tgz} +0 -0
  188. package/vendor/{oscharko-dev-keiko-security-0.3.11.tgz → oscharko-dev-keiko-security-0.3.13.tgz} +0 -0
  189. package/vendor/oscharko-dev-keiko-server-0.3.13.tgz +0 -0
  190. package/vendor/{oscharko-dev-keiko-tools-0.3.11.tgz → oscharko-dev-keiko-tools-0.3.13.tgz} +0 -0
  191. package/vendor/{oscharko-dev-keiko-verification-0.3.11.tgz → oscharko-dev-keiko-verification-0.3.13.tgz} +0 -0
  192. package/vendor/{oscharko-dev-keiko-workflows-0.3.11.tgz → oscharko-dev-keiko-workflows-0.3.13.tgz} +0 -0
  193. package/vendor/{oscharko-dev-keiko-workspace-0.3.11.tgz → oscharko-dev-keiko-workspace-0.3.13.tgz} +0 -0
  194. package/dist/ui/static/_next/static/chunks/08ix9sw49a3s7.js +0 -1
  195. package/dist/ui/static/_next/static/chunks/0w6kppo4hx2wx.js +0 -1
  196. package/dist/ui/static/_next/static/chunks/1kfsvai94yvr2.js +0 -1
  197. package/dist/ui/static/_next/static/chunks/1qio8iqevt0mg.js +0 -1
  198. package/dist/ui/static/_next/static/chunks/1ziptu5xlzq_p.js +0 -1
  199. package/dist/ui/static/_next/static/chunks/2bpupnd-k7bgu.js +0 -1
  200. package/dist/ui/static/_next/static/chunks/2sji-23jqwpol.js +0 -1
  201. package/dist/ui/static/_next/static/chunks/3r74c2jeognx2.js +0 -1
  202. package/vendor/oscharko-dev-keiko-contracts-0.3.11.tgz +0 -0
  203. package/vendor/oscharko-dev-keiko-local-knowledge-0.3.11.tgz +0 -0
  204. package/vendor/oscharko-dev-keiko-memory-governance-0.3.11.tgz +0 -0
  205. package/vendor/oscharko-dev-keiko-model-gateway-0.3.11.tgz +0 -0
  206. package/vendor/oscharko-dev-keiko-server-0.3.11.tgz +0 -0
  207. /package/dist/ui/static/_next/static/{TE3T4DCedlDBoFwpbxasE → iwhpaHGb663ka5R3lhZBj}/_buildManifest.js +0 -0
  208. /package/dist/ui/static/_next/static/{TE3T4DCedlDBoFwpbxasE → iwhpaHGb663ka5R3lhZBj}/_clientMiddlewareManifest.js +0 -0
  209. /package/dist/ui/static/_next/static/{TE3T4DCedlDBoFwpbxasE → iwhpaHGb663ka5R3lhZBj}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24744,7340,e=>{"use strict";let l=Object.freeze({maxRawFileBytes:0x40000000,maxExtractedTextBytes:0x10000000,maxParserUnits:2e5,maxParserObjects:25e6,maxChunkCount:2e6,maxEmbeddingBatchCount:1e5,maxWallClockMs:36e5,cancellationDeadlineMs:15e3,maxRetryCount:3,maxPersistedStorageGrowthBytes:0x20000000,largeFileThresholdBytes:0x4000000,extractionWindowPages:16}),t=["complete","cancelled","failed"];Object.freeze({ocr:"unavailable",multimodal:"unavailable"}),Object.freeze({PARTIAL_COVERAGE:"PARTIAL_COVERAGE",OCR_CAPABILITY_UNAVAILABLE:"OCR_CAPABILITY_UNAVAILABLE",MULTIMODAL_CAPABILITY_UNAVAILABLE:"MULTIMODAL_CAPABILITY_UNAVAILABLE",CONVERTER_UNAVAILABLE:"CONVERTER_UNAVAILABLE",RESOURCE_POLICY_EXCEEDED:"RESOURCE_POLICY_EXCEEDED",CHECKPOINT_INCOMPATIBLE:"CHECKPOINT_INCOMPATIBLE",EXTRACTION_RESUMED:"EXTRACTION_RESUMED",EXTRACTION_PROGRESS:"EXTRACTION_PROGRESS"}),e.s(["DEFAULT_LARGE_DOCUMENT_RESOURCE_POLICY",0,l,"isTerminalExtractionPhase",0,function(e){return t.includes(e);}],24744);let a="keiko-html-manual-source-fingerprint:";function n(e){return`keiko-html-manual-source-kind:${e}`;}e.s(["parseHtmlManualSourceTagMetadata",0,function(e){let l,t;for(let o of e)o===n("html-manual-local")?l="html-manual-local":o===n("html-manual-http")?l="html-manual-http":o.startsWith(a)&&(t=o.slice(a.length));return{...(void 0!==l?{sourceKind:l}:{}),...(void 0!==t?{sourceFingerprint:t}:{})};}],7340);},96688,61774,e=>{"use strict";e.s(["STATUS_LABELS",0,{draft:"Draft",indexing:"Indexing",ready:"Indexed",stale:"Stale",deleting:"Deleting",error:"Failed"}],96688);var l=e.i(76055),t=e.i(10644);let a=(e,l)=>(0,t.translateLocalKnowledge)("en",e,l);e.s(["formatError",0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return e instanceof l.ApiError?e.message.trim().length>0?`${e.message} (${e.code})`:t("localKnowledge.error.api",{code:e.code}):e instanceof Error&&e.message.trim().length>0?e.message:t("localKnowledge.error.unexpected");}],61774);},94891,e=>{e.v({advancedDisclosure:"capsule-detail-module__3nXTdq__advancedDisclosure",advancedStack:"capsule-detail-module__3nXTdq__advancedStack",backButton:"capsule-detail-module__3nXTdq__backButton",capsulePodGlyph:"capsule-detail-module__3nXTdq__capsulePodGlyph",capsuleRowInfo:"capsule-detail-module__3nXTdq__capsuleRowInfo",capsuleSetGlyph:"capsule-detail-module__3nXTdq__capsuleSetGlyph",detailContent:"capsule-detail-module__3nXTdq__detailContent",detailPage:"capsule-detail-module__3nXTdq__detailPage",disclosureIcon:"capsule-detail-module__3nXTdq__disclosureIcon",disclosureSummary:"capsule-detail-module__3nXTdq__disclosureSummary",explainable:"capsule-detail-module__3nXTdq__explainable",explainableBlock:"capsule-detail-module__3nXTdq__explainableBlock",helpTooltip:"capsule-detail-module__3nXTdq__helpTooltip",indexPrompt:"capsule-detail-module__3nXTdq__indexPrompt",maintenanceDisclosure:"capsule-detail-module__3nXTdq__maintenanceDisclosure",podHeader:"capsule-detail-module__3nXTdq__podHeader",podTitle:"capsule-detail-module__3nXTdq__podTitle",selectedSourceNote:"capsule-detail-module__3nXTdq__selectedSourceNote",sourcePickerActions:"capsule-detail-module__3nXTdq__sourcePickerActions",sourcePickerCopy:"capsule-detail-module__3nXTdq__sourcePickerCopy",sourcePickerDescription:"capsule-detail-module__3nXTdq__sourcePickerDescription",sourcePickerFormats:"capsule-detail-module__3nXTdq__sourcePickerFormats",sourcePickerPanel:"capsule-detail-module__3nXTdq__sourcePickerPanel",sourcePickerTitle:"capsule-detail-module__3nXTdq__sourcePickerTitle",sourceSetup:"capsule-detail-module__3nXTdq__sourceSetup",sourceSetupDescription:"capsule-detail-module__3nXTdq__sourceSetupDescription",sourceSetupHeader:"capsule-detail-module__3nXTdq__sourceSetupHeader",sourceSetupTitle:"capsule-detail-module__3nXTdq__sourceSetupTitle",specificFilesDisclosure:"capsule-detail-module__3nXTdq__specificFilesDisclosure",specificFilesSummary:"capsule-detail-module__3nXTdq__specificFilesSummary"});},69128,80814,30558,e=>{"use strict";var l=e.i(87032),t=e.i(61593),a=e.i(61774);e.s(["useCapsuleDetail",0,function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.fetchCapsuleDetail,[o,i]=(0,l.useState)(null),[s,d]=(0,l.useState)("loading"),[c,r]=(0,l.useState)(null),u=(0,l.useCallback)(async function(){let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(""===e){i(null),r("No Knowledge Pod selected."),d("error");return;}!0!==l.quiet&&(d("loading"),r(null));try{let l=await n(e);i(l),d("ready");}catch(e){if(!0===l.quiet)return;r((0,a.formatError)(e)),d("error");}},[e,n]);return(0,l.useEffect)(()=>{u();},[u]),(0,l.useEffect)(()=>{let e=null==o?void 0:o.indexingJobs[0];if((null==o?void 0:o.capsule.lifecycleState)!=="indexing"&&(null==e?void 0:e.status)!=="queued"&&(null==e?void 0:e.status)!=="running")return;let l=null,t=()=>"u">typeof document&&"hidden"===document.visibilityState,a=()=>{null===l&&(l=window.setInterval(()=>{u({quiet:!0});},2e3));},n=()=>{null!==l&&(window.clearInterval(l),l=null);},i=()=>{t()?n():(u({quiet:!0}),a());};return t()||a(),document.addEventListener("visibilitychange",i),()=>{n(),document.removeEventListener("visibilitychange",i);};},[null==o?void 0:o.capsule.lifecycleState,null==o?void 0:o.indexingJobs,u]),{data:o,loadStatus:s,loadError:c,reload:function(){u();},replaceData:function(e){i(e),r(null),d("ready");}};}],69128);var n=e.i(10582),o=e.i(5353);let i=Object.freeze([...Object.freeze(["pdf"]),...Object.freeze(["docx"]),...Object.freeze(["xlsx"])]),s=Object.freeze([...Object.freeze(["json","jsonl","ndjson"]),...Object.freeze(["csv"]),...Object.freeze(["tsv","tab"])]),d=Object.freeze(["txt","log","md","markdown","rst","adoc","asciidoc"]),c=Object.freeze(["html","htm","xhtml"]),r=Object.freeze(["ts","tsx","js","jsx","mjs","cjs","py","rb","php","sh","bash","zsh","fish","ps1"]),u=Object.freeze(["go","rs","java","kt","swift","c","cc","cpp","h","hpp","cs"]),p=Object.freeze(["yaml","yml","toml","ini","cfg","conf","env","properties","sql","graphql","gql"]);Object.freeze([...d,...r,...u,...p]);let g=Object.freeze([Object.freeze({id:"documents",extensions:i}),Object.freeze({id:"structuredData",extensions:s}),Object.freeze({id:"textDocuments",extensions:d}),Object.freeze({id:"webDocuments",extensions:c}),Object.freeze({id:"scripts",extensions:r}),Object.freeze({id:"sourceCode",extensions:u}),Object.freeze({id:"configuration",extensions:p})]);var m=e.i(83449),h=e.i(24744);let x=h.DEFAULT_LARGE_DOCUMENT_RESOURCE_POLICY.maxRawFileBytes,b=h.DEFAULT_LARGE_DOCUMENT_RESOURCE_POLICY.maxParserObjects,v=h.DEFAULT_LARGE_DOCUMENT_RESOURCE_POLICY.maxWallClockMs;var f=e.i(8245),w=e.i(48268),k=e.i(64533),j=e.i(50850),K=e.i(10644),y=e.i(94891);function N(e){let t,{children:a,description:o,as:i="span",block:s=!1,className:d,placement:c="bottom"}=e,[r,u]=(0,l.useState)(!1),p=(0,l.useId)();return(0,n.jsxs)(i,{className:(t=[y.default.explainable],s&&t.push(y.default.explainableBlock),void 0!==d&&t.push(d),t.join(" ")),"data-placement":c,tabIndex:0,"aria-describedby":r?p:void 0,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onFocus:()=>u(!0),onBlur:()=>u(!1),onKeyDown:function(e){"Escape"===e.key&&u(!1);},children:[a,r?(0,n.jsx)("span",{id:p,role:"tooltip",className:y.default.helpTooltip,children:o}):null]});}function C(e){return Number.isFinite(e)?`${Math.round(100*Math.max(0,Math.min(1,e))).toString()}%`:"0%";}function S(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{detail:null,startedAt:e,now:e,pollError:null,watchedJobId:null,observedRunning:!1,reattached:l,precedingJobId:t};}function _(e){return null===e?e:{...e,now:Date.now()};}async function E(e,l,t,n,o){try{let t=await l(e);if(n())return;o(e=>{var l;let a;return a=(null==(l=t.indexingJobs[0])?void 0:l.status)==="running",null===e?{...S(),detail:t,observedRunning:a}:{...e,detail:t,now:Date.now(),pollError:null,observedRunning:e.observedRunning||a};});}catch(e){if(n())return;o(l=>{var n;return n=(0,a.formatError)(e,t),null===l?l:{...l,now:Date.now(),pollError:n};});}}e.s(["Explainable",0,N],80814);let D=Object.freeze({documents:"localKnowledge.detail.connect.filter.documents",structuredData:"localKnowledge.detail.connect.filter.structuredData",textDocuments:"localKnowledge.detail.connect.filter.textDocuments",webDocuments:"localKnowledge.detail.connect.filter.webDocuments",scripts:"localKnowledge.detail.connect.filter.scripts",sourceCode:"localKnowledge.detail.connect.filter.sourceCode",configuration:"localKnowledge.detail.connect.filter.configuration"});function I(e){return Array.from(new Set(e.split(/\r?\n/u).map(e=>e.trim()).filter(e=>e.length>0)));}function R(e,l,t,a){if("picked"===e.kind){l(e.paths),t(null);return;}"busy"===e.kind&&t(a("localKnowledge.nativeDialog.busy")),"unsupported"===e.kind&&t(a("localKnowledge.nativeDialog.unavailable")),"error"===e.kind&&t(e.message);}function T(e){let{locale:l,t}=e;return(0,n.jsxs)("div",{className:y.default.sourcePickerCopy,children:[(0,n.jsx)(N,{description:t("localKnowledge.detail.help.sourceSetup"),children:(0,n.jsx)("span",{className:y.default.sourcePickerTitle,children:t("localKnowledge.detail.connect.sourcePickerTitle")})}),(0,n.jsx)("span",{className:y.default.sourcePickerDescription,children:t("localKnowledge.detail.connect.sourcePickerDescription")}),(0,n.jsx)("span",{className:y.default.sourcePickerFormats,children:t("localKnowledge.detail.connect.supportedFormats",{size:(0,m.formatBytes)(x,l)})})]});}function P(e){let{picker:l,state:t,t:a}=e;return(0,n.jsxs)("div",{className:y.default.sourcePickerActions,children:[(0,n.jsx)("button",{type:"button",className:"lk-btn lk-btn-primary",disabled:t.busy||!l.supported,"aria-describedby":l.supported?void 0:l.noteId,title:a("localKnowledge.detail.help.sourceSetup"),onClick:l.openFolder,children:a("localKnowledge.detail.connect.pickFolderSource")}),(0,n.jsx)("button",{type:"button",className:"lk-btn lk-btn-primary",disabled:t.busy||!l.supported||t.repositoryMode,"aria-describedby":l.supported?void 0:l.noteId,title:a(t.repositoryMode?"localKnowledge.detail.connect.repositoryFilesDisabledNote":"localKnowledge.detail.help.sourceSetup"),onClick:l.openFiles,children:a("localKnowledge.detail.connect.pickDocumentSource")})]});}function A(e){let{locale:l,picker:t,state:a,t:o}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:y.default.sourcePickerPanel,children:[(0,n.jsx)(T,{locale:l,t:o}),(0,n.jsx)(P,{picker:t,state:a,t:o})]}),t.supported?null:(0,n.jsx)("span",{id:t.noteId,className:"dlg-note",children:o("localKnowledge.nativeDialog.unavailable")})]});}function L(e){let{state:l,submission:t,t:a}=e;return(0,n.jsxs)("div",{className:"lkd-connect-row",children:[(0,n.jsx)("label",{htmlFor:"lkd-connect-path-input",className:"dlg-label",children:(0,n.jsx)(N,{description:a("localKnowledge.detail.help.sourcePath"),children:a("localKnowledge.detail.connect.sourcePath")})}),(0,n.jsxs)("div",{className:"lkd-connect-path-group",children:[(0,n.jsx)("input",{id:"lkd-connect-path-input",type:"text",className:"dlg-input lkd-connect-input",value:l.rootPath,disabled:l.busy,placeholder:"/absolute/path/to/source",autoComplete:"off",onChange:e=>l.setRootPath(e.target.value),onKeyDown:e=>{"Enter"===e.key&&t.connect();}}),(0,n.jsx)("button",{type:"button",className:"lk-btn lk-btn-primary",disabled:l.busy||null===t.scope,"aria-busy":l.busy,onClick:()=>{t.connect();},children:a(l.busy?"localKnowledge.detail.connect.connecting":"localKnowledge.detail.connect.connect")})]})]});}function M(e){let{state:l,submission:t,t:a}=e;return(0,n.jsxs)("div",{className:"lkd-connect-row",children:[(0,n.jsx)("label",{htmlFor:"lkd-connect-display-name-input",className:"dlg-label",children:(0,n.jsx)(N,{description:a("localKnowledge.detail.help.sourceDisplayName"),children:a("localKnowledge.detail.connect.displayName")})}),(0,n.jsx)("input",{id:"lkd-connect-display-name-input",type:"text",className:"dlg-input lkd-connect-input",value:l.displayName,disabled:l.busy,placeholder:a("localKnowledge.detail.connect.displayNamePlaceholder"),autoComplete:"off",onChange:e=>l.setDisplayName(e.target.value),onKeyDown:e=>{"Enter"===e.key&&t.connect();}})]});}function F(e){let{state:l,t}=e;return(0,n.jsx)("div",{className:"lkd-connect-row",children:(0,n.jsxs)("label",{htmlFor:"lkd-connect-repository-toggle",className:"dlg-label",children:[(0,n.jsx)("input",{id:"lkd-connect-repository-toggle",type:"checkbox",checked:l.repositoryMode,disabled:l.busy,onChange:e=>l.changeRepositoryMode(e.target.checked)})," ",(0,n.jsx)(N,{description:t("localKnowledge.detail.help.repositoryMode"),children:t("localKnowledge.detail.connect.repositoryMode")})]})});}function O(e){let{state:l,t}=e;return(0,n.jsxs)("details",{className:y.default.specificFilesDisclosure,"data-disabled":l.repositoryMode?"true":void 0,open:l.specificFilesExpanded&&!l.repositoryMode,onToggle:e=>{l.repositoryMode||l.setSpecificFilesExpanded(e.currentTarget.open);},children:[(0,n.jsxs)("summary",{className:y.default.specificFilesSummary,"aria-disabled":l.repositoryMode,title:l.repositoryMode?t("localKnowledge.detail.connect.repositoryFilesDisabledNote"):void 0,onClick:e=>{l.repositoryMode&&e.preventDefault();},children:[(0,n.jsx)("span",{children:(0,n.jsx)(N,{description:t("localKnowledge.detail.help.specificFiles"),children:t("localKnowledge.detail.connect.specificFiles")})}),(0,n.jsx)("span",{className:y.default.disclosureIcon,"aria-hidden":"true"})]}),(0,n.jsx)("label",{htmlFor:"lkd-connect-files-input",className:"dlg-label",children:t("localKnowledge.detail.connect.relativeFiles")}),(0,n.jsx)("textarea",{id:"lkd-connect-files-input",className:"dlg-input lkd-connect-input",value:l.filesInput,disabled:l.busy||l.repositoryMode,placeholder:"src/app.ts\nREADME.md",rows:4,onChange:e=>l.setFilesInput(e.target.value)})]});}function q(e){let{state:l,t}=e;return l.repositoryMode?(0,n.jsx)("p",{className:y.default.selectedSourceNote,children:t("localKnowledge.detail.connect.repositoryFilesDisabledNote")}):null;}function B(e){return(0,n.jsxs)("div",{className:"lkd-connect-form","aria-label":e.t("localKnowledge.detail.connect.region"),children:[(0,n.jsx)(A,{locale:e.locale,picker:e.picker,state:e.state,t:e.t}),null!==e.submission.selectedSource?(0,n.jsx)("p",{className:y.default.selectedSourceNote,children:e.submission.selectedSource}):null,(0,n.jsx)(L,{state:e.state,submission:e.submission,t:e.t}),(0,n.jsx)(M,{state:e.state,submission:e.submission,t:e.t}),(0,n.jsx)(F,{state:e.state,t:e.t}),(0,n.jsx)(O,{state:e.state,t:e.t}),(0,n.jsx)(q,{state:e.state,t:e.t}),null!==e.state.connectError?(0,n.jsx)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:e.state.connectError}):null]});}function X(e){let o,{capsuleId:i,onConnected:s,connectImpl:d=t.connectCapsuleSource}=e,c=(0,K.useLocalKnowledgeTranslate)(),r=(0,j.useLocale)(),u=function(){let[e,t]=(0,l.useState)(""),[a,n]=(0,l.useState)(""),[o,i]=(0,l.useState)(""),[s,d]=(0,l.useState)(!1),[c,r]=(0,l.useState)(!1),[u,p]=(0,l.useState)(!1),[g,m]=(0,l.useState)(null);return{rootPath:e,setRootPath:t,displayName:a,setDisplayName:n,filesInput:o,setFilesInput:i,specificFilesExpanded:s,setSpecificFilesExpanded:d,repositoryMode:c,busy:u,setBusy:p,connectError:g,setConnectError:m,changeRepositoryMode:function(e){r(e),e&&(i(""),d(!1));},reset:function(){t(""),n(""),i(""),d(!1),r(!1);}};}(),p=g.map(e=>({name:c(D[e.id]),extensions:e.extensions})),m=(o=(0,l.useId)(),{noteId:o,supported:(0,w.useNativeFileDialogCapability)(),openFolder:function(){(0,k.pickWithNativeDialog)({mode:"open-directory",title:c("localKnowledge.detail.connect.chooseFolder"),...(u.rootPath.trim().length>0?{defaultPath:u.rootPath.trim()}:{})}).then(e=>{R(e,e=>{let l=e[0];void 0!==l&&u.setRootPath(l),u.setFilesInput(""),u.setSpecificFilesExpanded(!1);},u.setConnectError,c);});},openFiles:function(){(0,k.pickWithNativeDialog)({mode:"open-files",title:c("localKnowledge.detail.connect.chooseFiles"),filters:p,...(u.rootPath.trim().length>0?{defaultPath:u.rootPath.trim()}:{})}).then(e=>{R(e,e=>{let l=(0,k.nativePathsToRootAndFiles)(e);u.setRootPath(l.rootPath),u.setFilesInput(l.files.join("\n")),u.setSpecificFilesExpanded(!0);},u.setConnectError,c);});}}),h=function(e,l,t,n,o){let i=function(e,l,t){let a=e.trim();if(""===a)return null;if(t)return{kind:"repository",repositoryRoot:a};let n=I(l);return 0===n.length?{kind:"folder",rootPath:a,recursive:!0}:{kind:"files",rootPath:a,files:n};}(n.rootPath,n.filesInput,n.repositoryMode);async function s(){if(null!==i&&!n.busy){n.setBusy(!0),n.setConnectError(null);try{let a=n.displayName.trim();""===a?await t(e,i):await t(e,i,a),n.reset(),l();}catch(e){n.setConnectError((0,a.formatError)(e,o));}finally{n.setBusy(!1);}}}return{scope:i,selectedSource:function(e,l,t,a){let n=e.trim();if(""===n)return null;if(t)return a("localKnowledge.detail.connect.selectedRepository",{path:n});let o=I(l).length;return o>0?a("localKnowledge.detail.connect.selectedDocuments",{count:o.toString(),root:n}):a("localKnowledge.detail.connect.selectedSource",{path:n});}(n.rootPath,n.filesInput,n.repositoryMode,o),connect:s};}(i,s,d,u,c);return(0,n.jsx)(B,{state:u,picker:m,submission:h,locale:r,t:c});}function U(e,t,a){(0,l.useEffect)(()=>{if(!t)return;let e=document.activeElement;return()=>{var l;return null==e||null==(l=e.focus)?void 0:l.call(e);};},[t]),(0,l.useEffect)(()=>{if(!t)return;let l=e.current;if(null===l)return;let n=l.querySelector("button:not([disabled]),input:not([disabled]),[tabindex]:not([tabindex='-1'])");function o(e){if("Escape"===e.key){e.preventDefault(),a();return;}if("Tab"!==e.key)return;let t=Array.from(l.querySelectorAll("button:not([disabled]),input:not([disabled]),[tabindex]:not([tabindex='-1'])"));if(0===t.length)return void e.preventDefault();let n=t[0],o=t.at(-1);e.shiftKey&&document.activeElement===n?(e.preventDefault(),o.focus()):e.shiftKey||document.activeElement!==o||(e.preventDefault(),n.focus());}return null==n||n.focus(),l.addEventListener("keydown",o),()=>l.removeEventListener("keydown",o);},[t,e,a]);}function $(e){var l,t,a,o,i,s;let{kind:d,progress:c,t:r}=e,u=c.detail,p=null==u?void 0:u.indexingJobs[0],g=null!=(l=null!=(t=null==p?void 0:p.totalDocuments)?t:null==u?void 0:u.health.documentCount)?l:0,h=void 0===p?0:p.processedDocuments+p.failedDocuments+p.skippedDocuments,x=g>0?h/g:0,b=null!=(a=null==u?void 0:u.health.chunkCount)?a:0,v=null!=(o=null==u?void 0:u.health.vectorCount)?o:0,f=b>0?v/b:0,w=c.now-c.startedAt,k=h>0?h/Math.max(w,1):0,j=k>0?Math.max(0,g-h)/k:0,K=null!=(i=null!=(s=null==p?void 0:p.status)?s:null==u?void 0:u.capsule.lifecycleState)?i:"starting",y=r("index"===d?"localKnowledge.detail.progress.indexing":"reembed"===d?"localKnowledge.detail.progress.reembedding":"refresh"===d?"localKnowledge.detail.progress.refreshing":"localKnowledge.detail.progress.repairing"),N=k>0&&g>h?r("localKnowledge.detail.progress.remaining",{duration:(0,m.formatDurationCompact)(j)}):r("localKnowledge.detail.progress.estimating");return(0,n.jsxs)("div",{className:"lkd-action-progress",role:"status","aria-live":"polite",title:r("localKnowledge.detail.help.actionProgress"),children:[(0,n.jsxs)("div",{className:"lkd-action-progress-head",children:[(0,n.jsx)("span",{children:y}),(0,n.jsx)("span",{children:K})]}),(0,n.jsx)("div",{className:"lkd-action-progress-note",children:r("localKnowledge.detail.progress.elapsed",{duration:(0,m.formatDurationCompact)(w),eta:N})}),(0,n.jsxs)("div",{className:"lkd-status-bars",children:[(0,n.jsxs)("div",{className:"lkd-status-bar-row",title:r("localKnowledge.detail.help.actionDocuments"),children:[(0,n.jsx)("span",{children:r("localKnowledge.detail.progress.documents")}),(0,n.jsx)(z,{value:x,label:r("localKnowledge.detail.progress.documentProgress")}),(0,n.jsxs)("span",{children:[h.toString()," / ",g.toString()]})]}),(0,n.jsxs)("div",{className:"lkd-status-bar-row",title:r("localKnowledge.detail.help.actionVectors"),children:[(0,n.jsx)("span",{children:r("localKnowledge.detail.progress.vectors")}),(0,n.jsx)(z,{value:f,label:r("localKnowledge.detail.progress.vectorProgress")}),(0,n.jsxs)("span",{children:[v.toString()," / ",b.toString()]})]})]}),null!==c.pollError?(0,n.jsx)("div",{className:"lkd-action-progress-note",children:r("localKnowledge.detail.progress.delayed",{error:c.pollError})}):null]});}function z(e){let{value:l,label:t}=e;return(0,n.jsx)("div",{className:"lkd-progress",role:"img","aria-label":`${t}: ${C(l)}`,children:(0,n.jsx)("span",{className:"lkd-progress-fill","data-tone":"ok",style:{width:C(l)}})});}function G(e){let{indexBusy:l,indexError:t,progress:a,onIndex:o,t:i}=e;return(0,n.jsxs)("div",{className:`lkd-index-row ${y.default.indexPrompt}`,children:[(0,n.jsx)("button",{type:"button",className:"lk-btn lk-btn-primary","aria-label":i("localKnowledge.detail.actions.index.aria"),"aria-busy":l,disabled:l,title:i("localKnowledge.detail.help.indexNow"),onClick:o,children:i(l?"localKnowledge.detail.actions.index.busy":"localKnowledge.detail.actions.index.button")}),null!==t?(0,n.jsx)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:t}):null,l&&null!==a?(0,n.jsx)($,{kind:"index",progress:a,t:i}):null]});}function J(e){let{capsuleDisplayName:l,showReembedButton:t,showRebuildButton:a,reembedRecommended:o,contextualRebuildRequired:i,actionDisabled:s,onReembed:d,onRebuild:c,onRefresh:r,onRepair:u,onDelete:p,t:g}=e;return(0,n.jsxs)("div",{role:"group","aria-label":g("localKnowledge.detail.actions.group",{name:l}),className:"lkd-actions-group",children:[t?(0,n.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost","data-recommended":o?"true":"false","aria-label":g("localKnowledge.detail.actions.reembed.aria",{name:l}),title:g("localKnowledge.detail.help.actionReembed"),disabled:s,onClick:d,children:g("localKnowledge.detail.actions.reembed.button")}):null,a?(0,n.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost","data-recommended":i?"true":"false","aria-label":g("localKnowledge.detail.actions.rebuild.aria",{name:l}),title:g("localKnowledge.detail.help.actionRebuild"),disabled:s,onClick:c,children:g("localKnowledge.detail.actions.rebuild.button")}):null,(0,n.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost","aria-label":g("localKnowledge.detail.actions.refresh.aria",{name:l}),title:g("localKnowledge.detail.help.actionRefresh"),disabled:s,onClick:r,children:g("localKnowledge.detail.actions.refresh.button")}),(0,n.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost","aria-label":g("localKnowledge.detail.actions.repair.aria",{name:l}),title:g("localKnowledge.detail.help.actionRepair"),disabled:s,onClick:u,children:g("localKnowledge.detail.actions.repair.button")}),(0,n.jsx)("button",{type:"button",className:"lk-btn lk-btn-danger","aria-label":g("localKnowledge.detail.actions.delete.aria",{name:l}),title:g("localKnowledge.detail.help.actionDelete"),onClick:p,children:g("common.delete")})]});}function V(e){let{kind:t,capsuleDisplayName:a,nameInput:i,busy:s,error:d,progress:c,onNameChange:r,onConfirm:u,onCancel:p}=e,g=(0,K.useLocalKnowledgeTranslate)(),m=(0,l.useRef)(null),h=(0,l.useRef)(null);(0,f.useModalInteractionLock)(),U(m,!0,p),(0,l.useEffect)(()=>{"delete"===t&&null!==h.current&&h.current.focus();},[t]);let x=(0,l.useRef)(!1);(0,l.useEffect)(()=>{let e=m.current;if(null!==e){if(s)x.current=!0,e.focus();else if(x.current){var l;x.current=!1,null==(l=e.querySelector("button:not([disabled]),input:not([disabled])"))||l.focus();}}},[s]);let b="delete"===t,v=!s&&(!b||i===a),w="lkd-confirm-title",k="lkd-confirm-desc";return(0,o.createPortal)((0,n.jsx)("div",{className:"dlg-overlay in",role:"presentation",onClick:e=>{e.target===e.currentTarget&&p();},children:(0,n.jsxs)("div",{ref:m,role:"dialog","aria-modal":"true","aria-labelledby":w,"aria-describedby":k,className:"dlg",tabIndex:-1,children:[(0,n.jsx)("div",{className:"dlg-head",children:(0,n.jsxs)("div",{className:"dlg-htext",children:[(0,n.jsx)("div",{id:w,className:"dlg-title",children:g("delete"===t?"localKnowledge.detail.actions.delete.title":"reembed"===t?"localKnowledge.detail.actions.reembed.title":"rebuild"===t?"localKnowledge.detail.actions.rebuild.title":"refresh"===t?"localKnowledge.detail.actions.refresh.title":"localKnowledge.detail.actions.repair.title")}),(0,n.jsx)("div",{id:k,className:"dlg-sub",children:"delete"===t?g("localKnowledge.detail.actions.delete.description",{name:a}):g("refresh"===t?"localKnowledge.detail.actions.refresh.description":"reembed"===t?"localKnowledge.detail.actions.reembed.description":"rebuild"===t?"localKnowledge.detail.actions.rebuild.description":"localKnowledge.detail.actions.repair.description")})]})}),b?(0,n.jsxs)("div",{className:"dlg-body",children:[(0,n.jsxs)("div",{className:"dlg-field",children:[(0,n.jsx)("label",{htmlFor:"lkd-confirm-name-input",className:"dlg-label",children:g("localKnowledge.detail.actions.delete.confirmName")}),(0,n.jsx)("input",{id:"lkd-confirm-name-input",type:"text",className:"dlg-input",value:i,autoComplete:"off",ref:h,disabled:s,placeholder:a,onChange:e=>r(e.target.value)})]}),null!==d?(0,n.jsx)("div",{role:"alert",className:"lk-alert",style:{marginTop:4},children:d}):null]}):(0,n.jsxs)("div",{className:"dlg-body",children:[s&&null!==c?(0,n.jsx)($,{kind:t,progress:c,t:g}):null,null!==d?(0,n.jsx)("div",{role:"alert",className:"lk-alert",children:d}):null]}),(0,n.jsxs)("div",{className:"dlg-foot",children:[(0,n.jsx)("button",{type:"button",className:"dlg-btn",disabled:s,onClick:p,children:g("common.cancel")}),(0,n.jsx)("button",{type:"button",className:"dlg-btn lkd-btn-destructive",disabled:!v,"aria-disabled":!v,onClick:u,children:g(s?"common.working":"delete"===t?"common.delete":"reembed"===t?"localKnowledge.detail.actions.reembed.confirm":"rebuild"===t?"localKnowledge.detail.actions.rebuild.confirm":"refresh"===t?"localKnowledge.detail.actions.refresh.confirm":"localKnowledge.detail.actions.repair.confirm")})]})]})}),document.body);}function H(e){let{affectedCapsuleSetCount:t,onContinue:a}=e,i=(0,K.useLocalKnowledgeTranslate)(),s=(0,l.useRef)(null);(0,f.useModalInteractionLock)(),U(s,!0,a);let d="lkd-affected-sets-title",c="lkd-affected-sets-desc";return(0,o.createPortal)((0,n.jsx)("div",{className:"dlg-overlay in",children:(0,n.jsxs)("div",{ref:s,role:"alertdialog","aria-modal":"true","aria-labelledby":d,"aria-describedby":c,className:"dlg",tabIndex:-1,children:[(0,n.jsx)("div",{className:"dlg-head",children:(0,n.jsxs)("div",{className:"dlg-htext",children:[(0,n.jsx)("div",{id:d,className:"dlg-title",children:i("localKnowledge.detail.deleteAffectedSets.title")}),(0,n.jsx)("div",{id:c,className:"dlg-sub",children:i(1===t?"localKnowledge.detail.deleteAffectedSets.description.one":"localKnowledge.detail.deleteAffectedSets.description.many",{count:t})})]})}),(0,n.jsx)("div",{className:"dlg-foot",children:(0,n.jsx)("button",{type:"button",className:"dlg-btn",onClick:a,children:i("common.continue")})})]})}),document.body);}e.s(["CapsuleActions",0,function(e){var o,i;let{capsuleId:s,capsuleDisplayName:d,sourceCount:c,lifecycleState:r,vectorCompatible:u=!0,contextualRebuildRequired:p=!1,onActionComplete:g,onDeleted:h,connectCapsuleSourceImpl:f=t.connectCapsuleSource,deleteCapsuleImpl:w=t.deleteCapsule,refreshCapsuleImpl:k=t.refreshCapsuleChangedFiles,repairCapsuleImpl:C=t.repairCapsuleFailedFiles,reembedCapsuleImpl:D=t.reembedCapsuleForCurrentModel,rebuildCapsuleImpl:I=t.rebuildCapsuleIndex,startIndexingImpl:R=t.startIndexing,fetchCapsuleDetailImpl:T=t.fetchCapsuleDetail,pollIntervalMs:P=2e3,latestJobId:A}=e,L=(0,K.useLocalKnowledgeTranslate)(),M=(0,j.useLocale)(),[F,O]=(0,l.useState)(null),[q,B]=(0,l.useState)(!1),[U,$]=(0,l.useState)(null),[z,Y]=(0,l.useState)(null),[W,Q]=(0,l.useState)(!1),[Z,ee]=(0,l.useState)(null),[el,et]=(0,l.useState)(null),ea=null!==el&&(!!W||q&&null!==F&&"delete"!==F.kind);async function en(){if(!W){et(S(Date.now(),!1,null!=A?A:null)),Q(!0),ee(null);try{let e=await R(s);et(l=>{var t,a;return a=null!=(t=e.jobId)?t:null,null===l?l:{...l,watchedJobId:a};});}catch(e){ee((0,a.formatError)(e,L)),et(null),Q(!1);}}}function eo(e){$(null),et(null),O({kind:e,nameInput:""});}async function ei(e,l){"delete"!==e&&et(S()),B(!0),$(null);try{let a=await l();if(et(null),O(null),"delete"===e){var t,n;(null!=(t=null==(n=a.affectedCapsuleSetIds)?void 0:n.length)?t:0)>0?Y(a):void 0!==h?h(a):g();}else g();}catch(e){$((0,a.formatError)(e,L));}finally{B(!1);}}(0,l.useEffect)(()=>{if(!ea)return;let e=window.setInterval(()=>{et(_);},1e3);return()=>window.clearInterval(e);},[ea]),(0,l.useEffect)(()=>{if(!ea)return;let e=!1;E(s,T,L,()=>e,et);let l=window.setInterval(()=>{E(s,T,L,()=>e,et);},P);return()=>{e=!0,window.clearInterval(l);};},[s,T,P,ea,L]),(0,l.useEffect)(()=>{if(!W)return;let e=function(e){let l,t=void 0===(l=null==e||null==(a=e.detail)?void 0:a.indexingJobs[0])||"running"===l.status?void 0:l;if(null!==e&&void 0!==t){var a,n;if(null!==e.watchedJobId)return t.id===e.watchedJobId?t:void 0;return e.observedRunning?t:e.reattached?(null==(n=e.detail)?void 0:n.capsule.lifecycleState)==="indexing"?void 0:t:t.id!==e.precedingJobId?t:void 0;}}(el);if(void 0!==e){if(Q(!1),et(null),"failed"===e.status){var l,t;ee(L("localKnowledge.detail.index.runFailed",{message:null!=(l=null==(t=e.lastError)?void 0:t.message)?l:e.status}));}g();}},[W,el,L]),(0,l.useEffect)(()=>{"indexing"!==r||W||(et(e=>null!=e?e:S(Date.now(),!0)),Q(!0));},[r]);let es=c>0&&"ready"!==r,ed=q||W||"indexing"===r;return(0,n.jsxs)("section",{className:`lkd-tools ${y.default.sourceSetup}`,"aria-labelledby":"lkd-source-setup-heading",children:[(0,n.jsx)("div",{className:y.default.sourceSetupHeader,children:(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{id:"lkd-source-setup-heading",className:y.default.sourceSetupTitle,children:(0,n.jsx)(N,{description:L("localKnowledge.detail.help.sourceSetup"),children:L("localKnowledge.detail.connect.title")})}),(0,n.jsx)("p",{className:y.default.sourceSetupDescription,children:L("localKnowledge.detail.connect.description")})]})}),(0,n.jsx)(X,{capsuleId:s,onConnected:g,connectImpl:f}),es?(0,n.jsx)(G,{indexBusy:W,indexError:Z,progress:el,onIndex:()=>void en(),t:L}):null,(0,n.jsxs)("details",{className:y.default.maintenanceDisclosure,children:[(0,n.jsxs)("summary",{className:y.default.disclosureSummary,children:[(0,n.jsx)("span",{children:(0,n.jsx)(N,{description:L("localKnowledge.detail.help.maintenance"),children:L("localKnowledge.detail.actions.maintenance")})}),(0,n.jsx)("span",{children:L("localKnowledge.detail.actions.maintenanceHint")}),(0,n.jsx)("span",{className:y.default.disclosureIcon,"aria-hidden":"true"})]}),(0,n.jsx)("p",{className:"lkd-limit-note",title:L("localKnowledge.detail.help.maintenanceLimits"),children:L("localKnowledge.detail.connect.limitSummary",{size:(0,m.formatBytes)(x,M),objects:b.toLocaleString(M),duration:function(e){let l=Math.round(e/6e4);if(l<60)return`${l.toString()} min`;let t=l/60;return`${t.toString()} h`;}(v)})}),(0,n.jsx)(J,{capsuleDisplayName:d,showReembedButton:c>0,showRebuildButton:c>0,reembedRecommended:c>0&&!u,contextualRebuildRequired:p,actionDisabled:ed,onReembed:()=>eo("reembed"),onRebuild:()=>eo("rebuild"),onRefresh:()=>eo("refresh"),onRepair:()=>eo("repair"),onDelete:()=>eo("delete"),t:L})]}),null!==F?(0,n.jsx)(V,{kind:F.kind,capsuleDisplayName:d,nameInput:F.nameInput,busy:q,error:U,progress:el,onNameChange:function(e){O(l=>null!==l?{...l,nameInput:e}:null);},onConfirm:function(){var e;if(null===F||q)return;let{kind:l}=F;ei(l,(e={deleteCapsuleImpl:w,refreshCapsuleImpl:k,reembedCapsuleImpl:D,rebuildCapsuleImpl:I,repairCapsuleImpl:C},"delete"===l?()=>e.deleteCapsuleImpl(s):"refresh"===l?()=>e.refreshCapsuleImpl(s):"reembed"===l?()=>e.reembedCapsuleImpl(s):"rebuild"===l?()=>e.rebuildCapsuleImpl(s):()=>e.repairCapsuleImpl(s)));},onCancel:function(){q||(O(null),$(null),et(null));}}):null,null!==z?(0,n.jsx)(H,{affectedCapsuleSetCount:null!=(o=null==(i=z.affectedCapsuleSetIds)?void 0:i.length)?o:0,onContinue:function(){null===z||(Y(null),void 0!==h?h(z):g());}}):null]});}],30558);},10985,e=>{"use strict";var l=e.i(10582),t=e.i(87032),a=e.i(61774);function n(e){let{indexing:t,t:a}=e;return null===t||0===t.failedDocuments&&0===t.skippedDocuments?null:(0,l.jsx)("p",{children:a("manualPod.progress.gaps",{failed:String(t.failedDocuments),skipped:String(t.skippedDocuments)})});}function o(e){let{remediations:t,t:a}=e;return 0===t.length?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"lkd-action-progress-note",children:a("manualPod.progress.gapsTitle")}),(0,l.jsx)("ul",{className:"lkd-stale-reasons",children:t.map(e=>(0,l.jsx)("li",{children:e.guidance},e.reason))})]});}e.s(["ManualPodProgressView",0,function(e){let{job:t,t:a,labelKeys:i}=e;return(0,l.jsxs)("div",{className:"lkd-action-progress",role:"status","aria-live":"polite",children:[(0,l.jsx)("p",{children:a("running"===t.state?i.running:"succeeded"===t.state?i.succeeded:"partial"===t.state?i.partial:i.failed)}),(0,l.jsx)("p",{children:a("manualPod.progress.crawl",{accepted:String(t.crawl.accepted),denied:String(t.crawl.deniedCount)})}),null!==t.indexing?(0,l.jsx)("p",{children:a("manualPod.progress.index",{processed:String(t.indexing.processedDocuments),total:String(t.indexing.totalDocuments)})}):null,(0,l.jsx)(n,{indexing:t.indexing,t:a}),"running"===t.state?null:(0,l.jsx)(o,{remediations:t.remediations,t:a})]});},"useManualPodJobPolling",0,function(e){let{pollJobId:l,getJob:n,onJob:o,onError:i,onComplete:s,intervalMs:d}=e;(0,t.useEffect)(()=>{let e;if(void 0===l)return;let t=!1,c=()=>{n(l).then(l=>{t||(o(l),"running"===l.state?e=window.setTimeout(c,d):null==s||s());}).catch(e=>{t||i((0,a.formatError)(e));});};return e=window.setTimeout(c,d),()=>{t=!0,window.clearTimeout(e);};},[l,n,o,i,s,d]);}]);},80010,e=>{"use strict";var l=e.i(10582),t=e.i(87032),a=e.i(86796),n=e.i(14520),o=e.i(24744),i=e.i(7340),s=e.i(61593),d=e.i(83449),c=e.i(10644),r=e.i(5909),u=e.i(96688),p=e.i(69128),g=e.i(30558),m=e.i(50850),h=e.i(61774),x=e.i(10985);let b={running:"manualPodRefresh.progress.running",succeeded:"manualPodRefresh.state.succeeded",partial:"manualPodRefresh.state.partial",failed:"manualPodRefresh.state.failed"};function v(e){var a,n,o;let i=(0,m.useTranslate)(),[d,c]=(0,t.useState)({kind:"idle"}),r=(0,t.useRef)(!1),u=null!=(a=e.startRefreshImpl)?a:s.startHtmlManualPodRefresh,p=null!=(n=e.getJobImpl)?n:s.getHtmlManualPodJob,g=(0,t.useCallback)(e=>c({kind:"active",job:e}),[]),v=(0,t.useCallback)(e=>c({kind:"error",message:e}),[]),w="active"===d.kind&&"running"===d.job.state?d.job.jobId:void 0;(0,x.useManualPodJobPolling)({pollJobId:w,getJob:p,onJob:g,onError:v,onComplete:e.onRefreshComplete,intervalMs:null!=(o=e.pollIntervalMs)?o:1500});let k=(0,t.useCallback)(()=>{r.current||(r.current=!0,u(e.capsuleId,e.sourceId).then(e=>c({kind:"active",job:e})).catch(e=>c({kind:"error",message:(0,h.formatError)(e)})).finally(()=>{r.current=!1;}));},[u,e.capsuleId,e.sourceId]);return"active"===d.kind?(0,l.jsx)(x.ManualPodProgressView,{job:d.job,t:i,labelKeys:b}):(0,l.jsxs)("div",{className:"lkd-manual-refresh-trigger",children:["error"===d.kind?(0,l.jsx)("p",{className:"lk-alert",role:"alert",children:d.message}):null,"confirm"===d.kind?(0,l.jsx)(f,{t:i,onConfirm:k,onCancel:()=>c({kind:"idle"})}):(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",onClick:()=>c({kind:"confirm"}),children:i("manualPodRefresh.button")})]});}function f(e){let{t,onConfirm:a,onCancel:n}=e;return(0,l.jsxs)("div",{className:"lkd-manual-refresh-confirm",children:[(0,l.jsx)("span",{children:t("manualPodRefresh.confirm.body")}),(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",onClick:n,children:t("manualPodRefresh.confirm.cancel")}),(0,l.jsx)("button",{type:"button",className:"lk-btn",onClick:a,children:t("manualPodRefresh.confirm.confirm")})]});}function w(e){let{name:a,description:n,busy:o,error:i,nameInputRef:s,onNameChange:d,onDescriptionChange:r,onCancel:u,onSubmit:p}=e,g=(0,c.useLocalKnowledgeTranslate)(),m=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let e=e=>{if("Escape"!==e.key||o)return;let l=m.current;(null==l?void 0:l.contains(document.activeElement))===!0&&u();};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e);};},[o,u]),(0,l.jsxs)("form",{className:"lkd-rename-form","aria-label":g("localKnowledge.detail.rename.formLabel"),onSubmit:p,ref:m,children:[(0,l.jsxs)("div",{className:"dlg-field",children:[(0,l.jsx)("label",{htmlFor:"lkd-rename-name",className:"dlg-label",children:g("localKnowledge.detail.rename.displayName")}),(0,l.jsx)("input",{id:"lkd-rename-name",type:"text",className:"dlg-input",ref:s,value:a,disabled:o,autoComplete:"off",onChange:e=>d(e.target.value)})]}),(0,l.jsxs)("div",{className:"dlg-field",children:[(0,l.jsx)("label",{htmlFor:"lkd-rename-desc",className:"dlg-label",children:g("localKnowledge.detail.rename.description")}),(0,l.jsx)("input",{id:"lkd-rename-desc",type:"text",className:"dlg-input",value:n,disabled:o,autoComplete:"off",onChange:e=>r(e.target.value)})]}),null!==i?(0,l.jsx)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:i}):null,(0,l.jsxs)("div",{className:"lkd-rename-actions",children:[(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",disabled:o,onClick:u,children:g("common.cancel")}),(0,l.jsx)("button",{type:"submit",className:"lk-btn lk-btn-primary",disabled:o,"aria-busy":o,children:g(o?"common.saving":"common.save")})]})]});}function k(e){let{capsuleId:a,displayName:n,description:o,onRenamed:i,renameImpl:d=s.renameCapsule}=e,r=(0,c.useLocalKnowledgeTranslate)(),[u,p]=(0,t.useState)(!1),[g,m]=(0,t.useState)(n),[x,b]=(0,t.useState)(null!=o?o:""),[v,f]=(0,t.useState)(!1),[k,j]=(0,t.useState)(null),K=(0,t.useRef)(null),y=(0,t.useRef)(null),N=(0,t.useRef)(!1);async function C(e){let l,t;e.preventDefault();let s=g.trim();if(0===s.length)return void j(r("localKnowledge.detail.rename.nameRequired"));let c=(l={},s!==n&&(l.displayName=s),((t=x.trim())!==(null!=o?o:"")&&(l.description=t),void 0===l.displayName&&void 0===l.description)?null:l);if(null===c)return void p(!1);f(!0),j(null);try{await d(a,c),p(!1),i();}catch(e){j((0,h.formatError)(e,r));}finally{f(!1);}}return(0,t.useEffect)(()=>{var e,l;u?null==(e=K.current)||e.focus():N.current&&(null==(l=y.current)||l.focus()),N.current=u;},[u]),u?(0,l.jsx)(w,{name:g,description:x,busy:v,error:k,nameInputRef:K,onNameChange:m,onDescriptionChange:b,onCancel:function(){v||(p(!1),j(null));},onSubmit:e=>void C(e)}):(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost","aria-label":r("localKnowledge.detail.rename.buttonFor",{name:n}),ref:y,onClick:function(){m(n),b(null!=o?o:""),j(null),p(!0);},children:r("localKnowledge.detail.rename.button")});}var j=e.i(48268),K=e.i(64533);function y(e){var a,n;let{capsuleId:o,source:i,onRebound:d,rebindImpl:r=s.rebindCapsuleSourceRoot}=e,u=(0,c.useLocalKnowledgeTranslate)(),p=(0,t.useId)(),g="repository"===(a=i.scope).kind?a.repositoryRoot:a.rootPath,[m,x]=(0,t.useState)(!1),[b,v]=(0,t.useState)(g),[f,w]=(0,t.useState)(!1),[k,y]=(0,t.useState)(null),N=(0,t.useId)(),C=(0,j.useNativeFileDialogCapability)(),S=b.trim();async function _(){if(0!==S.length&&!f){w(!0),y(null);try{await r(o,i.sourceId,S),x(!1),d();}catch(e){y((0,h.formatError)(e,u));}finally{w(!1);}}}return(0,l.jsx)("div",{className:"lkd-source-rebind",children:m?(0,l.jsxs)("div",{className:"lkd-rebind-form",children:[(0,l.jsx)("label",{htmlFor:p,className:"dlg-label",title:u("localKnowledge.detail.help.rebind"),children:(n=i.scope,"repository"===n.kind?u("localKnowledge.detail.rebind.repositoryRoot"):"files"===n.kind?u("localKnowledge.detail.rebind.sharedRoot"):u("localKnowledge.detail.rebind.folderRoot"))}),(0,l.jsxs)("div",{className:"lkd-connect-path-group",children:[(0,l.jsx)("input",{id:p,type:"text",className:"dlg-input lkd-connect-input",value:b,disabled:f,autoComplete:"off",onChange:e=>v(e.target.value),onKeyDown:e=>{"Enter"===e.key&&_();}}),(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",disabled:f||!C,"aria-describedby":C?void 0:N,onClick:function(){(0,K.pickWithNativeDialog)({mode:"open-directory",title:u("localKnowledge.detail.rebind.chooseRoot"),...(S.length>0?{defaultPath:S}:{})}).then(e=>{if("picked"===e.kind&&void 0!==e.paths[0]){v(e.paths[0]),y(null);return;}"busy"===e.kind&&y(u("localKnowledge.nativeDialog.busy")),"unsupported"===e.kind&&y(u("localKnowledge.nativeDialog.unavailable")),"error"===e.kind&&y(e.message);});},children:u("common.browse")})]}),C?null:(0,l.jsx)("span",{id:N,className:"dlg-note",children:u("localKnowledge.nativeDialog.unavailable")}),(0,l.jsxs)("div",{className:"lkd-rebind-actions",children:[(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",disabled:f,onClick:function(){f||(x(!1),y(null));},children:u("common.cancel")}),(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-primary",disabled:f||0===S.length,"aria-busy":f,onClick:()=>void _(),children:f?u("localKnowledge.detail.rebind.saving"):u("localKnowledge.detail.rebind.save")})]}),null!==k?(0,l.jsx)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:k}):null]}):(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",title:u("localKnowledge.detail.help.rebind"),onClick:function(){v(g),y(null),x(!0);},children:u("localKnowledge.detail.rebind.button")})});}var N=e.i(94891),C=e.i(80814),S=e.i(60865);function _(e){return new Date(e).toLocaleString("en-US",{dateStyle:"medium",timeStyle:"short"});}function E(e){return Number.isFinite(e)?`${Math.round(100*Math.max(0,Math.min(1,e))).toString()}%`:"0%";}function D(e){return e.indexingJobs[0];}function I(e){return{width:E(e)};}function R(e){return`${e.provider} / ${e.modelId} (${e.vectorDimensions.toString()}d, ${e.vectorMetric})`;}function T(e){var l,t;return null!=(l=null==(t=e.health.embeddingCompatibility)?void 0:t.status)?l:e.health.vectorCompatible?"compatible":"incompatible";}function P(e,l){return l("compatible"===e?"localKnowledge.detail.compatibility.compatible":"unknown"===e?"localKnowledge.detail.compatibility.unknown":"localKnowledge.detail.compatibility.incompatible");}function A(e){return"ready"===e?"ok":"unavailable"===e?"danger":"rebuild-required"===e||"degraded"===e?"warn":"neutral";}function L(e,l){return l("ready"===e?"localKnowledge.detail.context.status.ready":"rebuild-required"===e?"localKnowledge.detail.context.status.rebuild":"degraded"===e?"localKnowledge.detail.context.status.degraded":"unavailable"===e?"localKnowledge.detail.context.status.unavailable":"localKnowledge.detail.context.status.disabled");}function M(e){let{children:t,help:a}=e;return(0,l.jsx)("h2",{className:"lk-section-head",children:void 0===a?t:(0,l.jsx)(C.Explainable,{description:a,children:t})});}function F(e){let[l,a]=(0,t.useState)(!1);return{visibleCount:l?e:Math.min(25,e),showAll:l,setShowAll:a};}function O(e){let{hiddenCount:t,showAll:a,onToggle:n,noun:o,t:i}=e;return!a&&t<=0?null:(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",onClick:n,children:a?i("localKnowledge.detail.rows.showFewer",{noun:o}):i("localKnowledge.detail.rows.showMore",{count:t,noun:o})});}function q(e){let{label:t,value:a,meta:n,help:o,tone:i="neutral"}=e,s=(0,l.jsxs)("div",{className:"lkd-metric-card","data-tone":i,children:[(0,l.jsx)("span",{className:"lkd-metric-label",children:t}),(0,l.jsx)("strong",{className:"lkd-metric-value",children:a}),(0,l.jsx)("span",{className:"lkd-metric-meta",children:n})]});return void 0===o?s:(0,l.jsx)(C.Explainable,{as:"div",block:!0,description:o,children:s});}function B(e){let{value:t,label:a,tone:n="ok"}=e;return(0,l.jsx)("div",{className:"lkd-progress",role:"img","aria-label":`${a}: ${E(t)}`,children:(0,l.jsx)("span",{className:"lkd-progress-fill","data-tone":n,style:I(t)})});}function X(e){let{label:t,value:a,help:n,tone:o="ok"}=e;return(0,l.jsx)(C.Explainable,{as:"div",block:!0,description:n,children:(0,l.jsxs)("div",{className:"lkd-status-bar-row",children:[(0,l.jsx)("span",{children:t}),(0,l.jsx)(B,{value:a,label:t,tone:o}),(0,l.jsx)("span",{children:E(a)})]})});}function U(e){return e>0?"danger":"ok";}function $(e){var t;let a,o,{data:i}=e,s=(0,c.useLocalKnowledgeTranslate)(),r=D(i),u=null!=(t=null==r?void 0:r.totalDocuments)?t:i.health.documentCount,p=void 0===r?0:r.processedDocuments+r.failedDocuments+r.skippedDocuments,g=Math.max(0,i.health.documentCount-i.health.failedDocuments-i.health.skippedDocuments),m=u<=0?0:p/u,h=i.health.chunkCount<=0?0:i.health.vectorCount/i.health.chunkCount,x=Math.max(0,i.health.chunkCount-i.health.vectorCount),b=function(e,l,t,a){var n;if((null==e?void 0:e.status)==="running"&&l>0&&t>0){let n,o;return a("localKnowledge.detail.index.eta",{duration:(0,d.formatDurationCompact)((n=void 0===e?0:Math.max(Date.now()-e.startedAt,1),(o=t>0?t/n:0)<=0?0:Math.max(0,l-t)/o))});}return void 0===e?a("localKnowledge.detail.index.noJobRecorded"):(0,d.formatDurationCompact)((null!=(n=e.finishedAt)?n:Date.now())-e.startedAt);}(r,u,p,s),v=x<=0&&i.health.failedDocuments<=0?"ok":(null==r?void 0:r.lastError)!==void 0?"danger":"warn";return(0,l.jsxs)("section",{"aria-labelledby":"lkd-index-status-heading",className:"lkd-status-section",children:[(0,l.jsxs)("div",{className:"lkd-section-title-row",children:[(0,l.jsx)(M,{help:s("localKnowledge.detail.help.indexStatus"),children:(0,l.jsx)("span",{id:"lkd-index-status-heading",children:s("localKnowledge.detail.index.title")})}),(0,l.jsx)("span",{className:"lkd-live-note","aria-live":"polite",children:s((null==r?void 0:r.status)==="running"?"localKnowledge.detail.index.updating":"localKnowledge.detail.index.latestRun")})]}),(0,l.jsxs)("div",{className:"lkd-metric-grid",children:[(0,l.jsx)(q,{label:s("localKnowledge.detail.index.indexedDocuments"),help:s("localKnowledge.detail.help.indexedDocuments"),value:`${g.toString()} / ${i.health.documentCount.toString()}`,meta:s("localKnowledge.detail.index.failedSkipped",{failed:i.health.failedDocuments,skipped:i.health.skippedDocuments}),tone:i.health.failedDocuments>0?"danger":i.health.skippedDocuments>0?"warn":"ok"}),(0,l.jsx)(q,{label:s("localKnowledge.detail.index.vectors"),help:s("localKnowledge.detail.help.vectors"),value:`${i.health.vectorCount.toString()} / ${i.health.chunkCount.toString()}`,meta:x>0?s("localKnowledge.detail.index.chunksMissingVectors",{count:x}):s("localKnowledge.detail.index.allChunksEmbedded"),tone:U(x)}),(0,l.jsx)(q,{label:s("localKnowledge.detail.index.latestJob"),help:s("localKnowledge.detail.help.latestJob"),value:void 0===r?s("localKnowledge.detail.index.notIndexed"):en(r.status,s),meta:b,tone:(null==r?void 0:r.status)==="failed"?"danger":(null==r?void 0:r.status)==="running"?"warn":"neutral"})]}),(0,l.jsxs)("div",{className:"lkd-status-bars",children:[(0,l.jsx)(X,{label:s("localKnowledge.detail.index.discoveryProgress"),value:m,help:s("localKnowledge.detail.help.discoveryProgress")}),(0,l.jsx)(X,{label:s("localKnowledge.detail.index.retrievalCoverage"),value:h,help:s("localKnowledge.detail.help.retrievalCoverage"),tone:U(x)})]}),(0,l.jsx)(C.Explainable,{as:"div",block:!0,description:s("localKnowledge.detail.help.indexMessage"),children:(0,l.jsx)("p",{className:"lkd-status-callout","data-tone":v,children:(a=i.health.chunkCount-i.health.vectorCount,o=new Set(n.INDEXING_EMBEDDING_STOPPED_ERROR_CODES),(null==r?void 0:r.lastError)!==void 0&&o.has(r.lastError.code)?s("localKnowledge.detail.index.embeddingStopped",{message:r.lastError.message,count:a}):a>0?s("localKnowledge.detail.index.missingVectors",{count:a}):i.health.unsupportedDocuments>0?s("localKnowledge.detail.index.unsupportedDocuments",{count:i.health.unsupportedDocuments}):s("localKnowledge.detail.index.aligned"))})})]});}function z(e){var t,a,n,o,i;let{data:s}=e,d=(0,c.useLocalKnowledgeTranslate)(),r=s.health.embeddingCompatibility,u=T(s),p="compatible"===u?"ok":"unknown"===u?"warn":"danger",g=void 0===r?R(s.health.embeddingIdentity):`${r.pinnedModelId} (${r.pinnedVectorDimensions.toString()}d, ${r.pinnedVectorMetric})`,m=null!=(t=null==r?void 0:r.pinnedProvider)?t:s.health.embeddingIdentity.provider,h=null!=(a=null==r?void 0:r.currentModelId)?a:d("localKnowledge.detail.compatibility.notConfigured"),x=null!=(n=null==r?void 0:r.currentProvider)?n:d("localKnowledge.detail.compatibility.noProvider"),b=null!=(o=null==r?void 0:r.message)?o:d(s.health.vectorCompatible?"localKnowledge.detail.compatibility.readyMessage":"localKnowledge.detail.compatibility.fixGatewayMessage");return(0,l.jsxs)("section",{"aria-labelledby":"lkd-embedding-compat-heading",className:"lkd-status-section",children:[(0,l.jsxs)("div",{className:"lkd-section-title-row",children:[(0,l.jsx)(M,{help:d("localKnowledge.detail.help.embeddingSection"),children:(0,l.jsx)("span",{id:"lkd-embedding-compat-heading",children:d("localKnowledge.detail.compatibility.title")})}),(0,l.jsx)("span",{className:"lkd-live-note",children:P(u,d)})]}),(0,l.jsxs)("div",{className:"lkd-metric-grid",children:[(0,l.jsx)(q,{label:d("localKnowledge.detail.compatibility.pinnedModel"),help:d("localKnowledge.detail.help.pinnedModel"),value:g,meta:m}),(0,l.jsx)(q,{label:d("localKnowledge.detail.compatibility.currentModel"),help:d("localKnowledge.detail.help.currentModel"),value:h,meta:x}),(0,l.jsx)(q,{label:d("localKnowledge.detail.compatibility.metric"),help:d("localKnowledge.detail.help.compatibility"),value:P(u,d),meta:null!=(i=null==r?void 0:r.reason)?i:d("localKnowledge.detail.compatibility.legacyHealth"),tone:p})]}),(0,l.jsx)(C.Explainable,{as:"div",block:!0,description:d("localKnowledge.detail.help.embeddingMessage"),children:(0,l.jsx)("p",{className:"lkd-status-callout","data-tone":p,children:b})})]});}function G(e){let{label:t,value:a,help:n}=e;return(0,l.jsxs)("div",{className:"lkd-row",children:[(0,l.jsx)("dt",{className:"lkd-label",children:void 0===n?t:(0,l.jsx)(C.Explainable,{description:n,children:t})}),(0,l.jsx)("dd",{className:"lkd-value",children:a})]});}function J(e){let{data:t}=e,a=(0,c.useLocalKnowledgeTranslate)(),{capsule:n,health:o}=t,i=n.embeddingModelIdentity,s=T(t);return(0,l.jsxs)("section",{"aria-labelledby":"lkd-overview-heading",children:[(0,l.jsx)(M,{help:a("localKnowledge.detail.help.overview"),children:(0,l.jsx)("span",{id:"lkd-overview-heading",children:a("localKnowledge.detail.overview.title")})}),(0,l.jsxs)("dl",{className:"lkd-dl",children:[(0,l.jsx)(G,{label:a("localKnowledge.detail.overview.name"),value:n.displayName}),void 0!==n.description?(0,l.jsx)(G,{label:a("localKnowledge.detail.overview.description"),value:n.description}):null,n.tags.length>0?(0,l.jsx)(G,{label:a("localKnowledge.detail.overview.tags"),value:(0,l.jsx)("ul",{className:"lkd-tags","aria-label":a("localKnowledge.detail.overview.tags"),children:n.tags.map(e=>(0,l.jsx)("li",{className:"lkd-tag",children:e},e))})}):null,(0,l.jsx)(G,{label:a("common.status"),help:a("localKnowledge.detail.help.overviewStatus"),value:(0,l.jsx)("output",{className:"lk-badge","data-state":n.lifecycleState,"aria-label":a("localKnowledge.detail.overview.statusAria",{status:u.STATUS_LABELS[n.lifecycleState]}),children:u.STATUS_LABELS[n.lifecycleState]})}),(0,l.jsx)(G,{label:a("localKnowledge.detail.overview.embeddingModel"),help:a("localKnowledge.detail.help.overviewEmbeddingModel"),value:R(i)}),(0,l.jsx)(G,{label:a("localKnowledge.detail.overview.storageSize"),help:a("localKnowledge.detail.help.overviewStorage"),value:(0,d.formatBytes)(o.storageSizeBytes)}),(0,l.jsx)(G,{label:a("localKnowledge.detail.overview.unsupportedDocuments"),help:a("localKnowledge.detail.help.overviewUnsupported"),value:o.unsupportedDocuments.toString()}),void 0!==o.lastIndexedAt?(0,l.jsx)(G,{label:a("localKnowledge.detail.overview.lastIndexed"),help:a("localKnowledge.detail.help.overviewLastIndexed"),value:_(o.lastIndexedAt)}):null,(0,l.jsx)(G,{label:a("localKnowledge.detail.overview.vectorCompatible"),help:a("localKnowledge.detail.help.overviewVectorCompatible"),value:"compatible"===s?a("localKnowledge.detail.compatibility.compatible"):"unknown"===s?a("localKnowledge.detail.overview.vectorUnknown"):a("localKnowledge.detail.overview.vectorIncompatible")}),o.staleReasons.length>0?(0,l.jsx)(G,{label:a("localKnowledge.detail.overview.staleReasons"),help:a("localKnowledge.detail.help.overviewStaleReasons"),value:(0,l.jsx)("ul",{className:"lkd-stale-reasons","aria-label":a("localKnowledge.detail.overview.staleReasons"),children:o.staleReasons.map(e=>(0,l.jsx)("li",{children:e},e))})}):null,o.unsupportedGuidanceCodes.length>0?(0,l.jsx)(G,{label:a("localKnowledge.detail.overview.nextSteps"),help:a("localKnowledge.detail.help.overviewNextSteps"),value:(0,l.jsx)("ul",{className:"lkd-stale-reasons","aria-label":a("localKnowledge.detail.overview.unsupportedGuidance"),children:o.unsupportedGuidanceCodes.map(e=>(0,l.jsx)("li",{children:(0,c.unsupportedGuidanceText)(e,a)},e))})}):null]})]});}function V(e){let l=e.trim();if(0===l.length)return;let t=Number.parseInt(l,10);return Number.isSafeInteger(t)&&t>0?t:void 0;}function H(e){return void 0===e?"":e.toString();}function Y(e){let{message:t,tone:a,live:n}=e;return n?(0,l.jsx)("output",{className:"lkd-status-callout",style:S.NATIVE_BLOCK_STYLE,"data-tone":a,children:t}):(0,l.jsx)("p",{className:"lkd-status-callout","data-tone":a,children:t});}function W(e){var a,n,o,i;let{data:d,onSaved:r,updateImpl:u=s.updateCapsuleContextualRetrieval}=e,p=(0,c.useLocalKnowledgeTranslate)(),g=d.capsule.contextualRetrieval,m=d.health.contextualRetrieval,[h,x]=(0,t.useState)(null!=(a=null==g?void 0:g.enabled)&&a),[b,v]=(0,t.useState)(null!=(n=null==g?void 0:g.modelId)?n:""),[f,w]=(0,t.useState)(null!=(o=null==g?void 0:g.strict)&&o),[k,j]=(0,t.useState)(H(null==g?void 0:g.maxContextChars)),[K,y]=(0,t.useState)(H(null==g?void 0:g.documentContextMaxChars)),[N,_]=(0,t.useState)(!1),[E,D]=(0,t.useState)(null),[I,R]=(0,t.useState)(null);async function T(){let e=V(k),l=V(K),t={enabled:h,...(b.trim().length>0?{modelId:b.trim()}:{}),strict:f,...(void 0!==e?{maxContextChars:e}:{}),...(void 0!==l?{documentContextMaxChars:l}:{})};_(!0),D(null),R(null);try{let e=await u(d.capsule.id,t);r(e),D(p("localKnowledge.detail.context.saved"));}catch(e){R(e instanceof Error?e.message:p("localKnowledge.detail.context.saveFailed"));}finally{_(!1);}}return(0,t.useEffect)(()=>{var e,l,t;x(null!=(e=null==g?void 0:g.enabled)&&e),v(null!=(l=null==g?void 0:g.modelId)?l:""),w(null!=(t=null==g?void 0:g.strict)&&t),j(H(null==g?void 0:g.maxContextChars)),y(H(null==g?void 0:g.documentContextMaxChars));},[g]),(0,l.jsxs)("section",{"aria-labelledby":"lkd-contextual-retrieval-heading",className:"lkd-status-section",children:[(0,l.jsxs)("div",{className:"lkd-section-title-row",children:[(0,l.jsx)(M,{help:p("localKnowledge.detail.help.contextualRetrieval"),children:(0,l.jsx)("span",{id:"lkd-contextual-retrieval-heading",children:p("localKnowledge.detail.context.title")})}),(0,l.jsx)("span",{className:"lkd-live-note",children:L(null==m?void 0:m.status,p)})]}),(0,l.jsx)("p",{className:"lkd-status-callout","data-tone":A(null==m?void 0:m.status),children:p("localKnowledge.detail.context.description")}),void 0!==m?(0,l.jsxs)("div",{className:"lkd-metric-grid",children:[(0,l.jsx)(q,{label:p("localKnowledge.detail.context.retrievalContext"),help:p("localKnowledge.detail.help.contextStatus"),value:L(m.status,p),meta:p("localKnowledge.detail.context.settingsSource",{source:m.source}),tone:A(m.status)}),(0,l.jsx)(q,{label:p("localKnowledge.detail.context.model"),help:p("localKnowledge.detail.help.contextModel"),value:null!=(i=m.modelId)?i:p("localKnowledge.detail.context.gatewayDefault"),meta:m.strict?p("localKnowledge.detail.context.strict"):p("localKnowledge.detail.context.nonStrict")}),(0,l.jsx)(q,{label:p("localKnowledge.detail.context.staleChunks"),help:p("localKnowledge.detail.help.contextStale"),value:m.staleChunkCount.toString(),meta:p("localKnowledge.detail.context.degradedChunks",{count:m.degradedChunkCount}),tone:m.rebuildRequired||m.degradedChunkCount>0?"warn":"ok"})]}):null,(null==m?void 0:m.message)!==void 0?(0,l.jsx)(Y,{message:m.message,tone:A(m.status),live:m.rebuildRequired}):null,(0,l.jsx)("div",{className:"lkd-connect-row",children:(0,l.jsxs)("label",{className:"dlg-label",htmlFor:"lkd-context-enabled",title:p("localKnowledge.detail.help.contextEnable"),children:[(0,l.jsx)("input",{id:"lkd-context-enabled",type:"checkbox",checked:h,disabled:N,onChange:e=>x(e.target.checked)})," ",p("localKnowledge.detail.context.generateAtIndex")]})}),(0,l.jsxs)("div",{className:"lkd-connect-row",children:[(0,l.jsx)("label",{htmlFor:"lkd-context-model",className:"dlg-label",children:(0,l.jsx)(C.Explainable,{description:p("localKnowledge.detail.help.contextModelInput"),children:p("localKnowledge.detail.context.modelId")})}),(0,l.jsx)("input",{id:"lkd-context-model",type:"text",className:"dlg-input lkd-connect-input",value:b,disabled:N||!h,placeholder:p("localKnowledge.detail.context.defaultModelPlaceholder"),onChange:e=>v(e.target.value)})]}),(0,l.jsx)("div",{className:"lkd-connect-row",children:(0,l.jsxs)("label",{className:"dlg-label",htmlFor:"lkd-context-strict",title:p("localKnowledge.detail.help.contextStrict"),children:[(0,l.jsx)("input",{id:"lkd-context-strict",type:"checkbox",checked:f,disabled:N||!h,onChange:e=>w(e.target.checked)})," ",p("localKnowledge.detail.context.failOnError")]})}),(0,l.jsxs)("div",{className:"lkd-connect-row",children:[(0,l.jsx)("label",{htmlFor:"lkd-context-max",className:"dlg-label",children:(0,l.jsx)(C.Explainable,{description:p("localKnowledge.detail.help.contextGeneratedLimit"),children:p("localKnowledge.detail.context.generatedLimit")})}),(0,l.jsx)("input",{id:"lkd-context-max",type:"number",min:1,className:"dlg-input lkd-connect-input",value:k,disabled:N||!h,placeholder:"480",onChange:e=>j(e.target.value)})]}),(0,l.jsxs)("div",{className:"lkd-connect-row",children:[(0,l.jsx)("label",{htmlFor:"lkd-document-context-max",className:"dlg-label",children:(0,l.jsx)(C.Explainable,{description:p("localKnowledge.detail.help.contextDocumentLimit"),children:p("localKnowledge.detail.context.documentLimit")})}),(0,l.jsx)("input",{id:"lkd-document-context-max",type:"number",min:1,className:"dlg-input lkd-connect-input",value:K,disabled:N||!h,placeholder:"12000",onChange:e=>y(e.target.value)})]}),(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",disabled:N,"aria-busy":N,title:p("localKnowledge.detail.help.contextSave"),onClick:()=>void T(),children:N?p("common.saving"):p("localKnowledge.detail.context.save")}),null!==E?(0,l.jsx)("output",{className:"lkd-status-callout",style:S.NATIVE_BLOCK_STYLE,"data-tone":"warn",children:E}):null,null!==I?(0,l.jsx)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:I}):null]});}function Q(e){let{capsuleId:t,sources:a,onActionComplete:n}=e,o=(0,c.useLocalKnowledgeTranslate)();return 0===a.length?(0,l.jsxs)("section",{"aria-labelledby":"lkd-sources-heading",children:[(0,l.jsx)(M,{help:o("localKnowledge.detail.help.sources"),children:(0,l.jsx)("span",{id:"lkd-sources-heading",children:o("localKnowledge.detail.sources.title")})}),(0,l.jsx)("p",{className:"lkd-empty-note",children:o("localKnowledge.detail.sources.empty")})]}):(0,l.jsxs)("section",{"aria-labelledby":"lkd-sources-heading",children:[(0,l.jsx)(M,{help:o("localKnowledge.detail.help.sources"),children:(0,l.jsx)("span",{id:"lkd-sources-heading",children:o("localKnowledge.detail.sources.title")})}),(0,l.jsx)("ul",{className:"lkd-list lkd-source-list","aria-label":o("localKnowledge.detail.sources.list"),children:a.map(e=>{var a;let i=e.indexedCount+e.failedCount+e.skippedCount,s=(a=e.scope,"folder"===a.kind?a.rootPath:"repository"===a.kind?a.repositoryRoot:o(1===a.files.length?"localKnowledge.detail.sources.selectedFiles.one":"localKnowledge.detail.sources.selectedFiles.many",{root:a.rootPath,count:a.files.length}));return(0,l.jsxs)("li",{className:"lkd-source-card",title:o("localKnowledge.detail.help.sourceCard"),children:[(0,l.jsxs)("div",{className:"lkd-source-card-head",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"lkd-source-name",title:e.displayName,children:e.displayName}),(0,l.jsx)("div",{className:"lkd-source-path",title:s,children:s})]}),(0,l.jsxs)("div",{className:"lkd-source-card-actions",children:[(0,l.jsx)("span",{className:"lkd-source-scope",children:e.scope.kind}),(0,l.jsx)(y,{capsuleId:t,source:e,onRebound:n})]})]}),(0,l.jsxs)("div",{className:"lkd-source-coverage",role:"img",title:o("localKnowledge.detail.help.sourceCoverage"),"aria-label":o("localKnowledge.detail.sources.coverage",{indexed:e.indexedCount,failed:e.failedCount,skipped:e.skippedCount}),children:[(0,l.jsx)("span",{className:"lkd-source-segment lkd-source-segment-ok",style:I(i>0?e.indexedCount/i:0)}),(0,l.jsx)("span",{className:"lkd-source-segment lkd-source-segment-fail",style:I(i>0?e.failedCount/i:0)}),(0,l.jsx)("span",{className:"lkd-source-segment lkd-source-segment-skip",style:I(i>0?e.skippedCount/i:0)})]}),(0,l.jsxs)("div",{className:"lkd-source-counts","aria-label":o("localKnowledge.detail.documentCounts"),children:[(0,l.jsx)("span",{className:"lkd-count lkd-count-ok",children:o("localKnowledge.detail.counts.indexed",{count:e.indexedCount})}),(0,l.jsx)("span",{className:"lkd-count lkd-count-fail",children:o("localKnowledge.detail.counts.failed",{count:e.failedCount})}),(0,l.jsx)("span",{className:"lkd-count lkd-count-skip",children:o("localKnowledge.detail.counts.skipped",{count:e.skippedCount})})]})]},e.sourceId);})})]});}function Z(){let e=(0,c.useLocalKnowledgeTranslate)();return(0,l.jsxs)("section",{"aria-labelledby":"lkd-privacy-heading",children:[(0,l.jsx)(M,{help:e("localKnowledge.detail.help.privacy"),children:(0,l.jsx)("span",{id:"lkd-privacy-heading",children:e("localKnowledge.detail.privacy.title")})}),(0,l.jsxs)("ul",{className:"lkd-list","aria-label":e("localKnowledge.detail.privacy.details"),children:[(0,l.jsx)("li",{className:"lkd-source-row",children:e("localKnowledge.detail.privacy.localState")}),(0,l.jsx)("li",{className:"lkd-source-row",children:e("localKnowledge.detail.privacy.modelGateway")}),(0,l.jsx)("li",{className:"lkd-source-row",children:e("localKnowledge.detail.privacy.deletion")})]})]});}function ee(e,l){return l("info"===e?"localKnowledge.detail.diagnostics.severity.info":"warning"===e?"localKnowledge.detail.diagnostics.severity.warning":"localKnowledge.detail.diagnostics.severity.error");}function el(e){let{group:t,t:a}=e,n=ee(t.severity,a);return(0,l.jsxs)("li",{className:"lkd-diag-group","data-severity":t.severity,title:a("localKnowledge.detail.help.diagnosticRow"),"aria-label":a("localKnowledge.detail.diagnostics.groupAria",{severity:n,code:t.code,count:t.count}),children:[(0,l.jsx)("span",{className:"lkd-diag-severity","aria-hidden":"true",children:n}),(0,l.jsxs)("span",{className:"lkd-diag-group-count",children:[t.count.toString(),"x"]}),(0,l.jsx)("span",{className:"lkd-diag-code",children:t.code}),(0,l.jsx)("span",{className:"lkd-diag-message",children:t.message})]});}function et(e){let{diag:t,t:a}=e,n=ee(t.severity,a);return(0,l.jsxs)("li",{className:"lkd-diag-row","data-severity":t.severity,title:a("localKnowledge.detail.help.diagnosticRow"),"aria-label":a("localKnowledge.detail.diagnostics.rowAria",{severity:n,code:t.code}),children:[(0,l.jsx)("span",{className:"lkd-diag-severity","aria-hidden":"true",children:n}),(0,l.jsx)("span",{className:"lkd-diag-code",children:t.code}),(0,l.jsx)("span",{className:"lkd-diag-message",children:t.message}),void 0!==t.pageNumber?(0,l.jsxs)("span",{className:"lkd-diag-page",children:["p.",t.pageNumber.toString()]}):null]});}function ea(e){let{diagnostics:t}=e,a=(0,c.useLocalKnowledgeTranslate)(),{visibleCount:n,showAll:o,setShowAll:i}=F(t.length),s=t.slice(0,n),d=t.length-s.length,r=function(e){let l=new Map();for(let a of e){var t;let e=`${a.severity}\u0000${a.code}\u0000${a.message}`,n=l.get(e);l.set(e,{key:e,severity:a.severity,code:a.code,message:a.message,count:(null!=(t=null==n?void 0:n.count)?t:0)+1});}return[...l.values()].sort((e,l)=>l.count-e.count||e.code.localeCompare(l.code));}(t).slice(0,8);return(0,l.jsxs)("section",{"aria-labelledby":"lkd-diag-heading",children:[(0,l.jsx)(M,{help:a("localKnowledge.detail.help.diagnostics"),children:(0,l.jsx)("span",{id:"lkd-diag-heading",children:a("localKnowledge.detail.diagnostics.title")})}),0===t.length?(0,l.jsx)("p",{className:"lkd-empty-note","data-testid":"diag-empty",children:a("localKnowledge.detail.diagnostics.empty")}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("ul",{className:"lkd-list lkd-diag-group-list","aria-label":a("localKnowledge.detail.diagnostics.groupedList"),children:r.map(e=>(0,l.jsx)(el,{group:e,t:a},e.key))}),(0,l.jsx)("ul",{className:"lkd-list lkd-diag-list","aria-label":a("localKnowledge.detail.diagnostics.list"),children:s.map((e,t)=>(0,l.jsx)(et,{diag:e,t:a},`${e.code}-${t.toString()}`))}),(0,l.jsx)(O,{hiddenCount:d,noun:a("localKnowledge.detail.rows.diagnostics"),showAll:o,onToggle:()=>i(!o),t:a})]})]});}function en(e,l){return l("queued"===e?"localKnowledge.detail.jobs.status.queued":"running"===e?"localKnowledge.detail.jobs.status.running":"succeeded"===e?"localKnowledge.detail.jobs.status.succeeded":"failed"===e?"localKnowledge.detail.jobs.status.failed":"localKnowledge.detail.jobs.status.cancelled");}function eo(e){let{epochMs:t}=e,a=(0,d.toSafeIsoString)(t);return(0,l.jsx)("time",{...(void 0===a?{}:{dateTime:a}),children:_(t)});}function ei(e){let{job:t,t:a}=e,n=void 0!==t.finishedAt?(0,d.formatDurationCompact)(t.finishedAt-t.startedAt):a("localKnowledge.detail.jobs.inProgress");return(0,l.jsxs)("li",{className:"lkd-job-row",title:a("localKnowledge.detail.help.jobRow"),"aria-label":a("localKnowledge.detail.jobs.rowAria",{id:t.id,status:en(t.status,a)}),children:[(0,l.jsx)("span",{className:"lkd-job-status","data-status":t.status,children:en(t.status,a)}),(0,l.jsxs)("span",{className:"lkd-job-dates",children:[(0,l.jsx)(eo,{epochMs:t.startedAt}),void 0!==t.finishedAt?(0,l.jsxs)(l.Fragment,{children:[" — ",(0,l.jsx)(eo,{epochMs:t.finishedAt})]}):null]}),(0,l.jsx)("span",{className:"lkd-job-duration",children:n}),(0,l.jsxs)("div",{className:"lkd-source-counts","aria-label":a("localKnowledge.detail.documentCounts"),children:[(0,l.jsx)("span",{className:"lkd-count lkd-count-ok",children:a("localKnowledge.detail.counts.processed",{count:t.processedDocuments})}),(0,l.jsx)("span",{className:"lkd-count lkd-count-fail",children:a("localKnowledge.detail.counts.failed",{count:t.failedDocuments})}),(0,l.jsx)("span",{className:"lkd-count lkd-count-skip",children:a("localKnowledge.detail.counts.skipped",{count:t.skippedDocuments})})]}),void 0!==t.lastError?(0,l.jsxs)("div",{className:"lkd-job-error",children:[(0,l.jsx)("span",{children:t.lastError.code}),(0,l.jsx)("span",{children:t.lastError.message})]}):null]});}function es(e){let{jobs:t}=e,a=(0,c.useLocalKnowledgeTranslate)(),{visibleCount:n,showAll:o,setShowAll:i}=F(t.length),s=t.slice(0,n),d=t.length-s.length;return(0,l.jsxs)("section",{"aria-labelledby":"lkd-jobs-heading",children:[(0,l.jsx)(M,{help:a("localKnowledge.detail.help.jobs"),children:(0,l.jsx)("span",{id:"lkd-jobs-heading",children:a("localKnowledge.detail.jobs.title")})}),0===t.length?(0,l.jsx)("p",{className:"lkd-empty-note",children:a("localKnowledge.detail.jobs.empty")}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("ul",{className:"lkd-list","aria-label":a("localKnowledge.detail.jobs.list"),children:s.map(e=>(0,l.jsx)(ei,{job:e,t:a},e.id))}),(0,l.jsx)(O,{hiddenCount:d,noun:a("localKnowledge.detail.rows.jobs"),showAll:o,onToggle:()=>i(!o),t:a})]})]});}function ed(e,l){return l("preflight"===e?"localKnowledge.detail.large.phase.preflight":"extracting"===e?"localKnowledge.detail.large.phase.extracting":"extracted"===e?"localKnowledge.detail.large.phase.extracted":"chunking"===e?"localKnowledge.detail.large.phase.chunking":"chunked"===e?"localKnowledge.detail.large.phase.chunked":"embedding"===e?"localKnowledge.detail.large.phase.embedding":"embedded"===e?"localKnowledge.detail.large.phase.embedded":"complete"===e?"localKnowledge.detail.large.phase.complete":"cancelled"===e?"localKnowledge.detail.large.phase.cancelled":"localKnowledge.detail.large.phase.failed");}function ec(e){let{capsuleId:a,recovery:n,onActionComplete:o,resumeImpl:i}=e,d=(0,c.useLocalKnowledgeTranslate)(),[r,u]=(0,t.useState)(!1),[p,g]=(0,t.useState)(null);async function m(){u(!0),g(null);try{await(null!=i?i:s.resumeCapsuleLargeDocuments)(a,n.jobId),o();}catch(e){g(e instanceof Error?e.message:d("localKnowledge.detail.recovery.failed"));}finally{u(!1);}}return(0,l.jsxs)("section",{className:"lkd-status-section","aria-labelledby":"lkd-indexing-recovery-heading",children:[(0,l.jsx)("h2",{id:"lkd-indexing-recovery-heading",children:d("localKnowledge.detail.recovery.title")}),(0,l.jsx)("p",{role:"status","aria-live":"polite",children:d(`localKnowledge.detail.recovery.${n.state}`,{sources:n.sourceCount,processed:n.processedDocuments})}),"resumable"===n.state?(0,l.jsx)("button",{type:"button",className:"lk-action-button",disabled:r,"aria-label":d("localKnowledge.detail.recovery.resumeAria"),onClick:()=>void m(),children:r?d("localKnowledge.detail.recovery.resuming"):d("localKnowledge.detail.recovery.resume")}):null,null!==p?(0,l.jsx)("div",{role:"alert",children:p}):null]});}function er(e){var t;let{progress:a,t:n}=e;return(0,l.jsxs)("li",{className:"lkd-source-card",title:n("localKnowledge.detail.help.largeDocumentRow"),children:[(0,l.jsxs)("div",{className:"lkd-source-card-head",children:[(0,l.jsx)("div",{className:"lkd-source-name",title:a.safeDisplayName,children:a.safeDisplayName}),(0,l.jsx)("span",{className:"lkd-source-scope",children:ed(a.phase,n)})]}),(0,l.jsxs)("div",{className:"lkd-metric-meta",children:[(0,l.jsx)("span",{"data-tone":"complete"===(t=a.coverage)?"ok":"none"===t?"danger":"warn",children:n("localKnowledge.detail.large.coverage",{coverage:a.coverage})})," · ",n("localKnowledge.detail.large.pages",{count:a.processedPages})," · ",n("localKnowledge.detail.large.chunksEmbedded",{embedded:a.embeddedChunkCount,chunks:a.chunkCount}),a.resumable?` \xb7 ${n("localKnowledge.detail.large.resumable")}`:""]})]});}function eu(e){var a;let{capsuleId:n,health:i,onActionComplete:d,jobActive:r,resumeImpl:u}=e,p=(0,c.useLocalKnowledgeTranslate)(),[g,m]=(0,t.useState)(!1),[h,x]=(0,t.useState)(null);if(0===i.progress.length)return null;let b=i.progress.filter(e=>!(0,o.isTerminalExtractionPhase)(e.phase)).map(e=>ed(e.phase,p));async function v(){m(!0),x(null);try{await(null!=u?u:s.resumeCapsuleLargeDocuments)(n),d();}catch(e){x(e instanceof Error?e.message:p("localKnowledge.detail.large.resumeFailed"));}finally{m(!1);}}return(0,l.jsxs)("section",{"aria-labelledby":"lkd-large-doc-heading",className:"lkd-status-section",children:[(0,l.jsxs)("div",{className:"lkd-section-title-row",children:[(0,l.jsx)(M,{help:p("localKnowledge.detail.help.largeDocuments"),children:(0,l.jsx)("span",{id:"lkd-large-doc-heading",children:p("localKnowledge.detail.large.title")})}),(0,l.jsx)("span",{className:"lkd-live-note",role:"status","aria-live":"polite",children:b.length>0?p("localKnowledge.detail.large.inProgress",{phases:b.join(", ")}):p("localKnowledge.detail.large.idle")})]}),i.partialCoverageDocuments>0?(0,l.jsx)("p",{className:"lkd-status-callout","data-tone":"warn",children:p(1===i.partialCoverageDocuments?"localKnowledge.detail.large.partialCoverage.one":"localKnowledge.detail.large.partialCoverage.many",{count:i.partialCoverageDocuments})}):null,(0,l.jsx)("ul",{className:"lkd-list lkd-source-list","aria-label":p("localKnowledge.detail.large.list"),children:i.progress.map(e=>(0,l.jsx)(er,{progress:e,t:p},e.documentId))}),i.qualityWarnings.length>0?(0,l.jsx)("ul",{className:"lkd-stale-reasons","aria-label":p("localKnowledge.detail.large.qualityWarnings"),children:i.qualityWarnings.map(e=>(0,l.jsx)("li",{children:e},e))}):null,i.resumableDocuments.length>0?(0,l.jsx)("button",{type:"button",onClick:()=>{v();},disabled:g||r,"aria-label":p("localKnowledge.detail.large.resumeAria"),title:p("localKnowledge.detail.help.largeResume"),className:"lk-action-button",children:(a=i.resumableDocuments.length,g?p("localKnowledge.detail.large.resuming"):p(1===a?"localKnowledge.detail.large.resume.one":"localKnowledge.detail.large.resume.many",{count:a}))}):null,null!==h?(0,l.jsx)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:h}):null]});}e.s(["CapsuleDetail",0,function(){var e,t,n,o,s,d,u,m,h;let x,{capsuleId:b,onDeleted:f,fetchDetailImpl:w,resumeImpl:j,updateContextualRetrievalImpl:K}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},y=(0,c.useLocalKnowledgeTranslate)(),S=(0,a.useSearchParams)(),_=(0,a.useRouter)(),E=null!=b?b:null!=(e=S.get("capsuleId"))?e:"",{data:I,loadStatus:R,loadError:T,reload:P,replaceData:A}=(0,p.useCapsuleDetail)(E,w),L=void 0===j?{}:{resumeImpl:j};return"loading"===R?(0,l.jsx)("p",{role:"status","aria-live":"polite",className:"lk-loading",children:y("localKnowledge.detail.loading")}):"error"===R||null===I?""===E?(0,l.jsxs)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:[y("localKnowledge.detail.noSelection"),(0,l.jsx)(r.default,{href:"/local-knowledge",className:"lk-alert-retry",children:y("localKnowledge.detail.backToLocalKnowledge")})]}):(null==T?void 0:T.includes("NOT_FOUND"))===!0||(null==T?void 0:T.toLowerCase().includes("not found"))===!0?(0,l.jsxs)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:[y("localKnowledge.detail.notFound"),(0,l.jsx)(r.default,{href:"/local-knowledge",className:"lk-alert-retry",children:y("localKnowledge.overview.backToPods")})]}):(0,l.jsxs)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:[null!=T?T:y("localKnowledge.detail.loadFailed"),(0,l.jsx)("button",{type:"button",onClick:P,"aria-label":y("localKnowledge.detail.retryLoad"),className:"lk-alert-retry",children:y("common.retry")})]}):(0,l.jsxs)("div",{className:`lkd-content ${N.default.detailContent}`,children:[(0,l.jsxs)("header",{className:`lk-header ${N.default.podHeader}`,children:[(0,l.jsx)("h1",{className:`lk-title ${N.default.podTitle}`,children:I.capsule.displayName}),(0,l.jsx)(k,{capsuleId:E,displayName:I.capsule.displayName,...(void 0!==I.capsule.description?{description:I.capsule.description}:{}),onRenamed:P})]}),(0,l.jsx)(g.CapsuleActions,{capsuleId:E,capsuleDisplayName:I.capsule.displayName,sourceCount:I.sources.length,lifecycleState:I.capsule.lifecycleState,vectorCompatible:I.health.vectorCompatible,contextualRebuildRequired:null!=(t=null==(n=I.health.contextualRetrieval)?void 0:n.rebuildRequired)&&t,onActionComplete:P,onDeleted:function(e){void 0!==f?f(e):_.push("/local-knowledge");},...((null==(o=I.indexingJobs[0])?void 0:o.id)!==void 0?{latestJobId:I.indexingJobs[0].id}:{})}),(u=I.capsule.tags,m=I.sources,void 0===(x=void 0!==(0,i.parseHtmlManualSourceTagMetadata)(u)?null==(h=m[0])?void 0:h.sourceId:void 0)?null:(0,l.jsx)(v,{capsuleId:E,sourceId:x,onRefreshComplete:P})),(0,l.jsx)($,{data:I}),void 0!==I.health.indexingRecovery?(0,l.jsx)(ec,{capsuleId:E,recovery:I.health.indexingRecovery,onActionComplete:P,...L}):null,(0,l.jsxs)("details",{className:N.default.advancedDisclosure,children:[(0,l.jsxs)("summary",{className:N.default.disclosureSummary,children:[(0,l.jsx)("span",{children:(0,l.jsx)(C.Explainable,{description:y("localKnowledge.detail.help.advanced"),children:y("localKnowledge.detail.advanced.summary")})}),(0,l.jsx)("span",{children:y("localKnowledge.detail.advanced.hint")}),(0,l.jsx)("span",{className:N.default.disclosureIcon,"aria-hidden":"true"})]}),(0,l.jsxs)("div",{className:N.default.advancedStack,children:[(0,l.jsx)(z,{data:I}),(0,l.jsx)(W,{data:I,onSaved:A,...(void 0!==K?{updateImpl:K}:{})}),void 0!==I.largeDocumentHealth?(0,l.jsx)(eu,{capsuleId:E,health:I.largeDocumentHealth,onActionComplete:P,jobActive:"indexing"===I.capsule.lifecycleState||(null==(s=D(I))?void 0:s.status)==="running"||(null==(d=D(I))?void 0:d.status)==="queued",...L}):null,(0,l.jsx)(Q,{capsuleId:E,sources:I.sources,onActionComplete:P}),(0,l.jsx)(J,{data:I}),(0,l.jsx)(Z,{}),(0,l.jsx)(ea,{diagnostics:I.parserDiagnostics}),(0,l.jsx)(es,{jobs:I.indexingJobs})]})]})]});}],80010);}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34955,30985,e=>{"use strict";e.s(["sortProjects",0,function(e){return[...e].sort((e,t)=>e.favorite!==t.favorite?e.favorite?-1:1:e.lastOpenedAt!==t.lastOpenedAt?t.lastOpenedAt-e.lastOpenedAt:e.path.localeCompare(t.path));}],34955);let t=new Set(["completed","dry-run","fix-applied","fix-proposed","investigation-only"]);function r(e){return e.length>200?e.slice(0,200):e;}function n(e){if(null!==e&&"object"==typeof e)return e;}function i(){return"Investigation complete; root cause documented.";}function a(e){let t=e.workflowId;return"unit-test-generation"===t||"unit-tests"===t?"unit-tests":"bug-investigation"===t?"bug":"verify"===e.taskType?"verify":"explain-plan"===e.taskType?"explain":"other";}e.s(["classifyRunReport",0,function(e,s){let o,l,d,c=n(e);if(void 0===c)return{kind:"unknown"};let u=function(e){let t=e.status;if("string"==typeof t)return t;}(c),f=a(s);return"running"===u?{kind:"running"}:"cancelled"===u?{kind:"terminal",summary:{workflowStatus:"cancelled",shortResult:"Run cancelled."}}:"failed"===u||"rejected"===u?{kind:"terminal",summary:{workflowStatus:"failed",shortResult:r(void 0!==(d="string"==typeof(l=null==(o=n(c.failure))?void 0:o.message)&&l.length>0?l:void 0)?r(`Run failed: ${d}.`):"Run failed.")}}:void 0!==u&&t.has(u)?{kind:"terminal",summary:{workflowStatus:"completed",shortResult:r(function(e,t){if("unit-tests"===t)return function(e){let t,r=e.addedTestFiles;if(Array.isArray(r)){let e=0,i=!1;for(let t of r){let r=n(t),a=null==r?void 0:r.estimatedTestCount;"number"==typeof a&&Number.isFinite(a)&&(e+=a,i=!0);}i&&(t=e);}let i=Array.isArray(r)?r.length:0;return i>0&&void 0!==t?`Generated ${String(i)} test files; ${String(t)} tests proposed.`:i>0?`Generated ${String(i)} test files.`:"Completed.";}(e);if("bug"===t)return i();if("verify"===t){let t,r;return Array.isArray(r=null==(t=n(e.verificationSummary))?void 0:t.results)&&r.length>0?`Verification passed: ${String(r.length)} classifications.`:"Verification passed.";}if("explain"===t){let t=e.dryRunPreview;if("string"==typeof t&&t.length>0){let e=t.split("\n").filter(e=>e.trim().length>0);if(e.length>0)return`Plan generated; ${String(e.length)} steps.`;}return"Plan generated.";}return"Completed.";}(c,f))}}:{kind:"unknown"};},"formatRunSummaryFromManifest",0,function(e,t){let s=n(e),o=void 0===s?void 0:n(s.run),l=void 0===o?void 0:o.outcome,d=a(t);if("cancelled"===l)return{workflowStatus:"cancelled",shortResult:"Run cancelled."};if("failed"===l||"limit-exceeded"===l)return{workflowStatus:"failed",shortResult:"Run failed."};if("completed"===l)return{workflowStatus:"completed",shortResult:r("bug"===d?i():"verify"===d?"Verification passed.":"explain"===d?"Plan generated.":"unit-tests"===d?"Generated tests.":"Completed.")};return{workflowStatus:"completed",shortResult:"Completed."};}],30985);},86090,e=>{"use strict";var t=e.i(76055);let r=[/\bsk-[A-Za-z0-9_-]{12,}\b/g,/\bBearer\s+[\w.~+/=-]{12,}(?![\w.~+/=-])/gi,/\bgho_\w{12,}\b/g,/\bghp_\w{12,}\b/g];function n(e){let t=e;for(let e of r)t=t.replace(e,"[REDACTED]");return t.replace(/\bBearer\s+\[REDACTED\]/gi,"[REDACTED]");}function i(e){return""!==e&&/\s/u.test(e);}function a(e,t){return"BAD_REQUEST"===t&&e.toLowerCase().includes("too broad")&&e.toLowerCase().includes("connected");}function s(e){return"CLARIFICATION_NEEDED"===e;}function o(e,t,r){return"GATEWAY_TIMEOUT"===t&&(0===e.length||e===t)?"The model gateway timed out before the model returned a response.":e.length>0?e:r;}function l(e,t){return s(t)?"Keiko braucht mehr Kontext":a(e,t)?"Narrow the connected-source question":"GATEWAY_TIMEOUT"===t?"Model gateway timed out":"PAYLOAD_TOO_LARGE"===t?"Request is too large":"NO_MODEL"===t?"No model is available":void 0!==t?"Request failed":"Something went wrong";}function d(e,t){return s(t)?"Nenne eine konkrete Datei, einen Identifier, eine Fehlermeldung oder eine exakte Phrase.":a(e,t)?"Ask about a specific file, folder, symbol, identifier, or exact phrase. For broad questions over large project folders, narrow the Files scope first.":"GATEWAY_TIMEOUT"===t?"Retry. If it repeats, use a smaller prompt or another model, then check gateway URL, proxy, and deployment in Settings.":"PAYLOAD_TOO_LARGE"===t?"Reduce the selected scope or remove large attachments before retrying.":void 0;}e.s(["formatUserError",0,function(e,r){if(e instanceof t.ApiError){let t=o(n(e.message.trim()),e.code,r);return`${t} (${e.code})`;}return e instanceof Error&&e.message.trim().length>0?n(e.message.trim()):r;},"toUserErrorNotice",0,function(e,r){var a;let s;if(e instanceof t.ApiError){let t=o(n(e.message.trim()),e.code,r);return{title:l(t,e.code),message:t,code:e.code,remediation:d(t,e.code)};}let c=void 0===(s=function(e){var t,r,n,a,s;let o=e.length;for(;o>0&&i(null!=(t=e[o-1])?t:"");)o--;if(0===o||")"!==e[o-1])return;let l=o-1,d=l;for(;d>0&&(s=null!=(r=e[d-1])?r:"",/[A-Z0-9_/-]/u.test(s));)d--;let c=e.slice(d,l);if(c.length<3||!/^[A-Z]$/u.test(null!=(n=c[0])?n:""))return;let u=d-1;if(u<0||"("!==e[u])return;let f=u;for(;f>0&&i(null!=(a=e[f-1])?a:"");)f--;if(f!==u)return{prefixEnd:f,code:c};}(a=n(("string"==typeof e?e.trim():e instanceof Error?e.message.trim():"")||r)))?{message:a,code:void 0}:{message:a.slice(0,s.prefixEnd).trim(),code:s.code};return{title:l(c.message,c.code),message:c.message,code:c.code,remediation:d(c.message,c.code)};}]);},87552,28269,e=>{"use strict";let t,r,n,i;var a=e.i(87032),s=e.i(26428),o=e.i(50850),l=e.i(78025),d=e.i(76055),c=e.i(83500),u=e.i(20405),f=e.i(34955),v=e.i(30985),m=e.i(89956),h=e.i(86090);let p="Canonical voice hashing is unavailable.";function g(){return e.A(83233);}function y(e){if(void 0===t)throw Error(p);return t.sha256Hex(e);}e.s(["canonicalVoiceHasherIsReady",0,function(){return void 0!==t;},"canonicalVoiceSha256Hex",0,y,"prepareCanonicalVoiceHasher",0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;if(void 0!==t)return Promise.resolve();if(void 0!==r)return r.promise;let n=Promise.resolve().then(e).then(e=>{if((null==r?void 0:r.generation)!==0||"function"!=typeof e.sha256Hex)throw Error(p);t=e;}).catch(()=>{throw Error(p);}).finally(()=>{(null==r?void 0:r.generation)===0&&(r=void 0);});return r={generation:0,promise:n},n;}],28269);var w=e.i(45624);function b(e){void 0!==e.previewUrl&&"function"==typeof URL.revokeObjectURL&&URL.revokeObjectURL(e.previewUrl);}async function C(e){let t=new Uint8Array(await e.arrayBuffer());return{sha256:Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t)),e=>e.toString(16).padStart(2,"0")).join(""),contentBase64:function(e){let t="";for(let r=0;r<e.length;r+=32768)t+=String.fromCodePoint(...e.subarray(r,r+32768));return btoa(t);}(t)};}async function E(e,t,r){let n;if("document"===t)return{ok:!0};try{n=URL.createObjectURL(e);}catch{return{ok:!1,reason:"unsupported-type"};}if(void 0===r)return URL.revokeObjectURL(n),{ok:!1,reason:"delivery-refused"};try{let t=await C(e),i=await(0,d.uploadConversationAttachment)({projectPath:r.projectPath,chatId:r.id,mimeType:e.type,sizeBytes:e.size,sha256:t.sha256,contentBase64:t.contentBase64});return{ok:!0,previewUrl:n,upload:{attachmentRef:i.attachmentRef,expiresAt:i.expiresAt,sha256:t.sha256,projectPath:r.projectPath,chatId:r.id}};}catch{return URL.revokeObjectURL(n),{ok:!1,reason:"delivery-refused"};}}async function k(e){"image"===e.kind&&void 0!==e.attachmentRef&&void 0!==e.sha256&&void 0!==e.projectPath&&void 0!==e.chatId&&(await(0,d.deleteConversationAttachment)({attachmentRef:e.attachmentRef,projectPath:e.projectPath,chatId:e.chatId,mimeType:e.mimeType,sizeBytes:e.sizeBytes,sha256:e.sha256}));}let M="New chat",R="No conversation-eligible model is configured. Connect a gateway in Settings.",A="keiko:chat-upsert",I="keiko:chat-delete",T=129*s.MAX_DESKTOP_CHAT_INPUT_BYTES,S="The spoken turn is still pending. Retry it before sending another message.",P="A spoken turn identity was reused with different transcript content.",j=["completed","failed","cancelled"];function _(e){return"idle"!==e&&!j.includes(e);}let D="Attachments are not supported for grounded chats. Remove the attachment or switch to a non-grounded chat.",O="The model request completed, but the provider did not return any answer text. Retry once; if it happens again, check the selected model deployment in Settings.",L=new Set(["CONVERSATION_OVERSIZED_CONTEXT","GATEWAY_CONTEXT_OVERFLOW"]),U=["context length","context_length_exceeded","max_tokens","too many tokens"],x=["empty assistant response","empty grounded answer","without assistant content"];function N(e){let t;return function(e){if(e instanceof d.ApiError&&L.has(e.code))return!0;let t=e instanceof Error?e.message.toLowerCase():"";return 0!==t.length&&U.some(e=>t.includes(e));}(e)?"The conversation context exceeded the model's window. Open a new chat or pick a larger-context model.":0!==(t=e instanceof Error?e.message.toLowerCase():"").length&&x.some(e=>t.includes(e))?e instanceof d.ApiError?`${O} (${e.code})`:O:(0,h.formatUserError)(e,"Something went wrong. Try again.");}function B(e){return[...e].sort((e,t)=>t.updatedAt-e.updatedAt);}function F(e){return e.find(e=>"closed"!==e.status);}function G(e,t){return B([t,...e.filter(e=>e.id!==t.id)]);}function q(e,t,r){let n=new Set(t),i=new Set(r.map(e=>e.id)),a=[],s=!1;for(let t of e){if(n.has(t.id)){s||a.push(...r),s=!0;continue;}i.has(t.id)||a.push(t);}return s||a.push(...r),a;}function H(e,t,r){return e.some(e=>"user"===e.role&&!e.id.startsWith("local-")&&e.content===t&&e.timestamp>=r);}function $(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=new Set(e.map(e=>e.id)),a=new Set(n),s=[...r.values()].filter(r=>r.chatId===t&&!a.has(r.message.id)&&!i.has(r.message.id)&&!H(e,r.content,r.message.timestamp)).map(e=>e.message);return 0===s.length?Array.from(e):[...e,...s];}function z(e,t){return{id:`local-voice-${crypto.randomUUID()}`,chatId:e,role:"user",content:t,timestamp:Date.now(),runId:void 0,workflowId:void 0,workflowStatus:void 0,shortResult:void 0,taskType:void 0};}let V=new Set(),W=!1;function Y(e){for(let t of("delete"===e.type&&function(e){let t=ei.queueRef.current.filter(t=>t.target.chat.id===e),r=`${e}\u0000`;for(let e of ei.settledRef.current.keys())e.startsWith(r)&&ei.settledRef.current.delete(e);0!==t.length&&ed(t,{status:"failed",retryable:!1});}(e.chatId),V))t(e);}function K(e){let t=e.detail;"object"==typeof t&&null!==t&&"string"==typeof t.id&&"string"==typeof t.projectPath&&"string"==typeof t.title&&"string"==typeof t.selectedModel&&(eS(),Y({type:"upsert",chat:t}));}function X(e){let t=e.detail;"object"==typeof t&&null!==t&&"string"==typeof t.chatId&&(eS(),Y({type:"delete",chatId:t.chatId}));}function Z(e){eS(),window.dispatchEvent(new CustomEvent(A,{detail:e}));}function Q(e){var t;return null==(t=(0,m.electConversationDefault)(e.filter(J),e=>e.conversationReady))?void 0:t.id;}function J(e){return(0,m.isConversationEligibleModel)(e)&&!1!==e.conversationReady;}function ee(e,t,r,n){return{...(t?{}:{modelId:e}),title:r,...(void 0!==n?{projectPath:n}:{})};}function et(e,t){return void 0!==e&&t.some(t=>t.id===e&&J(t));}function er(e,t){return et(e,t)?{id:e,elected:!1}:{id:Q(t),elected:!0};}function en(e){return void 0!==e.connectedScope||void 0!==e.connectedScopes&&e.connectedScopes.length>0||void 0!==e.localKnowledgeScope||void 0!==e.localKnowledgeScopes&&e.localKnowledgeScopes.length>0;}let ei={queueRef:{current:[]},queueBytesRef:{current:0},projectionRef:{current:new Map()},projectionBytesRef:{current:0},deliveriesRef:{current:new Map()},settledRef:{current:new Map()},drainingOwner:void 0,activeDelivery:void 0,runtimes:new Map(),wakes:new Set(),statusSubscribers:new Set(),status:{suspendedChatId:void 0,revision:0}};function ea(e){for(let t of(ei.status={suspendedChatId:e,revision:ei.status.revision+1},ei.statusSubscribers))t(ei.status);}function es(e){ei.status.suspendedChatId!==e&&ea(e);}function eo(){return void 0!==ei.status.suspendedChatId;}function el(e,t){let r=ei.settledRef.current;if(r.set(e,t),r.size<=258)return;let n=r.keys().next().value;void 0!==n&&r.delete(n);}function ed(e,t){let r,n=ei.queueRef.current,i=new Set(e.map(e=>e.key));void 0!==(r=ei.activeDelivery)&&i.has(r.key)&&r.abort();let a=function(e,t){let r=0;for(let n of e)!function(e){let t=ei.projectionRef.current.get(e);void 0!==t&&(ei.projectionRef.current.delete(e),ei.projectionBytesRef.current=Math.max(0,ei.projectionBytesRef.current-t.byteLength));}(n.key),ei.deliveriesRef.current.delete(n.key),n.resolve(t),r+=n.byteLength;return r;}(e,t);ei.queueBytesRef.current=Math.max(0,ei.queueBytesRef.current-a);for(let e=n.length-1;e>=0;e-=1){let t=n[e];void 0!==t&&i.has(t.key)&&n.splice(e,1);}let s=ei.status.suspendedChatId,o=void 0!==s&&eu(s);ea(o?s:void 0),o||ec();}function ec(){for(let e of ei.wakes)e();}function eu(e){return ei.queueRef.current.some(t=>t.target.chat.id===e);}function ef(e,t){let r=e.filter(e=>"assistant"===e.role),n=1===r.length?r[0]:void 0;return void 0===n?{status:"failed"}:{status:"completed",assistantMessageId:n.id,...(void 0===t||0===t.length?{}:{deliveredImageIds:t.map(e=>e.id)})};}function ev(e){return"completed"===e.status||"in-progress"===e.status||"failed"===e.status&&!0===e.userPersisted||"cancelled"===e.status&&e.userPersisted;}function em(e){return"completed"===e.status||"cancelled"===e.status&&(e.userPersisted||!0===e.interrupted)||"failed"===e.status&&!1===e.retryable&&!0!==e.suspend;}async function eh(e,t){try{if(await t.waitForSendSlot(),t.signal.aborted)return;return await t.send({text:e.content,reportOutcome:!0,clientTurnId:e.clientTurnId,canonicalVoiceTarget:e.target,optimisticMessage:e.optimistic,forceBuffered:!0});}catch{return;}}async function ep(e){try{return await eL(1500,e),!0;}catch{return!1;}}async function eg(e,t){let r={admissionAttempts:0,inProgressPolls:0};for(;!t.signal.aborted;){let n=await eh(e,t);if(void 0!==n){let e=function(e,t,r){if(ev(e)&&t.onUserPersisted(),em(e))return{kind:"terminal",outcome:e};if("failed"===e.status&&!0===e.suspend)return t.onDeliveryDelayed(),{kind:"suspended"};if("in-progress"!==e.status){r.admissionAttempts+=1;return;}if(r.inProgressPolls+=1,!(r.inProgressPolls<3))return t.onDeliveryDelayed(),{kind:"suspended"};}(n,t,r);if(void 0!==e)return e;}else t.signal.aborted||(r.admissionAttempts+=1);if(r.admissionAttempts>=3)return t.onDeliveryDelayed(),{kind:"suspended"};if(!(await ep(t.signal)))break;}return{kind:"aborted"};}async function ey(e,t,r){if("terminal"!==r.kind||!ev(r.outcome))return;let n=[];for(let[r,i]of ei.runtimes)r!==t&&i.activeChatIdRef.current===e.target.chat.id&&n.push(i.reconcilePersistedTarget(e.target));await Promise.all(n);}let ew={projects:[],chats:[],messages:[],models:[],configuredModelsAvailable:!1,activeProject:void 0,activeChat:void 0,selectedModel:void 0,selectedModelElected:!1,restorableModelElected:!1,restorableModelId:void 0};function eb(e){return{path:e.projectPath};}let eC=0,eE=new Map(),ek=new Map(),eM=new Set(),eR=0;function eA(e){for(let t of eM)t(e);}function eI(){let e=eR+1;eR=e,eS(),(0,d.resetModelRequestCache)(),eA({kind:"pending"}),(0,d.fetchModels)().then(t=>{let{models:r}=t;e===eR&&eA({kind:"success",models:r});},t=>{e===eR&&eA({kind:"failure",message:N(t)});});}function eT(e){let t={...e};return void 0!==e.projects&&(t.projects=[...e.projects]),void 0!==e.chats&&(t.chats=[...e.chats]),void 0!==e.messages&&(t.messages=[...e.messages]),void 0!==e.models&&(t.models=[...e.models]),t;}function eS(){eC+=1,n=void 0,i=void 0;}function eP(e){return{chats:Array.from(e.chats)};}function ej(e){return{messages:Array.from(e.messages)};}function e_(e){let t=eE.get(e);if(void 0!==t)return t.then(eP);let r=(0,d.fetchChats)(e).then(eP).finally(()=>{eE.get(e)===r&&eE.delete(e);});return eE.set(e,r),r.then(eP);}function eD(e,t){let r=`${t}\u0000${e}`,n=ek.get(r);if(void 0!==n)return n.then(ej);let i=(0,d.fetchChatMessages)(e,t).then(ej).finally(()=>{ek.get(r)===i&&ek.delete(r);});return ek.set(r,i),i.then(ej);}class eO extends Error{constructor(){super("run-summary poll aborted"),this.name="PollAbortError";}}function eL(e,t){return(null==t?void 0:t.aborted)===!0?Promise.reject(new eO()):new Promise((r,n)=>{let i=globalThis.setTimeout(()=>{null==t||t.removeEventListener("abort",a),r();},e),a=()=>{globalThis.clearTimeout(i),n(new eO());};null==t||t.addEventListener("abort",a,{once:!0});});}let eU=new Map();async function ex(e,t){try{let r=await(0,d.fetchEvidenceManifest)(e),n=(0,v.formatRunSummaryFromManifest)(r.manifest,t),i="failed"===n.workflowStatus||"cancelled"===n.workflowStatus?n.workflowStatus:"completed";return{kind:"summary",summary:{workflowStatus:i,shortResult:n.shortResult}};}catch{return{kind:"retry"};}}async function eN(e,t){try{let r=await(0,d.fetchRunReport)(e),n=(0,v.classifyRunReport)(r.report,t);return"terminal"===n.kind?{kind:"summary",summary:n.summary}:{kind:"retry"};}catch(r){if(!(r instanceof d.ApiError)||404!==r.status)return{kind:"abort"};return ex(e,t);}}async function eB(e,t,r,n){var i;let a=r.runId;if(void 0===a)return;let s={...(void 0===r.workflowId?{}:{workflowId:r.workflowId}),...(void 0===r.taskType?{}:{taskType:r.taskType})};for(let o=0;o<120&&(null==n?void 0:n.aborted)!==!0;o+=1){let l=await eN(a,s);if("abort"===l.kind)break;if("summary"===l.kind){let n=await(0,d.patchChatMessage)(r.id,e.id,t,l.summary);return{chatId:e.id,messageId:r.id,message:n.message};}if(o<119)try{await eL((i=o,Math.min(1e3*2**Math.min(i,4),15e3)),n);}catch{break;}}}function eF(e,t){if(void 0===t){e.persistentSubscriber=!0;return;}if(t.aborted||e.subscribers.has(t))return;let r=()=>{let r;void 0!==(r=e.subscribers.get(t))&&(t.removeEventListener("abort",r),e.subscribers.delete(t),0===e.subscribers.size&&!e.persistentSubscriber&&e.controller.abort());};e.subscribers.set(t,r),t.addEventListener("abort",r,{once:!0});}async function eG(e){var t;let r=await(0,d.fetchModels)(),n=r.models.filter(J),i=r.models.length>0,a=Q(n),s=await(0,d.fetchProjects)(),o=(0,f.sortProjects)(s.projects),l=null!=(t=o.find(e=>e.available))?t:o[0],c=B((void 0===l?{chats:[]}:await e_(l.path)).chats),u=F(c);if(void 0!==l&&void 0!==u){let e=await eD(u.id,l.path),t=er(u.selectedModel,n);return{models:n,configuredModelsAvailable:i,selectedModel:t.id,selectedModelElected:t.elected,projects:Array.from(o),activeProject:l,chats:c,activeChat:u,messages:Array.from(e.messages)};}if(void 0===a||!e)return{models:n,configuredModelsAvailable:i,selectedModel:a,selectedModelElected:!0,projects:Array.from(o),activeProject:l,chats:c,activeChat:void 0,messages:[]};let v=await(0,d.createDesktopChat)(ee(a,!0,M,(null==l?void 0:l.available)===!0?l.path:void 0));return Z(v.chat),{models:n,configuredModelsAvailable:i,selectedModel:v.chat.selectedModel,selectedModelElected:!0,projects:Array.from(v.projects),activeProject:v.project,chats:B(v.chats),activeChat:v.chat,messages:Array.from(v.messages)};}function eq(e,t){let r=er(e,t);return{selectedModel:r.id,selectedModelElected:r.elected,restorableModelId:e,restorableModelElected:!1};}function eH(e){return e instanceof d.ApiError&&"CHAT_TURN_IN_PROGRESS"===e.code?{status:"failed",canonicalTurnInProgress:!0}:e instanceof d.ApiError&&"CHAT_TURN_IDEMPOTENCY_CONFLICT"===e.code?{status:"failed",permanentFailure:!0,identityConflict:!0}:e instanceof d.ApiError&&"GROUNDING_SCOPE_CHANGED"===e.code?{status:"failed",permanentFailure:!0,scopeChanged:!0}:e instanceof d.ApiError&&"CHAT_CLOSED"===e.code?{status:"failed",permanentFailure:!0,chatClosed:!0}:e instanceof d.ApiError&&[400,404,413,422].includes(e.status)?{status:"failed",permanentFailure:!0}:{status:"failed"};}async function e$(t,r){return(await e.A(83233)).sha256Hex((0,s.canonicalDesktopChatTurnReferenceSeed)(t,r));}function ez(e,t){return e.some(e=>"user"===e.role&&e.canonicalTurnRef===t);}function eV(e,t){return e.find(e=>"assistant"===e.role&&e.canonicalTurnRef===t);}let eW=new WeakMap();function eY(e,t,r){let n=t.current;n!==r&&((e.current===n||e.current===r)&&(e.current=r),t.current=r);}e.s(["notifyChatDeleted",0,function(e){eS(),(0,w.removeConversationMemorySettings)(e),window.dispatchEvent(new CustomEvent(I,{detail:{chatId:e}}));},"sharedFetchChats",0,e_,"useChatSession",0,function(){var t,r,f,v,m;let h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=(0,o.useTranslate)(),g=null==(t=h.autoCreate)||t,C=null!=(r=h.loadMemoryAutonomyModeImpl)?r:c.loadMemoryAutonomyMode,[j,L]=(0,a.useState)(ew);(0,a.useRef)(j).current=j;let[U,x]=(0,a.useState)(),[Y,ea]=(0,a.useState)(""),[eh,ep]=(0,a.useState)(!0),[eE,ek]=(0,a.useState)("idle"),[eR,eA]=(0,a.useState)(),eS=_(eE),eP=(0,a.useRef)("idle"),ej=(0,a.useRef)(null),eO=(0,a.useRef)(null),eL=(0,a.useRef)(null),ex=(0,a.useRef)(new Set()),eN=(0,a.useRef)(null),eK=(0,a.useRef)(new Map()),eX=(0,a.useRef)(null),eZ=ei.queueRef,eQ=(0,a.useRef)(Symbol("canonical-voice-page-outbox-owner")),eJ=(0,a.useRef)(new AbortController()),e0=ei.projectionRef,e1=ei.projectionBytesRef,e2=ei.deliveriesRef,e5=ei.settledRef,e6=(0,a.useRef)(()=>void 0),[e3,e8]=(0,a.useState)(ei.status),[e4,e9]=(0,a.useState)(),[e7,te]=(0,a.useState)(),[tt,tr]=(0,a.useState)(),[tn,ti]=(0,a.useState)(),ta=null==(v=j.activeChat)?void 0:v.id,ts=null==(m=j.activeProject)?void 0:m.path,{memoryEnabled:to,setMemoryEnabled:tl,memoryBudgetTokens:td,setMemoryBudgetTokens:tc,memoryMode:tu,setMemoryMode:tf}=(0,w.useConversationMemorySettings)(ta);(0,a.useEffect)(()=>{let e=!0,t=(0,w.currentConversationMemoryModeRevision)();return function(e){let t=eW.get(e);if(void 0!==t)return t;let r=e();eW.set(e,r);let n=()=>{eW.get(e)===r&&eW.delete(e);};return r.then(n,n),r;}(C).then(r=>{e&&(0,w.currentConversationMemoryModeRevision)()===t&&tf(r.requestedMode);}).catch(()=>{}),()=>{e=!1;};},[C,tf]);let tv=(0,a.useRef)(!0),tm=(0,a.useRef)(ta);eY(tm,(0,a.useRef)(ta),ta);let th=(e,t)=>t.aborted||tm.current!==e,tp=(0,a.useRef)(ts);eY(tp,(0,a.useRef)(ts),ts);let tg=(0,a.useRef)(new Set()),ty=(0,a.useRef)(new AbortController()),tw=(0,a.useRef)(new Set()),tb=(0,a.useRef)(0),tC=(0,a.useRef)(j.models);tC.current=j.models;let[tE,tk]=(0,a.useState)([]),tM=(0,a.useRef)([]);tM.current=tE;let[tR,tA]=(0,a.useState)([]),[tI,tT]=(0,a.useState)([]),tS=(0,a.useCallback)(async e=>{let t=function(e,t){var r;let n;if(0===e.size)return{ok:!1,reason:"empty"};if(e.size>s.MAX_ATTACHMENT_BYTES)return{ok:!1,reason:"oversized"};let i=(r=e.type,"unsupported"===(n=(0,s.classifyAttachmentMime)(r))?"unsupported-type":n);return"unsupported-type"===i?{ok:!1,reason:i}:"image"===i&&(null==t?void 0:t.supportsImageInput)===!1||"document"===i&&(null==t?void 0:t.supportsDocumentInput)===!1?{ok:!1,reason:"text-only-model"}:{ok:!0,kind:i};}(e,j.models.find(e=>e.id===j.selectedModel));if(!t.ok)return t;let r=await E(e,t.kind,j.activeChat);if(!r.ok)return r;let n={id:crypto.randomUUID(),kind:t.kind,name:e.name,mimeType:e.type,sizeBytes:e.size,previewUrl:r.previewUrl,...("document"===t.kind?{file:e}:{}),...r.upload};return tk(e=>[...e,n]),{ok:!0};},[j.activeChat,j.models,j.selectedModel]),tP=(0,a.useCallback)(e=>{let t=tM.current.find(t=>t.id===e);void 0!==t&&(b(t),k(t).catch(()=>{e9(l.ATTACHMENT_CLEANUP_DEFERRED_ERROR);})),tk(t=>t.filter(t=>t.id!==e));},[]),tj=(0,a.useCallback)(()=>{for(let e of tM.current)b(e),k(e).catch(()=>{e9(l.ATTACHMENT_CLEANUP_DEFERRED_ERROR);});tk(e=>0===e.length?e:[]);},[]),t_=(0,a.useCallback)(e=>{if(0===e.length)return;let t=new Set(e);for(let e of tM.current.filter(e=>t.has(e.id)))b(e),k(e).catch(()=>{e9(l.ATTACHMENT_CLEANUP_DEFERRED_ERROR);});tk(e=>{let r=e.filter(e=>!t.has(e.id));return r.length===e.length?e:r;});},[]),tD=(0,a.useCallback)(()=>{ea(""),tj();},[tj]),tO=(0,a.useCallback)(async t=>{let r=t.filter(e=>"document"===e.kind&&void 0!==e.file).map(e=>({id:e.id,name:e.name,mimeType:e.mimeType,sizeBytes:e.sizeBytes,file:e.file})),n=0===r.length?{entries:[],failures:[]}:await e.A(52011).then(e=>{let{extractDocumentContext:t}=e;return t(r,p);}),i=n.failures;i.length>0&&e9(i.join(" "));let a=n.entries.map(e=>({id:e.id,displayName:e.displayName,truncated:e.truncated}));return{entries:n.entries,disclosures:a};},[p]),tL=(0,a.useCallback)(e=>e.map(e=>({id:e.id,kind:e.kind,name:e.name,mimeType:e.mimeType,sizeBytes:e.sizeBytes,...(void 0===e.attachmentRef?{}:{attachmentRef:e.attachmentRef}),...(void 0===e.sha256?{}:{sha256:e.sha256})})),[]),tU=(0,a.useCallback)(()=>{ti(void 0);},[]),tx=(0,a.useCallback)((e,t,r)=>({enabled:to,budgetTokens:td,mode:tu,...(void 0===r?{}:{surface:r}),context:{userId:"local-operator",workspaceId:t.path,projectId:t.path,conversationId:e.id}}),[td,to,tu]),tN=(0,a.useCallback)(async e=>{await(0,c.acceptMemoryProposal)(e),ti(t=>void 0===t?t:{...t,actions:t.actions.filter(t=>"candidate"!==t.kind||t.proposalId!==e)});},[]),tB=(0,a.useCallback)(async e=>{await(0,c.rejectMemoryProposal)(e),ti(t=>void 0===t?t:{...t,actions:t.actions.filter(t=>"candidate"!==t.kind||t.proposalId!==e)});},[]),tF=(0,a.useCallback)(async e=>{await(0,c.forgetMemory)(e),ti(t=>void 0===t?t:{...t,actions:t.actions.filter(t=>"forget"!==t.kind||t.memoryId!==e)});},[]),tG=(0,a.useCallback)(e=>{let t=_(eP.current);if(eP.current=e,ek(e),!(!t||_(e))){for(let e of ex.current)e();ex.current.clear();}},[]),tq=(0,a.useCallback)(e=>e.aborted?Promise.reject(new DOMException("cancelled","AbortError")):_(eP.current)?new Promise((t,r)=>{let n=()=>{ex.current.delete(i),e.removeEventListener("abort",a);},i=()=>{n(),t();},a=()=>{n(),r(new DOMException("cancelled","AbortError"));};ex.current.add(i),e.addEventListener("abort",a,{once:!0}),_(eP.current)||i();}):Promise.resolve(),[]),tH=(0,a.useRef)(tq);tH.current=tq;let t$=(0,a.useCallback)((e,t)=>{eN.current===e&&tG(t);},[tG]),tz=(0,a.useCallback)(async(e,t,r,n,i,a)=>{let s=new AbortController(),o=setTimeout(()=>{s.abort();},5e3);eK.current.set(s,o);try{var l,c,u,f;let o=await e$(e,n),v=await(l=(0,d.fetchChatMessages)(e,t,s.signal),c=s.signal,new Promise((e,t)=>{let r=!1,n=e=>{r||(r=!0,c.removeEventListener("abort",i),e());},i=()=>{n(()=>{t(new DOMException("Reconciliation cancelled.","AbortError"));});};l.then(t=>{n(()=>{e(t);});},e=>{n(()=>{t(e);});}),c.addEventListener("abort",i,{once:!0}),c.aborted&&i();})),m=ez(v.messages,o)?"persisted":"missing",h=eV(v.messages,o);if(tv.current&&tm.current===e&&eN.current===a){let e,t,n=(u=v.messages,f=i.canonicalUser,e=ez(u,o),t=void 0!==eV(u,o),e&&t?u:u.filter(e=>e.canonicalTurnRef!==o||"user"===e.role&&"preserve"===f));L(e=>({...e,messages:[...n,...("missing"===m&&"preserve"===i.missingOptimistic?[r]:[]),...e.messages.filter(e=>e.id.startsWith("local-")&&e.id!==r.id)]}));}return{persistence:m,...(void 0===h?{}:{completedAssistantMessageId:h.id})};}catch{return tv.current&&tm.current===e&&eN.current===a&&L(e=>e.messages.some(e=>e.id===r.id)?e:{...e,messages:[...e.messages,r]}),{persistence:"unknown"};}finally{clearTimeout(o),eK.current.delete(s);}},[]),tV=(0,a.useCallback)(async(e,t,r,n)=>{try{var i;let a=await function(e,t,r,n){var i;if((null==n?void 0:n.aborted)===!0)return Promise.resolve(void 0);let a=`${e.id}:${t}:${r.id}:${null!=(i=r.runId)?i:""}`,s=eU.get(a);if(void 0!==s&&!s.controller.signal.aborted)return eF(s,n),s.promise;void 0!==s&&eU.delete(a);let o=new AbortController(),l={controller:o,promise:Promise.resolve(void 0),subscribers:new Map(),persistentSubscriber:!1};eF(l,n);let d=eB(e,t,r,o.signal).finally(()=>{for(let[e,t]of l.subscribers)e.removeEventListener("abort",t);l.subscribers.clear(),eU.get(a)===l&&eU.delete(a);});return l.promise=d,eU.set(a,l),d;}(e,t,r,null==(i=ty.current)?void 0:i.signal);if(void 0===a){tv.current&&tw.current.add(n);return;}if(!tv.current||tm.current!==e.id)return;L(t=>{var r;return(null==(r=t.activeChat)?void 0:r.id)!==e.id?t:{...t,messages:t.messages.map(e=>e.id===a.messageId?a.message:e)};});}finally{tg.current.delete(n);}},[]);(0,a.useEffect)(()=>{let e=!1;return async function(){ep(!0),e9(void 0);try{let t=await function(e){if(e)return eG(e);let t=Date.now();if(void 0!==n&&n.expiresAt>t)return Promise.resolve(eT(n.value));if(void 0!==i)return i.then(eT);let r=eC,a=eG(!1).then(e=>{let t=eT(e);return eC===r&&(n={expiresAt:Date.now()+2e3,value:t}),eT(t);}).finally(()=>{i===a&&(i=void 0);});return i=a,a.then(eT);}(g);e||L(e=>{let r={...e,...t};return void 0===r.activeChat?r:{...r,messages:$(r.messages,r.activeChat.id,e0.current)};});}catch(t){e||e9(N(t));}finally{e||ep(!1);}}(),()=>{e=!0;};},[g,e0]),(0,a.useEffect)(()=>{var e;return e=e=>{if("pending"===e.kind){e9(void 0),L(e=>{var t;return{...e,models:[],selectedModel:void 0,selectedModelElected:!1,restorableModelId:null!=(t=e.selectedModel)?t:e.restorableModelId,restorableModelElected:void 0!==e.selectedModel?e.selectedModelElected:e.restorableModelElected};});return;}"failure"===e.kind?e9(e.message):L(t=>{var r,n;let i,a,s,o;return i=(r=e.models).filter(J),a=er(null!=(n=t.selectedModel)?n:t.restorableModelId,i),s=void 0!==t.selectedModel?t.selectedModelElected:t.restorableModelElected,o=a.elected||s,{...t,models:i,configuredModelsAvailable:r.length>0,selectedModel:a.id,selectedModelElected:o,restorableModelId:void 0};});},0===eM.size&&(window.addEventListener(u.GATEWAY_CONFIG_UPDATED_EVENT,eI),window.addEventListener(u.GATEWAY_MODEL_CATALOG_REFRESH_REQUESTED_EVENT,eI),window.addEventListener(u.GATEWAY_MODEL_READINESS_UPDATED_EVENT,eI)),eM.add(e),()=>{eM.delete(e),0===eM.size&&(window.removeEventListener(u.GATEWAY_CONFIG_UPDATED_EVENT,eI),window.removeEventListener(u.GATEWAY_MODEL_CATALOG_REFRESH_REQUESTED_EVENT,eI),window.removeEventListener(u.GATEWAY_MODEL_READINESS_UPDATED_EVENT,eI));};},[]),(0,a.useEffect)(()=>{var e;return e=e=>{"upsert"===e.type?L(t=>function(e,t){var r,n,i,a;if(!((null==(i=e.activeProject)?void 0:i.path)===t.projectPath||(null==(a=e.activeChat)?void 0:a.id)===t.id||e.chats.some(e=>e.id===t.id)))return e;let s=er(t.selectedModel,e.models),o=(null==(r=e.activeChat)?void 0:r.id)===t.id?{id:s.id,elected:s.id===e.selectedModel?e.selectedModelElected:s.elected}:{id:e.selectedModel,elected:e.selectedModelElected};return{...e,chats:G(e.chats,t),activeChat:(null==(n=e.activeChat)?void 0:n.id)===t.id?t:e.activeChat,selectedModel:o.id,selectedModelElected:o.elected};}(t,e.chat)):L(t=>{var r,n,i,a;return{...t,chats:(i=t.chats,a=e.chatId,i.filter(e=>e.id!==a)),activeChat:(null==(r=t.activeChat)?void 0:r.id)===e.chatId?void 0:t.activeChat,messages:(null==(n=t.activeChat)?void 0:n.id)===e.chatId?[]:t.messages};});},V.add(e),W||(window.addEventListener(A,K),window.addEventListener(I,X),W=!0),()=>{V.delete(e),W&&!(V.size>0)&&(window.removeEventListener(A,K),window.removeEventListener(I,X),W=!1);};},[]),(0,a.useEffect)(()=>{let e=eK.current;return tv.current=!0,ty.current.signal.aborted&&(ty.current=new AbortController()),eJ.current.signal.aborted&&(eJ.current=new AbortController()),()=>{var t;for(let[r,n]of(tv.current=!1,eP.current="cancelled",null==(t=ej.current)||t.abort(),ej.current=null,eO.current=null,eN.current=null,e))clearTimeout(n),r.abort();for(let t of(e.clear(),eJ.current.abort(),ty.current.abort(),tM.current))b(t);};},[]),(0,a.useEffect)(()=>{let e=j.activeChat,t=j.activeProject;if(void 0!==e&&void 0!==t)for(let r of j.messages){if("system"!==r.role||"string"!=typeof r.runId||void 0!==r.workflowStatus&&"pending"!==r.workflowStatus&&"running"!==r.workflowStatus)continue;let n=r.runId;if(void 0===n)continue;let i=`${r.id}:${n}`;!tg.current.has(i)&&(tw.current.has(i)||(tg.current.add(i),tV(e,t.path,r,i)));}},[j.activeChat,j.activeProject,j.messages,tV]);let tW=(0,a.useCallback)(e=>{let t;e9(void 0),L(r=>(t={selectedModel:r.selectedModel,selectedModelElected:r.selectedModelElected,activeChat:r.activeChat,chats:r.chats},{...r,selectedModel:e,selectedModelElected:!1,activeChat:void 0===r.activeChat?r.activeChat:{...r.activeChat,selectedModel:e},chats:r.chats.map(t=>{var n;return(null==(n=r.activeChat)?void 0:n.id)===t.id?{...t,selectedModel:e}:t;})})),tk(t=>{let r=t.filter(t=>{let r;return void 0===(r=tC.current.find(t=>t.id===e))||("image"===t.kind?r.supportsImageInput:r.supportsDocumentInput);});if(r.length===t.length)return t;let n=new Set(r.map(e=>e.id));for(let e of t)n.has(e.id)||b(e);return r;});let r=tm.current;if(void 0===r)return;let n=tb.current+1;tb.current=n,(0,d.updateChat)(r,{selectedModel:e}).then(e=>{tb.current!==n||tm.current===e.chat.id&&(Z(e.chat),L(t=>{var r,n,i;return{...t,selectedModel:e.chat.selectedModel,selectedModelElected:!1,activeChat:(null==(r=t.activeChat)?void 0:r.id)===e.chat.id?e.chat:t.activeChat,chats:(n=t.chats,i=e.chat,n.map(e=>e.id===i.id?i:e))};}));}).catch(e=>{if(tb.current===n&&tm.current===r&&(e9(N(e)),void 0!==t)){let e=t;L(t=>{var n,i,a,s,o;return{...t,selectedModel:(null==(n=t.activeChat)?void 0:n.id)===r?e.selectedModel:t.selectedModel,selectedModelElected:(null==(i=t.activeChat)?void 0:i.id)===r?e.selectedModelElected:t.selectedModelElected,activeChat:(null==(a=t.activeChat)?void 0:a.id)===r?e.activeChat:t.activeChat,chats:(s=t.chats,o=e.chats,s.map(e=>{if(e.id!==r)return e;let t=o.find(e=>e.id===r);return void 0!==t?{...e,selectedModel:t.selectedModel}:e;}))};});}});},[]),tY=(0,a.useCallback)(async(e,t)=>{var r,n;let i=!j.selectedModelElected&&et(j.selectedModel,j.models),a=er(j.selectedModel,j.models).id;if(void 0===a)return void e9(R);e9(void 0),te(void 0),x(void 0),tD();try{let s=null==t?void 0:t.trim(),o=null!=(r=null==e?void 0:e.path)?r:null==(n=j.activeProject)?void 0:n.path,l=await(0,d.createDesktopChat)(ee(a,!i,void 0!==s&&s.length>0?s:M,o));if(Z(l.chat),void 0!==o&&tp.current!==o)return l.chat;return tm.current=l.chat.id,tp.current=l.project.path,L(e=>({...e,projects:Array.from(l.projects),chats:B(l.chats),messages:Array.from(l.messages),activeProject:l.project,activeChat:l.chat,selectedModel:l.chat.selectedModel,selectedModelElected:!i,restorableModelId:void 0,restorableModelElected:!1})),l.chat;}catch(e){e9(N(e));return;}},[tD,j.selectedModel,j.selectedModelElected,j.activeProject,j.models]),tK=(0,a.useCallback)(async e=>{e9(void 0),te(void 0),x(void 0),tD(),tp.current=e.path,L(t=>({...t,activeProject:e}));try{let t=await e_(e.path);if(tp.current!==e.path)return;let r=B(t.chats),n=F(r);if(void 0===n){if(tp.current!==e.path)return;if(g)await tY(e);else tm.current=void 0,L(t=>({...t,chats:r,messages:[],activeProject:e,activeChat:void 0})),tr(void 0),ti(void 0);return;}let i=await eD(n.id,e.path);if(tp.current!==e.path)return;tm.current=n.id,L(e=>({...e,chats:r,activeChat:n,...eq(n.selectedModel,j.models),messages:$(i.messages,n.id,e0.current)})),ti(void 0);}catch(t){if(tp.current!==e.path)return;e9(N(t));}},[g,e0,tY,tD,j.models]),tX=(0,a.useCallback)(async e=>{var t,r;if(tm.current!==e.id||(null==(t=j.activeChat)?void 0:t.id)!==e.id){e9(void 0),te(void 0),x(void 0),"canonical-voice"!==eO.current&&(null==(r=ej.current)||r.abort(),ej.current=null,eO.current=null),tm.current=e.id,tr(void 0),ti(void 0),tA([]),tT([]),tD();try{let t,r=await eD(e.id,e.projectPath);if(t=e.id,tm.current!==t)return;L(t=>{let n=t.projects.find(t=>t.path===e.projectPath);return{...t,activeProject:n,activeChat:e,...eq(e.selectedModel,j.models),messages:$(r.messages,e.id,e0.current)};});}catch(r){let t;if(t=e.id,tm.current!==t)return;e9(N(r));}}},[e0,tD,null==(f=j.activeChat)?void 0:f.id,j.models]),tZ=(0,a.useCallback)(async e=>{let t=e.trim();if(0!==t.length){e9(void 0),te(void 0);try{let e=await(0,d.createProject)({path:t}),r=await(0,d.fetchProjects)();return L(e=>({...e,projects:Array.from(r.projects)})),await tK(e.project),void 0===Q(j.models)&&e9(R),te((0,d.projectResponseWarningMessage)(e)),e.project;}catch(e){e9(N(e));return;}}},[tK,j.models]),tQ=(0,a.useCallback)(e=>{x(t=>(null==t?void 0:t.id)===e?void 0:t),L(t=>({...t,messages:t.messages.filter(t=>t.id!==e)}));},[]),tJ=(0,a.useCallback)((e,t,r,n,i)=>{let a=!1,s="",o=null,l="function"==typeof requestAnimationFrame,c=()=>{if(o=null,0===s.length)return;let e=s;s="",x(r=>(null==r?void 0:r.id)===t?{...r,content:r.content+e}:r);},u=()=>{null!==o&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(o),o=null;};return{onToken:t=>{if(!th(e,n)){if(a||(t$(n,"streaming"),a=!0),s+=t,!l)return void c();null!=o||(o=requestAnimationFrame(c));}},onDone:a=>{if(u(),c(),th(e,n)){x(e=>(null==e?void 0:e.id)===t?void 0:e),i({status:"cancelled"});return;}x(e=>(null==e?void 0:e.id)===t?void 0:e),L(e=>({...e,activeChat:a.chat,chats:G(e.chats,a.chat),messages:q(e.messages,[r,t],a.messages)})),Z(a.chat),void 0!==a.memory&&ti(a.memory);let s=ef(a.messages,a.attachmentDeliveries);"failed"===s.status&&e9(O),i(s);},onError:r=>{let{code:a,message:o}=r;if(u(),s="",th(e,n)){tQ(t),i({status:"cancelled"});return;}if("CHAT_TURN_IN_PROGRESS"===a){tQ(t),i({status:"failed",canonicalTurnInProgress:!0});return;}e9(N(new d.ApiError(a,o,0))),tQ(t),i({status:"failed"});},onCancelled:()=>{u(),s="",tQ(t),i({status:"cancelled"});}};},[tQ,t$]),t0=(0,a.useCallback)(e=>{let{chat:t,project:r,content:n,optimisticId:i,modelId:a,signal:s,documentContext:o,attachments:l,memory:c,clientTurnId:u}=e,f=`stream-${String(Date.now())}`;x({id:f,chatId:t.id,role:"assistant",content:"",timestamp:Date.now(),runId:void 0,workflowId:void 0,workflowStatus:void 0,shortResult:void 0,taskType:void 0});let v={chatId:t.id,projectPath:r.path,content:n,modelId:a,memory:c,...(o.length>0?{documentContext:o}:{}),...(l.length>0?{attachments:l}:{}),...(void 0===u?{}:{clientTurnId:u}),...(void 0===u||void 0===t.groundingScopeIdentity?{}:{expectedGroundingScopeIdentity:t.groundingScopeIdentity})};return new Promise((e,r)=>{let n=tJ(t.id,f,i,s,e);(0,d.sendDesktopChatStream)(v,s,n).catch(n=>{if(tQ(f),n instanceof d.StreamingUnavailableError)r(n);else if(n instanceof DOMException&&"AbortError"===n.name)e({status:"cancelled"});else if(th(t.id,s))e({status:"cancelled"});else e9(N(n)),e({status:"failed"});});});},[tJ,tQ]),t1=(0,a.useCallback)(async e=>{let{chat:t,optimisticId:r,signal:n}=e;try{let i;t$(n,"contacting");let a=await(0,d.sendDesktopChat)(function(e){let{chat:t,project:r,content:n,modelId:i,documentContext:a,attachments:s,memory:o,clientTurnId:l}=e;return{chatId:t.id,projectPath:r.path,content:n,modelId:i,memory:o,...(a.length>0?{documentContext:a}:{}),...(s.length>0?{attachments:s}:{}),...(s.some(e=>"image"===e.kind)?{attachmentIntent:"deliver-images-to-selected-model"}:{}),...(void 0===l?{}:{clientTurnId:l}),...(void 0===l||void 0===t.groundingScopeIdentity?{}:{expectedGroundingScopeIdentity:t.groundingScopeIdentity})};}(e),n);if(n.aborted)return{status:"cancelled"};let s=ef(a.messages,a.attachmentDeliveries);if(i=t.id,tm.current!==i)return s;return L(e=>({...e,activeChat:a.chat,chats:B([a.chat,...e.chats.filter(e=>e.id!==a.chat.id)]),messages:q(e.messages,[r],a.messages)})),Z(a.chat),ti(a.memory),"failed"===s.status&&e9(O),s;}catch(r){if(r instanceof DOMException&&"AbortError"===r.name||th(t.id,n))return{status:"cancelled"};let e=eH(r);return!0!==e.canonicalTurnInProgress&&e9(N(r)),e;}},[t$]),t2=(0,a.useCallback)(async e=>{var t;let{modelId:r,signal:n}=e;if((null==(t=j.models.find(e=>e.id===r))?void 0:t.streaming)!==!0)return t1(e);t$(n,"contacting");try{return await t0(e);}catch(e){if(!(e instanceof d.StreamingUnavailableError))throw e;}return t1(e);},[j.models,t1,t0,t$]),t5=(0,a.useCallback)(async(e,t,r,n,i,a,s)=>{tr(void 0);try{let o,l;t$(i,"contacting");let c=await(0,d.askGrounded)({chatId:e.id,content:t,modelId:n,memory:a,...(void 0===s?{}:{clientTurnId:s}),...(void 0===s||void 0===e.groundingScopeIdentity?{}:{expectedGroundingScopeIdentity:e.groundingScopeIdentity})},i);if(o=e.id,tm.current!==o)return{status:"completed",assistantMessageId:c.assistantMessageId};if(i.aborted)return{status:"cancelled"};tr(c),ti(c.memory);let[u,f]=await Promise.all([(0,d.fetchChatMessages)(e.id,e.projectPath),(0,d.fetchChats)(e.projectPath)]);if(l=e.id,tm.current!==l)return{status:"completed",assistantMessageId:c.assistantMessageId};if(i.aborted)return{status:"cancelled"};let v=f.chats.find(t=>t.id===e.id);return L(t=>{var n;return tm.current!==e.id||(null==(n=t.activeChat)?void 0:n.id)!==e.id?t:{...t,messages:$(u.messages,e.id,e0.current,[r]),chats:B(f.chats),activeChat:null!=v?v:t.activeChat};}),void 0!==v&&Z(v),{status:"completed",assistantMessageId:c.assistantMessageId};}catch(r){if(r instanceof DOMException&&"AbortError"===r.name||th(e.id,i))return{status:"cancelled"};let t=eH(r);return!0!==t.canonicalTurnInProgress&&e9(N(r)),t;}},[e0,t$]),t6=(0,a.useCallback)(async e=>{var t,r;let{chat:n,canonicalTarget:i,signal:a}=e,s=en(n),o=null!=(t=null==i?void 0:i.attachments)?t:tE,l=s?{entries:[],disclosures:[]}:await tO(o),d=s?[]:tL(o),c=s?[]:o.map(e=>e.id),u=null!=(r=null==i?void 0:i.memory)?r:tx(n,e.project);if(s)return o.length>0&&e9(D),{terminal:await t5(n,e.content,e.optimisticId,e.modelId,a,u,e.clientTurnId),disclosures:l.disclosures,consumedAttachmentIds:c};let f={chat:n,project:e.project,content:e.content,optimisticId:e.optimisticId,modelId:e.modelId,signal:a,documentContext:l.entries,attachments:d,memory:u,clientTurnId:e.clientTurnId};return{terminal:e.forceBuffered||o.some(e=>"image"===e.kind)?await t1(f):await t2(f),disclosures:l.disclosures,consumedAttachmentIds:c};},[tL,tO,tx,tE,t5,t2,t1]),t3=(0,a.useCallback)(async e=>{var t,r;let n,i=e.signal.aborted?{status:"cancelled"}:e.terminal;if("completed"===i.status)return{settled:i,persistence:"persisted"};let a="failed"===e.terminal.status&&!0===e.terminal.canonicalTurnInProgress,s=await tz(e.chat.id,e.projectPath,e.optimistic,e.clientTurnId,(t=i,r=e.preserveUserOnMissing,n="cancelled"===t.status||r,{canonicalUser:a||n?"preserve":"hide",missingOptimistic:!a&&n?"preserve":"hide"}),e.signal),o=a?"persisted":s.persistence;return"persisted"!==s.persistence||void 0===s.completedAssistantMessageId||(i={status:"completed",assistantMessageId:s.completedAssistantMessageId},tv.current&&tm.current===e.chat.id&&eN.current===e.signal&&e9(void 0)),{settled:i,persistence:o};},[tz]),t8=(0,a.useCallback)(e=>{var t;if("completed"!==e.settled.status||!tv.current||(t_(e.consumedAttachmentIds),tm.current!==e.chatId||eN.current!==e.signal))return;tA(e.disclosures);let r=new Set(null!=(t=e.settled.deliveredImageIds)?t:[]);tT(tM.current.filter(e=>r.has(e.id)).map(e=>({id:e.id,displayName:e.name})));},[t_]),t4=(0,a.useCallback)(()=>{ej.current=null,eO.current=null,eA(void 0),tG("cancelled");},[tG]),t9=(0,a.useCallback)(()=>{var e;_(eP.current)&&(null==(e=ej.current)||e.abort(),t4());},[t4]),t7=(0,a.useCallback)(()=>{if(!_(eP.current)||"canonical-voice"!==eO.current)return;let e=ej.current;null!==e&&(eL.current=e.signal,e.abort()),t4();},[t4]),re=(0,a.useCallback)(async e=>{var t,r;let n=function(e){var t,r,n,i;let{options:a,draft:s,activeChat:o,selectedModel:l,models:d,pendingAttachmentCount:c,sendInFlight:u}=e,f=null==a?void 0:a.canonicalVoiceTarget,v=null!=(t=null==f?void 0:f.chat)?t:o;if(void 0===f&&void 0!==v&&eu(v.id))return{kind:"rejected",error:S};if(u)return{kind:"rejected"};let m=(null!=(r=null==a?void 0:a.text)?r:s).trim(),h=null!=(n=null==f?void 0:f.project)?n:v&&eb(v),p=null!=(i=null==f?void 0:f.modelId)?i:er(l,d).id;return 0===m.length||void 0===v||void 0===h||void 0===p?{kind:"rejected"}:void 0===f&&en(v)&&c>0?{kind:"rejected",error:D}:{kind:"accepted",canonicalTarget:f,chat:v,project:h,content:m,modelId:p};}({options:e,draft:Y,activeChat:j.activeChat,selectedModel:j.selectedModel,models:j.models,pendingAttachmentCount:tE.length,sendInFlight:_(eP.current)});if("rejected"===n.kind)return void 0!==n.error&&e9(n.error),{status:"not-sent"};let{canonicalTarget:i,chat:a,project:s,content:o,modelId:l}=n,d=null!=(t=null==e?void 0:e.clientTurnId)?t:crypto.randomUUID(),c=null!=(r=null==e?void 0:e.optimisticMessage)?r:z(a.id,o);tG("queued"),(null==e?void 0:e.text)===void 0&&ea(""),e9(void 0),L(t=>{var r,n,i;let s,o;return r=a.id,n=(null==e?void 0:e.optimisticMessage)!==void 0,s=t.messages.some(e=>e.id===c.id),o=n&&H(t.messages,c.content,c.timestamp),(null==(i=t.activeChat)?void 0:i.id)!==r||s||o?t:{...t,messages:[...t.messages,c]};});let u=new AbortController();ej.current=u,eO.current=void 0===i?"composer":"canonical-voice",eN.current=u.signal,ti(void 0);try{let{terminal:t,disclosures:r,consumedAttachmentIds:n}=await t6({chat:a,project:s,content:o,optimisticId:c.id,modelId:l,signal:u.signal,canonicalTarget:i,forceBuffered:(null==e?void 0:e.forceBuffered)===!0,clientTurnId:d}),{settled:f,persistence:v}=await t3({terminal:t,chat:a,projectPath:s.path,optimistic:c,clientTurnId:d,signal:u.signal,preserveUserOnMissing:(null==e?void 0:e.clientTurnId)!==void 0});return t$(u.signal,f.status),t8({settled:f,chatId:a.id,signal:u.signal,disclosures:r,consumedAttachmentIds:n}),function(e){let{settled:t,terminal:r,persistence:n,canonicalTarget:i,interrupted:a}=e;if("cancelled"===t.status){let e="persisted"===n;return a?{status:"cancelled",userPersisted:e,interrupted:!0}:{status:"cancelled",userPersisted:e};}let s="failed"===t.status&&"failed"===r.status&&void 0!==i;return s&&!0===r.scopeChanged?{status:"failed",retryable:!1,userPersisted:!0}:s&&!0===r.chatClosed?{status:"failed",suspend:!0}:s&&!0===r.permanentFailure?"persisted"===n?{status:"failed",retryable:!1,userPersisted:!0}:{status:"failed",retryable:!1}:"failed"===t.status&&"persisted"===n?{status:"in-progress"}:"completed"===t.status?t:{status:"failed"};}({settled:f,terminal:t,persistence:v,canonicalTarget:i,interrupted:eL.current===u.signal});}finally{ej.current===u&&(ej.current=null,eO.current=null),eN.current===u.signal&&(eN.current=null),eL.current===u.signal&&(eL.current=null);}},[Y,j.activeChat,j.selectedModel,j.models,tE,t6,t8,t3,t$,tG]);eX.current=re;let rt=(0,a.useCallback)(async e=>{let t=e.chat.id;try{let[r,n]=await Promise.all([eD(t,e.project.path),e_(e.project.path)]);if(!tv.current||tm.current!==t)return;let i=n.chats.find(e=>e.id===t);L(e=>{var a;return(null==(a=e.activeChat)?void 0:a.id)!==t?e:{...e,messages:$(r.messages,t,e0.current),chats:B(n.chats),activeChat:null!=i?i:e.activeChat};});}catch(e){tv.current&&tm.current===t&&e9(N(e));}},[e0]);(0,a.useEffect)(()=>{let e=eQ.current,t={sendRef:eX,waitForSendSlotRef:tH,onDeliveryDelayed:()=>e9(S),activeChatIdRef:tm,reconcilePersistedTarget:rt};return ei.runtimes.set(e,t),ec(),()=>{ei.runtimes.get(e)===t&&ei.runtimes.delete(e);let r=ei.activeDelivery;(null==r?void 0:r.runtimeOwner)===e&&r.abort(),ec();};},[rt]);let rr=(0,a.useCallback)(e=>{let t=e0.current.get(e.key);(null==t?void 0:t.message.id)===e.optimistic.id&&(e0.current.delete(e.key),e1.current-=t.byteLength);},[e1,e0]),rn=(0,a.useCallback)((e,t)=>{el(e.key,{contentDigest:e.contentDigest,outcome:t});},[]),ri=(0,a.useCallback)(async(e,t)=>{let r=function(e,t){let r=e.target.chat.id,n=ei.runtimes.get(e.deliveryOwner);if((null==n?void 0:n.activeChatIdRef.current)===r)return{owner:e.deliveryOwner,registration:n};for(let[e,t]of ei.runtimes)if(t.activeChatIdRef.current===r)return{owner:e,registration:t};let i=ei.runtimes.get(t);return void 0===i?void 0:{owner:t,registration:i};}(e,eQ.current);if(void 0===r)return;let n=r.registration.sendRef.current;if(null===n)return;let i=new AbortController(),a=()=>i.abort();t.addEventListener("abort",a,{once:!0}),ei.activeDelivery={key:e.key,runtimeOwner:r.owner,abort:a};try{let t=await eg(e,{signal:i.signal,send:n,waitForSendSlot:()=>r.registration.waitForSendSlotRef.current(i.signal),onDeliveryDelayed:r.registration.onDeliveryDelayed,onUserPersisted:()=>{rr(e);}});return await ey(e,r.owner,t),t;}finally{var s;t.removeEventListener("abort",a),(null==(s=ei.activeDelivery)?void 0:s.key)===e.key&&(ei.activeDelivery=void 0);}},[rr]),ra=(0,a.useCallback)((e,t,r)=>{if(void 0===t)return!1;if("suspended"===t.kind)return es(e.target.chat.id),!1;if("aborted"===t.kind)return!r.aborted&&eZ.current[0]!==e;let{outcome:n}=t;return(!r.aborted||!!ev(n))&&((ev(n)||em(n))&&(rr(e),rn(e,n)),e.resolve(n),e2.current.delete(e.key),eZ.current[0]===e&&(eZ.current.shift(),ei.queueBytesRef.current=Math.max(0,ei.queueBytesRef.current-e.byteLength)),!0);},[rn,e2,eZ,rr]),rs=(0,a.useCallback)(async()=>{let e=eQ.current;if(eh||void 0!==ei.drainingOwner||eo())return;ei.drainingOwner=e;let t=eJ.current.signal;try{for(;ei.drainingOwner===e&&!t.aborted&&eZ.current.length>0;){let e=eZ.current[0];if(void 0===e)break;let r=await ri(e,t);if(!ra(e,r,t))break;}}finally{ei.drainingOwner===e&&(ei.drainingOwner=void 0),eZ.current.length>0&&!eo()&&ec();}},[eZ,eh,ri,ra]);e6.current=()=>{rs();},(0,a.useEffect)(()=>{let e=e=>{e8(e);};return ei.statusSubscribers.add(e),e(ei.status),()=>{ei.statusSubscribers.delete(e);};},[]),(0,a.useEffect)(()=>{if(eh)return;let e=()=>{eJ.current.signal.aborted||eo()||e6.current();};return ei.wakes.add(e),e(),()=>{ei.wakes.delete(e);};},[eh]);let ro=(0,a.useCallback)(e=>{var t,r,n;let i,a,o,l=e.text.trim(),d=e.clientTurnId,c=e.target.chat,u=eb(c),f=e.target.modelId,v=new TextEncoder().encode(l).byteLength;if(0===l.length||l.length>s.MAX_DESKTOP_CHAT_INPUT_CHARS||v>s.MAX_DESKTOP_CHAT_INPUT_BYTES||0===d.length||d.length>s.MAX_DESKTOP_CHAT_CLIENT_TURN_ID_CHARS)return void e9("The final spoken transcript or its turn identity is outside the supported size limit.");if(!(0,s.isGroundingScopeIdentity)(c.groundingScopeIdentity))return void e9("The chat grounding scope could not be frozen for this spoken turn. Reload the chat and try again.");try{i=y(`keiko:canonical-voice-turn-content:v1\u0000${l}`);}catch{e9("The spoken transcript could not be added to chat. Restart Voice and try again.");return;}let m=(r=c.id,`${r}\u0000${d}`),h=e2.current.get(m);if(void 0!==h)return h.contentDigest===i?h.promise:void e9(P);let p=e5.current.get(m);if(void 0!==p)return p.contentDigest===i?Promise.resolve(p.outcome):void e9(P);let g=e0.current.get(m);if(void 0!==g&&g.content!==l)return void e9(P);if(void 0===g&&(n=!0===e.allowReservedCapacity,a=ei.queueBytesRef.current,o=n?T:128*s.MAX_DESKTOP_CHAT_INPUT_BYTES,ei.queueRef.current.length>=(n?129:128)||a<0||a>o||!(v<=o-a)))return void e9("The spoken-turn queue is full. Wait for the pending turns to finish, then try again.");let w=null!=(t=null==g?void 0:g.message)?t:z(c.id,l),b=()=>void 0,C=new Promise(e=>{b=e;}),E={key:m,content:l,contentDigest:i,clientTurnId:d,target:{chat:c,project:u,modelId:f,memory:tx(c,u,"voice"),attachments:tM.current},optimistic:w,byteLength:v,promise:C,resolve:b,deliveryOwner:eQ.current};return e2.current.set(m,{contentDigest:i,promise:C}),eZ.current.push(E),ei.queueBytesRef.current+=v,void 0===g&&(e0.current.set(m,{chatId:c.id,content:l,message:w,byteLength:v}),e1.current+=v),e9(void 0),L(e=>{var t;return(null==(t=e.activeChat)?void 0:t.id)!==c.id||e.messages.some(e=>e.id===w.id)?e:{...e,messages:[...e.messages,w]};}),eo()||rs(),C;},[tx,e2,e1,e0,eZ,e5,rs]),rl=(0,a.useCallback)(()=>{eo()&&0!==eZ.current.length&&(e9(void 0),es(void 0),rs());},[eZ,rs]),rd=(0,a.useCallback)(()=>{let e=tm.current;if(void 0===e)return;let{discarded:t,ownedActiveDelivery:r}=function(e){var t;let r=ei.queueRef.current.filter(t=>t.target.chat.id===e);if(0===r.length)return{discarded:!1,ownedActiveDelivery:!1};let n=null==(t=ei.activeDelivery)?void 0:t.key,i=void 0!==n&&r.some(e=>e.key===n),a={status:"cancelled",userPersisted:!1,interrupted:!0};for(let e of r)el(e.key,{contentDigest:e.contentDigest,outcome:a});return ed(r,a),{discarded:!0,ownedActiveDelivery:i};}(e);t&&(r&&t7(),e9(void 0),rs());},[rs,t7]),rc=(0,a.useCallback)(()=>eZ.current.length>=128,[eZ]),ru=void 0!==e3.suspendedChatId&&void 0!==j.activeChat&&eu(j.activeChat.id),rf=(0,a.useCallback)(async e=>{if(_(eP.current))return;let t=j.activeChat,r=j.activeProject,n=er(j.selectedModel,j.models).id;if(void 0===t||void 0===r||void 0===n)return;tG("queued"),eA(e),e9(void 0),tr(void 0),ti(void 0);let i=new AbortController();ej.current=i,eO.current="composer",eN.current=i.signal;try{t$(i.signal,"contacting");let a=await(0,d.regenerateDesktopChat)({chatId:t.id,projectPath:r.path,assistantMessageId:e,modelId:n,memory:tx(t,r)},i.signal);if(i.signal.aborted)return void t$(i.signal,"cancelled");if(tm.current!==t.id)return;let s=a.messages.find(t=>t.id===e);L(t=>({...t,activeChat:a.chat,chats:B([a.chat,...t.chats.filter(e=>e.id!==a.chat.id)]),messages:void 0===s?t.messages:t.messages.map(t=>t.id===e?s:t)})),Z(a.chat),ti(a.memory),t$(i.signal,"completed");}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return void t$(i.signal,"cancelled");eN.current===i.signal&&e9(N(e)),t$(i.signal,"failed");}finally{ej.current===i&&(ej.current=null,eO.current=null),eN.current===i.signal&&(eN.current=null,eA(void 0));}},[j.activeChat,j.activeProject,j.selectedModel,j.models,tx,t$,tG]),rv=(0,a.useCallback)(e=>{Z(e),L(t=>{var r;return{...t,chats:t.chats.map(t=>t.id===e.id?e:t),activeChat:(null==(r=t.activeChat)?void 0:r.id)===e.id?e:t.activeChat};});},[]),rm=(0,a.useCallback)(()=>{e9(void 0);},[]),rh=(0,a.useCallback)(()=>{te(void 0);},[]),rp=!eh&&void 0===er(j.selectedModel,j.models).id;return(0,a.useMemo)(()=>({projects:j.projects,chats:j.chats,messages:j.messages,streamingAssistantMessage:U,models:j.models,configuredModelsAvailable:j.configuredModelsAvailable,activeProject:j.activeProject,activeChat:j.activeChat,selectedModel:j.selectedModel,noEligibleModels:rp,draft:Y,loading:eh,sending:eS,sendStatus:eE,regeneratingMessageId:eR,error:e4,notice:e7,clearError:rm,clearNotice:rh,setDraft:ea,setSelectedModel:tW,openNewChat:tY,openProject:tK,openChat:tX,addProject:tZ,sendMessage:re,enqueueCanonicalVoiceTurn:ro,canonicalVoiceCaptureMustPause:rc,canonicalVoiceTurnRequiresRetry:ru,retryPendingCanonicalVoiceTurn:rl,discardPendingCanonicalVoiceTurn:rd,interruptCanonicalVoiceDelivery:t7,regenerateMessage:rf,cancelSend:t9,replaceChat:rv,latestGrounded:tt,cancelGrounded:t9,pendingAttachments:tE,addPendingAttachment:tS,removePendingAttachment:tP,clearPendingAttachments:tj,lastSentDocuments:tR,lastSentImages:tI,memoryEnabled:to,setMemoryEnabled:tl,memoryBudgetTokens:td,setMemoryBudgetTokens:tc,latestMemory:tn,clearLatestMemory:tU,acceptMemoryCandidate:tN,rejectMemoryCandidate:tB,forgetMemoryAction:tF}),[j.projects,j.chats,j.messages,U,j.models,j.configuredModelsAvailable,j.activeProject,j.activeChat,j.selectedModel,rp,Y,eh,eS,eE,eR,e4,e7,rm,rh,tW,tY,tK,tX,tZ,re,ro,rc,ru,rl,rd,t7,rf,t9,rv,tt,t9,tE,tS,tP,tj,tR,tI,to,tl,td,tc,tn,tU,tN,tB,tF]);}],87552);}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17161,s=>{"use strict";var t=s.i(10582);function c(s){let{size:c=18,sw:a=1.6,vb:h=24,fill:i,className:e,style:l,children:j,d:n,"aria-hidden":r="true"}=s,x=void 0!==i;return(0,t.jsx)("svg",{className:e,width:c,height:c,viewBox:`0 0 ${String(h)} ${String(h)}`,fill:x?i:"none",stroke:x?"none":"currentColor",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",style:l,"aria-hidden":r,children:void 0!==n?(0,t.jsx)("path",{d:n}):j});}s.s(["Icons",0,{newChat:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M4 6 H12.5"}),(0,t.jsx)("path",{d:"M4 9.5 H9.5"}),(0,t.jsx)("path",{d:"M14.4 13.6 l4-4 a1.6 1.6 0 0 1 2.3 2.3 l-6.2 6.2 -3 .7 .7 -3 z"})]}),search:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M12.25 4.76 A6 6 0 1 1 8.75 4.76"}),(0,t.jsx)("path",{d:"M14.7 14.7 L20 20"})]}),plugins:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("rect",{x:"4",y:"4",width:"6.5",height:"6.5",rx:"1.5"}),(0,t.jsx)("rect",{x:"13.5",y:"4",width:"6.5",height:"6.5",rx:"1.5"}),(0,t.jsx)("rect",{x:"4",y:"13.5",width:"6.5",height:"6.5",rx:"1.5"}),(0,t.jsx)("rect",{x:"13.5",y:"13.5",width:"6.5",height:"6.5",rx:"1.5"})]}),automations:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"8"}),(0,t.jsx)("path",{d:"M12 7.5V12l3 2"})]}),mobile:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("rect",{x:"7",y:"3",width:"10",height:"18",rx:"2.5"}),(0,t.jsx)("path",{d:"M11 18h2"})]}),folder:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M3.6 7.4 V6.3 a1.5 1.5 0 0 1 1.5-1.5 H8 a1.5 1.5 0 0 1 1.1 .48 L10.3 7.4"}),(0,t.jsx)("path",{d:"M13.50 7.40 H18.00 A2.4 2.4 0 0 1 20.40 9.80 V16.00 A2.4 2.4 0 0 1 18.00 18.40 H6.00 A2.4 2.4 0 0 1 3.60 16.00 V9.80 A2.4 2.4 0 0 1 6.00 7.40 H10.50"})]}),settings:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M 13.02 3.36 L 13.21 3.38 L 13.66 5.82 L 15.20 6.46 L 17.24 5.05 L 18.95 6.76 L 17.54 8.80 L 18.18 10.34 L 20.62 10.79 L 20.62 13.21 L 18.18 13.66 L 17.54 15.20 L 18.95 17.24 L 17.24 18.95 L 15.20 17.54 L 13.66 18.18 L 13.21 20.62 L 10.79 20.62 L 10.34 18.18 L 8.80 17.54 L 6.76 18.95 L 5.05 17.24 L 6.46 15.20 L 5.82 13.66 L 3.38 13.21 L 3.38 10.79 L 5.82 10.34 L 6.46 8.80 L 5.05 6.76 L 6.76 5.05 L 8.80 6.46 L 10.34 5.82 L 10.79 3.38 L 10.98 3.36"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"2.7"})]}),files:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M5.5 8 V5.5 a1.9 1.9 0 0 1 1.9-1.9 H12.8 L18.5 8.8 V18.5 a1.9 1.9 0 0 1-1.9 1.9 H7.4 a1.9 1.9 0 0 1-1.9-1.9 V11"}),(0,t.jsx)("path",{d:"M12.8 3.6 V7.4 a1.4 1.4 0 0 0 1.4 1.4 H18.5"})]}),browser:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"8.5"}),(0,t.jsx)("path",{d:"M3.5 12h17M12 3.5c2.3 2.3 2.3 14.7 0 17M12 3.5c-2.3 2.3-2.3 14.7 0 17"})]}),review:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M9 12l2 2 4-4"}),(0,t.jsx)("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2.5"})]}),terminal:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.70 5.00 H17.50 A2.5 2.5 0 0 1 20.00 7.50 V16.50 A2.5 2.5 0 0 1 17.50 19.00 H6.50 A2.5 2.5 0 0 1 4.00 16.50 V7.50 A2.5 2.5 0 0 1 6.50 5.00 H10.30"}),(0,t.jsx)("path",{d:"M8 9.6 L11 12.6 L8 15.6"}),(0,t.jsx)("path",{d:"M12.8 15.6 H16.4"})]}),agents:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("rect",{x:"5",y:"7",width:"14",height:"11",rx:"3"}),(0,t.jsx)("path",{d:"M12 7V4M9 12h.01M15 12h.01M2.5 12.5v2M21.5 12.5v2"})]}),git:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"6",cy:"6",r:"2.5"}),(0,t.jsx)("circle",{cx:"6",cy:"18",r:"2.5"}),(0,t.jsx)("circle",{cx:"17",cy:"9",r:"2.5"}),(0,t.jsx)("path",{d:"M6 8.5v7M17 11.5c0 3-3 3.5-6 4"})]}),plus:s=>(0,t.jsx)(c,{...s,d:"M12 5v14M5 12h14"}),chevron:s=>(0,t.jsx)(c,{...s,d:"M6 9l6 6 6-6"}),chevronR:s=>(0,t.jsx)(c,{...s,d:"M9 6l6 6-6 6"}),mic:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M12 3.2 a3 3 0 0 1 3 3 V11 a3 3 0 0 1 -6 0 V6.2 a3 3 0 0 1 2 -2.8"}),(0,t.jsx)("path",{d:"M5.5 11.5 a6.5 6.5 0 0 0 13 0 M12 18 v3"})]}),arrowUp:s=>(0,t.jsx)(c,{...s,d:"M12 19V5M6 11l6-6 6 6"}),spark:s=>(0,t.jsx)(c,{...s,d:"M13.2 3.6 L19 10 l-5.2 1.4 L12 17 l-1.8 -5.6 L5 10 l5.2 -1.4 z"}),pin:s=>(0,t.jsx)(c,{...s,d:"M9 3h6l-1 5 3 3-5 1-1 8-1-8-5-1 3-3z"}),brain:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z"}),(0,t.jsx)("path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z"})]}),brainSlash:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z"}),(0,t.jsx)("path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z"}),(0,t.jsx)("path",{d:"M3.2 20.4 20.8 3.6"})]}),archive:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.20 5.00 H19.50 A1 1 0 0 1 20.50 6.00 V8.00 A1 1 0 0 1 19.50 9.00 H4.50 A1 1 0 0 1 3.50 8.00 V6.00 A1 1 0 0 1 4.50 5.00 H10.80"}),(0,t.jsx)("path",{d:"M5 9 v8 a2 2 0 0 0 2 2 h10 a2 2 0 0 0 2-2 V9"}),(0,t.jsx)("path",{d:"M10 13 h4"})]}),sidebar:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M9.5 5 V19"})]}),minimize:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M7 14 H10.4"}),(0,t.jsx)("path",{d:"M13.6 14 H17"})]}),expand:s=>(0,t.jsx)(c,{...s,d:"M4 9V4h5M20 15v5h-5M20 9V4h-5M4 15v5h5"}),back:s=>(0,t.jsx)(c,{...s,d:"M15 6l-6 6 6 6"}),fwd:s=>(0,t.jsx)(c,{...s,d:"M9 6l6 6-6 6"}),drag:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"9",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"15",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"9",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"15",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"9",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"15",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"})]}),close:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M7 7 L10.4 10.4"}),(0,t.jsx)("path",{d:"M17 7 L13.6 10.4"}),(0,t.jsx)("path",{d:"M7 17 L10.4 13.6"}),(0,t.jsx)("path",{d:"M17 17 L13.6 13.6"})]}),dots:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"6",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"18",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"})]}),check:s=>(0,t.jsx)(c,{...s,d:"M5 12.5l4.5 4.5L19 6.5"}),copy:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("rect",{x:"8",y:"8",width:"10",height:"10",rx:"2"}),(0,t.jsx)("path",{d:"M6 14 H5.8 A1.8 1.8 0 0 1 4 12.2 V6.8 A1.8 1.8 0 0 1 5.8 5 H11.2 A1.8 1.8 0 0 1 13 6.8 V7"})]}),info:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M14.51 4.96 A8.6 8.6 0 1 1 9.49 4.96"}),(0,t.jsx)("path",{d:"M12 8.2 h.01"}),(0,t.jsx)("path",{d:"M12 11.3 V16.3"})]}),edit:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M4.5 6.5 H13"}),(0,t.jsx)("path",{d:"M4.5 10 H10"}),(0,t.jsx)("path",{d:"M14.4 13.6 l4-4 a1.6 1.6 0 0 1 2.3 2.3 l-6.2 6.2 -3 .7 .7 -3 z"})]}),trash:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M5 7 H19"}),(0,t.jsx)("path",{d:"M9 7 V5.6 A1.6 1.6 0 0 1 10.6 4 H13.4 A1.6 1.6 0 0 1 15 5.6 V7"}),(0,t.jsx)("path",{d:"M17.5 10 L16.8 18.2 A2 2 0 0 1 14.8 20 H9.2 A2 2 0 0 1 7.2 18.2 L6.5 10"}),(0,t.jsx)("path",{d:"M10 11.5 V17"}),(0,t.jsx)("path",{d:"M14 11.5 V17"})]}),reset:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M4 12a8 8 0 1 1 2.3 5.6"}),(0,t.jsx)("path",{d:"M4 20v-4h4"})]}),file:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M5.5 8 V5.5 a1.9 1.9 0 0 1 1.9-1.9 H12.8 L18.5 8.8 V18.5 a1.9 1.9 0 0 1-1.9 1.9 H7.4 a1.9 1.9 0 0 1-1.9-1.9 V11"}),(0,t.jsx)("path",{d:"M12.8 3.6 V7.4 a1.4 1.4 0 0 0 1.4 1.4 H18.5"})]}),diff:s=>(0,t.jsx)(c,{...s,d:"M12 4v6M9 7h6M5 17h14"}),commit:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M12.99 8.75 A3.4 3.4 0 1 1 11.01 8.75"}),(0,t.jsx)("path",{d:"M3 12 H8.6 M15.4 12 H21"})]}),pullRequest:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"6.5",cy:"6",r:"2"}),(0,t.jsx)("circle",{cx:"6.5",cy:"18",r:"2"}),(0,t.jsx)("circle",{cx:"17.5",cy:"18",r:"2"}),(0,t.jsx)("path",{d:"M6.5 8 V16"}),(0,t.jsx)("path",{d:"M17.5 16 V11 A3 3 0 0 0 14.5 8 H11.6"}),(0,t.jsx)("path",{d:"M13.6 6 L11.2 8.4 L13.6 10.8"})]}),merge:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"6.5",cy:"5.5",r:"2"}),(0,t.jsx)("circle",{cx:"17.5",cy:"5.5",r:"2"}),(0,t.jsx)("circle",{cx:"12",cy:"18.5",r:"2"}),(0,t.jsx)("path",{d:"M6.5 7.5 C 6.5 12 9 13.5 12 16.5"}),(0,t.jsx)("path",{d:"M17.5 7.5 C 17.5 12 15 13.5 12 16.5"})]}),download:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M12 4 V15"}),(0,t.jsx)("path",{d:"M7.5 10.5 L12 15 L16.5 10.5"}),(0,t.jsx)("path",{d:"M5 19.5 H19"})]}),code:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M8.5 8 L4.5 12 L8.5 16"}),(0,t.jsx)("path",{d:"M15.5 8 L19.5 12 L15.5 16"}),(0,t.jsx)("path",{d:"M13.5 5.5 L10.5 18.5"})]}),regenerate:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M6 9.5 A6.8 6.8 0 0 1 18.2 8.2"}),(0,t.jsx)("path",{d:"M18.6 4.2 L18.4 8.4 L14.3 7.7"}),(0,t.jsx)("path",{d:"M18 14.5 A6.8 6.8 0 0 1 5.8 15.8"}),(0,t.jsx)("path",{d:"M5.4 19.8 L5.6 15.6 L9.7 16.3"})]}),external:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M14 4.8 H19.2 V10"}),(0,t.jsx)("path",{d:"M19.2 4.8 L11 13"}),(0,t.jsx)("path",{d:"M17 13.5 V18 a1.6 1.6 0 0 1 -1.6 1.6 H6.6 A1.6 1.6 0 0 1 5 18 V9.2 A1.6 1.6 0 0 1 6.6 7.6 H11"})]}),link:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M9.5 14.5 L14.5 9.5"}),(0,t.jsx)("path",{d:"M11 7.8 L12.8 6 a3.4 3.4 0 0 1 4.8 4.8 L15.8 12.6"}),(0,t.jsx)("path",{d:"M13 16.2 L11.2 18 a3.4 3.4 0 0 1 -4.8 -4.8 L8.2 11.4"})]}),branch:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M7.63 4.97 A2.3 2.3 0 1 1 4.37 4.97"}),(0,t.jsx)("circle",{cx:"6",cy:"17.4",r:"2.3"}),(0,t.jsx)("circle",{cx:"17.4",cy:"8.6",r:"2.3"}),(0,t.jsx)("path",{d:"M6 8.9 V15.1"}),(0,t.jsx)("path",{d:"M17.4 10.9 c0 4 -4 3.7 -7 4.7"})]}),cube:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M12 3l8 4.5v9L12 21l-8-4.5v-9z"}),(0,t.jsx)("path",{d:"M12 12l8-4.5M12 12v9M12 12L4 7.5"})]}),maximize:s=>(0,t.jsx)(c,{...s,d:"M13.50 7.00 H15.00 A2 2 0 0 1 17.00 9.00 V15.00 A2 2 0 0 1 15.00 17.00 H9.00 A2 2 0 0 1 7.00 15.00 V9.00 A2 2 0 0 1 9.00 7.00 H10.50"}),restore:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M9 9 V8 a2 2 0 0 1 2 -2 h6 a2 2 0 0 1 2 2 v6 a2 2 0 0 1 -2 2 h-1"}),(0,t.jsx)("path",{d:"M11.50 9.00 H13.00 A2 2 0 0 1 15.00 11.00 V17.00 A2 2 0 0 1 13.00 19.00 H7.00 A2 2 0 0 1 5.00 17.00 V11.00 A2 2 0 0 1 7.00 9.00 H8.50"})]}),split:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M12 5 V19"})]}),tile:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M8.10 4.50 H9.00 A1.5 1.5 0 0 1 10.50 6.00 V10.00 A1.5 1.5 0 0 1 9.00 11.50 H5.00 A1.5 1.5 0 0 1 3.50 10.00 V6.00 A1.5 1.5 0 0 1 5.00 4.50 H5.90"}),(0,t.jsx)("path",{d:"M15.00 4.50 H19.00 A1.5 1.5 0 0 1 20.50 6.00 V10.00 A1.5 1.5 0 0 1 19.00 11.50 H15.00 A1.5 1.5 0 0 1 13.50 10.00 V6.00 A1.5 1.5 0 0 1 15.00 4.50 Z"}),(0,t.jsx)("path",{d:"M5.00 13.50 H9.00 A1.5 1.5 0 0 1 10.50 15.00 V19.00 A1.5 1.5 0 0 1 9.00 20.50 H5.00 A1.5 1.5 0 0 1 3.50 19.00 V15.00 A1.5 1.5 0 0 1 5.00 13.50 Z"}),(0,t.jsx)("path",{d:"M15.00 13.50 H19.00 A1.5 1.5 0 0 1 20.50 15.00 V19.00 A1.5 1.5 0 0 1 19.00 20.50 H15.00 A1.5 1.5 0 0 1 13.50 19.00 V15.00 A1.5 1.5 0 0 1 15.00 13.50 Z"})]}),cascade:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("rect",{x:"4",y:"4",width:"12",height:"12",rx:"2"}),(0,t.jsx)("path",{d:"M20 8v10a2 2 0 0 1-2 2H8"})]}),editor:s=>(0,t.jsx)(c,{...s,children:(0,t.jsx)("path",{d:"M8 9l-3 3 3 3M16 9l3 3-3 3M13.5 6l-3 12"})}),gear:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"2.6"}),(0,t.jsx)("path",{d:"M12 3.5v2M12 18.5v2M20.5 12h-2M5.5 12h-2M18 6l-1.4 1.4M7.4 16.6 6 18M18 18l-1.4-1.4M7.4 7.4 6 6"})]}),panelRight:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M14.5 5 V19"})]}),panelDown:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M5 14.5 H19"})]}),layers:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.4 4.55 L19.6 8 L12 12.2 L4.4 8 L10.6 4.55"}),(0,t.jsx)("path",{d:"M4.4 12 L12 16.2 L19.6 12"}),(0,t.jsx)("path",{d:"M4.4 16 L12 20.2 L19.6 16"})]}),tokens:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"9",cy:"9",r:"4.5"}),(0,t.jsx)("path",{d:"M14 9.5a4.5 4.5 0 1 1-4 6.9"})]}),bolt:s=>(0,t.jsx)(c,{...s,d:"M13 3 5 13h5l-1 8 8-10h-5z"}),add:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"3.5"}),(0,t.jsx)("path",{d:"M12 8.5v7M8.5 12h7"})]}),bell:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M9.8 4.6 a5.5 5.5 0 0 1 7.7 4.4 c0 4.5 2 5.5 2 5.5 H4.5 s2 -1 2 -5.5 a5.5 5.5 0 0 1 1.1 -3.3"}),(0,t.jsx)("path",{d:"M10 19 a2 2 0 0 0 4 0"})]}),sun:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.17 8.17 A4 4 0 1 1 10.83 8.17"}),(0,t.jsx)("path",{d:"M12 2.5 V5 M12 19 V21.5 M2.5 12 H5 M19 12 H21.5 M5.1 5.1 L6.9 6.9 M17.1 17.1 l1.8 1.8 M18.9 5.1 L17.1 6.9 M6.9 17.1 L5.1 18.9"})]}),moon:s=>(0,t.jsx)(c,{...s,d:"M19.5 13.5 A8 8 0 1 1 10.5 4.2 a6.5 6.5 0 0 0 9.3 9.1"}),zoomOut:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,t.jsx)("path",{d:"M20 20l-4.2-4.2M8.3 11h5.4"})]}),zoomIn:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,t.jsx)("path",{d:"M20 20l-4.2-4.2M11 8.3v5.4M8.3 11h5.4"})]}),activity:s=>(0,t.jsx)(c,{...s,d:"M3 12h3l2.5-7 5 14 2.5-7H21"}),user:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.35 4.66 A3.6 3.6 0 1 1 10.65 4.66"}),(0,t.jsx)("path",{d:"M5.5 20 c.9 -3.7 3.4 -5.5 6.5 -5.5 s5.6 1.8 6.5 5.5"})]}),localKnowledge:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M4 19V7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12"}),(0,t.jsx)("path",{d:"M4 19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2"}),(0,t.jsx)("path",{d:"M9 7v14M9 11h6"})]}),server:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.30 4.50 H18.30 A1.7 1.7 0 0 1 20.00 6.20 V8.80 A1.7 1.7 0 0 1 18.30 10.50 H5.70 A1.7 1.7 0 0 1 4.00 8.80 V6.20 A1.7 1.7 0 0 1 5.70 4.50 H10.70"}),(0,t.jsx)("path",{d:"M5.70 13.50 H18.30 A1.7 1.7 0 0 1 20.00 15.20 V17.80 A1.7 1.7 0 0 1 18.30 19.50 H5.70 A1.7 1.7 0 0 1 4.00 17.80 V15.20 A1.7 1.7 0 0 1 5.70 13.50 Z"}),(0,t.jsx)("path",{d:"M7.4 7.5 h.01 M7.4 16.5 h.01 M12 7.5 H16 M12 16.5 H16"})]})}]);},78025,s=>{"use strict";let t="ATTACHMENT_CLEANUP_DEFERRED";s.s(["ATTACHMENT_CLEANUP_DEFERRED_ERROR",0,t,"chatSessionErrorPresentation",0,function(s){return void 0===s?{kind:"none"}:s===t?{kind:"attachment-cleanup-deferred"}:{kind:"message",message:s};}]);},14579,s=>{s.v(t=>Promise.all(["static/chunks/095_1x06nz6zj.js"].map(t=>s.l(t))).then(()=>t(97633)));},67349,s=>{s.v(t=>Promise.all(["static/chunks/3ebeyvnqq2bdi.js"].map(t=>s.l(t))).then(()=>t(97756)));},41077,s=>{s.v(t=>Promise.all(["static/chunks/2sji-23jqwpol.js"].map(t=>s.l(t))).then(()=>t(2325)));},5823,s=>{s.v(s=>Promise.resolve().then(()=>s(76055)));},27555,s=>{s.v(t=>Promise.all(["static/chunks/39_d659jzpyac.js"].map(t=>s.l(t))).then(()=>t(84508)));},11013,s=>{s.v(t=>Promise.all(["static/chunks/1s-tre_k9nvh3.js"].map(t=>s.l(t))).then(()=>t(48592)));},83233,s=>{s.v(t=>Promise.all(["static/chunks/0jkjwkp7yyerd.js"].map(t=>s.l(t))).then(()=>t(49912)));},52011,s=>{s.v(t=>Promise.all(["static/chunks/3yu-e53axqbxi.js"].map(t=>s.l(t))).then(()=>t(91592)));},53315,s=>{s.v(t=>Promise.all(["static/chunks/0iwjev0wot4b0.js","static/chunks/1_m1z_f54hkji.js","static/chunks/3mmcvq93ws1o_.js","static/chunks/0qt-dbb3fu7d6.js","static/chunks/2hnoyr__l6ogb.css","static/chunks/0eyew8n0afwy-.css"].map(t=>s.l(t))).then(()=>t(60174)));},44543,s=>{s.v(t=>Promise.all(["static/chunks/2sok5p1s-oeoh.js"].map(t=>s.l(t))).then(()=>t(26507)));},17024,s=>{s.v(t=>Promise.all(["static/chunks/1gsdksaj9tpxw.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(510)));},50426,s=>{s.v(t=>Promise.all(["static/chunks/33_a8ewd8j8xb.js","static/chunks/3tftoas-byv_b.js","static/chunks/3vggbbz9o3q7f.js","static/chunks/1_x579f2fgjyr.js","static/chunks/0mbdm3_1syk7-.js","static/chunks/1k514j5xqr4a5.js","static/chunks/2-r8sb_gq-pjv.css","static/chunks/18nld0020_k_2.css"].map(t=>s.l(t))).then(()=>t(58873)));},37240,s=>{s.v(t=>Promise.all(["static/chunks/2k5ajtzjwtqw4.js"].map(t=>s.l(t))).then(()=>t(24046)));},67121,s=>{s.v(t=>Promise.all(["static/chunks/32h72gk6uqdr0.js"].map(t=>s.l(t))).then(()=>t(59082)));},26961,s=>{s.v(t=>Promise.all(["static/chunks/3oqygeiv31fa7.js","static/chunks/1k514j5xqr4a5.js","static/chunks/3rqmix6jm42pr.js","static/chunks/0lq5h3hs45ybr.css"].map(t=>s.l(t))).then(()=>t(38661)));},51058,s=>{s.v(t=>Promise.all(["static/chunks/2bb3ihkdt41-w.css","static/chunks/1-_ws-k6ii-u7.js"].map(t=>s.l(t))).then(()=>t(27066)));},53232,s=>{s.v(t=>Promise.all(["static/chunks/029ag5kk3qzqz.js"].map(t=>s.l(t))).then(()=>t(21550)));},42885,s=>{s.v(t=>Promise.all(["static/chunks/36-88x_vioh79.css","static/chunks/3vi-he34fb-7y.js"].map(t=>s.l(t))).then(()=>t(43045)));},31266,s=>{s.v(t=>Promise.all(["static/chunks/37uao88rpil-c.js"].map(t=>s.l(t))).then(()=>t(1466)));},4232,s=>{s.v(t=>Promise.all(["static/chunks/1494yx5cyzono.css","static/chunks/19-144qxnc3dt.js"].map(t=>s.l(t))).then(()=>t(90330)));},45416,s=>{s.v(t=>Promise.all(["static/chunks/10fnijtc2ve7n.js"].map(t=>s.l(t))).then(()=>t(82109)));},68932,s=>{s.v(t=>Promise.all(["static/chunks/377fv7hlanjg4.css","static/chunks/3dswsbkpqx__o.js"].map(t=>s.l(t))).then(()=>t(44884)));},58212,s=>{s.v(t=>Promise.all(["static/chunks/0p-l881rgdntp.js"].map(t=>s.l(t))).then(()=>t(49532)));},38673,s=>{s.v(t=>Promise.all(["static/chunks/3crihqn12pq8i.js","static/chunks/2rcawuh-77fnp.js","static/chunks/0q76qswp80ci1.js","static/chunks/34bs4ev41jp8a.css","static/chunks/0eyew8n0afwy-.css"].map(t=>s.l(t))).then(()=>t(91236)));},70404,s=>{s.v(t=>Promise.all(["static/chunks/09u52-6um51mm.js","static/chunks/00zm-r2g0_b9j.js","static/chunks/3ftqi50pdpjkv.css"].map(t=>s.l(t))).then(()=>t(55263)));},65,s=>{s.v(t=>Promise.all(["static/chunks/1w5y8q-5rgdr4.css","static/chunks/0x8zukfn36b67.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(3246)));},45389,s=>{s.v(t=>Promise.all(["static/chunks/302msvxvs2k2q.css","static/chunks/1we__nb0syt11.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(41853)));},34722,s=>{s.v(t=>Promise.all(["static/chunks/002czs9bdhbkn.css","static/chunks/3-4iik5ytvbed.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(43554)));},75888,s=>{s.v(t=>Promise.all(["static/chunks/3ljwwkelljh81.js","static/chunks/1k514j5xqr4a5.js","static/chunks/002czs9bdhbkn.css","static/chunks/0eyew8n0afwy-.css"].map(t=>s.l(t))).then(()=>t(34484)));},82309,s=>{s.v(t=>Promise.all(["static/chunks/0y2vxtg9s2ms7.js","static/chunks/002czs9bdhbkn.css"].map(t=>s.l(t))).then(()=>t(94680)));},29234,s=>{s.v(t=>Promise.all(["static/chunks/345a6tv8_0k1u.js","static/chunks/23jcx3s74h89k.js","static/chunks/2og8tovhr_ul2.js","static/chunks/11c3wdq6f11j4.css"].map(t=>s.l(t))).then(()=>t(49819)));},20105,s=>{s.v(t=>Promise.all(["static/chunks/001y_5k3kms8o.js","static/chunks/0eyew8n0afwy-.css"].map(t=>s.l(t))).then(()=>t(9770)));},81847,s=>{s.v(t=>Promise.all(["static/chunks/3p83_dt4-z7q2.js","static/chunks/0h_tff7u-hdy5.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(12525)));},97072,s=>{s.v(t=>Promise.all(["static/chunks/1xbtkxhlm_87c.js"].map(t=>s.l(t))).then(()=>t(67988)));},9e4,s=>{s.v(t=>Promise.all(["static/chunks/2pdaxsbcizhb2.js"].map(t=>s.l(t))).then(()=>t(86531)));},6814,s=>{s.v(t=>Promise.all(["static/chunks/03la2o0tcodk_.js","static/chunks/1k514j5xqr4a5.js","static/chunks/002czs9bdhbkn.css"].map(t=>s.l(t))).then(()=>t(50746)));},20678,s=>{s.v(t=>Promise.all(["static/chunks/0xforn75_caf8.js"].map(t=>s.l(t))).then(()=>t(34264)));},61721,s=>{s.v(t=>Promise.all(["static/chunks/1wnmpolx-w3e0.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(1867)));},43759,s=>{s.v(t=>Promise.all(["static/chunks/3rerylfe7vcqw.css","static/chunks/1z-ibg411d9td.js"].map(t=>s.l(t))).then(()=>t(21659)));},99462,s=>{s.v(t=>Promise.all(["static/chunks/0pq4-r30b4t-t.css","static/chunks/0rvhrleg8f98b.js"].map(t=>s.l(t))).then(()=>t(20900)));},93261,s=>{s.v(t=>Promise.all(["static/chunks/2cmwthsg2bag7.css","static/chunks/1ujr-gcsprdi6.js"].map(t=>s.l(t))).then(()=>t(28867)));},22699,s=>{s.v(t=>Promise.all(["static/chunks/167niw9we0b7n.js","static/chunks/0qr6p-voaulgg.js"].map(t=>s.l(t))).then(()=>t(7492)));},58860,s=>{s.v(t=>Promise.all(["static/chunks/43fq84z1snp1a.js"].map(t=>s.l(t))).then(()=>t(68188)));},28945,s=>{s.v(t=>Promise.all(["static/chunks/1f1-u5hkc6llj.js","static/chunks/062mtlbkktt8j.css"].map(t=>s.l(t))).then(()=>t(41785)));},25802,s=>{s.v(t=>Promise.all(["static/chunks/2qhtb4qq3arii.js","static/chunks/2bzjr2ai0a8hq.js"].map(t=>s.l(t))).then(()=>t(12124)));},24100,s=>{s.v(t=>Promise.all(["static/chunks/36z66lssar4oh.js","static/chunks/2r_lex4m5unw5.js"].map(t=>s.l(t))).then(()=>t(64403)));},39644,s=>{s.v(t=>Promise.all(["static/chunks/061l2tjhvak63.js","static/chunks/0kefabslo9zpa.js"].map(t=>s.l(t))).then(()=>t(76253)));},44124,s=>{s.v(t=>Promise.all(["static/chunks/2skldj66o6hgd.js","static/chunks/0ncsz59mr16k6.js","static/chunks/0gkhgnuzot047.css"].map(t=>s.l(t))).then(()=>t(76724)));},12938,s=>{s.v(t=>Promise.all(["static/chunks/2wbqxdm82mc6g.js","static/chunks/1qio8iqevt0mg.js","static/chunks/0w6kppo4hx2wx.js","static/chunks/37o_qtojqw2tk.js","static/chunks/1cc1ucdue756u.css"].map(t=>s.l(t))).then(()=>t(60597)));},15222,s=>{s.v(t=>Promise.all(["static/chunks/1q2pujkdoaygu.js","static/chunks/2bpupnd-k7bgu.js","static/chunks/1k514j5xqr4a5.js","static/chunks/3s_vd83y41tei.css"].map(t=>s.l(t))).then(()=>t(89398)));},18774,s=>{s.v(t=>Promise.all(["static/chunks/06zsbt3vzj_fx.js","static/chunks/1k514j5xqr4a5.js","static/chunks/3vbysvgh03t3q.css"].map(t=>s.l(t))).then(()=>t(55318)));},6864,s=>{s.v(t=>Promise.all(["static/chunks/1z4z5mknakdfz.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(92580)));},77778,s=>{s.v(t=>Promise.all(["static/chunks/0fpr2r2_nczyy.js"].map(t=>s.l(t))).then(()=>t(53026)));},18311,s=>{s.v(t=>Promise.all(["static/chunks/3zn27dbqgst19.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(92757)));},80783,s=>{s.v(t=>Promise.all(["static/chunks/3b8aa258v8vuj.js"].map(t=>s.l(t))).then(()=>t(48950)));},89262,s=>{s.v(t=>Promise.all(["static/chunks/1tboih_yy-gam.js"].map(t=>s.l(t))).then(()=>t(53754)));},43275,s=>{s.v(t=>Promise.all(["static/chunks/2uj0n49ihyt_7.js"].map(t=>s.l(t))).then(()=>t(28417)));}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17161,s=>{"use strict";var t=s.i(10582);function c(s){let{size:c=18,sw:a=1.6,vb:h=24,fill:i,className:e,style:l,children:j,d:n,"aria-hidden":r="true"}=s,x=void 0!==i;return(0,t.jsx)("svg",{className:e,width:c,height:c,viewBox:`0 0 ${String(h)} ${String(h)}`,fill:x?i:"none",stroke:x?"none":"currentColor",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",style:l,"aria-hidden":r,children:void 0!==n?(0,t.jsx)("path",{d:n}):j});}s.s(["Icons",0,{newChat:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M4 6 H12.5"}),(0,t.jsx)("path",{d:"M4 9.5 H9.5"}),(0,t.jsx)("path",{d:"M14.4 13.6 l4-4 a1.6 1.6 0 0 1 2.3 2.3 l-6.2 6.2 -3 .7 .7 -3 z"})]}),search:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M12.25 4.76 A6 6 0 1 1 8.75 4.76"}),(0,t.jsx)("path",{d:"M14.7 14.7 L20 20"})]}),plugins:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("rect",{x:"4",y:"4",width:"6.5",height:"6.5",rx:"1.5"}),(0,t.jsx)("rect",{x:"13.5",y:"4",width:"6.5",height:"6.5",rx:"1.5"}),(0,t.jsx)("rect",{x:"4",y:"13.5",width:"6.5",height:"6.5",rx:"1.5"}),(0,t.jsx)("rect",{x:"13.5",y:"13.5",width:"6.5",height:"6.5",rx:"1.5"})]}),automations:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"8"}),(0,t.jsx)("path",{d:"M12 7.5V12l3 2"})]}),mobile:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("rect",{x:"7",y:"3",width:"10",height:"18",rx:"2.5"}),(0,t.jsx)("path",{d:"M11 18h2"})]}),folder:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M3.6 7.4 V6.3 a1.5 1.5 0 0 1 1.5-1.5 H8 a1.5 1.5 0 0 1 1.1 .48 L10.3 7.4"}),(0,t.jsx)("path",{d:"M13.50 7.40 H18.00 A2.4 2.4 0 0 1 20.40 9.80 V16.00 A2.4 2.4 0 0 1 18.00 18.40 H6.00 A2.4 2.4 0 0 1 3.60 16.00 V9.80 A2.4 2.4 0 0 1 6.00 7.40 H10.50"})]}),settings:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M 13.02 3.36 L 13.21 3.38 L 13.66 5.82 L 15.20 6.46 L 17.24 5.05 L 18.95 6.76 L 17.54 8.80 L 18.18 10.34 L 20.62 10.79 L 20.62 13.21 L 18.18 13.66 L 17.54 15.20 L 18.95 17.24 L 17.24 18.95 L 15.20 17.54 L 13.66 18.18 L 13.21 20.62 L 10.79 20.62 L 10.34 18.18 L 8.80 17.54 L 6.76 18.95 L 5.05 17.24 L 6.46 15.20 L 5.82 13.66 L 3.38 13.21 L 3.38 10.79 L 5.82 10.34 L 6.46 8.80 L 5.05 6.76 L 6.76 5.05 L 8.80 6.46 L 10.34 5.82 L 10.79 3.38 L 10.98 3.36"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"2.7"})]}),files:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M5.5 8 V5.5 a1.9 1.9 0 0 1 1.9-1.9 H12.8 L18.5 8.8 V18.5 a1.9 1.9 0 0 1-1.9 1.9 H7.4 a1.9 1.9 0 0 1-1.9-1.9 V11"}),(0,t.jsx)("path",{d:"M12.8 3.6 V7.4 a1.4 1.4 0 0 0 1.4 1.4 H18.5"})]}),browser:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"8.5"}),(0,t.jsx)("path",{d:"M3.5 12h17M12 3.5c2.3 2.3 2.3 14.7 0 17M12 3.5c-2.3 2.3-2.3 14.7 0 17"})]}),review:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M9 12l2 2 4-4"}),(0,t.jsx)("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2.5"})]}),terminal:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.70 5.00 H17.50 A2.5 2.5 0 0 1 20.00 7.50 V16.50 A2.5 2.5 0 0 1 17.50 19.00 H6.50 A2.5 2.5 0 0 1 4.00 16.50 V7.50 A2.5 2.5 0 0 1 6.50 5.00 H10.30"}),(0,t.jsx)("path",{d:"M8 9.6 L11 12.6 L8 15.6"}),(0,t.jsx)("path",{d:"M12.8 15.6 H16.4"})]}),agents:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("rect",{x:"5",y:"7",width:"14",height:"11",rx:"3"}),(0,t.jsx)("path",{d:"M12 7V4M9 12h.01M15 12h.01M2.5 12.5v2M21.5 12.5v2"})]}),git:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"6",cy:"6",r:"2.5"}),(0,t.jsx)("circle",{cx:"6",cy:"18",r:"2.5"}),(0,t.jsx)("circle",{cx:"17",cy:"9",r:"2.5"}),(0,t.jsx)("path",{d:"M6 8.5v7M17 11.5c0 3-3 3.5-6 4"})]}),plus:s=>(0,t.jsx)(c,{...s,d:"M12 5v14M5 12h14"}),chevron:s=>(0,t.jsx)(c,{...s,d:"M6 9l6 6 6-6"}),chevronR:s=>(0,t.jsx)(c,{...s,d:"M9 6l6 6-6 6"}),mic:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M12 3.2 a3 3 0 0 1 3 3 V11 a3 3 0 0 1 -6 0 V6.2 a3 3 0 0 1 2 -2.8"}),(0,t.jsx)("path",{d:"M5.5 11.5 a6.5 6.5 0 0 0 13 0 M12 18 v3"})]}),arrowUp:s=>(0,t.jsx)(c,{...s,d:"M12 19V5M6 11l6-6 6 6"}),spark:s=>(0,t.jsx)(c,{...s,d:"M13.2 3.6 L19 10 l-5.2 1.4 L12 17 l-1.8 -5.6 L5 10 l5.2 -1.4 z"}),pin:s=>(0,t.jsx)(c,{...s,d:"M9 3h6l-1 5 3 3-5 1-1 8-1-8-5-1 3-3z"}),brain:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z"}),(0,t.jsx)("path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z"})]}),brainSlash:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z"}),(0,t.jsx)("path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z"}),(0,t.jsx)("path",{d:"M3.2 20.4 20.8 3.6"})]}),archive:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.20 5.00 H19.50 A1 1 0 0 1 20.50 6.00 V8.00 A1 1 0 0 1 19.50 9.00 H4.50 A1 1 0 0 1 3.50 8.00 V6.00 A1 1 0 0 1 4.50 5.00 H10.80"}),(0,t.jsx)("path",{d:"M5 9 v8 a2 2 0 0 0 2 2 h10 a2 2 0 0 0 2-2 V9"}),(0,t.jsx)("path",{d:"M10 13 h4"})]}),sidebar:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M9.5 5 V19"})]}),minimize:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M7 14 H10.4"}),(0,t.jsx)("path",{d:"M13.6 14 H17"})]}),expand:s=>(0,t.jsx)(c,{...s,d:"M4 9V4h5M20 15v5h-5M20 9V4h-5M4 15v5h5"}),back:s=>(0,t.jsx)(c,{...s,d:"M15 6l-6 6 6 6"}),fwd:s=>(0,t.jsx)(c,{...s,d:"M9 6l6 6-6 6"}),drag:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"9",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"15",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"9",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"15",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"9",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"15",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"})]}),close:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M7 7 L10.4 10.4"}),(0,t.jsx)("path",{d:"M17 7 L13.6 10.4"}),(0,t.jsx)("path",{d:"M7 17 L10.4 13.6"}),(0,t.jsx)("path",{d:"M17 17 L13.6 13.6"})]}),dots:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"6",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"18",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"})]}),check:s=>(0,t.jsx)(c,{...s,d:"M5 12.5l4.5 4.5L19 6.5"}),copy:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("rect",{x:"8",y:"8",width:"10",height:"10",rx:"2"}),(0,t.jsx)("path",{d:"M6 14 H5.8 A1.8 1.8 0 0 1 4 12.2 V6.8 A1.8 1.8 0 0 1 5.8 5 H11.2 A1.8 1.8 0 0 1 13 6.8 V7"})]}),info:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M14.51 4.96 A8.6 8.6 0 1 1 9.49 4.96"}),(0,t.jsx)("path",{d:"M12 8.2 h.01"}),(0,t.jsx)("path",{d:"M12 11.3 V16.3"})]}),edit:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M4.5 6.5 H13"}),(0,t.jsx)("path",{d:"M4.5 10 H10"}),(0,t.jsx)("path",{d:"M14.4 13.6 l4-4 a1.6 1.6 0 0 1 2.3 2.3 l-6.2 6.2 -3 .7 .7 -3 z"})]}),trash:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M5 7 H19"}),(0,t.jsx)("path",{d:"M9 7 V5.6 A1.6 1.6 0 0 1 10.6 4 H13.4 A1.6 1.6 0 0 1 15 5.6 V7"}),(0,t.jsx)("path",{d:"M17.5 10 L16.8 18.2 A2 2 0 0 1 14.8 20 H9.2 A2 2 0 0 1 7.2 18.2 L6.5 10"}),(0,t.jsx)("path",{d:"M10 11.5 V17"}),(0,t.jsx)("path",{d:"M14 11.5 V17"})]}),reset:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M4 12a8 8 0 1 1 2.3 5.6"}),(0,t.jsx)("path",{d:"M4 20v-4h4"})]}),file:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M5.5 8 V5.5 a1.9 1.9 0 0 1 1.9-1.9 H12.8 L18.5 8.8 V18.5 a1.9 1.9 0 0 1-1.9 1.9 H7.4 a1.9 1.9 0 0 1-1.9-1.9 V11"}),(0,t.jsx)("path",{d:"M12.8 3.6 V7.4 a1.4 1.4 0 0 0 1.4 1.4 H18.5"})]}),diff:s=>(0,t.jsx)(c,{...s,d:"M12 4v6M9 7h6M5 17h14"}),commit:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M12.99 8.75 A3.4 3.4 0 1 1 11.01 8.75"}),(0,t.jsx)("path",{d:"M3 12 H8.6 M15.4 12 H21"})]}),pullRequest:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"6.5",cy:"6",r:"2"}),(0,t.jsx)("circle",{cx:"6.5",cy:"18",r:"2"}),(0,t.jsx)("circle",{cx:"17.5",cy:"18",r:"2"}),(0,t.jsx)("path",{d:"M6.5 8 V16"}),(0,t.jsx)("path",{d:"M17.5 16 V11 A3 3 0 0 0 14.5 8 H11.6"}),(0,t.jsx)("path",{d:"M13.6 6 L11.2 8.4 L13.6 10.8"})]}),merge:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"6.5",cy:"5.5",r:"2"}),(0,t.jsx)("circle",{cx:"17.5",cy:"5.5",r:"2"}),(0,t.jsx)("circle",{cx:"12",cy:"18.5",r:"2"}),(0,t.jsx)("path",{d:"M6.5 7.5 C 6.5 12 9 13.5 12 16.5"}),(0,t.jsx)("path",{d:"M17.5 7.5 C 17.5 12 15 13.5 12 16.5"})]}),download:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M12 4 V15"}),(0,t.jsx)("path",{d:"M7.5 10.5 L12 15 L16.5 10.5"}),(0,t.jsx)("path",{d:"M5 19.5 H19"})]}),code:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M8.5 8 L4.5 12 L8.5 16"}),(0,t.jsx)("path",{d:"M15.5 8 L19.5 12 L15.5 16"}),(0,t.jsx)("path",{d:"M13.5 5.5 L10.5 18.5"})]}),regenerate:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M6 9.5 A6.8 6.8 0 0 1 18.2 8.2"}),(0,t.jsx)("path",{d:"M18.6 4.2 L18.4 8.4 L14.3 7.7"}),(0,t.jsx)("path",{d:"M18 14.5 A6.8 6.8 0 0 1 5.8 15.8"}),(0,t.jsx)("path",{d:"M5.4 19.8 L5.6 15.6 L9.7 16.3"})]}),external:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M14 4.8 H19.2 V10"}),(0,t.jsx)("path",{d:"M19.2 4.8 L11 13"}),(0,t.jsx)("path",{d:"M17 13.5 V18 a1.6 1.6 0 0 1 -1.6 1.6 H6.6 A1.6 1.6 0 0 1 5 18 V9.2 A1.6 1.6 0 0 1 6.6 7.6 H11"})]}),link:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M9.5 14.5 L14.5 9.5"}),(0,t.jsx)("path",{d:"M11 7.8 L12.8 6 a3.4 3.4 0 0 1 4.8 4.8 L15.8 12.6"}),(0,t.jsx)("path",{d:"M13 16.2 L11.2 18 a3.4 3.4 0 0 1 -4.8 -4.8 L8.2 11.4"})]}),branch:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M7.63 4.97 A2.3 2.3 0 1 1 4.37 4.97"}),(0,t.jsx)("circle",{cx:"6",cy:"17.4",r:"2.3"}),(0,t.jsx)("circle",{cx:"17.4",cy:"8.6",r:"2.3"}),(0,t.jsx)("path",{d:"M6 8.9 V15.1"}),(0,t.jsx)("path",{d:"M17.4 10.9 c0 4 -4 3.7 -7 4.7"})]}),cube:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M12 3l8 4.5v9L12 21l-8-4.5v-9z"}),(0,t.jsx)("path",{d:"M12 12l8-4.5M12 12v9M12 12L4 7.5"})]}),maximize:s=>(0,t.jsx)(c,{...s,d:"M13.50 7.00 H15.00 A2 2 0 0 1 17.00 9.00 V15.00 A2 2 0 0 1 15.00 17.00 H9.00 A2 2 0 0 1 7.00 15.00 V9.00 A2 2 0 0 1 9.00 7.00 H10.50"}),restore:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M9 9 V8 a2 2 0 0 1 2 -2 h6 a2 2 0 0 1 2 2 v6 a2 2 0 0 1 -2 2 h-1"}),(0,t.jsx)("path",{d:"M11.50 9.00 H13.00 A2 2 0 0 1 15.00 11.00 V17.00 A2 2 0 0 1 13.00 19.00 H7.00 A2 2 0 0 1 5.00 17.00 V11.00 A2 2 0 0 1 7.00 9.00 H8.50"})]}),split:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M12 5 V19"})]}),tile:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M8.10 4.50 H9.00 A1.5 1.5 0 0 1 10.50 6.00 V10.00 A1.5 1.5 0 0 1 9.00 11.50 H5.00 A1.5 1.5 0 0 1 3.50 10.00 V6.00 A1.5 1.5 0 0 1 5.00 4.50 H5.90"}),(0,t.jsx)("path",{d:"M15.00 4.50 H19.00 A1.5 1.5 0 0 1 20.50 6.00 V10.00 A1.5 1.5 0 0 1 19.00 11.50 H15.00 A1.5 1.5 0 0 1 13.50 10.00 V6.00 A1.5 1.5 0 0 1 15.00 4.50 Z"}),(0,t.jsx)("path",{d:"M5.00 13.50 H9.00 A1.5 1.5 0 0 1 10.50 15.00 V19.00 A1.5 1.5 0 0 1 9.00 20.50 H5.00 A1.5 1.5 0 0 1 3.50 19.00 V15.00 A1.5 1.5 0 0 1 5.00 13.50 Z"}),(0,t.jsx)("path",{d:"M15.00 13.50 H19.00 A1.5 1.5 0 0 1 20.50 15.00 V19.00 A1.5 1.5 0 0 1 19.00 20.50 H15.00 A1.5 1.5 0 0 1 13.50 19.00 V15.00 A1.5 1.5 0 0 1 15.00 13.50 Z"})]}),cascade:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("rect",{x:"4",y:"4",width:"12",height:"12",rx:"2"}),(0,t.jsx)("path",{d:"M20 8v10a2 2 0 0 1-2 2H8"})]}),editor:s=>(0,t.jsx)(c,{...s,children:(0,t.jsx)("path",{d:"M8 9l-3 3 3 3M16 9l3 3-3 3M13.5 6l-3 12"})}),gear:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"2.6"}),(0,t.jsx)("path",{d:"M12 3.5v2M12 18.5v2M20.5 12h-2M5.5 12h-2M18 6l-1.4 1.4M7.4 16.6 6 18M18 18l-1.4-1.4M7.4 7.4 6 6"})]}),panelRight:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M14.5 5 V19"})]}),panelDown:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M5 14.5 H19"})]}),layers:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.4 4.55 L19.6 8 L12 12.2 L4.4 8 L10.6 4.55"}),(0,t.jsx)("path",{d:"M4.4 12 L12 16.2 L19.6 12"}),(0,t.jsx)("path",{d:"M4.4 16 L12 20.2 L19.6 16"})]}),tokens:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"9",cy:"9",r:"4.5"}),(0,t.jsx)("path",{d:"M14 9.5a4.5 4.5 0 1 1-4 6.9"})]}),bolt:s=>(0,t.jsx)(c,{...s,d:"M13 3 5 13h5l-1 8 8-10h-5z"}),add:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"3.5"}),(0,t.jsx)("path",{d:"M12 8.5v7M8.5 12h7"})]}),bell:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M9.8 4.6 a5.5 5.5 0 0 1 7.7 4.4 c0 4.5 2 5.5 2 5.5 H4.5 s2 -1 2 -5.5 a5.5 5.5 0 0 1 1.1 -3.3"}),(0,t.jsx)("path",{d:"M10 19 a2 2 0 0 0 4 0"})]}),sun:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.17 8.17 A4 4 0 1 1 10.83 8.17"}),(0,t.jsx)("path",{d:"M12 2.5 V5 M12 19 V21.5 M2.5 12 H5 M19 12 H21.5 M5.1 5.1 L6.9 6.9 M17.1 17.1 l1.8 1.8 M18.9 5.1 L17.1 6.9 M6.9 17.1 L5.1 18.9"})]}),moon:s=>(0,t.jsx)(c,{...s,d:"M19.5 13.5 A8 8 0 1 1 10.5 4.2 a6.5 6.5 0 0 0 9.3 9.1"}),zoomOut:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,t.jsx)("path",{d:"M20 20l-4.2-4.2M8.3 11h5.4"})]}),zoomIn:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,t.jsx)("path",{d:"M20 20l-4.2-4.2M11 8.3v5.4M8.3 11h5.4"})]}),activity:s=>(0,t.jsx)(c,{...s,d:"M3 12h3l2.5-7 5 14 2.5-7H21"}),user:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.35 4.66 A3.6 3.6 0 1 1 10.65 4.66"}),(0,t.jsx)("path",{d:"M5.5 20 c.9 -3.7 3.4 -5.5 6.5 -5.5 s5.6 1.8 6.5 5.5"})]}),localKnowledge:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M4 19V7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12"}),(0,t.jsx)("path",{d:"M4 19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2"}),(0,t.jsx)("path",{d:"M9 7v14M9 11h6"})]}),server:s=>(0,t.jsxs)(c,{...s,children:[(0,t.jsx)("path",{d:"M13.30 4.50 H18.30 A1.7 1.7 0 0 1 20.00 6.20 V8.80 A1.7 1.7 0 0 1 18.30 10.50 H5.70 A1.7 1.7 0 0 1 4.00 8.80 V6.20 A1.7 1.7 0 0 1 5.70 4.50 H10.70"}),(0,t.jsx)("path",{d:"M5.70 13.50 H18.30 A1.7 1.7 0 0 1 20.00 15.20 V17.80 A1.7 1.7 0 0 1 18.30 19.50 H5.70 A1.7 1.7 0 0 1 4.00 17.80 V15.20 A1.7 1.7 0 0 1 5.70 13.50 Z"}),(0,t.jsx)("path",{d:"M7.4 7.5 h.01 M7.4 16.5 h.01 M12 7.5 H16 M12 16.5 H16"})]})}]);},78025,s=>{"use strict";let t="ATTACHMENT_CLEANUP_DEFERRED";s.s(["ATTACHMENT_CLEANUP_DEFERRED_ERROR",0,t,"chatSessionErrorPresentation",0,function(s){return void 0===s?{kind:"none"}:s===t?{kind:"attachment-cleanup-deferred"}:{kind:"message",message:s};}]);},14579,s=>{s.v(t=>Promise.all(["static/chunks/095_1x06nz6zj.js"].map(t=>s.l(t))).then(()=>t(97633)));},67349,s=>{s.v(t=>Promise.all(["static/chunks/3ebeyvnqq2bdi.js"].map(t=>s.l(t))).then(()=>t(97756)));},41077,s=>{s.v(t=>Promise.all(["static/chunks/09ifk61aybcwe.js"].map(t=>s.l(t))).then(()=>t(2325)));},5823,s=>{s.v(s=>Promise.resolve().then(()=>s(76055)));},27555,s=>{s.v(t=>Promise.all(["static/chunks/39_d659jzpyac.js"].map(t=>s.l(t))).then(()=>t(84508)));},11013,s=>{s.v(t=>Promise.all(["static/chunks/1s-tre_k9nvh3.js"].map(t=>s.l(t))).then(()=>t(48592)));},83233,s=>{s.v(t=>Promise.all(["static/chunks/0jkjwkp7yyerd.js"].map(t=>s.l(t))).then(()=>t(49912)));},52011,s=>{s.v(t=>Promise.all(["static/chunks/3yu-e53axqbxi.js"].map(t=>s.l(t))).then(()=>t(91592)));},53315,s=>{s.v(t=>Promise.all(["static/chunks/0iwjev0wot4b0.js","static/chunks/1_m1z_f54hkji.js","static/chunks/3mmcvq93ws1o_.js","static/chunks/0qt-dbb3fu7d6.js","static/chunks/2hnoyr__l6ogb.css","static/chunks/0eyew8n0afwy-.css"].map(t=>s.l(t))).then(()=>t(60174)));},44543,s=>{s.v(t=>Promise.all(["static/chunks/2sok5p1s-oeoh.js"].map(t=>s.l(t))).then(()=>t(26507)));},17024,s=>{s.v(t=>Promise.all(["static/chunks/1gsdksaj9tpxw.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(510)));},50426,s=>{s.v(t=>Promise.all(["static/chunks/33_a8ewd8j8xb.js","static/chunks/3tftoas-byv_b.js","static/chunks/3vggbbz9o3q7f.js","static/chunks/1_x579f2fgjyr.js","static/chunks/0mbdm3_1syk7-.js","static/chunks/1k514j5xqr4a5.js","static/chunks/2-r8sb_gq-pjv.css","static/chunks/18nld0020_k_2.css"].map(t=>s.l(t))).then(()=>t(58873)));},37240,s=>{s.v(t=>Promise.all(["static/chunks/2k5ajtzjwtqw4.js"].map(t=>s.l(t))).then(()=>t(24046)));},67121,s=>{s.v(t=>Promise.all(["static/chunks/32h72gk6uqdr0.js"].map(t=>s.l(t))).then(()=>t(59082)));},26961,s=>{s.v(t=>Promise.all(["static/chunks/3oqygeiv31fa7.js","static/chunks/1k514j5xqr4a5.js","static/chunks/3rqmix6jm42pr.js","static/chunks/0lq5h3hs45ybr.css"].map(t=>s.l(t))).then(()=>t(38661)));},51058,s=>{s.v(t=>Promise.all(["static/chunks/2bb3ihkdt41-w.css","static/chunks/1-_ws-k6ii-u7.js"].map(t=>s.l(t))).then(()=>t(27066)));},53232,s=>{s.v(t=>Promise.all(["static/chunks/029ag5kk3qzqz.js"].map(t=>s.l(t))).then(()=>t(21550)));},42885,s=>{s.v(t=>Promise.all(["static/chunks/36-88x_vioh79.css","static/chunks/3vi-he34fb-7y.js"].map(t=>s.l(t))).then(()=>t(43045)));},31266,s=>{s.v(t=>Promise.all(["static/chunks/37uao88rpil-c.js"].map(t=>s.l(t))).then(()=>t(1466)));},4232,s=>{s.v(t=>Promise.all(["static/chunks/1494yx5cyzono.css","static/chunks/19-144qxnc3dt.js"].map(t=>s.l(t))).then(()=>t(90330)));},45416,s=>{s.v(t=>Promise.all(["static/chunks/10fnijtc2ve7n.js"].map(t=>s.l(t))).then(()=>t(82109)));},68932,s=>{s.v(t=>Promise.all(["static/chunks/377fv7hlanjg4.css","static/chunks/3dswsbkpqx__o.js"].map(t=>s.l(t))).then(()=>t(44884)));},58212,s=>{s.v(t=>Promise.all(["static/chunks/0p-l881rgdntp.js"].map(t=>s.l(t))).then(()=>t(49532)));},38673,s=>{s.v(t=>Promise.all(["static/chunks/3crihqn12pq8i.js","static/chunks/2rcawuh-77fnp.js","static/chunks/0q76qswp80ci1.js","static/chunks/34bs4ev41jp8a.css","static/chunks/0eyew8n0afwy-.css"].map(t=>s.l(t))).then(()=>t(91236)));},70404,s=>{s.v(t=>Promise.all(["static/chunks/09u52-6um51mm.js","static/chunks/00zm-r2g0_b9j.js","static/chunks/3ftqi50pdpjkv.css"].map(t=>s.l(t))).then(()=>t(55263)));},65,s=>{s.v(t=>Promise.all(["static/chunks/1w5y8q-5rgdr4.css","static/chunks/0x8zukfn36b67.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(3246)));},45389,s=>{s.v(t=>Promise.all(["static/chunks/302msvxvs2k2q.css","static/chunks/1we__nb0syt11.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(41853)));},34722,s=>{s.v(t=>Promise.all(["static/chunks/002czs9bdhbkn.css","static/chunks/3-4iik5ytvbed.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(43554)));},75888,s=>{s.v(t=>Promise.all(["static/chunks/3ljwwkelljh81.js","static/chunks/1k514j5xqr4a5.js","static/chunks/002czs9bdhbkn.css","static/chunks/0eyew8n0afwy-.css"].map(t=>s.l(t))).then(()=>t(34484)));},82309,s=>{s.v(t=>Promise.all(["static/chunks/0y2vxtg9s2ms7.js","static/chunks/002czs9bdhbkn.css"].map(t=>s.l(t))).then(()=>t(94680)));},29234,s=>{s.v(t=>Promise.all(["static/chunks/345a6tv8_0k1u.js","static/chunks/23jcx3s74h89k.js","static/chunks/2og8tovhr_ul2.js","static/chunks/11c3wdq6f11j4.css"].map(t=>s.l(t))).then(()=>t(49819)));},20105,s=>{s.v(t=>Promise.all(["static/chunks/001y_5k3kms8o.js","static/chunks/0eyew8n0afwy-.css"].map(t=>s.l(t))).then(()=>t(9770)));},81847,s=>{s.v(t=>Promise.all(["static/chunks/3p83_dt4-z7q2.js","static/chunks/0h_tff7u-hdy5.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(12525)));},97072,s=>{s.v(t=>Promise.all(["static/chunks/1xbtkxhlm_87c.js"].map(t=>s.l(t))).then(()=>t(67988)));},9e4,s=>{s.v(t=>Promise.all(["static/chunks/2pdaxsbcizhb2.js"].map(t=>s.l(t))).then(()=>t(86531)));},6814,s=>{s.v(t=>Promise.all(["static/chunks/03la2o0tcodk_.js","static/chunks/1k514j5xqr4a5.js","static/chunks/002czs9bdhbkn.css"].map(t=>s.l(t))).then(()=>t(50746)));},20678,s=>{s.v(t=>Promise.all(["static/chunks/0xforn75_caf8.js"].map(t=>s.l(t))).then(()=>t(34264)));},61721,s=>{s.v(t=>Promise.all(["static/chunks/1wnmpolx-w3e0.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(1867)));},43759,s=>{s.v(t=>Promise.all(["static/chunks/3rerylfe7vcqw.css","static/chunks/1z-ibg411d9td.js"].map(t=>s.l(t))).then(()=>t(21659)));},99462,s=>{s.v(t=>Promise.all(["static/chunks/0pq4-r30b4t-t.css","static/chunks/0rvhrleg8f98b.js"].map(t=>s.l(t))).then(()=>t(20900)));},93261,s=>{s.v(t=>Promise.all(["static/chunks/2cmwthsg2bag7.css","static/chunks/1ujr-gcsprdi6.js"].map(t=>s.l(t))).then(()=>t(28867)));},22699,s=>{s.v(t=>Promise.all(["static/chunks/167niw9we0b7n.js","static/chunks/0qr6p-voaulgg.js"].map(t=>s.l(t))).then(()=>t(7492)));},58860,s=>{s.v(t=>Promise.all(["static/chunks/43fq84z1snp1a.js"].map(t=>s.l(t))).then(()=>t(68188)));},28945,s=>{s.v(t=>Promise.all(["static/chunks/1f1-u5hkc6llj.js","static/chunks/062mtlbkktt8j.css"].map(t=>s.l(t))).then(()=>t(41785)));},25802,s=>{s.v(t=>Promise.all(["static/chunks/2qhtb4qq3arii.js","static/chunks/2bzjr2ai0a8hq.js"].map(t=>s.l(t))).then(()=>t(12124)));},24100,s=>{s.v(t=>Promise.all(["static/chunks/36z66lssar4oh.js","static/chunks/2r_lex4m5unw5.js"].map(t=>s.l(t))).then(()=>t(64403)));},39644,s=>{s.v(t=>Promise.all(["static/chunks/061l2tjhvak63.js","static/chunks/0kefabslo9zpa.js"].map(t=>s.l(t))).then(()=>t(76253)));},44124,s=>{s.v(t=>Promise.all(["static/chunks/2skldj66o6hgd.js","static/chunks/0ncsz59mr16k6.js","static/chunks/0gkhgnuzot047.css"].map(t=>s.l(t))).then(()=>t(76724)));},12938,s=>{s.v(t=>Promise.all(["static/chunks/2wbqxdm82mc6g.js","static/chunks/3od_e1_j5aq-u.js","static/chunks/0spfmty-r-rqj.js","static/chunks/37o_qtojqw2tk.js","static/chunks/1cc1ucdue756u.css"].map(t=>s.l(t))).then(()=>t(60597)));},15222,s=>{s.v(t=>Promise.all(["static/chunks/1q2pujkdoaygu.js","static/chunks/2bshxlpms4hq2.js","static/chunks/1k514j5xqr4a5.js","static/chunks/3s_vd83y41tei.css"].map(t=>s.l(t))).then(()=>t(89398)));},18774,s=>{s.v(t=>Promise.all(["static/chunks/06zsbt3vzj_fx.js","static/chunks/1k514j5xqr4a5.js","static/chunks/3vbysvgh03t3q.css"].map(t=>s.l(t))).then(()=>t(55318)));},6864,s=>{s.v(t=>Promise.all(["static/chunks/1z4z5mknakdfz.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(92580)));},77778,s=>{s.v(t=>Promise.all(["static/chunks/0fpr2r2_nczyy.js"].map(t=>s.l(t))).then(()=>t(53026)));},18311,s=>{s.v(t=>Promise.all(["static/chunks/3zn27dbqgst19.js","static/chunks/1k514j5xqr4a5.js"].map(t=>s.l(t))).then(()=>t(92757)));},80783,s=>{s.v(t=>Promise.all(["static/chunks/3b8aa258v8vuj.js"].map(t=>s.l(t))).then(()=>t(48950)));},89262,s=>{s.v(t=>Promise.all(["static/chunks/1tboih_yy-gam.js"].map(t=>s.l(t))).then(()=>t(53754)));},43275,s=>{s.v(t=>Promise.all(["static/chunks/2uj0n49ihyt_7.js"].map(t=>s.l(t))).then(()=>t(28417)));}]);